Comments – wpDiscuz - Version 7.0.3

Version Description

Download this release

Release Info

Developer AdvancedCoding
Plugin Icon 128x128 Comments – wpDiscuz
Version 7.0.3
Comparing to
See all releases

Code changes from version 5.3.6 to 7.0.3

Files changed (134) hide show
  1. assets/addons/bundle/wpdiscuz-bundle.png +0 -0
  2. assets/addons/embeds/header-off.png +0 -0
  3. assets/addons/embeds/header.png +0 -0
  4. assets/addons/syntax/header-off.png +0 -0
  5. assets/addons/syntax/header.png +0 -0
  6. assets/css/fonts/sqr721c-webfont.eot +0 -0
  7. assets/css/fonts/sqr721c-webfont.svg +879 -0
  8. assets/css/fonts/sqr721c-webfont.ttf +0 -0
  9. assets/css/fonts/sqr721c-webfont.woff +0 -0
  10. assets/css/fonts/sqr721c-webfont.woff2 +0 -0
  11. assets/css/options.css +0 -138
  12. assets/css/wpdiscuz-combo-no_quill.min.css +6 -0
  13. assets/css/wpdiscuz-combo.min.css +8 -0
  14. assets/css/wpdiscuz-custom-form.css +25 -12
  15. assets/css/wpdiscuz-deactivation.css +45 -0
  16. assets/css/wpdiscuz-mu-backend.css +29 -0
  17. assets/css/wpdiscuz-mu-frontend.css +55 -0
  18. assets/css/wpdiscuz-mu-frontend.min.css +1 -0
  19. assets/css/wpdiscuz-options.css +534 -0
  20. assets/css/wpdiscuz-ratings-rtl.css +21 -9
  21. assets/css/wpdiscuz-ratings-rtl.min.css +1 -0
  22. assets/css/wpdiscuz-ratings.css +21 -51
  23. assets/css/wpdiscuz-ratings.min.css +1 -0
  24. assets/css/wpdiscuz-rtl.css +0 -648
  25. assets/css/wpdiscuz-user-content.css +5 -2
  26. assets/css/wpdiscuz-user-content.min.css +1 -0
  27. assets/css/wpdiscuz.css +0 -651
  28. assets/img/avatars/1.jpg +0 -0
  29. assets/img/avatars/2.jpg +0 -0
  30. assets/img/avatars/3.jpg +0 -0
  31. assets/img/avatars/4.jpg +0 -0
  32. assets/img/avatars/5.jpg +0 -0
  33. assets/img/dark.png +0 -0
  34. assets/img/dashboard/addon.png +0 -0
  35. assets/img/dashboard/arrow-right.png +0 -0
  36. assets/img/dashboard/box-badges.png +0 -0
  37. assets/img/dashboard/box-bubble.png +0 -0
  38. assets/img/dashboard/box-content.png +0 -0
  39. assets/img/dashboard/box-email.png +0 -0
  40. assets/img/dashboard/box-feedback.png +0 -0
  41. assets/img/dashboard/box-forms.png +0 -0
  42. assets/img/dashboard/box-general.png +0 -0
  43. assets/img/dashboard/box-layouts.png +0 -0
  44. assets/img/dashboard/box-login.png +0 -0
  45. assets/img/dashboard/box-moderation.png +0 -0
  46. assets/img/dashboard/box-rating.png +0 -0
  47. assets/img/dashboard/box-recaptcha.png +0 -0
  48. assets/img/dashboard/box-social.png +0 -0
  49. assets/img/dashboard/box-styles.png +0 -0
  50. assets/img/dashboard/box-threads.png +0 -0
  51. assets/img/dashboard/bubble-invite-to-comment.png +0 -0
  52. assets/img/dashboard/bubble-location-left.png +0 -0
  53. assets/img/dashboard/bubble-location-right.png +0 -0
  54. assets/img/dashboard/bubble-location-side.png +0 -0
  55. assets/img/dashboard/bubble-new-comment-info.png +0 -0
  56. assets/img/dashboard/cancel.png +0 -0
  57. assets/img/dashboard/cog.png +0 -0
  58. assets/img/dashboard/dots.png +0 -0
  59. assets/img/dashboard/icon-comment-inlinepng.png +0 -0
  60. assets/img/dashboard/icon-comment.png +0 -0
  61. assets/img/dashboard/icon-guests.png +0 -0
  62. assets/img/dashboard/icon-replies.png +0 -0
  63. assets/img/dashboard/icon-threads.png +0 -0
  64. assets/img/dashboard/icon-users.png +0 -0
  65. assets/{third-party/font-awesome-5.0.6/css → img/dashboard}/index.html +0 -0
  66. assets/img/dashboard/inline-feedback-closed.png +0 -0
  67. assets/img/dashboard/inline-feedback-opened.png +0 -0
  68. assets/img/dashboard/inline-feedback-toolbar-button-vertical.png +0 -0
  69. assets/img/dashboard/inline-feedback-toolbar-button.png +0 -0
  70. assets/img/dashboard/layout-1.png +0 -0
  71. assets/img/dashboard/layout-1s.png +0 -0
  72. assets/img/dashboard/layout-2.png +0 -0
  73. assets/img/dashboard/layout-2s.png +0 -0
  74. assets/img/dashboard/layout-3.png +0 -0
  75. assets/img/dashboard/layout-3s.png +0 -0
  76. assets/img/dashboard/new-feature.png +0 -0
  77. assets/img/dashboard/new.png +0 -0
  78. assets/img/dashboard/news/bubble-invite-to-comment.png +0 -0
  79. assets/img/dashboard/news/bubble-new-comment-info.png +0 -0
  80. assets/img/dashboard/news/feedback-form.png +0 -0
  81. assets/img/dashboard/news/icon-bubble.png +0 -0
  82. assets/img/dashboard/news/icon-feedback.png +0 -0
  83. assets/img/dashboard/news/icon-layouts.png +0 -0
  84. assets/img/dashboard/news/icon-rating.png +0 -0
  85. assets/img/dashboard/news/icon-social.png +0 -0
  86. assets/img/dashboard/news/rating-vs-v.png +0 -0
  87. assets/img/dashboard/news/rating-vs.png +0 -0
  88. assets/img/dashboard/news/social-networks-shadow.png +0 -0
  89. assets/img/dashboard/news/wpDiscuz-Social-Network-icons-on-user-avatars.png +0 -0
  90. assets/img/dashboard/note.png +0 -0
  91. assets/img/dashboard/ok.png +0 -0
  92. assets/img/dashboard/rating.png +0 -0
  93. assets/img/dashboard/solved.png +0 -0
  94. assets/img/dashboard/warning.png +0 -0
  95. assets/img/dashboard/wpdiscuz-7-logo.png +0 -0
  96. assets/img/delete.png +0 -0
  97. assets/img/editor/active.png +0 -0
  98. assets/img/editor/attachment.png +0 -0
  99. assets/img/editor/passive.png +0 -0
  100. assets/img/file-icons/delete.png +0 -0
  101. assets/img/file-icons/file-type.png +0 -0
  102. assets/{third-party/font-awesome-5.0.6 → img/file-icons}/index.html +0 -0
  103. assets/img/file-icons/video-audio-type.png +0 -0
  104. assets/img/shortcode.png +0 -0
  105. assets/img/social-icons/baidu.png +0 -0
  106. assets/img/social-icons/dq-m.png +0 -0
  107. assets/img/social-icons/gg-m.png +0 -0
  108. assets/img/social-icons/ig-m.png +0 -0
  109. assets/img/social-icons/in-m.png +0 -0
  110. assets/img/social-icons/mr-m.png +0 -0
  111. assets/img/social-icons/qq.png +0 -0
  112. assets/img/social-icons/wapp-m.png +0 -0
  113. assets/img/social-icons/wechat.png +0 -0
  114. assets/img/social-icons/weibo.png +0 -0
  115. assets/img/social-icons/wp-m.png +0 -0
  116. assets/img/social-icons/ya-m.png +0 -0
  117. assets/js/wpd-editor.js +252 -0
  118. assets/js/wpd-editor.min.js +1 -0
  119. assets/js/wpdiscuz-admin-menu-item.js +2 -2
  120. assets/js/wpdiscuz-combo-no_quill.min.js +16 -0
  121. assets/js/wpdiscuz-combo.min.js +20 -0
  122. assets/js/wpdiscuz-custom-form.js +1 -1
  123. assets/js/wpdiscuz-deactivation.js +6 -1
  124. assets/js/wpdiscuz-mu-backend.js +89 -0
  125. assets/js/wpdiscuz-mu-frontend.js +198 -0
  126. assets/js/wpdiscuz-mu-frontend.min.js +1 -0
  127. assets/js/wpdiscuz-options.js +845 -83
  128. assets/js/wpdiscuz-shortcode-gutenberg.js +54 -0
  129. assets/js/wpdiscuz-shortcode-tinymce.js +30 -0
  130. assets/js/wpdiscuz-social.js +60 -64
  131. assets/js/wpdiscuz-social.min.js +1 -0
  132. assets/js/wpdiscuz-user-content.js +77 -105
  133. assets/js/wpdiscuz-user-content.min.js +1 -0
  134. assets/js/wpdiscuz.js +1409 -841
assets/addons/bundle/wpdiscuz-bundle.png CHANGED
Binary file
assets/addons/embeds/header-off.png ADDED
Binary file
assets/addons/embeds/header.png ADDED
Binary file
assets/addons/syntax/header-off.png ADDED
Binary file
assets/addons/syntax/header.png ADDED
Binary file
assets/css/fonts/sqr721c-webfont.eot ADDED
Binary file
assets/css/fonts/sqr721c-webfont.svg ADDED
@@ -0,0 +1,879 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
4
+ <metadata></metadata>
5
+ <defs>
6
+ <font id="square721_cn_btroman" horiz-adv-x="1024" >
7
+ <font-face units-per-em="2048" ascent="1638" descent="-410" />
8
+ <missing-glyph horiz-adv-x="512" />
9
+ <glyph horiz-adv-x="0" />
10
+ <glyph unicode="&#xd;" horiz-adv-x="512" />
11
+ <glyph unicode=" " horiz-adv-x="512" />
12
+ <glyph unicode="&#x09;" horiz-adv-x="512" />
13
+ <glyph unicode="&#xa0;" horiz-adv-x="512" />
14
+ <glyph unicode="!" horiz-adv-x="512" d="M186 0v186h140v-186h-140zM186 391v1094h140v-1094h-140z" />
15
+ <glyph unicode="&#x22;" horiz-adv-x="569" d="M98 881v553h101v-553h-101zM371 881v553h102v-553h-102z" />
16
+ <glyph unicode="#" horiz-adv-x="1575" d="M117 479l39 109h325l101 276h-353l35 107h354l173 483h127l-168 -483h264l172 483h127l-170 -483h315l-37 -107h-317l-98 -276h340l-37 -109h-340l-170 -479h-129l172 479h-269l-172 -479h-127l170 479h-327zM612 588h267l96 276h-266z" />
17
+ <glyph unicode="$" d="M115 319v125h143v-98q0 -141 43 -190.5t160 -49.5h8v584q-198 22 -267 91.5t-69 242.5v33q0 161 16 233.5t54 114.5q38 43 101.5 66.5t164.5 31.5v125h100v-125q188 -16 260 -88.5t72 -249.5v-86h-143v60q0 139 -40 187.5t-148 51.5l-1 -551q192 -28 264 -110.5 t72 -282.5q0 -182 -14 -248.5t-49 -105.5q-40 -44 -106 -68t-167 -30v-166h-100v165q-200 10 -277 83t-77 255zM276 1020q0 -89 42 -129t151 -55v542q-108 -7 -150.5 -51t-42.5 -151v-156zM569 107q111 9 152 54.5t41 160.5v165q0 99 -43 141.5t-149 51.5z" />
18
+ <glyph unicode="%" horiz-adv-x="1669" d="M90 913v228q0 196 51 272t174 76h111q124 0 174.5 -76t50.5 -272v-228q0 -196 -50.5 -271t-174.5 -75h-111q-123 0 -174 75t-51 271zM219 926q0 -163 30.5 -202.5t121.5 -39.5q90 0 120.5 39.5t30.5 202.5v202q0 163 -30.5 202.5t-120.5 39.5q-91 0 -121.5 -39.5 t-30.5 -202.5v-202zM434 -18l678 1521h121l-678 -1521h-121zM1016 342v227q0 197 50.5 273t174.5 76h111q123 0 174 -76t51 -273v-227q0 -196 -51 -271t-174 -75h-111q-124 0 -174.5 75t-50.5 271zM1145 354q0 -161 30.5 -200t120.5 -39q91 0 121.5 39t30.5 200v205 q0 161 -30.5 200.5t-121.5 39.5q-90 0 -120.5 -39.5t-30.5 -200.5v-205z" />
19
+ <glyph unicode="&#x26;" horiz-adv-x="1063" d="M111 338v235q0 127 52.5 203.5t149.5 91.5l-57 76q-2 3 -5 7q-91 119 -91 259q0 150 88.5 221.5t273.5 71.5t253.5 -66.5t68.5 -252.5v-84h-129v76q0 119 -39.5 157.5t-151.5 38.5q-113 0 -164 -38.5t-51 -125.5q0 -36 13.5 -73.5t37.5 -69.5l424 -559v328h127v-469 l213 -271l-104 -102l-146 184q-30 -104 -112 -149t-244 -45q-232 0 -319.5 77.5t-87.5 278.5zM260 387q0 -166 57.5 -226.5t210.5 -60.5q127 0 184.5 46.5t57.5 148.5v6l-352 447q-3 0 -9.5 1t-11.5 1q-65 0 -101 -58t-36 -164v-141z" />
20
+ <glyph unicode="'" horiz-adv-x="295" d="M98 881v553h101v-553h-101z" />
21
+ <glyph unicode="(" horiz-adv-x="645" d="M190 494v495q0 293 72.5 403.5t253.5 110.5h10v-131q-112 -1 -152 -63t-40 -285v-565q0 -223 40 -285t152 -64v-128h-10q-182 0 -254 109.5t-72 402.5z" />
22
+ <glyph unicode=")" horiz-adv-x="645" d="M90 -18v128q113 2 154 65t41 284v565q0 221 -40.5 283.5t-154.5 65.5v130h10q182 0 255 -111t73 -403v-495q0 -292 -72.5 -402t-255.5 -110h-10z" />
23
+ <glyph unicode="*" horiz-adv-x="797" d="M29 1047v122h250v-122h-250zM162 780l123 248l104 -65l-121 -248zM164 1438l104 65l123 -248l-104 -65zM395 1255l123 248l105 -65l-123 -248zM397 963l105 65l123 -248l-107 -65zM516 1047v122h252v-122h-252z" />
24
+ <glyph unicode="+" horiz-adv-x="1706" d="M254 561v98h551v562h98v-562h549v-98h-549v-561h-98v561h-551z" />
25
+ <glyph unicode="," horiz-adv-x="512" d="M170 -140q37 2 52.5 17.5t15.5 52.5v70h-58v199h152v-234q0 -100 -30 -143t-99 -43q-10 0 -18 0.5t-15 1.5v79z" />
26
+ <glyph unicode="-" horiz-adv-x="616" d="M84 467v129h448v-129h-448z" />
27
+ <glyph unicode="." horiz-adv-x="512" d="M180 0v199h152v-199h-152z" />
28
+ <glyph unicode="/" horiz-adv-x="494" d="M-80 -190l486 1693h112l-485 -1693h-113z" />
29
+ <glyph unicode="0" d="M104 483v516q0 283 74.5 393.5t253.5 110.5h160q179 0 253.5 -110.5t74.5 -393.5v-516q0 -282 -74.5 -391.5t-253.5 -109.5h-160q-179 0 -253.5 109.5t-74.5 391.5zM256 479q0 -233 44.5 -296.5t168.5 -63.5h86q124 0 168.5 63.5t44.5 296.5v525q0 234 -44.5 298 t-168.5 64h-86q-124 0 -168.5 -64t-44.5 -298v-525z" />
30
+ <glyph unicode="1" d="M141 1034l369 451h172v-1485h-141v1323l-308 -377z" />
31
+ <glyph unicode="2" d="M109 0v195q0 113 13.5 188.5t41.5 118.5q51 80 288 172h1q23 9 66 25q163 62 194 104q18 25 26.5 74t8.5 127v116q0 132 -45.5 189t-151.5 57h-80q-116 0 -157.5 -55t-41.5 -246v-51h-145v43q0 252 73.5 349t254.5 97h120q180 0 253 -90t73 -326v-149q0 -74 -11.5 -122.5 t-37.5 -86.5q-58 -83 -278 -157q-76 -26 -117 -42q-120 -44 -163.5 -111t-43.5 -224v-54h641v-141h-782z" />
32
+ <glyph unicode="3" d="M111 428v59h147v-69q0 -189 41.5 -244t159.5 -55h80q107 0 152.5 56.5t45.5 189.5v114q0 125 -45 169t-170 44h-100v133h108q109 0 156 46.5t47 152.5v96q0 132 -43.5 189t-144.5 57h-78q-110 0 -149 -54.5t-39 -246.5v-27h-142v19q0 251 71.5 348.5t244.5 97.5h114 q172 0 244 -90.5t72 -316.5q0 -165 -42 -233t-147 -93q109 -40 156 -116t47 -216q0 -265 -73.5 -360.5t-260.5 -95.5h-121q-183 0 -257 97t-74 349z" />
33
+ <glyph unicode="4" d="M80 340v207l534 938h197v-1006h137v-139h-137v-340h-135v340h-596zM193 479h483v846z" />
34
+ <glyph unicode="5" d="M123 387v39h145v-33q0 -168 40.5 -221t154.5 -53h80q104 0 149 56.5t45 189.5v165q0 225 -47.5 283.5t-191.5 58.5q-94 0 -148.5 -34.5t-66.5 -102.5h-125v750h690v-139h-553v-445q32 55 95.5 82t158.5 27q180 0 262 -95.5t82 -304.5v-172q0 -265 -71.5 -360.5 t-254.5 -95.5h-121q-173 0 -248 93.5t-75 311.5z" />
35
+ <glyph unicode="6" d="M111 428v629q0 253 73.5 349.5t255.5 96.5h142q158 0 235.5 -89t77.5 -273v-15h-139v19q0 120 -43.5 170.5t-147.5 50.5h-116q-117 0 -158 -55t-41 -246v-281q62 69 133 98t184 29q190 0 271.5 -78.5t81.5 -261.5v-143q0 -253 -74 -349.5t-256 -96.5h-150 q-182 0 -255.5 96.5t-73.5 349.5zM258 416q0 -190 41.5 -244.5t157.5 -54.5h121q116 0 158 55.5t42 243.5v51q0 189 -41.5 244t-158.5 55h-121q-117 0 -158 -54.5t-41 -244.5v-51z" />
36
+ <glyph unicode="7" d="M125 1346v139h739v-225l-502 -1260h-155l538 1346h-620z" />
37
+ <glyph unicode="8" d="M100 438q0 140 47 216t156 116q-105 25 -146.5 93t-41.5 233q0 227 71 317t242 90h166q171 0 242 -90t71 -317q0 -165 -41.5 -233t-146.5 -93q109 -40 156 -116t47 -216q0 -265 -73.5 -360.5t-260.5 -95.5h-154q-187 0 -260.5 95.5t-73.5 360.5zM256 360 q0 -134 47 -191.5t156 -57.5h106q108 0 155.5 58.5t47.5 190.5v117q0 116 -51 165.5t-170 49.5h-72q-118 0 -168.5 -49t-50.5 -166v-117zM258 1032q0 -104 48 -150t157 -46h96q109 0 157 46t48 150v144q0 104 -48 150t-157 46h-96q-109 0 -157 -46t-48 -150v-144z" />
38
+ <glyph unicode="9" d="M94 342v16h142v-18q0 -122 42 -171.5t146 -49.5h147q117 0 158 54t41 245v295q-62 -68 -132.5 -96.5t-182.5 -28.5q-190 0 -272.5 78t-82.5 258v133q0 253 74 349.5t256 96.5h150q182 0 255.5 -96.5t73.5 -349.5v-629q0 -253 -73.5 -349.5t-255.5 -96.5h-172 q-160 0 -237 88.5t-77 271.5zM244 1024q0 -186 41 -239.5t157 -53.5h121q117 0 158 53.5t41 239.5v51q0 186 -41 238.5t-158 52.5h-121q-117 0 -157.5 -52.5t-40.5 -238.5v-51z" />
39
+ <glyph unicode=":" horiz-adv-x="559" d="M205 0v199h151v-199h-151zM205 840v198h151v-198h-151z" />
40
+ <glyph unicode=";" horiz-adv-x="559" d="M195 -139q38 2 52.5 17t14.5 52v70h-57v199h151v-234q0 -100 -30 -143t-99 -43q-10 0 -18 0.5t-14 1.5v80zM205 840v198h151v-198h-151z" />
41
+ <glyph unicode="&#x3c;" horiz-adv-x="1706" d="M264 569v82l1178 484v-109l-1022 -416l1022 -413v-109z" />
42
+ <glyph unicode="=" horiz-adv-x="1706" d="M254 375v98h1198v-98h-1198zM254 748v98h1198v-98h-1198z" />
43
+ <glyph unicode="&#x3e;" horiz-adv-x="1706" d="M264 88v109l1022 413l-1022 416v109l1178 -484v-82z" />
44
+ <glyph unicode="?" horiz-adv-x="930" d="M68 1026v125q0 184 72 268t229 84h157q165 0 238.5 -77t73.5 -252v-148q0 -129 -31 -205t-100 -119q-50 -31 -133 -65q-23 -10 -33 -14q-63 -30 -77.5 -55t-14.5 -72v-107h-144v125q0 53 8 86t27 59q35 49 146 99q44 21 67 33q90 46 116.5 89t26.5 162v121 q0 122 -41.5 161.5t-162.5 39.5h-103q-99 0 -143.5 -45.5t-44.5 -147.5v-145h-133zM307 0v186h139v-186h-139z" />
45
+ <glyph unicode="@" horiz-adv-x="2048" d="M117 537q0 204 86 381.5t252 314.5q132 109 298.5 165t360.5 56q162 0 308 -44t249 -124q129 -99 194.5 -228t65.5 -280q0 -171 -62 -309.5t-181 -232.5q-70 -54 -149 -82.5t-161 -28.5q-97 0 -144.5 37.5t-47.5 113.5q0 4 1 14t1 15q-51 -87 -127 -133.5t-168 -46.5 q-153 0 -233 83.5t-80 244.5q0 230 135 388t329 158q94 0 158 -41t96 -122l60 125h94l-139 -562q-10 -44 -13.5 -62.5t-3.5 -29.5q0 -43 28.5 -67.5t78.5 -24.5q52 0 106.5 21t104.5 61q97 77 151 204.5t54 282.5q0 254 -198 417t-509 163q-175 0 -320 -49.5t-262 -149.5 q-147 -126 -222 -290.5t-75 -362.5q0 -174 60 -305t184 -232q102 -82 244 -128t301 -46q171 0 334.5 49.5t300.5 143.5l39 -55q-147 -111 -311 -166.5t-343 -55.5q-191 0 -347 46.5t-275 138.5q-155 118 -229 273.5t-74 361.5zM702 444q0 -111 55 -173t152 -62 q107 0 189.5 71.5t111.5 188.5l62 248q-18 93 -75.5 145.5t-139.5 52.5q-154 0 -254.5 -133.5t-100.5 -337.5z" />
46
+ <glyph unicode="A" horiz-adv-x="995" d="M-2 0l426 1485h172l401 -1485h-159l-84 319h-516l-93 -319h-147zM276 457h441l-211 827z" />
47
+ <glyph unicode="B" horiz-adv-x="1053" d="M123 0v1485h389q255 0 339.5 -67t84.5 -244v-130q0 -108 -41 -168t-137 -94q108 -29 157.5 -101.5t49.5 -203.5v-141q0 -186 -93.5 -261t-330.5 -75h-418zM270 137h238q187 0 247 46t60 169v135q0 125 -60.5 171.5t-246.5 46.5h-238v-568zM270 848h228q178 0 235.5 38 t57.5 142v164q0 88 -56.5 121t-236.5 33h-228v-498z" />
48
+ <glyph unicode="C" horiz-adv-x="1006" d="M109 449v51v499q0 268 90.5 386t294.5 118h77q202 0 289.5 -99.5t87.5 -328.5q0 -28 -0.5 -42.5t-1.5 -26.5h-158v18q0 193 -48 262.5t-173 69.5h-80q-127 0 -175 -72t-48 -285v-499q0 -250 43.5 -311.5t179.5 -61.5h80q134 0 177.5 59.5t43.5 276.5v37l156 -1 q1 -15 1.5 -33.5t0.5 -53.5q0 -220 -85 -325t-263 -105h-143q-95 0 -169 33.5t-114 95.5q-34 53 -48.5 123t-14.5 215z" />
49
+ <glyph unicode="D" horiz-adv-x="1118" d="M123 0v1485h373q287 0 400.5 -118t113.5 -421v-409q0 -303 -113.5 -420t-400.5 -117h-373zM270 137h197q130 0 203.5 20.5t113.5 65.5q38 46 54 111.5t16 208.5v399q0 142 -16 208t-54 112q-40 45 -113.5 65.5t-203.5 20.5h-197v-1211z" />
50
+ <glyph unicode="E" horiz-adv-x="840" d="M123 0v1485h663v-144h-516v-497h480v-144h-480v-557h516v-143h-663z" />
51
+ <glyph unicode="F" horiz-adv-x="782" d="M123 0v1485h639v-144h-492v-518h453v-143h-453v-680h-147z" />
52
+ <glyph unicode="G" horiz-adv-x="1090" d="M109 449v51v499q0 268 90.5 386t294.5 118h110q199 0 287 -95.5t88 -313.5v-50l-158 1q-2 179 -50 245t-171 66h-113q-127 0 -175 -72t-48 -285v-499q0 -250 43.5 -311.5t179.5 -61.5h127q136 0 179 61t43 312v96h-261v143h416v-290q0 -145 -14.5 -215t-48.5 -123 q-40 -62 -114 -95.5t-169 -33.5h-190q-95 0 -169 33.5t-114 95.5q-34 53 -48.5 123t-14.5 215z" />
53
+ <glyph unicode="H" horiz-adv-x="1133" d="M123 0v1485h147v-645h592v645h148v-1485h-148v696h-592v-696h-147z" />
54
+ <glyph unicode="I" horiz-adv-x="403" d="M127 0v1485h147v-1485h-147z" />
55
+ <glyph unicode="J" horiz-adv-x="868" d="M25 328v172h147v-117q0 -156 45 -209t168 -53q124 0 170.5 54t46.5 208v1102h148v-1157q0 -197 -78.5 -271.5t-284.5 -74.5t-284 74.5t-78 271.5z" />
56
+ <glyph unicode="K" horiz-adv-x="1006" d="M123 0v1485h147v-639h76l475 639h164l-524 -705l592 -780h-185l-534 705h-64v-705h-147z" />
57
+ <glyph unicode="L" horiz-adv-x="702" d="M123 0v1485h147v-1340h441v-145h-588z" />
58
+ <glyph unicode="M" horiz-adv-x="1565" d="M123 0v1485h235l414 -1307l445 1307h225v-1485h-135v1358l-461 -1358h-150l-438 1358v-1358h-135z" />
59
+ <glyph unicode="N" horiz-adv-x="1157" d="M123 0v1485h217l551 -1319v1319h143v-1485h-225l-543 1296v-1296h-143z" />
60
+ <glyph unicode="O" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -267 -91 -384t-294 -117h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q141 0 193.5 71.5t52.5 284.5v516q0 214 -52.5 285.5t-193.5 71.5h-90 q-141 0 -193.5 -71.5t-52.5 -285.5v-516z" />
61
+ <glyph unicode="P" horiz-adv-x="1006" d="M123 0v1485h399q256 0 339 -77.5t83 -291.5v-170q0 -214 -83 -291t-339 -77h-252v-578h-147zM270 715h230q181 0 232.5 40t51.5 150v254q0 109 -49 148t-235 39h-230v-631z" />
62
+ <glyph unicode="Q" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -83 -5.5 -139t-17.5 -100l121 -99l-74 -108l-100 84q-43 -69 -121 -104t-188 -35h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q81 0 131.5 23t75.5 71 l-330 273l76 106l289 -240q2 29 3 56.5t1 66.5v516q0 214 -52.5 285.5t-193.5 71.5h-90q-141 0 -193.5 -71.5t-52.5 -285.5v-516z" />
63
+ <glyph unicode="R" horiz-adv-x="1063" d="M123 0v1485h418q257 0 340.5 -78t83.5 -291v-137q0 -143 -56 -217.5t-174 -89.5q110 -22 161.5 -96t51.5 -211v-365h-147v297q0 177 -56.5 236t-220.5 59h-254v-592h-147zM270 735h248q182 0 233.5 47.5t51.5 182.5v192q0 110 -48.5 149.5t-236.5 39.5h-248v-611z" />
64
+ <glyph unicode="S" d="M80 406v75h153v-125q0 -130 44.5 -179.5t158.5 -49.5h146q106 0 147 42.5t41 156.5v127q0 59 -5 86.5t-17 50.5q-30 60 -253 95q-45 7 -71 11q-8 2 -21 4q-144 25 -182 48q-58 36 -85 97t-27 152v185q0 164 86.5 242.5t267.5 78.5h106q194 0 276.5 -87t82.5 -294v-43 h-154v49q0 131 -43 179.5t-158 48.5h-120q-107 0 -148 -42t-41 -155v-160q0 -123 205 -152q47 -7 74 -11q233 -38 309 -105.5t76 -214.5v-213q0 -164 -86.5 -242.5t-268.5 -78.5h-133q-203 0 -281.5 89t-78.5 335z" />
65
+ <glyph unicode="T" horiz-adv-x="811" d="M14 1339v144h783v-144h-318v-1339h-147v1339h-318z" />
66
+ <glyph unicode="U" horiz-adv-x="1063" d="M119 342v1143h147v-1071q0 -178 50 -232.5t198 -54.5h43q144 0 192 52t48 235v1071h147v-1143q0 -192 -92.5 -276t-302.5 -84h-35q-210 0 -302.5 84t-92.5 276z" />
67
+ <glyph unicode="V" horiz-adv-x="973" d="M12 1485h158l307 -1286l336 1286h148l-402 -1485h-172z" />
68
+ <glyph unicode="W" horiz-adv-x="1565" d="M20 1485h148l264 -1295l277 1295h147l264 -1295l275 1295h147l-340 -1485h-172l-250 1190l-266 -1190h-172z" />
69
+ <glyph unicode="X" horiz-adv-x="920" d="M4 0l361 780l-336 705h157l281 -611l276 611h146l-334 -733l360 -752h-161l-303 657l-299 -657h-148z" />
70
+ <glyph unicode="Y" horiz-adv-x="872" d="M-18 1485h161l299 -717l299 717h148l-373 -864v-621h-145v621z" />
71
+ <glyph unicode="Z" horiz-adv-x="829" d="M43 0v137l578 1204h-558v144h709v-139l-577 -1203h587v-143h-739z" />
72
+ <glyph unicode="[" horiz-adv-x="645" d="M233 0v1485h271v-119h-137v-1247h137v-119h-271z" />
73
+ <glyph unicode="\" horiz-adv-x="494" d="M-25 1503h113l485 -1693h-112z" />
74
+ <glyph unicode="]" horiz-adv-x="645" d="M141 0v119h138v1247h-138v119h271v-1485h-271z" />
75
+ <glyph unicode="^" horiz-adv-x="2048" d="M422 901l532 557h140l530 -557h-143l-457 455l-459 -455h-143z" />
76
+ <glyph unicode="_" d="M0 -383h1024v-100h-1024v100z" />
77
+ <glyph unicode="`" d="M262 1518h178l209 -351h-106z" />
78
+ <glyph unicode="a" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M229 301q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5z" />
79
+ <glyph unicode="b" horiz-adv-x="877" d="M121 0v1511h133v-585q42 65 104.5 98t143.5 33q150 0 216 -102t66 -341v-159q0 -260 -64 -366.5t-214 -106.5q-86 0 -148 33t-112 106v-121h-125zM254 436q0 -188 47 -257.5t164 -69.5q98 0 138 70t40 251v178q0 182 -40 252t-138 70q-117 0 -164 -69.5t-47 -258.5v-166z " />
80
+ <glyph unicode="c" horiz-adv-x="829" d="M96 397v246q0 231 76 322.5t268 91.5q161 0 231 -71.5t70 -235.5v-52h-133v19q0 113 -41 160t-141 47q-111 0 -149.5 -51t-38.5 -230v-248q0 -178 40 -230t154 -52q112 0 153.5 46.5t41.5 182.5v41h137v-43q0 -189 -77 -273.5t-249 -84.5q-190 0 -266 91.5t-76 323.5z " />
81
+ <glyph unicode="d" horiz-adv-x="877" d="M92 455v159q0 238 67 340.5t218 102.5q80 0 141.5 -33t104.5 -98v585h133v-1511h-123v121q-50 -72 -113 -105.5t-149 -33.5q-151 0 -215 106.5t-64 366.5zM236 430q0 -183 39.5 -252t136.5 -69q116 0 163.5 69.5t47.5 257.5v166q0 189 -47.5 258.5t-163.5 69.5 q-97 0 -136.5 -69.5t-39.5 -252.5v-178z" />
82
+ <glyph unicode="e" horiz-adv-x="858" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-149h-542v-99q0 -181 40 -230.5t160 -49.5q126 0 171.5 37t45.5 137v33h123v-35q0 -162 -79.5 -233.5t-260.5 -71.5q-189 0 -265.5 92t-76.5 323zM238 623h409v65q0 144 -43.5 195t-161.5 51 q-117 0 -160.5 -51.5t-43.5 -194.5v-65z" />
83
+ <glyph unicode="f" horiz-adv-x="494" d="M29 915v123h127v185q0 151 66.5 219.5t213.5 68.5q24 0 73 -3q5 -1 7 -1v-118q-14 2 -29.5 3t-44.5 1q-85 0 -119 -39t-34 -142v-174h227v-123h-227v-915h-133v915h-127z" />
84
+ <glyph unicode="g" horiz-adv-x="877" d="M92 483v101q0 260 64 366.5t215 106.5q85 0 148.5 -34.5t113.5 -107.5v123h123v-1075q0 -190 -75 -268t-257 -78q-155 0 -232 53.5t-77 161.5v53h137q0 -4 -1 -12t-1 -12q0 -65 40.5 -94t131.5 -29q117 0 159 46t42 216v172q-43 -66 -104.5 -98.5t-141.5 -32.5 q-151 0 -218 102.5t-67 339.5zM236 489q0 -182 39.5 -251.5t136.5 -69.5q116 0 163.5 69.5t47.5 258.5v106q0 189 -47.5 258.5t-163.5 69.5q-97 0 -136.5 -69.5t-39.5 -252.5v-119z" />
85
+ <glyph unicode="h" horiz-adv-x="887" d="M125 0v1511h133v-577q42 64 101 93.5t143 29.5q145 0 208.5 -83.5t63.5 -277.5v-696h-133v659q0 156 -38 216.5t-130 60.5q-116 0 -165.5 -79t-49.5 -275v-582h-133z" />
86
+ <glyph unicode="i" horiz-adv-x="350" d="M109 0v1038h133v-1038h-133zM109 1311v174h133v-174h-133z" />
87
+ <glyph unicode="j" horiz-adv-x="350" d="M0 -258h18q56 0 75.5 27t19.5 139v1130h133v-1128q0 -176 -43.5 -235.5t-157.5 -59.5q-9 0 -21 1.5t-24 5.5v120zM113 1311v174h133v-174h-133z" />
88
+ <glyph unicode="k" horiz-adv-x="750" d="M119 0v1511h133v-880h63l267 407h145l-307 -467l368 -571h-157l-316 494h-63v-494h-133z" />
89
+ <glyph unicode="l" horiz-adv-x="360" d="M115 0v1511h133v-1511h-133z" />
90
+ <glyph unicode="m" horiz-adv-x="1337" d="M121 0v1038h123v-120q38 70 98 104.5t143 34.5q93 0 152 -39t84 -115q38 78 99.5 116t150.5 38q138 0 198 -82.5t60 -278.5v-696h-131v659q0 154 -36.5 215.5t-123.5 61.5q-107 0 -152 -78t-45 -276v-582h-133v659q0 157 -35 217t-120 60q-108 0 -153.5 -79t-45.5 -275 v-582h-133z" />
91
+ <glyph unicode="n" horiz-adv-x="883" d="M121 0v1038h123v-120q39 70 102 104.5t152 34.5q145 0 208.5 -83.5t63.5 -277.5v-696h-133v659q0 156 -38 216.5t-130 60.5q-116 0 -165.5 -79t-49.5 -275v-582h-133z" />
92
+ <glyph unicode="o" horiz-adv-x="877" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92t-76.5 323zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229t-160 52q-118 0 -159 -53t-41 -228v-248z" />
93
+ <glyph unicode="p" horiz-adv-x="877" d="M121 -385v1423h125v-123q50 74 112.5 108t147.5 34q150 0 214 -106.5t64 -366.5v-160q0 -239 -66 -340.5t-216 -101.5q-81 0 -143.5 32.5t-104.5 98.5v-498h-133zM254 436q0 -188 47 -257.5t164 -69.5q98 0 138 70t40 251v178q0 182 -40 252t-138 70q-117 0 -164 -69.5 t-47 -258.5v-166z" />
94
+ <glyph unicode="q" horiz-adv-x="877" d="M90 424v160q0 261 63.5 367t213.5 106q85 0 148.5 -34.5t113.5 -107.5v123h123v-1423h-134v498q-42 -66 -103.5 -98.5t-141.5 -32.5q-151 0 -217 101.5t-66 340.5zM231 430q0 -183 40 -252t137 -69q116 0 163 69.5t47 257.5v166q0 189 -47 258.5t-163 69.5 q-97 0 -137 -69.5t-40 -252.5v-178z" />
95
+ <glyph unicode="r" horiz-adv-x="707" d="M117 0v1038h123v-135q37 79 96.5 116.5t146.5 37.5q114 0 164.5 -66.5t50.5 -216.5v-80h-123v49q0 109 -30 154t-101 45q-105 0 -149.5 -63.5t-44.5 -223.5v-655h-133z" />
96
+ <glyph unicode="s" horiz-adv-x="815" d="M84 225v107h131v-64q0 -104 28 -134t107 -30h92q82 0 115 29.5t33 102.5v98q0 110 -181 139q-31 5 -48 8q-181 31 -223 70t-42 129v139q0 121 68 179.5t207 58.5h92q144 0 199 -52t55 -192v-43h-131v29q0 76 -30 105.5t-105 29.5h-68q-82 0 -114.5 -28.5t-32.5 -100.5 v-100q0 -82 205 -112q56 -8 89 -13q107 -17 153 -68t46 -154v-139q0 -120 -67.5 -178.5t-206.5 -58.5h-117q-144 0 -199 52t-55 191z" />
97
+ <glyph unicode="t" horiz-adv-x="692" d="M37 915v123h108v252h134v-252h337v-123h-337v-593q0 -143 26 -181.5t98 -38.5q66 0 93.5 36t27.5 122v96h121v-73q0 -162 -60 -231.5t-198 -69.5q-134 0 -188 63.5t-54 235.5v634h-108z" />
98
+ <glyph unicode="u" horiz-adv-x="883" d="M113 342v696h133v-659q0 -154 38.5 -215.5t131.5 -61.5q115 0 164 78.5t49 276.5v581h133v-1038h-123v121q-40 -70 -103 -104.5t-151 -34.5q-145 0 -208.5 83t-63.5 277z" />
99
+ <glyph unicode="v" horiz-adv-x="793" d="M35 1038h139l225 -909l226 909h131l-267 -1038h-188z" />
100
+ <glyph unicode="w" horiz-adv-x="1255" d="M23 1038h137l182 -905l197 905h176l196 -905l183 905h137l-225 -1038h-179l-200 926l-199 -926h-178z" />
101
+ <glyph unicode="x" horiz-adv-x="772" d="M4 0l305 541l-278 497h151l205 -379l203 379h139l-274 -487l311 -551h-152l-235 418l-236 -418h-139z" />
102
+ <glyph unicode="y" horiz-adv-x="793" d="M35 1038h139l225 -909l226 909h131l-267 -1038q-57 -226 -120.5 -305.5t-169.5 -79.5q-21 0 -43.5 2.5t-46.5 7.5v125q19 -2 30 -3t19 -1q70 0 112 40.5t66 131.5l20 82h-55z" />
103
+ <glyph unicode="z" horiz-adv-x="678" d="M49 0v137l438 778h-393v123h527v-135l-439 -780h439v-123h-572z" />
104
+ <glyph unicode="{" d="M174 477v109q9 0 23.5 -1t21.5 -1q138 0 195 63t57 217v242q0 223 70 297t266 74h47v-107h-37q-131 0 -177 -49.5t-46 -204.5v-242q0 -168 -43.5 -240t-153.5 -104q110 -31 153.5 -103t43.5 -241v-241q0 -155 45 -204.5t170 -49.5q7 0 22 1t23 1v-107h-47 q-197 0 -266.5 72.5t-69.5 296.5v244q0 154 -57 217t-195 63q-7 0 -21.5 -1t-23.5 -1z" />
105
+ <glyph unicode="|" d="M459 -483v2048h108v-2048h-108z" />
106
+ <glyph unicode="}" d="M172 -307h39q130 0 175.5 49t45.5 203v241q0 171 43 242t154 102q-111 32 -154 103t-43 241v242q0 157 -45 206.5t-170 49.5q-7 0 -22 -1t-23 -1v107h47q196 0 266 -74t70 -297v-242q0 -154 57 -217t195 -63q7 0 22 1t23 1v-109q-8 0 -23 1t-22 1q-138 0 -195 -63 t-57 -217v-244q0 -223 -69.5 -296t-266.5 -73h-47v107z" />
107
+ <glyph unicode="~" horiz-adv-x="1706" d="M178 471v113q106 73 202 109t185 36q104 0 272 -61q11 -4 18 -7q9 -3 31 -11q167 -60 257 -60q85 0 177 38t210 122v-113q-102 -72 -198 -107.5t-189 -35.5q-99 0 -260 57q-20 7 -29 10q-5 2 -16 6q-176 64 -273 64q-83 0 -175 -38t-212 -122z" />
108
+ <glyph unicode="&#xa0;" />
109
+ <glyph unicode="&#xa1;" horiz-adv-x="512" d="M186 0v1094h140v-1094h-140zM186 1298v187h140v-187h-140z" />
110
+ <glyph unicode="&#xa2;" d="M176 397v246q0 225 75.5 320.5t252.5 95.5q17 0 40.5 -1.5t53.5 -4.5l61 229h101l-70 -256q69 -29 100 -94t31 -182v-52h-131v19q0 60 -10 98.5t-31 58.5l-200 -757q20 -1 44 -2.5t27 -1.5q104 0 146.5 51t42.5 178v41h137v-43q0 -194 -79 -277t-265 -83q-23 0 -44.5 2.5 t-43.5 7.5l-68 -252h-98l76 278q-76 36 -112 129.5t-36 251.5zM319 395q0 -111 10 -162t33 -69l203 758q-4 0 -12 1q-36 3 -51 3q-106 0 -144.5 -53.5t-38.5 -229.5v-248z" />
111
+ <glyph unicode="&#xa3;" d="M66 0v141q99 12 133 57t34 179v129l-6 84h-161v137h155l-12 315q0 11 -1 31t-1 29q0 208 77 295.5t259 87.5h65q174 0 247 -77t73 -267v-84h-137v57q0 139 -40.5 186.5t-150.5 47.5h-51q-113 0 -156 -54t-43 -209q0 -38 0.5 -59t1.5 -40l13 -259h378v-137h-372 q3 -87 4.5 -137.5t1.5 -65.5q0 -96 -21 -152.5t-69 -93.5h659v-141h-880z" />
112
+ <glyph unicode="&#xa4;" horiz-adv-x="1241" d="M90 420l205 207q-45 61 -67.5 125.5t-22.5 132.5t22.5 133.5t67.5 126.5l-205 205l66 65l204 -205q60 46 124.5 68t136.5 22t138.5 -22.5t123.5 -67.5l204 205l66 -65l-205 -205q44 -59 66 -125t22 -135t-22 -134t-66 -124l205 -207l-66 -66l-204 205q-59 -45 -125 -67.5 t-137 -22.5t-135 22t-126 68l-204 -205zM297 887q0 -134 96 -230t230 -96q133 0 227 96t94 230q0 133 -94 227t-227 94q-134 0 -230 -94.5t-96 -226.5z" />
113
+ <glyph unicode="&#xa5;" d="M33 557v86h403l-110 248h-293v86h254l-230 508h162l301 -717l297 717h150l-222 -508h246v-86h-280l-109 -248h389v-86h-399v-557h-146v557h-413z" />
114
+ <glyph unicode="&#xa6;" d="M459 -350v758h108v-758h-108zM459 674v758h108v-758h-108z" />
115
+ <glyph unicode="&#xa7;" d="M115 803q0 76 31.5 138t97.5 116q-33 47 -49.5 93.5t-16.5 94.5q0 128 86 193t254 65q153 0 226 -57t73 -176v-84h-129v51q0 73 -39 106t-125 33q-107 0 -157 -30.5t-50 -96.5q0 -59 37 -99t168 -103l150 -74q129 -64 181 -130t52 -161q0 -77 -31.5 -138.5t-97.5 -115.5 q33 -47 49.5 -94.5t16.5 -95.5q0 -127 -88 -195t-252 -68q-176 0 -255 56.5t-79 181.5v109h129v-76q0 -77 47 -113.5t145 -36.5q103 0 158 36t55 104q0 56 -34.5 95t-169.5 105l-150 74q-125 60 -179 128.5t-54 164.5zM248 811q0 -54 39 -96.5t141 -91.5l258 -127 q43 32 64.5 76.5t21.5 101.5q0 53 -36 92.5t-144 93.5l-262 127q-42 -32 -62 -75.5t-20 -100.5z" />
116
+ <glyph unicode="&#xa8;" d="M272 1233v186h160v-186h-160zM592 1233v186h160v-186h-160z" />
117
+ <glyph unicode="&#xa9;" horiz-adv-x="1706" d="M121 723q0 145 56.5 279.5t162.5 242.5q101 103 232 157t280 54t283.5 -55.5t238.5 -159.5q102 -102 156.5 -235.5t54.5 -282.5q0 -150 -53.5 -281t-157.5 -233q-107 -106 -242 -162.5t-280 -56.5t-278 55.5t-238 161.5q-105 104 -160 237t-55 279zM201 723 q0 -129 49.5 -247t142.5 -212q94 -93 212 -142.5t247 -49.5q130 0 250.5 50t216.5 144q91 89 138.5 206t47.5 251q0 132 -48.5 251t-139.5 210q-94 94 -213 143t-252 49q-132 0 -249 -48t-208 -140q-94 -96 -144 -215.5t-50 -249.5zM469 727q0 203 107.5 326t283.5 123 q135 0 226.5 -72t103.5 -189h-117q-18 80 -75 124t-142 44q-122 0 -190 -95t-68 -267q0 -166 69 -260t189 -94q89 0 151 50.5t78 137.5h115q-11 -125 -108.5 -205t-241.5 -80q-177 0 -279 122t-102 335z" />
118
+ <glyph unicode="&#xaa;" horiz-adv-x="633" d="M68 928v98q0 91 52.5 138.5t153.5 47.5q63 0 105.5 -15.5t69.5 -47.5v113q0 94 -26.5 122.5t-107.5 28.5q-66 0 -93 -21t-27 -71v-35h-105v33q0 95 55 138.5t174 43.5q129 0 178.5 -46t49.5 -169v-528h-98v65q-27 -42 -70.5 -61t-116.5 -19q-99 0 -146.5 45.5 t-47.5 139.5zM172 969q0 -76 29.5 -108t97.5 -32q84 0 119 35t35 121q0 82 -29.5 110.5t-112.5 28.5q-82 0 -110.5 -31t-28.5 -124z" />
119
+ <glyph unicode="&#xab;" horiz-adv-x="786" d="M96 518l178 324h144l-176 -324l176 -321h-144zM393 518l180 324h144l-178 -324l178 -321h-144z" />
120
+ <glyph unicode="&#xac;" horiz-adv-x="1706" d="M254 758v100h1198v-502h-96v402h-1102z" />
121
+ <glyph unicode="&#xad;" horiz-adv-x="616" d="M84 467v129h448v-129h-448z" />
122
+ <glyph unicode="&#xae;" horiz-adv-x="1706" d="M121 723q0 144 56.5 279.5t162.5 242.5q101 103 232 157t280 54q152 0 285.5 -55t236.5 -160q102 -102 156.5 -235.5t54.5 -282.5q0 -150 -53.5 -281t-157.5 -233q-107 -106 -242 -162.5t-280 -56.5q-147 0 -279.5 55.5t-236.5 161.5q-105 104 -160 237t-55 279zM201 723 q0 -129 49.5 -247t142.5 -212q94 -93 212 -142.5t247 -49.5q130 0 250.5 50t216.5 144q91 89 138.5 204.5t47.5 250.5q0 134 -48 253t-138 210q-94 93 -213.5 142.5t-253.5 49.5q-130 0 -246.5 -48t-208.5 -140q-95 -97 -145.5 -216.5t-50.5 -248.5zM565 313v844h309 q178 0 263.5 -57t85.5 -176q0 -89 -54 -149t-145 -73l188 -389h-145l-178 371h-197v-371h-127zM692 768h158q134 0 188 33.5t54 113.5q0 83 -57 119.5t-185 36.5h-158v-303z" />
123
+ <glyph unicode="&#xaf;" d="M254 1264v125h516v-125h-516z" />
124
+ <glyph unicode="&#xb0;" horiz-adv-x="674" d="M59 1174q0 116 81.5 197t197.5 81q115 0 195.5 -81.5t80.5 -196.5t-81.5 -197t-196.5 -82q-117 0 -197 81t-80 198zM129 1174q0 -87 61 -147t148 -60t147 60t60 147q0 86 -60.5 147t-146.5 61t-147.5 -61t-61.5 -147z" />
125
+ <glyph unicode="&#xb1;" horiz-adv-x="1706" d="M254 51v99h1198v-99h-1198zM254 723v98h551v348h98v-348h549v-98h-549v-348h-98v348h-551z" />
126
+ <glyph unicode="&#xb2;" horiz-adv-x="676" d="M72 594v117q0 70 9 114.5t28 69.5q18 27 55.5 48t135.5 55q15 5 43 15q108 37 128 62q11 14 17 44t6 77v70q0 79 -30 113t-99 34h-54q-76 0 -103.5 -32.5t-27.5 -147.5v-31h-96v27q0 150 49 208t168 58h78q119 0 167 -53t48 -195v-90q0 -45 -7.5 -74t-23.5 -51 q-40 -51 -186 -96l-75 -24q-79 -27 -107.5 -66.5t-28.5 -134.5v-33h422v-84h-516z" />
127
+ <glyph unicode="&#xb3;" horiz-adv-x="676" d="M74 850v37h96v-43q0 -113 27.5 -145.5t105.5 -32.5h53q71 0 101 33.5t30 113.5v68q0 75 -30 102t-113 27h-65v80h71q72 0 102.5 27.5t30.5 90.5v58q0 79 -28 113t-95 34h-53q-72 0 -97.5 -32.5t-25.5 -147.5v-16h-94v12q0 150 47 208t162 58h76q113 0 160 -54t47 -190 q0 -100 -27.5 -140.5t-95.5 -53.5q72 -25 102.5 -70.5t30.5 -130.5q0 -158 -48 -215t-171 -57h-80q-121 0 -170 57.5t-49 208.5z" />
128
+ <glyph unicode="&#xb4;" d="M375 1167l209 351h178l-281 -351h-106z" />
129
+ <glyph unicode="&#xb5;" horiz-adv-x="1110" d="M-111 -426l316 1491h139l-125 -592q-8 -39 -12 -73t-4 -66q0 -117 58 -180.5t167 -63.5q125 0 215 107.5t133 310.5l121 557h139l-164 -770q-12 -55 -17 -85t-5 -48q0 -33 17 -49.5t51 -16.5q7 0 16.5 0.5t19.5 1.5l-20 -110q-19 -5 -41 -8t-45 -3q-70 0 -103.5 36 t-33.5 110v14q-42 -77 -120 -119.5t-179 -42.5q-92 0 -161 40t-108 116l-114 -557h-140z" />
130
+ <glyph unicode="&#xb6;" d="M84 1130q0 157 107.5 253t285.5 96h463v-70h-127v-1409h-82v1409h-186v-1409h-84v782q-174 8 -275.5 102.5t-101.5 245.5z" />
131
+ <glyph unicode="&#xb7;" horiz-adv-x="512" d="M145 741q0 45 33 78t78 33q46 0 77.5 -32t31.5 -79q0 -46 -31.5 -77t-77.5 -31q-45 0 -78 31.5t-33 76.5z" />
132
+ <glyph unicode="&#xb8;" d="M299 -336q74 -17 136.5 -26t109.5 -9q60 0 90.5 20.5t30.5 61.5q0 52 -33 75.5t-107 23.5q-20 0 -30.5 -0.5t-20.5 -1.5v192h74v-106h22q112 0 169 -45t57 -132q0 -89 -62.5 -135.5t-183.5 -46.5q-45 0 -104.5 10t-147.5 33v86z" />
133
+ <glyph unicode="&#xb9;" horiz-adv-x="676" d="M94 1214l244 271h113v-891h-95v795l-202 -228z" />
134
+ <glyph unicode="&#xba;" horiz-adv-x="657" d="M72 1036v172q0 161 57 225t201 64q142 0 199 -63.5t57 -225.5v-172q0 -162 -57 -226.5t-199 -64.5q-143 0 -200.5 65t-57.5 226zM178 1034q0 -124 31 -160t121 -36q88 0 118.5 37t30.5 159v174q0 124 -30.5 160.5t-118.5 36.5q-90 0 -121 -37t-31 -160v-174z" />
135
+ <glyph unicode="&#xbb;" horiz-adv-x="786" d="M70 197l178 321l-178 324h145l178 -324l-178 -321h-145zM369 197l178 321l-178 324h143l180 -324l-180 -321h-143z" />
136
+ <glyph unicode="&#xbc;" horiz-adv-x="1632" d="M88 1233l231 252h109v-832h-88v742l-195 -211zM303 -18l897 1521h127l-895 -1521h-129zM1038 190v117l336 524h123v-563h88v-78h-88v-190h-84v190h-375zM1108 268h305v473z" />
137
+ <glyph unicode="&#xbd;" horiz-adv-x="1632" d="M88 1233l231 252h109v-832h-88v742l-195 -211zM303 -18l897 1521h127l-895 -1521h-129zM1055 0v109q0 64 8.5 106t26.5 66q18 25 53.5 45t128.5 51q10 3 29 10q115 38 135 64q11 13 16.5 39.5t5.5 70.5v66q0 74 -29 106.5t-96 32.5h-49q-73 0 -99 -31t-26 -139v-29h-92 v25q0 141 46.5 195.5t160.5 54.5h76q113 0 158.5 -50.5t45.5 -183.5v-84q0 -41 -7 -68t-23 -48q-36 -45 -171 -86q-51 -15 -79 -25q-75 -25 -102 -62t-27 -126v-29h403v-80h-493z" />
138
+ <glyph unicode="&#xbe;" horiz-adv-x="1632" d="M70 893v33h92v-39q0 -106 26.5 -137t100.5 -31h51q67 0 96 32t29 107v64q0 69 -28.5 93.5t-106.5 24.5h-64v76h68q69 0 99 26t30 85v53q0 74 -28 106.5t-91 32.5h-49q-69 0 -94 -30t-25 -140v-14h-90v10q0 141 45 195.5t154 54.5h73q108 0 153.5 -51t45.5 -176 q0 -92 -26.5 -130.5t-92.5 -52.5q69 -23 98 -65.5t29 -120.5q0 -148 -46 -202t-165 -54h-75q-116 0 -162.5 54t-46.5 196zM303 -18l897 1521h127l-895 -1521h-129zM1038 190v117l336 524h123v-563h88v-78h-88v-190h-84v190h-375zM1108 268h305v473z" />
139
+ <glyph unicode="&#xbf;" horiz-adv-x="930" d="M92 330v145q0 127 31 204t96 116q41 24 100 50t71 32q60 28 75.5 54t15.5 75v108h144v-125q0 -53 -8.5 -86t-26.5 -59q-35 -49 -150 -103q-41 -19 -63 -30q-90 -47 -117 -89.5t-27 -162.5v-119q0 -121 42 -161t163 -40h103q99 0 143.5 45.5t44.5 147.5v143h133v-125 q0 -183 -72 -266.5t-229 -83.5h-158q-164 0 -237.5 77t-73.5 253zM483 1317v186h140v-186h-140z" />
140
+ <glyph unicode="&#xc0;" horiz-adv-x="995" d="M-2 0l426 1485h172l401 -1485h-159l-84 319h-516l-93 -319h-147zM248 1964h178l209 -351h-106zM276 457h441l-211 827z" />
141
+ <glyph unicode="&#xc1;" horiz-adv-x="995" d="M-2 0l426 1485h172l401 -1485h-159l-84 319h-516l-93 -319h-147zM276 457h441l-211 827zM361 1613l209 351h178l-281 -351h-106z" />
142
+ <glyph unicode="&#xc2;" horiz-adv-x="995" d="M-2 0l426 1485h172l401 -1485h-159l-84 319h-516l-93 -319h-147zM211 1613l197 351h178l197 -351h-107l-178 244l-180 -244h-107zM276 457h441l-211 827z" />
143
+ <glyph unicode="&#xc3;" horiz-adv-x="995" d="M-2 0l426 1485h172l401 -1485h-159l-84 319h-516l-93 -319h-147zM207 1673q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5q36 0 60.5 17.5t36.5 52.5h88q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27 q-16 5 -29 7.5t-24 2.5q-35 0 -58.5 -15t-38.5 -48h-88zM276 457h441l-211 827z" />
144
+ <glyph unicode="&#xc4;" horiz-adv-x="995" d="M-2 0l426 1485h172l401 -1485h-159l-84 319h-516l-93 -319h-147zM258 1679v186h160v-186h-160zM276 457h441l-211 827zM578 1679v186h160v-186h-160z" />
145
+ <glyph unicode="&#xc5;" horiz-adv-x="995" d="M-2 0l418 1462h186l395 -1462h-159l-84 319h-516l-93 -319h-147zM276 457h441l-211 827zM283 1749q0 94 64.5 158.5t158.5 64.5q96 0 161.5 -64.5t65.5 -158.5q0 -95 -66 -161t-161 -66q-94 0 -158.5 66t-64.5 161zM379 1747q0 -55 37.5 -92t91.5 -37q55 0 92 37t37 92 q0 56 -37 93.5t-92 37.5q-54 0 -91.5 -38.5t-37.5 -92.5z" />
146
+ <glyph unicode="&#xc6;" horiz-adv-x="1380" d="M-49 0l555 1485h821v-144h-516v-501h479v-138h-479v-561h516v-141h-663v457h-396l-166 -457h-151zM317 596h347v745h-74z" />
147
+ <glyph unicode="&#xc7;" horiz-adv-x="1006" d="M109 449v51v499q0 268 90.5 386t294.5 118h77q202 0 289.5 -99.5t87.5 -328.5q0 -28 -0.5 -42.5t-1.5 -26.5h-158v18q0 193 -48 262.5t-173 69.5h-80q-127 0 -175 -72t-48 -285v-499q0 -250 43.5 -311.5t179.5 -61.5h80q134 0 177.5 59.5t43.5 276.5v37l156 -1 q1 -15 1.5 -33.5t0.5 -53.5q0 -220 -85 -325t-263 -105h-143q-95 0 -169 33.5t-114 95.5q-34 53 -48.5 123t-14.5 215zM309 -336q74 -17 136.5 -26t109.5 -9q60 0 90.5 20.5t30.5 61.5q0 52 -33 75.5t-107 23.5q-20 0 -30.5 -0.5t-20.5 -1.5v192h74v-106h22q112 0 169 -45 t57 -132q0 -89 -62.5 -135.5t-183.5 -46.5q-45 0 -104.5 10t-147.5 33v86z" />
148
+ <glyph unicode="&#xc8;" horiz-adv-x="840" d="M123 0v1485h663v-144h-516v-497h480v-144h-480v-557h516v-143h-663zM205 1964h178l209 -351h-106z" />
149
+ <glyph unicode="&#xc9;" horiz-adv-x="840" d="M123 0v1485h663v-144h-516v-497h480v-144h-480v-557h516v-143h-663zM318 1613l209 351h178l-281 -351h-106z" />
150
+ <glyph unicode="&#xca;" horiz-adv-x="840" d="M123 0v1485h663v-144h-516v-497h480v-144h-480v-557h516v-143h-663zM168 1613l197 351h178l197 -351h-107l-178 244l-180 -244h-107z" />
151
+ <glyph unicode="&#xcb;" horiz-adv-x="840" d="M123 0v1485h663v-144h-516v-497h480v-144h-480v-557h516v-143h-663zM215 1679v186h160v-186h-160zM535 1679v186h160v-186h-160z" />
152
+ <glyph unicode="&#xcc;" horiz-adv-x="403" d="M-47 1964h178l209 -351h-106zM127 0v1485h147v-1485h-147z" />
153
+ <glyph unicode="&#xcd;" horiz-adv-x="403" d="M66 1613l209 351h178l-281 -351h-106zM127 0v1485h147v-1485h-147z" />
154
+ <glyph unicode="&#xce;" horiz-adv-x="403" d="M-84 1613l197 351h178l197 -351h-107l-178 244l-180 -244h-107zM127 0v1485h147v-1485h-147z" />
155
+ <glyph unicode="&#xcf;" horiz-adv-x="403" d="M-37 1679v186h160v-186h-160zM127 0v1485h147v-1485h-147zM283 1679v186h160v-186h-160z" />
156
+ <glyph unicode="&#xd0;" horiz-adv-x="1124" d="M0 715v100h127v670h373q287 0 400.5 -118t113.5 -421v-409q0 -303 -113.5 -420t-400.5 -117h-373v715h-127zM274 137h197q131 0 205.5 20.5t114.5 65.5q36 44 51.5 108t15.5 212v399q0 147 -15.5 211.5t-51.5 108.5q-40 45 -114.5 65.5t-205.5 20.5h-197v-533h308v-100 h-308v-578z" />
157
+ <glyph unicode="&#xd1;" horiz-adv-x="1157" d="M123 0v1485h217l551 -1319v1319h143v-1485h-225l-543 1296v-1296h-143zM289 1673q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5q36 0 60.5 17.5t36.5 52.5h88q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27 q-16 5 -29 7.5t-24 2.5q-35 0 -58.5 -15t-38.5 -48h-88z" />
158
+ <glyph unicode="&#xd2;" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -267 -91 -384t-294 -117h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q141 0 193.5 71.5t52.5 284.5v516q0 214 -52.5 285.5t-193.5 71.5h-90 q-141 0 -193.5 -71.5t-52.5 -285.5v-516zM307 1964h178l209 -351h-106z" />
159
+ <glyph unicode="&#xd3;" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -267 -91 -384t-294 -117h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q141 0 193.5 71.5t52.5 284.5v516q0 214 -52.5 285.5t-193.5 71.5h-90 q-141 0 -193.5 -71.5t-52.5 -285.5v-516zM420 1613l209 351h178l-281 -351h-106z" />
160
+ <glyph unicode="&#xd4;" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -267 -91 -384t-294 -117h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q141 0 193.5 71.5t52.5 284.5v516q0 214 -52.5 285.5t-193.5 71.5h-90 q-141 0 -193.5 -71.5t-52.5 -285.5v-516zM270 1613l197 351h178l197 -351h-107l-178 244l-180 -244h-107z" />
161
+ <glyph unicode="&#xd5;" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -267 -91 -384t-294 -117h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q141 0 193.5 71.5t52.5 284.5v516q0 214 -52.5 285.5t-193.5 71.5h-90 q-141 0 -193.5 -71.5t-52.5 -285.5v-516zM266 1673q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5q36 0 60.5 17.5t36.5 52.5h88q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27q-16 5 -29 7.5t-24 2.5 q-35 0 -58.5 -15t-38.5 -48h-88z" />
162
+ <glyph unicode="&#xd6;" horiz-adv-x="1114" d="M109 483v516q0 268 90.5 386t294.5 118h127q203 0 294 -118t91 -386v-516q0 -267 -91 -384t-294 -117h-127q-204 0 -294.5 117t-90.5 384zM266 483q0 -213 52.5 -284.5t193.5 -71.5h90q141 0 193.5 71.5t52.5 284.5v516q0 214 -52.5 285.5t-193.5 71.5h-90 q-141 0 -193.5 -71.5t-52.5 -285.5v-516zM317 1679v186h160v-186h-160zM637 1679v186h160v-186h-160z" />
163
+ <glyph unicode="&#xd7;" horiz-adv-x="1706" d="M305 129l481 481l-481 482l70 69l481 -481l481 481l70 -69l-481 -482l481 -481l-70 -70l-481 482l-481 -482z" />
164
+ <glyph unicode="&#xd8;" horiz-adv-x="1114" d="M55 -84l115 221q-33 68 -47 143t-14 203v516q0 268 90.5 386t294.5 118h127q69 0 132 -17.5t111 -49.5l90 163l101 -43l-115 -217q35 -49 50.5 -126.5t15.5 -213.5v-516q0 -267 -91 -384t-294 -117h-127q-76 0 -137 17t-105 50l-96 -184zM260 481q0 -34 2.5 -73t7.5 -86 l521 976q-20 31 -69 47.5t-120 16.5h-90q-145 0 -198.5 -72t-53.5 -289v-520zM322 182q32 -32 77 -46.5t113 -14.5h90q146 0 199 72t53 288v520q0 40 -2 79.5t-6 78.5z" />
165
+ <glyph unicode="&#xd9;" horiz-adv-x="1063" d="M119 342v1143h147v-1071q0 -178 50 -232.5t198 -54.5h43q144 0 192 52t48 235v1071h147v-1143q0 -192 -92.5 -276t-302.5 -84h-35q-210 0 -302.5 84t-92.5 276zM282 1964h178l209 -351h-106z" />
166
+ <glyph unicode="&#xda;" horiz-adv-x="1063" d="M119 342v1143h147v-1071q0 -178 50 -232.5t198 -54.5h43q144 0 192 52t48 235v1071h147v-1143q0 -192 -92.5 -276t-302.5 -84h-35q-210 0 -302.5 84t-92.5 276zM395 1613l209 351h178l-281 -351h-106z" />
167
+ <glyph unicode="&#xdb;" horiz-adv-x="1063" d="M119 342v1143h147v-1071q0 -178 50 -232.5t198 -54.5h43q144 0 192 52t48 235v1071h147v-1143q0 -192 -92.5 -276t-302.5 -84h-35q-210 0 -302.5 84t-92.5 276zM245 1613l197 351h178l197 -351h-107l-178 244l-180 -244h-107z" />
168
+ <glyph unicode="&#xdc;" horiz-adv-x="1063" d="M119 342v1143h147v-1071q0 -178 50 -232.5t198 -54.5h43q144 0 192 52t48 235v1071h147v-1143q0 -192 -92.5 -276t-302.5 -84h-35q-210 0 -302.5 84t-92.5 276zM292 1679v186h160v-186h-160zM612 1679v186h160v-186h-160z" />
169
+ <glyph unicode="&#xdd;" horiz-adv-x="872" d="M-18 1485h161l299 -717l299 717h148l-373 -864v-621h-145v621zM299 1613l209 351h178l-281 -351h-106z" />
170
+ <glyph unicode="&#xde;" horiz-adv-x="1006" d="M123 0v1485h147v-289h252q256 0 339 -77.5t83 -291.5v-170q0 -214 -83 -291t-339 -77h-252v-289h-147zM270 426h230q181 0 232.5 40t51.5 150v254q0 109 -49 148t-235 39h-230v-631z" />
171
+ <glyph unicode="&#xdf;" horiz-adv-x="944" d="M125 0v1114q0 220 77 309.5t261 89.5q171 0 250.5 -89t79.5 -283q0 -146 -54 -219.5t-176 -96.5q149 -10 219 -90.5t70 -238.5v-154q0 -184 -76 -272t-233 -88q-48 0 -90.5 8t-81.5 24v129q41 -18 81 -27.5t78 -9.5q95 0 137 57t42 189v115q0 161 -67 222t-241 61h-30 v122q5 0 16 -1t16 -1q125 0 187.5 70.5t62.5 210.5q0 120 -46 179t-140 59q-115 0 -162 -68.5t-47 -247.5v-1073h-133z" />
172
+ <glyph unicode="&#xe0;" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M188 1518h178l209 -351h-106zM229 301q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5z" />
173
+ <glyph unicode="&#xe1;" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M229 301q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5zM301 1167l209 351h178l-281 -351h-106z" />
174
+ <glyph unicode="&#xe2;" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M151 1167l197 351h178l197 -351h-107l-178 244l-180 -244h-107zM229 301q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5z" />
175
+ <glyph unicode="&#xe3;" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M147 1227q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5q36 0 60.5 17.5t36.5 52.5h88q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27q-16 5 -29 7.5t-24 2.5q-35 0 -58.5 -15t-38.5 -48h-88zM229 301 q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5z" />
176
+ <glyph unicode="&#xe4;" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M198 1233v186h160v-186h-160zM229 301q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5zM518 1233v186h160v-186h-160z" />
177
+ <glyph unicode="&#xe5;" horiz-adv-x="844" d="M90 244v139q0 131 70 198.5t205 67.5q84 0 140.5 -22t92.5 -68v162q0 133 -35.5 174t-142.5 41q-88 0 -125 -30.5t-37 -100.5v-49h-137v47q0 134 73 196t232 62q172 0 237.5 -65.5t65.5 -239.5v-756h-131v94q-35 -61 -93 -87.5t-157 -26.5q-130 0 -194 65t-64 199z M188 1372q0 105 72 176.5t176 71.5q105 0 176.5 -71.5t71.5 -176.5q0 -104 -71.5 -176t-176.5 -72q-104 0 -176 72t-72 176zM229 301q0 -108 39.5 -153.5t130.5 -45.5q111 0 157 49.5t46 172.5q0 118 -38.5 159t-147.5 41q-111 0 -149 -44.5t-38 -178.5zM293 1370 q0 -59 41.5 -100t101.5 -41t101 40.5t41 100.5t-41 101.5t-101 41.5q-61 0 -102 -41t-41 -102z" />
178
+ <glyph unicode="&#xe6;" horiz-adv-x="1327" d="M92 244v139q0 131 68.5 198.5t201.5 67.5q83 0 138.5 -21.5t91.5 -68.5v162q0 132 -34.5 172.5t-139.5 40.5q-86 0 -123 -30.5t-37 -98.5v-49h-137v47q0 133 72 195.5t227 62.5q108 0 165.5 -23.5t90.5 -79.5q32 51 95 77t155 26q182 0 254.5 -92t72.5 -326v-149h-522 v-99q0 -179 39 -229.5t154 -50.5q119 0 164 38t45 136v33h118v-35q0 -163 -76.5 -235t-250.5 -72q-118 0 -187 35.5t-102 113.5q-45 -82 -108.5 -115.5t-178.5 -33.5q-131 0 -193.5 64t-62.5 200zM229 301q0 -107 39 -153t129 -46q110 0 154.5 49t44.5 173q0 118 -37.5 159 t-144.5 41q-110 0 -147.5 -44.5t-37.5 -178.5zM731 623h393v65q0 144 -42 195t-154 51q-113 0 -155 -51.5t-42 -194.5v-65z" />
179
+ <glyph unicode="&#xe7;" horiz-adv-x="829" d="M96 397v246q0 231 76 322.5t268 91.5q161 0 231 -71.5t70 -235.5v-52h-133v19q0 113 -41 160t-141 47q-111 0 -149.5 -51t-38.5 -230v-248q0 -178 40 -230t154 -52q112 0 153.5 46.5t41.5 182.5v41h137v-43q0 -189 -77 -273.5t-249 -84.5q-190 0 -266 91.5t-76 323.5z M213 -336q74 -17 136.5 -26t109.5 -9q60 0 90.5 20.5t30.5 61.5q0 52 -33 75.5t-107 23.5q-20 0 -30.5 -0.5t-20.5 -1.5v192h74v-106h22q112 0 169 -45t57 -132q0 -89 -62.5 -135.5t-183.5 -46.5q-45 0 -104.5 10t-147.5 33v86z" />
180
+ <glyph unicode="&#xe8;" horiz-adv-x="858" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-149h-542v-99q0 -181 40 -230.5t160 -49.5q126 0 171.5 37t45.5 137v33h123v-35q0 -162 -79.5 -233.5t-260.5 -71.5q-189 0 -265.5 92t-76.5 323zM201 1518h178l209 -351h-106zM238 623h409v65 q0 144 -43.5 195t-161.5 51q-117 0 -160.5 -51.5t-43.5 -194.5v-65z" />
181
+ <glyph unicode="&#xe9;" horiz-adv-x="858" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-149h-542v-99q0 -181 40 -230.5t160 -49.5q126 0 171.5 37t45.5 137v33h123v-35q0 -162 -79.5 -233.5t-260.5 -71.5q-189 0 -265.5 92t-76.5 323zM238 623h409v65q0 144 -43.5 195t-161.5 51 q-117 0 -160.5 -51.5t-43.5 -194.5v-65zM314 1167l209 351h178l-281 -351h-106z" />
182
+ <glyph unicode="&#xea;" horiz-adv-x="858" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-149h-542v-99q0 -181 40 -230.5t160 -49.5q126 0 171.5 37t45.5 137v33h123v-35q0 -162 -79.5 -233.5t-260.5 -71.5q-189 0 -265.5 92t-76.5 323zM164 1167l197 351h178l197 -351h-107l-178 244l-180 -244 h-107zM238 623h409v65q0 144 -43.5 195t-161.5 51q-117 0 -160.5 -51.5t-43.5 -194.5v-65z" />
183
+ <glyph unicode="&#xeb;" horiz-adv-x="858" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-149h-542v-99q0 -181 40 -230.5t160 -49.5q126 0 171.5 37t45.5 137v33h123v-35q0 -162 -79.5 -233.5t-260.5 -71.5q-189 0 -265.5 92t-76.5 323zM211 1233v186h160v-186h-160zM238 623h409v65 q0 144 -43.5 195t-161.5 51q-117 0 -160.5 -51.5t-43.5 -194.5v-65zM531 1233v186h160v-186h-160z" />
184
+ <glyph unicode="&#xec;" horiz-adv-x="350" d="M-74 1518h178l209 -351h-106zM113 0v1038h133v-1038h-133z" />
185
+ <glyph unicode="&#xed;" horiz-adv-x="350" d="M39 1167l209 351h178l-281 -351h-106zM113 0v1038h133v-1038h-133z" />
186
+ <glyph unicode="&#xee;" horiz-adv-x="350" d="M-111 1167l197 351h178l197 -351h-107l-178 244l-180 -244h-107zM113 0v1038h133v-1038h-133z" />
187
+ <glyph unicode="&#xef;" horiz-adv-x="350" d="M-64 1233v186h160v-186h-160zM113 0v1038h133v-1038h-133zM256 1233v186h160v-186h-160z" />
188
+ <glyph unicode="&#xf0;" horiz-adv-x="877" d="M96 397v246q0 221 72 317.5t233 96.5q74 0 121.5 -27.5t98.5 -99.5q-23 88 -62.5 176.5t-93.5 173.5l-297 -106l-43 104l270 98l-76 113h150l45 -66l184 68l45 -107l-153 -57q97 -157 143.5 -323.5t46.5 -352.5v-254q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92 t-76.5 323zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229t-160 52q-118 0 -159 -53t-41 -228v-248z" />
189
+ <glyph unicode="&#xf1;" horiz-adv-x="883" d="M121 0v1038h123v-120q39 70 102 104.5t152 34.5q145 0 208.5 -83.5t63.5 -277.5v-696h-133v659q0 156 -38 216.5t-130 60.5q-116 0 -165.5 -79t-49.5 -275v-582h-133zM151 1227q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5 q36 0 60.5 17.5t36.5 52.5h88q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27q-16 5 -29 7.5t-24 2.5q-35 0 -58.5 -15t-38.5 -48h-88z" />
190
+ <glyph unicode="&#xf2;" horiz-adv-x="877" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92t-76.5 323zM188 1518h178l209 -351h-106zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229t-160 52q-118 0 -159 -53t-41 -228 v-248z" />
191
+ <glyph unicode="&#xf3;" horiz-adv-x="877" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92t-76.5 323zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229t-160 52q-118 0 -159 -53t-41 -228v-248zM301 1167l209 351h178 l-281 -351h-106z" />
192
+ <glyph unicode="&#xf4;" horiz-adv-x="877" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92t-76.5 323zM151 1167l197 351h178l197 -351h-107l-178 244l-180 -244h-107zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229 t-160 52q-118 0 -159 -53t-41 -228v-248z" />
193
+ <glyph unicode="&#xf5;" horiz-adv-x="877" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92t-76.5 323zM147 1227q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5q36 0 60.5 17.5t36.5 52.5h88 q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27q-16 5 -29 7.5t-24 2.5q-35 0 -58.5 -15t-38.5 -48h-88zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229t-160 52q-118 0 -159 -53t-41 -228v-248z" />
194
+ <glyph unicode="&#xf6;" horiz-adv-x="877" d="M96 397v246q0 231 76 322.5t268 91.5q190 0 265 -91t75 -323v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-189 0 -265.5 92t-76.5 323zM198 1233v186h160v-186h-160zM238 395q0 -178 41 -230t159 -52t159.5 53t41.5 229v248q0 177 -41 229t-160 52q-118 0 -159 -53t-41 -228 v-248zM518 1233v186h160v-186h-160z" />
195
+ <glyph unicode="&#xf7;" horiz-adv-x="1706" d="M254 561v98h1198v-98h-1198zM748 258q0 44 31 75.5t75 31.5q45 0 76 -31t31 -76q0 -44 -31 -75t-76 -31t-75.5 31t-30.5 75zM748 963q0 44 31.5 76t74.5 32q44 0 75.5 -32t31.5 -76q0 -45 -31 -76t-76 -31t-75.5 30.5t-30.5 76.5z" />
196
+ <glyph unicode="&#xf8;" horiz-adv-x="877" d="M29 -68l112 189q-21 38 -33 111.5t-12 164.5v246q0 231 76 322.5t268 91.5q75 0 130.5 -13.5t99.5 -42.5l78 127l75 -45l-92 -157q24 -42 36.5 -114.5t12.5 -168.5v-246q0 -232 -75.5 -323.5t-266.5 -91.5q-84 0 -143.5 15.5t-95.5 47.5l-95 -160zM231 279l367 602 q-22 25 -59.5 36t-104.5 11q-118 0 -160.5 -55t-42.5 -230v-364zM272 166q21 -28 61.5 -41.5t104.5 -13.5q122 0 164.5 53t42.5 231v248q0 32 -1 62t-3 63z" />
197
+ <glyph unicode="&#xf9;" horiz-adv-x="883" d="M113 342v696h133v-659q0 -154 38.5 -215.5t131.5 -61.5q115 0 164 78.5t49 276.5v581h133v-1038h-123v121q-40 -70 -103 -104.5t-151 -34.5q-145 0 -208.5 83t-63.5 277zM192 1518h178l209 -351h-106z" />
198
+ <glyph unicode="&#xfa;" horiz-adv-x="883" d="M113 342v696h133v-659q0 -154 38.5 -215.5t131.5 -61.5q115 0 164 78.5t49 276.5v581h133v-1038h-123v121q-40 -70 -103 -104.5t-151 -34.5q-145 0 -208.5 83t-63.5 277zM305 1167l209 351h178l-281 -351h-106z" />
199
+ <glyph unicode="&#xfb;" horiz-adv-x="883" d="M113 342v696h133v-659q0 -154 38.5 -215.5t131.5 -61.5q115 0 164 78.5t49 276.5v581h133v-1038h-123v121q-40 -70 -103 -104.5t-151 -34.5q-145 0 -208.5 83t-63.5 277zM155 1167l197 351h178l197 -351h-107l-178 244l-180 -244h-107z" />
200
+ <glyph unicode="&#xfc;" horiz-adv-x="883" d="M113 342v696h133v-659q0 -154 38.5 -215.5t131.5 -61.5q115 0 164 78.5t49 276.5v581h133v-1038h-123v121q-40 -70 -103 -104.5t-151 -34.5q-145 0 -208.5 83t-63.5 277zM202 1233v186h160v-186h-160zM522 1233v186h160v-186h-160z" />
201
+ <glyph unicode="&#xfd;" horiz-adv-x="793" d="M35 1038h139l225 -909l226 909h131l-267 -1038q-57 -226 -120.5 -305.5t-169.5 -79.5q-21 0 -43.5 2.5t-46.5 7.5v125q19 -2 30 -3t19 -1q70 0 112 40.5t66 131.5l20 82h-55zM260 1167l209 351h178l-281 -351h-106z" />
202
+ <glyph unicode="&#xfe;" horiz-adv-x="877" d="M121 -385v1896h133v-585q42 64 105.5 97.5t146.5 33.5q150 0 214 -106.5t64 -366.5v-160q0 -238 -66 -340t-216 -102q-80 0 -143.5 33t-104.5 98v-498h-133zM254 436q0 -188 47 -257.5t164 -69.5q98 0 138 70t40 251v178q0 182 -40 252t-138 70q-117 0 -164 -69.5 t-47 -258.5v-166z" />
203
+ <glyph unicode="&#xff;" horiz-adv-x="793" d="M35 1038h139l225 -909l226 909h131l-267 -1038q-57 -226 -120.5 -305.5t-169.5 -79.5q-21 0 -43.5 2.5t-46.5 7.5v125q19 -2 30 -3t19 -1q70 0 112 40.5t66 131.5l20 82h-55zM157 1233v186h160v-186h-160zM477 1233v186h160v-186h-160z" />
204
+ <glyph unicode="&#x152;" horiz-adv-x="1427" d="M109 483v516q0 267 78.5 385.5t252.5 118.5h103q78 0 141 -33t102 -96v111h588v-144h-459v-501h420v-138h-420v-561h459v-141h-588v106q-39 -60 -101.5 -92t-141.5 -32h-103q-175 0 -253 117.5t-78 383.5zM266 483q0 -215 44.5 -285.5t162.5 -70.5h74q118 0 162.5 70.5 t44.5 285.5v516q0 215 -44.5 286t-162.5 71h-74q-118 0 -162.5 -70.5t-44.5 -286.5v-516z" />
205
+ <glyph unicode="&#x153;" horiz-adv-x="1352" d="M96 397v246q0 230 73.5 322t256.5 92q98 0 161.5 -24t100.5 -75q35 52 97.5 75.5t162.5 23.5q184 0 257 -91.5t73 -322.5v-149h-522v-99q0 -179 39 -229.5t153 -50.5q120 0 164.5 38t44.5 136v33h119v-35q0 -162 -77 -233.5t-253 -71.5q-99 0 -161.5 23t-100.5 75 q-35 -51 -97 -74.5t-163 -23.5q-182 0 -255 91.5t-73 323.5zM231 395q0 -178 40 -230t153 -52t152.5 53t39.5 229v248q0 177 -39.5 229t-152.5 52t-153 -53t-40 -228v-248zM754 623h395v65q0 145 -42 195.5t-155 50.5t-155.5 -52t-42.5 -194v-65z" />
206
+ <glyph unicode="&#x178;" horiz-adv-x="872" d="M-18 1485h161l299 -717l299 717h148l-373 -864v-621h-145v621zM196 1679v186h160v-186h-160zM516 1679v186h160v-186h-160z" />
207
+ <glyph unicode="&#x2c6;" d="M225 1167l197 351h178l197 -351h-107l-178 244l-180 -244h-107z" />
208
+ <glyph unicode="&#x2dc;" d="M221 1227q22 91 72.5 138.5t126.5 47.5q14 0 29 -2.5t30 -7.5l79 -27q16 -5 32 -7.5t28 -2.5q36 0 60.5 17.5t36.5 52.5h88q-24 -94 -75.5 -143.5t-123.5 -49.5q-16 0 -31.5 2.5t-33.5 7.5l-80 27q-16 5 -29 7.5t-24 2.5q-35 0 -58.5 -15t-38.5 -48h-88z" />
209
+ <glyph unicode="&#x2000;" horiz-adv-x="986" />
210
+ <glyph unicode="&#x2001;" horiz-adv-x="1972" />
211
+ <glyph unicode="&#x2002;" horiz-adv-x="986" />
212
+ <glyph unicode="&#x2003;" horiz-adv-x="1972" />
213
+ <glyph unicode="&#x2004;" horiz-adv-x="657" />
214
+ <glyph unicode="&#x2005;" horiz-adv-x="493" />
215
+ <glyph unicode="&#x2006;" horiz-adv-x="328" />
216
+ <glyph unicode="&#x2007;" horiz-adv-x="328" />
217
+ <glyph unicode="&#x2008;" horiz-adv-x="246" />
218
+ <glyph unicode="&#x2009;" horiz-adv-x="394" />
219
+ <glyph unicode="&#x200a;" horiz-adv-x="109" />
220
+ <glyph unicode="&#x2010;" horiz-adv-x="616" d="M84 467v129h448v-129h-448z" />
221
+ <glyph unicode="&#x2011;" horiz-adv-x="616" d="M84 467v129h448v-129h-448z" />
222
+ <glyph unicode="&#x2012;" horiz-adv-x="616" d="M84 467v129h448v-129h-448z" />
223
+ <glyph unicode="&#x2013;" d="M0 481v101h1024v-101h-1024z" />
224
+ <glyph unicode="&#x2014;" horiz-adv-x="2048" d="M0 481v101h2048v-101h-2048z" />
225
+ <glyph unicode="&#x2018;" horiz-adv-x="512" d="M176 1061v256q0 100 30 143t99 43q9 0 16.5 -0.5t14.5 -1.5v-79q-37 -2 -52.5 -17.5t-15.5 -52.5v-92h58v-199h-150z" />
226
+ <glyph unicode="&#x2019;" horiz-adv-x="512" d="M176 1045v79q37 2 51.5 17t14.5 53v90h-56v201h150v-256q0 -100 -30 -143.5t-99 -43.5q-9 0 -16 0.5t-15 2.5z" />
227
+ <glyph unicode="&#x201a;" horiz-adv-x="512" d="M170 -160q38 2 53 16.5t15 51.5v92h-58v199h150v-256q0 -101 -30.5 -144t-98.5 -43q-10 0 -16.5 0.5t-14.5 2.5v81z" />
228
+ <glyph unicode="&#x201c;" horiz-adv-x="797" d="M176 1061v256q0 100 30 143t99 43q9 0 16.5 -0.5t14.5 -1.5v-79q-37 -2 -52.5 -17.5t-15.5 -52.5v-92h58v-199h-150zM461 1061v256q0 101 29.5 143.5t97.5 42.5q10 0 18 -0.5t14 -1.5v-80q-38 -2 -52.5 -17t-14.5 -52v-92h57v-199h-149z" />
229
+ <glyph unicode="&#x201d;" horiz-adv-x="797" d="M176 1045v79q37 2 51.5 17t14.5 53v90h-56v201h150v-256q0 -100 -30 -143.5t-99 -43.5q-9 0 -16 0.5t-15 2.5zM461 1045v79q37 2 51 17t14 53v90h-57v201h152v-256q0 -100 -30.5 -143.5t-98.5 -43.5q-10 0 -16.5 0.5t-14.5 2.5z" />
230
+ <glyph unicode="&#x201e;" horiz-adv-x="797" d="M170 -160q38 2 53 16.5t15 51.5v92h-58v199h150v-256q0 -101 -30.5 -144t-98.5 -43q-10 0 -16.5 0.5t-14.5 2.5v81zM455 -160q37 2 51 16t14 52v92h-55v199h149v-256q0 -101 -30 -144t-99 -43q-9 0 -16 0.5t-14 1.5v82z" />
231
+ <glyph unicode="&#x2022;" horiz-adv-x="1208" d="M307 762q0 123 87 209t210 86q122 0 208.5 -86.5t86.5 -208.5t-87.5 -209.5t-209.5 -87.5q-123 0 -209 87t-86 210z" />
232
+ <glyph unicode="&#x2026;" horiz-adv-x="2048" d="M266 0v199h152v-199h-152zM948 0v199h152v-199h-152zM1632 0v199h152v-199h-152z" />
233
+ <glyph unicode="&#x202f;" horiz-adv-x="394" />
234
+ <glyph unicode="&#x2039;" horiz-adv-x="487" d="M96 518l178 324h144l-176 -324l176 -321h-144z" />
235
+ <glyph unicode="&#x203a;" horiz-adv-x="487" d="M70 197l178 321l-178 324h145l178 -324l-178 -321h-145z" />
236
+ <glyph unicode="&#x205f;" horiz-adv-x="493" />
237
+ <glyph unicode="&#x2122;" horiz-adv-x="1706" d="M264 1397v57h430v-57h-172v-473h-82v473h-176zM821 924v530h117l166 -422l156 422h116v-530h-71v467l-177 -467h-49l-186 467v-467h-72z" />
238
+ <glyph unicode="&#x25fc;" horiz-adv-x="1040" d="M0 0v1040h1040v-1040h-1040z" />
239
+ <hkern u1="&#x2d;" u2="&#x153;" k="-38" />
240
+ <hkern u1="&#x2d;" u2="&#x152;" k="-38" />
241
+ <hkern u1="&#x2d;" u2="&#xf8;" k="-38" />
242
+ <hkern u1="&#x2d;" u2="&#xdf;" k="-38" />
243
+ <hkern u1="&#x2d;" u2="&#xd8;" k="-38" />
244
+ <hkern u1="&#x2d;" u2="&#xd0;" k="-38" />
245
+ <hkern u1="&#x2d;" u2="r" k="-38" />
246
+ <hkern u1="&#x2d;" u2="o" k="-38" />
247
+ <hkern u1="&#x2d;" u2="n" k="-38" />
248
+ <hkern u1="&#x2d;" u2="Y" k="83" />
249
+ <hkern u1="&#x2d;" u2="V" k="36" />
250
+ <hkern u1="&#x2d;" u2="T" k="112" />
251
+ <hkern u1="&#x2d;" u2="R" k="-38" />
252
+ <hkern u1="&#x2d;" u2="P" k="-38" />
253
+ <hkern u1="&#x2d;" u2="O" k="-38" />
254
+ <hkern u1="&#x2d;" u2="L" k="-38" />
255
+ <hkern u1="&#x2d;" u2="K" k="-38" />
256
+ <hkern u1="&#x2d;" u2="J" k="-38" />
257
+ <hkern u1="&#x2d;" u2="H" k="-38" />
258
+ <hkern u1="&#x2d;" u2="G" k="-38" />
259
+ <hkern u1="&#x2d;" u2="F" k="-38" />
260
+ <hkern u1="&#x2d;" u2="D" k="-38" />
261
+ <hkern u1="&#x2d;" u2="C" k="-38" />
262
+ <hkern u1="&#x2d;" u2="B" k="-38" />
263
+ <hkern u1="A" u2="&#x203a;" k="-75" />
264
+ <hkern u1="A" u2="&#x2039;" k="-38" />
265
+ <hkern u1="A" u2="&#x201e;" k="-38" />
266
+ <hkern u1="A" u2="&#x201d;" k="92" />
267
+ <hkern u1="A" u2="&#x201c;" k="112" />
268
+ <hkern u1="A" u2="&#x201a;" k="-38" />
269
+ <hkern u1="A" u2="&#x2019;" k="92" />
270
+ <hkern u1="A" u2="&#x2018;" k="112" />
271
+ <hkern u1="A" u2="&#xbb;" k="-75" />
272
+ <hkern u1="A" u2="&#xab;" k="-38" />
273
+ <hkern u1="A" u2="Y" k="112" />
274
+ <hkern u1="A" u2="W" k="112" />
275
+ <hkern u1="A" u2="V" k="112" />
276
+ <hkern u1="A" u2="T" k="92" />
277
+ <hkern u1="A" u2="A" k="-114" />
278
+ <hkern u1="A" u2="&#x3b;" k="-75" />
279
+ <hkern u1="A" u2="&#x3a;" k="-75" />
280
+ <hkern u1="A" u2="&#x2e;" k="-65" />
281
+ <hkern u1="A" u2="&#x2c;" k="-65" />
282
+ <hkern u1="B" u2="&#x203a;" k="-75" />
283
+ <hkern u1="B" u2="&#x2039;" k="-38" />
284
+ <hkern u1="B" u2="&#xbb;" k="-75" />
285
+ <hkern u1="B" u2="&#xab;" k="-38" />
286
+ <hkern u1="B" u2="&#x2d;" k="-57" />
287
+ <hkern u1="C" u2="&#x203a;" k="-75" />
288
+ <hkern u1="C" u2="&#x2039;" k="-38" />
289
+ <hkern u1="C" u2="&#xbb;" k="-75" />
290
+ <hkern u1="C" u2="&#xab;" k="-38" />
291
+ <hkern u1="C" u2="&#x2d;" k="-57" />
292
+ <hkern u1="D" u2="&#x203a;" k="-75" />
293
+ <hkern u1="D" u2="&#x2039;" k="-38" />
294
+ <hkern u1="D" u2="&#xbb;" k="-75" />
295
+ <hkern u1="D" u2="&#xab;" k="-38" />
296
+ <hkern u1="D" u2="&#x2d;" k="-38" />
297
+ <hkern u1="F" u2="&#x201e;" k="225" />
298
+ <hkern u1="F" u2="&#x201d;" k="-38" />
299
+ <hkern u1="F" u2="&#x201a;" k="225" />
300
+ <hkern u1="F" u2="&#x2019;" k="-38" />
301
+ <hkern u1="F" u2="&#x153;" k="-38" />
302
+ <hkern u1="F" u2="&#xf8;" k="-38" />
303
+ <hkern u1="F" u2="&#xe6;" k="-38" />
304
+ <hkern u1="F" u2="&#xc5;" k="36" />
305
+ <hkern u1="F" u2="o" k="-38" />
306
+ <hkern u1="F" u2="e" k="36" />
307
+ <hkern u1="F" u2="a" k="-38" />
308
+ <hkern u1="F" u2="A" k="36" />
309
+ <hkern u1="F" u2="&#x3b;" k="-38" />
310
+ <hkern u1="F" u2="&#x3a;" k="-38" />
311
+ <hkern u1="F" u2="&#x2e;" k="215" />
312
+ <hkern u1="F" u2="&#x2d;" k="36" />
313
+ <hkern u1="F" u2="&#x2c;" k="215" />
314
+ <hkern u1="G" u2="&#x203a;" k="-75" />
315
+ <hkern u1="G" u2="&#x2039;" k="-38" />
316
+ <hkern u1="G" u2="&#x201e;" k="-38" />
317
+ <hkern u1="G" u2="&#x201d;" k="-57" />
318
+ <hkern u1="G" u2="&#x201a;" k="-38" />
319
+ <hkern u1="G" u2="&#x2019;" k="-57" />
320
+ <hkern u1="G" u2="&#xbb;" k="-75" />
321
+ <hkern u1="G" u2="&#xab;" k="-38" />
322
+ <hkern u1="G" u2="&#x2d;" k="-38" />
323
+ <hkern u1="H" u2="&#x203a;" k="-75" />
324
+ <hkern u1="H" u2="&#x2039;" k="-38" />
325
+ <hkern u1="H" u2="&#x201e;" k="-38" />
326
+ <hkern u1="H" u2="&#x201c;" k="-38" />
327
+ <hkern u1="H" u2="&#x201a;" k="-38" />
328
+ <hkern u1="H" u2="&#x2018;" k="-38" />
329
+ <hkern u1="H" u2="&#xbb;" k="-75" />
330
+ <hkern u1="H" u2="&#xab;" k="-38" />
331
+ <hkern u1="H" u2="&#x3b;" k="-38" />
332
+ <hkern u1="H" u2="&#x3a;" k="-38" />
333
+ <hkern u1="H" u2="&#x2d;" k="-38" />
334
+ <hkern u1="J" u2="&#x203a;" k="-75" />
335
+ <hkern u1="J" u2="&#x2039;" k="-38" />
336
+ <hkern u1="J" u2="&#x201c;" k="-38" />
337
+ <hkern u1="J" u2="&#x2018;" k="-38" />
338
+ <hkern u1="J" u2="&#xbb;" k="-75" />
339
+ <hkern u1="J" u2="&#xab;" k="-38" />
340
+ <hkern u1="J" u2="&#x2d;" k="-38" />
341
+ <hkern u1="K" u2="&#x201e;" k="-65" />
342
+ <hkern u1="K" u2="&#x201c;" k="-75" />
343
+ <hkern u1="K" u2="&#x201a;" k="-65" />
344
+ <hkern u1="K" u2="&#x2018;" k="-75" />
345
+ <hkern u1="K" u2="u" k="-38" />
346
+ <hkern u1="K" u2="W" k="36" />
347
+ <hkern u1="L" u2="&#x203a;" k="-75" />
348
+ <hkern u1="L" u2="&#x2039;" k="36" />
349
+ <hkern u1="L" u2="&#x201e;" k="-38" />
350
+ <hkern u1="L" u2="&#x201d;" k="272" />
351
+ <hkern u1="L" u2="&#x201c;" k="188" />
352
+ <hkern u1="L" u2="&#x201a;" k="-38" />
353
+ <hkern u1="L" u2="&#x2019;" k="272" />
354
+ <hkern u1="L" u2="&#x2018;" k="188" />
355
+ <hkern u1="L" u2="&#x153;" k="-38" />
356
+ <hkern u1="L" u2="&#xf8;" k="-38" />
357
+ <hkern u1="L" u2="&#xe6;" k="-38" />
358
+ <hkern u1="L" u2="&#xc5;" k="-38" />
359
+ <hkern u1="L" u2="&#xbb;" k="-75" />
360
+ <hkern u1="L" u2="&#xab;" k="36" />
361
+ <hkern u1="L" u2="y" k="73" />
362
+ <hkern u1="L" u2="u" k="-38" />
363
+ <hkern u1="L" u2="o" k="-38" />
364
+ <hkern u1="L" u2="e" k="-38" />
365
+ <hkern u1="L" u2="a" k="-38" />
366
+ <hkern u1="L" u2="Y" k="120" />
367
+ <hkern u1="L" u2="W" k="73" />
368
+ <hkern u1="L" u2="V" k="112" />
369
+ <hkern u1="L" u2="T" k="112" />
370
+ <hkern u1="L" u2="A" k="-38" />
371
+ <hkern u1="O" u2="&#x203a;" k="-75" />
372
+ <hkern u1="O" u2="&#x2039;" k="-38" />
373
+ <hkern u1="O" u2="&#x201d;" k="-38" />
374
+ <hkern u1="O" u2="&#x2019;" k="-38" />
375
+ <hkern u1="O" u2="&#xbb;" k="-75" />
376
+ <hkern u1="O" u2="&#xab;" k="-38" />
377
+ <hkern u1="O" u2="&#x3b;" k="-38" />
378
+ <hkern u1="O" u2="&#x3a;" k="-38" />
379
+ <hkern u1="O" u2="&#x2d;" k="-38" />
380
+ <hkern u1="P" u2="&#x201e;" k="415" />
381
+ <hkern u1="P" u2="&#x201a;" k="415" />
382
+ <hkern u1="P" u2="&#xc5;" k="55" />
383
+ <hkern u1="P" u2="y" k="-38" />
384
+ <hkern u1="P" u2="r" k="36" />
385
+ <hkern u1="P" u2="n" k="36" />
386
+ <hkern u1="P" u2="A" k="55" />
387
+ <hkern u1="P" u2="&#x3b;" k="-38" />
388
+ <hkern u1="P" u2="&#x3a;" k="-38" />
389
+ <hkern u1="P" u2="&#x2e;" k="376" />
390
+ <hkern u1="P" u2="&#x2d;" k="45" />
391
+ <hkern u1="P" u2="&#x2c;" k="376" />
392
+ <hkern u1="R" u2="&#x203a;" k="-75" />
393
+ <hkern u1="R" u2="&#x2039;" k="-57" />
394
+ <hkern u1="R" u2="&#x201e;" k="-75" />
395
+ <hkern u1="R" u2="&#x201a;" k="-75" />
396
+ <hkern u1="R" u2="&#xbb;" k="-75" />
397
+ <hkern u1="R" u2="&#xab;" k="-57" />
398
+ <hkern u1="R" u2="W" k="-38" />
399
+ <hkern u1="R" u2="V" k="-38" />
400
+ <hkern u1="R" u2="&#x3b;" k="-75" />
401
+ <hkern u1="R" u2="&#x3a;" k="-75" />
402
+ <hkern u1="R" u2="&#x2e;" k="-38" />
403
+ <hkern u1="R" u2="&#x2d;" k="-75" />
404
+ <hkern u1="R" u2="&#x2c;" k="-38" />
405
+ <hkern u1="T" u2="&#x203a;" k="36" />
406
+ <hkern u1="T" u2="&#x2039;" k="73" />
407
+ <hkern u1="T" u2="&#x201e;" k="112" />
408
+ <hkern u1="T" u2="&#x201d;" k="-38" />
409
+ <hkern u1="T" u2="&#x201c;" k="-38" />
410
+ <hkern u1="T" u2="&#x201a;" k="112" />
411
+ <hkern u1="T" u2="&#x2019;" k="-38" />
412
+ <hkern u1="T" u2="&#x2018;" k="-38" />
413
+ <hkern u1="T" u2="&#x153;" k="139" />
414
+ <hkern u1="T" u2="&#xf8;" k="139" />
415
+ <hkern u1="T" u2="&#xe6;" k="139" />
416
+ <hkern u1="T" u2="&#xc5;" k="92" />
417
+ <hkern u1="T" u2="&#xbb;" k="36" />
418
+ <hkern u1="T" u2="&#xab;" k="73" />
419
+ <hkern u1="T" u2="y" k="131" />
420
+ <hkern u1="T" u2="w" k="131" />
421
+ <hkern u1="T" u2="u" k="112" />
422
+ <hkern u1="T" u2="s" k="131" />
423
+ <hkern u1="T" u2="r" k="102" />
424
+ <hkern u1="T" u2="o" k="139" />
425
+ <hkern u1="T" u2="e" k="139" />
426
+ <hkern u1="T" u2="c" k="139" />
427
+ <hkern u1="T" u2="a" k="139" />
428
+ <hkern u1="T" u2="T" k="-75" />
429
+ <hkern u1="T" u2="A" k="92" />
430
+ <hkern u1="T" u2="&#x3b;" k="92" />
431
+ <hkern u1="T" u2="&#x3a;" k="92" />
432
+ <hkern u1="T" u2="&#x2e;" k="149" />
433
+ <hkern u1="T" u2="&#x2d;" k="112" />
434
+ <hkern u1="T" u2="&#x2c;" k="149" />
435
+ <hkern u1="V" u2="&#x203a;" k="-75" />
436
+ <hkern u1="V" u2="&#x201e;" k="112" />
437
+ <hkern u1="V" u2="&#x201d;" k="-38" />
438
+ <hkern u1="V" u2="&#x201c;" k="-75" />
439
+ <hkern u1="V" u2="&#x201a;" k="112" />
440
+ <hkern u1="V" u2="&#x2019;" k="-38" />
441
+ <hkern u1="V" u2="&#x2018;" k="-75" />
442
+ <hkern u1="V" u2="&#x153;" k="112" />
443
+ <hkern u1="V" u2="&#xf8;" k="112" />
444
+ <hkern u1="V" u2="&#xe6;" k="36" />
445
+ <hkern u1="V" u2="&#xc5;" k="112" />
446
+ <hkern u1="V" u2="&#xbb;" k="-75" />
447
+ <hkern u1="V" u2="u" k="73" />
448
+ <hkern u1="V" u2="o" k="112" />
449
+ <hkern u1="V" u2="e" k="112" />
450
+ <hkern u1="V" u2="a" k="36" />
451
+ <hkern u1="V" u2="A" k="112" />
452
+ <hkern u1="V" u2="&#x2e;" k="112" />
453
+ <hkern u1="V" u2="&#x2d;" k="36" />
454
+ <hkern u1="V" u2="&#x2c;" k="112" />
455
+ <hkern u1="W" u2="&#x203a;" k="-75" />
456
+ <hkern u1="W" u2="&#x201e;" k="73" />
457
+ <hkern u1="W" u2="&#x201d;" k="-38" />
458
+ <hkern u1="W" u2="&#x201c;" k="-75" />
459
+ <hkern u1="W" u2="&#x201a;" k="73" />
460
+ <hkern u1="W" u2="&#x2019;" k="-38" />
461
+ <hkern u1="W" u2="&#x2018;" k="-75" />
462
+ <hkern u1="W" u2="&#xe6;" k="112" />
463
+ <hkern u1="W" u2="&#xc5;" k="112" />
464
+ <hkern u1="W" u2="&#xbb;" k="-75" />
465
+ <hkern u1="W" u2="u" k="73" />
466
+ <hkern u1="W" u2="e" k="112" />
467
+ <hkern u1="W" u2="a" k="112" />
468
+ <hkern u1="W" u2="A" k="112" />
469
+ <hkern u1="W" u2="&#x2e;" k="63" />
470
+ <hkern u1="W" u2="&#x2c;" k="63" />
471
+ <hkern u1="X" u2="&#x203a;" k="-75" />
472
+ <hkern u1="X" u2="&#x2039;" k="-38" />
473
+ <hkern u1="X" u2="&#x201e;" k="-75" />
474
+ <hkern u1="X" u2="&#x201d;" k="-57" />
475
+ <hkern u1="X" u2="&#x201c;" k="-75" />
476
+ <hkern u1="X" u2="&#x201a;" k="-75" />
477
+ <hkern u1="X" u2="&#x2019;" k="-57" />
478
+ <hkern u1="X" u2="&#x2018;" k="-75" />
479
+ <hkern u1="X" u2="&#xbb;" k="-75" />
480
+ <hkern u1="X" u2="&#xab;" k="-38" />
481
+ <hkern u1="Y" u2="&#x2039;" k="36" />
482
+ <hkern u1="Y" u2="&#x201e;" k="188" />
483
+ <hkern u1="Y" u2="&#x201d;" k="-38" />
484
+ <hkern u1="Y" u2="&#x201c;" k="-75" />
485
+ <hkern u1="Y" u2="&#x201a;" k="188" />
486
+ <hkern u1="Y" u2="&#x2019;" k="-38" />
487
+ <hkern u1="Y" u2="&#x2018;" k="-75" />
488
+ <hkern u1="Y" u2="&#x153;" k="73" />
489
+ <hkern u1="Y" u2="&#xf8;" k="73" />
490
+ <hkern u1="Y" u2="&#xe6;" k="188" />
491
+ <hkern u1="Y" u2="&#xc5;" k="149" />
492
+ <hkern u1="Y" u2="&#xab;" k="36" />
493
+ <hkern u1="Y" u2="u" k="102" />
494
+ <hkern u1="Y" u2="o" k="73" />
495
+ <hkern u1="Y" u2="i" k="-38" />
496
+ <hkern u1="Y" u2="e" k="188" />
497
+ <hkern u1="Y" u2="a" k="188" />
498
+ <hkern u1="Y" u2="A" k="149" />
499
+ <hkern u1="Y" u2="&#x2e;" k="159" />
500
+ <hkern u1="Y" u2="&#x2d;" k="83" />
501
+ <hkern u1="Y" u2="&#x2c;" k="159" />
502
+ <hkern u1="Z" u2="&#x203a;" k="-75" />
503
+ <hkern u1="Z" u2="&#x2039;" k="36" />
504
+ <hkern u1="Z" u2="&#x201d;" k="-38" />
505
+ <hkern u1="Z" u2="&#x201c;" k="-38" />
506
+ <hkern u1="Z" u2="&#x2019;" k="-38" />
507
+ <hkern u1="Z" u2="&#x2018;" k="-38" />
508
+ <hkern u1="Z" u2="&#xbb;" k="-75" />
509
+ <hkern u1="Z" u2="&#xab;" k="36" />
510
+ <hkern u1="Z" u2="&#x2d;" k="36" />
511
+ <hkern u1="f" u2="&#x203a;" k="-75" />
512
+ <hkern u1="f" u2="&#x2039;" k="-38" />
513
+ <hkern u1="f" u2="&#x201e;" k="36" />
514
+ <hkern u1="f" u2="&#x201d;" k="-104" />
515
+ <hkern u1="f" u2="&#x201c;" k="-65" />
516
+ <hkern u1="f" u2="&#x201a;" k="36" />
517
+ <hkern u1="f" u2="&#x2019;" k="-104" />
518
+ <hkern u1="f" u2="&#x2018;" k="-65" />
519
+ <hkern u1="f" u2="&#xbb;" k="-75" />
520
+ <hkern u1="f" u2="&#xab;" k="-38" />
521
+ <hkern u1="f" u2="t" k="-38" />
522
+ <hkern u1="f" u2="&#x3b;" k="-75" />
523
+ <hkern u1="f" u2="&#x3a;" k="-75" />
524
+ <hkern u1="f" u2="&#x2e;" k="36" />
525
+ <hkern u1="f" u2="&#x2c;" k="36" />
526
+ <hkern u1="k" u2="u" k="-38" />
527
+ <hkern u1="n" u2="&#x203a;" k="-75" />
528
+ <hkern u1="n" u2="&#x2039;" k="-38" />
529
+ <hkern u1="n" u2="&#x201e;" k="-38" />
530
+ <hkern u1="n" u2="&#x201c;" k="36" />
531
+ <hkern u1="n" u2="&#x201a;" k="-38" />
532
+ <hkern u1="n" u2="&#x2018;" k="36" />
533
+ <hkern u1="n" u2="&#xbb;" k="-75" />
534
+ <hkern u1="n" u2="&#xab;" k="-38" />
535
+ <hkern u1="n" u2="&#x3b;" k="-38" />
536
+ <hkern u1="n" u2="&#x3a;" k="-38" />
537
+ <hkern u1="n" u2="&#x2d;" k="-38" />
538
+ <hkern u1="o" u2="&#x203a;" k="-75" />
539
+ <hkern u1="o" u2="&#x2039;" k="-38" />
540
+ <hkern u1="o" u2="&#x201c;" k="73" />
541
+ <hkern u1="o" u2="&#x2018;" k="73" />
542
+ <hkern u1="o" u2="&#xbb;" k="-75" />
543
+ <hkern u1="o" u2="&#xab;" k="-38" />
544
+ <hkern u1="o" u2="&#x3b;" k="-38" />
545
+ <hkern u1="o" u2="&#x3a;" k="-38" />
546
+ <hkern u1="o" u2="&#x2d;" k="-38" />
547
+ <hkern u1="r" u2="&#x203a;" k="-114" />
548
+ <hkern u1="r" u2="&#x2039;" k="-75" />
549
+ <hkern u1="r" u2="&#x201e;" k="196" />
550
+ <hkern u1="r" u2="&#x201c;" k="36" />
551
+ <hkern u1="r" u2="&#x201a;" k="196" />
552
+ <hkern u1="r" u2="&#x2018;" k="36" />
553
+ <hkern u1="r" u2="&#x153;" k="-38" />
554
+ <hkern u1="r" u2="&#xf8;" k="-38" />
555
+ <hkern u1="r" u2="&#xbb;" k="-114" />
556
+ <hkern u1="r" u2="&#xab;" k="-75" />
557
+ <hkern u1="r" u2="y" k="-38" />
558
+ <hkern u1="r" u2="x" k="-38" />
559
+ <hkern u1="r" u2="w" k="-38" />
560
+ <hkern u1="r" u2="v" k="-38" />
561
+ <hkern u1="r" u2="u" k="-38" />
562
+ <hkern u1="r" u2="r" k="-38" />
563
+ <hkern u1="r" u2="q" k="-38" />
564
+ <hkern u1="r" u2="o" k="-38" />
565
+ <hkern u1="r" u2="n" k="-38" />
566
+ <hkern u1="r" u2="m" k="-38" />
567
+ <hkern u1="r" u2="h" k="-38" />
568
+ <hkern u1="r" u2="g" k="-38" />
569
+ <hkern u1="r" u2="e" k="-38" />
570
+ <hkern u1="r" u2="d" k="-38" />
571
+ <hkern u1="r" u2="c" k="-38" />
572
+ <hkern u1="r" u2="&#x3b;" k="-38" />
573
+ <hkern u1="r" u2="&#x3a;" k="-38" />
574
+ <hkern u1="r" u2="&#x2e;" k="167" />
575
+ <hkern u1="r" u2="&#x2d;" k="-57" />
576
+ <hkern u1="r" u2="&#x2c;" k="167" />
577
+ <hkern u1="v" u2="&#x3b;" k="-75" />
578
+ <hkern u1="v" u2="&#x3a;" k="-75" />
579
+ <hkern u1="v" u2="&#x2e;" k="45" />
580
+ <hkern u1="v" u2="&#x2c;" k="45" />
581
+ <hkern u1="w" u2="&#x203a;" k="-75" />
582
+ <hkern u1="w" u2="&#x2039;" k="-38" />
583
+ <hkern u1="w" u2="&#x201e;" k="83" />
584
+ <hkern u1="w" u2="&#x201d;" k="-38" />
585
+ <hkern u1="w" u2="&#x201a;" k="83" />
586
+ <hkern u1="w" u2="&#x2019;" k="-38" />
587
+ <hkern u1="w" u2="&#xbb;" k="-75" />
588
+ <hkern u1="w" u2="&#xab;" k="-38" />
589
+ <hkern u1="w" u2="&#x3b;" k="-57" />
590
+ <hkern u1="w" u2="&#x3a;" k="-57" />
591
+ <hkern u1="w" u2="&#x2e;" k="36" />
592
+ <hkern u1="w" u2="&#x2c;" k="36" />
593
+ <hkern u1="y" u2="&#x203a;" k="-75" />
594
+ <hkern u1="y" u2="&#x2039;" k="-38" />
595
+ <hkern u1="y" u2="&#x201e;" k="112" />
596
+ <hkern u1="y" u2="&#x201d;" k="-57" />
597
+ <hkern u1="y" u2="&#x201c;" k="-38" />
598
+ <hkern u1="y" u2="&#x201a;" k="112" />
599
+ <hkern u1="y" u2="&#x2019;" k="-57" />
600
+ <hkern u1="y" u2="&#x2018;" k="-38" />
601
+ <hkern u1="y" u2="&#xbb;" k="-75" />
602
+ <hkern u1="y" u2="&#xab;" k="-38" />
603
+ <hkern u1="y" u2="&#x3b;" k="-75" />
604
+ <hkern u1="y" u2="&#x3a;" k="-75" />
605
+ <hkern u1="y" u2="&#x2e;" k="63" />
606
+ <hkern u1="y" u2="&#x2c;" k="63" />
607
+ <hkern u1="&#xab;" u2="&#x153;" k="-75" />
608
+ <hkern u1="&#xab;" u2="&#x152;" k="-75" />
609
+ <hkern u1="&#xab;" u2="&#xf8;" k="-75" />
610
+ <hkern u1="&#xab;" u2="&#xdf;" k="-75" />
611
+ <hkern u1="&#xab;" u2="&#xd8;" k="-75" />
612
+ <hkern u1="&#xab;" u2="&#xd0;" k="-75" />
613
+ <hkern u1="&#xab;" u2="&#xc6;" k="-75" />
614
+ <hkern u1="&#xab;" u2="&#xc5;" k="-75" />
615
+ <hkern u1="&#xab;" u2="y" k="-75" />
616
+ <hkern u1="&#xab;" u2="w" k="-75" />
617
+ <hkern u1="&#xab;" u2="r" k="-75" />
618
+ <hkern u1="&#xab;" u2="o" k="-75" />
619
+ <hkern u1="&#xab;" u2="n" k="-75" />
620
+ <hkern u1="&#xab;" u2="f" k="-75" />
621
+ <hkern u1="&#xab;" u2="Z" k="-75" />
622
+ <hkern u1="&#xab;" u2="X" k="-75" />
623
+ <hkern u1="&#xab;" u2="W" k="-75" />
624
+ <hkern u1="&#xab;" u2="V" k="-75" />
625
+ <hkern u1="&#xab;" u2="T" k="36" />
626
+ <hkern u1="&#xab;" u2="R" k="-75" />
627
+ <hkern u1="&#xab;" u2="P" k="-75" />
628
+ <hkern u1="&#xab;" u2="O" k="-75" />
629
+ <hkern u1="&#xab;" u2="L" k="-75" />
630
+ <hkern u1="&#xab;" u2="K" k="-75" />
631
+ <hkern u1="&#xab;" u2="J" k="-75" />
632
+ <hkern u1="&#xab;" u2="H" k="-75" />
633
+ <hkern u1="&#xab;" u2="G" k="-75" />
634
+ <hkern u1="&#xab;" u2="F" k="-75" />
635
+ <hkern u1="&#xab;" u2="D" k="-75" />
636
+ <hkern u1="&#xab;" u2="C" k="-75" />
637
+ <hkern u1="&#xab;" u2="B" k="-75" />
638
+ <hkern u1="&#xab;" u2="A" k="-75" />
639
+ <hkern u1="&#xbb;" u2="&#x153;" k="-38" />
640
+ <hkern u1="&#xbb;" u2="&#x152;" k="-38" />
641
+ <hkern u1="&#xbb;" u2="&#xf8;" k="-38" />
642
+ <hkern u1="&#xbb;" u2="&#xdf;" k="-38" />
643
+ <hkern u1="&#xbb;" u2="&#xd8;" k="-38" />
644
+ <hkern u1="&#xbb;" u2="&#xd0;" k="-38" />
645
+ <hkern u1="&#xbb;" u2="&#xc6;" k="-38" />
646
+ <hkern u1="&#xbb;" u2="&#xc5;" k="-38" />
647
+ <hkern u1="&#xbb;" u2="y" k="-38" />
648
+ <hkern u1="&#xbb;" u2="w" k="-38" />
649
+ <hkern u1="&#xbb;" u2="r" k="-38" />
650
+ <hkern u1="&#xbb;" u2="o" k="-38" />
651
+ <hkern u1="&#xbb;" u2="n" k="-38" />
652
+ <hkern u1="&#xbb;" u2="f" k="-38" />
653
+ <hkern u1="&#xbb;" u2="Z" k="-38" />
654
+ <hkern u1="&#xbb;" u2="Y" k="36" />
655
+ <hkern u1="&#xbb;" u2="X" k="-38" />
656
+ <hkern u1="&#xbb;" u2="T" k="73" />
657
+ <hkern u1="&#xbb;" u2="R" k="-38" />
658
+ <hkern u1="&#xbb;" u2="P" k="-38" />
659
+ <hkern u1="&#xbb;" u2="O" k="-38" />
660
+ <hkern u1="&#xbb;" u2="L" k="-38" />
661
+ <hkern u1="&#xbb;" u2="K" k="-38" />
662
+ <hkern u1="&#xbb;" u2="J" k="-75" />
663
+ <hkern u1="&#xbb;" u2="H" k="-38" />
664
+ <hkern u1="&#xbb;" u2="G" k="-38" />
665
+ <hkern u1="&#xbb;" u2="F" k="-38" />
666
+ <hkern u1="&#xbb;" u2="D" k="-38" />
667
+ <hkern u1="&#xbb;" u2="C" k="-38" />
668
+ <hkern u1="&#xbb;" u2="B" k="-38" />
669
+ <hkern u1="&#xbb;" u2="A" k="-38" />
670
+ <hkern u1="&#xc5;" u2="&#x203a;" k="-75" />
671
+ <hkern u1="&#xc5;" u2="&#x2039;" k="-38" />
672
+ <hkern u1="&#xc5;" u2="&#x201e;" k="-38" />
673
+ <hkern u1="&#xc5;" u2="&#x201d;" k="92" />
674
+ <hkern u1="&#xc5;" u2="&#x201c;" k="112" />
675
+ <hkern u1="&#xc5;" u2="&#x201a;" k="-38" />
676
+ <hkern u1="&#xc5;" u2="&#x2019;" k="92" />
677
+ <hkern u1="&#xc5;" u2="&#x2018;" k="112" />
678
+ <hkern u1="&#xc5;" u2="&#xbb;" k="-75" />
679
+ <hkern u1="&#xc5;" u2="&#xab;" k="-38" />
680
+ <hkern u1="&#xc5;" u2="Y" k="112" />
681
+ <hkern u1="&#xc5;" u2="W" k="112" />
682
+ <hkern u1="&#xc5;" u2="V" k="112" />
683
+ <hkern u1="&#xc5;" u2="T" k="92" />
684
+ <hkern u1="&#xc5;" u2="&#x3b;" k="-75" />
685
+ <hkern u1="&#xc5;" u2="&#x3a;" k="-75" />
686
+ <hkern u1="&#xc5;" u2="&#x2e;" k="-65" />
687
+ <hkern u1="&#xc5;" u2="&#x2c;" k="-65" />
688
+ <hkern u1="&#xc6;" u2="&#x203a;" k="-75" />
689
+ <hkern u1="&#xc6;" u2="&#x2039;" k="-38" />
690
+ <hkern u1="&#xc6;" u2="&#x201c;" k="-38" />
691
+ <hkern u1="&#xc6;" u2="&#x2018;" k="-38" />
692
+ <hkern u1="&#xc6;" u2="&#xbb;" k="-75" />
693
+ <hkern u1="&#xc6;" u2="&#xab;" k="-38" />
694
+ <hkern u1="&#xc6;" u2="&#x2d;" k="-38" />
695
+ <hkern u1="&#xd0;" u2="&#x203a;" k="-75" />
696
+ <hkern u1="&#xd0;" u2="&#x2039;" k="-38" />
697
+ <hkern u1="&#xd0;" u2="&#xbb;" k="-75" />
698
+ <hkern u1="&#xd0;" u2="&#xab;" k="-38" />
699
+ <hkern u1="&#xd0;" u2="&#x2d;" k="-38" />
700
+ <hkern u1="&#xd8;" u2="&#x203a;" k="-75" />
701
+ <hkern u1="&#xd8;" u2="&#x2039;" k="-38" />
702
+ <hkern u1="&#xd8;" u2="&#x201d;" k="-38" />
703
+ <hkern u1="&#xd8;" u2="&#x2019;" k="-38" />
704
+ <hkern u1="&#xd8;" u2="&#xbb;" k="-75" />
705
+ <hkern u1="&#xd8;" u2="&#xab;" k="-38" />
706
+ <hkern u1="&#xd8;" u2="&#x3b;" k="-38" />
707
+ <hkern u1="&#xd8;" u2="&#x3a;" k="-38" />
708
+ <hkern u1="&#xd8;" u2="&#x2d;" k="-38" />
709
+ <hkern u1="&#xdf;" u2="&#x203a;" k="-75" />
710
+ <hkern u1="&#xdf;" u2="&#x2039;" k="-38" />
711
+ <hkern u1="&#xdf;" u2="&#xbb;" k="-75" />
712
+ <hkern u1="&#xdf;" u2="&#xab;" k="-38" />
713
+ <hkern u1="&#xdf;" u2="&#x2d;" k="-38" />
714
+ <hkern u1="&#xf8;" u2="&#x203a;" k="-75" />
715
+ <hkern u1="&#xf8;" u2="&#x2039;" k="-38" />
716
+ <hkern u1="&#xf8;" u2="&#x201c;" k="73" />
717
+ <hkern u1="&#xf8;" u2="&#x2018;" k="73" />
718
+ <hkern u1="&#xf8;" u2="&#xbb;" k="-75" />
719
+ <hkern u1="&#xf8;" u2="&#xab;" k="-38" />
720
+ <hkern u1="&#xf8;" u2="&#x3b;" k="-38" />
721
+ <hkern u1="&#xf8;" u2="&#x3a;" k="-38" />
722
+ <hkern u1="&#xf8;" u2="&#x2d;" k="-38" />
723
+ <hkern u1="&#x2018;" u2="&#x152;" k="-38" />
724
+ <hkern u1="&#x2018;" u2="&#xd8;" k="-38" />
725
+ <hkern u1="&#x2018;" u2="&#xc6;" k="167" />
726
+ <hkern u1="&#x2018;" u2="&#xc5;" k="120" />
727
+ <hkern u1="&#x2018;" u2="y" k="-65" />
728
+ <hkern u1="&#x2018;" u2="w" k="-38" />
729
+ <hkern u1="&#x2018;" u2="n" k="-38" />
730
+ <hkern u1="&#x2018;" u2="f" k="-38" />
731
+ <hkern u1="&#x2018;" u2="Y" k="-38" />
732
+ <hkern u1="&#x2018;" u2="X" k="-38" />
733
+ <hkern u1="&#x2018;" u2="W" k="-47" />
734
+ <hkern u1="&#x2018;" u2="V" k="-38" />
735
+ <hkern u1="&#x2018;" u2="T" k="-38" />
736
+ <hkern u1="&#x2018;" u2="O" k="-38" />
737
+ <hkern u1="&#x2018;" u2="J" k="311" />
738
+ <hkern u1="&#x2018;" u2="A" k="120" />
739
+ <hkern u1="&#x201a;" u2="&#x153;" k="-38" />
740
+ <hkern u1="&#x201a;" u2="&#x152;" k="-38" />
741
+ <hkern u1="&#x201a;" u2="&#xf8;" k="-38" />
742
+ <hkern u1="&#x201a;" u2="&#xdf;" k="-75" />
743
+ <hkern u1="&#x201a;" u2="&#xd8;" k="-38" />
744
+ <hkern u1="&#x201a;" u2="&#xd0;" k="-38" />
745
+ <hkern u1="&#x201a;" u2="&#xc6;" k="-75" />
746
+ <hkern u1="&#x201a;" u2="&#xc5;" k="-38" />
747
+ <hkern u1="&#x201a;" u2="y" k="-38" />
748
+ <hkern u1="&#x201a;" u2="r" k="-75" />
749
+ <hkern u1="&#x201a;" u2="o" k="-38" />
750
+ <hkern u1="&#x201a;" u2="n" k="-75" />
751
+ <hkern u1="&#x201a;" u2="f" k="-38" />
752
+ <hkern u1="&#x201a;" u2="Y" k="149" />
753
+ <hkern u1="&#x201a;" u2="X" k="-47" />
754
+ <hkern u1="&#x201a;" u2="V" k="73" />
755
+ <hkern u1="&#x201a;" u2="T" k="131" />
756
+ <hkern u1="&#x201a;" u2="R" k="-38" />
757
+ <hkern u1="&#x201a;" u2="P" k="-38" />
758
+ <hkern u1="&#x201a;" u2="O" k="-38" />
759
+ <hkern u1="&#x201a;" u2="L" k="-38" />
760
+ <hkern u1="&#x201a;" u2="K" k="-38" />
761
+ <hkern u1="&#x201a;" u2="J" k="-75" />
762
+ <hkern u1="&#x201a;" u2="H" k="-38" />
763
+ <hkern u1="&#x201a;" u2="G" k="-38" />
764
+ <hkern u1="&#x201a;" u2="F" k="-38" />
765
+ <hkern u1="&#x201a;" u2="D" k="-38" />
766
+ <hkern u1="&#x201a;" u2="C" k="-38" />
767
+ <hkern u1="&#x201a;" u2="B" k="-38" />
768
+ <hkern u1="&#x201a;" u2="A" k="-38" />
769
+ <hkern u1="&#x201c;" u2="&#x152;" k="-38" />
770
+ <hkern u1="&#x201c;" u2="&#xd8;" k="-38" />
771
+ <hkern u1="&#x201c;" u2="&#xc6;" k="167" />
772
+ <hkern u1="&#x201c;" u2="&#xc5;" k="120" />
773
+ <hkern u1="&#x201c;" u2="y" k="-65" />
774
+ <hkern u1="&#x201c;" u2="w" k="-38" />
775
+ <hkern u1="&#x201c;" u2="n" k="-38" />
776
+ <hkern u1="&#x201c;" u2="f" k="-38" />
777
+ <hkern u1="&#x201c;" u2="Y" k="-38" />
778
+ <hkern u1="&#x201c;" u2="X" k="-38" />
779
+ <hkern u1="&#x201c;" u2="W" k="-47" />
780
+ <hkern u1="&#x201c;" u2="V" k="-38" />
781
+ <hkern u1="&#x201c;" u2="T" k="-38" />
782
+ <hkern u1="&#x201c;" u2="O" k="-38" />
783
+ <hkern u1="&#x201c;" u2="J" k="311" />
784
+ <hkern u1="&#x201c;" u2="A" k="120" />
785
+ <hkern u1="&#x201e;" u2="&#x153;" k="-38" />
786
+ <hkern u1="&#x201e;" u2="&#x152;" k="-38" />
787
+ <hkern u1="&#x201e;" u2="&#xf8;" k="-38" />
788
+ <hkern u1="&#x201e;" u2="&#xdf;" k="-75" />
789
+ <hkern u1="&#x201e;" u2="&#xd8;" k="-38" />
790
+ <hkern u1="&#x201e;" u2="&#xd0;" k="-38" />
791
+ <hkern u1="&#x201e;" u2="&#xc6;" k="-75" />
792
+ <hkern u1="&#x201e;" u2="&#xc5;" k="-38" />
793
+ <hkern u1="&#x201e;" u2="y" k="-38" />
794
+ <hkern u1="&#x201e;" u2="r" k="-75" />
795
+ <hkern u1="&#x201e;" u2="o" k="-38" />
796
+ <hkern u1="&#x201e;" u2="n" k="-75" />
797
+ <hkern u1="&#x201e;" u2="f" k="-38" />
798
+ <hkern u1="&#x201e;" u2="Y" k="149" />
799
+ <hkern u1="&#x201e;" u2="X" k="-47" />
800
+ <hkern u1="&#x201e;" u2="V" k="73" />
801
+ <hkern u1="&#x201e;" u2="T" k="131" />
802
+ <hkern u1="&#x201e;" u2="R" k="-38" />
803
+ <hkern u1="&#x201e;" u2="P" k="-38" />
804
+ <hkern u1="&#x201e;" u2="O" k="-38" />
805
+ <hkern u1="&#x201e;" u2="L" k="-38" />
806
+ <hkern u1="&#x201e;" u2="K" k="-38" />
807
+ <hkern u1="&#x201e;" u2="J" k="-75" />
808
+ <hkern u1="&#x201e;" u2="H" k="-38" />
809
+ <hkern u1="&#x201e;" u2="G" k="-38" />
810
+ <hkern u1="&#x201e;" u2="F" k="-38" />
811
+ <hkern u1="&#x201e;" u2="D" k="-38" />
812
+ <hkern u1="&#x201e;" u2="C" k="-38" />
813
+ <hkern u1="&#x201e;" u2="B" k="-38" />
814
+ <hkern u1="&#x201e;" u2="A" k="-38" />
815
+ <hkern u1="&#x2039;" u2="&#x153;" k="-75" />
816
+ <hkern u1="&#x2039;" u2="&#x152;" k="-75" />
817
+ <hkern u1="&#x2039;" u2="&#xf8;" k="-75" />
818
+ <hkern u1="&#x2039;" u2="&#xdf;" k="-75" />
819
+ <hkern u1="&#x2039;" u2="&#xd8;" k="-75" />
820
+ <hkern u1="&#x2039;" u2="&#xd0;" k="-75" />
821
+ <hkern u1="&#x2039;" u2="&#xc6;" k="-75" />
822
+ <hkern u1="&#x2039;" u2="&#xc5;" k="-75" />
823
+ <hkern u1="&#x2039;" u2="y" k="-75" />
824
+ <hkern u1="&#x2039;" u2="w" k="-75" />
825
+ <hkern u1="&#x2039;" u2="r" k="-75" />
826
+ <hkern u1="&#x2039;" u2="o" k="-75" />
827
+ <hkern u1="&#x2039;" u2="n" k="-75" />
828
+ <hkern u1="&#x2039;" u2="f" k="-75" />
829
+ <hkern u1="&#x2039;" u2="Z" k="-75" />
830
+ <hkern u1="&#x2039;" u2="X" k="-75" />
831
+ <hkern u1="&#x2039;" u2="W" k="-75" />
832
+ <hkern u1="&#x2039;" u2="V" k="-75" />
833
+ <hkern u1="&#x2039;" u2="T" k="36" />
834
+ <hkern u1="&#x2039;" u2="R" k="-75" />
835
+ <hkern u1="&#x2039;" u2="P" k="-75" />
836
+ <hkern u1="&#x2039;" u2="O" k="-75" />
837
+ <hkern u1="&#x2039;" u2="L" k="-75" />
838
+ <hkern u1="&#x2039;" u2="K" k="-75" />
839
+ <hkern u1="&#x2039;" u2="J" k="-75" />
840
+ <hkern u1="&#x2039;" u2="H" k="-75" />
841
+ <hkern u1="&#x2039;" u2="G" k="-75" />
842
+ <hkern u1="&#x2039;" u2="F" k="-75" />
843
+ <hkern u1="&#x2039;" u2="D" k="-75" />
844
+ <hkern u1="&#x2039;" u2="C" k="-75" />
845
+ <hkern u1="&#x2039;" u2="B" k="-75" />
846
+ <hkern u1="&#x2039;" u2="A" k="-75" />
847
+ <hkern u1="&#x203a;" u2="&#x153;" k="-38" />
848
+ <hkern u1="&#x203a;" u2="&#x152;" k="-38" />
849
+ <hkern u1="&#x203a;" u2="&#xf8;" k="-38" />
850
+ <hkern u1="&#x203a;" u2="&#xdf;" k="-38" />
851
+ <hkern u1="&#x203a;" u2="&#xd8;" k="-38" />
852
+ <hkern u1="&#x203a;" u2="&#xd0;" k="-38" />
853
+ <hkern u1="&#x203a;" u2="&#xc6;" k="-38" />
854
+ <hkern u1="&#x203a;" u2="&#xc5;" k="-38" />
855
+ <hkern u1="&#x203a;" u2="y" k="-38" />
856
+ <hkern u1="&#x203a;" u2="w" k="-38" />
857
+ <hkern u1="&#x203a;" u2="r" k="-38" />
858
+ <hkern u1="&#x203a;" u2="o" k="-38" />
859
+ <hkern u1="&#x203a;" u2="n" k="-38" />
860
+ <hkern u1="&#x203a;" u2="f" k="-38" />
861
+ <hkern u1="&#x203a;" u2="Z" k="-38" />
862
+ <hkern u1="&#x203a;" u2="Y" k="36" />
863
+ <hkern u1="&#x203a;" u2="X" k="-38" />
864
+ <hkern u1="&#x203a;" u2="T" k="73" />
865
+ <hkern u1="&#x203a;" u2="R" k="-38" />
866
+ <hkern u1="&#x203a;" u2="P" k="-38" />
867
+ <hkern u1="&#x203a;" u2="O" k="-38" />
868
+ <hkern u1="&#x203a;" u2="L" k="-38" />
869
+ <hkern u1="&#x203a;" u2="K" k="-38" />
870
+ <hkern u1="&#x203a;" u2="J" k="-75" />
871
+ <hkern u1="&#x203a;" u2="H" k="-38" />
872
+ <hkern u1="&#x203a;" u2="G" k="-38" />
873
+ <hkern u1="&#x203a;" u2="F" k="-38" />
874
+ <hkern u1="&#x203a;" u2="D" k="-38" />
875
+ <hkern u1="&#x203a;" u2="C" k="-38" />
876
+ <hkern u1="&#x203a;" u2="B" k="-38" />
877
+ <hkern u1="&#x203a;" u2="A" k="-38" />
878
+ </font>
879
+ </defs></svg>
assets/css/fonts/sqr721c-webfont.ttf ADDED
Binary file
assets/css/fonts/sqr721c-webfont.woff ADDED
Binary file
assets/css/fonts/sqr721c-webfont.woff2 ADDED
Binary file
assets/css/options.css DELETED
@@ -1,138 +0,0 @@
1
- .wc-form table.wp-list-table td, .wc-form table.wp-list-table th{ padding: 12px 5px;}
2
- .wc-form tr:nth-child(even){background:#fff}
3
- .wc-form tr:nth-child(odd){background:#f9f9f9}
4
- .form-table.wc-form-table tr{background:transparent}
5
- .wpdiscuz_options_page .wc-phrases-settings-form input[type="text"],
6
- .wpdiscuz_options_page .wc-phrases-settings-form textarea{width:300px}
7
- .wpdiscuz_wrap {height: 50px;width: 100%;}
8
- .wpdiscuz_progressbar {height: 50px;text-align: center;background: #f00;width: 0;}
9
- .wpdiscuz-share-buttons {display: inline-block; width: 18px; height: 18px;}
10
- .wc-form input.wc_share_button {display: none;}
11
- .wc-form input[type="text"].regular-text{ width:160px; }
12
- .wc-form select{min-width: 140px;}
13
- .wc-form .wpdiscuz-option-title {vertical-align: middle;}
14
- .wc-form .wc-hidden {display: none;}
15
- .wc-form .resp-tabs-container.integrationsChild {margin-bottom: 5px;}
16
- .wc-form .wpdiscuz_export_options,.wc-form .wpdiscuz_import_options{width:100%;}
17
- .wc-form .wpdxb th label{margin: 1px 0px 5px 0px; padding: 0px; font-size: 14px; font-weight:bold; color: #333333; display: block;}
18
- .wc-form .wpdxb th fieldset label{margin: 0px; padding: 0px 2px 5px 0px; font-size: 13px; font-weight:normal; color: #333333; display:inline-block;}
19
- .wc-form .wpdxb th fieldset label span{display: inline-block; padding-left: 5px;}
20
- .wc-form .wpdxb p.wpd-desc{font-size:13px; color:#666666; width:80%; padding:0px; margin:0px; line-height: 18px;}
21
- .wc-form .wpdxb .wpd-subopt{float: left; min-width: 48%; margin:0px 1% 5px 0px;}
22
- .wc-form h2.wpd-subtitle{padding: 20px 10px 18px 2px; margin: 0px; font-size: 23px; font-weight: normal;color: #10b493;}
23
-
24
- .wc-form .wpdxb td input[type=checkbox]{ height: 0; width: 0; visibility: hidden; position: absolute;}
25
- .wc-form .wpdxb td label { cursor: pointer; text-indent: -9999px; width: 50px; height: 20px; background: grey; display: block; border-radius: 30px; position: relative;border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;}
26
- .wc-form .wpdxb td label:after {content: ''; position: absolute; top: 4px; left: 5px; width: 12px; height: 12px; background: #fff; border-radius: 90px; transition: 0.3s;}
27
- .wc-form .wpdxb td input:checked + label {background: #07B290;}
28
- .wc-form .wpdxb td input:checked + label:after {left: calc(100% - 5px);transform: translateX(-100%);}
29
- .wc-form .wpdxb td label:active:after {width: 12px;}
30
-
31
- .wc-form .wpdxx input[type=checkbox]{ height: 0; width: 0; visibility: hidden; position: absolute;}
32
- .wc-form .wpdxx label { cursor: pointer; text-indent: -9999px; width: 50px; height: 20px; background: grey; display: block; border-radius: 30px; position: relative;border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;}
33
- .wc-form .wpdxx label:after {content: ''; position: absolute; top: 4px; left: 5px; width: 12px; height: 12px; background: #fff; border-radius: 90px; transition: 0.3s;}
34
- .wc-form .wpdxx input:checked + label {background: #07B290;}
35
- .wc-form .wpdxx input:checked + label:after {left: calc(100% - 5px);transform: translateX(-100%);}
36
- .wc-form .wpdxx label:active:after {width: 12px;}
37
-
38
- .wc-form .wpdxb th .wpd-switch-field input { display: none;}
39
- .wc-form .wpdxb th .wpd-switch-field label {float: left;}
40
- .wc-form .wpdxb th .wpd-switch-field label {display: inline-block; line-height: 20px; min-width:90px; font-weight: normal; background-color: #e4e4e4;color:#333;font-size: 13px;text-align: center; text-shadow: none;padding: 2px 8px; border: 1px solid rgba(0, 0, 0, 0.2);-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);-webkit-transition: all 0.1s ease-in-out;-moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}
41
- .wc-form .wpdxb th .wpd-switch-field label:hover {cursor: pointer;}
42
- .wc-form .wpdxb th .wpd-switch-field input:checked + label {background-color: #07B290; -webkit-box-shadow: none; box-shadow: none; color:#fff;} /* #66DD8D */
43
- .wc-form .wpdxb th .wpd-switch-field label:first-of-type {border-radius: 4px 0 0 4px;}
44
- .wc-form .wpdxb th .wpd-switch-field label:last-of-type {border-radius: 0 4px 4px 0;}
45
- .wc-form .widefat th input{ margin: 0px;}
46
- .wc-form .widefat th{ position: relative;}
47
- .wc-form .widefat td{ position: relative;}
48
-
49
- .wpdiscuz_options_page .widefat a{color:#08a082;}
50
- .wpdiscuz_options_page .widefat a:hover{color:#10b493;}
51
-
52
- /*addons*/
53
- #menu-comments ul > li:nth-child(3) a{ color:#25ACEA!important; text-shadow: 1px 1px 1px #000; }
54
- .wpdiscuz_addons_page .wpdiscuz-addons-wrapper {box-sizing: border-box;}
55
- .wpdiscuz_addons_page .wpdiscuz-addon-block {width: 260px; padding-top:10px; height:auto; float: left; margin-right: 1%; margin-bottom: 20px; background: #fff; border: 2px solid #e5e5e5; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04);}
56
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-thumb {float:none; width: 242px; padding:10px; margin-top:2px; height:180px;}
57
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-info {display:block; margin:0px; background:#07B290; padding:10px 15px; border:3px solid #fff; border-top:none; margin-top:10px;}
58
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-title { font-size:16px; font-weight:bold; color:#FFFFFF; margin:0px; line-height:18px; display:inline-block; text-decoration:none;}
59
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-title:hover { color:#D8FF6D;}
60
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-desc { font-size:13px; color:#FFFFFF; margin:0px; line-height:18px; margin:0px; padding:10px 0px 0px 0px; font-style:italic;}
61
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-isactive {margin: 0px; padding:10px; background:#e5e5e5; text-align:center;}
62
- .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-button{ margin-bottom:10px;}
63
- .wpdiscuz_addons_page .wpdiscuz-addon-block .note-installed { padding:10px 20px; background:#fff; border: 1px solid #ddd; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04); color:#07B290; font-size:14px; margin-top:20px; }
64
-
65
- .import-percentage {vertical-align: middle;color: #444;margin-left: 5px;}
66
-
67
- .wpd-social-login td label{margin-right: 5px; }
68
- .wc-form table.wp-list-table.wpd-social-login td, .wc-form table.wp-list-table.wpd-social-login th{padding: 9px 10px 5px 10px;}
69
- .wpd-social-login .wpd-social-lable {font-size: 18px;}
70
- .wpd-social-login .wpd-social-lable i{padding-right: 10px; font-size: 34px; display: inline-block; bottom: -5px; position: relative;}
71
- .wpd-social-login td input[type="text"]{width: 50%; padding: 5px 10px; font-size: 14px;}
72
-
73
- .wpd-social-login .wpd-social-lable.wpd-facebook{color: #4267B2; border-bottom: 2px solid #9fbbff; }
74
- .wpd-social-login .wpd-social-lable.wpd-twitter{color: #1DA1F2; border-bottom: 2px solid #97dafe; }
75
- .wpd-social-login .wpd-social-lable.wpd-google{color: #D84538; border-bottom: 2px solid #ffa48e;}
76
- .wpd-social-login .wpd-social-lable.wpd-ok{color: #EE7808; border-bottom: 2px solid #ffc369;}
77
- .wpd-social-login .wpd-social-lable.wpd-vk{color: #4A76A8; border-bottom: 2px solid #a3c1ff;}
78
-
79
- .widefat .wpd-color-wrap{padding: 7px 5px; min-width: 300px; float: left;}
80
- .widefat .wpd-color-wrap input{width: 80px!important; padding: 3px 5px!important; font-size: 13px!important; text-align: center!important;}
81
- .widefat .wpd-color-wrap label{font-weight: normal!important; display: inline-block!important; margin: 0px 5px!important;}
82
- .wpdiscuz_options_page i.fa-question-circle{ font-size: 16px; right: 15px; top: 15px; position: absolute;}
83
- [dir=rtl] .wpdiscuz_options_page i.fa-question-circle{ font-size: 16px; right: auto; left: 15px; top: 15px; position: absolute;}
84
-
85
- /*======== RATING ===============*/
86
-
87
- .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-label{ background:transparent; border:none; padding: 2px 10px 2px 2px; }
88
- .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-value{font-size: 16px; border-bottom:none; padding: 1px 10px; }
89
-
90
- .wpdiscuz-item.wpd-field-group.wpd-field-rating{ border-bottom:1px dotted #ddd; height:77px; margin-bottom:0px;}
91
- .wpdiscuz-item .wpdiscuz-rating {border: none; float: left; margin:0px; padding:5px 0px 5px 1px; margin-left:-5px;}
92
- .wpdiscuz-item .wpdiscuz-rating > input { visibility:hidden; position:absolute;}
93
- .wpdiscuz-item .wpdiscuz-rating > label:before { margin: 3px; line-height: 18px; font-size: 1.4em; cursor:pointer;}
94
- .wpdiscuz-item .wpdiscuz-rating > .half:before {position: absolute; cursor:pointer;}
95
- .wpdiscuz-item .wpdiscuz-rating > label { float: right; }
96
- .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc{ right:0px; top:0px; position:relative; font-size:14px; margin-left:5px; padding: 0 7px;}
97
- .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc i.far{ font-size:17px;}
98
- .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ display:inline-block; vertical-align:baseline; padding:0px 0px 2px 0px; margin-top:-2px;}
99
- .wpd-form-col-full .wpdiscuz-item .wpdiscuz-rating{ padding:0px 6px 0px 0px; vertical-align:middle; line-height: 14px;}
100
- .wpd-form-col-full .wpd-item-wrap{ display:inline-block; float:left; padding-right:7px; vertical-align:baseline; padding:0px 1px 1px 1px;}
101
- .wpdiscuz-stars-label{ line-height:20px; padding:10px 0px 2px 3px; font-size:14px;}
102
- .wpdiscuz-stars-wrapper{ display:block;}
103
- .wpdiscuz-stars-wrapper-inner{ position: absolute;}
104
- .wpdiscuz-activ-stars{ position: absolute; display: flex; font-size: 22px; top: 0; left:0;}
105
- .wpdiscuz-pasiv-stars{ font-size: 22px; display: flex;}
106
- .wpdiscuz-activ-stars{ overflow:hidden;}
107
- .wpdiscuz-pasiv-stars i.wpdiscuz-pasiv-star, .wpdiscuz-activ-stars i.wpdiscuz-activ-star{ padding:0px 2px; font-size:20px;}
108
- .wpdiscuz-post-rating-wrap.wpd-custom-field{display: flex;flex-wrap: wrap;}
109
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 25%;margin-bottom: 10px;}
110
- @media screen and (max-width: 1024px){
111
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 33%;margin-bottom: 10px;}
112
- }
113
- @media screen and (max-width:650px){
114
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
115
- flex-basis: 50%;
116
- margin-bottom: 10px;
117
- }
118
- }
119
- @media screen and (max-width:420px){
120
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
121
- flex-basis: 100%;
122
- margin-bottom: 10px;
123
- }
124
- }
125
-
126
- .wpdiscuz-item .wpdiscuz-rating > label {color: #DDDDDD;}
127
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"] ~ label:hover,
128
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:not(:checked) ~ label:hover ~ label,
129
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:not(:checked) ~ label:hover ~ label{color: #FFED85;}
130
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label:hover,
131
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label:hover,
132
- .wpdiscuz-item .wpdiscuz-rating > label[type="radio"]:hover ~ input:checked ~ label,
133
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked + label:hover ~ label,
134
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked + label::before,
135
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label:hover ~ label,
136
- .wpd-custom-field .wcf-activ-star,
137
- .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label{ color:#FFD700;}
138
- .wpd-custom-field .wcf-pasiv-star, .wpdiscuz-item .wpdiscuz-rating > label {color: #DDDDDD;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/wpdiscuz-combo-no_quill.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /* Media Uploader */
2
+ #cboxCurrent{bottom:0;font-size:15px}#wpdcom{height:auto;padding:5px 1px}#wpdcom .wmu-hide{display:none!important}#wpdcom .wmu-show{display:inline-block!important}#wpdcom .wmu-upload-wrap{float:right}#wpdcom .wmu-add{cursor:pointer;margin:0 2px;color:#aaa;cursor:pointer;display:inline}#wpdcom .wmu-add i{color:#444}#wpdcom .wmu-add input[type=file]{visibility:hidden;display:none}#wpdcom .wmu-tabs{width:100%;padding:8px 0 17px 0;margin:1px 0 0 0;border-top:1px dotted #ddd;text-align:left}#wpdcom .wmu-tabs .wmu-preview-images .wmu-preview-remove .wmu-file-name{display:none}#wpdcom .wmu-tabs .wmu-preview-remove{position:relative}#wpdcom .wmu-tabs .wmu-preview-remove img{max-height:45px}#wpdcom .wmu-tabs .wmu-preview-remove .wmu-delete{line-height:45px;position:absolute;display:none;top:0;left:0;width:100%;z-index:100;background:url(../img/delete.png) center no-repeat #eee;opacity:.8}#wpdcom .wmu-tabs .wmu-preview-remove:hover .wmu-delete{display:block;z-index:100}#wpdcom .wmu-preview{margin:0 3px;cursor:pointer;display:inline-block}#wpdcom .wmu-attachment img{vertical-align:bottom}#wpdcom .wmu-attachment audio{vertical-align:bottom}#wpdcom .wmu-attachment-delete,.wpd-content .wmu-attachment-delete{cursor:pointer;border-top:1px solid #fff;visibility:hidden;font-size:5px;line-height:12px;text-align:center;padding:2px 0 1px 0;margin:0;z-index:100;background:url(../img/file-icons/delete.png) center no-repeat;border-bottom:#fff 1px solid}#wpdcom .wmu-attachment:hover>.wmu-attachment-delete,.wpd-content .wmu-attachment:hover>.wmu-attachment-delete{visibility:visible}#wpdcom .wmu-attachment-delete:hover,.wpd-content .wmu-attachment-delete:hover{visibility:visible;background-color:#ffefef;border-bottom:#ffd6d6 1px solid}#wpdcom .wmu-attached-images{border-bottom:1px dotted #dfdfdf;display:flex;margin-bottom:5px}#wpdcom .wmu-attached-images .wmu-attachment{margin:10px 2px 1px 2px}#wpdcom .wmu-attached-images .attachment-thumbnail,#wpdcom .wmu-attached-images .wmu-attached-image{border:3px solid #f1f1f1}#wpdcom .wmu-attached-image-link{display:inline-block}#wpdcom .wmu-attached-images .wmu-separator{padding:4px 0;display:block}#wpdcom .wmu-action-wrap{width:100%;margin:0;padding:0;text-align:left}#wpdcom .wmu-action-wrap img{display:inline-block;vertical-align:bottom}#wpdcom .wmu-top-title{padding:5px 20px 5px 3px;font-size:10px;color:#888;text-align:left;margin-top:-27px;margin-bottom:7px;line-height:14px;white-space:nowrap;display:table;text-transform:uppercase}#wpdcom .msgEmptyFile,#wpdcom .msgPermissionDenied,#wpdcom .msgUploadingNotAllowed,#wpdcom .wmuPhraseMaxFileCount,#wpdcom .wmuPhraseMaxFileSize,#wpdcom .wmuPhraseNotAllowedFile,#wpdcom .wmuPhrasePostMaxSize{background-color:#fce8e8!important;font-size:14px;text-align:center;color:#ce4a66;border:#f2d3d2 1px solid;padding:5px 10px;width:100%;box-sizing:border-box;margin:5px 0;border-radius:3px}@media screen and (max-width:655px){#wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px}#wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px}#wpdcom .wmu-attached-images .wmu-attached-image{height:auto!important}}@media screen and (max-width:500px){#wpdcom .wc-comment-text iframe{width:98%}}@media screen and (max-width:420px){#wpdcom .wmu-top-title{display:none}}.wpd-wrapper #wpd-content-item-4 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-4 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-4 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:20px;line-height:20px;color:#e8484a}
3
+ /* My Content and Settings */
4
+ .lity{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;white-space:nowrap;background:#0b0b0b;background:rgba(0,0,0,.3);outline:0!important;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity.lity-opened{opacity:1}.lity.lity-closed{opacity:0}.lity *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.lity-wrap{z-index:9990;position:fixed;top:34px;right:0;bottom:0;left:0;text-align:center;outline:0!important}.lity-wrap:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.lity-loader{z-index:9991;color:#fff;position:absolute;top:50%;margin-top:-.8em;width:100%;text-align:center;font-size:14px;font-family:Arial,Helvetica,sans-serif;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity-loading .lity-loader{opacity:1}.lity-container{z-index:9992;position:relative;text-align:left;vertical-align:middle;display:inline-block;white-space:normal;max-width:100%;max-height:100%;outline:0!important}.lity-content{z-index:9993;width:100%;-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:-o-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease,-o-transform .3s ease}.lity-closed .lity-content,.lity-loading .lity-content{-webkit-transform:scale(.8);-ms-transform:scale(.8);-o-transform:scale(.8);transform:scale(.8)}.lity-content:after{content:'';position:absolute;left:0;top:0;bottom:0;display:block;right:0;width:auto;height:auto;z-index:-1;-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6)}.lity-close{z-index:9994;width:35px;height:35px;position:fixed;right:0;top:0;-webkit-appearance:none;cursor:pointer;text-decoration:none;text-align:center;padding:0;color:#fff;font-style:normal;font-size:35px;font-family:Arial,Baskerville,monospace;line-height:35px;text-shadow:0 1px 2px rgba(0,0,0,.6);border:0;background:0 0;outline:0;-webkit-box-shadow:none;box-shadow:none}.lity-close::-moz-focus-inner{border:0;padding:0}.lity-close:active,.lity-close:focus,.lity-close:hover,.lity-close:visited{text-decoration:none;text-align:center;padding:0;color:#fff;font-style:normal;font-size:35px;font-family:Arial,Baskerville,monospace;line-height:35px;text-shadow:0 1px 2px rgba(0,0,0,.6);border:0;background:0 0;outline:0;-webkit-box-shadow:none;box-shadow:none}.lity-close:active{top:1px}.lity-image img{max-width:100%;display:block;line-height:0;border:0}.lity-facebookvideo .lity-container,.lity-googlemaps .lity-container,.lity-iframe .lity-container,.lity-vimeo .lity-container,.lity-youtube .lity-container{width:100%;max-width:964px}.lity-iframe-container{width:100%;height:0;padding-top:56.25%;overflow:auto;pointer-events:auto;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-overflow-scrolling:touch}.lity-iframe-container iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}.lity-hide{display:none}.wpd-wrapper *,.wpd-wrapper :after,.wpd-wrapper :before{margin:0;padding:0;box-sizing:border-box}.wpd-wrapper{width:100%;padding:10px;margin:0 auto;background:0 0}.wpd-wrapper .wpd-list{display:flex;border-right:1px solid #ddd}.wpd-wrapper .wpd-list,.wpd-wrapper .wpd-list-item{list-style:none;list-style-type:none;font-size: 14px;}.wpd-wrapper .wpd-list-item{border-top:1px solid #ddd;border-left:1px solid #ddd;border-bottom:1px solid #ddd;display:inline-block;padding:10px 10px;color:#999;cursor:pointer;flex-grow:1;text-align:center}.wpd-wrapper .wpd-list-item:hover{color:#444}.wpd-wrapper .wpd-list-item.wpd-active{border-bottom:none;color:#444}.wpd-wrapper .wpd-list-item span{margin-left:5px}.wpd-wrapper .wpd-content-item{border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd;padding:20px}.wpd-wrapper .wpd-content-item:not(.wpd-active){display:none}.wpd-wrapper .wpd-item{border-bottom:1px solid #ddd;font-size:13px;line-height:19px;padding-bottom:7px}.wpd-wrapper .wpd-item:last-child{border-bottom:none}.wpd-wrapper .wpd-item-link.wpd-comment-meta{font-size:12px;color:#555;padding-bottom:0}.wpd-wrapper .wpd-item-link{padding:5px 10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wpd-wrapper .wpd-post-link{margin-left:3px}.wpd-wrapper .wpd-post-item-link{font-size:12px;font-style:italic;color:#666}.wpd-wrapper .wpd-pagination{display:inline-block;margin:10px 0}.wpd-wrapper .wpd-page-link{color:#000;float:left;padding:3px 10px;text-decoration:none;transition:background-color .3s;border-top:1px solid #ddd;border-left:1px solid #ddd;border-bottom:1px solid #ddd;transition:background-color .3s;cursor:pointer;outline:0}.wpd-wrapper .wpd-page-link:hover:not(.wpd-current-page){background:#ddd}.wpd-wrapper .wpd-page-link:last-of-type{border-right:1px solid #ddd}.wpd-wrapper .wpd-current-page{color:#fff;border:none;cursor:initial}.wpd-wrapper .wpd-item.wpd-follow-item .fa-user{font-size:15px;color:#777}.wpd-wrapper .wpd-item.wpd-follow-item .wpd-fl-name{font-size:16px;color:#777}.wpd-wrapper #wpd-content-item-1 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-1 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-2 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-3 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-2 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-3 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding:15px 0;color:#666}.wpd-wrapper .wpd-item-right *,.wpd-wrapper .wpd-user-email-delete-links-wrap{outline:0!important}.wpd-wrapper #wpd-content-item-1 .wpd-item-right i,.wpd-wrapper #wpd-content-item-2 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:30px;line-height:30px;color:#e8484a}.wpd-wrapper #wpd-content-item-3 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:20px;line-height:20px;color:#e8484a}.wpd-wrapper .wpd-user-email-delete-links-wrap{text-align:center;padding:8px}.wpd-wrapper .wpd-user-email-delete-links{font-size:15px}.wpd-wrapper .wpd-user-email-delete-links span{margin-left:5px}.wpd-wrapper.wpd-guest-settings{text-align:center}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button-wrap{width:70%;min-width:280px;line-height:1.5;border:1px solid #ddd;padding:5px;background:#eee;font-size:14px;margin:15px auto}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button-wrap:hover{background:#f8f8f8}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button{cursor:pointer}.wpd-wrapper.wpd-guest-settings .wpd-guest-action-error{color:#fa5454}.wpd-wrapper.wpd-guest-settings .wpd-guest-action-success{color:#00b38f}.wpd-wrapper.wpd-guest-settings{padding:2%}.wpd-clear{clear:both}.wpd-loading{margin-left:5px}.wpd-hide{display:none}.wpd-show{display:inline-block}.wpd-bulk-desc{font-size:12px;color:#666;font-style:italic}@media screen and (max-width:1024px){.wpd-wrapper .wpd-list-item span{display:none}}
5
+ /* Colorbox */
6
+ #colorbox,#cboxOverlay,#cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden;-webkit-transform:translate3d(0,0,0)}#cboxWrapper{max-width:none}#cboxOverlay{position:fixed;width:100%;height:100%}#cboxMiddleLeft,#cboxBottomLeft{clear:left}#cboxContent{position:relative}#cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}#cboxTitle{margin:0}#cboxLoadingOverlay,#cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{cursor:pointer}.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.cboxIframe{width:100%;height:100%;display:block;border:0;padding:0;margin:0}#colorbox,#cboxContent,#cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay{background:url(../third-party/colorbox/images/overlay.png) repeat 0 0;opacity:.9;filter:alpha(opacity = 90)}#colorbox{outline:0}#cboxTopLeft{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -101px 0}#cboxTopRight{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -130px 0}#cboxBottomLeft{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -101px -29px}#cboxBottomRight{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -130px -29px}#cboxMiddleLeft{width:21px;background:url(../third-party/colorbox/images/controls.png) left top repeat-y}#cboxMiddleRight{width:21px;background:url(../third-party/colorbox/images/controls.png) right top repeat-y}#cboxTopCenter{height:21px;background:url(../third-party/colorbox/images/border.png) 0 0 repeat-x}#cboxBottomCenter{height:21px;background:url(../third-party/colorbox/images/border.png) 0 -29px repeat-x}#cboxContent{background:#fff;overflow:hidden}.cboxIframe{background:#fff}#cboxError{padding:50px;border:1px solid #ccc}#cboxLoadedContent{margin-bottom:28px}#cboxTitle{position:absolute;bottom:4px;left:0;text-align:center;width:100%;color:#949494}#cboxCurrent{position:absolute;bottom:4px;left:58px;color:#949494}#cboxLoadingOverlay{background:url(../third-party/colorbox/images/loading_background.png) no-repeat center center}#cboxLoadingGraphic{background:url(../third-party/colorbox/images/loading.gif) no-repeat center center}#cboxPrevious,#cboxNext,#cboxSlideshow,#cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:none}#cboxPrevious:active,#cboxNext:active,#cboxSlideshow:active,#cboxClose:active{outline:0}#cboxSlideshow{position:absolute;bottom:4px;right:30px;color:#0092ef}#cboxPrevious{position:absolute;bottom:0;left:0;background:url(../third-party/colorbox/images/controls.png) no-repeat -75px 0;width:25px;height:25px;text-indent:-9999px}#cboxPrevious:hover{background-position:-75px -25px}#cboxNext{position:absolute;bottom:0;left:27px;background:url(../third-party/colorbox/images/controls.png) no-repeat -50px 0;width:25px;height:25px;text-indent:-9999px}#cboxNext:hover{background-position:-50px -25px}#cboxClose{position:absolute;bottom:0;right:0;background:url(../third-party/colorbox/images/controls.png) no-repeat -25px 0;width:25px;height:25px;text-indent:-9999px}#cboxClose:hover{background-position:-25px -25px}.cboxIE #cboxTopLeft,.cboxIE #cboxTopCenter,.cboxIE #cboxTopRight,.cboxIE #cboxBottomLeft,.cboxIE #cboxBottomCenter,.cboxIE #cboxBottomRight,.cboxIE #cboxMiddleLeft,.cboxIE #cboxMiddleRight{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)}
assets/css/wpdiscuz-combo.min.css ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /* Quill */
2
+ .ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li::before{content:'\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl)::before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl::before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.ql-editor.ql-blank:focus::before{content:''}
3
+ /* Media Uploader */
4
+ #cboxCurrent{bottom:0;font-size:15px}#wpdcom{height:auto;padding:5px 1px}#wpdcom .wmu-hide{display:none!important}#wpdcom .wmu-show{display:inline-block!important}#wpdcom .wmu-upload-wrap{float:right}#wpdcom .wmu-add{cursor:pointer;margin:0 2px;color:#aaa;cursor:pointer;display:inline}#wpdcom .wmu-add i{color:#444}#wpdcom .wmu-add input[type=file]{visibility:hidden;display:none}#wpdcom .wmu-tabs{width:100%;padding:8px 0 17px 0;margin:1px 0 0 0;border-top:1px dotted #ddd;text-align:left}#wpdcom .wmu-tabs .wmu-preview-images .wmu-preview-remove .wmu-file-name{display:none}#wpdcom .wmu-tabs .wmu-preview-remove{position:relative}#wpdcom .wmu-tabs .wmu-preview-remove img{max-height:45px}#wpdcom .wmu-tabs .wmu-preview-remove .wmu-delete{line-height:45px;position:absolute;display:none;top:0;left:0;width:100%;z-index:100;background:url(../img/delete.png) center no-repeat #eee;opacity:.8}#wpdcom .wmu-tabs .wmu-preview-remove:hover .wmu-delete{display:block;z-index:100}#wpdcom .wmu-preview{margin:0 3px;cursor:pointer;display:inline-block}#wpdcom .wmu-attachment img{vertical-align:bottom}#wpdcom .wmu-attachment audio{vertical-align:bottom}#wpdcom .wmu-attachment-delete,.wpd-content .wmu-attachment-delete{cursor:pointer;border-top:1px solid #fff;visibility:hidden;font-size:5px;line-height:12px;text-align:center;padding:2px 0 1px 0;margin:0;z-index:100;background:url(../img/file-icons/delete.png) center no-repeat;border-bottom:#fff 1px solid}#wpdcom .wmu-attachment:hover>.wmu-attachment-delete,.wpd-content .wmu-attachment:hover>.wmu-attachment-delete{visibility:visible}#wpdcom .wmu-attachment-delete:hover,.wpd-content .wmu-attachment-delete:hover{visibility:visible;background-color:#ffefef;border-bottom:#ffd6d6 1px solid}#wpdcom .wmu-attached-images{border-bottom:1px dotted #dfdfdf;display:flex;margin-bottom:5px}#wpdcom .wmu-attached-images .wmu-attachment{margin:10px 2px 1px 2px}#wpdcom .wmu-attached-images .attachment-thumbnail,#wpdcom .wmu-attached-images .wmu-attached-image{border:3px solid #f1f1f1}#wpdcom .wmu-attached-image-link{display:inline-block}#wpdcom .wmu-attached-images .wmu-separator{padding:4px 0;display:block}#wpdcom .wmu-action-wrap{width:100%;margin:0;padding:0;text-align:left}#wpdcom .wmu-action-wrap img{display:inline-block;vertical-align:bottom}#wpdcom .wmu-top-title{padding:5px 20px 5px 3px;font-size:10px;color:#888;text-align:left;margin-top:-27px;margin-bottom:7px;line-height:14px;white-space:nowrap;display:table;text-transform:uppercase}#wpdcom .msgEmptyFile,#wpdcom .msgPermissionDenied,#wpdcom .msgUploadingNotAllowed,#wpdcom .wmuPhraseMaxFileCount,#wpdcom .wmuPhraseMaxFileSize,#wpdcom .wmuPhraseNotAllowedFile,#wpdcom .wmuPhrasePostMaxSize{background-color:#fce8e8!important;font-size:14px;text-align:center;color:#ce4a66;border:#f2d3d2 1px solid;padding:5px 10px;width:100%;box-sizing:border-box;margin:5px 0;border-radius:3px}@media screen and (max-width:655px){#wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px}#wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px}#wpdcom .wmu-attached-images .wmu-attached-image{height:auto!important}}@media screen and (max-width:500px){#wpdcom .wc-comment-text iframe{width:98%}}@media screen and (max-width:420px){#wpdcom .wmu-top-title{display:none}}.wpd-wrapper #wpd-content-item-4 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-4 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-4 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:20px;line-height:20px;color:#e8484a}
5
+ /* My Content and Settings */
6
+ .lity{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;white-space:nowrap;background:#0b0b0b;background:rgba(0,0,0,.3);outline:0!important;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity.lity-opened{opacity:1}.lity.lity-closed{opacity:0}.lity *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.lity-wrap{z-index:9990;position:fixed;top:34px;right:0;bottom:0;left:0;text-align:center;outline:0!important}.lity-wrap:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.lity-loader{z-index:9991;color:#fff;position:absolute;top:50%;margin-top:-.8em;width:100%;text-align:center;font-size:14px;font-family:Arial,Helvetica,sans-serif;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity-loading .lity-loader{opacity:1}.lity-container{z-index:9992;position:relative;text-align:left;vertical-align:middle;display:inline-block;white-space:normal;max-width:100%;max-height:100%;outline:0!important}.lity-content{z-index:9993;width:100%;-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:-o-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease,-o-transform .3s ease}.lity-closed .lity-content,.lity-loading .lity-content{-webkit-transform:scale(.8);-ms-transform:scale(.8);-o-transform:scale(.8);transform:scale(.8)}.lity-content:after{content:'';position:absolute;left:0;top:0;bottom:0;display:block;right:0;width:auto;height:auto;z-index:-1;-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6)}.lity-close{z-index:9994;width:35px;height:35px;position:fixed;right:0;top:0;-webkit-appearance:none;cursor:pointer;text-decoration:none;text-align:center;padding:0;color:#fff;font-style:normal;font-size:35px;font-family:Arial,Baskerville,monospace;line-height:35px;text-shadow:0 1px 2px rgba(0,0,0,.6);border:0;background:0 0;outline:0;-webkit-box-shadow:none;box-shadow:none}.lity-close::-moz-focus-inner{border:0;padding:0}.lity-close:active,.lity-close:focus,.lity-close:hover,.lity-close:visited{text-decoration:none;text-align:center;padding:0;color:#fff;font-style:normal;font-size:35px;font-family:Arial,Baskerville,monospace;line-height:35px;text-shadow:0 1px 2px rgba(0,0,0,.6);border:0;background:0 0;outline:0;-webkit-box-shadow:none;box-shadow:none}.lity-close:active{top:1px}.lity-image img{max-width:100%;display:block;line-height:0;border:0}.lity-facebookvideo .lity-container,.lity-googlemaps .lity-container,.lity-iframe .lity-container,.lity-vimeo .lity-container,.lity-youtube .lity-container{width:100%;max-width:964px}.lity-iframe-container{width:100%;height:0;padding-top:56.25%;overflow:auto;pointer-events:auto;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-overflow-scrolling:touch}.lity-iframe-container iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}.lity-hide{display:none}.wpd-wrapper *,.wpd-wrapper :after,.wpd-wrapper :before{margin:0;padding:0;box-sizing:border-box}.wpd-wrapper{width:100%;padding:10px;margin:0 auto;background:0 0}.wpd-wrapper .wpd-list{display:flex;border-right:1px solid #ddd}.wpd-wrapper .wpd-list,.wpd-wrapper .wpd-list-item{list-style:none;list-style-type:none;font-size: 14px;}.wpd-wrapper .wpd-list-item{border-top:1px solid #ddd;border-left:1px solid #ddd;border-bottom:1px solid #ddd;display:inline-block;padding:10px 10px;color:#999;cursor:pointer;flex-grow:1;text-align:center}.wpd-wrapper .wpd-list-item:hover{color:#444}.wpd-wrapper .wpd-list-item.wpd-active{border-bottom:none;color:#444}.wpd-wrapper .wpd-list-item span{margin-left:5px}.wpd-wrapper .wpd-content-item{border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd;padding:20px}.wpd-wrapper .wpd-content-item:not(.wpd-active){display:none}.wpd-wrapper .wpd-item{border-bottom:1px solid #ddd;font-size:13px;line-height:19px;padding-bottom:7px}.wpd-wrapper .wpd-item:last-child{border-bottom:none}.wpd-wrapper .wpd-item-link.wpd-comment-meta{font-size:12px;color:#555;padding-bottom:0}.wpd-wrapper .wpd-item-link{padding:5px 10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wpd-wrapper .wpd-post-link{margin-left:3px}.wpd-wrapper .wpd-post-item-link{font-size:12px;font-style:italic;color:#666}.wpd-wrapper .wpd-pagination{display:inline-block;margin:10px 0}.wpd-wrapper .wpd-page-link{color:#000;float:left;padding:3px 10px;text-decoration:none;transition:background-color .3s;border-top:1px solid #ddd;border-left:1px solid #ddd;border-bottom:1px solid #ddd;transition:background-color .3s;cursor:pointer;outline:0}.wpd-wrapper .wpd-page-link:hover:not(.wpd-current-page){background:#ddd}.wpd-wrapper .wpd-page-link:last-of-type{border-right:1px solid #ddd}.wpd-wrapper .wpd-current-page{color:#fff;border:none;cursor:initial}.wpd-wrapper .wpd-item.wpd-follow-item .fa-user{font-size:15px;color:#777}.wpd-wrapper .wpd-item.wpd-follow-item .wpd-fl-name{font-size:16px;color:#777}.wpd-wrapper #wpd-content-item-1 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-1 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-2 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-3 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-2 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-3 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding:15px 0;color:#666}.wpd-wrapper .wpd-item-right *,.wpd-wrapper .wpd-user-email-delete-links-wrap{outline:0!important}.wpd-wrapper #wpd-content-item-1 .wpd-item-right i,.wpd-wrapper #wpd-content-item-2 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:30px;line-height:30px;color:#e8484a}.wpd-wrapper #wpd-content-item-3 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:20px;line-height:20px;color:#e8484a}.wpd-wrapper .wpd-user-email-delete-links-wrap{text-align:center;padding:8px}.wpd-wrapper .wpd-user-email-delete-links{font-size:15px}.wpd-wrapper .wpd-user-email-delete-links span{margin-left:5px}.wpd-wrapper.wpd-guest-settings{text-align:center}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button-wrap{width:70%;min-width:280px;line-height:1.5;border:1px solid #ddd;padding:5px;background:#eee;font-size:14px;margin:15px auto}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button-wrap:hover{background:#f8f8f8}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button{cursor:pointer}.wpd-wrapper.wpd-guest-settings .wpd-guest-action-error{color:#fa5454}.wpd-wrapper.wpd-guest-settings .wpd-guest-action-success{color:#00b38f}.wpd-wrapper.wpd-guest-settings{padding:2%}.wpd-clear{clear:both}.wpd-loading{margin-left:5px}.wpd-hide{display:none}.wpd-show{display:inline-block}.wpd-bulk-desc{font-size:12px;color:#666;font-style:italic}@media screen and (max-width:1024px){.wpd-wrapper .wpd-list-item span{display:none}}
7
+ /* Colorbox */
8
+ #colorbox,#cboxOverlay,#cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden;-webkit-transform:translate3d(0,0,0)}#cboxWrapper{max-width:none}#cboxOverlay{position:fixed;width:100%;height:100%}#cboxMiddleLeft,#cboxBottomLeft{clear:left}#cboxContent{position:relative}#cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}#cboxTitle{margin:0}#cboxLoadingOverlay,#cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{cursor:pointer}.cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.cboxIframe{width:100%;height:100%;display:block;border:0;padding:0;margin:0}#colorbox,#cboxContent,#cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay{background:url(../third-party/colorbox/images/overlay.png) repeat 0 0;opacity:.9;filter:alpha(opacity = 90)}#colorbox{outline:0}#cboxTopLeft{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -101px 0}#cboxTopRight{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -130px 0}#cboxBottomLeft{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -101px -29px}#cboxBottomRight{width:21px;height:21px;background:url(../third-party/colorbox/images/controls.png) no-repeat -130px -29px}#cboxMiddleLeft{width:21px;background:url(../third-party/colorbox/images/controls.png) left top repeat-y}#cboxMiddleRight{width:21px;background:url(../third-party/colorbox/images/controls.png) right top repeat-y}#cboxTopCenter{height:21px;background:url(../third-party/colorbox/images/border.png) 0 0 repeat-x}#cboxBottomCenter{height:21px;background:url(../third-party/colorbox/images/border.png) 0 -29px repeat-x}#cboxContent{background:#fff;overflow:hidden}.cboxIframe{background:#fff}#cboxError{padding:50px;border:1px solid #ccc}#cboxLoadedContent{margin-bottom:28px}#cboxTitle{position:absolute;bottom:4px;left:0;text-align:center;width:100%;color:#949494}#cboxCurrent{position:absolute;bottom:4px;left:58px;color:#949494}#cboxLoadingOverlay{background:url(../third-party/colorbox/images/loading_background.png) no-repeat center center}#cboxLoadingGraphic{background:url(../third-party/colorbox/images/loading.gif) no-repeat center center}#cboxPrevious,#cboxNext,#cboxSlideshow,#cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:none}#cboxPrevious:active,#cboxNext:active,#cboxSlideshow:active,#cboxClose:active{outline:0}#cboxSlideshow{position:absolute;bottom:4px;right:30px;color:#0092ef}#cboxPrevious{position:absolute;bottom:0;left:0;background:url(../third-party/colorbox/images/controls.png) no-repeat -75px 0;width:25px;height:25px;text-indent:-9999px}#cboxPrevious:hover{background-position:-75px -25px}#cboxNext{position:absolute;bottom:0;left:27px;background:url(../third-party/colorbox/images/controls.png) no-repeat -50px 0;width:25px;height:25px;text-indent:-9999px}#cboxNext:hover{background-position:-50px -25px}#cboxClose{position:absolute;bottom:0;right:0;background:url(../third-party/colorbox/images/controls.png) no-repeat -25px 0;width:25px;height:25px;text-indent:-9999px}#cboxClose:hover{background-position:-25px -25px}.cboxIE #cboxTopLeft,.cboxIE #cboxTopCenter,.cboxIE #cboxTopRight,.cboxIE #cboxBottomLeft,.cboxIE #cboxBottomCenter,.cboxIE #cboxBottomRight,.cboxIE #cboxMiddleLeft,.cboxIE #cboxMiddleRight{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)}
assets/css/wpdiscuz-custom-form.css CHANGED
@@ -31,7 +31,7 @@
31
  .wpdiscuz-wrapper .wpd-field-option .wpd-filed-variants{ margin-bottom:10px;}
32
  .wpdiscuz-wrapper .wpd-field-option .wpd-filed-variants input[type="text"]{margin:5px 0px 1px 0px; width:96%}
33
 
34
- #TB_title{background:#E9E9E9!important; text-align:left!important; text-transform:uppercase; font-size:12px!important; font-weight:normal!important; line-height:20px!important; padding:5px 10px;}
35
  #TB_ajaxContent{ width:94%!important; }
36
  #TB_ajaxContent .wpd-field-body{ background:#FDFDFD; padding:15px; text-align:left; margin:20px 0px 15px 0px; border:1px solid #eee;}
37
  #TB_ajaxContent .wpd-field-option { width:100%; margin:7px 0px;}
@@ -73,19 +73,32 @@
73
  .wpdiscuz-wrapper .wpd-form-rel-exixts span{ color:#DD0000;}
74
  .iconpicker-popover.popover{z-index: 1000; width:230px;}
75
  .iconpicker-popover .popover-title .iconpicker-search{width: 100%}
76
- .wpd-advaced-options.wpd-field-option{
77
- margin-top: 10px;
78
- }
79
- .wpd-advaced-options-title{
80
- color: blue;
81
- cursor: pointer;
82
- }
83
- .wpd-advaced-options-cont{
84
- display: none;
85
- }
86
 
87
  @media screen and (max-width:650px){
88
  .wpdiscuz-wrapper .wpd-field-option label{ width:100%;}
89
  .wpdiscuz-wrapper .wpd-field-option input[type="text"],
90
  .wpdiscuz-wrapper .wpd-field-option select{width:100%; margin-top:3px;}
91
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  .wpdiscuz-wrapper .wpd-field-option .wpd-filed-variants{ margin-bottom:10px;}
32
  .wpdiscuz-wrapper .wpd-field-option .wpd-filed-variants input[type="text"]{margin:5px 0px 1px 0px; width:96%}
33
 
34
+ #TB_title{background:#E9E9E9!important; text-align:left!important; text-transform:uppercase; font-size:16px!important; font-weight:normal!important; line-height:20px!important; padding:5px 10px;}
35
  #TB_ajaxContent{ width:94%!important; }
36
  #TB_ajaxContent .wpd-field-body{ background:#FDFDFD; padding:15px; text-align:left; margin:20px 0px 15px 0px; border:1px solid #eee;}
37
  #TB_ajaxContent .wpd-field-option { width:100%; margin:7px 0px;}
73
  .wpdiscuz-wrapper .wpd-form-rel-exixts span{ color:#DD0000;}
74
  .iconpicker-popover.popover{z-index: 1000; width:230px;}
75
  .iconpicker-popover .popover-title .iconpicker-search{width: 100%}
76
+ .wpd-advaced-options.wpd-field-option{margin-top: 10px;}
77
+ .wpd-advaced-options-title{color: blue;cursor: pointer;}
78
+ .wpd-advaced-options-cont{display: none;}
 
 
 
 
 
 
 
79
 
80
  @media screen and (max-width:650px){
81
  .wpdiscuz-wrapper .wpd-field-option label{ width:100%;}
82
  .wpdiscuz-wrapper .wpd-field-option input[type="text"],
83
  .wpdiscuz-wrapper .wpd-field-option select{width:100%; margin-top:3px;}
84
+ }
85
+
86
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form .wpd-field .wpd-field-head {text-align: right;}
87
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form .wpd-field .wpd-field-head .wpd-field-actions{float: left;}
88
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form .wpd-field .wpd-field-head i.fa-pencil-alt{margin-right: 0px; margin-left: 5px;}
89
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form .wpd-field .wpd-field-head i.fa-trash-alt{margin-right: 10px; margin-left: 0px;}
90
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form-options th,
91
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form-options td {text-align: right;}
92
+ [dir=rtl] .wpdiscuz-wrapper .wpd-info {padding-right: 0px; margin-right: 0px;}
93
+ [dir=rtl] .wpdiscuz-wrapper .wpd-col-wrap .wpd-col-left {float: right;}
94
+ [dir=rtl] .wpdiscuz-wrapper .wpd-col-wrap .wpd-col-right {margin-left: 0; margin-right: 2%;float: left;}
95
+ [dir=rtl] .wpdiscuz-wrapper .wpd-field-option{width: 100%; float: right; margin-left: 0; margin-right: 1%;}
96
+ [dir=rtl] .wpdiscuz-wrapper .wpd-field-body{text-align: right;}
97
+ [dir=rtl] #TB_title {text-align: right!important;}
98
+ [dir=rtl] #TB_ajaxContent .wpd-field-body {text-align: right;}
99
+ [dir=rtl] #TB_ajaxContent .add-to-form-button-cont {text-align: left;}
100
+ [dir=rtl] #TB_ajaxContent .wpdiscuz-tb-title {text-align: left;}
101
+ [dir=rtl] .wpdiscuz-wrapper .wpd-form-row-wrap .wpd-form-row-head {right: auto;left: 0;}
102
+ [dir=rtl] .wpd-form-col {padding: 7px 7px 7px 10px;}
103
+ [dir=rtl] .wpdFieldLoad {right: 0;left: 0;}
104
+ [dir=rtl] #TB_ajaxContent .wpdiscuz-item .alert {right: 40%!important;left: auto;}
assets/css/wpdiscuz-deactivation.css CHANGED
@@ -78,4 +78,49 @@
78
  -webkit-transform: rotate(359deg);
79
  transform: rotate(359deg);
80
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
78
  -webkit-transform: rotate(359deg);
79
  transform: rotate(359deg);
80
  }
81
+ }
82
+
83
+ #wpdDeactivationReason .deactivation_feedback {
84
+ display: flex;
85
+ flex-wrap: wrap;
86
+ }
87
+
88
+ #wpdDeactivationReason .wpd-info {
89
+ width: 100%;
90
+ padding: 5px 0;
91
+ color: #777;
92
+ font-size: 13px;
93
+ font-style: italic;
94
+ font-weight: 600;
95
+ line-height: 18px;
96
+ margin: 0;
97
+ }
98
+
99
+ #wpdDeactivationReason .wpddf_left {
100
+ flex-shrink: 0;
101
+ flex-grow: 0;
102
+ align-self: center;
103
+ padding: 0 15px 0 10px;
104
+ }
105
+
106
+ #wpdDeactivationReason .wpddf_right {
107
+ flex-grow: 1;
108
+ }
109
+
110
+ #wpdDeactivationReason .wpddf_right input {
111
+ height: 35px;
112
+ width: 100%;
113
+ padding: 3px 15px;
114
+ font-weight: 100;
115
+ font-style: italic;
116
+ }
117
+
118
+ #wpdDeactivationReason .wpd-deactivation-reason-more-info textarea {
119
+ width: 100%;
120
+ margin-top: 10px;
121
+ }
122
+
123
+ #wpdDeactivationReason .wpd_deactivation_feedback {
124
+ display: flex;
125
+ flex-wrap: wrap;
126
  }
assets/css/wpdiscuz-mu-backend.css ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #the-comment-list .wmu-attachment img{vertical-align:bottom;}
2
+ #the-comment-list .wmu-comment-attachments{padding:0px 5px; margin:3px 0px 10px 0px;}
3
+ #the-comment-list .wmu-attachment-delete{cursor:pointer; border-top:1px solid #ffffff; visibility:hidden; font-size:5px; line-height:12px; text-align:center; padding:2px 0px 1px 0px; margin:0px; z-index:100; background: url('../img/file-icons/delete.png') center no-repeat; border-bottom:white 1px solid;}
4
+ #the-comment-list .wmu-attachment:hover > .wmu-attachment-delete{visibility:visible;}
5
+ #the-comment-list .wmu-attachment-delete:hover{visibility:visible; background-color:#FFEFEF; border-bottom:#FFD6D6 1px solid;}
6
+
7
+ #the-comment-list .wmu-attached-images {border-top: 1px dotted #dfdfdf;}
8
+ #the-comment-list .wmu-attached-images.wmu-count-single{border-top:none;}
9
+ #the-comment-list .wmu-attached-images .wmu-attachment{margin:10px 2px 1px 2px; display:inline-block;width: 60px;}
10
+ #the-comment-list .wmu-attached-images .wmu-attached-image{border: 3px solid #f1f1f1;}
11
+ #the-comment-list .wmu-attached-images .attachment-thumbnail{border: 3px solid #f1f1f1;}
12
+ #the-comment-list .wmu-attached-image-link{display: inline-block;}
13
+ #the-comment-list .wmu-attached-images .wmu-separator{padding:4px 0px; display:block;}
14
+
15
+ #the-comment-list .wmu-action-wrap{width:100%; margin:0px; padding:0px; text-align:left;}
16
+ #the-comment-list .wmu-action-wrap img{display:inline-block; vertical-align:bottom;}
17
+ #the-comment-list .wmu-top-title{padding:5px 20px 5px 3px; font-size:10px; color:#888888; text-align:left; margin-top:-27px; margin-bottom:7px; line-height:14px; white-space:nowrap; display:table; text-transform:uppercase;}
18
+ #the-comment-list .wmu-filreader-not-exist {/*show filename before uploading if file reader not exists*/}
19
+
20
+ table.wpdiscuz-mu .wmu-block {float:left; display:inline-block; min-width:25%;}
21
+ table.wpdiscuz-mu .wmu-block-inline {display:block;}
22
+
23
+ @media screen and (max-width:655px){
24
+ #the-comment-list .wmu-attached-images .wmu-attached-image{width:100%!important; height:auto!important; }
25
+ }
26
+
27
+ @media screen and (max-width:420px){
28
+ #the-comment-list .wmu-top-title{display:none;}
29
+ }
assets/css/wpdiscuz-mu-frontend.css ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #cboxCurrent {bottom: 0;font-size: 15px;}
2
+ #wpdcom{height:auto; padding:5px 1px;}
3
+ #wpdcom .wmu-hide{display:none!important;}
4
+ #wpdcom .wmu-show{display:inline-block!important;}
5
+ #wpdcom .wmu-upload-wrap{float: right;}
6
+ #wpdcom .wmu-add{cursor: pointer; margin:0px 2px; color:#aaaaaa; cursor:pointer; display:inline;}
7
+ #wpdcom .wmu-add i{color:#444;}
8
+ #wpdcom .wmu-add input[type="file"]{visibility:hidden;display:none;}
9
+ #wpdcom .wmu-tabs{width:100%; padding: 8px 0px 17px 0px; margin:1px 0px 0px 0px; border-top: 1px dotted #dddddd; text-align:left; }
10
+ #wpdcom .wmu-tabs .wmu-preview-images .wmu-preview-remove .wmu-file-name{display: none;}
11
+ #wpdcom .wmu-tabs .wmu-preview-remove {position:relative;}
12
+ #wpdcom .wmu-tabs .wmu-preview-remove img{max-height:45px;}
13
+ #wpdcom .wmu-tabs .wmu-preview-remove .wmu-delete{line-height:45px; position: absolute; display:none; top:0px; left:0px; width:100%; z-index:100; background: url('../img/delete.png') center no-repeat #eeeeee; opacity:0.8;}
14
+ #wpdcom .wmu-tabs .wmu-preview-remove:hover .wmu-delete{display:block; z-index:100;}
15
+ #wpdcom .wmu-preview{margin:0px 3px; cursor:pointer;display: inline-block;}
16
+ #wpdcom .wmu-attachment img{vertical-align:bottom;}
17
+ #wpdcom .wmu-attachment audio{vertical-align:bottom;}
18
+ #wpdcom .wmu-attachment-delete,
19
+ .wpd-content .wmu-attachment-delete{cursor:pointer; border-top:1px solid #ffffff; visibility:hidden; font-size:5px; line-height:12px; text-align:center; padding:2px 0px 1px 0px; margin:0px; z-index:100; background: url('../img/file-icons/delete.png') center no-repeat; border-bottom:white 1px solid;}
20
+ #wpdcom .wmu-attachment:hover > .wmu-attachment-delete,
21
+ .wpd-content .wmu-attachment:hover > .wmu-attachment-delete{visibility:visible;}
22
+ #wpdcom .wmu-attachment-delete:hover,
23
+ .wpd-content .wmu-attachment-delete:hover{visibility:visible; background-color:#FFEFEF; border-bottom:#FFD6D6 1px solid;}
24
+ #wpdcom .wmu-attached-images {border-bottom: 1px dotted #dfdfdf; display: flex; margin-bottom: 5px;}
25
+ #wpdcom .wmu-attached-images .wmu-attachment{margin:10px 2px 1px 2px;}
26
+ #wpdcom .wmu-attached-images .wmu-attached-image,
27
+ #wpdcom .wmu-attached-images .attachment-thumbnail{border: 3px solid #f1f1f1;}
28
+ #wpdcom .wmu-attached-image-link{display: inline-block;}
29
+ #wpdcom .wmu-attached-images .wmu-separator{padding:4px 0px; display:block;}
30
+ #wpdcom .wmu-action-wrap{width:100%; margin:0px; padding:0px; text-align:left;}
31
+ #wpdcom .wmu-action-wrap img{display:inline-block; vertical-align:bottom;}
32
+ #wpdcom .wmu-top-title{padding:5px 20px 5px 3px; font-size:10px; color:#888888; text-align:left; margin-top:-27px; margin-bottom:7px; line-height:14px; white-space:nowrap; display:table; text-transform:uppercase;}
33
+ #wpdcom .wmu-filreader-not-exist {/*show filename before uploading if file reader not exists*/}
34
+ #wpdcom .wmuPhraseNotAllowedFile,#wpdcom .wmuPhraseMaxFileCount,#wpdcom .wmuPhraseMaxFileSize,
35
+ #wpdcom .wmuPhrasePostMaxSize,#wpdcom .msgEmptyFile,#wpdcom .msgUploadingNotAllowed,
36
+ #wpdcom .msgPermissionDenied{background-color:#fce8e8!important; font-size:14px; text-align:center; color:#ce4a66; border:#f2d3d2 1px solid; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
37
+
38
+ @media screen and (max-width:655px){
39
+ #wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px;}
40
+ #wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px;}
41
+ #wpdcom .wmu-attached-images .wmu-attached-image{height:auto!important;}
42
+ }
43
+
44
+ @media screen and (max-width:500px) {
45
+ #wpdcom .wc-comment-text iframe{width:98%;}
46
+ }
47
+
48
+ @media screen and (max-width:420px){
49
+ #wpdcom .wmu-top-title{display:none;}
50
+ }
51
+
52
+ /* MY MEDIA TAB */
53
+ .wpd-wrapper #wpd-content-item-4 .wpd-item-left{float:left; width:88%; border-right: 1px dotted #ccc; margin-top:5px;}
54
+ .wpd-wrapper #wpd-content-item-4 .wpd-item-right{margin-left:92%; text-align:center; vertical-align:middle; padding-top:24px; color:#666;}
55
+ .wpd-wrapper #wpd-content-item-4 .wpd-item-right i{display:inline-block; vertical-align:middle; font-size:20px; line-height:20px;color: #e8484a;}
assets/css/wpdiscuz-mu-frontend.min.css ADDED
@@ -0,0 +1 @@
 
1
+ #cboxCurrent{bottom:0;font-size:15px}#wpdcom{height:auto;padding:5px 1px}#wpdcom .wmu-hide{display:none!important}#wpdcom .wmu-show{display:inline-block!important}#wpdcom .wmu-upload-wrap{float:right}#wpdcom .wmu-add{cursor:pointer;margin:0 2px;color:#aaa;cursor:pointer;display:inline}#wpdcom .wmu-add i{color:#444}#wpdcom .wmu-add input[type=file]{visibility:hidden;display:none}#wpdcom .wmu-tabs{width:100%;padding:8px 0 17px 0;margin:1px 0 0 0;border-top:1px dotted #ddd;text-align:left}#wpdcom .wmu-tabs .wmu-preview-images .wmu-preview-remove .wmu-file-name{display:none}#wpdcom .wmu-tabs .wmu-preview-remove{position:relative}#wpdcom .wmu-tabs .wmu-preview-remove img{max-height:45px}#wpdcom .wmu-tabs .wmu-preview-remove .wmu-delete{line-height:45px;position:absolute;display:none;top:0;left:0;width:100%;z-index:100;background:url(../img/delete.png) center no-repeat #eee;opacity:.8}#wpdcom .wmu-tabs .wmu-preview-remove:hover .wmu-delete{display:block;z-index:100}#wpdcom .wmu-preview{margin:0 3px;cursor:pointer;display:inline-block}#wpdcom .wmu-attachment img{vertical-align:bottom}#wpdcom .wmu-attachment audio{vertical-align:bottom}#wpdcom .wmu-attachment-delete,.wpd-content .wmu-attachment-delete{cursor:pointer;border-top:1px solid #fff;visibility:hidden;font-size:5px;line-height:12px;text-align:center;padding:2px 0 1px 0;margin:0;z-index:100;background:url(../img/file-icons/delete.png) center no-repeat;border-bottom:#fff 1px solid}#wpdcom .wmu-attachment:hover>.wmu-attachment-delete,.wpd-content .wmu-attachment:hover>.wmu-attachment-delete{visibility:visible}#wpdcom .wmu-attachment-delete:hover,.wpd-content .wmu-attachment-delete:hover{visibility:visible;background-color:#ffefef;border-bottom:#ffd6d6 1px solid}#wpdcom .wmu-attached-images{border-bottom:1px dotted #dfdfdf;display:flex;margin-bottom:5px}#wpdcom .wmu-attached-images .wmu-attachment{margin:10px 2px 1px 2px}#wpdcom .wmu-attached-images .attachment-thumbnail,#wpdcom .wmu-attached-images .wmu-attached-image{border:3px solid #f1f1f1}#wpdcom .wmu-attached-image-link{display:inline-block}#wpdcom .wmu-attached-images .wmu-separator{padding:4px 0;display:block}#wpdcom .wmu-action-wrap{width:100%;margin:0;padding:0;text-align:left}#wpdcom .wmu-action-wrap img{display:inline-block;vertical-align:bottom}#wpdcom .wmu-top-title{padding:5px 20px 5px 3px;font-size:10px;color:#888;text-align:left;margin-top:-27px;margin-bottom:7px;line-height:14px;white-space:nowrap;display:table;text-transform:uppercase}#wpdcom .msgEmptyFile,#wpdcom .msgPermissionDenied,#wpdcom .msgUploadingNotAllowed,#wpdcom .wmuPhraseMaxFileCount,#wpdcom .wmuPhraseMaxFileSize,#wpdcom .wmuPhraseNotAllowedFile,#wpdcom .wmuPhrasePostMaxSize{background-color:#fce8e8!important;font-size:14px;text-align:center;color:#ce4a66;border:#f2d3d2 1px solid;padding:5px 10px;width:100%;box-sizing:border-box;margin:5px 0;border-radius:3px}@media screen and (max-width:655px){#wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px}#wpdcom .wmu-preview-remove .wmu-file-name{font-size:11px}#wpdcom .wmu-attached-images .wmu-attached-image{height:auto!important}}@media screen and (max-width:500px){#wpdcom .wc-comment-text iframe{width:98%}}@media screen and (max-width:420px){#wpdcom .wmu-top-title{display:none}}.wpd-wrapper #wpd-content-item-4 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-4 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-4 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:20px;line-height:20px;color:#e8484a}
assets/css/wpdiscuz-options.css ADDED
@@ -0,0 +1,534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wc-form table.wp-list-table td, .wc-form table.wp-list-table th{ padding: 12px 5px;}
2
+ .wc-form tr:nth-child(even){background:#fff}
3
+ .wc-form tr:nth-child(odd){background:#f9f9f9}
4
+ .form-table.wc-form-table tr{background:transparent}
5
+ .wpdiscuz_options_page .wc-phrases-settings-form input[type="text"],
6
+ .wpdiscuz_options_page .wc-phrases-settings-form textarea{width:300px}
7
+ .wpdiscuz_wrap {height: 50px;width: 100%;}
8
+ .wpdiscuz_progressbar {height: 50px;text-align: center;background: #f00;width: 0;}
9
+ .wpdiscuz-share-buttons {display: inline-block; width: 18px; height: 18px;}
10
+ .wc-form input.wc_share_button {display: none;}
11
+ .wc-form input[type="text"].regular-text{ width:160px; }
12
+ .wc-form select{min-width: 140px;}
13
+ .wc-form .wpdiscuz-option-title {vertical-align: middle;}
14
+ .wc-form .wc-hidden {display: none;}
15
+ .wc-form .resp-tabs-container.integrationsChild {margin-bottom: 5px;}
16
+ .wc-form .wpdiscuz_export_options,.wc-form .wpdiscuz_import_options{width:100%;}
17
+ .wc-form .wpdxb th label{margin: 1px 0px 5px 0px; padding: 0px; font-size: 14px; font-weight:bold; color: #333333; display: block;}
18
+ .wc-form .wpdxb th fieldset label{margin: 0px; padding: 0px 2px 5px 0px; font-size: 13px; font-weight:normal; color: #333333; display:inline-block;}
19
+ .wc-form .wpdxb th fieldset label span{display: inline-block; padding-left: 5px;}
20
+ .wc-form .wpdxb p.wpd-desc{font-size:13px; color:#666666; width:80%; padding:0px; margin:0px; line-height: 18px;}
21
+ .wc-form .wpdxb .wpd-subopt{float: left; min-width: 48%; margin:0px 1% 5px 0px;}
22
+
23
+ .wc-form div.wpd-subtitle{padding: 20px 10px 15px 2px; margin: 0px; font-size: 19px; font-weight: normal;color: #10b493; border-bottom: 1px dashed #10b493;}
24
+ .wc-form div.wpd-subtitle .wpd-info{color: #666; margin: 8px 0 0 0;}
25
+ .wc-form div.wpd-subtitle strong{display: block; margin: 5px 0 0 0; font-size: 14px; font-weight: normal; color: #666;}
26
+ .wc-form h4.wpd-subtitle{ padding: 20px 0 10px 0; margin: 0; font-size: 16px; font-weight: normal; color: #10b493; border-bottom: 1px dashed #10b493;}
27
+
28
+
29
+ .wc-form .wpdxb td input[type=checkbox]{ height: 0; width: 0; visibility: hidden; position: absolute;}
30
+ .wc-form .wpdxb td label { cursor: pointer; text-indent: -9999px; width: 50px; height: 20px; background: grey; display: block; border-radius: 30px; position: relative;border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;}
31
+ .wc-form .wpdxb td label:after {content: ''; position: absolute; top: 4px; left: 5px; width: 12px; height: 12px; background: #fff; border-radius: 90px; transition: 0.3s;}
32
+ .wc-form .wpdxb td input:checked + label {background: #07B290;}
33
+ .wc-form .wpdxb td input:checked + label:after {left: calc(100% - 5px);transform: translateX(-100%);}
34
+ .wc-form .wpdxb td label:active:after {width: 12px;}
35
+
36
+ .wc-form .wpdxx input[type=checkbox]{ height: 0; width: 0; visibility: hidden; position: absolute;}
37
+ .wc-form .wpdxx label { cursor: pointer; text-indent: -9999px; width: 50px; height: 20px; background: grey; display: block; border-radius: 30px; position: relative;border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;}
38
+ .wc-form .wpdxx label:after {content: ''; position: absolute; top: 4px; left: 5px; width: 12px; height: 12px; background: #fff; border-radius: 90px; transition: 0.3s;}
39
+ .wc-form .wpdxx input:checked + label {background: #07B290;}
40
+ .wc-form .wpdxx input:checked + label:after {left: calc(100% - 5px);transform: translateX(-100%);}
41
+ .wc-form .wpdxx label:active:after {width: 12px;}
42
+
43
+ .wc-form .wpdxb th .wpd-switch-field input { display: none;}
44
+ .wc-form .wpdxb th .wpd-switch-field label {float: left;}
45
+ .wc-form .wpdxb th .wpd-switch-field label {display: inline-block; line-height: 20px; min-width:90px; font-weight: normal; background-color: #e4e4e4;color:#333;font-size: 13px;text-align: center; text-shadow: none;padding: 2px 8px; border: 1px solid rgba(0, 0, 0, 0.2);-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);-webkit-transition: all 0.1s ease-in-out;-moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}
46
+ .wc-form .wpdxb th .wpd-switch-field label:hover {cursor: pointer;}
47
+ .wc-form .wpdxb th .wpd-switch-field input:checked + label {background-color: #07B290; -webkit-box-shadow: none; box-shadow: none; color:#fff;} /* #66DD8D */
48
+ .wc-form .wpdxb th .wpd-switch-field label:first-of-type {border-radius: 4px 0 0 4px;}
49
+ .wc-form .wpdxb th .wpd-switch-field label:last-of-type {border-radius: 0 4px 4px 0;}
50
+
51
+ .wc-form .widefat th input{ margin: 0px;}
52
+ .wc-form .widefat th{ position: relative;}
53
+ .wc-form .widefat td{ position: relative;}
54
+
55
+ .wpdiscuz_options_page .widefat a{color:#08a082;}
56
+ .wpdiscuz_options_page .widefat a:hover{color:#10b493;}
57
+
58
+ /*addons*/
59
+ #menu-comments ul > li:nth-child(3) a{ color:#25ACEA!important; text-shadow: 1px 1px 1px #000; }
60
+ .wpdiscuz_addons_page .wpdiscuz-addons-wrapper {box-sizing: border-box;}
61
+ .wpdiscuz_addons_page .wpdiscuz-addon-block {width: 260px; padding-top:10px; height:auto; float: left; margin-right: 1%; margin-bottom: 20px; background: #fff; border: 2px solid #e5e5e5; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04);}
62
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-thumb {float:none; width: 242px; padding:10px; margin-top:2px; height:180px;}
63
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-info {display:block; margin:0px; background:#07B290; padding:10px 15px; border:3px solid #fff; border-top:none; margin-top:10px;}
64
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-title { font-size:16px; font-weight:bold; color:#FFFFFF; margin:0px; line-height:18px; display:inline-block; text-decoration:none;}
65
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-title:hover { color:#D8FF6D;}
66
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-desc { font-size:13px; color:#FFFFFF; margin:0px; line-height:18px; margin:0px; padding:10px 0px 0px 0px; font-style:italic;}
67
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-isactive {margin: 0px; padding:10px; background:#e5e5e5; text-align:center;}
68
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .addon-button{ margin-bottom:10px;}
69
+ .wpdiscuz_addons_page .wpdiscuz-addon-block .note-installed { padding:10px 20px; background:#fff; border: 1px solid #ddd; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.04); color:#07B290; font-size:14px; margin-top:20px; }
70
+
71
+ .import-percentage {vertical-align: middle;color: #444;margin-left: 5px;}
72
+
73
+ .wpd-social-login td label{margin-right: 5px; }
74
+ .wc-form table.wp-list-table.wpd-social-login td, .wc-form table.wp-list-table.wpd-social-login th{padding: 9px 10px 5px 10px;}
75
+ .wpd-social-login .wpd-social-lable {font-size: 18px;}
76
+ .wpd-social-login .wpd-social-lable i{padding-right: 10px; font-size: 34px; display: inline-block; bottom: -5px; position: relative;}
77
+ .wpd-social-login td input[type="text"]{width: 50%; padding: 5px 10px; font-size: 14px;}
78
+
79
+ .wpd-social-login .wpd-social-lable.wpd-facebook{color: #4267B2; border-bottom: 2px solid #9fbbff; }
80
+ .wpd-social-login .wpd-social-lable.wpd-twitter{color: #1DA1F2; border-bottom: 2px solid #97dafe; }
81
+ .wpd-social-login .wpd-social-lable.wpd-google{color: #D84538; border-bottom: 2px solid #ffa48e;}
82
+ .wpd-social-login .wpd-social-lable.wpd-disqus{color: #2e9fff; border-bottom: 2px solid #2e9fff;}
83
+ .wpd-social-login .wpd-social-lable.wpd-wordpress{color: #0087be; border-bottom: 2px solid #0087be;}
84
+ .wpd-social-login .wpd-social-lable.wpd-ok{color: #EE7808; border-bottom: 2px solid #ffc369;}
85
+ .wpd-social-login .wpd-social-lable.wpd-vk{color: #4A76A8; border-bottom: 2px solid #a3c1ff;}
86
+
87
+ .widefat .wpd-color-wrap{padding: 7px 5px; min-width: 300px; float: left;}
88
+ .widefat .wpd-color-wrap input{width: 80px!important; padding: 3px 5px!important; font-size: 13px!important; text-align: center!important;}
89
+ .widefat .wpd-color-wrap label{font-weight: normal!important; display: inline-block!important; margin: 0px 5px!important;}
90
+ .wpdiscuz_options_page i.fa-question-circle{ font-size: 16px; right: 15px; top: 15px; position: absolute;}
91
+ [dir=rtl] .wpdiscuz_options_page i.fa-question-circle{ font-size: 16px; right: auto; left: 15px; top: 15px; position: absolute;}
92
+
93
+ /*======== RATING ===============*/
94
+
95
+ .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-label{ background:transparent; border:none; padding: 2px 10px 2px 2px; }
96
+ .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-value{font-size: 16px; border-bottom:none; padding: 1px 10px; }
97
+
98
+ .wpdiscuz-item.wpd-field-group.wpd-field-rating{ border-bottom:1px dotted #ddd; height:77px; margin-bottom:0px;}
99
+ .postbox-container .wpdiscuz-item.wpd-field-group.wpd-field-rating{height:40px;}
100
+ .wpdiscuz-item .wpdiscuz-rating {border: none; float: left; margin:0px; padding:5px 0px 5px 1px; margin-left:-5px;}
101
+ .wpdiscuz-item .wpdiscuz-rating > input { visibility:hidden; position:absolute;}
102
+ .wpdiscuz-item .wpdiscuz-rating > label:before { margin: 3px; line-height: 18px; font-size: 1.4em; cursor:pointer;}
103
+ .wpdiscuz-item .wpdiscuz-rating > .half:before {position: absolute; cursor:pointer;}
104
+ .wpdiscuz-item .wpdiscuz-rating > label { float: right; }
105
+ .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc{ right:0px; top:0px; position:relative; font-size:14px; margin-left:5px; padding: 0 7px;}
106
+ .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc i.far{ font-size:17px;}
107
+ .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ display:inline-block; vertical-align:baseline; padding:0px 0px 2px 0px; margin-top:-2px;}
108
+ .wpd-form-col-full .wpdiscuz-item .wpdiscuz-rating{ padding:0px 6px 0px 0px; vertical-align:middle; line-height: 14px;}
109
+ .wpd-form-col-full .wpd-item-wrap{ display:inline-block; float:left; padding-right:7px; vertical-align:baseline; padding:0px 1px 1px 1px;}
110
+ .wpdiscuz-stars-label{ line-height:20px; padding:10px 0px 2px 3px; font-size:14px;}
111
+ .wpdiscuz-stars-wrapper{ display:block;}
112
+ .wpdiscuz-stars-wrapper-inner{ position: absolute;}
113
+ .wpdiscuz-activ-stars{ position: absolute; display: flex; font-size: 22px; top: 0; left:0;}
114
+ .wpdiscuz-pasiv-stars{ font-size: 22px; display: flex;}
115
+ .wpdiscuz-activ-stars{ overflow:hidden;}
116
+ .wpdiscuz-pasiv-stars i.wpdiscuz-pasiv-star, .wpdiscuz-activ-stars i.wpdiscuz-activ-star{ padding:0px 2px; font-size:20px;}
117
+ .wpdiscuz-post-rating-wrap.wpd-custom-field{display: flex;flex-wrap: wrap;}
118
+ .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 25%;margin-bottom: 10px;}
119
+ @media screen and (max-width: 1024px){
120
+ .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 33%;margin-bottom: 10px;}
121
+ }
122
+ @media screen and (max-width:650px){
123
+ .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
124
+ flex-basis: 50%;
125
+ margin-bottom: 10px;
126
+ }
127
+ }
128
+ @media screen and (max-width:420px){
129
+ .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
130
+ flex-basis: 100%;
131
+ margin-bottom: 10px;
132
+ }
133
+ }
134
+
135
+
136
+ .wrap {margin: 10px 20px 0 20px;}
137
+ .wpd-clear{clear: both;}
138
+
139
+ /************************************************************/
140
+ /* Rating #################################################*/
141
+ /************************************************************/
142
+ .wpdiscuz-item .wpdiscuz-rating > label {color: #DDDDDD;}
143
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"] ~ label:hover,
144
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:not(:checked) ~ label:hover ~ label,
145
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:not(:checked) ~ label:hover ~ label{color: #FFED85;}
146
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label:hover,
147
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label:hover,
148
+ .wpdiscuz-item .wpdiscuz-rating > label[type="radio"]:hover ~ input:checked ~ label,
149
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked + label:hover ~ label,
150
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked + label::before,
151
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label:hover ~ label,
152
+ .wpd-custom-field .wcf-activ-star,
153
+ .wpdiscuz-item .wpdiscuz-rating > input[type="radio"]:checked ~ label{ color:#FFD700;}
154
+ .wpd-custom-field .wcf-pasiv-star, .wpdiscuz-item .wpdiscuz-rating > label {color: #DDDDDD;}
155
+
156
+ /************************************************************/
157
+ /* Dashboard ##############################################*/
158
+ /************************************************************/
159
+ #wpd-dash.wrap{padding: 10px 30px 10px 40px; margin:0; }
160
+ #wpd-dash[dir=rtl]{padding: 10px 40px 10px 30px;}
161
+ #wpd-dash a{text-decoration: none;}
162
+ #wpd-dash a:hover{text-decoration: underline;}
163
+ #wpd-dash .wpd-dash-head{display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start;}
164
+ #wpd-dash .wpd-dash-head-left h1{font-size: 34px; letter-spacing: 1px; line-height: 40px; padding-bottom: 0px; margin-bottom: 0px;}
165
+ #wpd-dash .wpd-dash-head-left .wpd-head-subtitle{margin-left: 275px; font-size: 11px; color: #0e8e75; font-weight: bold; font-family: "Courier New", Courier, monospace; margin-top: -1px;}
166
+ #wpd-dash .wpd-dash-head-left .wpd-head-welcome{font-size: 15px; line-height: 25px; letter-spacing: 1px; font-family: 'Lucida Bright', 'DejaVu Serif', Georgia, serif; padding-top: 15px;}
167
+ #wpd-dash .wpd-dash-head-right{text-align: center;}
168
+ #wpd-dash .wpd-dash-head-right img{ width: 147px; display: block; margin: 10px auto 1px auto;}
169
+ #wpd-dash .wpd-dash-head-right .wpd-version{font-family: Verdana, Arial, sans-serif; font-weight: bold; font-size: 12px; color: #666666; }
170
+ #wpd-dash .wpd-section{margin: 35px 0px 20px 0px; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; width: 100%; border-bottom: 1px solid #cccccc; padding: 0px 1px 8px 1px; }
171
+ #wpd-dash .wpd-section h3{padding: 0px; margin: 0px;}
172
+ #wpd-dash .wpd-section .wpd-close{font-size: 14px; color: #666666; cursor: pointer;}
173
+ #wpd-dash .wpd-section .dashicons{color: #777777; cursor: pointer;}
174
+ #wpd-dash .wpdiscuz-news.wpdiscuz-news-hide{display:none;}
175
+ #wpd-dash .wpdiscuz-news .wpd-tab-container{padding: 20px 25px;}
176
+ #wpd-dash .wpdiscuz-news .wpd-tab-container h1{margin-top: 0px; padding-top: 0px; margin-bottom: 5px;}
177
+ #wpd-dash .wpdiscuz-news .wpd-tab-container .wpd-news-icon{float: left; width: 100px; padding: 0px 30px 10px 0px; }
178
+ #wpd-dash .wpdiscuz-news .wpd-tab-container p{ text-align: justify; font-size: 14px; line-height: 1.5; font-family: 'Lucida Bright', 'DejaVu Serif', Georgia, serif; margin: 0px 0px 5px 0px;}
179
+ #wpd-dash .wpdiscuz-news .wpd-tab-container img{max-width: 100%;}
180
+ #wpd-dash .wpd-sec-stat{margin-top: 30px;}
181
+ #wpd-dash .wpd-box{background: #FFF; box-shadow: 0px 0px 3px #aaa;}
182
+ #wpd-dash .wpd-box .wpd-box-head{border-bottom: 1px solid #ccc; padding: 10px 20px; display: flex; flex-direction: row; justify-content: space-between; align-items: center;}
183
+ #wpd-dash .wpd-box .wpd-box-head h3{font-size: 16px; margin: 0px; padding: 0px; line-height: 24px; color: #333333; font-weight: normal;}
184
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-toggle{width: 50px; text-align: right; display: flex; flex-direction: row;justify-content: flex-end; align-items: center;}
185
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-toggle span{font-size: 22px; color: #777; cursor: pointer; display: inline; line-height: 22px;}
186
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-toggle span.dashicons-admin-generic{font-size: 15px;}
187
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-toggle span.dashicons-arrow-left,
188
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-toggle span.dashicons-arrow-right{line-height: 22px; width: 14px; font-size: 24px; color: #0d9b7f; margin-right: 3px;}
189
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-info{flex-grow: 1; padding-left: 20px;}
190
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-info span{font-size: 12px; color: #666;}
191
+ #wpd-dash .wpd-box .wpd-box-head .wpd-box-info span.dashicons{font-size: 13px; line-height: 21px;}
192
+ #wpd-dash .wpd-overview{display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; align-items: flex-start;}
193
+ #wpd-dash .wpd-overview .wpd-stat-brief{width: 430px;}
194
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box{width: 100%; border-top: 3px solid #07b290; margin-bottom: 20px; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; align-items: stretch;}
195
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-stat-cell{width:50%; box-sizing: border-box; text-align: center; padding: 26px 25px; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: nowrap; align-items: stretch;}
196
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-stat-cell:nth-child(1){border-right: 1px dashed #aaaaaa; border-bottom: 1px dashed #aaaaaa;}
197
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-stat-cell:nth-child(2){border-bottom: 1px dashed #aaaaaa;}
198
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-stat-cell:nth-child(3){border-right: 1px dashed #aaaaaa;}
199
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-stat-cell .wpd-cell-icon{align-self: center;}
200
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box.wpd-stat-brief-bottom .wpd-stat-cell:nth-child(1),
201
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box.wpd-stat-brief-bottom .wpd-stat-cell:nth-child(2){border-bottom: none;}
202
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-cell-text span{display: block;}
203
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-cell-text span.wpd-cell-num{font-size: 16px; padding-bottom: 1px;}
204
+ #wpd-dash .wpd-overview .wpd-stat-brief .wpd-stat-box .wpd-cell-text span.wpd-cell-label{font-size: 11px; text-transform: uppercase;}
205
+ #wpd-dash .wpd-overview .wpd-stat-graph{width: calc(100% - 455px);}
206
+ #wpd-dash .wpd-overview .wpd-stat-user{width: 68%; margin-top: 20px;}
207
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table{width: 96%; margin: 0px auto; padding-bottom: 5px;}
208
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table .wpd-active{color:#0d9b7f;}
209
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table th{ color: #666; font-size: 10px; line-height: 20px; text-transform: uppercase; font-weight: normal; font-weight: bold; padding: 12px 10px; border-bottom: 1px solid #ccc; text-align: center;}
210
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table th:nth-child(1){text-align: left;}
211
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table th span.dashicons{font-size: 12px; line-height: 20px;}
212
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table td{padding: 5px; text-align: center; vertical-align: middle; border-bottom: 1px dashed #aaa;}
213
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table td:nth-child(1){text-align: left;}
214
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table td img{vertical-align: middle; height: 24px; border-radius: 50%; margin-right: 7px;}
215
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table td .wpd-name{font-size: 13px;}
216
+ #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table tr:last-child td{border-bottom: none;}
217
+ #wpd-dash .wpd-overview .wpd-stat-subs{width: 30%; margin-top: 20px;}
218
+ #wpd-dash .wpd-overview .wpd-stat-subs .wpd-box-body{ padding: 5px 15px 12px 15px;}
219
+ #wpd-dash .wpd-overview .wpd-box-list{padding: 0px; margin: 0px; margin: 5px auto;}
220
+ #wpd-dash .wpd-overview .wpd-box-list li{padding: 7px 10px; border-bottom: 1px dashed #aaa; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end;}
221
+ #wpd-dash .wpd-overview .wpd-box-list li:last-child{border-bottom: none;}
222
+ #wpd-dash .wpd-credits{display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start;}
223
+ #wpd-dash .wpd-credits .wpd-widget{padding:10px 2% 20px 2%; min-width: 24%; box-sizing: border-box;}
224
+ #wpd-dash .wpd-credits .wpd-widget .wpd-widget-head{border-bottom: 2px solid #07b290; font-size: 16px; font-weight: 600; padding: 5px; line-height: 24px;}
225
+ #wpd-dash .wpd-credits .wpd-widget .wpd-widget-body ul{margin-left: 5px; padding: 0px;}
226
+ #wpd-dash .wpd-credits .wpd-widget .wpd-widget-body li{list-style: none; padding: 1px;}
227
+ #wpd-dash .wpd-credits .wpd-widget span.dashicons-admin-links{font-size: 15px; line-height: 22px;}
228
+ #wpd-dash .wpd-credits .wpd-widget span.dashicons-admin-plugins{font-size: 18px; line-height: 22px;}
229
+ #wpd-dash .wpd-credits .wpd-widget span.dashicons-star-filled{font-size: 15px; color: #fd8900; width: 16px; line-height: 20px;}
230
+ #wpd-dash .wpd-spinner{width:100%;text-align:center;}
231
+ #wpd-dash .wpd-spinner .spinner{float:none;visibility:visible;}
232
+ #wpd-dash .wpd-stat-graph .wpd-box-toggle{position:relative;}
233
+ #wpd-dash .wpd-stat-graph .wpd-box-toggle .wpd-graph-tools{display:none; position: absolute; left: -50%; min-width: 100px; flex-direction: column; background-color: #fff; border: 1px solid #ccc; padding: 5px 8px; border-radius: 3px; z-index: 9; color: #999; top: 26px;text-align: center;}
234
+ #wpd-dash .wpd-stat-graph .wpd-box-toggle .wpd-graph-tools span{font-size: 14px;}
235
+ #wpd-dash .wpd-stat-graph .wpd-box-toggle .wpd-graph-tools span.wpd_tool_active{color:#07b290;}
236
+ #wpd-dash .wpd-stat-user .wpd-sort-field{cursor:pointer;}
237
+
238
+
239
+ /************************************************************/
240
+ /* Setting Boxes ###########################################*/
241
+ /************************************************************/
242
+ #wpcontent{padding-left: 0px;}
243
+ #wpcontent[dir=rtl]{padding-right: 0px;}
244
+ #wpd-setbox{box-sizing:border-box; padding: 0px; }
245
+ #wpd-setbox[dir=rtl] { margin-right: -10px;}
246
+ #wpd-setbox.wrap{}
247
+ #wpd-setbox a{text-decoration: none;}
248
+ #wpd-setbox a:hover{text-decoration: underline;}
249
+ #wpd-setbox a:visited, #wpd-setbox a:focus{box-shadow: none!important;}
250
+ #wpd-setbox .wpd-setbox-head{box-sizing:border-box; padding: 20px 30px 10px 30px; margin-top: 18px; margin-bottom: 40px; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; box-shadow: 0px 0px 60px #ccc; background-color: #f9f9f9;}
251
+ #wpd-setbox .wpd-setbox-head .wpd-head-logo{width: 54px; height: 54px; padding-bottom: 5px;}
252
+ #wpd-setbox .wpd-setbox-head .wpd-head-logo img{height: 54px;}
253
+ #wpd-setbox .wpd-setbox-head .wpd-head-title{text-shadow: 1px 1px 1px #b9b9b9; flex-grow: 1; padding: 0px 15px 10px 15px; font-size: 30px; font-weight: 600; color: #07B290; letter-spacing: 1px;}
254
+ #wpd-setbox .wpd-setbox-head .wpd-head-info{ font-size: 14px;}
255
+ #wpd-setbox .wpd-setbox-head .wpd-head-info a{overflow: hidden; outline: none; font-weight: 600; opacity: 0.8;}
256
+ #wpd-setbox .wpd-setbox-head .wpd-head-info span{padding: 0px 10px; border-right: 1px solid #0073aa;}
257
+ #wpd-setbox .wpd-setbox-head .wpd-head-info span:last-child{border-right: none;}
258
+ #wpd-setbox .wpd-setbox-head .wpd-head-info span[dir=rtl]{border-left: 1px solid #999;}
259
+ #wpd-setbox .wpd-setbox-head .wpd-head-info span:last-child[dir=rtl]{border-left: none;}
260
+ #wpd-setbox .wpd-setbox-body { padding: 0px 15px; }
261
+ #wpd-setbox .wpd-setbox-body .wpd-section{border-bottom: 1px solid #ccc; padding: 8px 0px; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end;}
262
+ #wpd-setbox .wpd-setbox-body .wpd-section h3{letter-spacing:1px; font-weight: normal; color: #666; font-size: 20px; margin: 0px; padding: 0px; line-height: 24px;}
263
+ #wpd-setbox .wpd-setbox-body .wpd-opt-search{position: relative; text-align: right;}
264
+ #wpd-setbox .wpd-setbox-body .wpd-opt-search[dir=rtl]{text-align: left;}
265
+ #wpd-setbox .wpd-setbox-body .wpd-opt-search #wpd-opt-search-results{display:none;box-sizing:border-box;position: absolute;width: 100%;text-align: left;z-index: 99;border: 1px solid #ccc;background-color: #fff;left: 1px;top: 30px;}
266
+ #wpd-setbox .wpd-setbox-body .wpd-opt-search #wpd-opt-search-results a{padding: 5px;display: inline-block;text-decoration: none;width: 97%;}
267
+ #wpd-setbox .wpd-setbox-body .wpd-opt-search #wpd-opt-search-results a:hover, #wpd-setbox .wpd-setbox-body .wpd-opt-search #wpd-opt-search-results a:focus{background-color: #ccc;}
268
+ #wpd-setbox .wpd-setbox-body .dashicons-search{display: inline-block; position: absolute; bottom: 4px; right: 4px; font-size: 20px; color: #07b290; cursor: pointer;}
269
+ #wpd-setbox .wpd-setbox-body .dashicons-search[dir=rtl]{right: auto; left: 4px;}
270
+ #wpd-setbox .wpd-setbox-body input[type="text"]{width: 318px; font-size: 14px; line-height: 20px; padding: 3px 10px; display: inline-block;}
271
+ #wpd-setbox .wpd-setbox-body .wpd-box-wrap{display: block; align-items: center; padding: 25px 0px 10px 0px; }
272
+ #wpd-setbox .wpd-setbox-body .wpd-box{background: #FFF; box-shadow: 0px 0px 2px #bbb; position: relative; float: left;}
273
+ #wpd-setbox .wpd-setbox-body .wpd-box-info{ width: 0; height: 0; right: 0; top: 0px; position: absolute; border-left: 41px solid transparent;}
274
+ #wpd-setbox .wpd-setbox-body .wpd-box-info[dir=rtl]{ right: auto; left: 0px;}
275
+ #wpd-setbox .wpd-setbox-body .wpd-box-info img{position: absolute; top: -36px; right: 3px; z-index: 10; height: 16px;}
276
+ #wpd-setbox .wpd-setbox-body .wpd-box-info img[dir=rtl]{left: 3px;}
277
+ #wpd-setbox .wpd-setbox-body .wpd-box-info.wpd-ok img{height: 17px;}
278
+ #wpd-setbox .wpd-setbox-body .wpd-box-info.wpd-new img{height: 8px; top: -32px; right: 1px;}
279
+ #wpd-setbox .wpd-setbox-body .wpd-box-info.wpd-ok{border-top: 41px solid #07b290;}
280
+ #wpd-setbox .wpd-setbox-body .wpd-box-info.wpd-new{border-top: 41px solid #8e58a3;}
281
+ #wpd-setbox .wpd-setbox-body .wpd-box-info.wpd-note{border-top: 41px solid #f98e3c;}
282
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-head{display: flex; justify-content: center; align-items: center; text-align: center; padding: 5px 5px 0px 5px; height: 110px;}
283
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-head img{}
284
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot{min-height: 70px; background-color: #fafafa; display: flex; flex-direction: row; justify-content: space-between; align-items: stretch; border-top: 1px solid #e5e5e5;}
285
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot:hover{background-color: #f1f1f1;}
286
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-title{display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; flex-grow: 1; padding: 5px 20px; box-sizing: border-box;}
287
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-title a{font-size: 15px; color: #555; line-height: 19px; color: #555;}
288
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-title a:hover{text-decoration: none;}
289
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-arrow{display: flex; justify-content: center; align-items: center; text-align: center; padding-right: 20px; box-sizing: border-box;}
290
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-arrow[dir=rtl]{padding-left: 20px;}
291
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-arrow img{height: 24px;}
292
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-body{display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 10px;}
293
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-body .wpd-title{font-size: 15px; flex-grow: 1; padding: 0px 10px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
294
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-body .wpd-title a{font-size: 15px; color: #555; line-height: 19px; color: #555;}
295
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-body .wpd-title a:hover{text-decoration: none;}
296
+ #wpd-setbox .wpd-setbox-body .wpd-box .wpd-body:hover{background-color: #fafafa;}
297
+ #wpd-setbox .wpd-box-wrap.wpd-box-addons{justify-content: flex-start;}
298
+ #wpd-setbox .wpd-box-wrap.wpd-box-addons .wpd-box{margin-bottom: 10px;}
299
+
300
+ /************************************************************/
301
+ /* Single Settings #########################################*/
302
+ /************************************************************/
303
+ #wpd-setbox .wpd-switcher input[type=checkbox]{ height: 0; width: 0; visibility: hidden; position: absolute;}
304
+ #wpd-setbox .wpd-switcher label { cursor: pointer; text-indent: -9999px; width: 50px; height: 18px; background: grey; display: block; border-radius: 30px; position: relative;border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;}
305
+ #wpd-setbox .wpd-switcher label:after {content: ''; position: absolute; top: 4px; left: 5px; width: 10px; height: 10px; background: #fff; border-radius: 90px; transition: 0.3s;}
306
+ #wpd-setbox .wpd-switcher input:checked + label {background: #07B290;}
307
+ #wpd-setbox .wpd-switcher input:checked + label:after {left: calc(100% - 5px);transform: translateX(-100%);}
308
+ #wpd-setbox .wpd-switcher label:active:after {width: 12px;}
309
+ #wpd-setbox .wpd-radio input[type=radio]{display: none;}
310
+ #wpd-setbox .wpd-radio .wpd-radio-circle {cursor: pointer; width: 16px; height: 16px; background: grey; display: inline-block; border-radius: 30px; position: relative;border: 1px solid rgba(0, 0, 0, 0.1); -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);}
311
+ #wpd-setbox .wpd-radio input:checked + .wpd-radio-circle {background: #07B290;}
312
+ #wpd-setbox .wpd-radio input:checked + .wpd-radio-circle:after {content: ''; width: 8px; height: 8px; margin: 4px; background: #fff; border-radius: 50%; display: inline-block;}
313
+ #wpd-setbox .wpd-desc{font-size:13px; color:#666666; font-style: italic; width:90%; padding:5px 0px 0px 0px; margin:0px; line-height: 18px; font-weight: normal;}
314
+ #wpd-setbox .wpd-setbox-body .wpd-setcon{width: calc(100% - 350px); padding-bottom: 20px; float: left;}
315
+ #wpd-setbox .wpd-setbox-body .wpd-setbar{width: 320px; float: right;}
316
+ #wpd-setbox .wpd-setcon .wpd-setcon-head{padding: 14px 30px; font-size: 16px; font-weight: 600; line-height: 21px; border-bottom: 1px dashed #07B290; color: #07B290; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; flex-direction: row;}
317
+ #wpd-setbox .wpd-setcon .wpd-setcon-head a.wpd-back{font-size: 14px; line-height: 20px;}
318
+ #wpd-setbox .wpd-setcon .wpd-setcon-head a.wpd-back:hover{text-decoration:none;}
319
+ #wpd-setbox .wpd-setcon .wpd-setcon-head a.wpd-back .dashicons{font-size: 14px; line-height: 22px;}
320
+ #wpd-setbox .wpd-setcon .wpd-setcon-body{padding: 0px 30px;}
321
+ #wpd-setbox .wpd-setcon .wpd-opt-row{display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0px 10px 0px; border-bottom: 1px solid #ddd;}
322
+ #wpd-setbox .wpd-setcon .wpd-opt-row:last-child{border-bottom: none;}
323
+ #wpd-setbox .wpd-setcon .wpd-opt-row.wpd-opt-row-tight{padding-top: 8px; padding-bottom: 8px;}
324
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-img{float: left; padding: 0px 30px 5px 10px}
325
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-img[dir=rtl]{float: left; padding: 0px 10px 5px 30px}
326
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-name{font-size: 15px; width: calc(65% - 42px); color: #555; font-weight: 600;}
327
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-input{width: 35%; min-width: 300px;}
328
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-input .wpd-switcher{ width: 60px;}
329
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-doc{width: 40px; text-align: right; font-size: 16px;}
330
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-input .wpd-optset{display: flex; justify-content: flex-start; align-items: center; margin-bottom: 6px;}
331
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-input .wpd-optset .wpd-switcher{margin: 0px;}
332
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-input .wpd-optset .wpd-optset-label{padding: 0px 10px 2px 10px; color: #777777;}
333
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-intro{width: calc(100% - 40px); font-size: 15px; line-height: 22px; padding: 5px 0px 20px 0px; text-align: justify;}
334
+ #wpd-setbox .wpd-setbar .wpd-box.wpd-menu-group{width: 100%; }
335
+ #wpd-setbox .wpd-setbar .wpd-box.wpd-menu-group:first-child{margin-bottom: 20px;}
336
+ #wpd-setbox .wpd-setbar ul{width: 100%; margin: 0px; padding: 0px; box-sizing: border-box;}
337
+ #wpd-setbox .wpd-setbar ul[dir=rtl]{border-right: 1px solid #07B290;}
338
+ #wpd-setbox .wpd-setbar li{width: 100%; padding: 8px 10px; margin: 0px; font-size: 13px; font-weight: 600; box-sizing: border-box; border-top: 1px solid #ddd; }
339
+ #wpd-setbox .wpd-setbar li:nth-child(2){border-top: none;}
340
+ #wpd-setbox .wpd-setbar li .dashicons-arrow-left-alt2{visibility: hidden; font-size: 16px; line-height: 23px;}
341
+ #wpd-setbox .wpd-setbar li:hover .dashicons-arrow-left-alt2{visibility: visible;}
342
+ #wpd-setbox .wpd-setbar li a{color: #666666; display: block; line-height: 20px; outline: 0;}
343
+ #wpd-setbox .wpd-setbar li a:hover{color: #07B290; text-decoration: none;}
344
+ #wpd-setbox .wpd-setbar li a:visited, #wpd-setbox .wpd-setbar li a:focus{outline: 0; box-shadow: none!important;}
345
+ #wpd-setbox .wpd-setbar li.wpd-active{margin-left: 0;color: #fff;background-color: #07B290; font-size: 14px;width: calc(100% + 1px); }
346
+ #wpd-setbox .wpd-setbar li.wpd-active a{color: #ffffff;}
347
+ #wpd-setbox .wpd-setbar li.wpd-active .dashicons-arrow-left-alt2{visibility: visible; font-size: 20px;}
348
+ #wpd-setbox .wpd-setbar li.wpd-active[dir=rtl]{margin-right: -1px;}
349
+ #wpd-setbox .wpd-setbar li.wpd-menu-head{padding: 14px 15px; color: #07B290; font-weight: 600; letter-spacing: 1px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; flex-direction: row; border-bottom: 1px dashed #07B290;}
350
+ #wpd-setbox .wpd-setbar li.wpd-menu-head .dashicons{font-size: 22px; font-size: 25px; line-height: 22px; cursor: pointer;}
351
+
352
+ #wpd-setbox .wpd-setcon .wpd-mublock,
353
+ #wpd-setbox .wpd-setcon .wpd-mublock-inline{margin-bottom:5px;}
354
+ #wpd-setbox .wpd-setcon .wpd-mublock-inline {float:left; display:inline-block; width:19.5%}
355
+ #wpd-setbox .wpd-setcon .wpd-mublock{display:block;}
356
+ #wpd-setbox .wpd-setcon .wpd-mublock-inline label,
357
+ #wpd-setbox .wpd-setcon .wpd-mublock label{white-space:nowrap; font-size:13px; vertical-align:top; margin-left:2px;overflow: hidden;text-overflow: ellipsis;display: inline-block;width: 70%;}
358
+ #wpd-setbox .wpd-setcon .wpd-switch-field input { display: none;}
359
+ #wpd-setbox .wpd-setcon .wpd-switch-field label {float: left; display: inline-block; line-height: 20px; min-width:60px; font-weight: normal; background-color: #e4e4e4;color:#333;font-size: 13px;text-align: center; text-shadow: none;padding: 2px 10px; border: 1px solid rgba(0, 0, 0, 0.2);-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);-webkit-transition: all 0.1s ease-in-out;-moz-transition: all 0.1s ease-in-out; -ms-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}
360
+ #wpd-setbox .wpd-setcon .wpd-switch-field label:hover {cursor: pointer;}
361
+ #wpd-setbox .wpd-setcon .wpd-switch-field input:checked + label {background-color: #07B290; -webkit-box-shadow: none; box-shadow: none; color:#fff;} /* #66DD8D */
362
+ #wpd-setbox .wpd-setcon .wpd-switch-field label:first-of-type {border-radius: 4px 0 0 4px;}
363
+ #wpd-setbox .wpd-setcon .wpd-switch-field label:last-of-type {border-radius: 0 4px 4px 0;}
364
+ #wpd-setbox .wpd-setcon .wpd-color-wrap{padding: 7px 5px; width: 300px; min-width: 50%; float: left; box-sizing: border-box;}
365
+ #wpd-setbox .wpd-setcon .wpd-color-wrap input{width: 80px!important; padding: 3px 5px!important; font-size: 13px!important; text-align: center!important;}
366
+ #wpd-setbox .wpd-setcon .wpd-color-wrap label{font-weight: normal!important; display: inline-block!important; margin: 0px 5px!important;}
367
+ #wpd-setbox .wpd-setcon h2.wpd-subtitle{padding: 40px 0px 10px 0px; margin: 0px; font-size: 17px; font-weight: normal;color: #07B290; border-bottom: 1px dashed #07B290;}
368
+ #wpd-setbox .wpd-setcon .wpd-scol-wrap{padding: 7px 5px; width: 300px; min-width: 50%; box-sizing: border-box;}
369
+ #wpd-setbox .wpd-setcon .wpd-scol-wrap input{width: 80px!important; padding: 3px 5px!important; font-size: 13px!important; text-align: center!important;}
370
+ #wpd-setbox .wpd-setcon .wpd-scol-wrap label{font-weight: normal!important; display: inline-block!important; margin: 0px 5px!important;}
371
+
372
+ #wpd-setbox .wpd-setcon .wpd-social-label{font-size: 18px;}
373
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-facebook{color: #4267B2; border-bottom: 2px solid #9fbbff; }
374
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-twitter{color: #1DA1F2; border-bottom: 2px solid #97dafe; }
375
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-google{color: #D84538; border-bottom: 2px solid #ffa48e;}
376
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-disqus{color: #2E9FFF; border-bottom: 2px solid #2E9FFF;}
377
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-wordpress{color: #333; border-bottom: 2px solid #666;}
378
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-ok{color: #EE7808; border-bottom: 2px solid #ffc369;}
379
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-vk{color: #4A76A8; border-bottom: 2px solid #a3c1ff;}
380
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-instagram{color: #F97149; border-bottom: 2px solid #f9a67f;}
381
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-linkedin{color: #007BB6; border-bottom: 2px solid #a3c1ff;}
382
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-wapp{color: #20C300; border-bottom: 2px solid #8bf175;}
383
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-yandex{color: #FF0000; border-bottom: 2px solid #ff887e;}
384
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-mailru{color: #168DE2; border-bottom: 2px solid #a3c1ff;}
385
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-wechat{color: #20C300; border-bottom: 2px solid #20c300;}
386
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-weibo{color: #FA2F2F; border-bottom: 2px solid #ff8140;}
387
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-qq{color: #1479d7; border-bottom: 2px solid #cae0f3;}
388
+ #wpd-setbox .wpd-setcon .wpd-social-label.wpd-baidu{color: #F23F40; border-bottom: 2px solid #F23F40;}
389
+
390
+ #wpd_comment_layouts{display: flex; justify-content: space-between; flex-direction: row; align-items: stretch; margin-top: 25px;}
391
+ #wpd_comment_layouts a:not(.wpd-lightbox){ cursor: zoom-in; display: inline-block; }
392
+ #wpd_comment_layouts .wpd-lightbox{ display: none; cursor: zoom-out; position: fixed; z-index: 999; width: 100%; height: 100%; text-align: center; top: 0; left: 0; background: rgba(0,0,0,0.8); }
393
+ #wpd_comment_layouts .wpd-lightbox img{ max-width: 90%; max-height: 90%; margin-top: 3%; }
394
+ #wpd_comment_layouts .wpd-lightbox:target{ outline: none; display: block; }
395
+ #wpd_comment_layouts .wpd-box-layout{width: 31%; display: flex; flex-direction: column; justify-content: space-between;}
396
+ #wpd_comment_layouts .wpd-box-layout h4{margin:10px 0; text-align: center;}
397
+ #wpd_comment_layouts .wpd-com-layout-1,
398
+ #wpd_comment_layouts .wpd-com-layout-2,
399
+ #wpd_comment_layouts .wpd-com-layout-3{width: 100%; box-shadow: 0px 0px 5px #ccc;}
400
+ .wpd-zoom-image a:not(.wpd-lightbox){ cursor: zoom-in; display: inline-block; }
401
+ .wpd-zoom-image .wpd-lightbox{ display: none; cursor: zoom-out; position: fixed; z-index: 999; width: 100%; height: 100%; text-align: center; top: 0; left: 0; background: rgba(0,0,0,0.8); }
402
+ .wpd-zoom-image .wpd-lightbox img{ max-width: 90%; max-height: 90%; margin-top: 3%; }
403
+ .wpd-zoom-image .wpd-lightbox:target{ outline: none; display: block; }
404
+ .wp-core-ui #wpd-setbox .notice.is-dismissible {margin: 24px 0 0 0;}
405
+
406
+ .wpd-enabled{background-image: url('../img/editor/active.png)');}
407
+ .wpd-disabled{background-image: url('../img/editor/passive.png');}
408
+ .wpd-editor-toolbar{display: flex; margin-top: 15px; flex-direction: row; justify-content: flex-start; flex-wrap: wrap;} /*#f06653*/
409
+ .wpd-editor-disable{cursor:pointer; margin-top:5px; background: #f5f5f5; font-size: 13px; font-weight: 600; padding: 2px 15px; line-height: 18px; border-radius: 3px;}
410
+ .wpd-editor-button{cursor:pointer; margin-top:5px; width: 30px; height: 23px; background-size:auto 23px; border: 1px solid #eee; margin-right: 5px; background-repeat: no-repeat;}
411
+ .wpd-editor-attachment{display:block; margin-top:5px; background-image: url('../img/editor/attachment.png'); width: 30px; height: 23px; background-size:auto 23px; border: 1px solid #eee; margin-right: 5px; background-repeat: no-repeat;}
412
+
413
+ /* Extra RTL */
414
+ [dir=rtl] #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table td:nth-child(1) {text-align: right;}
415
+ [dir=rtl] #wpd-dash .wpd-overview .wpd-stat-user .wpd-user-table th:nth-child(1) {text-align: right;}
416
+ [dir=rtl] #wpd-setbox .wpd-setbox-body input[type="text"] {padding-right: 25px;}
417
+ [dir=rtl] #wpd-setbox .wpd-setbox-body .wpd-box{float: right;margin: 0 0% 25px 1%;}
418
+ [dir=rtl] #wpd-setbox .wpd-setbox-body .wpd-setbar{width: 332px;}
419
+ [dir=rtl] #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-arrow img {-webkit-transform:rotate(180deg);-moz-transform: rotate(180deg);-ms-transform: rotate(180deg);-o-transform: rotate(180deg);transform: rotate(180deg);}
420
+ [dir=rtl] #wpd-setbox .wpd-setbox-body .wpd-box .wpd-box-foot .wpd-box-arrow{padding-right: 1px; padding-left: 20px;}
421
+ [dir=rtl] #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-doc {text-align: left;}
422
+
423
+ @media screen and (min-width:1601px){
424
+ #wpd-setbox .wpd-settings-home .wpd-box{width: 15.2%; margin: 0 1.2% 25px 0;}
425
+ }
426
+ @media screen and (max-width:1600px){
427
+ #wpd-setbox .wpd-settings-home .wpd-box{width: 19%; margin: 0 1% 25px 0;}
428
+ #wpd-setbox .wpd-setcon .wpd-opt-row .wpd-opt-input {min-width: 150px;}
429
+ }
430
+ @media screen and (max-width:1440px){
431
+ #wpd-setbox .wpd-settings-home .wpd-box{width: 23%; margin: 0 2% 25px 0;}
432
+ }
433
+ @media screen and (max-width:1280px){
434
+ #wpd-setbox .wpd-settings-home .wpd-box{width: 30%; margin: 0 3% 25px 0;}
435
+ #wpd-setbox .wpd-setbox-body .wpd-setcon{width: 100%; float: none; margin-bottom: 20px;}
436
+ #wpd-setbox .wpd-setbox-body .wpd-setbar{width: 100%; float: none;}
437
+ }
438
+ @media screen and (max-width:1024px){
439
+ #wpd-dash .wpd-overview{display: block;}
440
+ #wpd-dash .wpd-overview .wpd-stat-brief,
441
+ #wpd-dash .wpd-overview .wpd-stat-graph,
442
+ #wpd-dash .wpd-overview .wpd-stat-user,
443
+ #wpd-dash .wpd-overview .wpd-stat-subs{width: 100%!important;}
444
+ #wpd-dash .wpd-credits{display: block;}
445
+ #wpd-setbox .wpd-setbox-body input[type="text"],
446
+ #wpd-setbox .wpd-setbox-body input[type="url"]{width: 100%;}
447
+ #wpd-setbox .wpd-setcon .wpd-switch-field label {float: none;display: inline-block;min-width: 90%;padding: 2px 0px;}
448
+ #wpd-setbox .wpd-setcon .wpd-color-wrap{width: 30% !important;}
449
+ }
450
+ @media screen and (max-width:800px){
451
+ #wpd-setbox .wpd-settings-home .wpd-box {width: 47%;margin: 0 3% 25px 0;}
452
+ }
453
+ @media screen and (max-width:600px){
454
+ #wpd-setbox .wpd-setbox-body .wpd-section{display: block;}
455
+ #wpd-setbox .wpd-setbox-body input[type="text"] {width: 100%;display: block;margin-top: 10px;min-height: auto;}
456
+ #wpd-setbox .wpd-setbox-head .wpd-head-info {font-size: 14px;margin-top: 12px;}
457
+ }
458
+ @media screen and (max-width:480px){
459
+ #wpd-setbox .wpd-settings-home .wpd-box{width: 100%; margin: 0 0 25px 0;}
460
+ }
461
+
462
+ /* ============== TOOLS PAGE ============== */
463
+ .wpdtool-accordion-item {
464
+ margin:7px 5px;
465
+ }
466
+ .wpdtool-accordion-title {
467
+ position: relative;
468
+ padding-right: 50px;
469
+ cursor: pointer;
470
+ display: block;
471
+ border: 1px solid #d3d3d3;
472
+ background-color: #f9f9f9;
473
+ color: #333;
474
+ /* background-color: #00aadd;
475
+ color: #f9f9f9;*/
476
+ }
477
+
478
+ .wpdtool-accordion-title p {
479
+ margin: 7px 0 10px 15px;
480
+ font-weight: normal;
481
+ font-size: 18px;
482
+ }
483
+ .wpdtool-accordion-title:after {
484
+ content: "\f054";
485
+ font-family: Font Awesome\ 5 Free;
486
+ display: inline-block;
487
+ position: absolute;
488
+ top: 50%;
489
+ transform: translateY(-50%);
490
+ right: 10px;
491
+ transition: all .4s ease;
492
+ transform-origin: 50%;
493
+ }
494
+ .wpdtool-accordion-content {}
495
+
496
+ .wpdtool-accordion-current .wpdtool-accordion-title:after {
497
+ transform: translateY(-50%) rotateZ(90deg);
498
+ }
499
+ .wpdtool-accordion-item:not(.wpdtool-accordion-current) .wpdtool-accordion-content {
500
+ display: none;
501
+ }
502
+ .wpdtool-accordion-current .wpdtool-accordion-title {
503
+ background-color: #00B38F;
504
+ color:#f0f0f0;
505
+ /* background-color: #f9f9f9;
506
+ color:#00aadd;*/
507
+ /* border-left: 3px solid #00aadd;
508
+ border-right: 1px solid #00aadd;
509
+ border-top: 1px solid #00aadd;
510
+ border-bottom: 1px solid #00aadd;*/
511
+ }
512
+
513
+ .wpdtool {
514
+ background-color: #f9f9f9;
515
+ border: 1px solid #ccc;
516
+ margin: 7px 0;
517
+ }
518
+
519
+ .wpdtool-block {
520
+ margin: 15px 25px;
521
+ overflow: hidden;
522
+ }
523
+
524
+ .wpdtool-desc {
525
+ font-size:13px;
526
+ color:#666;
527
+ width:90%;
528
+ padding-left:0px;
529
+ margin:15px 25px;
530
+ }
531
+
532
+ .wpdtool-left {float: left;}
533
+ .wpdtool-right {float: right;}
534
+ /* ============== TOOLS PAGE ============== */
assets/css/wpdiscuz-ratings-rtl.css CHANGED
@@ -1,9 +1,21 @@
1
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-label{ background:transparent; border:none; padding: 2px 2px 2px 10px; }
2
- #wpcomm .wpdiscuz-item .wpdiscuz-rating {float: right; padding:5px 1px 5px 0px; margin-right:-5px;}
3
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label { float: left; }
4
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc{ left:0px;margin-right:5px;}
5
- #wpcomm .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ padding:0px 0px 2px 0px;}
6
- #wpcomm .wpd-form-col-full .wpdiscuz-item .wpdiscuz-rating{ padding:0px 0px 0px 6px; }
7
- #wpcomm .wpd-form-col-full .wpd-item-wrap{ float:right; padding-left:7px; padding:0px 1px 1px 1px;}
8
- .wpdiscuz-stars-label{padding:10px 3px 2px 0px;}
9
- .wpdiscuz-activ-stars{ right:0;}
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face { font-family: 'square721_cn_btroman'; src: url('../../themes/default/css/fonts/sqr721c-webfont.eot'); src: url('../../themes/default/css/fonts/sqr721c-webfont.eot?#iefix') format('embedded-opentype'), url('../../themes/default/css/fonts/sqr721c-webfont.woff2') format('woff2'), url('../../themes/default/css/fonts/sqr721c-webfont.woff') format('woff'), url('../../themes/default/css/fonts/sqr721c-webfont.ttf') format('truetype'), url('../../themes/default/css/fonts/sqr721c-webfont.svg#svgFontName') format('svg'); }
2
+ .wpd-rating{display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; align-items: center; width: 100%; margin-top: 20px; margin-bottom: 30px;}
3
+ .wpd-rating .wpd-rating-wrap{width: 30%;display: flex; flex-wrap: nowrap; flex-direction: row; justify-content: center; align-items: center; align-content: center; text-align: center; }
4
+ .wpd-rating .wpd-rating-wrap .wpd-rating-left{flex-grow: 1; height: 1px; border-bottom: 1px dashed #999999; margin-left: -10px;}
5
+ .wpd-rating .wpd-rating-wrap .wpd-rating-right{flex-grow: 1; height: 1px; border-bottom: 1px dashed #999999; margin-right: -10px;}
6
+ .wpd-rating .wpd-rating-wrap .wpd-rating-data{width: 125px; white-space: nowrap; text-align: center; display: flex; flex-direction: column; justify-content: center; flex-wrap: wrap; align-items: center;}
7
+ .wpd-rating .wpd-rating-wrap .wpd-rating-title{width: 125px; white-space: break-spaces; word-break: break-all; font-size: 12px; letter-spacing: 0.5px; color: #888; line-height: 16px; display: block; margin-top: 7px; margin-bottom: -3px;}
8
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value{ transition:0.2s; background-color:#ffffff; border: 1px dashed #777777; height: 60px; width: 60px; text-align: center; border-radius: 50%;font-family: square721_cn_btroman, "Open Sans", san-serif; }
9
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value span{ color: #666666; display: block!important; cursor: default; }
10
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrv{font-size: 24px!important; line-height: 60px!important; padding-top: 0px!important;}
11
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrc{font-size: 18px!important; line-height: 16px!important; display: none!important; padding-top: 17px!important;}
12
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{font-size: 10px!important; line-height: 16px!important; display: none!important; padding-top: 0px!important;font-style: normal; font-family: Arial, sans-serif;}
13
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrv{display: none!important;}
14
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrc,
15
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrt{display: block!important; color: #ffffff!important; transition:0.8s;}
16
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover{background-color: #555555; transition:0.5s;}
17
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars{margin-top:7px; display: flex; flex-wrap: nowrap; flex-direction: row; justify-content: center;}
18
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars svg{ width: 26px; height: 26px; display: block; margin-left: -3px;}
19
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-star{fill: #cccccc;}
20
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-active{fill: #ffc600;}
21
+ .wpd-rating .wpd-rating-wrap .wpd-rating-name{font-size: 12px; padding-top: 5px; color: #999999; display: none;}
assets/css/wpdiscuz-ratings-rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ @font-face{font-family:square721_cn_btroman;src:url(../../themes/default/css/fonts/sqr721c-webfont.eot);src:url(../../themes/default/css/fonts/sqr721c-webfont.eot?#iefix) format('embedded-opentype'),url(../../themes/default/css/fonts/sqr721c-webfont.woff2) format('woff2'),url(../../themes/default/css/fonts/sqr721c-webfont.woff) format('woff'),url(../../themes/default/css/fonts/sqr721c-webfont.ttf) format('truetype'),url(../../themes/default/css/fonts/sqr721c-webfont.svg#svgFontName) format('svg')}.wpd-rating{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:center;width:100%;margin-top:20px;margin-bottom:30px}.wpd-rating .wpd-rating-wrap{width:30%;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center;align-items:center;align-content:center;text-align:center}.wpd-rating .wpd-rating-wrap .wpd-rating-left{flex-grow:1;height:1px;border-bottom:1px dashed #999;margin-left:-10px}.wpd-rating .wpd-rating-wrap .wpd-rating-right{flex-grow:1;height:1px;border-bottom:1px dashed #999;margin-right:-10px}.wpd-rating .wpd-rating-wrap .wpd-rating-data{width:125px;white-space:nowrap;text-align:center;display:flex;flex-direction:column;justify-content:center;flex-wrap:wrap;align-items:center}.wpd-rating .wpd-rating-wrap .wpd-rating-title{width:125px;white-space:break-spaces;word-break:break-all;font-size:12px;letter-spacing:.5px;color:#888;line-height:16px;display:block;margin-top:7px;margin-bottom:-3px}.wpd-rating .wpd-rating-wrap .wpd-rating-value{transition:.2s;background-color:#fff;border:1px dashed #777;height:60px;width:60px;text-align:center;border-radius:50%;font-family:square721_cn_btroman,"Open Sans",san-serif}.wpd-rating .wpd-rating-wrap .wpd-rating-value span{color:#666;display:block!important;cursor:default}.wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrv{font-size:24px!important;line-height:60px!important;padding-top:0!important}.wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrc{font-size:18px!important;line-height:16px!important;display:none!important;padding-top:17px!important}.wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{font-size:10px!important;line-height:16px!important;display:none!important;padding-top:0!important;font-style:normal;font-family:Arial,sans-serif}.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrv{display:none!important}.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrc,.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrt{display:block!important;color:#fff!important;transition:.8s}.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover{background-color:#555;transition:.5s}.wpd-rating .wpd-rating-wrap .wpd-rating-stars{margin-top:7px;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center}.wpd-rating .wpd-rating-wrap .wpd-rating-stars svg{width:26px;height:26px;display:block;margin-left:-3px}.wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-star{fill:#ccc}.wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-active{fill:#ffc600}.wpd-rating .wpd-rating-wrap .wpd-rating-name{font-size:12px;padding-top:5px;color:#999;display:none}
assets/css/wpdiscuz-ratings.css CHANGED
@@ -1,51 +1,21 @@
1
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-label{ background:transparent; border:none; padding: 2px 10px 2px 2px; }
2
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-value{font-size: 16px; border-bottom:none; padding: 1px 10px; }
3
-
4
- #wpcomm .wpdiscuz-item.wpd-field-group.wpd-field-rating{ border-bottom:1px dotted #ddd; height:77px; margin-bottom:0px;}
5
- #wpcomm .wpdiscuz-item .wpdiscuz-rating {border: none; float: left; margin:0px; padding:5px 0px 5px 1px; margin-left:-5px;}
6
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input { visibility:hidden; position:absolute;}
7
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label:before { margin: 3px; line-height: 18px; font-size: 1.4em; cursor:pointer;}
8
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > .half:before {position: absolute; cursor:pointer;}
9
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label { float: right; }
10
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc{ right:0px; top:0px; position:relative; font-size:14px; margin-left:5px; padding: 0 7px;}
11
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc i.far{ font-size:17px;}
12
- #wpcomm .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ display:inline-block; vertical-align:baseline; padding:0px 0px 2px 0px; margin-top:-2px;}
13
- #wpcomm .wpd-form-col-full .wpdiscuz-item .wpdiscuz-rating{ padding:0px 6px 0px 0px; vertical-align:middle; line-height: 14px;}
14
- #wpcomm .wpd-form-col-full .wpd-item-wrap{ display:inline-block; float:left; padding-right:7px; vertical-align:baseline; padding:0px 1px 1px 1px;}
15
- .wpdiscuz-stars-label{ line-height:20px; padding:10px 0px 2px 3px; font-size:14px;}
16
- .wpdiscuz-stars-wrapper{ display:block;}
17
- .wpdiscuz-stars-wrapper-inner{ position: absolute;}
18
- .wpdiscuz-activ-stars{ position: absolute; display: flex; font-size: 22px; top: 0; left:0;}
19
- .wpdiscuz-pasiv-stars{ font-size: 22px; display: flex;}
20
- .wpdiscuz-activ-stars{ overflow:hidden;}
21
- .wpdiscuz-pasiv-stars i.wpdiscuz-pasiv-star, .wpdiscuz-activ-stars i.wpdiscuz-activ-star{ padding:0px 2px; font-size:20px;}
22
- .wpdiscuz-post-rating-wrap.wpd-custom-field{display: flex;flex-wrap: wrap;}
23
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 25%;margin-bottom: 10px;}
24
- @media screen and (max-width: 1024px){
25
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 33%;margin-bottom: 10px;}
26
- }
27
- @media screen and (max-width:650px){
28
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
29
- flex-basis: 50%;
30
- margin-bottom: 10px;
31
- }
32
- }
33
- @media screen and (max-width:420px){
34
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
35
- flex-basis: 100%;
36
- margin-bottom: 10px;
37
- }
38
- }
39
-
40
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label {color: #DDDDDD;}
41
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input ~ label:hover,
42
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:not(:checked) ~ label:hover ~ label,
43
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:not(:checked) ~ label:hover ~ label{color: #FFED85;}
44
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:checked ~ label:hover,
45
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:checked ~ label:hover,
46
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label:hover ~ input:checked ~ label,
47
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:checked + label:hover ~ label,
48
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:checked ~ label:hover ~ label,
49
- .wpd-custom-field .wcf-active-star,
50
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input:checked ~ label{ color:#FFD700;}
51
- .wpd-custom-field .wcf-pasiv-star, #wpcomm .wpdiscuz-item .wpdiscuz-rating > label {color: #DDDDDD;}
1
+ @font-face { font-family: 'square721_cn_btroman'; src: url('../../themes/default/css/fonts/sqr721c-webfont.eot'); src: url('../../themes/default/css/fonts/sqr721c-webfont.eot?#iefix') format('embedded-opentype'), url('../../themes/default/css/fonts/sqr721c-webfont.woff2') format('woff2'), url('../../themes/default/css/fonts/sqr721c-webfont.woff') format('woff'), url('../../themes/default/css/fonts/sqr721c-webfont.ttf') format('truetype'), url('../../themes/default/css/fonts/sqr721c-webfont.svg#svgFontName') format('svg'); }
2
+ .wpd-rating{display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; align-items: center; width: 100%; margin-top: 20px; margin-bottom: 30px;}
3
+ .wpd-rating .wpd-rating-wrap{width: 30%;display: flex; flex-wrap: nowrap; flex-direction: row; justify-content: center; align-items: center; align-content: center; text-align: center; }
4
+ .wpd-rating .wpd-rating-wrap .wpd-rating-left{flex-grow: 1; height: 1px; border-bottom: 1px dashed #999999; margin-right: -10px;}
5
+ .wpd-rating .wpd-rating-wrap .wpd-rating-right{flex-grow: 1; height: 1px; border-bottom: 1px dashed #999999; margin-left: -10px;}
6
+ .wpd-rating .wpd-rating-wrap .wpd-rating-data{width: 125px; white-space: nowrap; text-align: center; display: flex; flex-direction: column; justify-content: center; flex-wrap: wrap; align-items: center;}
7
+ .wpd-rating .wpd-rating-wrap .wpd-rating-title{width: 125px; white-space: break-spaces; word-break: break-all; font-size: 12px; letter-spacing: 0.5px; color: #888; line-height: 16px; display: block; margin-top: 7px; margin-bottom: -3px;}
8
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value{ transition:0.2s; background-color:#ffffff; border: 1px dashed #777777; height: 60px; width: 60px; text-align: center; border-radius: 50%;font-family: square721_cn_btroman, "Open Sans", san-serif; }
9
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value span{ color: #666666; display: block!important; cursor: default; }
10
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrv{font-size: 24px!important; line-height: 60px!important; padding-top: 0px!important;}
11
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrc{font-size: 18px!important; line-height: 16px!important; display: none!important; padding-top: 17px!important;}
12
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{font-size: 10px!important; line-height: 16px!important; display: none!important; padding-top: 0px!important;font-style: normal; font-family: Arial, sans-serif;}
13
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrv{display: none!important;}
14
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrc,
15
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrt{display: block!important; color: #ffffff!important; transition:0.8s;}
16
+ .wpd-rating .wpd-rating-wrap .wpd-rating-value:hover{background-color: #555555; transition:0.5s;}
17
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars{margin-top:7px; display: flex; flex-wrap: nowrap; flex-direction: row; justify-content: center;}
18
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars svg{ width: 26px; height: 26px; display: block; margin-right: -3px;}
19
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-star{fill: #cccccc;}
20
+ .wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-active{fill: #ffc600;}
21
+ .wpd-rating .wpd-rating-wrap .wpd-rating-name{font-size: 12px; padding-top: 5px; color: #999999; display: none;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/wpdiscuz-ratings.min.css ADDED
@@ -0,0 +1 @@
 
1
+ @font-face{font-family:square721_cn_btroman;src:url(../../themes/default/css/fonts/sqr721c-webfont.eot);src:url(../../themes/default/css/fonts/sqr721c-webfont.eot?#iefix) format('embedded-opentype'),url(../../themes/default/css/fonts/sqr721c-webfont.woff2) format('woff2'),url(../../themes/default/css/fonts/sqr721c-webfont.woff) format('woff'),url(../../themes/default/css/fonts/sqr721c-webfont.ttf) format('truetype'),url(../../themes/default/css/fonts/sqr721c-webfont.svg#svgFontName) format('svg')}.wpd-rating{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:center;width:100%;margin-top:20px;margin-bottom:30px}.wpd-rating .wpd-rating-wrap{width:30%;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center;align-items:center;align-content:center;text-align:center}.wpd-rating .wpd-rating-wrap .wpd-rating-left{flex-grow:1;height:1px;border-bottom:1px dashed #999;margin-right:-10px}.wpd-rating .wpd-rating-wrap .wpd-rating-right{flex-grow:1;height:1px;border-bottom:1px dashed #999;margin-left:-10px}.wpd-rating .wpd-rating-wrap .wpd-rating-data{width:125px;white-space:nowrap;text-align:center;display:flex;flex-direction:column;justify-content:center;flex-wrap:wrap;align-items:center}.wpd-rating .wpd-rating-wrap .wpd-rating-title{width:125px;white-space:break-spaces;word-break:break-all;font-size:12px;letter-spacing:.5px;color:#888;line-height:16px;display:block;margin-top:7px;margin-bottom:-3px}.wpd-rating .wpd-rating-wrap .wpd-rating-value{transition:.2s;background-color:#fff;border:1px dashed #777;height:60px;width:60px;text-align:center;border-radius:50%;font-family:square721_cn_btroman,"Open Sans",san-serif}.wpd-rating .wpd-rating-wrap .wpd-rating-value span{color:#666;display:block!important;cursor:default}.wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrv{font-size:24px!important;line-height:60px!important;padding-top:0!important}.wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrc{font-size:18px!important;line-height:16px!important;display:none!important;padding-top:17px!important}.wpd-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{font-size:10px!important;line-height:16px!important;display:none!important;padding-top:0!important;font-style:normal;font-family:Arial,sans-serif}.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrv{display:none!important}.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrc,.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover .wpdrt{display:block!important;color:#fff!important;transition:.8s}.wpd-rating .wpd-rating-wrap .wpd-rating-value:hover{background-color:#555;transition:.5s}.wpd-rating .wpd-rating-wrap .wpd-rating-stars{margin-top:7px;display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:center}.wpd-rating .wpd-rating-wrap .wpd-rating-stars svg{width:26px;height:26px;display:block;margin-right:-3px}.wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-star{fill:#ccc}.wpd-rating .wpd-rating-wrap .wpd-rating-stars svg .wpd-active{fill:#ffc600}.wpd-rating .wpd-rating-wrap .wpd-rating-name{font-size:12px;padding-top:5px;color:#999;display:none}
assets/css/wpdiscuz-rtl.css DELETED
@@ -1,648 +0,0 @@
1
- /* wpDiscuz Main CSS stylesheet */
2
- wpdtip{display: inline-block; position: inherit; width: auto;}
3
-
4
- /* WRAPPER & GENERAL RULES */
5
- #wpcomm{max-width:950px; padding:1px 0 10px 0; border-top:#ddd solid 1px; margin:7px auto 15px auto;}
6
- #wpcomm *{box-sizing:border-box}
7
- #wpcomm .wpd-clear{clear:both!important; }
8
- #wpcomm .clearfix{clear:both; }
9
- #wpcomm .wpd-sticky{display: none; }
10
- #wpcomm .wpd-closed{display: none; }
11
- #wpcomm i{margin: 0px;}
12
- #wpcomm span {display:inline}
13
- #wpcomm .wc-must-login{margin:0; font-size:14px; line-height:16px; padding:10px; text-align:center}
14
- #wpcomm hr{background-color:rgba(0,0,0,0.1); border:0 none; height:1px; margin:10px auto}
15
- #wpcomm .avatar{padding:0px; margin:0 auto; float:none; display:inline; width:100%; height:auto; border:none; border-radius:0%; box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.2); }
16
- #wpcomm .page-numbers{padding:2px 7px; font-size:14px; margin:20px 1px; line-height:33px; background:#fff}
17
- #wpcomm span.current{color:#fff}
18
- #wpcomm .wc-label a:focus{outline:0}
19
- #wpcomm .wpdiscuz-hidden{display:none}
20
- .wpdiscuz_top_clearing{clear:both}
21
- .wpdiscuz_clear{clear:both}
22
- .wpdiscuz_clear_right{clear:left}
23
- .wpdiscuz_clear_left{clear:right}
24
-
25
- /* SORTING & SUBSCRIPTION BAR */
26
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons{padding-top: 3px; display: -webkit-flex; display: -moz-flex; display: -ms-flex; display: -o-flex; display: flex; justify-content: flex-end; -ms-align-items: center; align-items: center; }
27
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons .wpdiscuz-sort-button{font-size: 13px; }
28
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons i{display: inline-block; margin: 0px 6px; }
29
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sbs-wrap{float: right; }
30
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sbs-wrap span{font-size: 14px; cursor: pointer; }
31
- #wpcomm .wpdiscuz-subscribe-form-intro{font-size:14px; float:right; display:block; padding:3px 1px 3px 10px; line-height:20px; box-sizing:border-box; white-space:nowrap}
32
- #wpcomm .wpdiscuz-subscribe-form-option{font-size:13px; float:right; display:block; padding-left:5px; box-sizing:border-box}
33
- #wpcomm .wpdiscuz-subscribe-form-email{font-size:14px; float:right; display:block; padding:0 0 0 5px; box-sizing:border-box; width:30%}
34
- #wpcomm .wpdiscuz-subscribe-form-button{font-size:14px; float:right; display:block; box-sizing:border-box}
35
- #wpcomm .wpdiscuz-subscribe-form-email select{width:100%!important}
36
- #wpcomm .wpdiscuz-subscribe-form-email input[type="email"]{font-size:13px!important; padding:3px!important; width:100%!important; height:auto!important; line-height:20px!important; box-sizing:border-box!important; clear:both; float:none; margin:0}
37
- #wpcomm .wpdiscuz-subscribe-form-button input[type="submit"]{font-size:16px!important; min-height:29px!important; height:29px!important; padding:1px 3px 5px 3px!important; min-width:40px; line-height:14px!important; box-sizing:border-box!important; border:1px solid #ddd; clear:both; float:none; margin:0}
38
- #wpcomm .wpdiscuz-subscribe-agreement{font-size: 12px; display: block; clear: left; padding-top: 10px; width: 92%;}
39
- #wpcomm .wpdiscuz-subscribe-agreement label{ cursor: pointer; display: inline;}
40
-
41
- /* LIVE UPDATE NOTIFICATION BUTTONS */
42
- #wpcomm .wc_new_comment_and_replies{margin:0; padding:0; width:100%; height:auto; background:transparent}
43
- #wpcomm .wc_new_comment_and_replies .wc_new_comment{float:left; display:none; padding:3px 10px; font-size:12px; margin:1px 3px 1px 0; cursor:pointer; color:#fff; line-height:15px}
44
- #wpcomm .wc_new_comment_and_replies .wc_new_reply{float:left; display:none; padding:3px 10px; font-size:12px; margin:1px 1px 1px 0; cursor:pointer; color:#fff; line-height:15px}
45
-
46
- /* COMMENTS & REPLIES */
47
- #wpcomm .wc-thread-wrapper{padding:15px 2px 10px 0px; margin-bottom:10px; margin-top: 10px;}
48
- #wpcomm .wc-comment .wc-reply {margin-top:15px; margin-bottom:0; margin-right:40px}
49
- #wpcomm .wc-comment .wc-comment-left{width:72px; float:right; text-align:center; line-height:16px; position: relative;}
50
- #wpcomm .wc-comment .wc-comment-right{margin-right:90px; padding:0px; display:block; margin-bottom: 10px; }
51
- #wpcomm .wc-reply .wc-comment-left{width:50px; float:right; text-align:center; line-height:16px}
52
- #wpcomm .wc-reply .wc-comment-right{margin-right:65px; padding:0px; display:block; }
53
- #wpcomm .wc-comment-right.wc-hide-avatar{margin-right:0px;}
54
- #wpcomm .wc-comment .wc-comment-left .wpd-xborder{ display: none; position: absolute; height: 20px; border-left:1px solid #ddd; width: 100%; top:29px; left: -17px; }
55
- #wpcomm .wc-reply .wc-comment-left .wpd-xborder{display: none; }
56
- #wpcomm .wc-reply.wc_comment_level-2{ margin-right:99px}
57
-
58
- /* header */
59
- #wpcomm .wc-comment-header{margin-bottom: 10px; height: 40px; padding-top: 5px;}
60
- #wpcomm .wc-reply .wc-comment-header{margin-bottom:7px; height:34px; padding-top: 5px;}
61
- #wpcomm .wc-sticky-comment.wc-comment .wc-comment-left .wpd-xborder,
62
- #wpcomm .wc-closed-comment.wc-comment .wc-comment-left .wpd-xborder{display: none; }
63
- #wpcomm .wc-sticky-comment.wc-comment .wc-comment-header .wpd-sticky{display: inline-block;border-radius: 50%; font-size: 12px; padding: 3px 7px 2px 7px; margin: 1px 5px; line-height: 18px; height: 22px; width: 23px; }
64
- #wpcomm .wc-closed-comment.wc-comment .wc-comment-header .wpd-closed{display: inline-block; border-radius: 50%; font-size: 11px; padding: 2px 7px 2px 7px; margin: 1px 5px; line-height: 18px; height: 22px; width: 23px; }
65
- #wpcomm .wc-sticky-comment.wc-comment .wc-reply .wc-comment-header .wpd-sticky,
66
- #wpcomm .wc-closed-comment.wc-comment .wc-reply .wc-comment-header .wpd-closed{display: none; }
67
- #wpcomm .wc-private-comment.wc-comment .wc-comment-left .wpd-xborder{display: none; }
68
- #wpcomm .wc-comment .wc-comment-header .wpd-private{display: none;}
69
- #wpcomm .wc-private-comment.wc-comment .wc-comment-header .wpd-private{display:inline-block; font-size: 14px; padding: 4px 8px 3px 8px; margin: 1px 4px; line-height: 16px; }
70
- #wpcomm .wc-comment-link{font-size:12px; float:left; text-align:left; line-height:20px; padding:0 10px 0 0; margin: 7px 5px 5px 5px; }
71
- #wpcomm .wc-reply .wc-comment-link{margin:5px; }
72
- #wpcomm .wc-comment-link .wpf-cta{ cursor:pointer; font-size:14px; padding:4px 2px 3px 2px; min-width:24px; text-align:center; display:inline-block; margin:1px; line-height:16px; }
73
- #wpcomm .wc-reply .wc-comment-link .wpf-cta {font-size: 13px; padding: 3px 3px 3px 3px; line-height: 15px; }
74
-
75
- /* HEADER */
76
- #wc-comment-header{max-width:950px; padding:20px 5px 10px 5px; display:block; float:none; clear:both; font-size:22px; font-weight: normal; margin:0 auto;}
77
- #wc-comment-header .wpdiscuz-comment-count{display:inline-block; text-align: left;margin-left: 10px; vertical-align: bottom;}
78
- #wc-comment-header .wpdiscuz-comment-count .wpd-cc-value{border-radius:0%; background: #666; color: #fff; font-size: 15px; display: inline-block; line-height: 18px; padding:5px 10px 5px 10px; min-width: 41px; min-height: 26px; box-sizing: border-box; text-align: center;}
79
- #wc-comment-header .wpdiscuz-comment-count .wpd-cc-arrow{width: 0px; height: 0px; margin: -4px auto 0px 0px; border-right: 12px solid transparent; border-left: 0px solid transparent; border-top: 8px solid #666; display:block; line-height: 0px;}
80
- #wpcomm .wpdiscuz-form-top-bar{width: 100%; color: #666666;}
81
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-ftb-left{float: right; padding: 12px 0px 10px 0px; font-size: 14px; line-height: 20px;}
82
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-ftb-right{float: left; padding: 12px 0px 10px 0px; font-size: 14px; line-height: 20px;}
83
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-user-settings{ vertical-align:middle; display: inline-block; color: #666666; padding:1px 10px 1px 10px; font-size: 18px; line-height: 20px; cursor: pointer; border-left: 1px solid #ccc; margin-left: 10px;}
84
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-user-settings:hover{color: #00B38F;}
85
- #wpcomm .wpdiscuz-form-top-bar #wc_show_hide_loggedin_username{display: inline-block; color: #666666; padding:1px 0px 1px 5px; font-size:14px; line-height: 20px;}
86
- #wpcomm .wpdiscuz-form-top-bar #wc_show_hide_loggedin_username span{ display: inline-block;line-height: 22px;vertical-align: bottom;}
87
- #wpcomm .wpdiscuz-form-top-bar #wc_show_hide_loggedin_username i{ vertical-align:middle; font-size: 21px; display: inline-block; padding: 0px 5px 0px 5px;}
88
- #wpcomm .wc-comment-title{margin:0; line-height:18px; font-weight:bold; padding:15px 10px; font-size:13px; text-align:left; padding-bottom:10px}
89
-
90
- #wpcomm .wpdiscuz-form-bottom-bar{ padding: 15px 10px 0px 10px;}
91
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left{float: right;}
92
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right{float: left}
93
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat{ cursor:default; color: #666; display: inline-block; margin-left: 12px; line-height: 34px;}
94
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat i{font-size:17px; margin-left: 5px; display: inline-block;}
95
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-threads i{font-size:16px}
96
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-replies i{font-size:18px; margin-left: 6px;}
97
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-subscribers i{font-size:16px}
98
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-hot i{color: #fc5844; font-size: 18px; opacity: 0.8; cursor: pointer;}
99
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-hot i:hover{opacity: 1;}
100
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-reacted i{color: #ffa600; font-size: 18px; opacity: 0.8; cursor: pointer;}
101
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-reacted i:hover{opacity: 1;}
102
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat span{font-size:15px; font-family:Verdana; display: inline-block;}
103
-
104
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img,
105
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img.avatar,
106
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img.avatar-32,
107
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img.photo{ display: inline-block; width: 31px!important; height: 31px!important; box-shadow: none; border-radius: 50% 50% 50% 0% ; margin-right: 2px; border: 1px solid #ccc; line-height: 31px; vertical-align: middle; background: #fff; padding: 1px;}
108
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat{color: #666; display: inline-block; margin-left: 7px; line-height: 31px; vertical-align: bottom;}
109
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat.wpd-stat-users i{font-size: 28px; line-height: 31px; vertical-align: middle; color: #999999;}
110
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat.wpd-stat-users span{ vertical-align: middle; margin-right: 5px; font-size:16px; font-family:Verdana;}
111
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users{display: inline-block;}
112
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users i.fa-ellipsis-h{padding-right: 5px; color: #777777;}
113
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users.wpd-tooltip-right wpdtip:after{top: 93%;}
114
-
115
- /* Social Login */
116
- #wpcomm .wpdiscuz-social-login{padding: 2px 3px 0px 3px; line-height: 20px; vertical-align: baseline;}
117
- #wpcomm .wpdiscuz-social-login .wpdiscuz-connect-with{float: right; line-height: 22px; font-size: 14px; margin: 0px 5px;}
118
- #wpcomm .wpdiscuz-social-login .wpdiscuz-login-button{float: right; margin-right: 5px; width: 30px; height: 22px; text-align: center; font-size: 12px; line-height: 23px; color: #fff; cursor: pointer;}
119
- #wpcomm .wpdiscuz-social-login .wpdiscuz-login-button:hover{font-size: 14px;}
120
- #wpcomm .wpdiscuz-social-login .wpdiscuz-social-login-spinner{margin-right: 5px; width: 25px; height: 25px; text-align: center;font-size: 15px;display: none; float: right;}
121
- #wpcomm .wpdiscuz-social-login .wpdiscuz-social-login-error{margin-right: 5px; text-align: right ;font-size: 15px; color: #D84538;}
122
- #wpcomm .wpdiscuz-social-login .wpdiscuz-facebook-button{background-color: #4267B2;}
123
- #wpcomm .wpdiscuz-social-login .wpdiscuz-twitter-button{background-color: #1DA1F2;}
124
- #wpcomm .wpdiscuz-social-login .wpdiscuz-google-button{background-color: #D84538;}
125
- #wpcomm .wpdiscuz-social-login .wpdiscuz-ok-button{background-color: #EE7808;}
126
- #wpcomm .wpdiscuz-social-login .wpdiscuz-vk-button{background-color: #4A76A8;}
127
-
128
- #wpcomm .wpd-social-login-agreement{width: 100%;margin-top: 15px;margin-bottom: 20px;font-size: 12px;padding: 20px 30px 10px 30px;background-color: #F8F8F8;border: 1px dotted #dddddd;clear: both; display: inline;}
129
- #wpcomm .wpd-social-login-agreement .wpd-agreement-title{font-weight: bold;margin-bottom: 5px;font-size: 15px;}
130
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button{text-transform: uppercase;padding: 3px 20px;margin: 5px 15px 0px 0px;cursor: pointer;font-size: 12px;line-height: 20px;color:#00B38F;display: inline-block;}
131
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-agree{border: 1px dotted #00B38F;color: #00B38F;}
132
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-agree:hover{color: #FFFFFF;background:#00B38F;}
133
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-disagree{border: 1px dotted #ff312f;color: #ff312f;}
134
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-disagree:hover{color: #FFFFFF;background:#ff312f;}
135
- #wpcomm .wpd-social-login-agreement .wpd-agreement-buttons{margin-top: 4px;}
136
- #wpcomm .wpd-social-login-agreement .wpd-agreement-buttons-left{float: right;}
137
- #wpcomm .wpd-social-login-agreement .wpd-agreement-buttons-right{float: left;}
138
- #wpcomm .wc-secondary-forms-social-content .wpdiscuz-ftb-right .wpdiscuz-social-login{float: left;}
139
- #wpcomm .wc-secondary-forms-social-content .wpdiscuz-ftb-right .wpdiscuz-social-login {padding: 2px 3px 10px 3px;line-height: 20px;vertical-align: baseline;}
140
- #wpcomm .wc-secondary-forms-social-content .wpd-social-login-agreement{padding: 20px;}
141
-
142
- /* author */
143
- #wpcomm .wc-comment-author{font-size:18px; float:right; white-space:normal; text-align:right; padding:7px 9px 2px 0px; }
144
- #wpcomm .wc-reply .wc-comment-author{font-size:15px; float:right; white-space:normal; text-align:right; padding:3px 10px 2px 0px; }
145
- #wpcomm .wc-comment-author a{font-size:18px; text-decoration:none; line-height:30px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline;}
146
- #wpcomm .wc-reply .wc-comment-author a{font-size:14px; text-decoration:none; line-height:18px; }
147
- #wpcomm .wc-comment-label{color:#fff; width:100%; padding:0px 0px 0px 0px; font-size:12px; margin:8px auto; text-align:center; display:table; line-height:16px; -webkit-box-shadow:0px 4px 7px -5px rgba(219,219,219,1); -moz-box-shadow:0px 4px 7px -5px rgba(219,219,219,1); box-shadow:0px 4px 7px -5px rgba(219,219,219,1); }
148
- #wpcomm .wc-comment-label span{ display:inline-block; padding:3px 0px 7px 0px; font-size:12px; }
149
- #wpcomm .wc-reply .wc-comment-label span{ font-size:11px; }
150
- #wpcomm .wc-comment-date{font-size:12px; color:#999; text-align:right; white-space:nowrap; line-height:23px}
151
- #wpcomm .wc-reply .wc-comment-date{font-size:11px; }
152
- #wpcomm .wc-comment-date i{padding-left:5px; }
153
- #wpcomm .wc-follow-link{ display: inline-block; font-size: 15px; line-height: 30px; padding: 0px 10px; cursor: pointer;}
154
- #wpcomm .wc-reply .wc-follow-link{ line-height: 16px; font-size: 13px;}
155
- #wpcomm .wc-follow-link i{vertical-align: bottom;}
156
-
157
- /* content */
158
- #wpcomm .wc-comment-right .wc-comment-text{text-align:right; padding:5px 10px; min-height: 50px; font-size: 14px; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word}
159
- #wpcomm .wc-reply .wc-comment-right .wc-comment-text,
160
- #wpcomm .wc-reply .wc-comment-right .wc-comment-text *{line-height:20px; font-size: 13px; }
161
- #wpcomm .wc-comment-right .wc-comment-text img{max-width:99%!important; height:auto; max-height:1000px; }
162
- #wpcomm .wc-comment-right .wc-comment-text iframe{max-width:99%!important; }
163
- #wpcomm .wc-comment-right .wc-comment-text p{margin-bottom:10px}
164
- #wpcomm .wc-comment-right .wc-comment-text ol li,#wpcomm .wc-comment-text ul li{margin-right:20px}
165
- #wpcomm .wc-comment-right .wc-comment-text blockquote{font-size:inherit; line-height:inherit; margin-bottom:1em; margin-right:1em; padding-right:1em}
166
-
167
- /* footer */
168
- #wpcomm .wc-comment-footer{font-size:13px; font-weight:normal; color:#999; padding:2px 10px 10px 10px; margin-top:0px; min-height:28px; text-align:right}
169
- #wpcomm .wc-reply .wc-comment-footer{padding-top:0px; }
170
- #wpcomm .wc-comment-footer .wc-footer-left{ float:right; display:block; }
171
- #wpcomm .wc-comment-footer .wc-footer-right{ float:left; display:block; margin-top:0px; line-height:22px; }
172
- #wpcomm .wc-comment-footer .wc-footer-right .wc-comment-date{ display:inline-block; margin-right:10px; }
173
- #wpcomm .wc-comment-footer .wc-footer-right .wc-toggle{float:left; text-align:left; padding-left:0; margin-left:0; margin-right:10px; cursor:pointer; font-size:13px; white-space:nowrap; line-height:24px}
174
- #wpcomm .wc-comment-footer .wc-vote-link{display:inline-block; text-align:center; font-size:13px; height:auto; padding:2px 4px; line-height:17px; cursor:pointer; font-weight: 300; }
175
- #wpcomm .wc-comment-footer .wc-vote-result{display:inline-block; text-align:center; font-size:15px; height:auto; padding:2px 3px; line-height:17px; }
176
- #wpcomm .wc-comment-footer .wc-vote-result.wc-vote-result-like{padding:2px 4px 2px 4px; border-radius:0%; border-left:none; margin-right:1px; }
177
- #wpcomm .wc-comment-footer .wc-vote-result.wc-positive{border-left:none; text-align:center; margin-right:2px; }
178
- #wpcomm .wc-comment-footer .wc-vote-result.wc-vote-result-dislike{padding:2px 4px 2px 4px; border-radius:0%;margin-left:1px; }
179
- #wpcomm .wc-comment-footer .wc-vote-result.wc-negative{border-right:none; text-align:center; margin-left:2px; }
180
- #wpcomm .wc-comment-footer .wc-vote-result.wc-vote-result-like{ border-left: 1px solid #CCCCCC; margin-left: 4px; padding-left: 8px;}
181
- #wpcomm .wc-comment-footer .wc-vote-link.wc-down i.fa-thumbs-down{-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; -webkit-transform: scale(-1, 1); -ms-transform: scale(-1, 1); transform: scale(-1, 1);}
182
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-thumbs-up,
183
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-thumbs-down{font-size: 16px;}
184
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-thumbs-up,
185
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-thumbs-down{font-size: 14px;}
186
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-smile,
187
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-frown{font-size: 20px;}
188
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-smile,
189
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-frown{font-size: 16px;}
190
- #wpcomm .wc-footer-left .wc-cta-button,
191
- #wpcomm .wc-footer-left .wc-cta-button-x{ font-size:12px; cursor:pointer; text-transform:none; height:auto; padding: 3px 8px 3px 8px; line-height:18px; display:inline-block; margin-left:0px; }
192
- #wpcomm .wc-footer-left .wc-cta-button-x{ display: none; }
193
- #wpcomm .wc-footer-left .wc-reply-button{ margin-left:10px; margin-right:10px; }
194
- #wpcomm .wc-footer-left .wc-reply-button i{display: inline-block; font-size: 13px; padding-left: 2px;}
195
- #wpcomm .wc-reply .wc-footer-left .wc-reply-button i{display: none;}
196
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button,
197
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button-x{ font-size: 11px; padding: 2px 8px 2px 8px; line-height: 16px; }
198
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button i{ font-size: 12px; }
199
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button-x{ display: none; }
200
- #wpcomm .wpdiscuz-children {display:inline-block; padding-right:5px; }
201
- #wpcomm .wc-toggle i.fa-chevron-down{display:inline-block; padding-right:5px; }
202
- #wpcomm .wc-toggle i.fa-chevron-up{display:inline-block; padding-right:5px; }
203
- #wpcomm .wc-share-link.wpf-cta.wpd-tooltip-right:hover{color: inherit!important; background: inherit!important;}
204
-
205
- /* COMMENT FORM */
206
- #wpcomm form {margin:0!important; padding:0!important; background:100%; border:0; width:auto!important}
207
- #wpcomm form div{margin:0; }
208
- #wpcomm form .wpdiscuz-item{display:block; height:auto; border-radius:0; box-shadow:none; }
209
- #wpcomm .wc-form-wrapper{padding: 0px 0px 0px 1px; margin-top:0;}
210
- #wpcomm .wc-comment .wc-form-wrapper{margin:10px 99px 20px 0px; clear:both; padding: 5px 0px 10px 0px; }
211
- #wpcomm .wc-comment .wc-reply .wc-form-wrapper.wc-secondary-form-wrapper{margin-right: 0px;}
212
- #wpcomm .wc_comm_form .wc-field-comment{clear:both; margin:5px auto 1px auto;}
213
- #wpcomm .wc_comm_form .wc-field-comment .wc-field-avatararea{float:right;}
214
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-comment .wc-field-avatararea{width:40px; margin: 17px 19px; float:right; position: absolute; z-index: 10;}
215
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-comment .wpdiscuz-quicktags-enabled .wc-field-avatararea{margin: 50px 23px 17px 19px;}
216
- #wpcomm .wc_comm_form.wc_secondary_form{clear:both}
217
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-comment .wc-field-avatararea{ display: none;}
218
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-comment .wc-field-textarea {margin-right: 0px; }
219
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-textarea textarea{height:50px; min-height:50px!important}
220
- #wpcomm .wc-form-footer{display:none; margin-right:0px; margin-bottom: 0px; border-bottom: 1px solid #ddd; padding-bottom: 20px; } /*94*/
221
- #wpcomm .wc-secondary-form-wrapper .wc-form-footer{display:none; margin-right:0px; border-bottom: none;} /*63*/
222
- #wpcomm.wpdiscuz_no_avatar .wc-form-footer{margin-right:0}
223
- #wpcomm .wc-field-submit .wc_comm_submit{width: auto; display: inline-block;}
224
-
225
- /* COMMENT EDIT FORM */
226
- #wpcomm .wc_cancel_edit{display:none}
227
- #wpcomm .wc_save_wrap{text-align:left; }
228
- #wpcomm .wc-comment-right textarea.wc_edit_comment{height:auto; font-size:13px; width:99%; overflow-y:hidden; margin:5px 0px; }
229
- #wpcomm table.editcomment{ width:100%; border:none; }
230
- #wpcomm table.editcomment td.first{ width:35%; }
231
- #wpcomm table.editcomment .wpdiscuz-item.wpd-field-group{ height:auto; border:none; }
232
- #wpcomm table.editcomment td, #wpcomm table.editcomment th{ padding:2px 5px 5px 5px; border-top:none; border-bottom:1px solid #eee; border-right:none; border-left:none; text-align:right; font-size:13px; }
233
- #wpcomm table.editcomment input[type=checkbox].wpd-field,
234
- #wpcomm table.editcomment input[type=radio].wpd-field { width:auto; height:auto; display:inline-block; padding:0px; line-height:13px; vertical-align:baseline; margin:0px 0px 0px 2px; }
235
- #wpcomm table.editcomment label.wpd-field-label{ width:auto; clear:both; height:auto; display:inline-block; float:none; padding:0px; line-height:20px; font-size:13px; margin:0px 0px 0px 15px; vertical-align:top; }
236
- .wpdiscuz-edit-form-wrap{ display:block; margin:10px; }
237
- .wpd-cursor-pointer{cursor: pointer; }
238
- #wpcomm .wpdiscuz-item input[type=checkbox]:focus{line-height: 1; }
239
- .wpdiscuz-post-rating-wrap.wpd-custom-field{display: flex; flex-wrap: wrap; }
240
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 25%; margin-bottom: 10px; }
241
- #wpcomm #wpdiscuz-edit-form .wpdiscuz-textarea-wrap{padding:0; margin:0; background:transparent; position: relative; border: none; }
242
-
243
- /* COMMENT FORM | TEXTAREA */
244
- #wpcomm .wc-field-textarea{margin-right:0px; position:relative; margin-bottom:4px; }
245
- #wpcomm .wc-field-textarea textarea{display:inline; width:100%; height:75px; min-height:75px!important; border:none!important; resize:none; padding:10px; box-sizing:border-box; border-radius:0; font-size:14px; color:#777; line-height:20px; }
246
- #wpcomm .wc-field-textarea .commentTextMaxLength{display:none; font-size:11px; color:#aaa; position:absolute; top:3px; left:5px}
247
- #wpcomm .wc-field-textarea .wpdiscuz-quicktags-enabled .commentTextMaxLength{top:39px}
248
- #wpcomm .wc-field-textarea .commentTextMaxLength.left10{color:#f00}
249
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap {padding:0; margin:0; background:transparent; position: relative; }
250
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap textarea {margin-bottom : 0 !important;}
251
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea {margin-bottom : 0 !important; padding: 25px 85px 0px 78px; font-size: 17px;}
252
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap.wpdiscuz-quicktags-enabled textarea {padding: 20px 85px 0px 78px;}
253
- #wpcomm.wpdiscuz_no_avatar .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea {margin-bottom : 0 !important; padding: 15px;}
254
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap textarea:focus{border: none!important; box-shadow: none;}
255
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot{border:0; padding:3px 0; width:97%; text-align:left; line-height:14px; margin:0 auto; border-top:1px dotted #ddd}
256
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot .wpdiscuz-button{line-height:14px; display:inline-block; min-width:20px; width:auto; height:20px; padding:0; margin:2px 3px; cursor:pointer; border:0; float:none}
257
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot label{float:none; display:inline-block}
258
- #wpcomm .wc-field-textarea .quicktags-toolbar{padding:0 3px 0 3px; text-align:right; min-height:30px}
259
- #wpcomm .wc-field-textarea .ed_button{width:auto; padding:3px; border:none; margin:5px 2px 8px 2px; background:#f7f7f7 none repeat scroll 100% 0; box-shadow:0 1px 1px #cdcdcd; min-width:5%; color:#555; font-size:13px; line-height:16px; font-weight:normal; text-transform:lowercase; vertical-align:top; display:inline-block; font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans",sans-serif}
260
- #wpcomm .wc-field-textarea .ed_button:hover{border: none;}
261
- #wpcomm .wc-field-textarea input[type="button"].ed_button:focus,#wpcomm .wc-form-wrapper input[type="button"].ed_button:hover{background:#ededed!important}
262
-
263
- /* COMMENT FORM | BUTTONS */
264
- #wpcomm button,
265
- #wpcomm input[type="button"],
266
- #wpcomm input[type="reset"],
267
- #wpcomm input[type="submit"]{ vertical-align: bottom; border-radius: 0px; font-family: sans-serif; font-weight: normal; letter-spacing: normal; line-height: 1em; padding: 8px 20px; margin:0px; box-shadow: none; text-transform: none; font-size: 14px; }
268
- #wpcomm button:hover,
269
- #wpcomm button:focus,
270
- #wpcomm input[type="button"]:hover,
271
- #wpcomm input[type="button"]:focus,
272
- #wpcomm input[type="reset"]:hover,
273
- #wpcomm input[type="reset"]:focus,
274
- #wpcomm input[type="submit"]:hover,
275
- #wpcomm input[type="submit"]:focus{ opacity: 1; }
276
- #wpcomm .wc-field-submit{padding:15px 5px 0 0; clear:right}
277
- #wpcomm.wpdiscuz_auth .wc-field-submit{padding:7px 5px 0 0; clear:left}
278
- #wpcomm .wc-load-more-submit-wrap{width:100%; text-align:center; margin-bottom:20px; margin-top:25px}
279
- #wpcomm .wc-load-more-submit{width:auto!important; font-size: 14px; padding:10px 30px; text-align:center; cursor:pointer}
280
- #wpcomm .wpd_label, #wpcomm .wpd_label{margin:0px; padding: 0px;display:inline-block;}
281
- #wpcomm .wpd_label, #wpcomm .wpd_label span{display: inline-block}
282
- #wpcomm .wpd_label input[type="checkbox"].wpd_label__checkbox{display:none; }
283
- #wpcomm .wpd_label__checkbox { display: none; }
284
- #wpcomm .wpd_label__check { display: inline-block; border: 0px; border-radius: 0; vertical-align: middle; cursor: pointer; text-align: center; margin:0px 0px 0px 3px; }
285
- #wpcomm .wpd_label__check i.wpdicon{font-size: 15px; line-height: 21px; padding: 4px 5px; width: 34px; margin: 0px; }
286
- #wpcomm .wpd_label__check i.wpdicon-on{display: none; color: #00b38f; border: 1px solid #b5e5db; background-color: #F6FFFD; }
287
- #wpcomm .wpd_label__check i.wpdicon-off{display: inline-block; color: #aaaaaa; border: 1px solid #dddddd; background-color: #F9F9F9; }
288
- #wpcomm .wpd_label__checkbox:checked + .wpd_label__text .wpd_label__check .wpdicon-on{display: inline-block; }
289
- #wpcomm .wpd_label__checkbox:checked + .wpd_label__text .wpd_label__check .wpdicon-off{display:none; }
290
- #wpcomm .wpd_label__check i.wpdicon-off.fa-unlock-alt, #wpcomm .wpd_label__check i.wpdicon-on.fa-lock{ font-size: 15px; }
291
-
292
- /* COMMENT FORM | CAPTCHA */
293
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label{float:left; display:block; width:111px; text-align:left; padding:0; line-height:30px; }
294
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label .wc_captcha_img{display:inline!important; border:0; padding:0; margin:0; vertical-align:middle; box-sizing:content-box; width:80px; height:26px; border-bottom:2px solid #e6e6e6}
295
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label a{margin:0; display:inline; padding:0; text-decoration:none; height:auto; width:auto}
296
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-input{float:right; display:block; min-width:30px; width:calc(100% - 112px); line-height:30px; }
297
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-input input[type="text"]{width:100%; padding:3px 5px; height:28px; }
298
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label .wc_captcha_refresh_img{cursor:pointer}
299
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label .wc_captcha_refresh_img img{max-width:16px!important; max-height:16px!important; box-sizing:content-box; margin:0; display:inline!important; background-color:#e6e6e6; padding:5px; border:1px solid #e4e4e4; border-right:1px solid #d9d9d9; vertical-align:middle; }
300
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-bin-captcha{background: #f5f5f5; padding: 2px 15px; font-size: 11px; color: #aaa; line-height: 28px; text-align: center;}
301
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-bin-captcha i{margin-left: 5px}
302
-
303
- /* COMMENT FORM | ROWS and COLS */
304
- #wpcomm .wpd-form-row .wpd-form-col-full{width:100%; float:none; margin:0; text-align:right; padding:0; }
305
- #wpcomm .wpd-form-row .wpd-form-col-left{width:49%; float:right; margin:0; text-align:right; padding:0; }
306
- #wpcomm .wpd-form-row .wpd-form-col-right{width:49%; float:left; margin:0; text-align:left; padding:0; }
307
- #wpcomm .wpd-form-row .wpd-form-col-full .wpdiscuz-item{text-align:right; }
308
- #wpcomm .wpd-form-row .wpd-form-col-left .wpdiscuz-item{text-align:right; }
309
- #wpcomm .wpd-form-row .wpd-form-col-right .wpdiscuz-item{text-align:left; }
310
-
311
- /* COMMENT FORM | FIELDS */
312
- #wpcomm .wpdiscuz-item label.wpd-field-label{ float:none; }
313
- #wpcomm .wpd-form-row .wpdiscuz-item{width:100%; vertical-align:baseline; padding:5px 0px 3px 0px; position:relative; }
314
- #wpcomm .wpd-form-row .wpd-field{width:100%; line-height:20px; color:#777777; display:inline-block; float:none; clear:both; margin:0; box-sizing:border-box; padding:3px 5px 3px 5px; font-size:14px; border-radius:0; vertical-align:baseline; }
315
- #wpcomm .wpd-form-row .wpd-has-icon .wpd-field{padding-right:30px; }
316
- #wpcomm .wpd-form-row .wpd-has-desc .wpd-field{padding-left:30px; }
317
- #wpcomm .wpd-form-row .wpdiscuz-item .wpd-field-icon {display:inline-block; font-size:17px; line-height:17px; opacity:0.3; padding:0; margin:0px; position:absolute; top:12px; right:8px; width:20px; text-align:right; }
318
- #wpcomm .wpd-form-row .wpdiscuz-item .wpd-field-desc{display:inline-block; font-size:17px; line-height:17px; opacity:1; margin:0px; position:absolute; top:12px; left:8px; width:20px; text-align:left; border-right:1px solid #ccc; color:#aaa; padding:0px 5px; cursor:pointer; }
319
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="text"],
320
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="email"],
321
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="url"],
322
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="color"],
323
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="date"],
324
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="datetime"],
325
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="datetime-local"],
326
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="month"],
327
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="number"],
328
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="time"]{height:32px; }
329
- #wpcomm .wpd-form-row .wpdiscuz-item textarea{height:72px; }
330
- .wpdiscuz_select{background:url("data:image/png; base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAANCAYAAAC+ct6XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjBBRUQ1QTQ1QzkxMTFFMDlDNDdEQzgyNUE1RjI4MTEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjBBRUQ1QTU1QzkxMTFFMDlDNDdEQzgyNUE1RjI4MTEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGMEFFRDVBMjVDOTExMUUwOUM0N0RDODI1QTVGMjgxMSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGMEFFRDVBMzVDOTExMUUwOUM0N0RDODI1QTVGMjgxMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pk5mU4QAAACUSURBVHjaYmRgYJD6////MwY6AyaGAQIspCieM2cOjKkIxCFA3A0TSElJoZ3FUCANxAeAWA6IOYG4iR5BjWwpCDQCcSnNgxoIVJCDFwnwA/FHWlp8EIpHSKoGgiggLkITewrEcbQO6mVAbAbE+VD+a3IsJTc7FQAxDxD7AbEzEF+jR1DDywtoCr9DbhwzDlRZDRBgACYqHJO9bkklAAAAAElFTkSuQmCC") #fefefe no-repeat scroll left center!important; border-radius:0; border:1px solid lightgray!important; box-shadow:none!important; height:28px!important; padding:3px 3px 3px 22px!important; font-size:13px!important; -moz-appearance:none!important; -webkit-appearance:none!important; outline:0 none!important; text-indent:.01px; text-overflow:""!important; width:100%!important; box-sizing:border-box!important; line-height:20px!important; clear:both; float:none!important; margin:0!important}
331
- #wpcomm .wc-field-submit{text-align:left; }
332
- #wpcomm .wc-field-submit input[type="button"]{margin:1px; border:#ddd 1px solid; font-size:13px; line-height:16px; padding:6px 15px; clear:both; float:none}
333
- #wpcomm .wpd-item-wrap{ text-align:right; }
334
- #wpcomm .wpd-item{ text-align:right; }
335
- #wpcomm .wpd-form-col-left .wpd-field-group .wpd-field-group-title, #wpcomm .wpd-form-col-right .wpd-field-group .wpd-field-group-title, #wpcomm .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ font-size:13px; text-align:right; line-height:20px; padding: 5px 0; }
336
- #wpcomm .wpd-form-col-left .wpd-has-desc .wpd-field-group-title, #wpcomm .wpd-form-col-right .wpd-has-desc .wpd-field-group-title{ padding-left:35px; }
337
- #wpcomm .wc-comment-right .wpd-top-custom-fields{ padding:5px 10px 15px 10px; }
338
- #wpcomm .wc-comment-right .wpd-bottom-custom-fields{ padding:5px 10px; margin-bottom:20px; }
339
-
340
- /* COMMENT FORM | CHECKBOX / RADIO */
341
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single{ border-bottom:none; text-align:left; }
342
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single .wpd-item{ margin:0px; padding:0px; }
343
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single .wpd-field{ height:20px; vertical-align:top; outline: none; }
344
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single .wpd-field-label{ height:20px; vertical-align:top; }
345
- #wpcomm .wpdiscuz-item .wpd-field-label a{vertical-align: inherit; display: inline;}
346
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single{ border-bottom:none; }
347
- #wpcomm .wpd-form-col-left .wpd-field-group.wpd-field-single .wpd-field-group-title, #wpcomm .wpd-form-col-right .wpd-field-group.wpd-field-single .wpd-field-group-title{ font-size:inherit; text-align:left; line-height:inherit; height:25px; }
348
- #wpcomm .wpdiscuz-item.wpd-field-radio, #wpcomm .wpdiscuz-item.wpd-field-checkbox{ border-bottom:1px dotted #ccc; padding-bottom:12px; }
349
- #wpcomm .wpd-form-col-left div:last-of-type, #wpcomm .wpd-form-col-right div:last-of-type{ border-bottom:none; }
350
- #wpcomm .wpd-field-radio .wpd-item, #wpcomm .wpd-field-checkbox .wpd-item{ display:inline-block; padding:1px; margin:1px 0px; min-width:60px; }
351
- #wpcomm .wpd-field-radio .wpd-field, #wpcomm .wpd-field-checkbox .wpd-field { width:auto; height:25px; display:inline-block; float:right; padding:0px; line-height:20px; vertical-align:baseline; margin:0px 0px 0px 6px; }
352
- #wpcomm .wpd-field-radio .wpd-field-label, #wpcomm .wpd-field-checkbox .wpd-field-label{ width:auto; height:22px; display:inline; float:none; padding:0px; line-height:20px; font-size:12px; margin:0px; vertical-align:middle; }
353
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-agreement,
354
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-cookies-consent{padding-bottom:0px;}
355
-
356
- /* COMMENT FORM | SELECT */
357
- #wpcomm .wpd-form-row .wpd-form-col-right .wpdiscuz-item.wpd-field-select{ text-align:right; }
358
- #wpcomm .wpdiscuz-item.wpd-field-select select.wpdiscuz_select{ height: 32px !important; margin: 5px 0 0 !important; max-width:400px!important; }
359
- #wpcomm .wpdiscuz-item.wpd-field-select.wpd-has-desc select.wpdiscuz_select{ width:calc(100% - 40px)!important; }
360
- #wpcomm .wpdiscuz-item.wpd-field-select .wpd-field-group-title { padding-top: 12px; }
361
- #wpcomm .wpdiscuz-item.wpd-field-select {padding: 7px 0 3px; }
362
- #wpcomm .wpdiscuz-item.wpd-field-select.wpd-has-desc .wpd-field-desc{ top:18px; }
363
- .wpd-custom-field{ display:table; width:100%; padding:1px 0px; line-height:20px; }
364
- .wpd-custom-field .fa-star{ font-size:1.2em; }
365
- .wpd-cf-label{ background: #f9f9f9; box-sizing: border-box!important; display:table-cell; font-size: 13px; opacity: 1; padding: 5px 10px; vertical-align: top; width: 29%; border-bottom:1px #f0f0f0 solid; }
366
- .wpd-cf-value{ display:table-cell; border-bottom:1px #f0f0f0 solid; width:69%; box-sizing:border-box!important; font-size:13px; vertical-align:top; opacity:0.7; padding: 5px 10px; }
367
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-label{ background:transparent; border:none; padding: 2px 2px 2px 10px; }
368
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-value{font-size: 16px; border-bottom:none; padding: 1px 10px; }
369
-
370
- /* COMMENT FORM | RATING */
371
- #wpcomm .wpdiscuz-item.wpd-field-group.wpd-field-rating{ border-bottom:1px dotted #ddd; height:77px; margin-bottom:0px; }
372
- #wpcomm .wpdiscuz-item .wpdiscuz-rating {border: none; float: right; margin:0px; padding:5px 1px 5px 0px; margin-right:-5px; }
373
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input { visibility:hidden; position:absolute; }
374
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label:before { margin: 3px; line-height: 18px; font-size: 1.4em; cursor:pointer; }
375
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > .half:before {position: absolute; cursor:pointer; }
376
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label { float: left; }
377
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc{ left:0px; top:0px; position:relative; font-size:14px; margin-right:5px; padding: 0 7px; }
378
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc i.fa{ font-size:17px; }
379
- #wpcomm .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ display:inline-block; vertical-align:baseline; padding:0px 0px 2px 0px; margin-top:-2px; padding-left: 35px; }
380
- #wpcomm .wpd-form-col-full .wpdiscuz-item .wpdiscuz-rating{ padding:0px 0px 0px 6px; vertical-align:middle; line-height: 14px; }
381
- #wpcomm .wpd-form-col-full .wpd-item-wrap{ display:inline-block; float:right; padding-left:7px; vertical-align:baseline; padding:0px 1px 1px 1px; }
382
- .wpdiscuz-stars-label{ line-height:20px; padding:10px 3px 2px 0px; font-size:14px; }
383
- .wpdiscuz-stars-wrapper{ display:block; }
384
- .wpdiscuz-stars-wrapper-inner{ position: absolute; }
385
- .wpdiscuz-activ-stars{ position: absolute; display: flex; font-size: 22px; top: 0; right:0; }
386
- .wpdiscuz-pasiv-stars{ font-size: 22px; display: flex; }
387
- .wpdiscuz-activ-stars{ overflow:hidden; }
388
- .wpdiscuz-pasiv-stars i.wpdiscuz-pasiv-star, .wpdiscuz-activ-stars i.wpdiscuz-activ-star{ padding:0px 2px; font-size:20px; }
389
-
390
- /* COMMENT FORM | DATE */
391
- #wpcomm .wpd-form-row .wpd-field-date { height:77px; }
392
- #wpcomm .wpd-form-row .wpd-field-date .wpd-field-title{font-size: 13px; line-height: 20px; padding: 5px 0px 8px 0; text-align: right; padding-bottom: 8px; }
393
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field{padding-right:5px; }
394
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-desc .wpd-field{padding-left:5px; }
395
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field-icon{right:2px; top: 10px; }
396
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field-desc{top: 10px; }
397
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field-title{padding-right:26px; }
398
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-desc .wpd-field-title{padding-right:26px; }
399
-
400
- /* COMMENT FORM | COLOR */
401
- #wpcomm .wpd-form-row .wpd-field-color { height:77px; }
402
- #wpcomm .wpd-form-row .wpd-field-color .wpd-field-title{font-size: 13px; line-height: 20px; padding: 5px 0px 8px 0; text-align: right; padding-bottom: 8px; }
403
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field{padding-right:5px; }
404
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-desc .wpd-field{padding-left:5px; }
405
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field-icon{right:2px; top: 10px; }
406
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field-desc{top: 10px; }
407
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field-title{padding-right:26px; }
408
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-desc .wpd-field-title{padding-right:26px; }
409
-
410
- /* COMMENT FORM | SPOILER */
411
- #wpcomm .wpdiscuz-spoiler-wrap{background-color: #eee; border: 1px solid #555; border-style: dashed; margin: 5px 0; }
412
- #wpcomm .wpdiscuz-spoiler-wrap .wpdiscuz-spoiler{padding: 5px; cursor: pointer; }
413
- #wpcomm .wpdiscuz-spoiler-wrap .wpdiscuz-spoiler .fas{margin: 0 5px; }
414
- #wpcomm .wpdiscuz-spoiler-wrap .wpdiscuz-spoiler-content{display: none; font-style: italic; padding: 5px; }
415
-
416
- /* SOCIAL LOGIN BUTTONS */
417
- #wpcomm .wc_social_plugin_wrapper{width:auto}
418
- #wpcomm .wp-social-login-widget{margin-bottom:15px}
419
- #wpcomm .wc_social_plugin_wrapper .wp-social-login-connect-with{float:right; font-size:13px; padding:2px 0 0 7px; text-transform:uppercase}
420
- #wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list{padding:1px; text-align:right; margin-bottom:-10px}
421
- #wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list{padding:1px; text-align:left}
422
- #wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list img{width:20px; height:20px; float:none; display:inline; border:0}
423
- #wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list img{width:24px; height:24px; float:none; display:inline; border:0}
424
- #wpcomm .wc_social_plugin_wrapper .social_connect_ui{padding:0; clear:both; margin:0; margin-top:-20px; margin-bottom:-10px}
425
- #wpcomm .wc_social_plugin_wrapper .comment-form-social-connect{display:inherit; padding:0; margin:0; float:right; line-height:35px; padding-left:10px}
426
- #wpcomm .wc_social_plugin_wrapper .social_connect_form img{width:24px; height:24px; float:none; display:inline; border:0}
427
- #wpcomm .wc_social_plugin_wrapper .social_connect_form{float:right; line-height:35px; text-align:right; vertical-align:middle}
428
- #wpcomm .wc_social_plugin_wrapper .comment-form-social-connect label{display:inherit; padding:0; margin:0; font-style:normal; font-weight:normal; border:0; font-size:13px; text-transform:uppercase}
429
- #social_connect_facebook_auth,#social_connect_twitter_auth,#social_connect_google_auth,#social_connect_google_plus_auth,#social_connect_yahoo_auth,#social_connect_wordpress_auth{clear:both; padding:0; margin:0}
430
- #wpcomm .wc-secondary-forms-social-content .social_connect_ui{padding:0; clear:both; margin:0; text-align:left}
431
- #wpcomm .wc-secondary-forms-social-content .comment-form-social-connect{display:inherit; padding:0; margin:0; float:right; line-height:35px; padding-left:10px}
432
- #wpcomm .wc-secondary-forms-social-content .social_connect_form img{width:24px; height:24px; float:none; display:inline; border:0}
433
- #wpcomm .wc-secondary-forms-social-content .social_connect_form{float:right; width:100%; text-align:left; padding:0 0 5px 0; line-height:20px; vertical-align:middle}
434
- #wpcomm .wc-secondary-forms-social-content .comment-form-social-connect label{display:inherit; padding:0; margin:0; font-style:normal; font-weight:normal; border:0; font-size:13px; text-transform:uppercase}
435
-
436
- /* TOOLTIP */
437
- #wpcomm div.wpd-field-desc {position: relative; display: inline; }
438
- #wpcomm div.wpd-field-desc span {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; right: -150px; }
439
- #wpcomm div.wpd-field-desc span:after { content: ''; position: absolute; top: 100%; right: 50%; margin-right: -4px; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; }
440
- #wpcomm div:hover.wpd-field-desc span {visibility: visible; opacity: 1; bottom: 34px; right: 50%; margin-right: -100px; z-index: 999999; }
441
- #wpcomm div:hover.wpd-tooltip {position: relative; }
442
-
443
- #wpcomm span.wpd-field-desc {position: relative; display: inline; }
444
- #wpcomm span.wpd-field-desc span {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; right: -150px; }
445
- #wpcomm span.wpd-field-desc span:after { content: ''; position: absolute; top: 100%; right: 50%; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; }
446
- #wpcomm span:hover.wpd-field-desc span {visibility: visible; opacity: 1; bottom: 38px; right: 50%; margin-right: -105px; z-index: 999999; }
447
-
448
- #wpcomm div.wpd-tooltip {position: relative; }
449
- #wpcomm div.wpd-tooltip wpdtip {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; right: -100px;}
450
- #wpcomm div.wpd-tooltip wpdtip:after { content: ''; right: 48%; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; }
451
- #wpcomm div:hover.wpd-tooltip wpdtip {visibility: visible; opacity: 1; bottom: 38px; z-index: 999999; right: -100px; }
452
-
453
- #wpcomm div:hover.wpd-tooltip-right, #wpcomm span:hover.wpd-tooltip-right {position: relative; }
454
- #wpcomm div.wpd-tooltip-right wpdtip {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; left: 210px; }
455
- #wpcomm div.wpd-tooltip-right wpdtip:after { content: ''; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; left: 18px; }
456
- #wpcomm div:hover.wpd-tooltip-right wpdtip {visibility: visible; opacity: 1; bottom: 40px; z-index: 999999; left: -10px;}
457
-
458
- #wpcomm div:hover.wpd-tooltip-left {position: relative; }
459
- #wpcomm div.wpd-tooltip-left wpdtip {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; right: -100px; }
460
- #wpcomm div.wpd-tooltip-left wpdtip:after { content: ''; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; right: 10px; }
461
- #wpcomm div:hover.wpd-tooltip-left wpdtip {visibility: visible; opacity: 1; bottom: 40px; z-index: 999999; right: -10px;}
462
-
463
-
464
- #wpcomm div.wpdiscuz-user-settings.wpd-tooltip-left wpdtip:after{right: 20px;}
465
- #wpcomm div:hover.wpdiscuz-user-settings.wpd-tooltip-left wpdtip {bottom: 32px;}
466
- #wpcomm .wc-comment-link div:hover.wpd-tooltip-right wpdtip{bottom: 30px; width: 160px;}
467
- #wpcomm .wc-reply .wc-comment-link div:hover.wpd-tooltip-right wpdtip{bottom: 28px;}
468
- #wpcomm div.wpd-stat-users.wpd-tooltip wpdtip:after{right: 60%;}
469
-
470
- #wpcomm span.wc_fb,a.wc_tw,a.wc_go,a.wc_vk,a.wc_ok {position: relative; display: inline; }
471
- #wpcomm span.wc_fb span,a.wc_tw span,a.wc_go span,a.wc_vk span,a.wc_ok span {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; left: 210px; }
472
- #wpcomm span.wc_fb span:after,a.wc_tw span:after,a.wc_go span:after,a.wc_vk span:after,a.wc_ok span:after { content: ''; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; left: 12px; }
473
- #wpcomm .wc_fb:hover span, #wpcomm .wc_go:hover span, #wpcomm .wc_tw:hover span, #wpcomm .wc_vk:hover span, #wpcomm .wc_ok:hover span {visibility: visible; opacity: 1; bottom: 40px; z-index: 999999; left: -10px; }
474
- #wpcomm span.wc-vote-link{position: relative; display: inline; }
475
- #wpcomm span.wc-vote-link span{position: absolute; width:100px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; display: inline-block; }
476
- #wpcomm span.wc-vote-link span:after{ content: ''; position: absolute; top: 100%; right: 50%; margin-right: -8px; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; }
477
- #wpcomm span:hover.wc-vote-link span{visibility: visible; opacity: 1; bottom: 30px; right: calc(50% - 50px); z-index: 999999; }
478
- #wpcomm span.wc-comment-img-link-wrap{position: relative; display: inline; }
479
- #wpcomm span.wc-comment-img-link-wrap span{position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:3px 3px; font-size:12px; text-align: center; visibility: hidden; border-radius: 0px; bottom: 30px; right: -170px; margin-right: 0px; }
480
- #wpcomm span.wc-comment-img-link-wrap span:after{ content: ''; position: absolute; top: 100%; left: 10px; margin-right: -8px; width: 0; height: 0; border-top: 8px solid #555555; border-left: 8px solid transparent; border-right: 8px solid transparent; }
481
- #wpcomm span:hover.wc-comment-img-link-wrap span{opacity: 1; z-index: 999999; }
482
- #wpcomm span.wc-comment-img-link-wrap span.wc-comment-img-link-show{visibility: visible; }
483
- #wpcomm span.wc-comment-img-link-wrap span.wc-comment-img-link-show input[type="text"]{ padding: 3px 10px; font-size: 13px; color:#999999; }
484
- #wpcomm .wpd_label__check div:hover.wpd-field-desc span {bottom: 36px; margin-right: -99px; }
485
- #wpcomm .wpd_label div.wpd-field-desc span {width:200px;}
486
- #wpcomm .wpd_label div:hover.wpd-field-desc span {right: 50%;}
487
-
488
- /* TOLTIP VALIDATOR */
489
- #wpcomm div.wpd-field-invalid {display: inline; }
490
- #wpcomm div.wpd-field-invalid span {position: absolute; max-width:200px; color: #FFFFFF; background: #d99; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; }
491
- #wpcomm div.wpd-field-invalid span:after { content: ''; position: absolute; top: -7px; right: 15px; margin-right: -8px; width: 0; height: 0; border-top: 0px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #d99; }
492
- #wpcomm div.wpd-field-invalid span {visibility: visible; opacity: 1; bottom: auto; top:calc(100% + 8px); right: 0; z-index: 999999; }
493
-
494
- /* MISC */
495
- #wpcomm .wpdiscuz_subscribe_status{font-size:12px; padding-top:6px}
496
- #wpcomm .wpdiscuz_subscribe_status a{font-size:12px}
497
- #wpcomm .wc-comment.wc-no-left-margin{margin-right:0!important}
498
- #wc_unsubscribe_message,#wc_delete_content_message,#wc_follow_message{margin:10px auto 1px auto; padding:10px; text-align:center; border:#0d0 1px dotted; background:#cfc;clear:both;}
499
- .wc_unsubscribe_message,.wc_delete_content_message,.wc_follow_message{font-size:14px; color:#444}
500
- #wpcomm .wc_editable_div{-moz-appearance:textfield-multiline; -webkit-appearance:textarea; border:1px solid #ccc; border-radius:0; font:medium -moz-fixed; font:-webkit-small-control; overflow:auto; resize:both; box-sizing:border-box; height:46px; max-width:100%; min-height:46px!important; padding:5px; width:100%}
501
- .wpdiscuz-nofollow,.wpdiscuz-nofollow:hover{text-decoration:none!important}
502
- .wc_msg_required_fields,.wc_invalid_field,.wc_invalid_captcha,.wc_error_url_text,.wc_error_email_text,.wpdiscuz-sendmail-error,.wc_msg_input_min_length,
503
- .wc_msg_input_max_length,.wc_login_to_vote,.wc_deny_voting_from_same_ip,.wc_self_vote,.wc_vote_only_one_time,.wc_voting_error,.wc_comment_edit_not_possible,
504
- .wc_comment_not_updated,.wc_comment_not_edited,.msgNotAllowedFiles,msgMaxFileCount,.msgMaxFileSize,.msgPostMaxSize,
505
- .wc_follow_email_confirm_fail,.wc_follow_login_to_follow,.wc_follow_impossible,.wc_follow_not_added{background-color:#fce8e8!important; font-size:14px; text-align:center; color:#ce4a66; border:#f2d3d2 1px solid; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
506
- .wc_follow_success,.wc_follow_canceled,.wc_follow_email_confirm{background-color:#f0f0f0!important; font-size:14px; text-align:center; color:#00B38F; border:#eee 1px solid; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
507
- .wc_held_for_moderate{background-color:#fff8ed; font-size:14px; text-align:center; color:#d3760c; border:none; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
508
- .wpdiscuz-loading-bar{position:fixed; left:0; width:70px; border:0; background:transparent; z-index:999999; display:none; }
509
- .wpdiscuz-loading-bar-auth{top:32px}
510
- .wpdiscuz-loading-bar-unauth{top:0}
511
- .wpdiscuz-loading-bar .wpdiscuz-loading-bar-img{max-width:32px!important; height:auto}
512
- .wpdiscuz-vote-sorting-desc,.wpdiscuz-vote-sorting-asc{text-align:center; border:0; z-index:999999; cursor:pointer; display:inline-block}
513
- .wpdiscuz-front-actions{width:100%; box-sizing:border-box; padding:10px 15px 10px 10px; margin-top:20px; margin-bottom:0px; text-align:left}
514
- .wpdiscuz-subscribe-bar{width:100%; box-sizing:border-box; padding:10px 15px 20px 10px; margin-bottom:10px; }
515
- #wpcomm #bywpdiscuz{display:none}
516
- #wpcomm .by-wpdiscuz{text-align:left; border-top:#ddd solid 1px; padding:1px 1px 1px 1px}
517
- #wpcomm .by-wpdiscuz a{font-size:11px; font-weight:bold; text-align:left; color:#ccc; padding:1px; margin:0; line-height:12px; border:0; text-decoration:none}
518
- #wpcomm .wpdimg{border:0; padding:0; margin:0; height:12px; cursor:pointer; display:inline; clear:both}
519
- #wpcomm .wc-copyright{margin:0 auto 0 0; text-align:left; display:block; padding-top:2px}
520
- #wpcomm .wc-copyright a{font-size:9px; color:#aaa; cursor:help; text-decoration:none; margin:0; padding:0; border:0}
521
-
522
- /* DARK STYLE */
523
- #wpcomm.wpd-dark .wc-thread-wrapper{padding: 12px 2px 10px 0px;}
524
- #wpcomm.wpd-dark .wpdiscuz-textarea-wrap{ border: #777777 solid 1px;}
525
- #wpcomm.wpd-dark .wc-field-textarea .wpdiscuz-textarea-foot{ border-top: 1px dotted #777777; }
526
- #wpcomm.wpd-dark .wpdiscuz-front-actions { background-color: #333333; }
527
- #wpcomm.wpd-dark .wpdiscuz-front-actions .wpdiscuz-sbs-wrap span{ color: #aaaaaa; }
528
- #wpcomm.wpd-dark .wpdiscuz-sort-button { color: #aaaaaa; }
529
- #wpcomm.wpd-dark .wpd_label__check i.wpdicon-off { color: #aaaaaa; border: 1px solid #777777; background-color:#333333;}
530
- #wpcomm.wpd-dark button, #wpcomm.wpd-dark input[type="button"], #wpcomm.wpd-dark input[type="reset"], #wpcomm.wpd-dark input[type="submit"] { border: 1px solid #777777; color: #FFFFFF; background-color: #333333;}
531
- #wpcomm.wpd-dark .wpd_label__check i.wpdicon-on{ background-color: transparent; border: 1px solid #777777; }
532
- #wpcomm.wpd-dark .avatar { box-shadow: 0px 0px 5px 1px rgba(100, 100, 100, 1);}
533
- #wpcomm.wpd-dark .wc-comment .wc-comment-left .wc-comment-label {background: transparent; border-bottom: 1px solid #555555; -webkit-box-shadow: 0px 7px 9px -6px rgba(100,100,100,1); -moz-box-shadow: 0px 7px 9px -6px rgba(100,100,100,1); box-shadow: 0px 7px 9px -6px rgba(100,100,100,1); margin: 3px auto 8px auto;}
534
- #wpcomm.wpd-dark .wc-comment .wc-comment-right {background: transparent;}
535
- #wpcomm.wpd-dark .wc-comment-header { border-top: 1px solid #777777;}
536
- #wpcomm.wpd-dark .wc-reply .wc-comment-header {border-top: 1px solid #777777; }
537
- #wpcomm.wpd-dark .wc-comment .wc-comment-left .wpd-xborder {border-left: 1px solid #777777;}
538
- #wpcomm.wpd-dark .wc-cta-button, #wpcomm .wc-cta-button-x {color: #777777;}
539
- #wpcomm.wpd-dark .wc-cta-active { color: #FFFFFF;}
540
- #wpcomm.wpd-dark .wc-comment-text { color: inherit;}
541
- #wpcomm.wpd-dark .wpdiscuz-subscribe-bar { color: #aaaaaa; background-color: #444444; }
542
- #wpcomm.wpd-dark .wc-sticky-comment.wc-comment .wc-comment-header,
543
- #wpcomm.wpd-dark .wc-closed-comment.wc-comment .wc-comment-header,
544
- #wpcomm.wpd-dark .wc-private-comment.wc-comment .wc-comment-header{ background-color: transparent; }
545
- #wpcomm.wpd-dark .wc-private-comment.wc-comment .wc-comment-header{border-bottom: 1px dotted #fa9800;}
546
- #wpcomm.wpd-dark .wc-private-comment.wc-comment .wc-comment-header .wpd-private{ color: #fa9800; border: 1px dotted #fa9800; }
547
- #wpcomm.wpd-dark .wc-closed-comment.wc-comment .wc-comment-header .wpd-closed{color: #999999; border:1px dotted #999999;}
548
-
549
- @media screen and (max-width: 1024px){
550
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 33%; margin-bottom: 10px; }
551
- }
552
- @media screen and (max-width:800px){
553
- #wpcomm .wpdiscuz-subscribe-form-option{width:100%!important; padding:0!important}
554
- #wpcomm .wpdiscuz-subscribe-form-email{width:100%!important; padding:0!important; margin-top:5px}
555
- #wpcomm .wpdiscuz-subscribe-form-button{width:100%!important; padding:0!important}
556
- #wpcomm .wpdiscuz-subscribe-form-button input[type="submit"]{width:100%!important; margin-top:5px}
557
- #wpcomm .wpd-form-row .wpd-form-col-left{width:100%; float:none; }
558
- #wpcomm .wpd-form-row .wpd-form-col-right{width:100%; float:none; }
559
- #wpcomm .wc-field-comment .wc-field-avatararea {display:none!important;}
560
- #wpcomm .wc-field-comment .wc-field-textarea{margin-right:0px;}
561
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea{padding: 25px 20px 10px 18px; font-size: 16px;}
562
- #wpcomm .wc-form-footer{margin-right:0px; }
563
- #wpcomm .wc-comment-left .wpd-xborder,
564
- #wpcomm .wc-reply .wc-comment-left .wpd-xborder{display: none;}
565
- #wpcomm.wpdiscuz_no_avatar .wc-form-footer{margin-right:0}
566
- #wpcomm .wpd-form-col-left{width:100%; float:none; display:block}
567
- #wpcomm .wpd-form-col-right{width:100%; float:none; display:block; padding:0}
568
- #wpcomm .wc-field-submit input[type="button"]{max-width:200px}
569
- #wpcomm .wpd-form-row .wpdiscuz-item {width:100%; margin:0 auto; display:block; float:none}
570
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label{padding-right:0; width:115px}
571
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-input{width:calc(100% - 116px)}
572
- #wpcomm .wc-reply{margin-right:25px!important}
573
- #wpcomm .wc-comment .wc-form-wrapper{margin-right: 0px;}
574
- #wpcomm .wc_comment_level-3{margin-right:0!important}
575
- #wpcomm .wc_comment_level-4{margin-right:0!important}
576
- #wpcomm .wc_comment_level-5{margin-right:0!important}
577
- #wpcomm .wc_comment_level-5{margin-right:0!important}
578
- #wpcomm .wc_comment_level-6{margin-right:0!important}
579
- #wpcomm .wc_comment_level-7{margin-right:0!important}
580
- #wpcomm .wc_comment_level-8{margin-right:0!important}
581
- #wpcomm .wc_comment_level-9{margin-right:0!important}
582
- #wpcomm .wc_comment_level-10{margin-right:0!important}
583
- #wpcomm .wc-comment-author{padding-right: 5px; font-size: 16px; }
584
- #wpcomm .wc-comment-author a{ font-size:14px; width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline;}
585
- #wpcomm .wc-comment-link{display: block; float:left; }
586
- #wpcomm .wc-comment-text{font-size:13px!important}
587
- #wpcomm .wc-comment .wc-comment-left{float:none!important; margin-bottom:8px; width:100%!important}
588
- #wpcomm .wc-comment .wc-comment-right,#wpcomm .wc-reply .wc-comment-right{margin-right:0!important}
589
- #wpcomm .wc-comment .wc-comment-left .avatar{width:40px!important; height:40px!important; margin: 0 12px 0 5px !important; float:right!important; display:block!important}
590
- #wpcomm .wc-reply.wc-comment .wc-comment-left .avatar{width:26px!important; height:26px!important; margin: 4px 3px 2px 3px !important; box-shadow:none!important; margin: 0 12px 0 5px !important;}
591
- .wpd-cf-label{ display:block; width: 100%; background: transparent; }
592
- .wpd-cf-value{ display:block; width:100%; background: #f9f9f9; border-bottom:1px solid #bbb; }
593
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-comment .wc-field-textarea,
594
- #wpcomm .wc-secondary-form-wrapper .wc-form-footer{margin-right: 0px;}
595
- #wpcomm .wc-field-submit{text-align:left}
596
- #wpcomm .wc-comment-label{ width:auto; }
597
- #wpcomm .wc-comment-label span{line-height:14px; padding:0px 2px; }
598
- #wpcomm .wc-comment-footer .wc-footer-left{ float:none; display:block; padding:2px 5px; text-align:right; }
599
- #wpcomm .wc-comment-footer .wc-footer-right{ float:none; display:block; padding:5px 5px 2px 5px; text-align:right; }
600
- #wpcomm .wc-comment-footer .wc-footer-right .wc-comment-date{ margin-right:0px; }
601
- #wpcomm .wc-comment-footer .wc-footer-left span{ margin-bottom:7px; }
602
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 50%; margin-bottom: 10px; }
603
- #wpcomm .wc-toggle .wpdiscuz-children-button-text, #wpcomm .wc-toggle .wcsep{ display:none; }
604
- #wpcomm .wc-comment-left .wc-comment-label{display: none;}
605
- #wpcomm .wc-comment-header{border-bottom:none!important;}
606
- #wpcomm div.wpd-tooltip wpdtip,
607
- #wpcomm div.wpd-tooltip-left wpdtip,
608
- #wpcomm div.wpd-tooltip-right wpdtip{width: 160px;}
609
- #wpcomm div:hover.wpd-tooltip wpdtip {right: -75px;}
610
- #wpcomm .wpdiscuz-front-actions{text-align: right;}
611
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sbs-wrap {float: none; padding: 0px 6px 10px 6px;}
612
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons{display: block;}
613
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users{display: none;}
614
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat.wpd-stat-users i{font-size: 22px;}
615
- #wpcomm .wc-comment-header{border-bottom:none!important; padding-top: 0px; height: 40px;margin-right: 60px;}
616
- #wpcomm .wc-reply .wc-comment-header{border-bottom:none!important; padding-top: 5px; height: 36px;margin-right: 40px;}
617
- }
618
- @media screen and (max-width:440px){
619
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right{display:none;}
620
- }
621
- @media screen and (max-width:420px){
622
- #wpcomm .wpdiscuz-sort-buttons,#wpcomm .wpdiscuz-sort-button{font-size:11px!important}
623
- #wpcomm .wc-share-link{line-height:30px}
624
- #wpcomm .wc-form-footer{margin-right:0}
625
- #wpcomm .wc-field-submit input[type="button"]{width:99%; font-size:10px; padding:5px 2px}
626
- .wpdiscuz_auth .wc-field-submit{width:100%!important}
627
- #wpcomm .wc-form-wrapper .ed_button{width:18%; padding:0; margin:3px 2px 3px 2px}
628
- #wpcomm .wc-field-comment .wc-field-textarea .wpdiscuz-quicktags-enabled .commentTextMaxLength{top:49px}
629
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
630
- flex-basis: 100%; margin-bottom: 10px; }
631
- }
632
- @media screen and (max-width:360px){
633
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users{margin-left: 0px;}
634
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat{margin-left: 8px;}
635
- #wpcomm .wpdiscuz-form-bottom-bar {padding: 15px 2px 0px 0px;}
636
- }
637
-
638
- #wpdiscuz-loading-bar.wpdiscuz-loading-bar:before{
639
- content: ""; display: inline-block; width: 5px; height: 6px; background: #888; border-radius: 50%; animation: wpdLoading 1s ease infinite; box-shadow: 0 0 5px 1px #fff;
640
- }
641
-
642
- @keyframes wpdLoading{
643
- 0%{transform: translateX(0)}
644
- 5%{transform: translateX(0); width: 18px; transform-origin: left}
645
- 50%{transform: translateX(50px); width: 10px; }
646
- 55%{transform: translateX(42px); width: 18px; }
647
- 100%{transform: translateX(0)}
648
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/wpdiscuz-user-content.css CHANGED
@@ -7,7 +7,7 @@
7
  .wpd-wrapper {width: 100%;padding: 10px;margin: 0 auto;background: transparent;}
8
  .wpd-wrapper .wpd-list {display: flex;border-right: 1px solid #ddd;}
9
  .wpd-wrapper .wpd-list,
10
- .wpd-wrapper .wpd-list-item {list-style: none;list-style-type: none;}
11
  .wpd-wrapper .wpd-list-item {border-top: 1px solid #ddd;border-left: 1px solid #ddd;border-bottom: 1px solid #ddd;display: inline-block;padding: 10px 10px;color: #999;cursor: pointer;flex-grow: 1;text-align: center;}
12
  .wpd-wrapper .wpd-list-item:hover {color: #444;}
13
  .wpd-wrapper .wpd-list-item.wpd-active {border-bottom: none; color: #444;}
@@ -26,7 +26,10 @@
26
  .wpd-wrapper .wpd-page-link:hover:not(.wpd-current-page) {background: #ddd; }
27
  .wpd-wrapper .wpd-page-link:last-of-type {border-right: 1px solid #ddd;}
28
  .wpd-wrapper .wpd-current-page {color: #fff;border: none;cursor: initial;}
29
- /** ACTIVITY **/
 
 
 
30
  .wpd-wrapper #wpd-content-item-1 .wpd-item-left{float: left;width: 88%;border-right: 1px dotted #ccc;margin-top: 5px;}
31
  .wpd-wrapper #wpd-content-item-1 .wpd-item-right{margin-left: 92%;text-align: center;vertical-align: middle;padding-top: 24px;color: #666;}
32
  /** SUBSCRIPTIONS **/
7
  .wpd-wrapper {width: 100%;padding: 10px;margin: 0 auto;background: transparent;}
8
  .wpd-wrapper .wpd-list {display: flex;border-right: 1px solid #ddd;}
9
  .wpd-wrapper .wpd-list,
10
+ .wpd-wrapper .wpd-list-item {list-style: none;list-style-type: none;font-size: 14px;}
11
  .wpd-wrapper .wpd-list-item {border-top: 1px solid #ddd;border-left: 1px solid #ddd;border-bottom: 1px solid #ddd;display: inline-block;padding: 10px 10px;color: #999;cursor: pointer;flex-grow: 1;text-align: center;}
12
  .wpd-wrapper .wpd-list-item:hover {color: #444;}
13
  .wpd-wrapper .wpd-list-item.wpd-active {border-bottom: none; color: #444;}
26
  .wpd-wrapper .wpd-page-link:hover:not(.wpd-current-page) {background: #ddd; }
27
  .wpd-wrapper .wpd-page-link:last-of-type {border-right: 1px solid #ddd;}
28
  .wpd-wrapper .wpd-current-page {color: #fff;border: none;cursor: initial;}
29
+ .wpd-wrapper .wpd-item.wpd-follow-item .fa-user{font-size: 15px; color: #777;}
30
+ .wpd-wrapper .wpd-item.wpd-follow-item .wpd-fl-name{ font-size: 16px; color: #777;}
31
+
32
+ /** ACTIVITY **/
33
  .wpd-wrapper #wpd-content-item-1 .wpd-item-left{float: left;width: 88%;border-right: 1px dotted #ccc;margin-top: 5px;}
34
  .wpd-wrapper #wpd-content-item-1 .wpd-item-right{margin-left: 92%;text-align: center;vertical-align: middle;padding-top: 24px;color: #666;}
35
  /** SUBSCRIPTIONS **/
assets/css/wpdiscuz-user-content.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .lity{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;white-space:nowrap;background:#0b0b0b;background:rgba(0,0,0,.3);outline:0!important;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity.lity-opened{opacity:1}.lity.lity-closed{opacity:0}.lity *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.lity-wrap{z-index:9990;position:fixed;top:34px;right:0;bottom:0;left:0;text-align:center;outline:0!important}.lity-wrap:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.lity-loader{z-index:9991;color:#fff;position:absolute;top:50%;margin-top:-.8em;width:100%;text-align:center;font-size:14px;font-family:Arial,Helvetica,sans-serif;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity-loading .lity-loader{opacity:1}.lity-container{z-index:9992;position:relative;text-align:left;vertical-align:middle;display:inline-block;white-space:normal;max-width:100%;max-height:100%;outline:0!important}.lity-content{z-index:9993;width:100%;-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:-o-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease,-o-transform .3s ease}.lity-closed .lity-content,.lity-loading .lity-content{-webkit-transform:scale(.8);-ms-transform:scale(.8);-o-transform:scale(.8);transform:scale(.8)}.lity-content:after{content:'';position:absolute;left:0;top:0;bottom:0;display:block;right:0;width:auto;height:auto;z-index:-1;-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6)}.lity-close{z-index:9994;width:35px;height:35px;position:fixed;right:0;top:0;-webkit-appearance:none;cursor:pointer;text-decoration:none;text-align:center;padding:0;color:#fff;font-style:normal;font-size:35px;font-family:Arial,Baskerville,monospace;line-height:35px;text-shadow:0 1px 2px rgba(0,0,0,.6);border:0;background:0 0;outline:0;-webkit-box-shadow:none;box-shadow:none}.lity-close::-moz-focus-inner{border:0;padding:0}.lity-close:active,.lity-close:focus,.lity-close:hover,.lity-close:visited{text-decoration:none;text-align:center;padding:0;color:#fff;font-style:normal;font-size:35px;font-family:Arial,Baskerville,monospace;line-height:35px;text-shadow:0 1px 2px rgba(0,0,0,.6);border:0;background:0 0;outline:0;-webkit-box-shadow:none;box-shadow:none}.lity-close:active{top:1px}.lity-image img{max-width:100%;display:block;line-height:0;border:0}.lity-facebookvideo .lity-container,.lity-googlemaps .lity-container,.lity-iframe .lity-container,.lity-vimeo .lity-container,.lity-youtube .lity-container{width:100%;max-width:964px}.lity-iframe-container{width:100%;height:0;padding-top:56.25%;overflow:auto;pointer-events:auto;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-overflow-scrolling:touch}.lity-iframe-container iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-webkit-box-shadow:0 0 8px rgba(0,0,0,.6);box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}.lity-hide{display:none}.wpd-wrapper *,.wpd-wrapper :after,.wpd-wrapper :before{margin:0;padding:0;box-sizing:border-box}.wpd-wrapper{width:100%;padding:10px;margin:0 auto;background:0 0}.wpd-wrapper .wpd-list{display:flex;border-right:1px solid #ddd}.wpd-wrapper .wpd-list,.wpd-wrapper .wpd-list-item{list-style:none;list-style-type:none;font-size: 14px;}.wpd-wrapper .wpd-list-item{border-top:1px solid #ddd;border-left:1px solid #ddd;border-bottom:1px solid #ddd;display:inline-block;padding:10px 10px;color:#999;cursor:pointer;flex-grow:1;text-align:center}.wpd-wrapper .wpd-list-item:hover{color:#444}.wpd-wrapper .wpd-list-item.wpd-active{border-bottom:none;color:#444}.wpd-wrapper .wpd-list-item span{margin-left:5px}.wpd-wrapper .wpd-content-item{border-left:1px solid #ddd;border-right:1px solid #ddd;border-bottom:1px solid #ddd;padding:20px}.wpd-wrapper .wpd-content-item:not(.wpd-active){display:none}.wpd-wrapper .wpd-item{border-bottom:1px solid #ddd;font-size:13px;line-height:19px;padding-bottom:7px}.wpd-wrapper .wpd-item:last-child{border-bottom:none}.wpd-wrapper .wpd-item-link.wpd-comment-meta{font-size:12px;color:#555;padding-bottom:0}.wpd-wrapper .wpd-item-link{padding:5px 10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wpd-wrapper .wpd-post-link{margin-left:3px}.wpd-wrapper .wpd-post-item-link{font-size:12px;font-style:italic;color:#666}.wpd-wrapper .wpd-pagination{display:inline-block;margin:10px 0}.wpd-wrapper .wpd-page-link{color:#000;float:left;padding:3px 10px;text-decoration:none;transition:background-color .3s;border-top:1px solid #ddd;border-left:1px solid #ddd;border-bottom:1px solid #ddd;transition:background-color .3s;cursor:pointer;outline:0}.wpd-wrapper .wpd-page-link:hover:not(.wpd-current-page){background:#ddd}.wpd-wrapper .wpd-page-link:last-of-type{border-right:1px solid #ddd}.wpd-wrapper .wpd-current-page{color:#fff;border:none;cursor:initial}.wpd-wrapper .wpd-item.wpd-follow-item .fa-user{font-size:15px;color:#777}.wpd-wrapper .wpd-item.wpd-follow-item .wpd-fl-name{font-size:16px;color:#777}.wpd-wrapper #wpd-content-item-1 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-1 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-2 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-3 .wpd-item-left{float:left;width:88%;border-right:1px dotted #ccc;margin-top:5px}.wpd-wrapper #wpd-content-item-2 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding-top:24px;color:#666}.wpd-wrapper #wpd-content-item-3 .wpd-item-right{margin-left:92%;text-align:center;vertical-align:middle;padding:15px 0;color:#666}.wpd-wrapper .wpd-item-right *,.wpd-wrapper .wpd-user-email-delete-links-wrap{outline:0!important}.wpd-wrapper #wpd-content-item-1 .wpd-item-right i,.wpd-wrapper #wpd-content-item-2 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:30px;line-height:30px;color:#e8484a}.wpd-wrapper #wpd-content-item-3 .wpd-item-right i{display:inline-block;vertical-align:middle;font-size:20px;line-height:20px;color:#e8484a}.wpd-wrapper .wpd-user-email-delete-links-wrap{text-align:center;padding:8px}.wpd-wrapper .wpd-user-email-delete-links{font-size:15px}.wpd-wrapper .wpd-user-email-delete-links span{margin-left:5px}.wpd-wrapper.wpd-guest-settings{text-align:center}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button-wrap{width:70%;min-width:280px;line-height:1.5;border:1px solid #ddd;padding:5px;background:#eee;font-size:14px;margin:15px auto}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button-wrap:hover{background:#f8f8f8}.wpd-wrapper.wpd-guest-settings .wpd-user-settings-button{cursor:pointer}.wpd-wrapper.wpd-guest-settings .wpd-guest-action-error{color:#fa5454}.wpd-wrapper.wpd-guest-settings .wpd-guest-action-success{color:#00b38f}.wpd-wrapper.wpd-guest-settings{padding:2%}.wpd-clear{clear:both}.wpd-loading{margin-left:5px}.wpd-hide{display:none}.wpd-show{display:inline-block}.wpd-bulk-desc{font-size:12px;color:#666;font-style:italic}@media screen and (max-width:1024px){.wpd-wrapper .wpd-list-item span{display:none}}
assets/css/wpdiscuz.css DELETED
@@ -1,651 +0,0 @@
1
- /* wpDiscuz Main CSS stylesheet */
2
- wpdtip{display: inline-block; position: inherit; width: auto;}
3
-
4
- /* WRAPPER & GENERAL RULES */
5
- #wpcomm{max-width:950px; padding:1px 0 10px 0; border-top:#ddd solid 1px; margin:7px auto 15px auto;}
6
- #wpcomm *{box-sizing:border-box}
7
- #wpcomm .wpd-clear{clear:both!important; }
8
- #wpcomm .clearfix{clear:both; }
9
- #wpcomm .wpd-sticky{display: none; }
10
- #wpcomm .wpd-closed{display: none; }
11
- #wpcomm i{margin: 0px;}
12
- #wpcomm span {display:inline}
13
- #wpcomm .wc-must-login{margin:0; font-size:14px; line-height:16px; padding:10px; text-align:center}
14
- #wpcomm hr{background-color:rgba(0,0,0,0.1); border:0 none; height:1px; margin:10px auto}
15
- #wpcomm .avatar{padding:0px; margin:0 auto; float:none; display:inline; width:100%; height:auto; border:none; border-radius:0%; box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.2); }
16
- #wpcomm .page-numbers{padding:2px 7px; font-size:14px; margin:20px 1px; line-height:33px; background:#fff}
17
- #wpcomm span.current{color:#fff}
18
- #wpcomm .wc-label a:focus{outline:0}
19
- #wpcomm .wpdiscuz-hidden{display:none}
20
- .wpdiscuz_top_clearing{clear:both}
21
- .wpdiscuz_clear{clear:both}
22
- .wpdiscuz_clear_right{clear:right}
23
- .wpdiscuz_clear_left{clear:left}
24
-
25
- /* SORTING & SUBSCRIPTION BAR */
26
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons{padding-top: 3px; display: -webkit-flex; display: -moz-flex; display: -ms-flex; display: -o-flex; display: flex; justify-content: flex-end; -ms-align-items: center; align-items: center; }
27
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons .wpdiscuz-sort-button{font-size: 13px; }
28
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons i{display: inline-block; margin: 0px 6px; }
29
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sbs-wrap{float: left; }
30
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sbs-wrap span{font-size: 14px; cursor: pointer; }
31
- #wpcomm .wpdiscuz-subscribe-form-intro{font-size:14px; float:left; display:block; padding:3px 10px 3px 1px; line-height:20px; box-sizing:border-box; white-space:nowrap}
32
- #wpcomm .wpdiscuz-subscribe-form-option{font-size:13px; float:left; display:block; padding-right:5px; box-sizing:border-box}
33
- #wpcomm .wpdiscuz-subscribe-form-email{font-size:14px; float:left; display:block; padding:0 5px 0 0; box-sizing:border-box; width:30%}
34
- #wpcomm .wpdiscuz-subscribe-form-button{font-size:14px; float:left; display:block; box-sizing:border-box}
35
- #wpcomm .wpdiscuz-subscribe-form-email select{width:100%!important}
36
- #wpcomm .wpdiscuz-subscribe-form-email input[type="email"]{font-size:13px!important; padding:3px!important; width:100%!important; height:auto!important; line-height:20px!important; box-sizing:border-box!important; clear:both; float:none; margin:0}
37
- #wpcomm .wpdiscuz-subscribe-form-button input[type="submit"]{font-size:16px!important; min-height:29px!important; height:29px!important; padding:1px 3px 5px 3px!important; min-width:40px; line-height:14px!important; box-sizing:border-box!important; border:1px solid #ddd; clear:both; float:none; margin:0}
38
- #wpcomm .wpdiscuz-subscribe-agreement{font-size: 12px; display: block; clear: left; padding-top: 10px; width: 92%;}
39
- #wpcomm .wpdiscuz-subscribe-agreement label{ cursor: pointer; display: inline;}
40
-
41
- /* LIVE UPDATE NOTIFICATION BUTTONS */
42
- #wpcomm .wc_new_comment_and_replies{margin:0; padding:0; width:100%; height:auto; background:transparent}
43
- #wpcomm .wc_new_comment_and_replies .wc_new_comment{float:right; display:none; padding:3px 10px; font-size:12px; margin:1px 0 1px 3px; cursor:pointer; color:#fff; line-height:15px}
44
- #wpcomm .wc_new_comment_and_replies .wc_new_reply{float:right; display:none; padding:3px 10px; font-size:12px; margin:1px 0 1px 1px; cursor:pointer; color:#fff; line-height:15px}
45
-
46
- /* COMMENTS & REPLIES */
47
- #wpcomm .wc-thread-wrapper{padding:15px 0px 10px 2px; margin-bottom:10px; margin-top: 10px;}
48
- #wpcomm .wc-comment .wc-reply {margin-top:15px; margin-bottom:0; margin-left:40px}
49
- #wpcomm .wc-comment .wc-comment-left{width:72px; float:left; text-align:center; line-height:16px; position: relative;}
50
- #wpcomm .wc-comment .wc-comment-right{margin-left:90px; padding:0px; display:block; margin-bottom: 10px; }
51
- #wpcomm .wc-reply .wc-comment-left{width:50px; float:left; text-align:center; line-height:16px}
52
- #wpcomm .wc-reply .wc-comment-right{margin-left:65px; padding:0px; display:block; }
53
- #wpcomm .wc-comment-right.wc-hide-avatar{margin-left:0px;}
54
- #wpcomm .wc-comment .wc-comment-left .wpd-xborder{ display: none; position: absolute; height: 20px; border-right:1px solid #ddd; width: 100%; top:29px; right: -17px; }
55
- #wpcomm .wc-reply .wc-comment-left .wpd-xborder{display: none; }
56
- #wpcomm .wc-reply.wc_comment_level-2{ margin-left:99px}
57
-
58
- /* header */
59
- #wpcomm .wc-comment-header{margin-bottom: 10px; height: 40px; padding-top: 5px;}
60
- #wpcomm .wc-reply .wc-comment-header{margin-bottom:7px; height:34px; padding-top: 5px;}
61
- #wpcomm .wc-sticky-comment.wc-comment .wc-comment-left .wpd-xborder,
62
- #wpcomm .wc-closed-comment.wc-comment .wc-comment-left .wpd-xborder{display: none; }
63
- #wpcomm .wc-sticky-comment.wc-comment .wc-comment-header .wpd-sticky{display: inline-block;border-radius: 50%; font-size: 12px; padding: 3px 7px 2px 7px; margin: 1px 5px; line-height: 18px; height: 22px; width: 23px; }
64
- #wpcomm .wc-closed-comment.wc-comment .wc-comment-header .wpd-closed{display: inline-block; border-radius: 50%; font-size: 11px; padding: 2px 7px 2px 7px; margin: 1px 5px; line-height: 18px; height: 22px; width: 23px; }
65
- #wpcomm .wc-sticky-comment.wc-comment .wc-reply .wc-comment-header .wpd-sticky,
66
- #wpcomm .wc-closed-comment.wc-comment .wc-reply .wc-comment-header .wpd-closed{display: none;}
67
- #wpcomm .wc-private-comment.wc-comment .wc-comment-left .wpd-xborder{display: none; }
68
- #wpcomm .wc-comment .wc-comment-header .wpd-private{display: none;}
69
- #wpcomm .wc-private-comment.wc-comment .wc-comment-header .wpd-private{display:inline-block; font-size: 14px; padding: 4px 8px 3px 8px; margin: 1px 4px; line-height: 16px; }
70
- #wpcomm .wc-comment-link{font-size:12px; float:right; text-align:right; line-height:20px; padding:0 0 0 10px; margin: 7px 5px 5px 5px; }
71
- #wpcomm .wc-reply .wc-comment-link{margin:5px; }
72
- #wpcomm .wc-comment-link .wpf-cta{ cursor:pointer; font-size:14px; padding:4px 2px 3px 2px; min-width:24px; text-align:center; display:inline-block; margin:1px; line-height:16px; }
73
- #wpcomm .wc-reply .wc-comment-link .wpf-cta {font-size: 13px; padding: 3px 3px 3px 3px; line-height: 15px; }
74
-
75
- /* HEADER */
76
- #wc-comment-header{max-width:950px; padding:20px 5px 10px 5px; display:block; float:none; clear:both; font-size:22px; font-weight: normal; margin:0 auto;}
77
- #wc-comment-header .wpdiscuz-comment-count{display:inline-block; text-align: right;margin-right: 10px; vertical-align: bottom;}
78
- #wc-comment-header .wpdiscuz-comment-count .wpd-cc-value{border-radius:0%; background: #666; color: #fff; font-size: 15px; display: inline-block; line-height: 18px; padding:5px 10px 5px 10px; min-width: 41px; min-height: 26px; box-sizing: border-box; text-align: center;}
79
- #wc-comment-header .wpdiscuz-comment-count .wpd-cc-arrow{width: 0px; height: 0px; margin: -4px 0px 0px auto; border-left: 12px solid transparent; border-right: 0px solid transparent; border-top: 8px solid #666; display:block; line-height: 0px;}
80
- #wpcomm .wpdiscuz-form-top-bar{width: 100%; color: #666666;}
81
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-ftb-left{float: left; padding: 12px 0px 10px 0px; font-size: 14px; line-height: 20px;}
82
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-ftb-right{float: right; padding: 12px 0px 10px 0px; font-size: 14px; line-height: 20px;}
83
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-user-settings{ vertical-align:middle; display: inline-block; color: #666666; padding:1px 10px 1px 10px; font-size: 18px; line-height: 20px; cursor: pointer; border-right: 1px solid #ccc; margin-right: 10px;}
84
- #wpcomm .wpdiscuz-form-top-bar .wpdiscuz-user-settings:hover{color: #00B38F;}
85
- #wpcomm .wpdiscuz-form-top-bar #wc_show_hide_loggedin_username{display: inline-block; color: #666666; padding:1px 5px 1px 0px; font-size:14px; line-height: 20px;}
86
- #wpcomm .wpdiscuz-form-top-bar #wc_show_hide_loggedin_username span{ display: inline-block;line-height: 22px;vertical-align: bottom;}
87
- #wpcomm .wpdiscuz-form-top-bar #wc_show_hide_loggedin_username i{ vertical-align:middle; font-size: 21px; display: inline-block; padding: 0px 5px 0px 5px;}
88
- #wpcomm .wc-comment-title{margin:0; line-height:18px; font-weight:bold; padding:15px 10px; font-size:13px; text-align:right; padding-bottom:10px}
89
-
90
- #wpcomm .wpdiscuz-form-bottom-bar{ padding: 15px 10px 0px 10px;}
91
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left{float: left;}
92
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right{float: right}
93
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat{ cursor:default; color: #666; display: inline-block; margin-right: 12px; line-height: 34px;}
94
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat i{font-size:17px; margin-right: 5px; display: inline-block;}
95
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-threads i{font-size:16px}
96
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-replies i{font-size:18px; margin-right: 6px;}
97
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-subscribers i{font-size:16px}
98
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-hot i{color: #fc5844; font-size: 18px; opacity: 0.8; cursor: pointer;}
99
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-hot i:hover{opacity: 1;}
100
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-reacted i{color: #ffa600; font-size: 18px; opacity: 0.8; cursor: pointer;}
101
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat.wpd-stat-reacted i:hover{opacity: 1;}
102
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat span{font-size:15px; font-family:Verdana; display: inline;}
103
-
104
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img,
105
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img.avatar,
106
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img.avatar-32,
107
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users img.photo{ display: inline-block; width: 31px!important; height: 31px!important; box-shadow: none; border-radius: 50% 50% 0% 50% ; margin-left: 2px; border: 1px solid #ccc; line-height: 31px; vertical-align: middle; background: #fff; padding: 1px;}
108
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat{color: #666; display: inline-block; margin-right: 7px; line-height: 31px; vertical-align: bottom;}
109
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat.wpd-stat-users i{font-size: 28px; line-height: 31px; vertical-align: middle; color: #999999;}
110
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat.wpd-stat-users span{ vertical-align: middle; margin-left: 5px; font-size:16px; font-family:Verdana;}
111
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users{display: inline-block;}
112
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users i.fa-ellipsis-h{padding-left: 5px; color: #777777;}
113
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users.wpd-tooltip-right wpdtip:after{top: 93%;}
114
-
115
- /* Social Login */
116
- #wpcomm .wpdiscuz-social-login{padding: 2px 3px 0px 3px; line-height: 20px; vertical-align: baseline;}
117
- #wpcomm .wpdiscuz-social-login .wpdiscuz-connect-with{float: left; line-height: 22px; font-size: 14px; margin: 0px 5px;}
118
- #wpcomm .wpdiscuz-social-login .wpdiscuz-login-button{float: left; margin-left: 5px; width: 30px; height: 22px; text-align: center; font-size: 12px; line-height: 23px; color: #fff; cursor: pointer;}
119
- #wpcomm .wpdiscuz-social-login .wpdiscuz-login-button:hover{font-size: 14px;}
120
- #wpcomm .wpdiscuz-social-login .wpdiscuz-social-login-spinner{margin-left: 5px; width: 25px; height: 25px; text-align: center;font-size: 15px;display: none; float: left;}
121
- #wpcomm .wpdiscuz-social-login .wpdiscuz-social-login-error{margin-left: 5px; text-align: left ;font-size: 15px; color: #D84538;}
122
- #wpcomm .wpdiscuz-social-login .wpdiscuz-facebook-button{background-color: #4267B2;}
123
- #wpcomm .wpdiscuz-social-login .wpdiscuz-twitter-button{background-color: #1DA1F2;}
124
- #wpcomm .wpdiscuz-social-login .wpdiscuz-google-button{background-color: #D84538;}
125
- #wpcomm .wpdiscuz-social-login .wpdiscuz-ok-button{background-color: #EE7808;}
126
- #wpcomm .wpdiscuz-social-login .wpdiscuz-vk-button{background-color: #4A76A8;}
127
-
128
- #wpcomm .wpd-social-login-agreement{width: 100%;margin-top: 15px;margin-bottom: 20px;font-size: 12px;padding: 20px 30px 10px 30px;background-color: #F8F8F8;border: 1px dotted #dddddd;clear: both;line-height: normal;}
129
- #wpcomm .wpd-social-login-agreement .wpd-agreement-title{font-weight: bold;margin-bottom: 5px;font-size: 15px;}
130
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button{text-transform: uppercase;padding: 3px 20px;margin: 5px 0px 0px 15px;cursor: pointer;font-size: 12px;line-height: 20px;color:#00B38F;display: inline-block;}
131
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-agree{border: 1px dotted #00B38F;color: #00B38F;}
132
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-agree:hover{color: #FFFFFF;background:#00B38F;}
133
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-disagree{border: 1px dotted #ff312f;color: #ff312f;}
134
- #wpcomm .wpd-social-login-agreement .wpd-agreement-button.wpd-agreement-button-disagree:hover{color: #FFFFFF;background:#ff312f;}
135
- #wpcomm .wpd-social-login-agreement .wpd-agreement-buttons{margin-top: 4px;}
136
- #wpcomm .wpd-social-login-agreement .wpd-agreement-buttons-left{float: left;}
137
- #wpcomm .wpd-social-login-agreement .wpd-agreement-buttons-right{float: right;}
138
- #wpcomm .wc-secondary-forms-social-content .wpdiscuz-ftb-right .wpdiscuz-social-login{float: right;}
139
- #wpcomm .wc-secondary-forms-social-content .wpdiscuz-ftb-right .wpdiscuz-social-login {padding: 2px 3px 10px 3px;line-height: 20px;vertical-align: baseline;}
140
- #wpcomm .wc-secondary-forms-social-content .wpd-social-login-agreement{padding: 20px;}
141
-
142
- /* author */
143
- #wpcomm .wc-comment-author{font-size:18px; float:left; white-space:normal; text-align:left; padding:7px 0px 2px 9px; }
144
- #wpcomm .wc-reply .wc-comment-author{font-size:15px; float:left; white-space:normal; text-align:left; padding:3px 0px 2px 10px; }
145
- #wpcomm .wc-comment-author a{font-size:18px; text-decoration:none; line-height:30px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline;}
146
- #wpcomm .wc-reply .wc-comment-author a{font-size:14px; text-decoration:none; line-height:18px; }
147
- #wpcomm .wc-comment-label{color:#fff; width:100%; padding:0px 0px 0px 0px; font-size:12px; margin:8px auto; text-align:center; display:table; line-height:16px; -webkit-box-shadow:0px 4px 7px -5px rgba(219,219,219,1); -moz-box-shadow:0px 4px 7px -5px rgba(219,219,219,1); box-shadow:0px 4px 7px -5px rgba(219,219,219,1); }
148
- #wpcomm .wc-comment-label span{ display:inline-block; padding:3px 0px 7px 0px; font-size:12px; }
149
- #wpcomm .wc-reply .wc-comment-label span{ font-size:11px; }
150
- #wpcomm .wc-comment-date{font-size:12px; color:#999; text-align:left; white-space:nowrap; line-height:23px}
151
- #wpcomm .wc-reply .wc-comment-date{font-size:11px; }
152
- #wpcomm .wc-comment-date i{padding-right:5px; }
153
- #wpcomm .wc-follow-link{ display: inline-block; font-size: 15px; line-height: 30px; padding: 0px 10px; cursor: pointer;}
154
- #wpcomm .wc-reply .wc-follow-link{ line-height: 16px; font-size: 13px;}
155
- #wpcomm .wc-follow-link i{vertical-align: bottom;}
156
-
157
- /* content */
158
- #wpcomm .wc-comment-right .wc-comment-text{text-align:left; padding:5px 10px; min-height: 50px; font-size: 14px; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word}
159
- #wpcomm .wc-reply .wc-comment-right .wc-comment-text,
160
- #wpcomm .wc-reply .wc-comment-right .wc-comment-text *{line-height:20px; font-size: 13px; }
161
- #wpcomm .wc-comment-right .wc-comment-text img{max-width:99%!important; height:auto; max-height:1000px; }
162
- #wpcomm .wc-comment-right .wc-comment-text iframe{max-width:99%!important; }
163
- #wpcomm .wc-comment-right .wc-comment-text p{margin-bottom:10px}
164
- #wpcomm .wc-comment-right .wc-comment-text ol li,#wpcomm .wc-comment-text ul li{margin-left:20px}
165
- #wpcomm .wc-comment-right .wc-comment-text blockquote{font-size:inherit; line-height:inherit; margin-bottom:1em; margin-left:1em; padding-left:1em}
166
-
167
- /* footer */
168
- #wpcomm .wc-comment-footer{font-size:13px; font-weight:normal; color:#999; padding:2px 10px 10px 10px; margin-top:0px; min-height:28px; text-align:left}
169
- #wpcomm .wc-reply .wc-comment-footer{padding-top:0px; }
170
- #wpcomm .wc-comment-footer .wc-footer-left{ float:left; display:block; }
171
- #wpcomm .wc-comment-footer .wc-footer-right{ float:right; display:block; margin-top:0px; line-height:22px; }
172
- #wpcomm .wc-comment-footer .wc-footer-right .wc-comment-date{ display:inline-block; margin-left:10px; }
173
- #wpcomm .wc-comment-footer .wc-footer-right .wc-toggle{float:right; text-align:right; padding-right:0; margin-right:0; margin-left:10px; cursor:pointer; font-size:13px; white-space:nowrap; line-height:24px}
174
- #wpcomm .wc-comment-footer .wc-vote-link{display:inline-block; text-align:center; font-size:13px; height:auto; padding:2px 4px; line-height:17px; cursor:pointer; font-weight: 300; }
175
- #wpcomm .wc-comment-footer .wc-vote-result{display:inline-block; text-align:center; font-size:15px; height:auto; padding:2px 3px; line-height:17px; }
176
- #wpcomm .wc-comment-footer .wc-vote-result.wc-vote-result-like{padding:2px 4px 2px 4px; border-radius:0%; border-right:none; margin-left:1px; }
177
- #wpcomm .wc-comment-footer .wc-vote-result.wc-positive{border-right:none; text-align:center; margin-left:2px; }
178
- #wpcomm .wc-comment-footer .wc-vote-result.wc-vote-result-dislike{padding:2px 4px 2px 4px; border-radius:0%;margin-right:1px; }
179
- #wpcomm .wc-comment-footer .wc-vote-result.wc-negative{border-left:none; text-align:center; margin-right:2px; }
180
- #wpcomm .wc-comment-footer .wc-vote-result.wc-vote-result-like{ border-right: 1px solid #CCCCCC; margin-right: 4px; padding-right: 8px;}
181
- #wpcomm .wc-comment-footer .wc-vote-link.wc-down i.fa-thumbs-down{-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; -webkit-transform: scale(-1, 1); -ms-transform: scale(-1, 1); transform: scale(-1, 1);}
182
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-thumbs-up,
183
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-thumbs-down{font-size: 16px;}
184
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-thumbs-up,
185
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-thumbs-down{font-size: 14px;}
186
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-smile,
187
- #wpcomm .wc-comment-footer .wc-vote-link i.fa-frown{font-size: 20px;}
188
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-smile,
189
- #wpcomm .wc-reply .wc-comment-footer .wc-vote-link i.fa-frown{font-size: 16px;}
190
- #wpcomm .wc-footer-left .wc-cta-button,
191
- #wpcomm .wc-footer-left .wc-cta-button-x{ font-size:12px; cursor:pointer; text-transform:none; height:auto; padding: 3px 8px 3px 8px; line-height:18px; display:inline-block; margin-right:0px; }
192
- #wpcomm .wc-footer-left .wc-cta-button-x{ display: none; }
193
- #wpcomm .wc-footer-left .wc-reply-button{ margin-left:10px; margin-right:10px; }
194
- #wpcomm .wc-footer-left .wc-reply-button i{display: inline-block; font-size: 13px; padding-right: 2px;}
195
- #wpcomm .wc-reply .wc-footer-left .wc-reply-button i{display: none;}
196
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button,
197
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button-x{ font-size: 11px; padding: 2px 8px 2px 8px; line-height: 16px; }
198
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button i{ font-size: 12px; }
199
- #wpcomm .wc-reply .wc-footer-left .wc-cta-button-x{ display: none; }
200
- #wpcomm .wpdiscuz-children {display:inline-block; padding-left:5px; }
201
- #wpcomm .wc-toggle i.fa-chevron-down{display:inline-block; padding-left:5px; }
202
- #wpcomm .wc-toggle i.fa-chevron-up{display:inline-block; padding-left:5px; }
203
- #wpcomm .wc-share-link.wpf-cta.wpd-tooltip-right:hover{color: inherit!important; background: inherit!important;}
204
-
205
- /* COMMENT FORM */
206
- #wpcomm form {margin:0!important; padding:0!important; background:0; border:0; width:auto!important}
207
- #wpcomm form div{margin:0; }
208
- #wpcomm form .wpdiscuz-item{display:block; height:auto; border-radius:0; box-shadow:none; }
209
- #wpcomm .wc-form-wrapper{padding: 0px 1px 0px 0px; margin-top:0;}
210
- #wpcomm .wc-comment .wc-form-wrapper{margin:10px 0px 20px 99px; clear:both; padding: 5px 0px 10px 0px; }
211
- #wpcomm .wc-comment .wc-reply .wc-form-wrapper.wc-secondary-form-wrapper{margin-left: 0px;}
212
- #wpcomm .wc_comm_form .wc-field-comment{clear:both; margin:5px auto 1px auto;}
213
- #wpcomm .wc_comm_form .wc-field-comment .wc-field-avatararea{float:left;}
214
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-comment .wc-field-avatararea{width:40px; margin: 17px 19px; float:left; position: absolute; z-index: 10;}
215
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-comment .wpdiscuz-quicktags-enabled .wc-field-avatararea{margin: 50px 19px 17px 23px;}
216
- #wpcomm .wc_comm_form.wc_secondary_form{clear:both}
217
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-comment .wc-field-avatararea{ display: none;}
218
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-comment .wc-field-textarea {margin-left: 0px; }
219
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-textarea textarea{height:50px; min-height:50px!important}
220
- #wpcomm .wc-form-footer{display:none; margin-left:0px; margin-bottom: 0px; border-bottom: 1px solid #ddd; padding-bottom: 20px; } /*94*/
221
- #wpcomm .wc-secondary-form-wrapper .wc-form-footer{display:none; margin-left:0px; border-bottom: none;} /*63*/
222
- #wpcomm.wpdiscuz_no_avatar .wc-form-footer{margin-left:0}
223
- #wpcomm .wc-field-submit .wc_comm_submit{width: auto; display: inline-block;}
224
-
225
- /* COMMENT EDIT FORM */
226
- #wpcomm .wc_cancel_edit{display:none}
227
- #wpcomm .wc_save_wrap{text-align:right; }
228
- #wpcomm .wc-comment-right textarea.wc_edit_comment{height:auto; font-size:13px; width:99%; overflow-y:hidden; margin:5px 0px; }
229
- #wpcomm table.editcomment{ width:100%; border:none; }
230
- #wpcomm table.editcomment td.first{ width:35%; }
231
- #wpcomm table.editcomment .wpdiscuz-item.wpd-field-group{ height:auto; border:none; }
232
- #wpcomm table.editcomment td, #wpcomm table.editcomment th{ padding:2px 5px 5px 5px; border-top:none; border-bottom:1px solid #eee; border-left:none; border-right:none; text-align:left; font-size:13px; }
233
- #wpcomm table.editcomment input[type=checkbox].wpd-field,
234
- #wpcomm table.editcomment input[type=radio].wpd-field { width:auto; height:auto; display:inline-block; padding:0px; line-height:13px; vertical-align:baseline; margin:0px 2px 0px 0px; }
235
- #wpcomm table.editcomment label.wpd-field-label{ width:auto; clear:both; height:auto; display:inline-block; float:none; padding:0px; line-height:20px; font-size:13px; margin:0px 15px 0px 0px; vertical-align:top; }
236
- .wpdiscuz-edit-form-wrap{ display:block; margin:10px; }
237
- .wpd-cursor-pointer{cursor: pointer; }
238
- #wpcomm .wpdiscuz-item input[type=checkbox]:focus{line-height: 1; }
239
- .wpdiscuz-post-rating-wrap.wpd-custom-field{display: flex; flex-wrap: wrap; }
240
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 25%; margin-bottom: 10px; }
241
- #wpcomm #wpdiscuz-edit-form .wpdiscuz-textarea-wrap{padding:0; margin:0; background:transparent; position: relative; border: none; }
242
-
243
- /* COMMENT FORM | TEXTAREA */
244
- #wpcomm .wc-field-textarea{margin-left:0px; position:relative; margin-bottom:4px; }
245
- #wpcomm .wc-field-textarea textarea{display:inline; width:100%; height:75px; min-height:75px!important; border:none!important; resize:none; padding:10px; box-sizing:border-box; border-radius:0; font-size:14px; color:#777; line-height:20px; }
246
- #wpcomm .wc-field-textarea .commentTextMaxLength{display:none; font-size:11px; color:#aaa; position:absolute; top:3px; right:5px}
247
- #wpcomm .wc-field-textarea .wpdiscuz-quicktags-enabled .commentTextMaxLength{top:39px}
248
- #wpcomm .wc-field-textarea .commentTextMaxLength.left10{color:#f00}
249
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap {padding:0; margin:0; background:transparent; position: relative; }
250
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap textarea {margin-bottom : 0 !important;}
251
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea {margin-bottom : 0 !important; padding: 25px 78px 0px 85px; font-size: 17px;}
252
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap.wpdiscuz-quicktags-enabled textarea {padding: 20px 78px 0px 85px;}
253
- #wpcomm.wpdiscuz_no_avatar .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea {margin-bottom : 0 !important; padding: 15px;}
254
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-wrap textarea:focus{border: none!important; box-shadow: none;}
255
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot{border:0; padding:3px 0; width:97%; text-align:right; line-height:14px; margin:0 auto; border-top:1px dotted #ddd}
256
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot .wpdiscuz-button{line-height:14px; display:inline-block; min-width:20px; width:auto; height:20px; padding:0; margin:2px 3px; cursor:pointer; border:0; float:none}
257
- #wpcomm .wc-field-textarea .wpdiscuz-textarea-foot label{float:none; display:inline-block}
258
- #wpcomm .wc-field-textarea .quicktags-toolbar{padding:0 3px 0 3px; text-align:left; min-height:30px}
259
- #wpcomm .wc-field-textarea .ed_button{width:auto; padding:3px; border:none; margin:5px 2px 8px 2px; background:#f7f7f7 none repeat scroll 0 0; box-shadow:0 1px 1px #cdcdcd; min-width:5%; color:#555; font-size:13px; line-height:16px; font-weight:normal; text-transform:lowercase; vertical-align:top; display:inline-block; font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans",sans-serif}
260
- #wpcomm .wc-field-textarea .ed_button:hover{border: none;}
261
- #wpcomm .wc-field-textarea input[type="button"].ed_button:focus,#wpcomm .wc-form-wrapper input[type="button"].ed_button:hover{background:#ededed!important}
262
-
263
- /* COMMENT FORM | BUTTONS */
264
- #wpcomm button,
265
- #wpcomm input[type="button"],
266
- #wpcomm input[type="reset"],
267
- #wpcomm input[type="submit"]{ vertical-align: bottom; border-radius: 0px; font-family: sans-serif; font-weight: normal; letter-spacing: normal; line-height: 1em; padding: 8px 20px; margin:0px; box-shadow: none; text-transform: none; font-size: 14px; }
268
- #wpcomm button:hover,
269
- #wpcomm button:focus,
270
- #wpcomm input[type="button"]:hover,
271
- #wpcomm input[type="button"]:focus,
272
- #wpcomm input[type="reset"]:hover,
273
- #wpcomm input[type="reset"]:focus,
274
- #wpcomm input[type="submit"]:hover,
275
- #wpcomm input[type="submit"]:focus{ opacity: 1; }
276
- #wpcomm .wc-field-submit{padding:15px 0 0 5px; clear:left}
277
- #wpcomm.wpdiscuz_auth .wc-field-submit{padding:7px 0 0 5px; clear:left}
278
- #wpcomm .wc-load-more-submit-wrap{width:100%; text-align:center; margin-bottom:20px; margin-top:25px}
279
- #wpcomm .wc-load-more-submit{width:auto!important; font-size: 14px; padding:10px 30px; text-align:center; cursor:pointer}
280
- #wpcomm .wpd_label, #wpcomm .wpd_label{margin:0px; padding: 0px;display:inline-block;}
281
- #wpcomm .wpd_label, #wpcomm .wpd_label span{display: inline-block}
282
- #wpcomm .wpd_label input[type="checkbox"].wpd_label__checkbox{display:none; }
283
- #wpcomm .wpd_label__checkbox { display: none; }
284
- #wpcomm .wpd_label__check { display: inline-block; border: 0px; border-radius: 0; vertical-align: middle; cursor: pointer; text-align: center; margin:0px 3px 0px 0px; }
285
- #wpcomm .wpd_label__check i.wpdicon{font-size: 15px; line-height: 21px; padding: 4px 5px; width: 34px; margin: 0px; }
286
- #wpcomm .wpd_label__check i.wpdicon-on{display: none; color: #00b38f; border: 1px solid #b5e5db; background-color: #F6FFFD; }
287
- #wpcomm .wpd_label__check i.wpdicon-off{display: inline-block; color: #aaaaaa; border: 1px solid #dddddd; background-color: #F9F9F9; }
288
- #wpcomm .wpd_label__checkbox:checked + .wpd_label__text .wpd_label__check .wpdicon-on{display: inline-block; }
289
- #wpcomm .wpd_label__checkbox:checked + .wpd_label__text .wpd_label__check .wpdicon-off{display:none; }
290
- #wpcomm .wpd_label__check i.wpdicon-off.fa-unlock-alt, #wpcomm .wpd_label__check i.wpdicon-on.fa-lock{ font-size: 15px; }
291
-
292
- /* COMMENT FORM | CAPTCHA */
293
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label{float:right; display:block; width:111px; text-align:right; padding:0; line-height:30px; }
294
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label .wc_captcha_img{display:inline!important; border:0; padding:0; margin:0; vertical-align:middle; box-sizing:content-box; width:80px; height:26px; border-bottom:2px solid #e6e6e6}
295
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label a{margin:0; display:inline; padding:0; text-decoration:none; height:auto; width:auto}
296
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-input{float:left; display:block; min-width:30px; width:calc(100% - 112px); line-height:30px; }
297
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-input input[type="text"]{width:100%; padding:3px 5px; height:28px; }
298
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label .wc_captcha_refresh_img{cursor:pointer}
299
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label .wc_captcha_refresh_img img{max-width:16px!important; max-height:16px!important; box-sizing:content-box; margin:0; display:inline!important; background-color:#e6e6e6; padding:5px; border:1px solid #e4e4e4; border-left:1px solid #d9d9d9; vertical-align:middle; }
300
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-bin-captcha{background: #f5f5f5; padding: 2px 15px; font-size: 11px; color: #aaa; line-height: 28px; text-align: center;}
301
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-bin-captcha i{margin-right: 5px}
302
-
303
- /* COMMENT FORM | ROWS and COLS */
304
- #wpcomm .wpd-form-row .wpd-form-col-full{width:100%; float:none; margin:0; text-align:left; padding:0; }
305
- #wpcomm .wpd-form-row .wpd-form-col-left{width:49%; float:left; margin:0; text-align:left; padding:0; }
306
- #wpcomm .wpd-form-row .wpd-form-col-right{width:49%; float:right; margin:0; text-align:right; padding:0; }
307
- #wpcomm .wpd-form-row .wpd-form-col-full .wpdiscuz-item{text-align:left; }
308
- #wpcomm .wpd-form-row .wpd-form-col-left .wpdiscuz-item{text-align:left; }
309
- #wpcomm .wpd-form-row .wpd-form-col-right .wpdiscuz-item{text-align:right; }
310
-
311
- /* COMMENT FORM | FIELDS */
312
- #wpcomm .wpdiscuz-item label.wpd-field-label{ float:none; }
313
- #wpcomm .wpd-form-row .wpdiscuz-item{width:100%; vertical-align:baseline; padding:5px 0px 3px 0px; position:relative; }
314
- #wpcomm .wpd-form-row .wpd-field{width:100%; line-height:20px; color:#777777; display:inline-block; float:none; clear:both; margin:0; box-sizing:border-box; padding:3px 5px 3px 5px; font-size:14px; border-radius:0; vertical-align:baseline; }
315
- #wpcomm .wpd-form-row .wpd-has-icon .wpd-field{padding-left:30px; }
316
- #wpcomm .wpd-form-row .wpd-has-desc .wpd-field{padding-right:30px; }
317
- #wpcomm .wpd-form-row .wpdiscuz-item .wpd-field-icon {display:inline-block; font-size:17px; line-height:17px; opacity:0.3; padding:0; margin:0px; position:absolute; top:12px; left:8px; width:20px; text-align:left; }
318
- #wpcomm .wpd-form-row .wpdiscuz-item .wpd-field-desc{display:inline-block; font-size:17px; line-height:17px; opacity:1; margin:0px; position:absolute; top:12px; right:8px; width:20px; text-align:right; border-left:1px solid #ccc; color:#aaa; padding:0px 5px; cursor:pointer; }
319
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="text"],
320
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="email"],
321
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="url"],
322
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="color"],
323
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="date"],
324
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="datetime"],
325
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="datetime-local"],
326
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="month"],
327
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="number"],
328
- #wpcomm .wpd-form-row .wpdiscuz-item input[type="time"]{height:32px; }
329
- #wpcomm .wpd-form-row .wpdiscuz-item textarea{height:72px; }
330
- .wpdiscuz_select{background:url("data:image/png; base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAANCAYAAAC+ct6XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjBBRUQ1QTQ1QzkxMTFFMDlDNDdEQzgyNUE1RjI4MTEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjBBRUQ1QTU1QzkxMTFFMDlDNDdEQzgyNUE1RjI4MTEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGMEFFRDVBMjVDOTExMUUwOUM0N0RDODI1QTVGMjgxMSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGMEFFRDVBMzVDOTExMUUwOUM0N0RDODI1QTVGMjgxMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pk5mU4QAAACUSURBVHjaYmRgYJD6////MwY6AyaGAQIspCieM2cOjKkIxCFA3A0TSElJoZ3FUCANxAeAWA6IOYG4iR5BjWwpCDQCcSnNgxoIVJCDFwnwA/FHWlp8EIpHSKoGgiggLkITewrEcbQO6mVAbAbE+VD+a3IsJTc7FQAxDxD7AbEzEF+jR1DDywtoCr9DbhwzDlRZDRBgACYqHJO9bkklAAAAAElFTkSuQmCC") #fefefe no-repeat scroll right center!important; border-radius:0; border:1px solid lightgray!important; box-shadow:none!important; height:28px!important; padding:3px 22px 3px 3px!important; font-size:13px!important; -moz-appearance:none!important; -webkit-appearance:none!important; outline:0 none!important; text-indent:.01px; text-overflow:""!important; width:100%!important; box-sizing:border-box!important; line-height:20px!important; clear:both; float:none!important; margin:0!important}
331
- #wpcomm .wc-field-submit{text-align:right; }
332
- #wpcomm .wc-field-submit input[type="button"]{margin:1px; border:#ddd 1px solid; font-size:13px; line-height:16px; padding:6px 15px; clear:both; float:none}
333
- #wpcomm .wpd-item-wrap{ text-align:left; }
334
- #wpcomm .wpd-item{ text-align:left; }
335
- #wpcomm .wpd-form-col-left .wpd-field-group .wpd-field-group-title, #wpcomm .wpd-form-col-right .wpd-field-group .wpd-field-group-title, #wpcomm .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ font-size:13px; text-align:left; line-height:20px; padding: 5px 0; }
336
- #wpcomm .wpd-form-col-left .wpd-has-desc .wpd-field-group-title, #wpcomm .wpd-form-col-right .wpd-has-desc .wpd-field-group-title, #wpcomm .wpd-form-col-full .wpd-has-desc .wpd-field-group-title{ padding-right:35px; }
337
- #wpcomm .wc-comment-right .wpd-top-custom-fields{ padding:5px 10px 15px 10px; }
338
- #wpcomm .wc-comment-right .wpd-bottom-custom-fields{ padding:5px 10px; margin-bottom:20px; }
339
-
340
- /* COMMENT FORM | CHECKBOX / RADIO */
341
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single{ border-bottom:none; text-align:right; }
342
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single .wpd-item{ margin:0px; padding:0px; }
343
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single .wpd-field{ height:20px; vertical-align:top; outline: none; }
344
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single .wpd-field-label{ height:20px; vertical-align:top; }
345
- #wpcomm .wpdiscuz-item .wpd-field-label a{vertical-align: inherit; display: inline;}
346
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-single{ border-bottom:none; }
347
- #wpcomm .wpd-form-col-left .wpd-field-group.wpd-field-single .wpd-field-group-title, #wpcomm .wpd-form-col-right .wpd-field-group.wpd-field-single .wpd-field-group-title{ font-size:inherit; text-align:right; line-height:inherit; height:25px; }
348
- #wpcomm .wpdiscuz-item.wpd-field-radio, #wpcomm .wpdiscuz-item.wpd-field-checkbox{ border-bottom:1px dotted #ccc; padding-bottom:12px; }
349
- #wpcomm .wpd-form-col-left div:last-of-type, #wpcomm .wpd-form-col-right div:last-of-type{ border-bottom:none; }
350
- #wpcomm .wpd-field-radio .wpd-item, #wpcomm .wpd-field-checkbox .wpd-item{ display:inline-block; padding:1px; margin:1px 0px; min-width:60px; }
351
- #wpcomm .wpd-field-radio .wpd-field, #wpcomm .wpd-field-checkbox .wpd-field { width:auto; height:25px; display:inline-block; float:left; padding:0px; line-height:20px; vertical-align:baseline; margin:0px 6px 0px 0px; }
352
- #wpcomm .wpd-field-radio .wpd-field-label, #wpcomm .wpd-field-checkbox .wpd-field-label{ width:auto; height:22px; display:inline; float:none; padding:0px; line-height:20px; font-size:12px; margin:0px; vertical-align:middle; }
353
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-agreement,
354
- #wpcomm .wpdiscuz-item.wpd-field-checkbox.wpd-field-cookies-consent{padding-bottom:0px;}
355
-
356
- /* COMMENT FORM | SELECT */
357
- #wpcomm .wpd-form-row .wpd-form-col-right .wpdiscuz-item.wpd-field-select{ text-align:left; }
358
- #wpcomm .wpdiscuz-item.wpd-field-select select.wpdiscuz_select{ height: 32px !important; margin: 5px 0 0 !important; max-width:400px!important; }
359
- #wpcomm .wpdiscuz-item.wpd-field-select.wpd-has-desc select.wpdiscuz_select{ width:calc(100% - 40px)!important; }
360
- #wpcomm .wpdiscuz-item.wpd-field-select .wpd-field-group-title { padding-top: 12px; }
361
- #wpcomm .wpdiscuz-item.wpd-field-select {padding: 7px 0 3px; }
362
- #wpcomm .wpdiscuz-item.wpd-field-select.wpd-has-desc .wpd-field-desc{ top:18px; }
363
- .wpd-custom-field{ display:table; width:100%; padding:1px 0px; line-height:20px; }
364
- .wpd-custom-field .fa-star{ font-size:1.2em; }
365
- .wpd-cf-label{ background: #f9f9f9; box-sizing: border-box!important; display:table-cell; font-size: 13px; opacity: 1; padding: 5px 10px; vertical-align: top; width: 29%; border-bottom:1px #f0f0f0 solid; }
366
- .wpd-cf-value{ display:table-cell; border-bottom:1px #f0f0f0 solid; width:69%; box-sizing:border-box!important; font-size:13px; vertical-align:top; opacity:0.7; padding: 5px 10px; }
367
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-label{ background:transparent; border:none; padding: 2px 10px 2px 2px; }
368
- #wpcomm .wpd-top-custom-fields .wpd-custom-field.wpd-cf-rating .wpd-cf-value{font-size: 16px; border-bottom:none; padding: 1px 10px; }
369
-
370
- /* COMMENT FORM | RATING */
371
- #wpcomm .wpdiscuz-item.wpd-field-group.wpd-field-rating{ border-bottom:1px dotted #ddd; height:77px; margin-bottom:0px; }
372
- #wpcomm .wpdiscuz-item .wpdiscuz-rating {border: none; float: left; margin:0px; padding:5px 0px 5px 1px; margin-left:-5px; }
373
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > input { visibility:visible;opacity:0; position:absolute; z-index: -1;}
374
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label:before { margin: 3px; line-height: 18px; font-size: 1.4em; cursor:pointer; }
375
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > .half:before {position: absolute; cursor:pointer; }
376
- #wpcomm .wpdiscuz-item .wpdiscuz-rating > label { float: right; }
377
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc{ right:0px; top:0px; position:relative; font-size:14px; margin-left:5px; padding: 0 7px; }
378
- #wpcomm .wpd-form-col-full .wpdiscuz-item.wpd-field-rating.wpd-has-desc .wpd-field-desc i.fa{ font-size:17px; }
379
- #wpcomm .wpd-form-col-full .wpd-field-group .wpd-field-group-title{ display:inline-block; vertical-align:baseline; padding:0px 0px 2px 0px; margin-top:-2px; padding-right: 35px; }
380
- #wpcomm .wpd-form-col-full .wpdiscuz-item .wpdiscuz-rating{ padding:0px 6px 0px 0px; vertical-align:middle; line-height: 14px; }
381
- #wpcomm .wpd-form-col-full .wpd-item-wrap{ display:inline-block; float:left; padding-right:7px; vertical-align:baseline; padding:0px 1px 1px 1px; }
382
- .wpdiscuz-stars-label{ line-height:20px; padding:10px 0px 2px 3px; font-size:14px; }
383
- .wpdiscuz-stars-wrapper{ display:block; }
384
- .wpdiscuz-stars-wrapper-inner{ position: absolute; }
385
- .wpdiscuz-activ-stars{ position: absolute; display: flex; font-size: 22px; top: 0; left:0; }
386
- .wpdiscuz-pasiv-stars{ font-size: 22px; display: flex; }
387
- .wpdiscuz-activ-stars{ overflow:hidden; }
388
- .wpdiscuz-pasiv-stars i.wpdiscuz-pasiv-star, .wpdiscuz-activ-stars i.wpdiscuz-activ-star{ padding:0px 2px; font-size:20px; }
389
-
390
- /* COMMENT FORM | DATE */
391
- #wpcomm .wpd-form-row .wpd-field-date { height:77px; }
392
- #wpcomm .wpd-form-row .wpd-field-date .wpd-field-title{font-size: 13px; line-height: 20px; padding: 5px 0 8px 0px; text-align: left; padding-bottom: 8px; }
393
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field{padding-left:5px; }
394
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-desc .wpd-field{padding-right:5px; }
395
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field-icon{left:2px; top: 10px; }
396
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field-desc{top: 10px; }
397
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-icon .wpd-field-title{padding-left:26px; }
398
- #wpcomm .wpd-form-row .wpd-field-date.wpd-has-desc .wpd-field-title{padding-left:26px; }
399
-
400
- /* COMMENT FORM | COLOR */
401
- #wpcomm .wpd-form-row .wpd-field-color { height:77px; }
402
- #wpcomm .wpd-form-row .wpd-field-color .wpd-field-title{font-size: 13px; line-height: 20px; padding: 5px 0 8px 0px; text-align: left; padding-bottom: 8px; }
403
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field{padding-left:5px; }
404
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-desc .wpd-field{padding-right:5px; }
405
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field-icon{left:2px; top: 10px; }
406
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field-desc{top: 10px; }
407
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-icon .wpd-field-title{padding-left:26px; }
408
- #wpcomm .wpd-form-row .wpd-field-color.wpd-has-desc .wpd-field-title{padding-left:26px; }
409
-
410
- /* COMMENT FORM | SPOILER */
411
- #wpcomm .wpdiscuz-spoiler-wrap{background-color: #eee; border: 1px solid #555; border-style: dashed; margin: 5px 0; }
412
- #wpcomm .wpdiscuz-spoiler-wrap .wpdiscuz-spoiler{padding: 5px; cursor: pointer; }
413
- #wpcomm .wpdiscuz-spoiler-wrap .wpdiscuz-spoiler .fas{margin: 0 5px; }
414
- #wpcomm .wpdiscuz-spoiler-wrap .wpdiscuz-spoiler-content{display: none; font-style: italic; padding: 5px; }
415
-
416
- /* SOCIAL LOGIN BUTTONS */
417
- #wpcomm .wc_social_plugin_wrapper{width:auto}
418
- #wpcomm .wp-social-login-widget{margin-bottom:15px}
419
- #wpcomm .wc_social_plugin_wrapper .wp-social-login-connect-with{float:left; font-size:13px; padding:2px 7px 0 0; text-transform:uppercase}
420
- #wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list{padding:1px; text-align:left; margin-bottom:-10px}
421
- #wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list{padding:1px; text-align:right}
422
- #wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list img{width:20px; height:20px; float:none; display:inline; border:0}
423
- #wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list img{width:24px; height:24px; float:none; display:inline; border:0}
424
- #wpcomm .wc_social_plugin_wrapper .social_connect_ui{padding:0; clear:both; margin:0; margin-top:-20px; margin-bottom:-10px}
425
- #wpcomm .wc_social_plugin_wrapper .comment-form-social-connect{display:inherit; padding:0; margin:0; float:left; line-height:35px; padding-right:10px}
426
- #wpcomm .wc_social_plugin_wrapper .social_connect_form img{width:24px; height:24px; float:none; display:inline; border:0}
427
- #wpcomm .wc_social_plugin_wrapper .social_connect_form{float:left; line-height:35px; text-align:left; vertical-align:middle}
428
- #wpcomm .wc_social_plugin_wrapper .comment-form-social-connect label{display:inherit; padding:0; margin:0; font-style:normal; font-weight:normal; border:0; font-size:13px; text-transform:uppercase}
429
- #social_connect_facebook_auth,#social_connect_twitter_auth,#social_connect_google_auth,#social_connect_google_plus_auth,#social_connect_yahoo_auth,#social_connect_wordpress_auth{clear:both; padding:0; margin:0}
430
- #wpcomm .wc-secondary-forms-social-content .social_connect_ui{padding:0; clear:both; margin:0; text-align:right}
431
- #wpcomm .wc-secondary-forms-social-content .comment-form-social-connect{display:inherit; padding:0; margin:0; float:left; line-height:35px; padding-right:10px}
432
- #wpcomm .wc-secondary-forms-social-content .social_connect_form img{width:24px; height:24px; float:none; display:inline; border:0}
433
- #wpcomm .wc-secondary-forms-social-content .social_connect_form{float:left; width:100%; text-align:right; padding:0 0 5px 0; line-height:20px; vertical-align:middle}
434
- #wpcomm .wc-secondary-forms-social-content .comment-form-social-connect label{display:inherit; padding:0; margin:0; font-style:normal; font-weight:normal; border:0; font-size:13px; text-transform:uppercase}
435
-
436
- /* TOOLTIP */
437
- #wpcomm div.wpd-field-desc {position: relative; display: inline; }
438
- #wpcomm div.wpd-field-desc span {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; left: -150px; }
439
- #wpcomm div.wpd-field-desc span:after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -4px; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; }
440
- #wpcomm div:hover.wpd-field-desc span {visibility: visible; opacity: 1; bottom: 34px; left: 50%; margin-left: -100px; z-index: 999999; }
441
- #wpcomm div:hover.wpd-tooltip {position: relative; }
442
-
443
- #wpcomm span.wpd-field-desc {position: relative; display: inline; }
444
- #wpcomm span.wpd-field-desc span {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; left: -150px; }
445
- #wpcomm span.wpd-field-desc span:after { content: ''; position: absolute; top: 100%; left: 50%; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; }
446
- #wpcomm span:hover.wpd-field-desc span {visibility: visible; opacity: 1; bottom: 38px; left: 50%; margin-left: -105px; z-index: 999999; }
447
-
448
- #wpcomm div.wpd-tooltip {position: relative; }
449
- #wpcomm div.wpd-tooltip wpdtip {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; left: -100px;}
450
- #wpcomm div.wpd-tooltip wpdtip:after { content: ''; left: 48%; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; }
451
- #wpcomm div:hover.wpd-tooltip wpdtip {visibility: visible; opacity: 1; bottom: 38px; z-index: 999999; left: -100px; }
452
-
453
- #wpcomm div:hover.wpd-tooltip-right, #wpcomm span:hover.wpd-tooltip-right {position: relative; }
454
- #wpcomm div.wpd-tooltip-right wpdtip {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; right: 210px; }
455
- #wpcomm div.wpd-tooltip-right wpdtip:after { content: ''; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; right: 18px; }
456
- #wpcomm div:hover.wpd-tooltip-right wpdtip {visibility: visible; opacity: 1; bottom: 40px; z-index: 999999; right: -10px;}
457
-
458
- #wpcomm div:hover.wpd-tooltip-left {position: relative; }
459
- #wpcomm div.wpd-tooltip-left wpdtip {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; left: -100px; }
460
- #wpcomm div.wpd-tooltip-left wpdtip:after { content: ''; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; left: 10px; }
461
- #wpcomm div:hover.wpd-tooltip-left wpdtip {visibility: visible; opacity: 1; bottom: 40px; z-index: 999999; left: -10px;}
462
-
463
-
464
- #wpcomm div.wpdiscuz-user-settings.wpd-tooltip-left wpdtip:after{left: 20px;}
465
- #wpcomm div:hover.wpdiscuz-user-settings.wpd-tooltip-left wpdtip {bottom: 32px;}
466
- #wpcomm .wc-comment-link div:hover.wpd-tooltip-right wpdtip{bottom: 30px; width: 160px;}
467
- #wpcomm .wc-reply .wc-comment-link div:hover.wpd-tooltip-right wpdtip{bottom: 28px;}
468
- #wpcomm div.wpd-stat-users.wpd-tooltip wpdtip:after{left: 60%;}
469
-
470
- #wpcomm span.wc_fb,a.wc_tw,a.wc_go,a.wc_vk,a.wc_ok {position: relative; display: inline; }
471
- #wpcomm span.wc_fb span,a.wc_tw span,a.wc_go span,a.wc_vk span,a.wc_ok span {position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; right: 210px; }
472
- #wpcomm span.wc_fb span:after,a.wc_tw span:after,a.wc_go span:after,a.wc_vk span:after,a.wc_ok span:after { content: ''; position: absolute; top: 100%; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; right: 12px; }
473
- #wpcomm .wc_fb:hover span, #wpcomm .wc_go:hover span, #wpcomm .wc_tw:hover span, #wpcomm .wc_vk:hover span, #wpcomm .wc_ok:hover span {visibility: visible; opacity: 1; bottom: 40px; z-index: 999999; right: -10px; }
474
- #wpcomm span.wc-vote-link{position: relative; display: inline; }
475
- #wpcomm span.wc-vote-link span{position: absolute; width:100px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; display: inline-block; }
476
- #wpcomm span.wc-vote-link span:after{ content: ''; position: absolute; top: 100%; left: 50%; margin-left: -8px; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; }
477
- #wpcomm span:hover.wc-vote-link span{visibility: visible; opacity: 1; bottom: 30px; left: calc(50% - 50px); z-index: 999999; }
478
- #wpcomm span.wc-comment-img-link-wrap{position: relative; display: inline; }
479
- #wpcomm span.wc-comment-img-link-wrap span{position: absolute; width:200px; color: #FFFFFF; background: #555555; height:auto; line-height: 17px; padding:3px 3px; font-size:12px; text-align: center; visibility: hidden; border-radius: 0px; bottom: 30px; left: -170px; margin-left: 0px; }
480
- #wpcomm span.wc-comment-img-link-wrap span:after{ content: ''; position: absolute; top: 100%; right: 10px; margin-left: -8px; width: 0; height: 0; border-top: 8px solid #555555; border-right: 8px solid transparent; border-left: 8px solid transparent; }
481
- #wpcomm span:hover.wc-comment-img-link-wrap span{opacity: 1; z-index: 999999; }
482
- #wpcomm span.wc-comment-img-link-wrap span.wc-comment-img-link-show{visibility: visible; }
483
- #wpcomm span.wc-comment-img-link-wrap span.wc-comment-img-link-show input[type="text"]{ padding: 3px 10px; font-size: 13px; color:#999999; }
484
- #wpcomm .wpd_label__check div:hover.wpd-field-desc span {bottom: 36px; margin-left: -99px; }
485
- #wpcomm .wpd_label div.wpd-field-desc span {width:200px;}
486
- #wpcomm .wpd_label div:hover.wpd-field-desc span {left: 50%;}
487
-
488
- /* TOLTIP VALIDATOR */
489
- #wpcomm div.wpd-field-invalid {display: inline; }
490
- #wpcomm div.wpd-field-invalid span {position: absolute; max-width:200px; color: #FFFFFF; background: #d99; height:auto; line-height: 17px; padding:8px 10px; font-size:12px; text-align: center; visibility: hidden; border-radius: 6px; }
491
- #wpcomm div.wpd-field-invalid span:after { content: ''; position: absolute; top: -7px; left: 15px; margin-left: -8px; width: 0; height: 0; border-top: 0px; border-right: 8px solid transparent; border-left: 8px solid transparent; border-bottom: 8px solid #d99; }
492
- #wpcomm div.wpd-field-invalid span {visibility: visible; opacity: 1; bottom: auto; top:calc(100% + 8px); left: 0; z-index: 999999; }
493
-
494
- /* MISC */
495
- #wpcomm .wpdiscuz_subscribe_status{font-size:12px; padding-top:6px}
496
- #wpcomm .wpdiscuz_subscribe_status a{font-size:12px}
497
- #wpcomm .wc-comment.wc-no-left-margin{margin-left:0!important}
498
- #wc_unsubscribe_message,#wc_delete_content_message,#wc_follow_message{margin:10px auto 1px auto; padding:10px; text-align:center; border:#0d0 1px dotted; background:#cfc;clear:both;}
499
- .wc_unsubscribe_message,.wc_delete_content_message,.wc_follow_message{font-size:14px; color:#444}
500
- #wpcomm .wc_editable_div{-moz-appearance:textfield-multiline; -webkit-appearance:textarea; border:1px solid #ccc; border-radius:0; font:medium -moz-fixed; font:-webkit-small-control; overflow:auto; resize:both; box-sizing:border-box; height:46px; max-width:100%; min-height:46px!important; padding:5px; width:100%}
501
- .wpdiscuz-nofollow,.wpdiscuz-nofollow:hover{text-decoration:none!important}
502
- .wc_msg_required_fields,.wc_invalid_field,.wc_invalid_captcha,.wc_error_url_text,.wc_error_email_text,.wpdiscuz-sendmail-error,.wc_msg_input_min_length,
503
- .wc_msg_input_max_length,.wc_login_to_vote,.wc_deny_voting_from_same_ip,.wc_self_vote,.wc_vote_only_one_time,.wc_voting_error,.wc_comment_edit_not_possible,
504
- .wc_comment_not_updated,.wc_comment_not_edited,.msgNotAllowedFiles,msgMaxFileCount,.msgMaxFileSize,.msgPostMaxSize,
505
- .wc_follow_email_confirm_fail,.wc_follow_login_to_follow,.wc_follow_impossible,.wc_follow_not_added{background-color:#fce8e8!important; font-size:14px; text-align:center; color:#ce4a66; border:#f2d3d2 1px solid; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
506
- .wc_follow_success,.wc_follow_canceled,.wc_follow_email_confirm{background-color:#f0f0f0!important; font-size:14px; text-align:center; color:#00B38F; border:#eee 1px solid; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
507
- .wc_held_for_moderate{background-color:#fff8ed; font-size:14px; text-align:center; color:#d3760c; border:none; padding:5px 10px; width:100%; box-sizing:border-box; margin:5px 0; border-radius:3px}
508
- .wpdiscuz-loading-bar{position:fixed; right:0; width:70px; border:0; background:transparent; z-index:999999; display:none; }
509
- .wpdiscuz-loading-bar-auth{top:32px}
510
- .wpdiscuz-loading-bar-unauth{top:0}
511
- .wpdiscuz-loading-bar .wpdiscuz-loading-bar-img{max-width:32px!important; height:auto}
512
- .wpdiscuz-vote-sorting-desc,.wpdiscuz-vote-sorting-asc{text-align:center; border:0; z-index:999999; cursor:pointer; display:inline-block}
513
- .wpdiscuz-front-actions{width:100%; box-sizing:border-box; padding:10px 10px 10px 15px; margin-top:20px; margin-bottom:0px; text-align:right}
514
- .wpdiscuz-subscribe-bar{width:100%; box-sizing:border-box; padding:10px 10px 20px 15px; margin-bottom:10px; }
515
- #wpcomm #bywpdiscuz{display:none}
516
- #wpcomm .by-wpdiscuz{text-align:right; border-top:#ddd solid 1px; padding:1px 1px 1px 1px}
517
- #wpcomm .by-wpdiscuz a{font-size:11px; font-weight:bold; text-align:right; color:#ccc; padding:1px; margin:0; line-height:12px; border:0; text-decoration:none}
518
- #wpcomm .wpdimg{border:0; padding:0; margin:0; height:12px; cursor:pointer; display:inline; clear:both}
519
- #wpcomm .wc-copyright{margin:0 0 0 auto; text-align:right; display:block; padding-top:2px}
520
- #wpcomm .wc-copyright a{font-size:9px; color:#aaa; cursor:help; text-decoration:none; margin:0; padding:0; border:0}
521
-
522
- /* FOLLOW USER */
523
- #wpcomm .wc-comment-left .wc-follow-user{padding: 5px 2px;background: #f0f0f0;font-size: 12px;display: block;cursor: pointer;}
524
- #wpcomm .wc-comment-left .wc-follow-user:hover{background:#ddd;}
525
-
526
- /* DARK STYLE */
527
- #wpcomm.wpd-dark .wc-thread-wrapper{padding: 12px 0px 10px 2px;}
528
- #wpcomm.wpd-dark .wpdiscuz-textarea-wrap{ border: #777777 solid 1px;}
529
- #wpcomm.wpd-dark .wc-field-textarea .wpdiscuz-textarea-foot{ border-top: 1px dotted #777777; }
530
- #wpcomm.wpd-dark .wpdiscuz-front-actions { background-color: #333333; }
531
- #wpcomm.wpd-dark .wpdiscuz-front-actions .wpdiscuz-sbs-wrap span{ color: #aaaaaa; }
532
- #wpcomm.wpd-dark .wpdiscuz-sort-button { color: #aaaaaa; }
533
- #wpcomm.wpd-dark .wpd_label__check i.wpdicon-off { color: #aaaaaa; border: 1px solid #777777; background-color:#333333;}
534
- #wpcomm.wpd-dark button, #wpcomm.wpd-dark input[type="button"], #wpcomm.wpd-dark input[type="reset"], #wpcomm.wpd-dark input[type="submit"] { border: 1px solid #777777; color: #FFFFFF; background-color: #333333;}
535
- #wpcomm.wpd-dark .wpd_label__check i.wpdicon-on{ background-color: transparent; border: 1px solid #777777; }
536
- #wpcomm.wpd-dark .avatar { box-shadow: 0px 0px 5px 1px rgba(100, 100, 100, 1);}
537
- #wpcomm.wpd-dark .wc-comment .wc-comment-left .wc-comment-label {background: transparent; border-bottom: 1px solid #555555; -webkit-box-shadow: 0px 7px 9px -6px rgba(100,100,100,1); -moz-box-shadow: 0px 7px 9px -6px rgba(100,100,100,1); box-shadow: 0px 7px 9px -6px rgba(100,100,100,1); margin: 3px auto 8px auto;}
538
- #wpcomm.wpd-dark .wc-comment .wc-comment-right {background: transparent;}
539
- #wpcomm.wpd-dark .wc-comment-header { border-top: 1px solid #777777;}
540
- #wpcomm.wpd-dark .wc-reply .wc-comment-header {border-top: 1px solid #777777; }
541
- #wpcomm.wpd-dark .wc-comment .wc-comment-left .wpd-xborder {border-right: 1px solid #777777;}
542
- #wpcomm.wpd-dark .wc-cta-button, #wpcomm .wc-cta-button-x {color: #777777;}
543
- #wpcomm.wpd-dark .wc-cta-active { color: #FFFFFF;}
544
- #wpcomm.wpd-dark .wc-comment-text { color: inherit;}
545
- #wpcomm.wpd-dark .wpdiscuz-subscribe-bar { color: #aaaaaa; background-color: #444444; }
546
- #wpcomm.wpd-dark .wc-sticky-comment.wc-comment .wc-comment-header,
547
- #wpcomm.wpd-dark .wc-closed-comment.wc-comment .wc-comment-header,
548
- #wpcomm.wpd-dark .wc-private-comment.wc-comment .wc-comment-header{ background-color: transparent; }
549
- #wpcomm.wpd-dark .wc-private-comment.wc-comment .wc-comment-header{border-bottom: 1px dotted #fa9800;}
550
- #wpcomm.wpd-dark .wc-private-comment.wc-comment .wc-comment-header .wpd-private{ color: #fa9800; border: 1px dotted #fa9800; }
551
- #wpcomm.wpd-dark .wc-closed-comment.wc-comment .wc-comment-header .wpd-closed{color: #ffffff; border:1px dotted #999999;}
552
-
553
- @media screen and (max-width: 1024px){
554
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 33%; margin-bottom: 10px; }
555
- }
556
- @media screen and (max-width:800px){
557
- #wpcomm .wpdiscuz-subscribe-form-option{width:100%!important; padding:0!important}
558
- #wpcomm .wpdiscuz-subscribe-form-email{width:100%!important; padding:0!important; margin-top:5px}
559
- #wpcomm .wpdiscuz-subscribe-form-button{width:100%!important; padding:0!important}
560
- #wpcomm .wpdiscuz-subscribe-form-button input[type="submit"]{width:100%!important; margin-top:5px}
561
- #wpcomm .wpd-form-row .wpd-form-col-left{width:100%; float:none; }
562
- #wpcomm .wpd-form-row .wpd-form-col-right{width:100%; float:none; }
563
- #wpcomm .wc-field-comment .wc-field-avatararea {display:none!important;}
564
- #wpcomm .wc-field-comment .wc-field-textarea{margin-left:0px;}
565
- #wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea{padding: 25px 18px 10px 20px; font-size: 16px;}
566
- #wpcomm .wc-form-footer{margin-left:0px; }
567
- #wpcomm .wc-comment-left .wpd-xborder,
568
- #wpcomm .wc-reply .wc-comment-left .wpd-xborder{display: none;}
569
- #wpcomm.wpdiscuz_no_avatar .wc-form-footer{margin-left:0}
570
- #wpcomm .wpd-form-col-left{width:100%; float:none; display:block}
571
- #wpcomm .wpd-form-col-right{width:100%; float:none; display:block; padding:0}
572
- #wpcomm .wc-field-submit input[type="button"]{max-width:200px}
573
- #wpcomm .wpd-form-row .wpdiscuz-item {width:100%; margin:0 auto; display:block; float:none}
574
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-label{padding-left:0; width:115px}
575
- #wpcomm .wpd-form-row .wpdiscuz-item .wc-captcha-input{width:calc(100% - 116px)}
576
- #wpcomm .wc-reply{margin-left:25px!important}
577
- #wpcomm .wc-comment .wc-form-wrapper{margin-left: 0px;}
578
- #wpcomm .wc_comment_level-3{margin-left:0!important}
579
- #wpcomm .wc_comment_level-4{margin-left:0!important}
580
- #wpcomm .wc_comment_level-5{margin-left:0!important}
581
- #wpcomm .wc_comment_level-5{margin-left:0!important}
582
- #wpcomm .wc_comment_level-6{margin-left:0!important}
583
- #wpcomm .wc_comment_level-7{margin-left:0!important}
584
- #wpcomm .wc_comment_level-8{margin-left:0!important}
585
- #wpcomm .wc_comment_level-9{margin-left:0!important}
586
- #wpcomm .wc_comment_level-10{margin-left:0!important}
587
- #wpcomm .wc-comment-author{padding-left: 5px; font-size: 16px; }
588
- #wpcomm .wc-comment-author a{ font-size:14px; width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline;}
589
- #wpcomm .wc-comment-link{display: block; float:right; }
590
- #wpcomm .wc-comment-text{font-size:13px!important}
591
- #wpcomm .wc-comment .wc-comment-left{float:none!important; margin-bottom:8px; width:100%!important}
592
- #wpcomm .wc-comment .wc-comment-right,#wpcomm .wc-reply .wc-comment-right{margin-left:0!important}
593
- #wpcomm .wc-comment .wc-comment-left .avatar{width:40px!important; height:40px!important; margin: 0 5px 0 12px !important; float:left!important; display:block!important}
594
- #wpcomm .wc-reply.wc-comment .wc-comment-left .avatar{width:26px!important; height:26px!important; margin: 4px 3px 2px 3px !important; box-shadow:none!important; margin: 10px 5px 0 12px !important;}
595
- .wpd-cf-label{ display:block; width: 100%; background: transparent; }
596
- .wpd-cf-value{ display:block; width:100%; background: #f9f9f9; border-bottom:1px solid #bbb; }
597
- #wpcomm .wc_comm_form.wc-secondary-form-wrapper .wc-field-comment .wc-field-textarea,
598
- #wpcomm .wc-secondary-form-wrapper .wc-form-footer{margin-left: 0px;}
599
- #wpcomm .wc-field-submit{text-align:right}
600
- #wpcomm .wc-comment-label{ width:auto; }
601
- #wpcomm .wc-comment-label span{line-height:14px; padding:0px 2px; }
602
- #wpcomm .wc-comment-footer .wc-footer-left{ float:none; display:block; padding:2px 5px; text-align:left; }
603
- #wpcomm .wc-comment-footer .wc-footer-right{ float:none; display:block; padding:5px 5px 2px 5px; text-align:left; }
604
- #wpcomm .wc-comment-footer .wc-footer-right .wc-comment-date{ margin-left:0px; }
605
- #wpcomm .wc-comment-footer .wc-footer-left span{ margin-bottom:7px; }
606
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{flex-basis: 50%; margin-bottom: 10px; }
607
- #wpcomm .wc-toggle .wpdiscuz-children-button-text, #wpcomm .wc-toggle .wcsep{ display:none; }
608
- #wpcomm .wc-comment-left .wc-comment-label{display: none;}
609
- #wpcomm .wc-comment-header{border-bottom:none!important;}
610
- #wpcomm div.wpd-tooltip wpdtip,
611
- #wpcomm div.wpd-tooltip-left wpdtip,
612
- #wpcomm div.wpd-tooltip-right wpdtip{width: 160px;}
613
- #wpcomm div:hover.wpd-tooltip wpdtip {left: -75px;}
614
- #wpcomm .wpdiscuz-front-actions{text-align: left;}
615
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sbs-wrap {float: none; padding: 0px 6px 10px 6px;}
616
- #wpcomm .wpdiscuz-front-actions .wpdiscuz-sort-buttons{display: block;}
617
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users{display: none;}
618
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-stat.wpd-stat-users i{font-size: 22px;}
619
- #wpcomm .wc-comment-header{border-bottom:none!important; padding-top: 0px; height: 40px;margin-left: 60px;}
620
- #wpcomm .wc-reply .wc-comment-header{border-bottom:none!important; padding-top: 5px; height: 36px;margin-left: 40px;}
621
- }
622
- @media screen and (max-width:440px){
623
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right{display:none;}
624
- }
625
- @media screen and (max-width:420px){
626
- #wpcomm .wpdiscuz-sort-buttons,#wpcomm .wpdiscuz-sort-button{font-size:11px!important}
627
- #wpcomm .wc-form-footer{margin-left:0}
628
- #wpcomm .wc-field-submit input[type="button"]{width:99%; font-size:10px; padding:5px 2px}
629
- .wpdiscuz_auth .wc-field-submit{width:100%!important}
630
- #wpcomm .wc-form-wrapper .ed_button{width:18%; padding:0; margin:3px 2px 3px 2px}
631
- #wpcomm .wc-field-comment .wc-field-textarea .wpdiscuz-quicktags-enabled .commentTextMaxLength{top:49px}
632
- .wpdiscuz-post-rating-wrap.wpd-custom-field > [class ^= wpdiscuz-post-rating-wrap-custom_field]{
633
- flex-basis: 100%; margin-bottom: 10px; }
634
- }
635
- @media screen and (max-width:360px){
636
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-right .wpdiscuz-users{margin-right: 0px;}
637
- #wpcomm .wpdiscuz-form-bottom-bar .wpdiscuz-fbb-left .wpdiscuz-stat{margin-right: 8px;}
638
- #wpcomm .wpdiscuz-form-bottom-bar {padding: 15px 0px 0px 2px;}
639
- }
640
-
641
- #wpdiscuz-loading-bar.wpdiscuz-loading-bar:before{
642
- content: ""; display: inline-block; width: 5px; height: 6px; background: #888; border-radius: 50%; animation: wpdLoading 1s ease infinite; box-shadow: 0 0 5px 1px #fff;
643
- }
644
-
645
- @keyframes wpdLoading{
646
- 0%{transform: translateX(0)}
647
- 5%{transform: translateX(0); width: 18px; transform-origin: right}
648
- 50%{transform: translateX(50px); width: 10px; }
649
- 55%{transform: translateX(42px); width: 18px; }
650
- 100%{transform: translateX(0)}
651
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/img/avatars/1.jpg DELETED
Binary file
assets/img/avatars/2.jpg DELETED
Binary file
assets/img/avatars/3.jpg DELETED
Binary file
assets/img/avatars/4.jpg DELETED
Binary file
assets/img/avatars/5.jpg DELETED
Binary file
assets/img/dark.png DELETED
Binary file
assets/img/dashboard/addon.png ADDED
Binary file
assets/img/dashboard/arrow-right.png ADDED
Binary file
assets/img/dashboard/box-badges.png ADDED
Binary file
assets/img/dashboard/box-bubble.png ADDED
Binary file
assets/img/dashboard/box-content.png ADDED
Binary file
assets/img/dashboard/box-email.png ADDED
Binary file
assets/img/dashboard/box-feedback.png ADDED
Binary file
assets/img/dashboard/box-forms.png ADDED
Binary file
assets/img/dashboard/box-general.png ADDED
Binary file
assets/img/dashboard/box-layouts.png ADDED
Binary file
assets/img/dashboard/box-login.png ADDED
Binary file
assets/img/dashboard/box-moderation.png ADDED
Binary file
assets/img/dashboard/box-rating.png ADDED
Binary file
assets/img/dashboard/box-recaptcha.png ADDED
Binary file
assets/img/dashboard/box-social.png ADDED
Binary file
assets/img/dashboard/box-styles.png ADDED
Binary file
assets/img/dashboard/box-threads.png ADDED
Binary file
assets/img/dashboard/bubble-invite-to-comment.png ADDED
Binary file
assets/img/dashboard/bubble-location-left.png ADDED
Binary file
assets/img/dashboard/bubble-location-right.png ADDED
Binary file
assets/img/dashboard/bubble-location-side.png ADDED
Binary file
assets/img/dashboard/bubble-new-comment-info.png ADDED
Binary file
assets/img/dashboard/cancel.png ADDED
Binary file
assets/img/dashboard/cog.png ADDED
Binary file
assets/img/dashboard/dots.png ADDED
Binary file
assets/img/dashboard/icon-comment-inlinepng.png ADDED
Binary file
assets/img/dashboard/icon-comment.png ADDED
Binary file
assets/img/dashboard/icon-guests.png ADDED
Binary file
assets/img/dashboard/icon-replies.png ADDED
Binary file
assets/img/dashboard/icon-threads.png ADDED
Binary file
assets/img/dashboard/icon-users.png ADDED
Binary file
assets/{third-party/font-awesome-5.0.6/css → img/dashboard}/index.html RENAMED
File without changes
assets/img/dashboard/inline-feedback-closed.png ADDED
Binary file
assets/img/dashboard/inline-feedback-opened.png ADDED
Binary file
assets/img/dashboard/inline-feedback-toolbar-button-vertical.png ADDED
Binary file
assets/img/dashboard/inline-feedback-toolbar-button.png ADDED
Binary file
assets/img/dashboard/layout-1.png ADDED
Binary file
assets/img/dashboard/layout-1s.png ADDED
Binary file
assets/img/dashboard/layout-2.png ADDED
Binary file
assets/img/dashboard/layout-2s.png ADDED
Binary file
assets/img/dashboard/layout-3.png ADDED
Binary file
assets/img/dashboard/layout-3s.png ADDED
Binary file
assets/img/dashboard/new-feature.png ADDED
Binary file
assets/img/dashboard/new.png ADDED
Binary file
assets/img/dashboard/news/bubble-invite-to-comment.png ADDED
Binary file
assets/img/dashboard/news/bubble-new-comment-info.png ADDED
Binary file
assets/img/dashboard/news/feedback-form.png ADDED
Binary file
assets/img/dashboard/news/icon-bubble.png ADDED
Binary file
assets/img/dashboard/news/icon-feedback.png ADDED
Binary file
assets/img/dashboard/news/icon-layouts.png ADDED
Binary file
assets/img/dashboard/news/icon-rating.png ADDED
Binary file
assets/img/dashboard/news/icon-social.png ADDED
Binary file
assets/img/dashboard/news/rating-vs-v.png ADDED
Binary file
assets/img/dashboard/news/rating-vs.png ADDED
Binary file
assets/img/dashboard/news/social-networks-shadow.png ADDED
Binary file
assets/img/dashboard/news/wpDiscuz-Social-Network-icons-on-user-avatars.png ADDED
Binary file
assets/img/dashboard/note.png ADDED
Binary file
assets/img/dashboard/ok.png ADDED
Binary file
assets/img/dashboard/rating.png ADDED
Binary file
assets/img/dashboard/solved.png ADDED
Binary file
assets/img/dashboard/warning.png ADDED
Binary file
assets/img/dashboard/wpdiscuz-7-logo.png ADDED
Binary file
assets/img/delete.png ADDED
Binary file
assets/img/editor/active.png ADDED
Binary file
assets/img/editor/attachment.png ADDED
Binary file
assets/img/editor/passive.png ADDED
Binary file
assets/img/file-icons/delete.png ADDED
Binary file
assets/img/file-icons/file-type.png ADDED
Binary file
assets/{third-party/font-awesome-5.0.6 → img/file-icons}/index.html RENAMED
File without changes
assets/img/file-icons/video-audio-type.png ADDED
Binary file
assets/img/shortcode.png ADDED
Binary file
assets/img/social-icons/baidu.png ADDED
Binary file
assets/img/social-icons/dq-m.png ADDED
Binary file
assets/img/social-icons/gg-m.png CHANGED
Binary file
assets/img/social-icons/ig-m.png ADDED
Binary file
assets/img/social-icons/in-m.png ADDED
Binary file
assets/img/social-icons/mr-m.png ADDED
Binary file
assets/img/social-icons/qq.png ADDED
Binary file
assets/img/social-icons/wapp-m.png ADDED
Binary file
assets/img/social-icons/wechat.png ADDED
Binary file
assets/img/social-icons/weibo.png ADDED
Binary file
assets/img/social-icons/wp-m.png ADDED
Binary file
assets/img/social-icons/ya-m.png ADDED
Binary file
assets/js/wpd-editor.js ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class wpdEditorCounter {
2
+ constructor(quill, options) {
3
+ this.quill = quill;
4
+ this.options = options;
5
+ this.maxCount = options.maxcount;
6
+ this.minCount = options.mincount;
7
+ this.container = document.getElementById('wpd-editor-char-counter-' + options.uniqueID);
8
+ this.submit = document.getElementById('wpd-field-submit-' + options.uniqueID);
9
+ quill.on('editor-change', this.update.bind(this));
10
+ this.update();
11
+ }
12
+
13
+ calculate() {
14
+ let length = this.quill.getText().length,
15
+ editorid = this.quill.container.id,
16
+ images = document.querySelectorAll(`#${editorid} .ql-editor img`);
17
+ if (images.length) {
18
+ images.forEach(function (img) {
19
+ if (img.src.match(/https\:\/\/s\.w\.org\/images\/core\/emoji/gi) !== null) {
20
+ length += img.alt.length;
21
+ } else if (img.classList.contains('wpdem-sticker')) {
22
+ length += img.alt.length;
23
+ } else {
24
+ length += img.src.length;
25
+ }
26
+ });
27
+ }
28
+ return length;
29
+ }
30
+
31
+ update() {
32
+ let length = this.calculate(),
33
+ _length = length - 1;
34
+ if (this.maxCount > 0 && length >= this.maxCount) {
35
+ this.quill.deleteText(this.maxCount, length);
36
+ }
37
+ if (this.maxCount > 0) {
38
+ let range = this.maxCount - _length;
39
+ this.container.innerText = range >= 0 ? range : 0;
40
+ if (length + 10 > this.maxCount) {
41
+ this.container.classList.add("error");
42
+ } else {
43
+ this.container.classList.remove("error");
44
+ }
45
+ } else if (this.container) {
46
+ this.container.remove();
47
+ }
48
+ // if (_length < this.minCount) {
49
+ // this.submit.disabled = true;
50
+ // } else {
51
+ // this.submit.disabled = false;
52
+ // }
53
+ }
54
+ }
55
+
56
+ Quill.register('modules/counter', wpdEditorCounter);
57
+
58
+ let Link = Quill.import('formats/link');
59
+ class wpdEditorLink extends Link {
60
+ static create(value) {
61
+ let node = super.create(value);
62
+ value = this.sanitize(value);
63
+ node.setAttribute('href', value);
64
+ let siteUrl = location.protocol + '//' + location.hostname;
65
+ if (value.startsWith(siteUrl) || value.charAt(0) === '#' || (value.charAt(0) === '/' && value.charAt(1) !== '/')) {
66
+ node.removeAttribute('target');
67
+ }
68
+ return node;
69
+ }
70
+ static sanitize(url) {
71
+ let s_url = super.sanitize(url);
72
+ let protocol = s_url.slice(0, s_url.indexOf(':'));
73
+ if (!(s_url.charAt(0) === '#' || s_url.charAt(0) === '/') && this.PROTOCOL_WHITELIST.indexOf(protocol) === -1) {
74
+ s_url = 'http://' + url;
75
+ }
76
+ return s_url;
77
+ }
78
+
79
+ }
80
+ Quill.register(wpdEditorLink, true);
81
+ class WpdEditor {
82
+ constructor() {
83
+ this.editorWraperPrefix = 'wpd-editor-wraper';
84
+ this.textEditorContainer = 'ql-texteditor';
85
+ this.textEditorPrefix = 'wc-textarea';
86
+ this.editorToolbarPrefix = 'wpd-editor-toolbar';
87
+ this.sourceCodeButtonName = 'sourcecode';
88
+ this.spoiler = 'spoiler';
89
+ this.spoilerPromtTitle = wpdiscuzAjaxObj.wc_spoiler_title;
90
+ this._container = '';
91
+ this._uniqueid = '';
92
+ this.currentEditor = null;
93
+ this._editors = new Map();
94
+ this._handlers = new Map();
95
+ this._initDefaults();
96
+ }
97
+
98
+ addButtonEventHandler(name, func) {
99
+ this._handlers.set(name, func);
100
+ }
101
+
102
+ set uniqueid(value) {
103
+ if (value !== '' && typeof value === 'string') {
104
+ this._uniqueid = value;
105
+ } else if (value === '') {
106
+ this._uniqueid = this._findUniqueId();
107
+ } else {
108
+ console.error('Incorrect uniqueid.');
109
+ }
110
+ }
111
+
112
+ get uniqueid() {
113
+ return this._uniqueid;
114
+ }
115
+
116
+ set container(value) {
117
+ if (value !== '' && typeof value === 'string') {
118
+ this._container = value;
119
+ this.uniqueid = this._findUniqueId();
120
+ } else {
121
+ console.error('Incorrect uniqueid.');
122
+ }
123
+ }
124
+
125
+ get container() {
126
+ return this._container;
127
+ }
128
+
129
+ createEditor(container) {
130
+ this.container = container;
131
+ if (!this._editors.has(this.uniqueid)) {
132
+ let toolbar = `#${this.editorToolbarPrefix}-${this.uniqueid}`;
133
+ wpdiscuzEditorOptions.modules.toolbar = toolbar;
134
+ wpdiscuzEditorOptions.modules.counter.uniqueID = this.uniqueid;
135
+ let editor = new Quill(this.container, wpdiscuzEditorOptions);
136
+ // editor.setContents([{insert: '\n'}]);
137
+ editor.on('editor-change', (eventName, ...args) => {
138
+ if (args[0] !== null) {
139
+ this.currentEditor = editor;
140
+ this.container = editor.container.id;
141
+ }
142
+ });
143
+ // editor.clipboard.addMatcher('PRE', (node, delta) => {
144
+ // var Delta = Quill.import('delta');
145
+ // return new Delta([{insert: this._htmlEntities(node.innerHTML), attributes: {'code-block': true}}]);
146
+ // });
147
+ editor.clipboard.addMatcher('a', (node, delta) => {
148
+ if (node.getAttribute("href") === node.innerHTML) {
149
+ var Delta = Quill.import('delta');
150
+ return new Delta([{insert: node.innerHTML}]);
151
+ } else {
152
+ return delta;
153
+ }
154
+ });
155
+ document.querySelectorAll(`${toolbar} button`).forEach(
156
+ (button) => {
157
+ button.onclick = () => {
158
+ this.currentEditor = editor;
159
+ this.container = editor.container.id;
160
+ let buttonName = button.dataset.wpde_button_name;
161
+ if (buttonName !== undefined &&
162
+ typeof buttonName === 'string' &&
163
+ buttonName.trim() !== '' && this._handlers.has(buttonName)) {
164
+ this._handlers.get(buttonName)(this.currentEditor, this.uniqueid);
165
+ }
166
+ };
167
+ });
168
+ this._bindTextEditor(editor);
169
+ this._editors.set(this.uniqueid, editor);
170
+ document.getElementById(`${this.editorWraperPrefix}-${this.uniqueid}`).style.display = "";
171
+ } else {
172
+ this.currentEditor = this._editors.get(this.uniqueid);
173
+ }
174
+ return this.currentEditor;
175
+ }
176
+
177
+ // _htmlEntities(str) {
178
+ // var txt = document.createElement('textarea');
179
+ // txt.innerHTML = str;
180
+ // return txt.value.replace(/<\!\-\-\?php/g, '<?php').replace(/\?\-\->/g, '?>').replace(/\-\-\->/g, '->');
181
+ // }
182
+
183
+ removeEditor(container) {
184
+ this.container = container;
185
+ if (this._editors.has(this.uniqueid)) {
186
+ this._editors.delete(this.uniqueid);
187
+ }
188
+ }
189
+
190
+ _bindTextEditor(editor) {
191
+ let textEditorID = `${this.textEditorPrefix}-${this.uniqueid}`,
192
+ textEditorHtml = document.getElementById(textEditorID);
193
+ if (textEditorHtml) {
194
+ textEditorHtml.style.cssText = "display: none;";
195
+ editor.addContainer(this.textEditorContainer).appendChild(textEditorHtml);
196
+ }
197
+ // if (editor.container.id.indexOf('-edit_') > 0) {
198
+ // console.log(textEditorHtml.value);
199
+ // editor.clipboard.dangerouslyPasteHTML(0, textEditorHtml.value);
200
+ // editor.update();
201
+ // }
202
+ /* editor.on('text-change', (delta, oldDelta, source) => {
203
+ if (source === Quill.sources.USER) {
204
+ textEditorHtml.value = editor.root.innerHTML;
205
+ }
206
+ });*/
207
+ this.currentEditor = editor;
208
+ }
209
+
210
+ _findUniqueId() {
211
+ return this.container.substring(this.container.lastIndexOf('-') + 1);
212
+ }
213
+
214
+ _initDefaults() {
215
+ this.addButtonEventHandler(this.sourceCodeButtonName, (editor) => {
216
+ let textEditor = document.getElementById(`${this.textEditorPrefix}-${this.uniqueid}`);
217
+ // editor.deleteText(0, editor.getLength());
218
+ // editor.clipboard.dangerouslyPasteHTML(0, textEditor.value);
219
+ let sourceCodeWrapperBg = document.getElementById('wpd-editor-source-code-wrapper-bg');
220
+ let sourceCodeWrapper = document.getElementById('wpd-editor-source-code-wrapper');
221
+ let sourceCode = document.getElementById('wpd-editor-source-code');
222
+ let editorUid = document.getElementById('wpd-editor-uid');
223
+ sourceCodeWrapperBg.style.display = 'block';
224
+ sourceCodeWrapper.style.display = 'block';
225
+ editorUid.value = editor.container.id;
226
+ sourceCode.value = editor.root.innerHTML;
227
+ });
228
+ this.addButtonEventHandler(this.spoiler, (editor) => {
229
+ let spoilerTitle = prompt(this.spoilerPromtTitle);
230
+ if (spoilerTitle === null) {
231
+ return;
232
+ }
233
+ let sopilerShortCodeLeft = ` [spoiler title="${spoilerTitle}"] `,
234
+ sopilerShortCodeRight = ' [/spoiler] ',
235
+ reng = editor.getSelection();
236
+ if (reng === null) {
237
+ reng = {
238
+ index: editor.getLength() - 1,
239
+ length: 0
240
+ };
241
+ }
242
+ if (reng.length === 0) {
243
+ editor.insertText(reng.index, sopilerShortCodeLeft + sopilerShortCodeRight, Quill.sources.USER);
244
+ editor.setSelection(reng.index + sopilerShortCodeLeft.length, Quill.sources.USER);
245
+ } else {
246
+ editor.insertText(reng.index, sopilerShortCodeLeft);
247
+ editor.insertText(reng.index + sopilerShortCodeLeft.length + reng.length, sopilerShortCodeRight, Quill.sources.USER);
248
+ editor.setSelection(reng.index + sopilerShortCodeLeft.length + reng.length + sopilerShortCodeRight.length, Quill.sources.USER);
249
+ }
250
+ });
251
+ }
252
+ }
assets/js/wpd-editor.min.js ADDED
@@ -0,0 +1 @@
 
1
+ "use strict";function _typeof(t){return(_typeof="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 _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _classCallCheck(t,e){if(!_instanceof(t,e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}var wpdEditorCounter=function(){function t(e,i){_classCallCheck(this,t),this.quill=e,this.options=i,this.maxCount=i.maxcount,this.minCount=i.mincount,this.container=document.getElementById("wpd-editor-char-counter-"+i.uniqueID),this.submit=document.getElementById("wpd-field-submit-"+i.uniqueID),e.on("editor-change",this.update.bind(this)),this.update()}return _createClass(t,[{key:"calculate",value:function(){var t=this.quill.getText().length,e=this.quill.container.id,i=document.querySelectorAll("#".concat(e," .ql-editor img"));return i.length&&i.forEach(function(e){null!==e.src.match(/https\:\/\/s\.w\.org\/images\/core\/emoji/gi)?t+=e.alt.length:e.classList.contains("wpdem-sticker")?t+=e.alt.length:t+=e.src.length}),t}},{key:"update",value:function(){var t=this.calculate(),e=t-1;if(this.maxCount>0&&t>=this.maxCount&&this.quill.deleteText(this.maxCount,t),this.maxCount>0){var i=this.maxCount-e;this.container.innerText=i>=0?i:0,t+10>this.maxCount?this.container.classList.add("error"):this.container.classList.remove("error")}else this.container&&this.container.remove()}}]),t}();Quill.register("modules/counter",wpdEditorCounter);var Link=Quill.import("formats/link"),wpdEditorLink=function(t){_inherits(i,Link);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,null,[{key:"create",value:function(t){var e=_get(_getPrototypeOf(i),"create",this).call(this,t);t=this.sanitize(t),e.setAttribute("href",t);var n=location.protocol+"//"+location.hostname;return(t.startsWith(n)||"#"===t.charAt(0)||"/"===t.charAt(0)&&"/"!==t.charAt(1))&&e.removeAttribute("target"),e}},{key:"sanitize",value:function(t){var e=_get(_getPrototypeOf(i),"sanitize",this).call(this,t),n=e.slice(0,e.indexOf(":"));return"#"!==e.charAt(0)&&"/"!==e.charAt(0)&&-1===this.PROTOCOL_WHITELIST.indexOf(n)&&(e="http://"+t),e}}]),i}();Quill.register(wpdEditorLink,!0);var WpdEditor=function(){function t(){_classCallCheck(this,t),this.editorWraperPrefix="wpd-editor-wraper",this.textEditorContainer="ql-texteditor",this.textEditorPrefix="wc-textarea",this.editorToolbarPrefix="wpd-editor-toolbar",this.sourceCodeButtonName="sourcecode",this.spoiler="spoiler",this.spoilerPromtTitle=wpdiscuzAjaxObj.wc_spoiler_title,this._container="",this._uniqueid="",this.currentEditor=null,this._editors=new Map,this._handlers=new Map,this._initDefaults()}return _createClass(t,[{key:"addButtonEventHandler",value:function(t,e){this._handlers.set(t,e)}},{key:"createEditor",value:function(t){var e=this;if(this.container=t,this._editors.has(this.uniqueid))this.currentEditor=this._editors.get(this.uniqueid);else{var i="#".concat(this.editorToolbarPrefix,"-").concat(this.uniqueid);wpdiscuzEditorOptions.modules.toolbar=i,wpdiscuzEditorOptions.modules.counter.uniqueID=this.uniqueid;var n=new Quill(this.container,wpdiscuzEditorOptions);n.on("editor-change",function(t){null!==(arguments.length<=1?void 0:arguments[1])&&(e.currentEditor=n,e.container=n.container.id)}),n.clipboard.addMatcher("a",function(t,e){return t.getAttribute("href")===t.innerHTML?new(Quill.import("delta"))([{insert:t.innerHTML}]):e}),document.querySelectorAll("".concat(i," button")).forEach(function(t){t.onclick=function(){e.currentEditor=n,e.container=n.container.id;var i=t.dataset.wpde_button_name;void 0!==i&&"string"==typeof i&&""!==i.trim()&&e._handlers.has(i)&&e._handlers.get(i)(e.currentEditor,e.uniqueid)}}),this._bindTextEditor(n),this._editors.set(this.uniqueid,n),document.getElementById("".concat(this.editorWraperPrefix,"-").concat(this.uniqueid)).style.display=""}return this.currentEditor}},{key:"removeEditor",value:function(t){this.container=t,this._editors.has(this.uniqueid)&&this._editors.delete(this.uniqueid)}},{key:"_bindTextEditor",value:function(t){var e="".concat(this.textEditorPrefix,"-").concat(this.uniqueid),i=document.getElementById(e);i&&(i.style.cssText="display: none;",t.addContainer(this.textEditorContainer).appendChild(i)),this.currentEditor=t}},{key:"_findUniqueId",value:function(){return this.container.substring(this.container.lastIndexOf("-")+1)}},{key:"_initDefaults",value:function(){var t=this;this.addButtonEventHandler(this.sourceCodeButtonName,function(e){document.getElementById("".concat(t.textEditorPrefix,"-").concat(t.uniqueid));var i=document.getElementById("wpd-editor-source-code-wrapper-bg"),n=document.getElementById("wpd-editor-source-code-wrapper"),r=document.getElementById("wpd-editor-source-code"),o=document.getElementById("wpd-editor-uid");i.style.display="block",n.style.display="block",o.value=e.container.id,r.value=e.root.innerHTML}),this.addButtonEventHandler(this.spoiler,function(e){var i=prompt(t.spoilerPromtTitle);if(null!==i){var n=' [spoiler title="'.concat(i,'"] '),r=e.getSelection();null===r&&(r={index:e.getLength()-1,length:0}),0===r.length?(e.insertText(r.index,n+" [/spoiler] ",Quill.sources.USER),e.setSelection(r.index+n.length,Quill.sources.USER)):(e.insertText(r.index,n),e.insertText(r.index+n.length+r.length," [/spoiler] ",Quill.sources.USER),e.setSelection(r.index+n.length+r.length+" [/spoiler] ".length,Quill.sources.USER))}})}},{key:"uniqueid",set:function(t){""!==t&&"string"==typeof t?this._uniqueid=t:""===t?this._uniqueid=this._findUniqueId():console.error("Incorrect uniqueid.")},get:function(){return this._uniqueid}},{key:"container",set:function(t){""!==t&&"string"==typeof t?(this._container=t,this.uniqueid=this._findUniqueId()):console.error("Incorrect uniqueid.")},get:function(){return this._container}}]),t}();
assets/js/wpdiscuz-admin-menu-item.js CHANGED
@@ -1,6 +1,6 @@
1
  jQuery(document).ready(function($){
2
- $('#menu-comments, #menu-comments > a').removeClass('wp-not-current-submenu');
3
- $('#menu-comments, #menu-comments > a').addClass('wp-has-current-submenu');
4
  $('#wpd-form-menu-item').parents('li').addClass('current');
5
  });
6
 
1
  jQuery(document).ready(function($){
2
+ $('#toplevel_page_wpdiscuz, #toplevel_page_wpdiscuz > a').removeClass('wp-not-current-submenu');
3
+ $('#toplevel_page_wpdiscuz, #toplevel_page_wpdiscuz > a').addClass('wp-has-current-submenu');
4
  $('#wpd-form-menu-item').parents('li').addClass('current');
5
  });
6
 
assets/js/wpdiscuz-combo-no_quill.min.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Cookie */
2
+ (function(factory){var registeredInModuleLoader=false;if(typeof define==='function'&&define.amd){define(factory);registeredInModuleLoader=true}if(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=true}if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api}}}(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes){result[key]=attributes[key]}}return result}function init(converter){function api(key,value,attributes){var result;if(typeof document==='undefined'){return}if(arguments.length>1){attributes=extend({path:'/'},api.defaults,attributes);if(typeof attributes.expires==='number'){var expires=new Date();expires.setMilliseconds(expires.getMilliseconds()+attributes.expires*864e+5);attributes.expires=expires}attributes.expires=attributes.expires?attributes.expires.toUTCString():'';try{result=JSON.stringify(value);if(/^[\{\[]/.test(result)){value=result}}catch(e){}if(!converter.write){value=encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)}else{value=converter.write(value,key)}key=encodeURIComponent(String(key));key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue}stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true){continue}stringifiedAttributes+='='+attributes[attributeName]}return(document.cookie=key+'='+value+stringifiedAttributes)}if(!key){result={}}var cookies=document.cookie?document.cookie.split('; '):[];var rdecode=/(%[0-9A-Z]{2})+/g;var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split('=');var cookie=parts.slice(1).join('=');if(cookie.charAt(0)==='"'){cookie=cookie.slice(1,-1)}try{var name=parts[0].replace(rdecode,decodeURIComponent);cookie=converter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rdecode,decodeURIComponent);if(this.json){try{cookie=JSON.parse(cookie)}catch(e){}}if(key===name){result=cookie;break}if(!key){result[name]=cookie}}catch(e){}}return result}api.set=api;api.get=function(key){return api.call(api,key)};api.getJSON=function(){return api.apply({json:true},[].slice.call(arguments))};api.defaults={};api.remove=function(key,attributes){api(key,'',extend(attributes,{expires:-1}))};api.withConverter=init;return api}return init(function(){})}));
3
+ /* Autogrow */
4
+ jQuery.fn.autoGrow=function(){return this.each(function(){var createMirror=function(textarea){jQuery(textarea).after('<div class="autogrow-textarea-mirror"></div>');return jQuery(textarea).next(".autogrow-textarea-mirror")[0]};var sendContentToMirror=function(textarea){mirror.innerHTML=String(textarea.value).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")+".<br/>.";if(jQuery(textarea).height()!=jQuery(mirror).height())jQuery(textarea).height(jQuery(mirror).height())};var growTextarea=function(){sendContentToMirror(this)};var mirror=createMirror(this);mirror.style.display="none";mirror.style.wordWrap="break-word";mirror.style.padding=jQuery(this).css("padding");mirror.style.width=jQuery(this).css("width");mirror.style.fontFamily=jQuery(this).css("font-family");mirror.style.fontSize=jQuery(this).css("font-size");mirror.style.lineHeight=jQuery(this).css("line-height");this.style.overflow="hidden";this.style.minHeight=this.rows+"em";this.onkeydown=growTextarea;sendContentToMirror(this)})};
5
+ /* wpDiscuz */
6
+ var wpdiscuzLoadRichEditor=parseInt(wpdiscuzAjaxObj.loadRichEditor);if(wpdiscuzLoadRichEditor)var wpDiscuzEditor=new WpdEditor;function wpdMessagesOnInit(e,t){wpdiscuzAjaxObj.setCommentMessage(e,t),setTimeout(function(){location.href=location.href.substring(0,location.href.indexOf("wpdiscuzUrlAnchor")-1)},3e3)}wpdiscuzAjaxObj.setCommentMessage=function(e,t,a){var o="wpdiscuz-message-error";if("[object Array]"===Object.prototype.toString.call(e))for(var d in e)"[object Array]"===Object.prototype.toString.call(t)?"success"===t[d]?o="wpdiscuz-message-success":"warning"===t[d]&&(o="wpdiscuz-message-warning"):"success"===t?o="wpdiscuz-message-success":"warning"===t&&(o="wpdiscuz-message-warning"),jQuery("<div/>").addClass(o).html(e[d]).prependTo("#wpdiscuz-comment-message").delay("[object Array]"===Object.prototype.toString.call(a)?a[d]:a||4e3).fadeOut(1e3,function(){jQuery(this).remove()});else"success"===t?o="wpdiscuz-message-success":"warning"===t&&(o="wpdiscuz-message-warning"),jQuery("<div/>").addClass(o).html(e).prependTo("#wpdiscuz-comment-message").delay(a||4e3).fadeOut(1e3,function(){jQuery(this).remove()})},jQuery(document).ready(function(e){e("body").addClass("wpdiscuz_"+wpdiscuzAjaxObj.version);var t=wpdiscuzAjaxObj.is_user_logged_in,a=1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!t,o=1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&t,d=wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion,n=parseInt(wpdiscuzAjaxObj.commentListLoadType),s=parseInt(wpdiscuzAjaxObj.wc_post_id),i=parseInt(wpdiscuzAjaxObj.commentListUpdateType),c=1e3*parseInt(wpdiscuzAjaxObj.commentListUpdateTimer),p=parseInt(wpdiscuzAjaxObj.liveUpdateGuests),r=wpdiscuzAjaxObj.loadLastCommentId,l=r,m=parseInt(wpdiscuzAjaxObj.firstLoadWithAjax);Cookies.get("wpdiscuz_comments_sorting")&&Cookies.remove("wpdiscuz_comments_sorting",{path:""}),Cookies.get("wordpress_last_visit")&&Cookies.remove("wordpress_last_visit",{path:""}),Cookies.get("wpdiscuz_last_visit")&&Cookies.remove("wpdiscuz_last_visit",{path:""});var w,u=wpdiscuzAjaxObj.storeCommenterData,f=parseInt(wpdiscuzAjaxObj.wmuEnabled),h=wpdiscuzAjaxObj.isCookiesEnabled,b=!0,g=wpdiscuzAjaxObj.cookiehash,_=parseInt(wpdiscuzAjaxObj.isLoadOnlyParentComments),v=parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0,z=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled),j=parseInt(wpdiscuzAjaxObj.enableBubble),C=parseInt(wpdiscuzAjaxObj.bubbleLiveUpdate),k=parseInt(wpdiscuzAjaxObj.bubbleHintTimeout),x=parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout)?parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout):5,y=parseInt(wpdiscuzAjaxObj.bubbleShowNewCommentMessage),O=wpdiscuzAjaxObj.bubbleLocation,A=wpdiscuzAjaxObj.inlineFeedbackAttractionType,I=[],T=[],D=[],E=!1,M=1;(e(".wc_social_plugin_wrapper .wp-social-login-provider-list").length?e(".wc_social_plugin_wrapper .wp-social-login-provider-list").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .the_champ_login_container").length?e(".wc_social_plugin_wrapper .the_champ_login_container").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .social_connect_form").length?e(".wc_social_plugin_wrapper .social_connect_form").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .oneall_social_login_providers").length&&e(".wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"),wpdiscuzLoadRichEditor&&e("#wpd-editor-0_0").length&&wpDiscuzEditor.createEditor("#wpd-editor-0_0"),e(document).delegate("#wpdcom .ql-editor, #wpdcom .wc_comment","focus",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(v)}),e(document).delegate("#wpdcom textarea","focus",function(){e(this).next(".autogrow-textarea-mirror").length||e(this).autoGrow()}),t)||S({comment_author:Cookies.get("comment_author_"+g),comment_author_email:Cookies.get("comment_author_email_"+g),comment_author_url:Cookies.get("comment_author_url_"+g)});if(e(".wpd-vote-down.wpd-dislike-hidden").remove(),e(".wpd-toolbar-hidden").prev("[id^=wpd-editor-]").css("border-bottom","1px solid #dddddd"),e(document).delegate("#wpd-editor-source-code-wrapper-bg","click",function(){e(this).hide(),e("#wpd-editor-source-code-wrapper").hide(),e("#wpd-editor-uid").val(""),e("#wpd-editor-source-code").val("")}),wpdiscuzLoadRichEditor&&e(document).delegate("#wpd-insert-source-code","click",function(){var t=wpDiscuzEditor.createEditor("#"+e("#wpd-editor-uid").val());t.deleteText(0,t.getLength(),Quill.sources.USER);var a=e("#wpd-editor-source-code").val();a.length&&t.clipboard.dangerouslyPasteHTML(0,a,Quill.sources.USER),t.update(),e("#wpd-editor-source-code-wrapper-bg").hide(),e("#wpd-editor-source-code-wrapper").hide(),e("#wpd-editor-uid").val(""),e("#wpd-editor-source-code").val("")}),e(document).delegate(".wpd-reply-button","click",function(){var n=V(e(this),0);e(this).hasClass("wpdiscuz-clonned")?(wpdiscuzLoadRichEditor?setTimeout(function(){wpDiscuzEditor.createEditor("#wpd-editor-"+n).focus()},v):setTimeout(function(){e("#wc-textarea-"+n).trigger("focus")},v),e("#wpd-secondary-form-wrapper-"+n).slideToggle(v)):function(a){var o=V(a,0);e("#wpdiscuz_form_anchor-"+o).before(function(t){return e("#wpdiscuz_hidden_secondary_form").html().replace(/wpdiscuzuniqueid/g,t)}(o));var d=e("#wpd-secondary-form-wrapper-"+o);if(!t){var n={comment_author:Cookies.get("comment_author_"+g),comment_author_email:Cookies.get("comment_author_email_"+g),comment_author_url:Cookies.get("comment_author_url_"+g)};S(n)}wpdiscuzLoadRichEditor?setTimeout(function(){wpDiscuzEditor.createEditor("#wpd-editor-"+o).focus()},v):setTimeout(function(){e("#wc-textarea-"+o).trigger("focus")},v);d.slideToggle(v,function(){a.addClass("wpdiscuz-clonned")})}(e(this)),function(t){if((a||o)&&"2.0"===d){var n=B(t);setTimeout(function(){if(!T[n])try{T[n]=grecaptcha.render("wpdiscuz-recaptcha-"+t,{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(a){e("#wpdiscuz-recaptcha-field-"+t).val("key")},"expired-callback":function(){e("#wpdiscuz-recaptcha-field-"+t).val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}},1e3)}}(n)}),e(document).delegate("#wpdcom .wpd-comment-link [data-comment-url]","click",function(){var t=e(this).data("comment-url"),a=e("<input/>");a.appendTo("body").css({position:"absolute",top:"-10000000px"}).val(t),a.select(),document.execCommand("copy"),a.remove(),wpdiscuzAjaxObj.setCommentMessage(t+"<br/>"+wpdiscuzAjaxObj.wc_copied_to_clipboard,"success",5e3)}),e(document).delegate(".wpdiscuz-nofollow,.wc_captcha_refresh_img,.wpd-load-more-submit","click",function(e){e.preventDefault()}),e(document).delegate(".wpd-toggle.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked");var a=V(e(this),0),o=e(this),d=e(".fas",o);!o.parents(".wpd-comment:not(.wpd-reply)").children(".wpd-reply").length&&_?function(t,a){var o=B(t),d=new FormData;d.append("action","wpdShowReplies"),d.append("commentId",o),ce(z,!0,d).done(function(o){a.addClass("wpd_not_clicked"),"object"==typeof o&&o.success&&(e("#wpd-comm-"+t).replaceWith(o.data.comment_list),e("#wpd-comm-"+t+" .wpd-toggle .fas").removeClass("fa-chevron-down").addClass("fa-chevron-up"),e("#wpd-comm-"+t+" .wpd-toggle").attr("wpd-tooltip",wpdiscuzAjaxObj.wc_hide_replies_text),e("#wpd-comm-"+t+" .wpd-toggle .wpd-view-replies").remove(),ie(o)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,d){console.log(d),a.addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}(a,t):e("#wpd-comm-"+a+"> .wpd-reply").slideToggle(700,function(){e(this).is(":hidden")?(d.removeClass("fa-chevron-up"),d.addClass("fa-chevron-down"),o.attr("wpd-tooltip",wpdiscuzAjaxObj.wc_show_replies_text)):(d.removeClass("fa-chevron-down"),d.addClass("fa-chevron-up"),o.attr("wpd-tooltip",wpdiscuzAjaxObj.wc_hide_replies_text)),t.addClass("wpd_not_clicked")})}),e(document).delegate(".wpd-new-loaded-comment","mouseenter",function(){e(this).removeClass("wpd-new-loaded-comment")}),e(document).delegate(".wpd-sbs-toggle","click",function(){e(".wpdiscuz-subscribe-bar").slideToggle(v)}),parseInt(wpdiscuzAjaxObj.wpDiscuzIsShowOnSubscribeForm)&&!t&&wpdiscuzAjaxObj.wpDiscuzReCaptchaSK&&("2.0"===d?(setTimeout(function(){try{grecaptcha.render("wpdiscuz-recaptcha-subscribe-form",{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(t){e("#wpdiscuz-recaptcha-field-subscribe-form").val("key")},"expired-callback":function(){e("#wpdiscuz-recaptcha-field-subscribe-form").val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}},1e3),e(document).delegate("#wpdiscuz-subscribe-form","submit",function(t){e("#wpdiscuz-recaptcha-field-subscribe-form").val()?e(".wpdiscuz-recaptcha",e(this)).css("border","none"):(e(".wpdiscuz-recaptcha",e(this)).css("border","1px solid red"),t.preventDefault())})):"3.0"===d&&e(document).delegate("#wpdiscuz_subscription_button","click",function(t){var a=e(this).parents("#wpdiscuz-subscribe-form");t.preventDefault();try{grecaptcha.ready(function(){grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,{action:"wpdiscuz/wpdAddSubscription"}).then(function(e){console.log(5555),document.getElementById("wpdiscuz-recaptcha-field-subscribe-form").value=e,a.submit()},function(e){wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error","error"),console.log(e)})})}catch(t){console.log(t),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+t.message,"error")}})),(a||o)&&"2.0"===d){var F=e(window).width(),L=e("#wpdcom").width();L>=1100&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"65%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"35%"})),L>=940&&L<1100&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"60%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"40%"})),L>=810&&L<940&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"40%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"60%"})),L>=730&&L<810&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"45%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"55%"})),L>=610&&L<730&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.85)","-webkit-transform":"scale(0.85)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"43%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"55%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"30%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"70%"})),F>650&&(L>=510&&L<610&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"center 0","-webkit-transform-origin":"center 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"35%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"63%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"30%",position:"relative",right:"-60px"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"70%"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"})),L>=470&&L<510&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"center 0","-webkit-transform-origin":"center 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"40%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"60%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd_main_comm_form .wc-form-footer").css({"margin-left":"0px"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"})),L<470&&(e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({margin:"0px auto","transform-origin":"center 0","-webkit-transform-origin":"center 0"}),e("#wpdcom .wpd-form-col-left").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-form-col-right").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"}),e("#wpdcom .wpd-secondary-form-wrapper .wc_notification_checkboxes").css({"text-align":"center"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-field-submit").css({"text-align":"center"})))}function R(t,a,o){ce(z||f,!1,a).done(function(a){if(e(o).addClass("wpd_not_clicked"),"object"==typeof a)if(a.success){"collapsed"===wpdiscuzAjaxObj.commentFormView&&e(".wpd-form-foot",t).slideUp(v),e(".wpd-thread-info").html(a.data.wc_all_comments_count_new_html),a.data.wc_all_comments_count_new=parseInt(a.data.wc_all_comments_count_new),e("#wpd-bubble-all-comments-count").text(a.data.wc_all_comments_count_new),a.data.wc_all_comments_count_new?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide();var d=v;a.data.is_main?X(a.data.message):(d=v+700,e("#wpd-secondary-form-wrapper-"+a.data.uniqueid).slideToggle(700),1==a.data.is_in_same_container?e("#wpd-secondary-form-wrapper-"+a.data.uniqueid).after(a.data.message):e("#wpd-comm-"+a.data.uniqueid).after(a.data.message)),function(e){if(!e.data.held_moderate){var t=new FormData;t.append("action","wpdCheckNotificationType"),t.append("comment_id",e.data.new_comment_id),t.append("email",e.data.comment_author_email),t.append("isParent",e.data.is_main),ce(z,!0,t)}}(a),function(e){if(e.data.redirect>0&&e.data.new_comment_id){var t=new FormData;t.append("action","wpdRedirect"),t.append("commentId",e.data.new_comment_id),ce(z,!0,t).done(function(e){"object"==typeof e&&e.success&&setTimeout(function(){location.href=e.data},2e3)}).fail(function(e,t,a){console.log(a)})}}(a),h&&b?function(t){var a=t.comment_author_email,o=t.comment_author,d=t.comment_author_url;null==u?(Cookies.set("comment_author_email_"+g,a),Cookies.set("comment_author_"+g,o),d.length&&Cookies.set("comment_author_url_"+g,d)):(u=parseInt(u),Cookies.set("comment_author_email_"+g,a,{expires:u,path:"/"}),Cookies.set("comment_author_"+g,o,{expires:u,path:"/"}),d.length&&Cookies.set("comment_author_url_"+g,d,{expires:u,path:"/"}));e(".wpd-cookies-checkbox").length&&e(".wpd-cookies-checkbox").attr("checked","checked")}(a.data):b||e(".wpd-cookies-checkbox").removeAttr("checked"),wpdiscuzLoadRichEditor&&wpDiscuzEditor.createEditor("#wpd-editor-"+e(".wpdiscuz_unique_id",t).val()).setContents([{insert:"\n"}]),t.get(0).reset(),S(a.data),e(".wmu-preview-wrap",t).remove(),I.length&&(I.forEach(function(e){e.parents(".wpd-field-checkbox").remove()}),I=[]),parseInt(wpdiscuzAjaxObj.scrollToComment)&&setTimeout(function(){e("html, body").animate({scrollTop:e("#comment-"+a.data.new_comment_id).offset().top-32},1e3)},d),ie(a,t)}else a.data&&(wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error"),ie(a,t));else wpdiscuzAjaxObj.setCommentMessage(a,"error");e("#wpdiscuz-loading-bar").fadeOut(250),E=!1}).fail(function(t,a,d){console.log(d),e(o).addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}function S(t){e(".wpd_comm_form .wc_name").val(t.comment_author),t.comment_author_email&&t.comment_author_email.indexOf("@example.com")<0&&e(".wpd_comm_form .wc_email").val(t.comment_author_email),t.comment_author_url&&e(".wpd_comm_form .wc_website").val(t.comment_author_url)}function q(t,a){e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment").show(),e("#wpd-comm-"+t+" .wpdiscuz-edit-form-wrap").replaceWith(a),e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").show()}e(document).delegate(".wc_comm_submit.wpd_not_clicked","click",function(){var t=e(this),n=1,s=e(this).parents("form");if(s.hasClass("wpd_main_comm_form")||(n=function(t){var a=t.attr("class").split(" "),o="";return e.each(a,function(e,t){"wpd_comment_level"===G(t,!1)&&(o=G(t,!0))}),parseInt(o)+1}(e(this).parents(".wpd-comment"))),J(s,"#wpd-editor-"+e(".wpdiscuz_unique_id",s).val()),s.submit(function(e){e.preventDefault()}),""!==e(".wc_comment",s).val().trim()&&"&nbsp;"!==e(".wc_comment",s).val().trim()){if(s[0].checkValidity()&&(c=s,p=!0,"2.0"===d&&e("input[name=wc_captcha]",c).length&&!e("input[name=wc_captcha]",c).val().length?(p=!1,e(".wpdiscuz-recaptcha",c).css("border","1px solid red")):"2.0"===d&&e("input[name=wc_captcha]",c).length&&e(".wpdiscuz-recaptcha",c).css("border","none"),p)){E=!0,function(t){e(".wpd-agreement-checkbox",t).each(function(){e(this).hasClass("wpd_agreement_hide")&&h&&e(this).prop("checked")&&(Cookies.set(e(this).attr("name")+"_"+g,1,{expires:30,path:"/"}),e("input[name="+e(this).attr("name")+"]").each(function(){I.push(e(this))}))})}(s),e(t).removeClass("wpd_not_clicked");var i=new FormData;if(i.append("action","wpdAddComment"),e(":input",s).each(function(){""!=this.name&&"checkbox"!=this.type&&"radio"!=this.type&&i.append(this.name+"",e(this).val().trim()),"checkbox"!=this.type&&"radio"!=this.type||e(this).is(":checked")&&i.append(this.name+"",e(this).val())}),i.append("wpd_comment_depth",n),wpdiscuzAjaxObj.wpdiscuz_zs&&i.append("wpdiscuz_zs",wpdiscuzAjaxObj.wpdiscuz_zs),e(".wpd-cookies-checkbox",s).length&&!e(".wpd-cookies-checkbox",s).prop("checked")&&(b=!1),e("#wpdiscuz-loading-bar").show(),wpdiscuzAjaxObj.wpDiscuzReCaptchaSK&&"3.0"===d&&(1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!wpdiscuzAjaxObj.is_user_logged_in||1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&wpdiscuzAjaxObj.is_user_logged_in))try{grecaptcha.ready(function(){grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,{action:"wpdiscuz/addComment"}).then(function(e){i.append("g-recaptcha-response",e),R(s,i,t)},function(e){wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error","error"),console.log(e)})})}catch(t){console.log(t),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+t.message,"error"),e("#wpdiscuz-loading-bar").fadeOut(250)}else R(s,i,t)}var c,p;!function(e){if((a||o)&&"2.0"===d){var t=B(e);grecaptcha.reset(T[t])}}(e(".wpdiscuz_unique_id",s).val()),e(".wpdiscuz_reset").val("")}else wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wc_msg_required_fields,"error")}),e(document).delegate(".wpd_editable_comment","click",function(){w&&e(".wpdiscuz-edit-form-wrap").length&&q(V(e(".wpdiscuz-edit-form-wrap"),0),w);var t=V(e(this),0),a=B(t),o=new FormData;o.append("action","wpdEditComment"),o.append("commentId",a),w=e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-text").get(0),ce(z,!0,o).done(function(a){if("object"==typeof a)if(a.success){if(e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text").replaceWith(a.data.html),wpdiscuzLoadRichEditor){let o=wpDiscuzEditor.createEditor("#wpd-editor-edit_"+t);o.clipboard.dangerouslyPasteHTML(0,a.data.content),o.update(),e(".wpd-toolbar-hidden").prev("[id^=wpd-editor-]").css("border-bottom","1px solid #dddddd")}else e("#wc-textarea-edit_"+t).val(a.data.content);e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment").hide(),e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").hide()}else wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error");else console.log(a);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wc_save_edited_comment","click",function(){var t=V(e(this)),a=B(t),o=e("#wpd-comm-"+t+" #wpdiscuz-edit-form");if(J(o,"#wpd-editor-edit_"+t),o.submit(function(e){e.preventDefault()}),o[0].checkValidity()){var d=new FormData;d.append("action","wpdSaveEditedComment"),d.append("commentId",a),e(":input",o).each(function(){""!==this.name&&"checkbox"!==this.type&&"radio"!==this.type&&d.append(this.name+"",e(this).val()),"checkbox"!==this.type&&"radio"!==this.type||e(this).is(":checked")&&d.append(this.name+"",e(this).val())}),ce(z,!0,d).done(function(o){"object"==typeof o?(o.success?(q(t,o.data.message),o.data.lastEdited&&(e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").remove(),e(o.data.lastEdited).insertAfter("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text")),o.data.twitterShareLink&&e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_tw").attr("href",o.data.twitterShareLink),o.data.whatsappShareLink&&e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_whatsapp").attr("href",o.data.whatsappShareLink),wpdiscuzLoadRichEditor&&wpDiscuzEditor.removeEditor("#wpd-editor-edit_"+t)):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[o.data],"error"),ie(o,a)):console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e(document).delegate(".wc_cancel_edit","click",function(){var t=V(e(this));q(t,w),wpdiscuzLoadRichEditor&&wpDiscuzEditor.removeEditor("#wpd-editor-edit_"+t)}),!wpdiscuzAjaxObj.wordpressIsPaginate&&m&&(M=0,1==m?setTimeout(function(){W(!0)},500):e(document).delegate(".wpd-load-comments","click",function(){e(this).parent(".wpd-load-more-submit-wrap").remove(),W(!0)})),e(document).delegate(".wpd-load-more-submit","click",function(){var t=e(this);t.hasClass("wpd-loaded")&&W(!1,t,"wpd-loaded","wpd-loading")});var U=!1;function H(){var t=e("#wpdiscuzHasMoreComments").val(),a=e(document).height(),o=e(window).height()+e(window).scrollTop();a&&o&&(100*o/a>=80&&!1===U&&1==t&&(U=!0,W(!1,e(".wpd-load-more-submit"))))}function W(t,a,o,d){a&&(a.toggleClass(o),a.toggleClass(d));var s=new FormData;s.append("action","wpdLoadMoreComments");var i=e(".wpdiscuz-sort-button-active").attr("data-sorting");i&&s.append("sorting",i),s.append("offset",M),s.append("lastParentId",e(".wpd-load-more-submit").attr("data-lastparentid")),s.append("isFirstLoad",t?1:0);var c=e(".wpdf-active").attr("data-filter-type");s.append("wpdType",c||""),ce(z,!t||1!=m,s).done(function(s){"object"==typeof s&&s.success&&(M++,t&&e(".wpd-comment").remove(),e(".wpdiscuz_single").remove(),e(".wpdiscuz-comment-pagination").before(s.data.comment_list),K(s,t&&2!==n),U=!1,r=s.data.loadLastCommentId,ie(s),t&&P(!1)),e("#wpdiscuz-loading-bar").fadeOut(250),e(".wpd-load-more-submit").blur(),a&&(a.toggleClass(o),a.toggleClass(d))}).fail(function(t,n,s){console.log(s),e("#wpdiscuz-loading-bar").fadeOut(250),e(".wpd-load-more-submit").blur(),a&&(a.toggleClass(o),a.toggleClass(d))})}function K(t,a){var o;0==t.data.is_show_load_more?(e("#wpdiscuzHasMoreComments").val(0),e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").hide()):(o=t.data.last_parent_id,e(".wpd-load-more-submit").attr("data-lastparentid",o),2!==n&&e(".wpdiscuz-comment-pagination").show(),e("#wpdiscuzHasMoreComments").val(1),a&&e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").show()),ie(t)}function P(t){var a=location.href.match(/#comment\-(\d+)/);if(null!==a){var o=a[1];if(e("#comment-"+o).length)setTimeout(function(){e("html, body").animate({scrollTop:e("#comment-"+o).parents("[id^=wpd-comm-]").offset().top-32},1e3),t&&N(o)},500);else{var d=new FormData;d.append("action","wpdGetSingleComment"),d.append("commentId",o),ce(z,!0,d).done(function(a){if("object"==typeof a&&a.success){var d="#comment-"+o;e("#comment-"+a.data.parentCommentID).length?e("#comment-"+a.data.parentCommentID).parents("[id^=wpd-comm-"+a.data.parentCommentID+"]").replaceWith(a.data.message):e(".wpd-thread-list").prepend(a.data.message),ie(a),e("html, body").animate({scrollTop:e(d).offset().top-32},1e3),t&&N(o)}e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}}function N(t){setTimeout(function(){e("#comment-"+t).siblings(".wpd-secondary-form-wrapper").is(":visible")||e("#comment-"+t).find(".wpd-reply-button").trigger("click")},1100)}function Q(e){if(void 0!==e.data.message)for(var t,a=e.data.message,o=0;o<a.length;o++)$((t=a[o]).comment_parent,t.comment_html)}function V(e,t){var a="";return(a=t?e.parents(".wpd-main-form-wrapper").attr("id"):e.parents(".wpd-comment").attr("id")).substring(a.lastIndexOf("-")+1)}function B(e){return e.substring(0,e.indexOf("_"))}function G(e,t){return t?e.substring(e.indexOf("-")+1):e.substring(0,e.indexOf("-"))}function $(t,a){if(0==t)X(a);else{var o=V(e("#comment-"+t),0);e("#wpdiscuz_form_anchor-"+o).after(a)}}function Y(){var t,a,o="";return e(".wpd-comment-right").each(function(){t=V(e(this),0),a=B(t),o+=a+","}),o}function J(t,a){var o=t.find(".wpd-required-group");wpdiscuzLoadRichEditor&&t.find(".wc_comment").val(e(a+">.ql-editor").html()),function(e){var t=e.find(".wc_comment"),a=t.val().trim().replace(/<p><br><\/p>/g,"\n").replace(/<p>(.*?)<\/p>/g,"$1\n");a=(a=(a=(a=a.replace(/<img src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g,"$3")).replace(/<img[^>]+alt=["|']([^"|']+)["|'][^>]+src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'][^>]?>/g,"$1")).replace(/<img\s+([^>]*)class=["|']wpdem\-sticker["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g,"$3")).replace(/<img\s+([^>]*)src=["|']([^"|']+)["|'](.*?)[^>]*>/g,"$2"),t.val(a)}(t),e.each(o,function(){e("input",this).removeAttr("required"),0===e("input:checked",this).length?e("input",e(this)).attr("required","required"):e(".wpd-field-invalid",this).remove()})}function X(t){e(".wpd-sticky-comment").last()[0]?e(t).insertAfter(e(".wpd-sticky-comment").last()[0]):e(".wpd-thread-list").prepend(t)}function Z(t){t?t.prop("required")||(t.val()?t.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","inline-block"):t.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","none")):e.each(e(".wc_email"),function(t,a){var o=e(a);o.prop("required")||(o.val()?o.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","inline-block"):o.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","none"))})}if(2!==n||wpdiscuzAjaxObj.wordpressIsPaginate||(e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").hide(),H(),e(window).scroll(function(){H()})),wpdiscuzAjaxObj.setLoadMoreVisibility=K,e(document).delegate(".wpd-vote-up.wpd_not_clicked, .wpd-vote-down.wpd_not_clicked","click",function(){var t=e(this);e(t).removeClass("wpd_not_clicked");var a,o=B(V(t));a=e(this).hasClass("wpd-vote-up")?1:-1;var d=new FormData;d.append("action","wpdVoteOnComment"),d.append("commentId",o),d.append("voteType",a),ce(z,!0,d).done(function(d){if(e(t).addClass("wpd_not_clicked"),"object"==typeof d){if(d.success){if("total"===d.data.buttonsStyle){var n=e(".wpd-comment-footer .wpd-vote-result",e("#comment-"+o)),s=d.data.votes;n.text(s),n.removeClass("wpd-up wpd-down"),s>0&&n.addClass("wpd-up"),s<0&&n.addClass("wpd-down")}else{var i=e(".wpd-comment-footer .wpd-vote-result-like",e("#comment-"+o)),c=e(".wpd-comment-footer .wpd-vote-result-dislike",e("#comment-"+o));i.text(d.data.likeCount),c.text(d.data.dislikeCount),parseInt(d.data.likeCount)>0?i.addClass("wpd-up"):i.removeClass("wpd-up"),parseInt(d.data.dislikeCount)<0?c.addClass("wpd-down"):c.removeClass("wpd-down")}var p=e(".wpd-comment-footer .wpd-vote-up",e("#comment-"+o)),r=e(".wpd-comment-footer .wpd-vote-down",e("#comment-"+o));p.removeClass("wpd-up"),r.removeClass("wpd-down"),d.data.curUserReaction>0?p.addClass("wpd-up"):d.data.curUserReaction<0&&r.addClass("wpd-down")}else d.data&&wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[d.data],"error");ie(d,o,a)}else console.log(d);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,o,d){console.log(d),e(t).addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate("body","click",function(t){var a=e(".wpdiscuz-sort-buttons");e(t.target).hasClass("wpdf-sorting")||e(t.target).parent().hasClass("wpdf-sorting")?a.css({display:a.is(":visible")?"none":"flex"}):a.hide()}),e(document).delegate(".wpdiscuz-sort-button:not(.wpdiscuz-sort-button-active)","click",function(){var t=e(this),a=e(this).attr("data-sorting");if(a){e(".wpdiscuz-sort-button.wpdiscuz-sort-button-active").removeClass("wpdiscuz-sort-button-active").appendTo(".wpdiscuz-sort-buttons"),t.addClass("wpdiscuz-sort-button-active").prependTo(".wpdf-sorting");var o=new FormData;o.append("action","wpdSorting"),o.append("sorting",a);var d=e(".wpdf-active").attr("data-filter-type");o.append("wpdType",d||""),ce(z,!0,o).done(function(t){"object"==typeof t&&t.success&&(e("#wpdcom .wpd-comment").remove(),e("#wpdcom .wpd-thread-list").prepend(t.data.message),K(t,!1),M=1),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),window.onhashchange=function(){P(!1)},1!=m&&P(!1),e(document).delegate(".wpdiscuz-readmore","click",function(){var t=V(e(this)),a=B(t),o=new FormData;o.append("action","wpdReadMore"),o.append("commentId",a),ce(z,!0,o).done(function(o){"object"==typeof o?(o.success?(e("#comment-"+a+" .wpd-comment-text").html(" "+o.data.message),e("#wpdiscuz-readmore-"+t).remove()):console.log(o.data),ie(o)):console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd-required-group","change",function(){0!==e("input:checked",this).length?e("input",e(this)).removeAttr("required"):e("input",e(this)).attr("required","required")}),e(document).delegate(".wpdiscuz-spoiler","click",function(){e(this).next().slideToggle(),e(this).hasClass("wpdiscuz-spoiler-closed")?e(this).parents(".wpdiscuz-spoiler-wrap").find(".fa-plus").removeClass("fa-plus").addClass("fa-minus"):e(this).parents(".wpdiscuz-spoiler-wrap").find(".fa-minus").removeClass("fa-minus").addClass("fa-plus"),e(this).toggleClass("wpdiscuz-spoiler-closed")}),e(document).delegate(".wpd-tools i","click",function(){var t=e(this).siblings(".wpd-tools-actions");t.css({display:t.is(":visible")?"none":"flex"})}),e(document).delegate(".wpd-comment-right","mouseleave",function(){e(this).find(".wpd-tools-actions").hide()}),e(document).delegate(".wpd_stick_btn","click",function(){var t=B(V(e(this),0)),a=new FormData;a.append("action","wpdStickComment"),a.append("commentId",t),ce(z,!0,a).done(function(t){"object"==typeof t&&t.success&&location.reload(!0),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd_close_btn","click",function(){var t=B(V(e(this),0)),a=new FormData;a.append("action","wpdCloseThread"),a.append("commentId",t),ce(z,!0,a).done(function(t){"object"==typeof t&&t.success&&location.reload(!0),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd-filter.wpd_not_clicked[data-filter-type]","click",function(){var t=e(this),a=t.attr("data-filter-type");wpdiscuzAjaxObj.resetActiveFilters(".wpdf-"+a),t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var o=new FormData;o.append("action","wpdLoadMoreComments");var d=e(".wpdiscuz-sort-button-active").attr("data-sorting");d&&o.append("sorting",d),o.append("lastParentId",0),o.append("offset",0),M=1,o.append("wpdType",t.hasClass("wpdf-active")?"":a),o.append("isFirstLoad",1),e(this).hasClass("wpdf-inline")?e(this).hasClass("wpdf-active")?e(".wpd-comment-info-bar").hide():e(".wpd-comment-info-bar").css("display","flex"):e(".wpd-comment-info-bar").hide(),ce(z,!1,o).done(function(a){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof a&&a.success&&(t.toggleClass("wpdf-active"),e(".wpd-load-comments").remove(),e(".wpd-comment").remove(),e(".wpd-thread-list").prepend(a.data.comment_list),K(a),r=a.data.loadLastCommentId,e(".wpd-load-more-submit").blur(),ie(a)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpdf-reacted.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=new FormData;a.append("action","wpdMostReactedComment"),ce(z,!1,a).done(function(a){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof a&&a.success&&(e("#comment-"+a.data.parentCommentID).length?e("#comment-"+a.data.parentCommentID).parents("[id^=wpd-comm-"+a.data.parentCommentID+"]").replaceWith(a.data.message):e("#comment-"+a.data.commentId).length||e(".wpd-thread-list").prepend(a.data.message),ie(a),e("html, body").animate({scrollTop:e("#comment-"+a.data.commentId).offset().top-32},1e3))}).fail(function(a,o,d){console.log(d),e(".fas",t).removeClass("fa-pulse fa-spinner")})}),e(document).delegate(".wpdf-hottest.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=new FormData;a.append("action","wpdHottestThread"),ce(z,!1,a).done(function(a){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof a&&a.success&&(e("#comment-"+a.data.commentId).length?e("#comment-"+a.data.commentId).parents("[id^=wpd-comm-"+a.data.commentId+"]").replaceWith(a.data.message):e(".wpd-thread-list").prepend(a.data.message),ie(a),e("html, body").animate({scrollTop:e("#comment-"+a.data.commentId).offset().top-32},1e3))}).fail(function(a,o,d){console.log(d),e(".fas",t).removeClass("fa-pulse fa-spinner")})}),e(document).delegate(".wpd-filter-view-all","click",function(){e(".wpdf-inline.wpdf-active.wpd_not_clicked").trigger("click")}),e(document).delegate(".wpd-follow-link.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=B(V(t,0)),o=new FormData;o.append("action","wpdFollowUser"),o.append("commentId",a),ce(z,!0,o).done(function(a){t.addClass("wpd_not_clicked"),"object"==typeof a?a.success?(wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.code],"success"),t.removeClass("wpd-follow-active"),a.data.followTip&&t.attr("wpd-tooltip",a.data.followTip),a.data.followClass&&t.addClass(a.data.followClass)):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error"):console.log(a),e(".fas",t).removeClass("fa-pulse fa-spinner"),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,o,d){console.log(d),e(".fas",t).removeClass("fa-pulse fa-spinner"),e("#wpdiscuz-loading-bar").fadeOut(250)})}),Z(),e(document).delegate(".wc_email","keyup",function(){Z(e(this))}),j&&e("#wpdcom").length){if(e("#wpd-bubble-wrapper").hover(function(){e(this).addClass("wpd-bubble-hover")},function(){e(this).removeClass("wpd-bubble-hover")}),k&&!Cookies.get(wpdiscuzAjaxObj.cookieHideBubbleHint)&&setTimeout(function(){e("#wpd-bubble-wrapper").addClass("wpd-bubble-hover"),Cookies.set(wpdiscuzAjaxObj.cookieHideBubbleHint,"1",{expires:7,path:"/"}),setTimeout(function(){e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover")},1e3*x)},1e3*k),"content_left"===O)if(e(".entry-content").length){var ee=(te=Math.min(e(".entry-content").offset().left,e("#wpdcom").offset().left)-120)>25?te:25;e("#wpd-bubble-wrapper").css({left:ee+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else if(e(".post-entry").length){ee=(te=Math.min(e(".post-entry").offset().left,e("#wpdcom").offset().left)-120)>25?te:25;e("#wpd-bubble-wrapper").css({left:ee+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else if(e(".container").length){var te;ee=(te=Math.min(e(".container").offset().left,e("#wpdcom").offset().left)-120)>25?te:25;e("#wpd-bubble-wrapper").css({left:ee+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else e("#wpd-bubble-wrapper").css({left:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-corner");else"left_corner"===O?(e("#wpd-bubble-wrapper").css({left:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-corner")):"right_corner"===O&&(e("#wpd-bubble-wrapper").css({right:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-right-corner"));e("#wpd-bubble-wrapper").show(),e("#wpd-bubble-add-message-close").click(function(t){t.preventDefault(),t.stopPropagation(),e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover")}),e("#wpd-bubble").click(function(){e("html, body").animate({scrollTop:e("#wpdcom").offset().top-60},1e3,function(){wpdiscuzLoadRichEditor?wpDiscuzEditor.createEditor("#wpd-editor-0_0").focus():e("#wc-textarea-0_0").focus()})}),e("#wpd-bubble-comment-close").click(function(t){t.preventDefault(),e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added")}),e("#wpd-bubble-comment-reply-link a").click(function(){var t=e(this).attr("href");setTimeout(function(){e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added"),P(!0);var a=t.match(/#comment\-(\d+)/);D=D.filter(function(e){return e!=a[1]}),e("#wpd-bubble-count .wpd-new-comments-count").text(D.length),0==D.length&&e("#wpd-bubble-count").removeClass("wpd-new-comments")},100)}),e("#wpd-bubble-count").click(function(){if(D.length){var t=new FormData;t.append("action","wpdBubbleUpdate"),t.append("newCommentIds",D.join()),ce(z,!0,t).done(function(t){"object"==typeof t&&t.success&&(t.data.message=t.data.message.filter(function(t){if(!e("#comment-"+t.comment_id).length)return t}),Q(t),e("#wpd-bubble-count").removeClass("wpd-new-comments"),e("#wpd-bubble-count .wpd-new-comments-count").text("0"),D=[],e("html, body").animate({scrollTop:e(e(".wpd-new-loaded-comment")[0]).offset().top-60},1e3),ie(t)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(e,t,a){console.log(a)})}})}if((j&&C||i)&&(t||!t&&p)&&setTimeout(function t(){e.ajax({type:"GET",url:wpdiscuzAjaxObj.bubbleUpdateUrl,data:{postId:s,lastId:l,visibleCommentIds:Y()}}).done(function(a){if(!E)if("object"==typeof a){if(a.ids.length){i&&((n=new FormData).append("action","wpdUpdateAutomatically"),n.append("loadLastCommentId",r),n.append("visibleCommentIds",Y()),ce(z,!1,n).done(function(t){E||"object"==typeof t&&t.success&&(Q(t),e(".wpd-thread-info").html(t.data.wc_all_comments_count_new_html),t.data.wc_all_comments_count_new=parseInt(t.data.wc_all_comments_count_new),e("#wpd-bubble-all-comments-count").text(t.data.wc_all_comments_count_new),t.data.wc_all_comments_count_new?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide(),r=t.data.loadLastCommentId)}).fail(function(e,t,a){console.log(a)})),a.ids=a.ids.filter(function(t){if(!e("#comment-"+t).length)return t});var o=5e3;l=parseInt(a.ids[a.ids.length-1]),D=D.concat(a.ids),y&&a.commentText&&(e("#wpd-bubble-author-avatar").html(a.avatar),e("#wpd-bubble-author-name").html(a.authorName),e("#wpd-bubble-comment-date span").html(a.commentDate),e("#wpd-bubble-comment-text").html(a.commentText),e("#wpd-bubble-comment-reply-link a").attr("href",a.commentLink),e("#wpd-bubble-notification-message").show(),o=1e4);var d=parseInt(e(".wpd-new-comments-count").text());d+=a.ids.length,e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added"),e("#wpd-bubble-wrapper").addClass("wpd-new-comment-added"),setTimeout(function(){e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added")},o),e(".wpd-new-comments-count").text(d),e("#wpd-bubble-count").addClass("wpd-new-comments"),a.all_comments_count=parseInt(a.all_comments_count),e("#wpd-bubble-all-comments-count").text(a.all_comments_count),a.all_comments_count?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide(),e(".wpd-thread-info").html(a.all_comments_count_html)}}else console.log(a);var n;setTimeout(t,c)}).fail(function(e,a,o){console.log(o),setTimeout(t,c)})},c),e(".wpd-inline-form-wrapper").length){var ae=new FormData;ae.append("action","wpdGetInlineCommentForm"),ce(z,!1,ae).done(function(t){"object"==typeof t?t.success?(e(".wpd-inline-form-wrapper").append(t.data),e.each(e("[name=_wpd_inline_nonce]"),function(){var t=e(this).attr("id"),a=e(this).parents(".wpd-inline-shortcode").attr("id");e(this).attr("id",t+"-"+a.substring(a.lastIndexOf("-")+1))}),e(".wpd-inline-opened").addClass("wpd-active"),e(".wpd-inline-opened").find(".wpd-inline-form-wrapper").show(),e(".wpd-inline-opened").find(".wpd-inline-icon").addClass("wpd-open"),e(".wpd-inline-opened").find(".wpd-inline-icon").removeClass("wpd-ignored"),se()):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[t.data],"error"):console.log(t)}).fail(function(e,t,a){console.log(a)})}function oe(t){if(e(t).hasClass("wpd-inline-shortcode"))var a=e(t).attr("id");else a=e(t).parents(".wpd-inline-shortcode").attr("id");return a.substring(a.lastIndexOf("-")+1)}function de(){e(".wpd-inline-form-wrapper").hide(),e(".wpd-inline-shortcode").removeClass("wpd-active"),e(".wpd-inline-icon").removeClass("wpd-open")}function ne(){e.each(e(".wpd-inline-shortcode:not(.wpd-inline-opened) .wpd-inline-icon"),function(){var t=e(this),a=t.offset().top-window.pageYOffset;a>0&&a<300&&("blink"===A?(t.addClass("wpd-blink"),setTimeout(function(){t.removeClass("wpd-blink")},3e3)):(t.parents(".wpd-inline-shortcode").addClass("wpd-active"),t.siblings(".wpd-inline-form-wrapper").show(),t.addClass("wpd-open"),se(t.siblings(".wpd-inline-form-wrapper"))))})}function se(t){if(t){if(t.offset().left<=10)t.css("left",Math.ceil(parseInt(t.css("left"))-t.offset().left+10)),(a=Math.ceil(t.siblings(".wpd-inline-icon.wpd-open").offset().left-t.offset().left+2))<3&&(a=3),document.styleSheets[0].addRule("#"+t.parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+a+"px;");else if(t.offset().left+t.width()>document.body.clientWidth-10){var a;t.css("left",Math.ceil(parseInt(t.css("left"))+(document.body.clientWidth-(t.offset().left+t.width()))-10)),(a=Math.ceil(t.siblings(".wpd-inline-icon.wpd-open").offset().left-t.offset().left+2))>t.width()-3&&(a=t.width()-3),document.styleSheets[0].addRule("#"+t.parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+a+"px;")}}else e.each(e(".wpd-inline-form-wrapper:visible"),function(){if(e(this).offset().left<=10)e(this).css("left",Math.ceil(parseInt(e(this).css("left"))-e(this).offset().left+10)),(t=Math.ceil(e(this).siblings(".wpd-inline-icon.wpd-open").offset().left-e(this).offset().left+2))<3&&(t=3),document.styleSheets[0].addRule("#"+e(this).parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+t+"px;");else if(e(this).offset().left+e(this).width()>document.body.clientWidth-10){var t;e(this).css("left",Math.ceil(parseInt(e(this).css("left"))+(document.body.clientWidth-(e(this).offset().left+e(this).width()))-10)),(t=Math.ceil(e(this).siblings(".wpd-inline-icon.wpd-open").offset().left-e(this).offset().left+2))>e(this).width()-3&&(t=e(this).width()-3),document.styleSheets[0].addRule("#"+e(this).parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+t+"px;")}})}function ie(t,a,o,d){t.data.callbackFunctions&&e.each(t.data.callbackFunctions,function(e){"function"==typeof wpdiscuzAjaxObj[t.data.callbackFunctions[e]]?wpdiscuzAjaxObj[t.data.callbackFunctions[e]](t,a,o,d):console.log(t.data.callbackFunctions[e]+" is not a function")})}function ce(t,a,o){a&&e("#wpdiscuz-loading-bar").show(),o.append("postId",s);var d=o.get("action");wpdiscuzAjaxObj.dataFilterCallbacks&&wpdiscuzAjaxObj.dataFilterCallbacks[d]&&e.each(wpdiscuzAjaxObj.dataFilterCallbacks[d],function(e){"function"==typeof wpdiscuzAjaxObj[wpdiscuzAjaxObj.dataFilterCallbacks[d][e]]&&(o=wpdiscuzAjaxObj[wpdiscuzAjaxObj.dataFilterCallbacks[d][e]](o,t,a))});var n=t?wpdiscuzAjaxObj.url:wpdiscuzAjaxObj.customAjaxUrl;return e.ajax({type:"POST",url:n,data:o,contentType:!1,processData:!1})}e(document).delegate("body","click",function(t){if(e(t.target).hasClass("wpd-inline-form-close")||e(t.target).parents(".wpd-inline-form-close").length)t.preventDefault(),e(t.target).parents(".wpd-inline-form-wrapper").hide(),e(t.target).parents(".wpd-inline-shortcode").removeClass("wpd-active"),e(t.target).parents(".wpd-inline-form-wrapper").siblings(".wpd-inline-icon").removeClass("wpd-open");else if(!e(t.target).hasClass("wpd-inline-form-wrapper")&&!e(t.target).parents(".wpd-inline-form-wrapper").length){de();var a="";e(t.target).hasClass("wpd-inline-icon")?a=e(t.target):e(t.target).parents(".wpd-inline-icon").length&&(a=e(t.target).parents(".wpd-inline-icon")),a.length&&(a.parents(".wpd-inline-shortcode").addClass("wpd-active"),a.siblings(".wpd-inline-form-wrapper").show(),a.addClass("wpd-open"),a.removeClass("wpd-ignored"),se(a.siblings(".wpd-inline-form-wrapper")))}(!e(t.target).hasClass("wpd-last-inline-comments-wrapper")&&!e(t.target).parents(".wpd-last-inline-comments-wrapper").length||e(t.target).parents(".wpd-last-inline-comments-wrapper").length&&e(t.target).hasClass("wpd-load-inline-comment"))&&e(".wpd-last-inline-comments-wrapper").remove()}),e(document).delegate(".wpd-inline-submit.wpd_not_clicked","click",function(t){t.preventDefault();var a=e(this),o=e(this).parents(".wpd_inline_comm_form");if(o[0].checkValidity()){e(this).removeClass("wpd_not_clicked");var d=new FormData;d.append("action","wpdAddInlineComment"),d.append("inline_form_id",oe(o)),e.each(e("input, textarea",o),function(t,a){"checkbox"===this.type?e(this).is(":checked")&&d.append(e(a).attr("name"),e(a).val()):d.append(e(a).attr("name"),e(a).val())}),ce(z,!0,d).done(function(t){if(a.addClass("wpd_not_clicked"),"object"==typeof t)if(t.success){o[0].reset(),de();var d=parseInt(t.data.newCount),n=a.parents(".wpd-inline-icon-wrapper").find(".wpd-inline-icon-count");n.text(d),d?n.addClass("wpd-has-comments"):n.removeClass("wpd-has-comments"),e(".wpd-thread-info").html(t.data.allCommentsCountNewHtml),t.data.allCommentsCountNew=parseInt(t.data.allCommentsCountNew),e("#wpd-bubble-all-comments-count").text(t.data.allCommentsCountNew),t.data.allCommentsCountNew?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide(),t.data.message&&X(t.data.message),wpdiscuzAjaxObj.setCommentMessage(t.data.notification,"success")}else t.data&&wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[t.data],"error");else wpdiscuzAjaxObj.setCommentMessage(t,"error");e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e(document).delegate(".wpd-form","keydown",function(t){t.ctrlKey&&13==t.keyCode&&e(this).find(".wc_comm_submit").trigger("click")}),e(document).delegate("#wpdiscuz-edit-form","keydown",function(t){t.ctrlKey&&13==t.keyCode&&e(this).find(".wc_save_edited_comment").trigger("click")}),e(document).delegate(".wpd-inline-comment-content","keydown",function(t){t.ctrlKey&&13==t.keyCode&&e(this).parents(".wpd_inline_comm_form").find(".wpd-inline-submit.wpd_not_clicked").trigger("click")}),e(document).delegate(".wpd-inline-icon-count.wpd-has-comments","click",function(){var t=e(this),a=new FormData;a.append("action","wpdGetLastInlineComments"),a.append("inline_form_id",oe(t)),ce(z,!0,a).done(function(a){"object"==typeof a?a.success?e(a.data).insertAfter(t):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error"):console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd-view-all-inline-comments","click",function(t){t.preventDefault(),e(this).parents(".wpd-last-inline-comments-wrapper").remove(),e(".wpdf-inline").hasClass("wpdf-active")||e(".wpdf-inline").trigger("click"),e("html, body").animate({scrollTop:e(".wpdf-inline").offset().top-32},1e3)}),e(document).delegate(".wpd-feedback-content-link","click",function(t){t.preventDefault();var a=e(this).data("feedback-content-id");e("html, body").animate({scrollTop:e("#wpd-inline-"+a).offset().top-38},1e3,function(){e("#wpd-inline-"+a).addClass("wpd-active")})}),"scroll_open"!==A&&"blink"!==A||(ne(),e(window).scroll(ne)),e(document).delegate("#wpd-post-rating.wpd-not-rated .wpd-rate-starts svg","click",function(){var t=new FormData,a=e(this).index();a>=0&&a<5&&(t.append("action","wpdUserRate"),t.append("rating",a+1),ce(z,!0,t).done(function(t){"object"==typeof t?t.success?location.reload(!0):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[t.data],"error"):console.log(t),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}))}),e("#wpdiscuz-subscribe-form").submit(function(t){t.preventDefault();var a,o,n=e(this);if(n[0].checkValidity()&&(a=n,o=!0,"2.0"===d&&e("input[name=wpdiscuz_recaptcha_subscribe_form]",a).length&&!e("input[name=wpdiscuz_recaptcha_subscribe_form]",a).val().length?(o=!1,e(".wpdiscuz-recaptcha",a).css("border","1px solid red")):"2.0"===d&&e("input[name=wpdiscuz_recaptcha_subscribe_form]",a).length&&e(".wpdiscuz-recaptcha",a).css("border","none"),o)){var s=new FormData;s.append("action","wpdAddSubscription"),e("*",n).each(function(){""!=this.name&&"checkbox"!=this.type&&"radio"!=this.type&&s.append(this.name+"",e(this).val()),"checkbox"!=this.type&&"radio"!=this.type||e(this).is(":checked")&&s.append(this.name+"",e(this).val())}),ce(z,!0,s).done(function(t){"object"==typeof t?t.success?(wpdiscuzAjaxObj.setCommentMessage(t.data,"success"),setTimeout(function(){location.reload(!0)},3e3)):wpdiscuzAjaxObj.setCommentMessage(t.data,"error"):wpdiscuzAjaxObj.setCommentMessage(t,"error"),e("#wpdiscuz-loading-bar").fadeOut(250),E=!1}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e(".wpd-unsubscribe").click(function(t){t.preventDefault();var a=new FormData;a.append("action","wpdUnsubscribe"),a.append("sid",e(this).data("sid")),a.append("skey",e(this).data("skey")),ce(z,!0,a).done(function(t){"object"==typeof t?t.success?(wpdiscuzAjaxObj.setCommentMessage(t.data,"success"),setTimeout(function(){location.reload(!0)},3e3)):wpdiscuzAjaxObj.setCommentMessage(t.data,"error"):console.log(t),e("#wpdiscuz-loading-bar").fadeOut(250),E=!1}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),wpdiscuzAjaxObj.resetActiveFilters=function(t){e(".wpd-filter.wpdf-active"+(t?":not("+t+")":"")).removeClass("wpdf-active")},wpdiscuzAjaxObj.getAjaxObj=ce});var onloadCallback=function(){if(document.getElementById("wpdiscuz-recaptcha-0_0")&&"2.0"===wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion&&(1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!wpdiscuzAjaxObj.is_user_logged_in||1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&wpdiscuzAjaxObj.is_user_logged_in))try{grecaptcha.render("wpdiscuz-recaptcha-0_0",{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(e){jQuery("#wpdiscuz-recaptcha-field-0_0").val("key")},"expired-callback":function(){jQuery("#wpdiscuz-recaptcha-field-0_0").val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}};
7
+ /* Colorbox */
8
+ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=t('<button type="button"/>').attr({id:Z+"Slideshow"}),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;U&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),U&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if($=!0,q=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e).eq(0);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
9
+ /* Media Uploader */
10
+ jQuery(document).ready(function(e){if(e(document).delegate("#wpdcom .wmu-upload-wrap","click",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0)}),e(document).delegate(".wmu-add-files","change",function(){var a=e(this),t=a.parents(".wpd_comm_form"),d=a[0].files?a[0].files:[];d.length&&function(a,t,d){var o=new FormData;o.append("action","wmuUploadFiles"),o.append("wmu_nonce",wpdiscuzAjaxObj.wmuSecurity),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val());var s=0;e.each(d,function(e,a){s+=a.size,o.append(wpdiscuzAjaxObj.wmuInput+"["+e+"]",a)}),s>parseInt(wpdiscuzAjaxObj.wmuMaxFileSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhraseMaxFileSize,"error",3e3):s>parseInt(wpdiscuzAjaxObj.wmuPostMaxSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhrasePostMaxSize,"error",3e3):wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(a){a.success?(e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(a.data.attachmentsHtml),a.data.tooltip&&e(".wmu-upload-wrap").attr("wpd-tooltip",a.data.tooltip),function(a,t){e.each(t.data.previewsData,function(t,d){e(".wmu-action-wrap .wmu-"+t+"-tab",a).html(""),e.each(d,function(d,o){var s=o.id,i="",m=o.fullname,r=o.shortname;t==wpdiscuzAjaxObj.wmuKeyImages?(i=o.url,r=""):t==wpdiscuzAjaxObj.wmuKeyVideos?i=wpdiscuzAjaxObj.wmuIconVideo:t==wpdiscuzAjaxObj.wmuKeyFiles&&(i=wpdiscuzAjaxObj.wmuIconFile);var u='<div class="wmu-preview [PREVIEW_TYPE_CLASS]" title="[PREVIEW_TITLE]" data-wmu-type="[PREVIEW_TYPE]" data-wmu-attachment="[PREVIEW_ID]"><div class="wmu-preview-remove"><img class="wmu-preview-img" src="[PREVIEW_ICON]"><div class="wmu-file-name">[PREVIEW_FILENAME]</div><div class="wmu-delete">&nbsp;</div></div></div>';u=(u=(u=(u=(u=(u=u.replace("[PREVIEW_TYPE_CLASS]","wmu-preview-"+t)).replace("[PREVIEW_TITLE]",m)).replace("[PREVIEW_TYPE]",t)).replace("[PREVIEW_ID]",s)).replace("[PREVIEW_ICON]",i)).replace("[PREVIEW_FILENAME]",r),e(".wmu-action-wrap .wmu-"+t+"-tab",a).removeClass("wmu-hide").append(u)})})}(t,a),a.data.errors&&(wpdiscuzAjaxObj.setCommentMessage(a.data.errors,"error",3e3),console.log(a.data.errors))):a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.errorCode],"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}(0,t,d)}),e(document).delegate(".wmu-attachment-delete","click",function(a){if(confirm(wpdiscuzAjaxObj.wmuPhraseConfirmDelete)){var t=e(this).data("wmu-attachment"),d=new FormData;d.append("action","wmuDeleteAttachment"),d.append("attachmentId",t),wpdiscuzAjaxObj.getAjaxObj(!0,!0,d).done(function(a){if(a.success){var d=e(".wmu-attachment-"+t).parents(".wmu-comment-attachments");e(".wmu-attachment-"+t).remove(),e(".wmu-attached-images *",d).length||e(".wmu-attached-images",d).remove(),e(".wmu-attached-videos *",d).length||e(".wmu-attached-videos",d).remove(),e(".wmu-attached-files *",d).length||e(".wmu-attached-files",d).remove()}else a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.errorCode],"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}else console.log("canceled")}),e(document).delegate(".wmu-preview","click",function(){var a=e(this),t=a.parents(".wpd_comm_form"),d=(a.data("wmu-type"),a.data("wmu-attachment")),o=new FormData;o.append("action","wmuRemoveAttachmentPreview"),o.append("attachmentId",d),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val()),wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(d){if(d.success){a.remove();var o=e(".wmu-tabs",t);e.each(o,function(a,t){e(".wmu-preview",t).length?e(t).removeClass("wmu-hide"):e(t).addClass("wmu-hide")}),e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(d.data.attachmentsHtml),d.data.tooltip&&e(".wmu-upload-wrap").attr("wpd-tooltip",d.data.tooltip)}else d.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[d.data.errorCode],"error",3e3):d.data.error&&wpdiscuzAjaxObj.setCommentMessage(d.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}),parseInt(wpdiscuzAjaxObj.wmuIsLightbox)){function a(){e(".wmu-lightbox").colorbox({maxHeight:"95%",maxWidth:"95%",rel:"wmu-lightbox",fixed:!0})}a(),wpdiscuzAjaxObj.wmuAddLightBox=a}wpdiscuzAjaxObj.wmuHideAll=function(a,t){"object"==typeof a?a.success?(e(".wmu-tabs",t).addClass("wmu-hide"),e(".wmu-preview",t).remove(),e(".wmu-attached-data-info",t).remove()):console.log(a.data):console.log(a)}});
11
+ /* Lity */
12
+ !function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(e,require("jquery")):e.lity=t(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=e.document,i=t(e),r=t.Deferred,o=t("html"),a=[],l="aria-hidden",s="lity-"+l,d='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',c={esc:!0,handler:null,handlers:{image:C,inline:function(e,n){var i,r,o;try{i=t(e)}catch(e){return!1}if(!i.length)return!1;return r=t('<i style="display:none !important"/>'),o=i.hasClass("lity-hide"),n.element().one("lity:remove",function(){r.before(i).remove(),o&&!i.closest(".lity-content").length&&i.addClass("lity-hide")}),i.removeClass("lity-hide").after(r)},youtube:function(e){var n=f.exec(e);if(!n)return!1;return k(x(e,w("https://www.youtube"+(n[2]||"")+".com/embed/"+n[4],t.extend({autoplay:1},b(n[5]||"")))))},vimeo:function(e){var n=y.exec(e);if(!n)return!1;return k(x(e,w("https://player.vimeo.com/video/"+n[3],t.extend({autoplay:1},b(n[4]||"")))))},googlemaps:function(e){var t=v.exec(e);if(!t)return!1;return k(x(e,w("https://www.google."+t[3]+"/maps?"+t[6],{output:t[6].indexOf("layer=c")>0?"svembed":"embed"})))},facebookvideo:function(e){var n=p.exec(e);if(!n)return!1;0!==e.indexOf("http")&&(e="https:"+e);return k(x(e,w("https://www.facebook.com/plugins/video.php?href="+e,t.extend({autoplay:1},b(n[4]||"")))))},iframe:k},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},u=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,f=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,y=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,v=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,p=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,m=function(){var e=n.createElement("div"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return t[i];return!1}();function h(e){var t=r();return m&&e.length?(e.one(m,t.resolve),setTimeout(t.resolve,500)):t.resolve(),t.promise()}function g(e,n,i){if(1===arguments.length)return t.extend({},e);if("string"==typeof n){if(void 0===i)return void 0===e[n]?null:e[n];e[n]=i}else t.extend(e,n);return this}function b(e){for(var t,n=decodeURI(e.split("#")[0]).split("&"),i={},r=0,o=n.length;r<o;r++)n[r]&&(i[(t=n[r].split("="))[0]]=t[1]);return i}function w(e,n){return e+(e.indexOf("?")>-1?"&":"?")+t.param(n)}function x(e,t){var n=e.indexOf("#");return-1===n?t:(n>0&&(e=e.substr(n)),t+e)}function C(e,n){var i=n.opener()&&n.opener().data("lity-desc")||"Image with no description",o=t('<img src="'+e+'" alt="'+i+'"/>'),a=r(),l=function(){var e;a.reject((e="Failed loading image",t('<span class="lity-error"/>').append(e)))};return o.on("load",function(){if(0===this.naturalWidth)return l();a.resolve(o)}).on("error",l),a.promise()}function k(e){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+e+'"/></div>'}function E(){return n.documentElement.clientHeight?.9*n.documentElement.clientHeight:Math.round(.9*i.height())}function j(e){var t,i,r,o=z();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&(t=e,i=o.element().find(d),r=i.index(n.activeElement),t.shiftKey&&r<=0?(i.get(i.length-1).focus(),t.preventDefault()):t.shiftKey||r!==i.length-1||(i.get(0).focus(),t.preventDefault())))}function D(){t.each(a,function(e,t){t.resize()})}function z(){return 0===a.length?null:a[0]}function T(e,d,u,f){var y,v,p,m,b,w,x,C,k,z,T,O=this,q=!1,W=!1;d=t.extend({},c,d),v=t(d.template),O.element=function(){return v},O.opener=function(){return u},O.options=t.proxy(g,O,d),O.handlers=t.proxy(g,O,d.handlers),O.resize=function(){q&&!W&&p.css("max-height",E()+"px").trigger("lity:resize",[O])},O.close=function(){if(q&&!W){var e;W=!0,(e=O).element().attr(l,"true"),1===a.length&&(o.removeClass("lity-active"),i.off({resize:D,keydown:j})),((a=t.grep(a,function(t){return e!==t})).length?a[0].element():t(".lity-hidden")).removeClass("lity-hidden").each(function(){var e=t(this),n=e.data(s);n?e.attr(l,n):e.removeAttr(l),e.removeData(s)});var d=r();if(f&&(n.activeElement===v[0]||t.contains(v[0],n.activeElement)))try{f.focus()}catch(e){}return p.trigger("lity:close",[O]),v.removeClass("lity-opened").addClass("lity-closed"),h(p.add(v)).always(function(){p.trigger("lity:remove",[O]),v.remove(),v=void 0,d.resolve()}),d.promise()}},m=e,b=O,w=d.handlers,x=d.handler,k="inline",z=t.extend({},w),x&&z[x]?(C=z[x](m,b),k=x):(t.each(["inline","iframe"],function(e,t){delete z[t],z[t]=w[t]}),t.each(z,function(e,t){return!t||!(!t.test||t.test(m,b))||(!1!==(C=t(m,b))?(k=e,!1):void 0)})),y={handler:k,content:C||""},v.attr(l,"false").addClass("lity-loading lity-opened lity-"+y.handler).appendTo("body").focus().on("click","[data-lity-close]",function(e){t(e.target).is("[data-lity-close]")&&O.close()}).trigger("lity:open",[O]),T=O,1===a.unshift(T)&&(o.addClass("lity-active"),i.on({resize:D,keydown:j})),t("body > *").not(T.element()).addClass("lity-hidden").each(function(){var e=t(this);void 0===e.data(s)&&e.data(s,e.attr(l)||null)}).attr(l,"true"),t.when(y.content).always(function(e){p=t(e).css("max-height",E()+"px"),v.find(".lity-loader").each(function(){var e=t(this);h(e).always(function(){e.remove()})}),v.removeClass("lity-loading").find(".lity-content").empty().append(p),q=!0,p.trigger("lity:ready",[O])})}function O(e,i,r){e.preventDefault?(e.preventDefault(),e=(r=t(this)).data("lity-target")||r.attr("rel")||r.attr("src")):r=t(r);var o=new T(e,t.extend({},r.data("lity-options")||r.data("lity"),i),r,n.activeElement);if(!e.preventDefault)return o}return C.test=function(e){return u.test(e)},O.version="2.2.2",O.options=t.proxy(g,O,c),O.handlers=t.proxy(g,O,c.handlers),O.current=z,t(n).on("click.lity","[data-wpd-lity]",O),O});
13
+ /* My Content and Settings */
14
+ jQuery(document).ready(function(e){var t=0,d=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled);e(document).delegate(".wpd-info,.wpd-page-link,.wpd-delete-content,.wpd-user-email-delete-links","click",function(e){e.preventDefault()}),e(document).delegate(".wpd-info.wpd-not-clicked","click",function(t){var n=e(this);n.removeClass("wpd-not-clicked");var a=new FormData;return a.append("action","wpdGetInfo"),function(t,n){var a=e(".fas",t),i=a.attr("class");a.removeClass(),a.addClass("fas fa-pulse fa-spinner"),wpdiscuzAjaxObj.getAjaxObj(d,!1,n).done(function(d){t.addClass("wpd-not-clicked"),a.removeClass(),a.addClass(i),d&&(e("#wpdUserContentInfo").html(d),e("#wpdUserContentInfo ul.wpd-list .wpd-list-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo div.wpd-content .wpd-content-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo").is(":visible")||e("#wpdUserContentInfoAnchor").trigger("click"))})}(n,a),!1}),e(document).delegate(".wpd-list-item","click",function(){var t=e("input.wpd-rel",this).val();e("#wpdUserContentInfo .wpd-list-item").removeClass("wpd-active"),e("#wpdUserContentInfo .wpd-content-item").removeClass("wpd-active");var n=e(this);if(e("#wpdUserContentInfo #"+t).text().length)n.addClass("wpd-active"),e("#wpdUserContentInfo #"+t).addClass("wpd-active");else{var a=new FormData;a.append("action",n.attr("data-action")),a.append("page",0),e("#wpdUserContentInfo #"+t).addClass("wpd-active"),e("#wpdUserContentInfo #"+t).css("text-align","center"),wpdiscuzAjaxObj.getAjaxObj(d,!0,a).done(function(d){d&&(e("#wpdUserContentInfo #"+t).css("text-align",""),n.addClass("wpd-active"),e("#wpdUserContentInfo #"+t).html(d)),e("#wpdiscuz-loading-bar").hide()})}}),e(document).delegate(".wpd-page-link.wpd-not-clicked","click",function(t){var n=e(this);n.removeClass("wpd-not-clicked");var a=n.data("wpd-page"),i=e(".wpd-active .wpd-pagination .wpd-action").val(),o=new FormData;o.append("action",i),o.append("page",a),wpdiscuzAjaxObj.getAjaxObj(d,!0,o).done(function(t){n.addClass("wpd-not-clicked"),t&&e(".wpd-content-item.wpd-active").html(t),e("#wpdiscuz-loading-bar").hide()})}),e(document).delegate(".wpd-delete-content.wpd-not-clicked","click",function(){var n=e(this),a=parseInt(n.data("wpd-content-id"));if(!isNaN(a)){var i=n.data("wpd-delete-action");if("wpdDeleteComment"==i&&!confirm(wpdiscuzUCObj.msgConfirmDeleteComment))return!1;if("wpdCancelSubscription"==i&&!confirm(wpdiscuzUCObj.msgConfirmCancelSubscription))return!1;if("wpdCancelFollow"==i&&!confirm(wpdiscuzUCObj.msgConfirmCancelFollow))return!1;var o=e("i",n),s=o.attr("class"),c=e(".wpd-wrapper .wpd-page-number").val(),l=e(".wpd-content-item.wpd-active").children(".wpd-item").length;n.removeClass("wpd-not-clicked"),o.removeClass().addClass("fas fa-pulse fa-spinner"),1==l&&c>0&&(c-=1);var p=new FormData;p.append("id",a),p.append("page",c),p.append("action",i),wpdiscuzAjaxObj.getAjaxObj(d,!1,p).done(function(d){n.addClass("wpd-not-clicked"),o.removeClass().addClass(s),e(".wpd-content-item.wpd-active").html(d),t=1})}}),e(document).delegate("[data-lity-close]","click",function(d){e(d.target).is("[data-lity-close]")&&t&&window.location.reload(!0)}),e(document).delegate(".wpd-user-email-delete-links.wpd-not-clicked","click",function(){var t=e(this);t.removeClass("wpd-not-clicked"),e(".wpd-loading",t).addClass("wpd-show");var n=new FormData;n.append("action","wpdEmailDeleteLinks"),wpdiscuzAjaxObj.getAjaxObj(d,!1,n).done(function(d){t.addClass("wpd-not-clicked"),e("[data-lity-close]",window.parent.document).trigger("click")})}),e(document).delegate(".wpd-user-settings-button.wpd-not-clicked","click",function(){var t=e(this);t.removeClass("wpd-not-clicked");var n=t.data("wpd-delete-action");if(console.log(n),"deleteCookies"!==n){t.find(".wpd-loading").addClass("wpd-show");var a=new FormData;a.append("action","wpdGuestAction"),a.append("guestAction",n),wpdiscuzAjaxObj.getAjaxObj(d,!1,a).done(function(d){t.addClass("wpd-not-clicked"),t.find(".wpd-loading").removeClass("wpd-show");try{var n=e.parseJSON(d);t.after(n.message);var a=t.next(".wpd-guest-action-message");a.fadeIn(100).fadeOut(7e3,function(){a.remove(),1===parseInt(n.code)&&(t.parent().remove(),e(".wpd-delete-all-comments").length||e(".wpd-delete-all-subscriptions").length||e(".wpd-delete-all-cookies").parent().addClass("wpd-show"))})}catch(e){console.log(e)}})}else!function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var d=e[t],n=d.indexOf("="),a=n>-1?d.substr(0,n):d;Cookies.remove(a.trim())}location.reload(!0)}()})});
15
+ /* Social */
16
+ function wpcShareCommentFB(e,s){FB.ui({method:"share",href:e,quote:s},function(e){})}(wpdiscuzAjaxObj.enableFbLogin||wpdiscuzAjaxObj.enableFbShare)&&wpdiscuzAjaxObj.facebookAppID&&(!function(e,s,n){var o,a=e.getElementsByTagName(s)[0];e.getElementById(n)||((o=e.createElement(s)).id=n,o.src="//connect.facebook.net/en_US/sdk.js",a.parentNode.insertBefore(o,a))}(document,"script","facebook-jssdk"),window.fbAsyncInit=function(){FB.init({appId:wpdiscuzAjaxObj.facebookAppID,cookie:!0,xfbml:!0,version:"v2.8"})}),jQuery(document).ready(function(e){var s;(s=Cookies.get("wpdiscuz_social_login_message"))&&"undefined"!==s&&(Cookies.remove("wpdiscuz_social_login_message"),wpdiscuzAjaxObj.setCommentMessage(decodeURIComponent(s.replace(/\+/g,"%20")),"error")),Cookies.get("wpdiscuz_scroll_to_comments")&&(Cookies.remove("wpdiscuz_scroll_to_comments",{path:"/"}),e("html, body").animate({scrollTop:e("#comments").offset().top-32},1e3)),e(document).delegate(".wpd-comment-share .fa-facebook-f","click",function(){if(1==wpdiscuzAjaxObj.enableFbShare){var s=e(this).parents(".wpd-comment").find(".wpd-comment-right").attr("id"),n=window.location.href;-1!==n.indexOf("#")&&(n=n.substring(0,n.indexOf("#"))),wpcShareCommentFB(n+="#"+s,e(this).parents(".wpd-comment-right").find(".wpd-comment-text").text())}});var n="";function o(e,s){var n,o="";t(s,1),Cookies.set("wpdiscuz_scroll_to_comments",1,{path:"/"}),"facebook"===e&&0==wpdiscuzAjaxObj.facebookUseOAuth2?FB.getLoginStatus(function(t){"connected"===t.status?(n=t.authResponse.accessToken,o=t.authResponse.userID,a(e,n,o,s)):FB.login(function(t){"connected"===t.status&&(n=t.authResponse.accessToken,o=t.authResponse.userID,a(e,n,o,s))},{scope:"public_profile,email"})}):a(e,n,o,s)}function a(s,n,o,a){return e.ajax({type:"POST",url:wpdiscuzAjaxObj.url,data:{action:"wpd_social_login",provider:s,token:n,userID:o,postID:wpdiscuzAjaxObj.wc_post_id}}).done(function(s){!function(s,n){try{var o=e.parseJSON(s),a=o.code,i=o.message,c=o.url;200===parseInt(a)?location.assign(c):wpdiscuzAjaxObj.setCommentMessage(i,"error")}catch(e){console.log(e)}t(n,0)}(s,a)}),""}function t(e,s){1===s?e.find(".wpdiscuz-social-login-spinner").show():e.find(".wpdiscuz-social-login-spinner").hide()}e(document).delegate("#wpdcom .wpd-social-login .wpdiscuz-login-button","click",function(){var s=e(this).parents(".wpd-social-login");!function(e,s){1!=parseInt(wpdiscuzAjaxObj.socialLoginAgreementCheckbox)||1==Cookies.get("socialLoginAgreementConfirmed")?o(e,s):s.parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").first().slideDown(700)}(n=function(e){var s="";e.hasClass("wpdsn-fb")&&(s="facebook");e.hasClass("wpdsn-insta")&&(s="instagram");e.hasClass("wpdsn-gg")&&(s="google");e.hasClass("wpdsn-ds")&&(s="disqus");e.hasClass("wpdsn-wp")&&(s="wordpress");e.hasClass("wpdsn-tw")&&(s="twitter");e.hasClass("wpdsn-vk")&&(s="vk");e.hasClass("wpdsn-ok")&&(s="ok");e.hasClass("wpdsn-linked")&&(s="linkedin");e.hasClass("wpdsn-yandex")&&(s="yandex");e.hasClass("wpdsn-mailru")&&(s="mailru");e.hasClass("wpdsn-weixin")&&(s="wechat");e.hasClass("wpdsn-weibo")&&(s="weibo");e.hasClass("wpdsn-qq")&&(s="qq");e.hasClass("wpdsn-baidu")&&(s="baidu");return s}(e(this)),s)}),e(document).delegate("#wpdcom .wpd-agreement-buttons-right .wpd-agreement-button","click",function(){var s=e(this).parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").slideUp(700);e(this).hasClass("wpd-agreement-button-agree")&&(wpdiscuzAjaxObj.isCookiesEnabled&&Cookies.set("socialLoginAgreementConfirmed",1,{expires:30,path:"/"}),o(n,s))})});
assets/js/wpdiscuz-combo.min.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Cookie */
2
+ (function(factory){var registeredInModuleLoader=false;if(typeof define==='function'&&define.amd){define(factory);registeredInModuleLoader=true}if(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=true}if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api}}}(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes){result[key]=attributes[key]}}return result}function init(converter){function api(key,value,attributes){var result;if(typeof document==='undefined'){return}if(arguments.length>1){attributes=extend({path:'/'},api.defaults,attributes);if(typeof attributes.expires==='number'){var expires=new Date();expires.setMilliseconds(expires.getMilliseconds()+attributes.expires*864e+5);attributes.expires=expires}attributes.expires=attributes.expires?attributes.expires.toUTCString():'';try{result=JSON.stringify(value);if(/^[\{\[]/.test(result)){value=result}}catch(e){}if(!converter.write){value=encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)}else{value=converter.write(value,key)}key=encodeURIComponent(String(key));key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue}stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true){continue}stringifiedAttributes+='='+attributes[attributeName]}return(document.cookie=key+'='+value+stringifiedAttributes)}if(!key){result={}}var cookies=document.cookie?document.cookie.split('; '):[];var rdecode=/(%[0-9A-Z]{2})+/g;var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split('=');var cookie=parts.slice(1).join('=');if(cookie.charAt(0)==='"'){cookie=cookie.slice(1,-1)}try{var name=parts[0].replace(rdecode,decodeURIComponent);cookie=converter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rdecode,decodeURIComponent);if(this.json){try{cookie=JSON.parse(cookie)}catch(e){}}if(key===name){result=cookie;break}if(!key){result[name]=cookie}}catch(e){}}return result}api.set=api;api.get=function(key){return api.call(api,key)};api.getJSON=function(){return api.apply({json:true},[].slice.call(arguments))};api.defaults={};api.remove=function(key,attributes){api(key,'',extend(attributes,{expires:-1}))};api.withConverter=init;return api}return init(function(){})}));
3
+ /* Quill */
4
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(48),a=n(49),s=n(50),u=n(51),c=n(52),f=n(11),h=n(29),p=n(30),d=n(28),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new s("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=p.ANY);var n;if("string"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof t)t&p.LEVEL&p.BLOCK?n=h.block:t&p.LEVEL&p.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&p.LEVEL&n.scope&&e&p.TYPE&n.scope?n:null}function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map(function(t){return l(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)u[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return a(e,t),e}(Error);e.ParchmentError=s;var u={},c={},f={},h={};e.DATA_KEY="__blot";var p;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(p=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},i=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return void 0===i||n.call(t,i)};t.exports=function t(){var e,n,r,l,a,s,u=arguments[0],c=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},c=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});c<f;++c)if(null!=(e=arguments[c]))for(n in e)r=u[n],l=e[n],u!==l&&(h&&l&&(i(l)||(a=o(l)))?(a?(a=!1,s=r&&o(r)?r:[]):s=r&&i(r)?r:{},u[n]=t(h,s,l)):void 0!==l&&(u[n]=l));return u}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:a(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(2),f=r(c),h=n(4),p=r(h),d=n(0),y=r(d),v=n(14),b=r(v),g=n(5),m=r(g),_=n(8),O=r(_),w=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),s(e,[{key:"attach",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new y.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new p.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=y.default.query(t,y.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=y.default.create(x.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(y.default.Embed);w.scope=y.default.Scope.BLOCK_BLOT;var x=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return l(e,t),s(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(y.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),a(e))},new p.default).insert("\n",a(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(y.default.query(r,y.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),i=o.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var l=this;o.reduce(function(t,e){return l=l.split(t,!0),l.insertAt(0,e),e.length},t+i.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof b.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(y.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[m.default,y.default.Embed,O.default],e.bubbleFormats=a,e.BlockEmbed=w,e.default=x},function(t,e,n){var r=n(54),o=n(12),i=n(2),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+l.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<e&&r.hasNext();){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=l.length(i)}return new s(n)},s.prototype.compose=function(t){for(var e=l.iterator(this.ops),n=l.iterator(t.ops),r=new s;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var o=Math.min(e.peekLength(),n.peekLength()),i=e.next(o),a=n.next(o);if("number"==typeof a.retain){var u={};"number"==typeof i.retain?u.retain=o:u.insert=i.insert;var c=l.attributes.compose(i.attributes,a.attributes,"number"==typeof i.retain);c&&(u.attributes=c),r.push(u)}else"number"==typeof a.delete&&"number"==typeof i.retain&&r.push(a)}return r.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}}),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(8),c=r(u),f=n(0),h=r(f),p=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&h.default.query(r,h.default.Scope.BLOT)){var i=this.isolate(t,n);o&&i.wrap(r,o)}else s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(h.default.Inline);p.allowedChildren=[p,h.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(e=(0,N.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==S.DEFAULTS.theme){if(e.theme=S.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=T.default;var n=(0,N.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach(function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach(function(e){!0===t.modules[e]&&(t.modules[e]={})})});var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce(function(t,e){var n=S.import("modules/"+e);return null==n?P.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t},{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,N.default)(!0,{},S.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce(function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t},{}),e}function a(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===g.default.sources.USER)return new d.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=u(o,l,e):0!==r&&(o=u(o,n,r,e)),this.setSelection(o,g.default.sources.SILENT)),l.length()>0){var a,s=[g.default.events.TEXT_CHANGE,l,i,e];if((a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,s)}}return l}function s(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function u(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof d.default){var l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),a=f(l,2);o=a[0],i=a[1]}else{var s=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&r===g.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),u=f(s,2);o=u[0],i=u[1]}return new x.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="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},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(53);var p=n(4),d=r(p),y=n(57),v=r(y),b=n(9),g=r(b),m=n(7),_=r(m),O=n(0),w=r(O),x=n(22),k=r(x),E=n(2),N=r(E),j=n(10),A=r(j),q=n(32),T=r(q),P=(0,A.default)("quill"),S=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=l(e,r),this.container=this.options.container,null==this.container)return P.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=w.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new v.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,e,o)},t)});var s=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||w.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&P.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||P.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?w.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),h(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),i=new d.default;if(null==r)return i;if(w.default.query(t,w.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatLine(t,e,l)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatText(t,e,l)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return a.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,0,n,r,o),c=f(u,4);return t=c[0],l=c[2],o=c[3],a.call(this,function(){return i.editor.insertText(t,e,l)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){t=new d.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=s(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new x.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new d.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){return t=new d.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.6",S.imports={delta:d.default,parchment:w.default,"core/module":_.default,"core/theme":T.default},e.expandConfig=l,e.overload=s,e.default=S},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(58),c=r(u),f=n(10),h=r(f),p=(0,h.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var d=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",p.error),t}return l(e,t),a(e,[{key:"emit",value:function(){p.log.apply(p,arguments),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(c.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},e.default=d},function(t,e,n){"use strict";function r(t){if(i.indexOf(t)<=i.indexOf(l)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=console)[t].apply(e,r)}}function o(t){return i.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],l="warn";r.level=o.level=function(t){l=t},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),u(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var f=a(t),h=a(e)}catch(t){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),i=f.length-1;i>=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var l=Array.prototype.slice,a=n(55),s=n(56),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(4),f=r(c),h=n(0),p=r(h),d=n(3),y=r(d),v=n(5),b=r(v),g=n(8),m=r(g),_=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(b.default);_.blotName="code",_.tagName="CODE";var O=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),s(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(m.default,this.length()-1),o=a(r,1),i=o[0];null!=i&&i.deleteAt(i.length()-1,1),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=p.default.query(r,p.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var l=this.newlineIndex(t,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof e&&u.formatAt(0,t-l+n-a,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n")),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=p.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof p.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(y.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",e.Code=_,e.default=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"insertInto",value:function(t,n){0===t.children.length?a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(u.default.Embed);c.blotName="break",c.tagName="BR",e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(5),c=function(t){return t&&t.__esModule?t:{default:t}}(u),f=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),a(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return l(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(c.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}Object.defineProperty(e,"__esModule",{value:!0});var l="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},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(25),u=r(s),c=n(106),f=r(c),h=0,p=function(){function t(e){var n=this;o(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(t){switch(t.keyCode){case u.default.keys.ENTER:n.togglePicker();break;case u.default.keys.ESCAPE:n.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return a(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),i(this.label,"aria-expanded"),i(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n.addEventListener("keydown",function(t){switch(t.keyCode){case u.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case u.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=f.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout(function(){return t.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":l(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(47),l=n(27),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))})},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(28),l=n(17),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(27),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(12),i=n(2),l={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},t.exports=l},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(n,r,o,i,c){function f(n,o){if(null===n)return null;if(0===o)return n;var y,v;if("object"!=typeof n)return n;if(t(n,a))y=new a;else if(t(n,s))y=new s;else if(t(n,u))y=new u(function(t,e){n.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(e.__isArray(n))y=[];else if(e.__isRegExp(n))y=new RegExp(n.source,l(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(e.__isDate(n))y=new Date(n.getTime());else{if(d&&Buffer.isBuffer(n))return y=new Buffer(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===i?(v=Object.getPrototypeOf(n),y=Object.create(v)):(y=Object.create(i),v=i)}if(r){var b=h.indexOf(n);if(-1!=b)return p[b];h.push(n),p.push(y)}t(n,a)&&n.forEach(function(t,e){var n=f(e,o-1),r=f(t,o-1);y.set(n,r)}),t(n,s)&&n.forEach(function(t){var e=f(t,o-1);y.add(e)});for(var g in n){var m;v&&(m=Object.getOwnPropertyDescriptor(v,g)),m&&null==m.set||(y[g]=f(n[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(n),g=0;g<_.length;g++){var O=_[g],w=Object.getOwnPropertyDescriptor(n,O);(!w||w.enumerable||c)&&(y[O]=f(n[O],o-1),w.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(c)for(var x=Object.getOwnPropertyNames(n),g=0;g<x.length;g++){var k=x[g],w=Object.getOwnPropertyDescriptor(n,k);w&&w.enumerable||(y[k]=f(n[k],o-1),Object.defineProperty(y,k,{enumerable:!1}))}return y}"object"==typeof r&&(o=r.depth,i=r.prototype,c=r.includeNonEnumerable,r=r.circular);var h=[],p=[],d="undefined"!=typeof Buffer;return void 0===r&&(r=!0),void 0===o&&(o=1/0),f(n,o)}function n(t){return Object.prototype.toString.call(t)}function r(t){return"object"==typeof t&&"[object Date]"===n(t)}function o(t){return"object"==typeof t&&"[object Array]"===n(t)}function i(t){return"object"==typeof t&&"[object RegExp]"===n(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var a;try{a=Map}catch(t){a=function(){}}var s;try{s=Set}catch(t){s=function(){}}var u;try{u=Promise}catch(t){u=function(){}}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=n,e.__isDate=r,e.__isArray=o,e.__isRegExp=i,e.__getRegExpFlags=l,e}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(0),c=r(u),f=n(21),h=r(f),p=n(12),d=r(p),y=n(9),v=r(y),b=n(10),g=r(b),m=(0,g.default)("quill:selection"),_=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(t,e){t===v.default.events.TEXT_CHANGE&&e.length()>0&&r.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}}),this.update(v.default.sources.SILENT)}return s(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(r,s);var h=this.scroll.leaf(t+e),p=a(h,2);if(l=p[0],s=p[1],null==l)return null;var d=l.position(s,!0),y=a(d,2);return r=y[0],s=y[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",b=void 0;return r instanceof Text?(s<r.data.length?(f.setStart(r,s),f.setEnd(r,s+1)):(f.setStart(r,s-1),f.setEnd(r,s),v="right"),b=f.getBoundingClientRect()):(b=l.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(o(r)));return new _(l,i-l)}},{key:"normalizeNative",value:function(t){if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,l=e.scroll.leaf(t),s=a(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=a(f,2);i=h[0],c=h[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=a(o,1),l=i[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r));s=a(u,1)[0]}if(null!=l&&null!=s){var c=t.getBoundingClientRect();n.top<c.top?t.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,e=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(e,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[v.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((l=this.emitter).emit.apply(l,[v.default.events.EDITOR_CHANGE].concat(s)),t!==v.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),t}();e.Range=_,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=r(a),u=n(3),c=r(u),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(s.default.Container);f.allowedChildren=[c.default,u.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"value",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(u.default.Attributor.Style),f=new u.default.Attributor.Class("color","ql-color",{scope:u.default.Scope.INLINE}),h=new c("color","color",{scope:u.default.Scope.INLINE});e.ColorAttributor=c,e.ColorClass=f,e.ColorStyle=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){var n,r=t===D.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},o(n,r,/^$/),o(n,"handler",function(n){var r=n.index;t===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(b(o,1)[0]instanceof T.default.Embed)||(t===D.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,S.default.sources.USER):this.quill.setSelection(n.index-1,S.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,S.default.sources.USER):this.quill.setSelection(n.index+n.length+1,S.default.sources.USER),!1)}),n}function u(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=b(n,1),o=r[0],i={};if(0===e.offset){var l=this.quill.getLine(t.index-1),a=b(l,1),s=a[0];if(null!=s&&s.length()>1){var u=o.formats(),c=this.quill.getFormat(t.index-1,1);i=A.default.attributes.diff(u,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,S.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),l=b(i,1),a=l[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=b(s,1),c=u[0];if(c){var f=a.formats(),h=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,S.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,S.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=A.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,S.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,S.default.sources.USER),this.quill.setSelection(t.index,S.default.sources.SILENT),this.quill.focus()}function h(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],S.default.sources.USER))})}function p(t){return{key:D.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),l=b(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,f=a.newlineIndex(u+s+o),h=a.domNode.textContent.slice(c,f).split("\n");s=0,h.forEach(function(e,i){t?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=e.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function d(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],S.default.sources.USER)}}}function y(t){if("string"==typeof t||"number"==typeof t)return y({key:t});if("object"===(void 0===t?"undefined":v(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=D.keys[t.key.toUpperCase()])t.key=D.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[B]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var v="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},b=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=n(21),_=r(m),O=n(12),w=r(O),x=n(2),k=r(x),E=n(4),N=r(E),j=n(20),A=r(j),q=n(0),T=r(q),P=n(6),S=r(P),C=n(10),L=r(C),M=n(7),R=r(M),I=(0,L.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",D=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},h),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},u),r.addBinding({key:e.keys.DELETE},{collapsed:!0},c)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},u),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},c)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},u),r.listen(),r}return a(e,t),g(e,null,[{key:"match",value:function(t,e){return e=y(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),g(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(null==r||null==r.key)return I.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,k.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var l=t.quill.getLine(i.index),a=b(l,2),s=a[0],u=a[1],c=t.quill.getLeaf(i.index),f=b(c,2),h=f[0],p=f[1],d=0===i.length?[h,p]:t.quill.getLeaf(i.index+i.length),y=b(d,2),g=y[0],m=y[1],_=h instanceof T.default.Text?h.value().slice(0,p):"",O=g instanceof T.default.Text?g.value().slice(m):"",x={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:t.quill.getFormat(i),offset:u,prefix:_,suffix:O};o.some(function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==x.format[t]}))return!1}else if("object"===v(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,w.default)(e.format[t],x.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,i,x))})&&n.preventDefault()}}}})}}]),e}(R.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:d("bold"),italic:d("italic"),underline:d("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,S.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new N.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,S.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,S.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(0,k.default)({},r.formats(),{list:"checked"}),l=(new N.default).retain(t.index).insert("\n",i).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=b(n,2),o=r[0],i=r[1],l=(new N.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=b(r,2),i=o[0],l=o[1];if(l>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",S.default.sources.USER),this.quill.history.cutoff();var s=(new N.default).retain(t.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:a});this.quill.updateContents(s,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,S.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(new N.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,S.default.sources.USER)}},"embed left":s(D.keys.LEFT,!1),"embed left shift":s(D.keys.LEFT,!0),"embed right":s(D.keys.RIGHT,!1),"embed right shift":s(D.keys.RIGHT,!0)}},e.default=D,e.SHORTKEY=B},function(t,e,n){"use strict";t.exports={align:{"":n(75),center:n(76),right:n(77),justify:n(78)},background:n(79),blockquote:n(80),bold:n(81),clean:n(82),code:n(40),"code-block":n(40),color:n(83),direction:{"":n(84),rtl:n(85)},float:{center:n(86),full:n(87),left:n(88),right:n(89)},formula:n(90),header:{1:n(91),2:n(92)},italic:n(93),image:n(94),indent:{"+1":n(95),"-1":n(96)},link:n(97),list:{ordered:n(98),bullet:n(99),check:n(100)},script:{sub:n(101),super:n(102)},strike:n(103),underline:n(104),video:n(105)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=n(29),i=n(30),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=a},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),h=n(8),p=r(h),d=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return l(e,t),u(e,null,[{key:"value",value:function(){}}]),u(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,i=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];r=l[0],o=l[1],i=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var s=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof p.default?(r=this.next.domNode,this.next.insertAt(0,s),this.textNode.data=e.CONTENTS):(this.textNode.data=s,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var u=[o,i].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),c=a(u,2);return o=c[0],i=c[1],{startNode:r,startOffset:o,endNode:r,endOffset:i}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return o(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(0),c=r(u),f=n(8),h=r(f),p="\ufeff",d=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(p),n.rightGuard=document.createTextNode(p),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return l(e,t),a(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(p).join("");if(t===this.leftGuard)if(this.prev instanceof h.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=p,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(c.default.Embed);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);e.AlignAttribute=l,e.AlignClass=a,e.AlignStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=n(24),l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=l,e.BackgroundStyle=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);e.DirectionAttribute=l,e.DirectionClass=a,e.DirectionStyle=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c={scope:u.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new u.default.Attributor.Class("font","ql-font",c),h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"value",value:function(t){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(u.default.Attributor.Style),p=new h("font","font-family",c);e.FontStyle=p,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=i,e.SizeStyle=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"optimize",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(u.default);c.blotName="bold",c.tagName=["STRONG","B"],e.default=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(16),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(t,n){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),i}return i(e,t),l(e,[{key:"buildItem",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(u.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(16),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(t,n){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return i(e,t),l(e,[{key:"selectItem",value:function(t,n){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(u.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var o=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return o(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},f=n(2),h=r(f),p=n(4),d=r(p),y=n(9),v=r(y),b=n(25),g=r(b),m=n(32),_=r(m),O=n(41),w=r(O),x=n(42),k=r(x),E=n(16),N=r(E),j=n(43),A=r(j),q=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],P=[!1,"serif","monospace"],S=["1","2","3",!1],C=["small",!1,"large","huge"],L=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),l=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,l),r}return l(e,t),u(e,[{key:"addModule",value:function(t){var n=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&s(t,q),new k.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&s(t,T,"background"===n?"#ffffff":"#000000"),new w.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?s(t,P):t.classList.contains("ql-header")?s(t,S):t.classList.contains("ql-size")&&s(t,C)),new N.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(v.default.events.EDITOR_CHANGE,r)}}]),e}(_.default);L.DEFAULTS=(0,h.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new d.default).retain(r.index).delete(r.length).insert({image:n.target.result}),v.default.sources.USER),t.quill.setSelection(r.index+1,v.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return l(e,t),u(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){g.default.match(e,"enter")?(t.save(),e.preventDefault()):g.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,v.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=a(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",v.default.sources.USER),this.quill.setSelection(r+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=M,e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(46),i=r(o),l=n(34),a=n(36),s=n(62),u=n(63),c=r(u),f=n(64),h=r(f),p=n(65),d=r(p),y=n(35),v=n(24),b=n(37),g=n(38),m=n(39),_=r(m),O=n(66),w=r(O),x=n(15),k=r(x),E=n(67),N=r(E),j=n(68),A=r(j),q=n(69),T=r(q),P=n(70),S=r(P),C=n(71),L=r(C),M=n(13),R=r(M),I=n(72),B=r(I),D=n(73),U=r(D),F=n(74),H=r(F),K=n(26),z=r(K),Z=n(16),V=r(Z),W=n(41),G=r(W),Y=n(42),X=r(Y),$=n(43),Q=r($),J=n(107),tt=r(J),et=n(108),nt=r(et);i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":M.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":N.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":S.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":H.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":z.default,"ui/picker":V.default,"ui/icon-picker":X.default,"ui/color-picker":G.default,"ui/tooltip":Q.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(6),a=r(l),s=n(3),u=r(s),c=n(14),f=r(c),h=n(23),p=r(h),d=n(31),y=r(d),v=n(33),b=r(v),g=n(5),m=r(g),_=n(59),O=r(_),w=n(8),x=r(w),k=n(60),E=r(k),N=n(61),j=r(N),A=n(25),q=r(A);a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":j.default,"modules/keyboard":q.default}),i.default.register(u.default,f.default,y.default,m.default,O.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),i=o[0],l=o[1],a=t-l,s=this.iterator(i);(r=s())&&a<t+e;){var u=r.length();t>a?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,l),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(s),u=[].slice.call(this.observer.takeRecords()),l=u.slice();l.length>0;)e.push(l.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=i.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[v,t]]:[];(n<0||t.length<n)&&(n=null);var o=l(t,e),i=t.substring(0,o);t=t.substring(o),e=e.substring(o),o=a(t,e);var s=t.substring(t.length-o);t=t.substring(0,t.length-o),e=e.substring(0,e.length-o);var c=r(t,e);return i&&c.unshift([v,i]),s&&c.push([v,s]),u(c),null!=n&&(c=f(c,n)),c=h(c)}function r(t,e){var r;if(!t)return[[y,e]];if(!e)return[[d,t]];var i=t.length>e.length?t:e,l=t.length>e.length?e:t,a=i.indexOf(l);if(-1!=a)return r=[[y,i.substring(0,a)],[v,l],[y,i.substring(a+l.length)]],t.length>e.length&&(r[0][0]=r[2][0]=d),r;if(1==l.length)return[[d,t],[y,e]];var u=s(t,e);if(u){var c=u[0],f=u[1],h=u[2],p=u[3],b=u[4],g=n(c,h),m=n(f,p);return g.concat([[v,b]],m)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;c<a;c++)s[c]=-1,u[c]=-1;s[l+1]=0,u[l+1]=0;for(var f=n-r,h=f%2!=0,p=0,v=0,b=0,g=0,m=0;m<o;m++){for(var _=-m+p;_<=m-v;_+=2){var O,w=l+_;O=_==-m||_!=m&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1;for(var x=O-_;O<n&&x<r&&t.charAt(O)==e.charAt(x);)O++,x++;if(s[w]=O,O>n)v+=2;else if(x>r)p+=2;else if(h){var k=l+f-_;if(k>=0&&k<a&&-1!=u[k]){var E=n-u[k];if(O>=E)return i(t,e,O,x)}}}for(var N=-m+b;N<=m-g;N+=2){var E,k=l+N;E=N==-m||N!=m&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1;for(var j=E-N;E<n&&j<r&&t.charAt(n-E-1)==e.charAt(r-j-1);)E++,j++;if(u[k]=E,E>n)g+=2;else if(j>r)b+=2;else if(!h){var w=l+f-N;if(w>=0&&w<a&&-1!=s[w]){var O=s[w],x=l+O-w;if(E=n-E,O>=E)return i(t,e,O,x)}}}}return[[d,t],[y,e]]}function i(t,e,r,o){var i=t.substring(0,r),l=e.substring(0,o),a=t.substring(r),s=e.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function a(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function s(t,e){function n(t,e,n){for(var r,o,i,s,u=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(u,c+1));){var h=l(t.substring(n),e.substring(c)),p=a(t.substring(0,n),e.substring(0,c));f.length<p+h&&(f=e.substring(c-p,c)+e.substring(c,c+h),r=t.substring(0,n-p),o=t.substring(n+h),i=e.substring(0,c-p),s=e.substring(c+h))}return 2*f.length>=t.length?[r,o,i,s,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.length<r.length)return null;var i,s=n(r,o,Math.ceil(r.length/4)),u=n(r,o,Math.ceil(r.length/2));if(!s&&!u)return null;i=u?s&&s[4].length>u[4].length?s:u:s;var c,f,h,p;return t.length>e.length?(c=i[0],f=i[1],h=i[2],p=i[3]):(h=i[0],p=i[1],c=i[2],f=i[3]),[c,f,h,p,i[4]]}function u(t){t.push([v,""]);for(var e,n=0,r=0,o=0,i="",s="";n<t.length;)switch(t[n][0]){case y:o++,s+=t[n][1],n++;break;case d:r++,i+=t[n][1],n++;break;case v:r+o>1?(0!==r&&0!==o&&(e=l(s,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==v?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,[v,s.substring(0,e)]),n++),s=s.substring(e),i=i.substring(e)),0!==(e=a(s,i))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[y,s]):0===o?t.splice(n-r,r+o,[d,i]):t.splice(n-r-o,r+o,[d,i],[y,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==v?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==v&&t[n+1][0]==v&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&u(t)}function c(t,e){if(0===e)return[v,t];for(var n=0,r=0;r<t.length;r++){var o=t[r];if(o[0]===d||o[0]===v){var i=n+o[1].length;if(e===i)return[r+1,t];if(e<i){t=t.slice();var l=e-n,a=[o[0],o[1].slice(0,l)],s=[o[0],o[1].slice(l)];return t.splice(r,1,a,s),[r+1,t]}n=i}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=c(t,e),r=n[1],o=n[0],i=r[o],l=r[o+1];if(null==i)return t;if(i[0]!==v)return t;if(null!=l&&i[1]+l[1]===l[1]+i[1])return r.splice(o,2,l,i),p(r,o,2);if(null!=l&&0===l[1].indexOf(i[1])){r.splice(o,2,[l[0],i[1]],[0,i[1]]);var a=l[1].slice(i[1].length);return a.length>0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return t}function h(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r<t.length;r+=1)t[r-2][0]===v&&function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===d&&n(t[r-1][1])&&t[r][0]===y&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var o=[],r=0;r<t.length;r+=1)t[r][1].length>0&&o.push(t[r]);return o}function p(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}var d=-1,y=1,v=0,b=n;b.INSERT=y,b.DELETE=d,b.EQUAL=v,t.exports=b},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=o?n:r,e.supported=n,e.unsupported=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)},{})}function a(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,N.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,N.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new h.default)}Object.defineProperty(e,"__esModule",{value:!0});var s="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},u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(4),h=r(f),p=n(20),d=r(p),y=n(0),v=r(y),b=n(13),g=r(b),m=n(31),_=r(m),O=n(3),w=r(O),x=n(14),k=r(x),E=n(21),N=r(E),j=n(12),A=r(j),q=n(2),T=r(q),P=/^[ -~]*$/,S=function(){function t(e){i(this,t),this.scroll=e,this.delta=this.getDelta()}return c(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=a(t),t.reduce(function(t,o){var i=o.retain||o.delete||o.insert.length||1,l=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var a=o.insert;a.endsWith("\n")&&n&&(n=!1,a=a.slice(0,-1)),t>=r&&!a.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,a);var c=e.scroll.line(t),f=u(c,2),h=f[0],p=f[1],y=(0,T.default)({},(0,O.bubbleFormats)(h));if(h instanceof w.default){var b=h.descendant(v.default.Leaf,p),g=u(b,1),m=g[0];y=(0,T.default)(y,(0,O.bubbleFormats)(m))}l=d.default.attributes.diff(y,l)||{}}else if("object"===s(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(l).forEach(function(n){e.scroll.formatAt(t,i,n,l[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i})}}),this.scroll.optimize(),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=u(t,1),o=e[0];o instanceof w.default?n.push(o):o instanceof v.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(v.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,O.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=l((0,O.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new h.default).retain(t).insert(e,(0,N.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===w.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof k.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=u(r,2),i=o[0],l=o[1],a=0,s=new h.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(t,e+a),f=c.diff((new h.default).insert(n).concat(s)),p=(new h.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&v.default.find(e[0].target)){var o=v.default.find(e[0].target),i=(0,O.bubbleFormats)(o),l=o.offset(this.scroll),a=e[0].oldValue.replace(_.default.CONTENTS,""),s=(new h.default).insert(a),u=(new h.default).insert(o.value());t=(new h.default).retain(l).concat(s.diff(u,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new h.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=S},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(l?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=l?l+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},o.prototype.emit=function(t,e,n,r,o,i){var a=l?l+t:t;if(!this._events[a])return!1;var s,u,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,i),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,r);break;default:if(!s)for(h=1,s=new Array(f-1);h<f;h++)s[h-1]=arguments[h];c[u].fn.apply(c[u].context,s)}}return!0},o.prototype.on=function(t,e,n){var o=new r(e,n||this),i=l?l+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.once=function(t,e,n){var o=new r(e,n||this,!0),i=l?l+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.removeListener=function(t,e,r,o){var i=l?l+t:t;if(!this._events[i])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[i],this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||r&&a.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[i]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==e||o&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[i]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new n:delete this._events[i]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=l?l+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=l,o.EventEmitter=o,void 0!==t&&(t.exports=o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return t instanceof v.default||t instanceof y.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},f=n(0),h=r(f),p=n(9),d=r(p),y=n(3),v=r(y),b=n(14),g=r(b),m=n(13),_=r(m),O=n(23),w=r(O),x=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.optimize(),r.enable(),r}return l(e,t),u(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),o=s(r,2),i=o[0],l=o[1],a=this.line(t+n),u=s(a,1),f=u[0];if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&i!==f&&l>0){if(i instanceof y.BlockEmbed||f instanceof y.BlockEmbed)return void this.optimize();if(i instanceof _.default){var h=i.newlineIndex(i.length(),!0);if(h>-1&&(i=i.split(h+1))===f)return void this.optimize()}else if(f instanceof _.default){var p=f.newlineIndex(0);p>-1&&f.split(p+1)}var d=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,d),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==h.default.query(n,h.default.Scope.BLOCK)){var o=h.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=h.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===h.default.Scope.INLINE_BLOT){var r=h.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(a,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){a(e)?o.push(e):e instanceof h.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=d.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,n,t)}}}]),e}(h.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[v.default,y.BlockEmbed,w.default],e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return"object"===(void 0===e?"undefined":x(e))?Object.keys(e).reduce(function(t,n){return s(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},o({},e,n),r.attributes))},new q.default)}function u(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(u(t).display)>-1}function h(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new q.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=h(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[W]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new q.default):new q.default}function p(t,e,n){return s(n,t,!0)}function d(t,e){var n=P.default.Attributor.Attribute.keys(t),r=P.default.Attributor.Class.keys(t),o=P.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=P.default.query(e,P.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=Y[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=s(e,i)),e}function y(t,e){var n=P.default.query(t);if(null==n)return e;if(n.prototype instanceof P.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new q.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=s(e,n.blotName,n.formats(t)));return e}function v(t,e){return c(e,"\n")||e.insert("\n"),e}function b(){return new q.default}function g(t,e){var n=P.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(P.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new q.default).retain(e.length()-1).retain(1,{indent:r}))}function m(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(u(t).marginTop)+parseFloat(u(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function O(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===u(t).fontStyle&&(n.italic=!0),r.fontWeight&&(u(t).fontWeight.startsWith("bold")||parseInt(u(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=s(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new q.default).insert("\t").concat(e)),e}function w(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!u(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var x="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},k=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),N=n(2),j=r(N),A=n(4),q=r(A),T=n(0),P=r(T),S=n(6),C=r(S),L=n(10),M=r(L),R=n(7),I=r(R),B=n(34),D=n(35),U=n(13),F=r(U),H=n(24),K=n(36),z=n(37),Z=n(38),V=(0,M.default)("quill:clipboard"),W="__ql-matcher",G=[[Node.TEXT_NODE,w],[Node.TEXT_NODE,m],["br",v],[Node.ELEMENT_NODE,m],[Node.ELEMENT_NODE,y],[Node.ELEMENT_NODE,_],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,O],["li",g],["b",p.bind(p,"bold")],["i",p.bind(p,"italic")],["style",b]],Y=[B.AlignAttribute,K.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),X=[B.AlignStyle,D.BackgroundStyle,H.ColorStyle,K.DirectionStyle,z.FontStyle,Z.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),$=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],G.concat(r.options.matchers).forEach(function(t){var e=k(t,2),o=e[0],i=e[1];(n.matchVisual||i!==_)&&r.addMatcher(o,i)}),r}return a(e,t),E(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[F.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new q.default).insert(n,o({},F.default.blotName,e[F.default.blotName]))}var r=this.prepareMatching(),i=k(r,2),l=i[0],a=i[1],s=h(this.container,l,a);return c(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new q.default).retain(s.length()-1).delete(1))),V.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,C.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new q.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),C.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new q.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(C.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,C.default.sources.USER),e.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=k(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[W]=t[W]||[],t[W].push(l)})}}),[e,n]}}]),e}(I.default);$.DEFAULTS={matchers:[],matchVisual:!0},e.default=$,e.matchAttributor=d,e.matchBlot=y,e.matchNewline=m,e.matchSpacing=_,e.matchText=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return a(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),h=n(6),p=r(h),d=n(7),y=r(d),v=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(p.default.events.EDITOR_CHANGE,function(t,e,n,o){t!==p.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==p.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return l(e,t),u(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],p.default.sources.USER),this.ignoreChange=!1;var r=s(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(y.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=v,e.getLastChangeIndex=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(u.default.Attributor.Class),f=new c("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(0),f=r(c),h=n(3),p=r(h),d=n(23),y=r(d),v=function(t){function e(){return i(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"format",value:function(t,n){t!==b.blotName||n?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:u(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(p.default);v.blotName="list-item",v.tagName="LI";var b=function(t){function e(t){i(this,e);var n=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=f.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return a(e,t),s(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),s(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(y.default);b.blotName="list",b.scope=f.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[v],e.ListItem=v,e.default=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(39),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(u.default);c.blotName="script",c.tagName=["SUB","SUP"],e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=n(15),f=["alt","height","width"],h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(3),u=n(15),c=function(t){return t&&t.__esModule?t:{default:t}}(u),f=["height","width"],h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(33),c=r(u),f=n(6),h=r(f),p=n(7),d=r(p),y=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,null,[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(c.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var v=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(y,!0)}}]),e}(d.default);e.FormulaBlot=y,e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(0),c=r(u),f=n(6),h=r(f),p=n(7),d=r(p),y=n(13),v=r(y),b=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(v.default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),m=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){r.highlight(),l=null},r.options.interval)}),r.highlight(),r}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(g,!0),h.default.register(b,!0)}}]),a(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(d.default);m.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=b,e.CodeToken=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function u(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)s(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):s(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(4),d=r(p),y=n(0),v=r(y),b=n(6),g=r(b),m=n(10),_=r(m),O=n(7),w=r(O),x=(0,_.default)("quill:toolbar"),k=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var o=document.createElement("div");u(o,r.options.container),t.container.parentNode.insertBefore(o,t.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var a;return a=x.error("Container required for toolbar",r.options),l(r,a)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(g.default.events.EDITOR_CHANGE,function(t,e){t===g.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return a(e,t),h(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void x.warn("ignoring attaching to disabled format",n,t);if(null==v.default.query(n))return void x.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];i=!l.hasAttribute("selected")&&(l.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var a=e.quill.selection.getRange(),s=f(a,1),u=s[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(v.default.query(n).prototype instanceof v.default.Embed){if(!(i=prompt("Enter "+n)))return;e.quill.updateContents((new d.default).retain(u.index).delete(u.length).insert(o({},n,i)),g.default.sources.USER)}else e.quill.format(n,i,g.default.sources.USER);e.update(u)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),o=r[0],i=r[1];if("SELECT"===i.tagName){var l=void 0;if(null==t)l=null;else if(null==e[o])l=i.querySelector("option[selected]");else if(!Array.isArray(e[o])){var a=e[o];"string"==typeof a&&(a=a.replace(/\"/g,'\\"')),l=i.querySelector('option[value="'+a+'"]')}null==l?(i.value="",i.selectedIndex=-1):l.selected=!0}else if(null==t)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var s=e[o]===i.getAttribute("value")||null!=e[o]&&e[o].toString()===i.getAttribute("value")||null==e[o]&&!i.getAttribute("value");i.classList.toggle("ql-active",s)}else i.classList.toggle("ql-active",null!=e[o])})}}]),e}(w.default);k.DEFAULTS={},k.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=v.default.query(e,v.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,g.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",g.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,g.default.sources.USER),this.quill.format("direction",t,g.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,g.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,g.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,g.default.sources.USER):this.quill.format("list","unchecked",g.default.sources.USER):this.quill.format("list",t,g.default.sources.USER)}}},e.default=k,e.addControls=u},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(2),c=r(u),f=n(9),h=r(f),p=n(44),d=r(p),y=n(22),v=n(26),b=r(v),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return l(e,t),s(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),b.default)}}]),e}(d.default);m.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,o){if(t===h.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===h.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,e.index+e.length-a),u=r.quill.getBounds(new y.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return l(e,t),s(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(p.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(2),f=r(c),h=n(9),p=r(h),d=n(44),y=r(d),v=n(15),b=r(v),g=n(22),m=n(26),_=r(m),O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=O);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return l(e,t),u(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),_.default),this.tooltip=new x(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(y.default);w.DEFAULTS=(0,f.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var x=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return l(e,t),u(e,[{key:"listen",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,p.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===p.default.sources.USER){var o=t.quill.scroll.descendant(b.default,e.index),i=a(o,2),l=i[0],s=i[1];if(null!=l){t.linkRange=new g.Range(e.index-s,l.length());var u=b.default.formats(l.domNode);return t.preview.textContent=u,t.preview.setAttribute("href",u),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(d.BaseTooltip);x.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://example.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=w}]).default});
5
+ /* wpdEditor */
6
+ "use strict";function _typeof(t){return(_typeof="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 _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _classCallCheck(t,e){if(!_instanceof(t,e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}var wpdEditorCounter=function(){function t(e,i){_classCallCheck(this,t),this.quill=e,this.options=i,this.maxCount=i.maxcount,this.minCount=i.mincount,this.container=document.getElementById("wpd-editor-char-counter-"+i.uniqueID),this.submit=document.getElementById("wpd-field-submit-"+i.uniqueID),e.on("editor-change",this.update.bind(this)),this.update()}return _createClass(t,[{key:"calculate",value:function(){var t=this.quill.getText().length,e=this.quill.container.id,i=document.querySelectorAll("#".concat(e," .ql-editor img"));return i.length&&i.forEach(function(e){null!==e.src.match(/https\:\/\/s\.w\.org\/images\/core\/emoji/gi)?t+=e.alt.length:e.classList.contains("wpdem-sticker")?t+=e.alt.length:t+=e.src.length}),t}},{key:"update",value:function(){var t=this.calculate(),e=t-1;if(this.maxCount>0&&t>=this.maxCount&&this.quill.deleteText(this.maxCount,t),this.maxCount>0){var i=this.maxCount-e;this.container.innerText=i>=0?i:0,t+10>this.maxCount?this.container.classList.add("error"):this.container.classList.remove("error")}else this.container&&this.container.remove()}}]),t}();Quill.register("modules/counter",wpdEditorCounter);var Link=Quill.import("formats/link"),wpdEditorLink=function(t){_inherits(i,Link);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,null,[{key:"create",value:function(t){var e=_get(_getPrototypeOf(i),"create",this).call(this,t);t=this.sanitize(t),e.setAttribute("href",t);var n=location.protocol+"//"+location.hostname;return(t.startsWith(n)||"#"===t.charAt(0)||"/"===t.charAt(0)&&"/"!==t.charAt(1))&&e.removeAttribute("target"),e}},{key:"sanitize",value:function(t){var e=_get(_getPrototypeOf(i),"sanitize",this).call(this,t),n=e.slice(0,e.indexOf(":"));return"#"!==e.charAt(0)&&"/"!==e.charAt(0)&&-1===this.PROTOCOL_WHITELIST.indexOf(n)&&(e="http://"+t),e}}]),i}();Quill.register(wpdEditorLink,!0);var WpdEditor=function(){function t(){_classCallCheck(this,t),this.editorWraperPrefix="wpd-editor-wraper",this.textEditorContainer="ql-texteditor",this.textEditorPrefix="wc-textarea",this.editorToolbarPrefix="wpd-editor-toolbar",this.sourceCodeButtonName="sourcecode",this.spoiler="spoiler",this.spoilerPromtTitle=wpdiscuzAjaxObj.wc_spoiler_title,this._container="",this._uniqueid="",this.currentEditor=null,this._editors=new Map,this._handlers=new Map,this._initDefaults()}return _createClass(t,[{key:"addButtonEventHandler",value:function(t,e){this._handlers.set(t,e)}},{key:"createEditor",value:function(t){var e=this;if(this.container=t,this._editors.has(this.uniqueid))this.currentEditor=this._editors.get(this.uniqueid);else{var i="#".concat(this.editorToolbarPrefix,"-").concat(this.uniqueid);wpdiscuzEditorOptions.modules.toolbar=i,wpdiscuzEditorOptions.modules.counter.uniqueID=this.uniqueid;var n=new Quill(this.container,wpdiscuzEditorOptions);n.on("editor-change",function(t){null!==(arguments.length<=1?void 0:arguments[1])&&(e.currentEditor=n,e.container=n.container.id)}),n.clipboard.addMatcher("a",function(t,e){return t.getAttribute("href")===t.innerHTML?new(Quill.import("delta"))([{insert:t.innerHTML}]):e}),document.querySelectorAll("".concat(i," button")).forEach(function(t){t.onclick=function(){e.currentEditor=n,e.container=n.container.id;var i=t.dataset.wpde_button_name;void 0!==i&&"string"==typeof i&&""!==i.trim()&&e._handlers.has(i)&&e._handlers.get(i)(e.currentEditor,e.uniqueid)}}),this._bindTextEditor(n),this._editors.set(this.uniqueid,n),document.getElementById("".concat(this.editorWraperPrefix,"-").concat(this.uniqueid)).style.display=""}return this.currentEditor}},{key:"removeEditor",value:function(t){this.container=t,this._editors.has(this.uniqueid)&&this._editors.delete(this.uniqueid)}},{key:"_bindTextEditor",value:function(t){var e="".concat(this.textEditorPrefix,"-").concat(this.uniqueid),i=document.getElementById(e);i&&(i.style.cssText="display: none;",t.addContainer(this.textEditorContainer).appendChild(i)),this.currentEditor=t}},{key:"_findUniqueId",value:function(){return this.container.substring(this.container.lastIndexOf("-")+1)}},{key:"_initDefaults",value:function(){var t=this;this.addButtonEventHandler(this.sourceCodeButtonName,function(e){document.getElementById("".concat(t.textEditorPrefix,"-").concat(t.uniqueid));var i=document.getElementById("wpd-editor-source-code-wrapper-bg"),n=document.getElementById("wpd-editor-source-code-wrapper"),r=document.getElementById("wpd-editor-source-code"),o=document.getElementById("wpd-editor-uid");i.style.display="block",n.style.display="block",o.value=e.container.id,r.value=e.root.innerHTML}),this.addButtonEventHandler(this.spoiler,function(e){var i=prompt(t.spoilerPromtTitle);if(null!==i){var n=' [spoiler title="'.concat(i,'"] '),r=e.getSelection();null===r&&(r={index:e.getLength()-1,length:0}),0===r.length?(e.insertText(r.index,n+" [/spoiler] ",Quill.sources.USER),e.setSelection(r.index+n.length,Quill.sources.USER)):(e.insertText(r.index,n),e.insertText(r.index+n.length+r.length," [/spoiler] ",Quill.sources.USER),e.setSelection(r.index+n.length+r.length+" [/spoiler] ".length,Quill.sources.USER))}})}},{key:"uniqueid",set:function(t){""!==t&&"string"==typeof t?this._uniqueid=t:""===t?this._uniqueid=this._findUniqueId():console.error("Incorrect uniqueid.")},get:function(){return this._uniqueid}},{key:"container",set:function(t){""!==t&&"string"==typeof t?(this._container=t,this.uniqueid=this._findUniqueId()):console.error("Incorrect uniqueid.")},get:function(){return this._container}}]),t}();
7
+ /* Autogrow */
8
+ jQuery.fn.autoGrow=function(){return this.each(function(){var createMirror=function(textarea){jQuery(textarea).after('<div class="autogrow-textarea-mirror"></div>');return jQuery(textarea).next(".autogrow-textarea-mirror")[0]};var sendContentToMirror=function(textarea){mirror.innerHTML=String(textarea.value).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")+".<br/>.";if(jQuery(textarea).height()!=jQuery(mirror).height())jQuery(textarea).height(jQuery(mirror).height())};var growTextarea=function(){sendContentToMirror(this)};var mirror=createMirror(this);mirror.style.display="none";mirror.style.wordWrap="break-word";mirror.style.padding=jQuery(this).css("padding");mirror.style.width=jQuery(this).css("width");mirror.style.fontFamily=jQuery(this).css("font-family");mirror.style.fontSize=jQuery(this).css("font-size");mirror.style.lineHeight=jQuery(this).css("line-height");this.style.overflow="hidden";this.style.minHeight=this.rows+"em";this.onkeydown=growTextarea;sendContentToMirror(this)})};
9
+ /* wpDiscuz */
10
+ var wpdiscuzLoadRichEditor=parseInt(wpdiscuzAjaxObj.loadRichEditor);if(wpdiscuzLoadRichEditor)var wpDiscuzEditor=new WpdEditor;function wpdMessagesOnInit(e,t){wpdiscuzAjaxObj.setCommentMessage(e,t),setTimeout(function(){location.href=location.href.substring(0,location.href.indexOf("wpdiscuzUrlAnchor")-1)},3e3)}wpdiscuzAjaxObj.setCommentMessage=function(e,t,a){var o="wpdiscuz-message-error";if("[object Array]"===Object.prototype.toString.call(e))for(var d in e)"[object Array]"===Object.prototype.toString.call(t)?"success"===t[d]?o="wpdiscuz-message-success":"warning"===t[d]&&(o="wpdiscuz-message-warning"):"success"===t?o="wpdiscuz-message-success":"warning"===t&&(o="wpdiscuz-message-warning"),jQuery("<div/>").addClass(o).html(e[d]).prependTo("#wpdiscuz-comment-message").delay("[object Array]"===Object.prototype.toString.call(a)?a[d]:a||4e3).fadeOut(1e3,function(){jQuery(this).remove()});else"success"===t?o="wpdiscuz-message-success":"warning"===t&&(o="wpdiscuz-message-warning"),jQuery("<div/>").addClass(o).html(e).prependTo("#wpdiscuz-comment-message").delay(a||4e3).fadeOut(1e3,function(){jQuery(this).remove()})},jQuery(document).ready(function(e){e("body").addClass("wpdiscuz_"+wpdiscuzAjaxObj.version);var t=wpdiscuzAjaxObj.is_user_logged_in,a=1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!t,o=1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&t,d=wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion,n=parseInt(wpdiscuzAjaxObj.commentListLoadType),s=parseInt(wpdiscuzAjaxObj.wc_post_id),i=parseInt(wpdiscuzAjaxObj.commentListUpdateType),c=1e3*parseInt(wpdiscuzAjaxObj.commentListUpdateTimer),p=parseInt(wpdiscuzAjaxObj.liveUpdateGuests),r=wpdiscuzAjaxObj.loadLastCommentId,l=r,m=parseInt(wpdiscuzAjaxObj.firstLoadWithAjax);Cookies.get("wpdiscuz_comments_sorting")&&Cookies.remove("wpdiscuz_comments_sorting",{path:""}),Cookies.get("wordpress_last_visit")&&Cookies.remove("wordpress_last_visit",{path:""}),Cookies.get("wpdiscuz_last_visit")&&Cookies.remove("wpdiscuz_last_visit",{path:""});var w,u=wpdiscuzAjaxObj.storeCommenterData,f=parseInt(wpdiscuzAjaxObj.wmuEnabled),h=wpdiscuzAjaxObj.isCookiesEnabled,b=!0,g=wpdiscuzAjaxObj.cookiehash,_=parseInt(wpdiscuzAjaxObj.isLoadOnlyParentComments),v=parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0,z=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled),j=parseInt(wpdiscuzAjaxObj.enableBubble),C=parseInt(wpdiscuzAjaxObj.bubbleLiveUpdate),k=parseInt(wpdiscuzAjaxObj.bubbleHintTimeout),x=parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout)?parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout):5,y=parseInt(wpdiscuzAjaxObj.bubbleShowNewCommentMessage),O=wpdiscuzAjaxObj.bubbleLocation,A=wpdiscuzAjaxObj.inlineFeedbackAttractionType,I=[],T=[],D=[],E=!1,M=1;(e(".wc_social_plugin_wrapper .wp-social-login-provider-list").length?e(".wc_social_plugin_wrapper .wp-social-login-provider-list").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .the_champ_login_container").length?e(".wc_social_plugin_wrapper .the_champ_login_container").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .social_connect_form").length?e(".wc_social_plugin_wrapper .social_connect_form").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .oneall_social_login_providers").length&&e(".wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content"),wpdiscuzLoadRichEditor&&e("#wpd-editor-0_0").length&&wpDiscuzEditor.createEditor("#wpd-editor-0_0"),e(document).delegate("#wpdcom .ql-editor, #wpdcom .wc_comment","focus",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(v)}),e(document).delegate("#wpdcom textarea","focus",function(){e(this).next(".autogrow-textarea-mirror").length||e(this).autoGrow()}),t)||S({comment_author:Cookies.get("comment_author_"+g),comment_author_email:Cookies.get("comment_author_email_"+g),comment_author_url:Cookies.get("comment_author_url_"+g)});if(e(".wpd-vote-down.wpd-dislike-hidden").remove(),e(".wpd-toolbar-hidden").prev("[id^=wpd-editor-]").css("border-bottom","1px solid #dddddd"),e(document).delegate("#wpd-editor-source-code-wrapper-bg","click",function(){e(this).hide(),e("#wpd-editor-source-code-wrapper").hide(),e("#wpd-editor-uid").val(""),e("#wpd-editor-source-code").val("")}),wpdiscuzLoadRichEditor&&e(document).delegate("#wpd-insert-source-code","click",function(){var t=wpDiscuzEditor.createEditor("#"+e("#wpd-editor-uid").val());t.deleteText(0,t.getLength(),Quill.sources.USER);var a=e("#wpd-editor-source-code").val();a.length&&t.clipboard.dangerouslyPasteHTML(0,a,Quill.sources.USER),t.update(),e("#wpd-editor-source-code-wrapper-bg").hide(),e("#wpd-editor-source-code-wrapper").hide(),e("#wpd-editor-uid").val(""),e("#wpd-editor-source-code").val("")}),e(document).delegate(".wpd-reply-button","click",function(){var n=V(e(this),0);e(this).hasClass("wpdiscuz-clonned")?(wpdiscuzLoadRichEditor?setTimeout(function(){wpDiscuzEditor.createEditor("#wpd-editor-"+n).focus()},v):setTimeout(function(){e("#wc-textarea-"+n).trigger("focus")},v),e("#wpd-secondary-form-wrapper-"+n).slideToggle(v)):function(a){var o=V(a,0);e("#wpdiscuz_form_anchor-"+o).before(function(t){return e("#wpdiscuz_hidden_secondary_form").html().replace(/wpdiscuzuniqueid/g,t)}(o));var d=e("#wpd-secondary-form-wrapper-"+o);if(!t){var n={comment_author:Cookies.get("comment_author_"+g),comment_author_email:Cookies.get("comment_author_email_"+g),comment_author_url:Cookies.get("comment_author_url_"+g)};S(n)}wpdiscuzLoadRichEditor?setTimeout(function(){wpDiscuzEditor.createEditor("#wpd-editor-"+o).focus()},v):setTimeout(function(){e("#wc-textarea-"+o).trigger("focus")},v);d.slideToggle(v,function(){a.addClass("wpdiscuz-clonned")})}(e(this)),function(t){if((a||o)&&"2.0"===d){var n=B(t);setTimeout(function(){if(!T[n])try{T[n]=grecaptcha.render("wpdiscuz-recaptcha-"+t,{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(a){e("#wpdiscuz-recaptcha-field-"+t).val("key")},"expired-callback":function(){e("#wpdiscuz-recaptcha-field-"+t).val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}},1e3)}}(n)}),e(document).delegate("#wpdcom .wpd-comment-link [data-comment-url]","click",function(){var t=e(this).data("comment-url"),a=e("<input/>");a.appendTo("body").css({position:"absolute",top:"-10000000px"}).val(t),a.select(),document.execCommand("copy"),a.remove(),wpdiscuzAjaxObj.setCommentMessage(t+"<br/>"+wpdiscuzAjaxObj.wc_copied_to_clipboard,"success",5e3)}),e(document).delegate(".wpdiscuz-nofollow,.wc_captcha_refresh_img,.wpd-load-more-submit","click",function(e){e.preventDefault()}),e(document).delegate(".wpd-toggle.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked");var a=V(e(this),0),o=e(this),d=e(".fas",o);!o.parents(".wpd-comment:not(.wpd-reply)").children(".wpd-reply").length&&_?function(t,a){var o=B(t),d=new FormData;d.append("action","wpdShowReplies"),d.append("commentId",o),ce(z,!0,d).done(function(o){a.addClass("wpd_not_clicked"),"object"==typeof o&&o.success&&(e("#wpd-comm-"+t).replaceWith(o.data.comment_list),e("#wpd-comm-"+t+" .wpd-toggle .fas").removeClass("fa-chevron-down").addClass("fa-chevron-up"),e("#wpd-comm-"+t+" .wpd-toggle").attr("wpd-tooltip",wpdiscuzAjaxObj.wc_hide_replies_text),e("#wpd-comm-"+t+" .wpd-toggle .wpd-view-replies").remove(),ie(o)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,d){console.log(d),a.addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}(a,t):e("#wpd-comm-"+a+"> .wpd-reply").slideToggle(700,function(){e(this).is(":hidden")?(d.removeClass("fa-chevron-up"),d.addClass("fa-chevron-down"),o.attr("wpd-tooltip",wpdiscuzAjaxObj.wc_show_replies_text)):(d.removeClass("fa-chevron-down"),d.addClass("fa-chevron-up"),o.attr("wpd-tooltip",wpdiscuzAjaxObj.wc_hide_replies_text)),t.addClass("wpd_not_clicked")})}),e(document).delegate(".wpd-new-loaded-comment","mouseenter",function(){e(this).removeClass("wpd-new-loaded-comment")}),e(document).delegate(".wpd-sbs-toggle","click",function(){e(".wpdiscuz-subscribe-bar").slideToggle(v)}),parseInt(wpdiscuzAjaxObj.wpDiscuzIsShowOnSubscribeForm)&&!t&&wpdiscuzAjaxObj.wpDiscuzReCaptchaSK&&("2.0"===d?(setTimeout(function(){try{grecaptcha.render("wpdiscuz-recaptcha-subscribe-form",{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(t){e("#wpdiscuz-recaptcha-field-subscribe-form").val("key")},"expired-callback":function(){e("#wpdiscuz-recaptcha-field-subscribe-form").val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}},1e3),e(document).delegate("#wpdiscuz-subscribe-form","submit",function(t){e("#wpdiscuz-recaptcha-field-subscribe-form").val()?e(".wpdiscuz-recaptcha",e(this)).css("border","none"):(e(".wpdiscuz-recaptcha",e(this)).css("border","1px solid red"),t.preventDefault())})):"3.0"===d&&e(document).delegate("#wpdiscuz_subscription_button","click",function(t){var a=e(this).parents("#wpdiscuz-subscribe-form");t.preventDefault();try{grecaptcha.ready(function(){grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,{action:"wpdiscuz/wpdAddSubscription"}).then(function(e){console.log(5555),document.getElementById("wpdiscuz-recaptcha-field-subscribe-form").value=e,a.submit()},function(e){wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error","error"),console.log(e)})})}catch(t){console.log(t),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+t.message,"error")}})),(a||o)&&"2.0"===d){var F=e(window).width(),L=e("#wpdcom").width();L>=1100&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"65%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"35%"})),L>=940&&L<1100&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"60%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"40%"})),L>=810&&L<940&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"40%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"60%"})),L>=730&&L<810&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"45%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"55%"})),L>=610&&L<730&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.85)","-webkit-transform":"scale(0.85)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"43%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"55%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"30%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"70%"})),F>650&&(L>=510&&L<610&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"center 0","-webkit-transform-origin":"center 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"35%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"63%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"30%",position:"relative",right:"-60px"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"70%"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"})),L>=470&&L<510&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"center 0","-webkit-transform-origin":"center 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"40%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"60%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd_main_comm_form .wc-form-footer").css({"margin-left":"0px"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"})),L<470&&(e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({margin:"0px auto","transform-origin":"center 0","-webkit-transform-origin":"center 0"}),e("#wpdcom .wpd-form-col-left").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-form-col-right").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"}),e("#wpdcom .wpd-secondary-form-wrapper .wc_notification_checkboxes").css({"text-align":"center"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-field-submit").css({"text-align":"center"})))}function R(t,a,o){ce(z||f,!1,a).done(function(a){if(e(o).addClass("wpd_not_clicked"),"object"==typeof a)if(a.success){"collapsed"===wpdiscuzAjaxObj.commentFormView&&e(".wpd-form-foot",t).slideUp(v),e(".wpd-thread-info").html(a.data.wc_all_comments_count_new_html),a.data.wc_all_comments_count_new=parseInt(a.data.wc_all_comments_count_new),e("#wpd-bubble-all-comments-count").text(a.data.wc_all_comments_count_new),a.data.wc_all_comments_count_new?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide();var d=v;a.data.is_main?X(a.data.message):(d=v+700,e("#wpd-secondary-form-wrapper-"+a.data.uniqueid).slideToggle(700),1==a.data.is_in_same_container?e("#wpd-secondary-form-wrapper-"+a.data.uniqueid).after(a.data.message):e("#wpd-comm-"+a.data.uniqueid).after(a.data.message)),function(e){if(!e.data.held_moderate){var t=new FormData;t.append("action","wpdCheckNotificationType"),t.append("comment_id",e.data.new_comment_id),t.append("email",e.data.comment_author_email),t.append("isParent",e.data.is_main),ce(z,!0,t)}}(a),function(e){if(e.data.redirect>0&&e.data.new_comment_id){var t=new FormData;t.append("action","wpdRedirect"),t.append("commentId",e.data.new_comment_id),ce(z,!0,t).done(function(e){"object"==typeof e&&e.success&&setTimeout(function(){location.href=e.data},2e3)}).fail(function(e,t,a){console.log(a)})}}(a),h&&b?function(t){var a=t.comment_author_email,o=t.comment_author,d=t.comment_author_url;null==u?(Cookies.set("comment_author_email_"+g,a),Cookies.set("comment_author_"+g,o),d.length&&Cookies.set("comment_author_url_"+g,d)):(u=parseInt(u),Cookies.set("comment_author_email_"+g,a,{expires:u,path:"/"}),Cookies.set("comment_author_"+g,o,{expires:u,path:"/"}),d.length&&Cookies.set("comment_author_url_"+g,d,{expires:u,path:"/"}));e(".wpd-cookies-checkbox").length&&e(".wpd-cookies-checkbox").attr("checked","checked")}(a.data):b||e(".wpd-cookies-checkbox").removeAttr("checked"),wpdiscuzLoadRichEditor&&wpDiscuzEditor.createEditor("#wpd-editor-"+e(".wpdiscuz_unique_id",t).val()).setContents([{insert:"\n"}]),t.get(0).reset(),S(a.data),e(".wmu-preview-wrap",t).remove(),I.length&&(I.forEach(function(e){e.parents(".wpd-field-checkbox").remove()}),I=[]),parseInt(wpdiscuzAjaxObj.scrollToComment)&&setTimeout(function(){e("html, body").animate({scrollTop:e("#comment-"+a.data.new_comment_id).offset().top-32},1e3)},d),ie(a,t)}else a.data&&(wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error"),ie(a,t));else wpdiscuzAjaxObj.setCommentMessage(a,"error");e("#wpdiscuz-loading-bar").fadeOut(250),E=!1}).fail(function(t,a,d){console.log(d),e(o).addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}function S(t){e(".wpd_comm_form .wc_name").val(t.comment_author),t.comment_author_email&&t.comment_author_email.indexOf("@example.com")<0&&e(".wpd_comm_form .wc_email").val(t.comment_author_email),t.comment_author_url&&e(".wpd_comm_form .wc_website").val(t.comment_author_url)}function q(t,a){e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment").show(),e("#wpd-comm-"+t+" .wpdiscuz-edit-form-wrap").replaceWith(a),e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").show()}e(document).delegate(".wc_comm_submit.wpd_not_clicked","click",function(){var t=e(this),n=1,s=e(this).parents("form");if(s.hasClass("wpd_main_comm_form")||(n=function(t){var a=t.attr("class").split(" "),o="";return e.each(a,function(e,t){"wpd_comment_level"===G(t,!1)&&(o=G(t,!0))}),parseInt(o)+1}(e(this).parents(".wpd-comment"))),J(s,"#wpd-editor-"+e(".wpdiscuz_unique_id",s).val()),s.submit(function(e){e.preventDefault()}),""!==e(".wc_comment",s).val().trim()&&"&nbsp;"!==e(".wc_comment",s).val().trim()){if(s[0].checkValidity()&&(c=s,p=!0,"2.0"===d&&e("input[name=wc_captcha]",c).length&&!e("input[name=wc_captcha]",c).val().length?(p=!1,e(".wpdiscuz-recaptcha",c).css("border","1px solid red")):"2.0"===d&&e("input[name=wc_captcha]",c).length&&e(".wpdiscuz-recaptcha",c).css("border","none"),p)){E=!0,function(t){e(".wpd-agreement-checkbox",t).each(function(){e(this).hasClass("wpd_agreement_hide")&&h&&e(this).prop("checked")&&(Cookies.set(e(this).attr("name")+"_"+g,1,{expires:30,path:"/"}),e("input[name="+e(this).attr("name")+"]").each(function(){I.push(e(this))}))})}(s),e(t).removeClass("wpd_not_clicked");var i=new FormData;if(i.append("action","wpdAddComment"),e(":input",s).each(function(){""!=this.name&&"checkbox"!=this.type&&"radio"!=this.type&&i.append(this.name+"",e(this).val().trim()),"checkbox"!=this.type&&"radio"!=this.type||e(this).is(":checked")&&i.append(this.name+"",e(this).val())}),i.append("wpd_comment_depth",n),wpdiscuzAjaxObj.wpdiscuz_zs&&i.append("wpdiscuz_zs",wpdiscuzAjaxObj.wpdiscuz_zs),e(".wpd-cookies-checkbox",s).length&&!e(".wpd-cookies-checkbox",s).prop("checked")&&(b=!1),e("#wpdiscuz-loading-bar").show(),wpdiscuzAjaxObj.wpDiscuzReCaptchaSK&&"3.0"===d&&(1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!wpdiscuzAjaxObj.is_user_logged_in||1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&wpdiscuzAjaxObj.is_user_logged_in))try{grecaptcha.ready(function(){grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,{action:"wpdiscuz/addComment"}).then(function(e){i.append("g-recaptcha-response",e),R(s,i,t)},function(e){wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error","error"),console.log(e)})})}catch(t){console.log(t),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+t.message,"error"),e("#wpdiscuz-loading-bar").fadeOut(250)}else R(s,i,t)}var c,p;!function(e){if((a||o)&&"2.0"===d){var t=B(e);grecaptcha.reset(T[t])}}(e(".wpdiscuz_unique_id",s).val()),e(".wpdiscuz_reset").val("")}else wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wc_msg_required_fields,"error")}),e(document).delegate(".wpd_editable_comment","click",function(){w&&e(".wpdiscuz-edit-form-wrap").length&&q(V(e(".wpdiscuz-edit-form-wrap"),0),w);var t=V(e(this),0),a=B(t),o=new FormData;o.append("action","wpdEditComment"),o.append("commentId",a),w=e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-text").get(0),ce(z,!0,o).done(function(a){if("object"==typeof a)if(a.success){if(e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text").replaceWith(a.data.html),wpdiscuzLoadRichEditor){let o=wpDiscuzEditor.createEditor("#wpd-editor-edit_"+t);o.clipboard.dangerouslyPasteHTML(0,a.data.content),o.update(),e(".wpd-toolbar-hidden").prev("[id^=wpd-editor-]").css("border-bottom","1px solid #dddddd")}else e("#wc-textarea-edit_"+t).val(a.data.content);e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment").hide(),e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").hide()}else wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error");else console.log(a);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wc_save_edited_comment","click",function(){var t=V(e(this)),a=B(t),o=e("#wpd-comm-"+t+" #wpdiscuz-edit-form");if(J(o,"#wpd-editor-edit_"+t),o.submit(function(e){e.preventDefault()}),o[0].checkValidity()){var d=new FormData;d.append("action","wpdSaveEditedComment"),d.append("commentId",a),e(":input",o).each(function(){""!==this.name&&"checkbox"!==this.type&&"radio"!==this.type&&d.append(this.name+"",e(this).val()),"checkbox"!==this.type&&"radio"!==this.type||e(this).is(":checked")&&d.append(this.name+"",e(this).val())}),ce(z,!0,d).done(function(o){"object"==typeof o?(o.success?(q(t,o.data.message),o.data.lastEdited&&(e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").remove(),e(o.data.lastEdited).insertAfter("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text")),o.data.twitterShareLink&&e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_tw").attr("href",o.data.twitterShareLink),o.data.whatsappShareLink&&e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_whatsapp").attr("href",o.data.whatsappShareLink),wpdiscuzLoadRichEditor&&wpDiscuzEditor.removeEditor("#wpd-editor-edit_"+t)):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[o.data],"error"),ie(o,a)):console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e(document).delegate(".wc_cancel_edit","click",function(){var t=V(e(this));q(t,w),wpdiscuzLoadRichEditor&&wpDiscuzEditor.removeEditor("#wpd-editor-edit_"+t)}),!wpdiscuzAjaxObj.wordpressIsPaginate&&m&&(M=0,1==m?setTimeout(function(){W(!0)},500):e(document).delegate(".wpd-load-comments","click",function(){e(this).parent(".wpd-load-more-submit-wrap").remove(),W(!0)})),e(document).delegate(".wpd-load-more-submit","click",function(){var t=e(this);t.hasClass("wpd-loaded")&&W(!1,t,"wpd-loaded","wpd-loading")});var U=!1;function H(){var t=e("#wpdiscuzHasMoreComments").val(),a=e(document).height(),o=e(window).height()+e(window).scrollTop();a&&o&&(100*o/a>=80&&!1===U&&1==t&&(U=!0,W(!1,e(".wpd-load-more-submit"))))}function W(t,a,o,d){a&&(a.toggleClass(o),a.toggleClass(d));var s=new FormData;s.append("action","wpdLoadMoreComments");var i=e(".wpdiscuz-sort-button-active").attr("data-sorting");i&&s.append("sorting",i),s.append("offset",M),s.append("lastParentId",e(".wpd-load-more-submit").attr("data-lastparentid")),s.append("isFirstLoad",t?1:0);var c=e(".wpdf-active").attr("data-filter-type");s.append("wpdType",c||""),ce(z,!t||1!=m,s).done(function(s){"object"==typeof s&&s.success&&(M++,t&&e(".wpd-comment").remove(),e(".wpdiscuz_single").remove(),e(".wpdiscuz-comment-pagination").before(s.data.comment_list),K(s,t&&2!==n),U=!1,r=s.data.loadLastCommentId,ie(s),t&&P(!1)),e("#wpdiscuz-loading-bar").fadeOut(250),e(".wpd-load-more-submit").blur(),a&&(a.toggleClass(o),a.toggleClass(d))}).fail(function(t,n,s){console.log(s),e("#wpdiscuz-loading-bar").fadeOut(250),e(".wpd-load-more-submit").blur(),a&&(a.toggleClass(o),a.toggleClass(d))})}function K(t,a){var o;0==t.data.is_show_load_more?(e("#wpdiscuzHasMoreComments").val(0),e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").hide()):(o=t.data.last_parent_id,e(".wpd-load-more-submit").attr("data-lastparentid",o),2!==n&&e(".wpdiscuz-comment-pagination").show(),e("#wpdiscuzHasMoreComments").val(1),a&&e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").show()),ie(t)}function P(t){var a=location.href.match(/#comment\-(\d+)/);if(null!==a){var o=a[1];if(e("#comment-"+o).length)setTimeout(function(){e("html, body").animate({scrollTop:e("#comment-"+o).parents("[id^=wpd-comm-]").offset().top-32},1e3),t&&N(o)},500);else{var d=new FormData;d.append("action","wpdGetSingleComment"),d.append("commentId",o),ce(z,!0,d).done(function(a){if("object"==typeof a&&a.success){var d="#comment-"+o;e("#comment-"+a.data.parentCommentID).length?e("#comment-"+a.data.parentCommentID).parents("[id^=wpd-comm-"+a.data.parentCommentID+"]").replaceWith(a.data.message):e(".wpd-thread-list").prepend(a.data.message),ie(a),e("html, body").animate({scrollTop:e(d).offset().top-32},1e3),t&&N(o)}e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}}function N(t){setTimeout(function(){e("#comment-"+t).siblings(".wpd-secondary-form-wrapper").is(":visible")||e("#comment-"+t).find(".wpd-reply-button").trigger("click")},1100)}function Q(e){if(void 0!==e.data.message)for(var t,a=e.data.message,o=0;o<a.length;o++)$((t=a[o]).comment_parent,t.comment_html)}function V(e,t){var a="";return(a=t?e.parents(".wpd-main-form-wrapper").attr("id"):e.parents(".wpd-comment").attr("id")).substring(a.lastIndexOf("-")+1)}function B(e){return e.substring(0,e.indexOf("_"))}function G(e,t){return t?e.substring(e.indexOf("-")+1):e.substring(0,e.indexOf("-"))}function $(t,a){if(0==t)X(a);else{var o=V(e("#comment-"+t),0);e("#wpdiscuz_form_anchor-"+o).after(a)}}function Y(){var t,a,o="";return e(".wpd-comment-right").each(function(){t=V(e(this),0),a=B(t),o+=a+","}),o}function J(t,a){var o=t.find(".wpd-required-group");wpdiscuzLoadRichEditor&&t.find(".wc_comment").val(e(a+">.ql-editor").html()),function(e){var t=e.find(".wc_comment"),a=t.val().trim().replace(/<p><br><\/p>/g,"\n").replace(/<p>(.*?)<\/p>/g,"$1\n");a=(a=(a=(a=a.replace(/<img src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g,"$3")).replace(/<img[^>]+alt=["|']([^"|']+)["|'][^>]+src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'][^>]?>/g,"$1")).replace(/<img\s+([^>]*)class=["|']wpdem\-sticker["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g,"$3")).replace(/<img\s+([^>]*)src=["|']([^"|']+)["|'](.*?)[^>]*>/g,"$2"),t.val(a)}(t),e.each(o,function(){e("input",this).removeAttr("required"),0===e("input:checked",this).length?e("input",e(this)).attr("required","required"):e(".wpd-field-invalid",this).remove()})}function X(t){e(".wpd-sticky-comment").last()[0]?e(t).insertAfter(e(".wpd-sticky-comment").last()[0]):e(".wpd-thread-list").prepend(t)}function Z(t){t?t.prop("required")||(t.val()?t.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","inline-block"):t.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","none")):e.each(e(".wc_email"),function(t,a){var o=e(a);o.prop("required")||(o.val()?o.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","inline-block"):o.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","none"))})}if(2!==n||wpdiscuzAjaxObj.wordpressIsPaginate||(e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").hide(),H(),e(window).scroll(function(){H()})),wpdiscuzAjaxObj.setLoadMoreVisibility=K,e(document).delegate(".wpd-vote-up.wpd_not_clicked, .wpd-vote-down.wpd_not_clicked","click",function(){var t=e(this);e(t).removeClass("wpd_not_clicked");var a,o=B(V(t));a=e(this).hasClass("wpd-vote-up")?1:-1;var d=new FormData;d.append("action","wpdVoteOnComment"),d.append("commentId",o),d.append("voteType",a),ce(z,!0,d).done(function(d){if(e(t).addClass("wpd_not_clicked"),"object"==typeof d){if(d.success){if("total"===d.data.buttonsStyle){var n=e(".wpd-comment-footer .wpd-vote-result",e("#comment-"+o)),s=d.data.votes;n.text(s),n.removeClass("wpd-up wpd-down"),s>0&&n.addClass("wpd-up"),s<0&&n.addClass("wpd-down")}else{var i=e(".wpd-comment-footer .wpd-vote-result-like",e("#comment-"+o)),c=e(".wpd-comment-footer .wpd-vote-result-dislike",e("#comment-"+o));i.text(d.data.likeCount),c.text(d.data.dislikeCount),parseInt(d.data.likeCount)>0?i.addClass("wpd-up"):i.removeClass("wpd-up"),parseInt(d.data.dislikeCount)<0?c.addClass("wpd-down"):c.removeClass("wpd-down")}var p=e(".wpd-comment-footer .wpd-vote-up",e("#comment-"+o)),r=e(".wpd-comment-footer .wpd-vote-down",e("#comment-"+o));p.removeClass("wpd-up"),r.removeClass("wpd-down"),d.data.curUserReaction>0?p.addClass("wpd-up"):d.data.curUserReaction<0&&r.addClass("wpd-down")}else d.data&&wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[d.data],"error");ie(d,o,a)}else console.log(d);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,o,d){console.log(d),e(t).addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate("body","click",function(t){var a=e(".wpdiscuz-sort-buttons");e(t.target).hasClass("wpdf-sorting")||e(t.target).parent().hasClass("wpdf-sorting")?a.css({display:a.is(":visible")?"none":"flex"}):a.hide()}),e(document).delegate(".wpdiscuz-sort-button:not(.wpdiscuz-sort-button-active)","click",function(){var t=e(this),a=e(this).attr("data-sorting");if(a){e(".wpdiscuz-sort-button.wpdiscuz-sort-button-active").removeClass("wpdiscuz-sort-button-active").appendTo(".wpdiscuz-sort-buttons"),t.addClass("wpdiscuz-sort-button-active").prependTo(".wpdf-sorting");var o=new FormData;o.append("action","wpdSorting"),o.append("sorting",a);var d=e(".wpdf-active").attr("data-filter-type");o.append("wpdType",d||""),ce(z,!0,o).done(function(t){"object"==typeof t&&t.success&&(e("#wpdcom .wpd-comment").remove(),e("#wpdcom .wpd-thread-list").prepend(t.data.message),K(t,!1),M=1),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),window.onhashchange=function(){P(!1)},1!=m&&P(!1),e(document).delegate(".wpdiscuz-readmore","click",function(){var t=V(e(this)),a=B(t),o=new FormData;o.append("action","wpdReadMore"),o.append("commentId",a),ce(z,!0,o).done(function(o){"object"==typeof o?(o.success?(e("#comment-"+a+" .wpd-comment-text").html(" "+o.data.message),e("#wpdiscuz-readmore-"+t).remove()):console.log(o.data),ie(o)):console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd-required-group","change",function(){0!==e("input:checked",this).length?e("input",e(this)).removeAttr("required"):e("input",e(this)).attr("required","required")}),e(document).delegate(".wpdiscuz-spoiler","click",function(){e(this).next().slideToggle(),e(this).hasClass("wpdiscuz-spoiler-closed")?e(this).parents(".wpdiscuz-spoiler-wrap").find(".fa-plus").removeClass("fa-plus").addClass("fa-minus"):e(this).parents(".wpdiscuz-spoiler-wrap").find(".fa-minus").removeClass("fa-minus").addClass("fa-plus"),e(this).toggleClass("wpdiscuz-spoiler-closed")}),e(document).delegate(".wpd-tools i","click",function(){var t=e(this).siblings(".wpd-tools-actions");t.css({display:t.is(":visible")?"none":"flex"})}),e(document).delegate(".wpd-comment-right","mouseleave",function(){e(this).find(".wpd-tools-actions").hide()}),e(document).delegate(".wpd_stick_btn","click",function(){var t=B(V(e(this),0)),a=new FormData;a.append("action","wpdStickComment"),a.append("commentId",t),ce(z,!0,a).done(function(t){"object"==typeof t&&t.success&&location.reload(!0),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd_close_btn","click",function(){var t=B(V(e(this),0)),a=new FormData;a.append("action","wpdCloseThread"),a.append("commentId",t),ce(z,!0,a).done(function(t){"object"==typeof t&&t.success&&location.reload(!0),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd-filter.wpd_not_clicked[data-filter-type]","click",function(){var t=e(this),a=t.attr("data-filter-type");wpdiscuzAjaxObj.resetActiveFilters(".wpdf-"+a),t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var o=new FormData;o.append("action","wpdLoadMoreComments");var d=e(".wpdiscuz-sort-button-active").attr("data-sorting");d&&o.append("sorting",d),o.append("lastParentId",0),o.append("offset",0),M=1,o.append("wpdType",t.hasClass("wpdf-active")?"":a),o.append("isFirstLoad",1),e(this).hasClass("wpdf-inline")?e(this).hasClass("wpdf-active")?e(".wpd-comment-info-bar").hide():e(".wpd-comment-info-bar").css("display","flex"):e(".wpd-comment-info-bar").hide(),ce(z,!1,o).done(function(a){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof a&&a.success&&(t.toggleClass("wpdf-active"),e(".wpd-load-comments").remove(),e(".wpd-comment").remove(),e(".wpd-thread-list").prepend(a.data.comment_list),K(a),r=a.data.loadLastCommentId,e(".wpd-load-more-submit").blur(),ie(a)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpdf-reacted.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=new FormData;a.append("action","wpdMostReactedComment"),ce(z,!1,a).done(function(a){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof a&&a.success&&(e("#comment-"+a.data.parentCommentID).length?e("#comment-"+a.data.parentCommentID).parents("[id^=wpd-comm-"+a.data.parentCommentID+"]").replaceWith(a.data.message):e("#comment-"+a.data.commentId).length||e(".wpd-thread-list").prepend(a.data.message),ie(a),e("html, body").animate({scrollTop:e("#comment-"+a.data.commentId).offset().top-32},1e3))}).fail(function(a,o,d){console.log(d),e(".fas",t).removeClass("fa-pulse fa-spinner")})}),e(document).delegate(".wpdf-hottest.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=new FormData;a.append("action","wpdHottestThread"),ce(z,!1,a).done(function(a){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof a&&a.success&&(e("#comment-"+a.data.commentId).length?e("#comment-"+a.data.commentId).parents("[id^=wpd-comm-"+a.data.commentId+"]").replaceWith(a.data.message):e(".wpd-thread-list").prepend(a.data.message),ie(a),e("html, body").animate({scrollTop:e("#comment-"+a.data.commentId).offset().top-32},1e3))}).fail(function(a,o,d){console.log(d),e(".fas",t).removeClass("fa-pulse fa-spinner")})}),e(document).delegate(".wpd-filter-view-all","click",function(){e(".wpdf-inline.wpdf-active.wpd_not_clicked").trigger("click")}),e(document).delegate(".wpd-follow-link.wpd_not_clicked","click",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=B(V(t,0)),o=new FormData;o.append("action","wpdFollowUser"),o.append("commentId",a),ce(z,!0,o).done(function(a){t.addClass("wpd_not_clicked"),"object"==typeof a?a.success?(wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.code],"success"),t.removeClass("wpd-follow-active"),a.data.followTip&&t.attr("wpd-tooltip",a.data.followTip),a.data.followClass&&t.addClass(a.data.followClass)):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error"):console.log(a),e(".fas",t).removeClass("fa-pulse fa-spinner"),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,o,d){console.log(d),e(".fas",t).removeClass("fa-pulse fa-spinner"),e("#wpdiscuz-loading-bar").fadeOut(250)})}),Z(),e(document).delegate(".wc_email","keyup",function(){Z(e(this))}),j&&e("#wpdcom").length){if(e("#wpd-bubble-wrapper").hover(function(){e(this).addClass("wpd-bubble-hover")},function(){e(this).removeClass("wpd-bubble-hover")}),k&&!Cookies.get(wpdiscuzAjaxObj.cookieHideBubbleHint)&&setTimeout(function(){e("#wpd-bubble-wrapper").addClass("wpd-bubble-hover"),Cookies.set(wpdiscuzAjaxObj.cookieHideBubbleHint,"1",{expires:7,path:"/"}),setTimeout(function(){e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover")},1e3*x)},1e3*k),"content_left"===O)if(e(".entry-content").length){var ee=(te=Math.min(e(".entry-content").offset().left,e("#wpdcom").offset().left)-120)>25?te:25;e("#wpd-bubble-wrapper").css({left:ee+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else if(e(".post-entry").length){ee=(te=Math.min(e(".post-entry").offset().left,e("#wpdcom").offset().left)-120)>25?te:25;e("#wpd-bubble-wrapper").css({left:ee+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else if(e(".container").length){var te;ee=(te=Math.min(e(".container").offset().left,e("#wpdcom").offset().left)-120)>25?te:25;e("#wpd-bubble-wrapper").css({left:ee+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else e("#wpd-bubble-wrapper").css({left:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-corner");else"left_corner"===O?(e("#wpd-bubble-wrapper").css({left:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-corner")):"right_corner"===O&&(e("#wpd-bubble-wrapper").css({right:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-right-corner"));e("#wpd-bubble-wrapper").show(),e("#wpd-bubble-add-message-close").click(function(t){t.preventDefault(),t.stopPropagation(),e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover")}),e("#wpd-bubble").click(function(){e("html, body").animate({scrollTop:e("#wpdcom").offset().top-60},1e3,function(){wpdiscuzLoadRichEditor?wpDiscuzEditor.createEditor("#wpd-editor-0_0").focus():e("#wc-textarea-0_0").focus()})}),e("#wpd-bubble-comment-close").click(function(t){t.preventDefault(),e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added")}),e("#wpd-bubble-comment-reply-link a").click(function(){var t=e(this).attr("href");setTimeout(function(){e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added"),P(!0);var a=t.match(/#comment\-(\d+)/);D=D.filter(function(e){return e!=a[1]}),e("#wpd-bubble-count .wpd-new-comments-count").text(D.length),0==D.length&&e("#wpd-bubble-count").removeClass("wpd-new-comments")},100)}),e("#wpd-bubble-count").click(function(){if(D.length){var t=new FormData;t.append("action","wpdBubbleUpdate"),t.append("newCommentIds",D.join()),ce(z,!0,t).done(function(t){"object"==typeof t&&t.success&&(t.data.message=t.data.message.filter(function(t){if(!e("#comment-"+t.comment_id).length)return t}),Q(t),e("#wpd-bubble-count").removeClass("wpd-new-comments"),e("#wpd-bubble-count .wpd-new-comments-count").text("0"),D=[],e("html, body").animate({scrollTop:e(e(".wpd-new-loaded-comment")[0]).offset().top-60},1e3),ie(t)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(e,t,a){console.log(a)})}})}if((j&&C||i)&&(t||!t&&p)&&setTimeout(function t(){e.ajax({type:"GET",url:wpdiscuzAjaxObj.bubbleUpdateUrl,data:{postId:s,lastId:l,visibleCommentIds:Y()}}).done(function(a){if(!E)if("object"==typeof a){if(a.ids.length){i&&((n=new FormData).append("action","wpdUpdateAutomatically"),n.append("loadLastCommentId",r),n.append("visibleCommentIds",Y()),ce(z,!1,n).done(function(t){E||"object"==typeof t&&t.success&&(Q(t),e(".wpd-thread-info").html(t.data.wc_all_comments_count_new_html),t.data.wc_all_comments_count_new=parseInt(t.data.wc_all_comments_count_new),e("#wpd-bubble-all-comments-count").text(t.data.wc_all_comments_count_new),t.data.wc_all_comments_count_new?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide(),r=t.data.loadLastCommentId)}).fail(function(e,t,a){console.log(a)})),a.ids=a.ids.filter(function(t){if(!e("#comment-"+t).length)return t});var o=5e3;l=parseInt(a.ids[a.ids.length-1]),D=D.concat(a.ids),y&&a.commentText&&(e("#wpd-bubble-author-avatar").html(a.avatar),e("#wpd-bubble-author-name").html(a.authorName),e("#wpd-bubble-comment-date span").html(a.commentDate),e("#wpd-bubble-comment-text").html(a.commentText),e("#wpd-bubble-comment-reply-link a").attr("href",a.commentLink),e("#wpd-bubble-notification-message").show(),o=1e4);var d=parseInt(e(".wpd-new-comments-count").text());d+=a.ids.length,e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added"),e("#wpd-bubble-wrapper").addClass("wpd-new-comment-added"),setTimeout(function(){e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added")},o),e(".wpd-new-comments-count").text(d),e("#wpd-bubble-count").addClass("wpd-new-comments"),a.all_comments_count=parseInt(a.all_comments_count),e("#wpd-bubble-all-comments-count").text(a.all_comments_count),a.all_comments_count?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide(),e(".wpd-thread-info").html(a.all_comments_count_html)}}else console.log(a);var n;setTimeout(t,c)}).fail(function(e,a,o){console.log(o),setTimeout(t,c)})},c),e(".wpd-inline-form-wrapper").length){var ae=new FormData;ae.append("action","wpdGetInlineCommentForm"),ce(z,!1,ae).done(function(t){"object"==typeof t?t.success?(e(".wpd-inline-form-wrapper").append(t.data),e.each(e("[name=_wpd_inline_nonce]"),function(){var t=e(this).attr("id"),a=e(this).parents(".wpd-inline-shortcode").attr("id");e(this).attr("id",t+"-"+a.substring(a.lastIndexOf("-")+1))}),e(".wpd-inline-opened").addClass("wpd-active"),e(".wpd-inline-opened").find(".wpd-inline-form-wrapper").show(),e(".wpd-inline-opened").find(".wpd-inline-icon").addClass("wpd-open"),e(".wpd-inline-opened").find(".wpd-inline-icon").removeClass("wpd-ignored"),se()):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[t.data],"error"):console.log(t)}).fail(function(e,t,a){console.log(a)})}function oe(t){if(e(t).hasClass("wpd-inline-shortcode"))var a=e(t).attr("id");else a=e(t).parents(".wpd-inline-shortcode").attr("id");return a.substring(a.lastIndexOf("-")+1)}function de(){e(".wpd-inline-form-wrapper").hide(),e(".wpd-inline-shortcode").removeClass("wpd-active"),e(".wpd-inline-icon").removeClass("wpd-open")}function ne(){e.each(e(".wpd-inline-shortcode:not(.wpd-inline-opened) .wpd-inline-icon"),function(){var t=e(this),a=t.offset().top-window.pageYOffset;a>0&&a<300&&("blink"===A?(t.addClass("wpd-blink"),setTimeout(function(){t.removeClass("wpd-blink")},3e3)):(t.parents(".wpd-inline-shortcode").addClass("wpd-active"),t.siblings(".wpd-inline-form-wrapper").show(),t.addClass("wpd-open"),se(t.siblings(".wpd-inline-form-wrapper"))))})}function se(t){if(t){if(t.offset().left<=10)t.css("left",Math.ceil(parseInt(t.css("left"))-t.offset().left+10)),(a=Math.ceil(t.siblings(".wpd-inline-icon.wpd-open").offset().left-t.offset().left+2))<3&&(a=3),document.styleSheets[0].addRule("#"+t.parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+a+"px;");else if(t.offset().left+t.width()>document.body.clientWidth-10){var a;t.css("left",Math.ceil(parseInt(t.css("left"))+(document.body.clientWidth-(t.offset().left+t.width()))-10)),(a=Math.ceil(t.siblings(".wpd-inline-icon.wpd-open").offset().left-t.offset().left+2))>t.width()-3&&(a=t.width()-3),document.styleSheets[0].addRule("#"+t.parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+a+"px;")}}else e.each(e(".wpd-inline-form-wrapper:visible"),function(){if(e(this).offset().left<=10)e(this).css("left",Math.ceil(parseInt(e(this).css("left"))-e(this).offset().left+10)),(t=Math.ceil(e(this).siblings(".wpd-inline-icon.wpd-open").offset().left-e(this).offset().left+2))<3&&(t=3),document.styleSheets[0].addRule("#"+e(this).parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+t+"px;");else if(e(this).offset().left+e(this).width()>document.body.clientWidth-10){var t;e(this).css("left",Math.ceil(parseInt(e(this).css("left"))+(document.body.clientWidth-(e(this).offset().left+e(this).width()))-10)),(t=Math.ceil(e(this).siblings(".wpd-inline-icon.wpd-open").offset().left-e(this).offset().left+2))>e(this).width()-3&&(t=e(this).width()-3),document.styleSheets[0].addRule("#"+e(this).parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+t+"px;")}})}function ie(t,a,o,d){t.data.callbackFunctions&&e.each(t.data.callbackFunctions,function(e){"function"==typeof wpdiscuzAjaxObj[t.data.callbackFunctions[e]]?wpdiscuzAjaxObj[t.data.callbackFunctions[e]](t,a,o,d):console.log(t.data.callbackFunctions[e]+" is not a function")})}function ce(t,a,o){a&&e("#wpdiscuz-loading-bar").show(),o.append("postId",s);var d=o.get("action");wpdiscuzAjaxObj.dataFilterCallbacks&&wpdiscuzAjaxObj.dataFilterCallbacks[d]&&e.each(wpdiscuzAjaxObj.dataFilterCallbacks[d],function(e){"function"==typeof wpdiscuzAjaxObj[wpdiscuzAjaxObj.dataFilterCallbacks[d][e]]&&(o=wpdiscuzAjaxObj[wpdiscuzAjaxObj.dataFilterCallbacks[d][e]](o,t,a))});var n=t?wpdiscuzAjaxObj.url:wpdiscuzAjaxObj.customAjaxUrl;return e.ajax({type:"POST",url:n,data:o,contentType:!1,processData:!1})}e(document).delegate("body","click",function(t){if(e(t.target).hasClass("wpd-inline-form-close")||e(t.target).parents(".wpd-inline-form-close").length)t.preventDefault(),e(t.target).parents(".wpd-inline-form-wrapper").hide(),e(t.target).parents(".wpd-inline-shortcode").removeClass("wpd-active"),e(t.target).parents(".wpd-inline-form-wrapper").siblings(".wpd-inline-icon").removeClass("wpd-open");else if(!e(t.target).hasClass("wpd-inline-form-wrapper")&&!e(t.target).parents(".wpd-inline-form-wrapper").length){de();var a="";e(t.target).hasClass("wpd-inline-icon")?a=e(t.target):e(t.target).parents(".wpd-inline-icon").length&&(a=e(t.target).parents(".wpd-inline-icon")),a.length&&(a.parents(".wpd-inline-shortcode").addClass("wpd-active"),a.siblings(".wpd-inline-form-wrapper").show(),a.addClass("wpd-open"),a.removeClass("wpd-ignored"),se(a.siblings(".wpd-inline-form-wrapper")))}(!e(t.target).hasClass("wpd-last-inline-comments-wrapper")&&!e(t.target).parents(".wpd-last-inline-comments-wrapper").length||e(t.target).parents(".wpd-last-inline-comments-wrapper").length&&e(t.target).hasClass("wpd-load-inline-comment"))&&e(".wpd-last-inline-comments-wrapper").remove()}),e(document).delegate(".wpd-inline-submit.wpd_not_clicked","click",function(t){t.preventDefault();var a=e(this),o=e(this).parents(".wpd_inline_comm_form");if(o[0].checkValidity()){e(this).removeClass("wpd_not_clicked");var d=new FormData;d.append("action","wpdAddInlineComment"),d.append("inline_form_id",oe(o)),e.each(e("input, textarea",o),function(t,a){"checkbox"===this.type?e(this).is(":checked")&&d.append(e(a).attr("name"),e(a).val()):d.append(e(a).attr("name"),e(a).val())}),ce(z,!0,d).done(function(t){if(a.addClass("wpd_not_clicked"),"object"==typeof t)if(t.success){o[0].reset(),de();var d=parseInt(t.data.newCount),n=a.parents(".wpd-inline-icon-wrapper").find(".wpd-inline-icon-count");n.text(d),d?n.addClass("wpd-has-comments"):n.removeClass("wpd-has-comments"),e(".wpd-thread-info").html(t.data.allCommentsCountNewHtml),t.data.allCommentsCountNew=parseInt(t.data.allCommentsCountNew),e("#wpd-bubble-all-comments-count").text(t.data.allCommentsCountNew),t.data.allCommentsCountNew?e("#wpd-bubble-all-comments-count").show():e("#wpd-bubble-all-comments-count").hide(),t.data.message&&X(t.data.message),wpdiscuzAjaxObj.setCommentMessage(t.data.notification,"success")}else t.data&&wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[t.data],"error");else wpdiscuzAjaxObj.setCommentMessage(t,"error");e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e(document).delegate(".wpd-form","keydown",function(t){t.ctrlKey&&13==t.keyCode&&e(this).find(".wc_comm_submit").trigger("click")}),e(document).delegate("#wpdiscuz-edit-form","keydown",function(t){t.ctrlKey&&13==t.keyCode&&e(this).find(".wc_save_edited_comment").trigger("click")}),e(document).delegate(".wpd-inline-comment-content","keydown",function(t){t.ctrlKey&&13==t.keyCode&&e(this).parents(".wpd_inline_comm_form").find(".wpd-inline-submit.wpd_not_clicked").trigger("click")}),e(document).delegate(".wpd-inline-icon-count.wpd-has-comments","click",function(){var t=e(this),a=new FormData;a.append("action","wpdGetLastInlineComments"),a.append("inline_form_id",oe(t)),ce(z,!0,a).done(function(a){"object"==typeof a?a.success?e(a.data).insertAfter(t):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data],"error"):console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).delegate(".wpd-view-all-inline-comments","click",function(t){t.preventDefault(),e(this).parents(".wpd-last-inline-comments-wrapper").remove(),e(".wpdf-inline").hasClass("wpdf-active")||e(".wpdf-inline").trigger("click"),e("html, body").animate({scrollTop:e(".wpdf-inline").offset().top-32},1e3)}),e(document).delegate(".wpd-feedback-content-link","click",function(t){t.preventDefault();var a=e(this).data("feedback-content-id");e("html, body").animate({scrollTop:e("#wpd-inline-"+a).offset().top-38},1e3,function(){e("#wpd-inline-"+a).addClass("wpd-active")})}),"scroll_open"!==A&&"blink"!==A||(ne(),e(window).scroll(ne)),e(document).delegate("#wpd-post-rating.wpd-not-rated .wpd-rate-starts svg","click",function(){var t=new FormData,a=e(this).index();a>=0&&a<5&&(t.append("action","wpdUserRate"),t.append("rating",a+1),ce(z,!0,t).done(function(t){"object"==typeof t?t.success?location.reload(!0):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[t.data],"error"):console.log(t),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}))}),e("#wpdiscuz-subscribe-form").submit(function(t){t.preventDefault();var a,o,n=e(this);if(n[0].checkValidity()&&(a=n,o=!0,"2.0"===d&&e("input[name=wpdiscuz_recaptcha_subscribe_form]",a).length&&!e("input[name=wpdiscuz_recaptcha_subscribe_form]",a).val().length?(o=!1,e(".wpdiscuz-recaptcha",a).css("border","1px solid red")):"2.0"===d&&e("input[name=wpdiscuz_recaptcha_subscribe_form]",a).length&&e(".wpdiscuz-recaptcha",a).css("border","none"),o)){var s=new FormData;s.append("action","wpdAddSubscription"),e("*",n).each(function(){""!=this.name&&"checkbox"!=this.type&&"radio"!=this.type&&s.append(this.name+"",e(this).val()),"checkbox"!=this.type&&"radio"!=this.type||e(this).is(":checked")&&s.append(this.name+"",e(this).val())}),ce(z,!0,s).done(function(t){"object"==typeof t?t.success?(wpdiscuzAjaxObj.setCommentMessage(t.data,"success"),setTimeout(function(){location.reload(!0)},3e3)):wpdiscuzAjaxObj.setCommentMessage(t.data,"error"):wpdiscuzAjaxObj.setCommentMessage(t,"error"),e("#wpdiscuz-loading-bar").fadeOut(250),E=!1}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e(".wpd-unsubscribe").click(function(t){t.preventDefault();var a=new FormData;a.append("action","wpdUnsubscribe"),a.append("sid",e(this).data("sid")),a.append("skey",e(this).data("skey")),ce(z,!0,a).done(function(t){"object"==typeof t?t.success?(wpdiscuzAjaxObj.setCommentMessage(t.data,"success"),setTimeout(function(){location.reload(!0)},3e3)):wpdiscuzAjaxObj.setCommentMessage(t.data,"error"):console.log(t),e("#wpdiscuz-loading-bar").fadeOut(250),E=!1}).fail(function(t,a,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)})}),wpdiscuzAjaxObj.resetActiveFilters=function(t){e(".wpd-filter.wpdf-active"+(t?":not("+t+")":"")).removeClass("wpdf-active")},wpdiscuzAjaxObj.getAjaxObj=ce});var onloadCallback=function(){if(document.getElementById("wpdiscuz-recaptcha-0_0")&&"2.0"===wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion&&(1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!wpdiscuzAjaxObj.is_user_logged_in||1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&wpdiscuzAjaxObj.is_user_logged_in))try{grecaptcha.render("wpdiscuz-recaptcha-0_0",{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(e){jQuery("#wpdiscuz-recaptcha-field-0_0").val("key")},"expired-callback":function(){jQuery("#wpdiscuz-recaptcha-field-0_0").val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}};
11
+ /* Colorbox */
12
+ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=t('<button type="button"/>').attr({id:Z+"Slideshow"}),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;U&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),U&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if($=!0,q=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e).eq(0);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
13
+ /* Media Uploader */
14
+ jQuery(document).ready(function(e){if(e(document).delegate("#wpdcom .wmu-upload-wrap","click",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0)}),e(document).delegate(".wmu-add-files","change",function(){var a=e(this),t=a.parents(".wpd_comm_form"),d=a[0].files?a[0].files:[];d.length&&function(a,t,d){var o=new FormData;o.append("action","wmuUploadFiles"),o.append("wmu_nonce",wpdiscuzAjaxObj.wmuSecurity),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val());var s=0;e.each(d,function(e,a){s+=a.size,o.append(wpdiscuzAjaxObj.wmuInput+"["+e+"]",a)}),s>parseInt(wpdiscuzAjaxObj.wmuMaxFileSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhraseMaxFileSize,"error",3e3):s>parseInt(wpdiscuzAjaxObj.wmuPostMaxSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhrasePostMaxSize,"error",3e3):wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(a){a.success?(e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(a.data.attachmentsHtml),a.data.tooltip&&e(".wmu-upload-wrap").attr("wpd-tooltip",a.data.tooltip),function(a,t){e.each(t.data.previewsData,function(t,d){e(".wmu-action-wrap .wmu-"+t+"-tab",a).html(""),e.each(d,function(d,o){var s=o.id,i="",m=o.fullname,r=o.shortname;t==wpdiscuzAjaxObj.wmuKeyImages?(i=o.url,r=""):t==wpdiscuzAjaxObj.wmuKeyVideos?i=wpdiscuzAjaxObj.wmuIconVideo:t==wpdiscuzAjaxObj.wmuKeyFiles&&(i=wpdiscuzAjaxObj.wmuIconFile);var u='<div class="wmu-preview [PREVIEW_TYPE_CLASS]" title="[PREVIEW_TITLE]" data-wmu-type="[PREVIEW_TYPE]" data-wmu-attachment="[PREVIEW_ID]"><div class="wmu-preview-remove"><img class="wmu-preview-img" src="[PREVIEW_ICON]"><div class="wmu-file-name">[PREVIEW_FILENAME]</div><div class="wmu-delete">&nbsp;</div></div></div>';u=(u=(u=(u=(u=(u=u.replace("[PREVIEW_TYPE_CLASS]","wmu-preview-"+t)).replace("[PREVIEW_TITLE]",m)).replace("[PREVIEW_TYPE]",t)).replace("[PREVIEW_ID]",s)).replace("[PREVIEW_ICON]",i)).replace("[PREVIEW_FILENAME]",r),e(".wmu-action-wrap .wmu-"+t+"-tab",a).removeClass("wmu-hide").append(u)})})}(t,a),a.data.errors&&(wpdiscuzAjaxObj.setCommentMessage(a.data.errors,"error",3e3),console.log(a.data.errors))):a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.errorCode],"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}(0,t,d)}),e(document).delegate(".wmu-attachment-delete","click",function(a){if(confirm(wpdiscuzAjaxObj.wmuPhraseConfirmDelete)){var t=e(this).data("wmu-attachment"),d=new FormData;d.append("action","wmuDeleteAttachment"),d.append("attachmentId",t),wpdiscuzAjaxObj.getAjaxObj(!0,!0,d).done(function(a){if(a.success){var d=e(".wmu-attachment-"+t).parents(".wmu-comment-attachments");e(".wmu-attachment-"+t).remove(),e(".wmu-attached-images *",d).length||e(".wmu-attached-images",d).remove(),e(".wmu-attached-videos *",d).length||e(".wmu-attached-videos",d).remove(),e(".wmu-attached-files *",d).length||e(".wmu-attached-files",d).remove()}else a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.errorCode],"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}else console.log("canceled")}),e(document).delegate(".wmu-preview","click",function(){var a=e(this),t=a.parents(".wpd_comm_form"),d=(a.data("wmu-type"),a.data("wmu-attachment")),o=new FormData;o.append("action","wmuRemoveAttachmentPreview"),o.append("attachmentId",d),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val()),wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(d){if(d.success){a.remove();var o=e(".wmu-tabs",t);e.each(o,function(a,t){e(".wmu-preview",t).length?e(t).removeClass("wmu-hide"):e(t).addClass("wmu-hide")}),e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(d.data.attachmentsHtml),d.data.tooltip&&e(".wmu-upload-wrap").attr("wpd-tooltip",d.data.tooltip)}else d.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[d.data.errorCode],"error",3e3):d.data.error&&wpdiscuzAjaxObj.setCommentMessage(d.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}),parseInt(wpdiscuzAjaxObj.wmuIsLightbox)){function a(){e(".wmu-lightbox").colorbox({maxHeight:"95%",maxWidth:"95%",rel:"wmu-lightbox",fixed:!0})}a(),wpdiscuzAjaxObj.wmuAddLightBox=a}wpdiscuzAjaxObj.wmuHideAll=function(a,t){"object"==typeof a?a.success?(e(".wmu-tabs",t).addClass("wmu-hide"),e(".wmu-preview",t).remove(),e(".wmu-attached-data-info",t).remove()):console.log(a.data):console.log(a)}});
15
+ /* Lity */
16
+ !function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(e,require("jquery")):e.lity=t(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=e.document,i=t(e),r=t.Deferred,o=t("html"),a=[],l="aria-hidden",s="lity-"+l,d='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',c={esc:!0,handler:null,handlers:{image:C,inline:function(e,n){var i,r,o;try{i=t(e)}catch(e){return!1}if(!i.length)return!1;return r=t('<i style="display:none !important"/>'),o=i.hasClass("lity-hide"),n.element().one("lity:remove",function(){r.before(i).remove(),o&&!i.closest(".lity-content").length&&i.addClass("lity-hide")}),i.removeClass("lity-hide").after(r)},youtube:function(e){var n=f.exec(e);if(!n)return!1;return k(x(e,w("https://www.youtube"+(n[2]||"")+".com/embed/"+n[4],t.extend({autoplay:1},b(n[5]||"")))))},vimeo:function(e){var n=y.exec(e);if(!n)return!1;return k(x(e,w("https://player.vimeo.com/video/"+n[3],t.extend({autoplay:1},b(n[4]||"")))))},googlemaps:function(e){var t=v.exec(e);if(!t)return!1;return k(x(e,w("https://www.google."+t[3]+"/maps?"+t[6],{output:t[6].indexOf("layer=c")>0?"svembed":"embed"})))},facebookvideo:function(e){var n=p.exec(e);if(!n)return!1;0!==e.indexOf("http")&&(e="https:"+e);return k(x(e,w("https://www.facebook.com/plugins/video.php?href="+e,t.extend({autoplay:1},b(n[4]||"")))))},iframe:k},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},u=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,f=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,y=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,v=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,p=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,m=function(){var e=n.createElement("div"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return t[i];return!1}();function h(e){var t=r();return m&&e.length?(e.one(m,t.resolve),setTimeout(t.resolve,500)):t.resolve(),t.promise()}function g(e,n,i){if(1===arguments.length)return t.extend({},e);if("string"==typeof n){if(void 0===i)return void 0===e[n]?null:e[n];e[n]=i}else t.extend(e,n);return this}function b(e){for(var t,n=decodeURI(e.split("#")[0]).split("&"),i={},r=0,o=n.length;r<o;r++)n[r]&&(i[(t=n[r].split("="))[0]]=t[1]);return i}function w(e,n){return e+(e.indexOf("?")>-1?"&":"?")+t.param(n)}function x(e,t){var n=e.indexOf("#");return-1===n?t:(n>0&&(e=e.substr(n)),t+e)}function C(e,n){var i=n.opener()&&n.opener().data("lity-desc")||"Image with no description",o=t('<img src="'+e+'" alt="'+i+'"/>'),a=r(),l=function(){var e;a.reject((e="Failed loading image",t('<span class="lity-error"/>').append(e)))};return o.on("load",function(){if(0===this.naturalWidth)return l();a.resolve(o)}).on("error",l),a.promise()}function k(e){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+e+'"/></div>'}function E(){return n.documentElement.clientHeight?.9*n.documentElement.clientHeight:Math.round(.9*i.height())}function j(e){var t,i,r,o=z();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&(t=e,i=o.element().find(d),r=i.index(n.activeElement),t.shiftKey&&r<=0?(i.get(i.length-1).focus(),t.preventDefault()):t.shiftKey||r!==i.length-1||(i.get(0).focus(),t.preventDefault())))}function D(){t.each(a,function(e,t){t.resize()})}function z(){return 0===a.length?null:a[0]}function T(e,d,u,f){var y,v,p,m,b,w,x,C,k,z,T,O=this,q=!1,W=!1;d=t.extend({},c,d),v=t(d.template),O.element=function(){return v},O.opener=function(){return u},O.options=t.proxy(g,O,d),O.handlers=t.proxy(g,O,d.handlers),O.resize=function(){q&&!W&&p.css("max-height",E()+"px").trigger("lity:resize",[O])},O.close=function(){if(q&&!W){var e;W=!0,(e=O).element().attr(l,"true"),1===a.length&&(o.removeClass("lity-active"),i.off({resize:D,keydown:j})),((a=t.grep(a,function(t){return e!==t})).length?a[0].element():t(".lity-hidden")).removeClass("lity-hidden").each(function(){var e=t(this),n=e.data(s);n?e.attr(l,n):e.removeAttr(l),e.removeData(s)});var d=r();if(f&&(n.activeElement===v[0]||t.contains(v[0],n.activeElement)))try{f.focus()}catch(e){}return p.trigger("lity:close",[O]),v.removeClass("lity-opened").addClass("lity-closed"),h(p.add(v)).always(function(){p.trigger("lity:remove",[O]),v.remove(),v=void 0,d.resolve()}),d.promise()}},m=e,b=O,w=d.handlers,x=d.handler,k="inline",z=t.extend({},w),x&&z[x]?(C=z[x](m,b),k=x):(t.each(["inline","iframe"],function(e,t){delete z[t],z[t]=w[t]}),t.each(z,function(e,t){return!t||!(!t.test||t.test(m,b))||(!1!==(C=t(m,b))?(k=e,!1):void 0)})),y={handler:k,content:C||""},v.attr(l,"false").addClass("lity-loading lity-opened lity-"+y.handler).appendTo("body").focus().on("click","[data-lity-close]",function(e){t(e.target).is("[data-lity-close]")&&O.close()}).trigger("lity:open",[O]),T=O,1===a.unshift(T)&&(o.addClass("lity-active"),i.on({resize:D,keydown:j})),t("body > *").not(T.element()).addClass("lity-hidden").each(function(){var e=t(this);void 0===e.data(s)&&e.data(s,e.attr(l)||null)}).attr(l,"true"),t.when(y.content).always(function(e){p=t(e).css("max-height",E()+"px"),v.find(".lity-loader").each(function(){var e=t(this);h(e).always(function(){e.remove()})}),v.removeClass("lity-loading").find(".lity-content").empty().append(p),q=!0,p.trigger("lity:ready",[O])})}function O(e,i,r){e.preventDefault?(e.preventDefault(),e=(r=t(this)).data("lity-target")||r.attr("rel")||r.attr("src")):r=t(r);var o=new T(e,t.extend({},r.data("lity-options")||r.data("lity"),i),r,n.activeElement);if(!e.preventDefault)return o}return C.test=function(e){return u.test(e)},O.version="2.2.2",O.options=t.proxy(g,O,c),O.handlers=t.proxy(g,O,c.handlers),O.current=z,t(n).on("click.lity","[data-wpd-lity]",O),O});
17
+ /* My Content and Settings */
18
+ jQuery(document).ready(function(e){var t=0,d=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled);e(document).delegate(".wpd-info,.wpd-page-link,.wpd-delete-content,.wpd-user-email-delete-links","click",function(e){e.preventDefault()}),e(document).delegate(".wpd-info.wpd-not-clicked","click",function(t){var n=e(this);n.removeClass("wpd-not-clicked");var a=new FormData;return a.append("action","wpdGetInfo"),function(t,n){var a=e(".fas",t),i=a.attr("class");a.removeClass(),a.addClass("fas fa-pulse fa-spinner"),wpdiscuzAjaxObj.getAjaxObj(d,!1,n).done(function(d){t.addClass("wpd-not-clicked"),a.removeClass(),a.addClass(i),d&&(e("#wpdUserContentInfo").html(d),e("#wpdUserContentInfo ul.wpd-list .wpd-list-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo div.wpd-content .wpd-content-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo").is(":visible")||e("#wpdUserContentInfoAnchor").trigger("click"))})}(n,a),!1}),e(document).delegate(".wpd-list-item","click",function(){var t=e("input.wpd-rel",this).val();e("#wpdUserContentInfo .wpd-list-item").removeClass("wpd-active"),e("#wpdUserContentInfo .wpd-content-item").removeClass("wpd-active");var n=e(this);if(e("#wpdUserContentInfo #"+t).text().length)n.addClass("wpd-active"),e("#wpdUserContentInfo #"+t).addClass("wpd-active");else{var a=new FormData;a.append("action",n.attr("data-action")),a.append("page",0),e("#wpdUserContentInfo #"+t).addClass("wpd-active"),e("#wpdUserContentInfo #"+t).css("text-align","center"),wpdiscuzAjaxObj.getAjaxObj(d,!0,a).done(function(d){d&&(e("#wpdUserContentInfo #"+t).css("text-align",""),n.addClass("wpd-active"),e("#wpdUserContentInfo #"+t).html(d)),e("#wpdiscuz-loading-bar").hide()})}}),e(document).delegate(".wpd-page-link.wpd-not-clicked","click",function(t){var n=e(this);n.removeClass("wpd-not-clicked");var a=n.data("wpd-page"),i=e(".wpd-active .wpd-pagination .wpd-action").val(),o=new FormData;o.append("action",i),o.append("page",a),wpdiscuzAjaxObj.getAjaxObj(d,!0,o).done(function(t){n.addClass("wpd-not-clicked"),t&&e(".wpd-content-item.wpd-active").html(t),e("#wpdiscuz-loading-bar").hide()})}),e(document).delegate(".wpd-delete-content.wpd-not-clicked","click",function(){var n=e(this),a=parseInt(n.data("wpd-content-id"));if(!isNaN(a)){var i=n.data("wpd-delete-action");if("wpdDeleteComment"==i&&!confirm(wpdiscuzUCObj.msgConfirmDeleteComment))return!1;if("wpdCancelSubscription"==i&&!confirm(wpdiscuzUCObj.msgConfirmCancelSubscription))return!1;if("wpdCancelFollow"==i&&!confirm(wpdiscuzUCObj.msgConfirmCancelFollow))return!1;var o=e("i",n),s=o.attr("class"),c=e(".wpd-wrapper .wpd-page-number").val(),l=e(".wpd-content-item.wpd-active").children(".wpd-item").length;n.removeClass("wpd-not-clicked"),o.removeClass().addClass("fas fa-pulse fa-spinner"),1==l&&c>0&&(c-=1);var p=new FormData;p.append("id",a),p.append("page",c),p.append("action",i),wpdiscuzAjaxObj.getAjaxObj(d,!1,p).done(function(d){n.addClass("wpd-not-clicked"),o.removeClass().addClass(s),e(".wpd-content-item.wpd-active").html(d),t=1})}}),e(document).delegate("[data-lity-close]","click",function(d){e(d.target).is("[data-lity-close]")&&t&&window.location.reload(!0)}),e(document).delegate(".wpd-user-email-delete-links.wpd-not-clicked","click",function(){var t=e(this);t.removeClass("wpd-not-clicked"),e(".wpd-loading",t).addClass("wpd-show");var n=new FormData;n.append("action","wpdEmailDeleteLinks"),wpdiscuzAjaxObj.getAjaxObj(d,!1,n).done(function(d){t.addClass("wpd-not-clicked"),e("[data-lity-close]",window.parent.document).trigger("click")})}),e(document).delegate(".wpd-user-settings-button.wpd-not-clicked","click",function(){var t=e(this);t.removeClass("wpd-not-clicked");var n=t.data("wpd-delete-action");if(console.log(n),"deleteCookies"!==n){t.find(".wpd-loading").addClass("wpd-show");var a=new FormData;a.append("action","wpdGuestAction"),a.append("guestAction",n),wpdiscuzAjaxObj.getAjaxObj(d,!1,a).done(function(d){t.addClass("wpd-not-clicked"),t.find(".wpd-loading").removeClass("wpd-show");try{var n=e.parseJSON(d);t.after(n.message);var a=t.next(".wpd-guest-action-message");a.fadeIn(100).fadeOut(7e3,function(){a.remove(),1===parseInt(n.code)&&(t.parent().remove(),e(".wpd-delete-all-comments").length||e(".wpd-delete-all-subscriptions").length||e(".wpd-delete-all-cookies").parent().addClass("wpd-show"))})}catch(e){console.log(e)}})}else!function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var d=e[t],n=d.indexOf("="),a=n>-1?d.substr(0,n):d;Cookies.remove(a.trim())}location.reload(!0)}()})});
19
+ /* Social */
20
+ function wpcShareCommentFB(e,s){FB.ui({method:"share",href:e,quote:s},function(e){})}(wpdiscuzAjaxObj.enableFbLogin||wpdiscuzAjaxObj.enableFbShare)&&wpdiscuzAjaxObj.facebookAppID&&(!function(e,s,n){var o,a=e.getElementsByTagName(s)[0];e.getElementById(n)||((o=e.createElement(s)).id=n,o.src="//connect.facebook.net/en_US/sdk.js",a.parentNode.insertBefore(o,a))}(document,"script","facebook-jssdk"),window.fbAsyncInit=function(){FB.init({appId:wpdiscuzAjaxObj.facebookAppID,cookie:!0,xfbml:!0,version:"v2.8"})}),jQuery(document).ready(function(e){var s;(s=Cookies.get("wpdiscuz_social_login_message"))&&"undefined"!==s&&(Cookies.remove("wpdiscuz_social_login_message"),wpdiscuzAjaxObj.setCommentMessage(decodeURIComponent(s.replace(/\+/g,"%20")),"error")),Cookies.get("wpdiscuz_scroll_to_comments")&&(Cookies.remove("wpdiscuz_scroll_to_comments",{path:"/"}),e("html, body").animate({scrollTop:e("#comments").offset().top-32},1e3)),e(document).delegate(".wpd-comment-share .fa-facebook-f","click",function(){if(1==wpdiscuzAjaxObj.enableFbShare){var s=e(this).parents(".wpd-comment").find(".wpd-comment-right").attr("id"),n=window.location.href;-1!==n.indexOf("#")&&(n=n.substring(0,n.indexOf("#"))),wpcShareCommentFB(n+="#"+s,e(this).parents(".wpd-comment-right").find(".wpd-comment-text").text())}});var n="";function o(e,s){var n,o="";t(s,1),Cookies.set("wpdiscuz_scroll_to_comments",1,{path:"/"}),"facebook"===e&&0==wpdiscuzAjaxObj.facebookUseOAuth2?FB.getLoginStatus(function(t){"connected"===t.status?(n=t.authResponse.accessToken,o=t.authResponse.userID,a(e,n,o,s)):FB.login(function(t){"connected"===t.status&&(n=t.authResponse.accessToken,o=t.authResponse.userID,a(e,n,o,s))},{scope:"public_profile,email"})}):a(e,n,o,s)}function a(s,n,o,a){return e.ajax({type:"POST",url:wpdiscuzAjaxObj.url,data:{action:"wpd_social_login",provider:s,token:n,userID:o,postID:wpdiscuzAjaxObj.wc_post_id}}).done(function(s){!function(s,n){try{var o=e.parseJSON(s),a=o.code,i=o.message,c=o.url;200===parseInt(a)?location.assign(c):wpdiscuzAjaxObj.setCommentMessage(i,"error")}catch(e){console.log(e)}t(n,0)}(s,a)}),""}function t(e,s){1===s?e.find(".wpdiscuz-social-login-spinner").show():e.find(".wpdiscuz-social-login-spinner").hide()}e(document).delegate("#wpdcom .wpd-social-login .wpdiscuz-login-button","click",function(){var s=e(this).parents(".wpd-social-login");!function(e,s){1!=parseInt(wpdiscuzAjaxObj.socialLoginAgreementCheckbox)||1==Cookies.get("socialLoginAgreementConfirmed")?o(e,s):s.parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").first().slideDown(700)}(n=function(e){var s="";e.hasClass("wpdsn-fb")&&(s="facebook");e.hasClass("wpdsn-insta")&&(s="instagram");e.hasClass("wpdsn-gg")&&(s="google");e.hasClass("wpdsn-ds")&&(s="disqus");e.hasClass("wpdsn-wp")&&(s="wordpress");e.hasClass("wpdsn-tw")&&(s="twitter");e.hasClass("wpdsn-vk")&&(s="vk");e.hasClass("wpdsn-ok")&&(s="ok");e.hasClass("wpdsn-linked")&&(s="linkedin");e.hasClass("wpdsn-yandex")&&(s="yandex");e.hasClass("wpdsn-mailru")&&(s="mailru");e.hasClass("wpdsn-weixin")&&(s="wechat");e.hasClass("wpdsn-weibo")&&(s="weibo");e.hasClass("wpdsn-qq")&&(s="qq");e.hasClass("wpdsn-baidu")&&(s="baidu");return s}(e(this)),s)}),e(document).delegate("#wpdcom .wpd-agreement-buttons-right .wpd-agreement-button","click",function(){var s=e(this).parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").slideUp(700);e(this).hasClass("wpd-agreement-button-agree")&&(wpdiscuzAjaxObj.isCookiesEnabled&&Cookies.set("socialLoginAgreementConfirmed",1,{expires:30,path:"/"}),o(n,s))})});
assets/js/wpdiscuz-custom-form.js CHANGED
@@ -147,7 +147,7 @@ var wpdiscuzForm = {
147
  '<div class="wpd-form-row-actions">' +
148
  '<i class="fas fa-columns" title="' + wpdFormAdminOptions.two_column + '"></i>|' +
149
  '<i class="fas fa-trash-alt" title="' + wpdFormAdminOptions.delete + '"></i>|' +
150
- '<i class="fas fa-arrows-alt" aria-hidden="true" title="' + wpdFormAdminOptions.move + '"></i>' +
151
  '</div></div>' +
152
  '<div class="wpd-form-row">' +
153
  '<div class="wpd-form-row-body">' +
147
  '<div class="wpd-form-row-actions">' +
148
  '<i class="fas fa-columns" title="' + wpdFormAdminOptions.two_column + '"></i>|' +
149
  '<i class="fas fa-trash-alt" title="' + wpdFormAdminOptions.delete + '"></i>|' +
150
+ '<i class="fas fa-arrows-alt" title="' + wpdFormAdminOptions.move + '"></i>' +
151
  '</div></div>' +
152
  '<div class="wpd-form-row">' +
153
  '<div class="wpd-form-row-body">' +
assets/js/wpdiscuz-deactivation.js CHANGED
@@ -26,6 +26,8 @@ jQuery(document).ready(function ($) {
26
  var checkedItem = $('.wpd-deactivation-reason:checked');
27
  var parentItem = checkedItem.parents('.wpd-deactivation-reason-item');
28
  var reasonDesc = $('.dr_more_info', parentItem);
 
 
29
  var isValid = true;
30
 
31
  if (reasonDesc.length && reasonDesc.is(':visible')) {
@@ -42,6 +44,9 @@ jQuery(document).ready(function ($) {
42
  if (reasonDesc.length && $.trim(reasonDesc.val().length) > 0) {
43
  formData += '&deactivation_reason_desc=' + reasonDesc.val();
44
  }
 
 
 
45
  $('.wpd-loading', this).toggleClass('wpdiscuz-hidden');
46
  } else {
47
  alert(deactivationObj.msgReasonDescRequired);
@@ -50,7 +55,7 @@ jQuery(document).ready(function ($) {
50
  } else {
51
  formData = 'never_show=1';
52
  }
53
-
54
  if (formData) {
55
  $.ajax({
56
  type: 'POST',
26
  var checkedItem = $('.wpd-deactivation-reason:checked');
27
  var parentItem = checkedItem.parents('.wpd-deactivation-reason-item');
28
  var reasonDesc = $('.dr_more_info', parentItem);
29
+ var receiveEmail = $('[name=deactivation_feedback_receive_email]', parentItem).attr('checked');
30
+ var receiverEmail = $('[name=deactivation_feedback_email]', parentItem);
31
  var isValid = true;
32
 
33
  if (reasonDesc.length && reasonDesc.is(':visible')) {
44
  if (reasonDesc.length && $.trim(reasonDesc.val().length) > 0) {
45
  formData += '&deactivation_reason_desc=' + reasonDesc.val();
46
  }
47
+ if (receiveEmail && receiverEmail.length && $.trim(receiverEmail.val().length) > 0) {
48
+ formData += '&deactivation_feedback_email=' + receiverEmail.val();
49
+ }
50
  $('.wpd-loading', this).toggleClass('wpdiscuz-hidden');
51
  } else {
52
  alert(deactivationObj.msgReasonDescRequired);
55
  } else {
56
  formData = 'never_show=1';
57
  }
58
+
59
  if (formData) {
60
  $.ajax({
61
  type: 'POST',
assets/js/wpdiscuz-mu-backend.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function ($) {
2
+
3
+ $(document).delegate('#wmuSelectMimes', 'click', function (e) {
4
+ $('.wpd-mu-mimes input[type="checkbox"]').each(function (i, v) {
5
+ $(this).prop('checked', true);
6
+ });
7
+ });
8
+
9
+ $(document).delegate('#wmuUnselectMimes', 'click', function (e) {
10
+ $('.wpd-mu-mimes input[type="checkbox"]').each(function (i, v) {
11
+ $(this).prop('checked', false);
12
+ });
13
+ });
14
+
15
+ $(document).delegate('#wmuInvertMimes', 'click', function (e) {
16
+ $('.wpd-mu-mimes input[type="checkbox"]').each(function (i, v) {
17
+ $(this).prop('checked', !$(this).prop('checked'));
18
+ });
19
+ });
20
+
21
+ $(document).delegate('.wmu-attachment-delete', 'click', function (e) {
22
+ if (confirm(wpdiscuzMUJsObj.wmuMsgConfirmAttachmentDelete)) {
23
+ var data = new FormData();
24
+ var clicked = $(this);
25
+ var attachmentId = clicked.data('wmu-attachment');
26
+ data.append('action', 'wmuDeleteAttachment');
27
+ data.append('attachmentId', attachmentId);
28
+ var ajax = wmuGetAjaxObj(data);
29
+ ajax.done(function (r) {
30
+ if (r.success) {
31
+ $('.wmu-attachment-' + attachmentId).remove();
32
+ } else {
33
+ if (r.data.error) {
34
+ alert(r.data.error);
35
+ }
36
+ }
37
+ });
38
+ } else {
39
+ console.log('canceled');
40
+ }
41
+ });
42
+
43
+ $(document).delegate('.wmu-image-dimension', 'change', function () {
44
+ var parent = $(this).parents('.wpd-opt-row');
45
+ var wmuSingleImageW = $('.wmu-image-width', parent);
46
+ var wmuSingleImageH = $('.wmu-image-height', parent);
47
+ var wmuImageW = Math.abs(wmuSingleImageW.val());
48
+ var wmuImageH = Math.abs(wmuSingleImageH.val());
49
+
50
+ if ($(this).hasClass('wmu-image-width')) {
51
+ if (!isNaN(wmuImageW)) {
52
+ wmuImageH = "auto";
53
+ wmuSingleImageH.val("auto");
54
+ } else if (!isNaN(wmuImageW)) {
55
+ wmuSingleImageH.val("auto");
56
+ }
57
+ } else {
58
+ if (!isNaN(wmuImageH)) {
59
+ wmuImageW = "auto";
60
+ wmuSingleImageW.val("auto");
61
+ } else if (!isNaN(wmuImageW)) {
62
+ wmuSingleImageH.val("auto");
63
+ }
64
+ }
65
+ });
66
+
67
+ $(document).delegate('.wmu-image-dimension', 'keyup', function () {
68
+ var value = $(this).val();
69
+ $(this).val(value.replace('-', ''));
70
+ });
71
+
72
+ $(".wmu-lightbox").colorbox({
73
+ maxHeight: "95%",
74
+ maxWidth: "95%",
75
+ rel: "wmu-lightbox",
76
+ fixed: true
77
+ });
78
+
79
+ function wmuGetAjaxObj(data) {
80
+ return $.ajax({
81
+ type: 'POST',
82
+ url: ajaxurl,
83
+ data: data,
84
+ contentType: false,
85
+ processData: false,
86
+ });
87
+ }
88
+
89
+ });
assets/js/wpdiscuz-mu-frontend.js ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function ($) {
2
+
3
+ $(document).delegate('#wpdcom .wmu-upload-wrap', 'click', function () {
4
+ $('.wpd-form-foot', $(this).parents('.wpd_comm_form')).slideDown(parseInt(wpdiscuzAjaxObj.enableDropAnimation) ? 500 : 0);
5
+ });
6
+
7
+ $(document).delegate('.wmu-add-files', 'change', function () {
8
+ var btn = $(this);
9
+ var form = btn.parents('.wpd_comm_form');
10
+ var files = btn[0].files ? btn[0].files : [];
11
+ if (files.length) {
12
+ wmuUploadFiles(btn, form, files);
13
+ }
14
+ });
15
+
16
+ function wmuUploadFiles(btn, form, files) {
17
+ var data = new FormData();
18
+ data.append('action', 'wmuUploadFiles');
19
+ data.append('wmu_nonce', wpdiscuzAjaxObj.wmuSecurity);
20
+ data.append('wmuAttachmentsData', $('.wmu-attachments-data', form).val());
21
+ var size = 0;
22
+ $.each(files, function (i, file) {
23
+ size += file.size;
24
+ data.append(wpdiscuzAjaxObj.wmuInput + '[' + i + ']', file);
25
+ });
26
+ if (size > parseInt(wpdiscuzAjaxObj.wmuMaxFileSize)) {
27
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhraseMaxFileSize, 'error', 3000);
28
+ } else if (size > parseInt(wpdiscuzAjaxObj.wmuPostMaxSize)) {
29
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhrasePostMaxSize, 'error', 3000);
30
+ } else {
31
+ wpdiscuzAjaxObj.getAjaxObj(true, true, data)
32
+ .done(function (r) {
33
+ if (r.success) {
34
+ $('.wmu-attached-data-info', form).remove();
35
+ $('.wmu-add-files', form).after(r.data.attachmentsHtml);
36
+ if (r.data.tooltip) {
37
+ $('.wmu-upload-wrap').attr('wpd-tooltip', r.data.tooltip);
38
+ }
39
+ wmuDisplayPreviews(form, r);
40
+ if (r.data.errors) {
41
+ wpdiscuzAjaxObj.setCommentMessage(r.data.errors, 'error', 3000);
42
+ console.log(r.data.errors);
43
+ }
44
+ } else {
45
+ if (r.data.errorCode) {
46
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data.errorCode], 'error', 3000);
47
+ } else if (r.data.error) {
48
+ wpdiscuzAjaxObj.setCommentMessage(r.data.error, 'error', 3000);
49
+ }
50
+ }
51
+ $('#wpdiscuz-loading-bar').fadeOut(250);
52
+ })
53
+ .fail(function (jqXHR, textStatus, errorThrown) {
54
+ console.log(errorThrown);
55
+ $('#wpdiscuz-loading-bar').fadeOut(250);
56
+ });
57
+ }
58
+ }
59
+
60
+ function wmuDisplayPreviews(form, r) {
61
+ $.each(r.data.previewsData, function (key, fileList) {
62
+ $('.wmu-action-wrap .wmu-' + key + '-tab', form).html('');
63
+ $.each(fileList, function (index, fileData) {
64
+ var pId = fileData.id;
65
+ var pIcon = '';
66
+ var pFullname = fileData.fullname;
67
+ var pShortname = fileData.shortname;
68
+ if (key == wpdiscuzAjaxObj.wmuKeyImages) {
69
+ pIcon = fileData.url;
70
+ pShortname = '';
71
+ } else if (key == wpdiscuzAjaxObj.wmuKeyVideos) {
72
+ pIcon = wpdiscuzAjaxObj.wmuIconVideo;
73
+ } else if (key == wpdiscuzAjaxObj.wmuKeyFiles) {
74
+ pIcon = wpdiscuzAjaxObj.wmuIconFile;
75
+ }
76
+ var previewTemplate = '<div class="wmu-preview [PREVIEW_TYPE_CLASS]" title="[PREVIEW_TITLE]" data-wmu-type="[PREVIEW_TYPE]" data-wmu-attachment="[PREVIEW_ID]"><div class="wmu-preview-remove"><img class="wmu-preview-img" src="[PREVIEW_ICON]"><div class="wmu-file-name">[PREVIEW_FILENAME]</div><div class="wmu-delete">&nbsp;</div></div></div>';
77
+ previewTemplate = previewTemplate.replace('[PREVIEW_TYPE_CLASS]', 'wmu-preview-' + key);
78
+ previewTemplate = previewTemplate.replace('[PREVIEW_TITLE]', pFullname);
79
+ previewTemplate = previewTemplate.replace('[PREVIEW_TYPE]', key);
80
+ previewTemplate = previewTemplate.replace('[PREVIEW_ID]', pId);
81
+ previewTemplate = previewTemplate.replace('[PREVIEW_ICON]', pIcon);
82
+ previewTemplate = previewTemplate.replace('[PREVIEW_FILENAME]', pShortname);
83
+ $('.wmu-action-wrap .wmu-' + key + '-tab', form).removeClass('wmu-hide').append(previewTemplate);
84
+ });
85
+ });
86
+ }
87
+
88
+ $(document).delegate('.wmu-attachment-delete', 'click', function (e) {
89
+ if (confirm(wpdiscuzAjaxObj.wmuPhraseConfirmDelete)) {
90
+ var btn = $(this);
91
+ var attachmentId = btn.data('wmu-attachment');
92
+ var data = new FormData();
93
+ data.append('action', 'wmuDeleteAttachment');
94
+ data.append('attachmentId', attachmentId);
95
+ wpdiscuzAjaxObj.getAjaxObj(true, true, data)
96
+ .done(function (r) {
97
+ if (r.success) {
98
+ var parent = $('.wmu-attachment-' + attachmentId).parents('.wmu-comment-attachments');
99
+ $('.wmu-attachment-' + attachmentId).remove();
100
+ if (!$('.wmu-attached-images *', parent).length) {
101
+ $('.wmu-attached-images', parent).remove();
102
+ }
103
+ if (!$('.wmu-attached-videos *', parent).length) {
104
+ $('.wmu-attached-videos', parent).remove();
105
+ }
106
+ if (!$('.wmu-attached-files *', parent).length) {
107
+ $('.wmu-attached-files', parent).remove();
108
+ }
109
+ } else {
110
+ if (r.data.errorCode) {
111
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data.errorCode], 'error', 3000);
112
+ } else if (r.data.error) {
113
+ wpdiscuzAjaxObj.setCommentMessage(r.data.error, 'error', 3000);
114
+ }
115
+ }
116
+ $('#wpdiscuz-loading-bar').fadeOut(250);
117
+ })
118
+ .fail(function (jqXHR, textStatus, errorThrown) {
119
+ console.log(errorThrown);
120
+ $('#wpdiscuz-loading-bar').fadeOut(250);
121
+ });
122
+ } else {
123
+ console.log('canceled');
124
+ }
125
+ });
126
+ /**
127
+ * ajax request
128
+ * remove preview from frontend (html) and backend (db data)
129
+ */
130
+ $(document).delegate('.wmu-preview', 'click', function () {
131
+ var btn = $(this);
132
+ var form = btn.parents('.wpd_comm_form');
133
+ var type = btn.data('wmu-type');
134
+ var id = btn.data('wmu-attachment');
135
+ var data = new FormData();
136
+ data.append('action', 'wmuRemoveAttachmentPreview');
137
+ data.append('attachmentId', id);
138
+ data.append('wmuAttachmentsData', $('.wmu-attachments-data', form).val());
139
+ wpdiscuzAjaxObj.getAjaxObj(true, true, data)
140
+ .done(function (r) {
141
+ if (r.success) {
142
+ btn.remove();
143
+ var tabs = $('.wmu-tabs', form);
144
+ $.each(tabs, function (i, tab) {
145
+ if ($('.wmu-preview', tab).length) {
146
+ $(tab).removeClass('wmu-hide');
147
+ } else {
148
+ $(tab).addClass('wmu-hide');
149
+ }
150
+ });
151
+ $('.wmu-attached-data-info', form).remove();
152
+ $('.wmu-add-files', form).after(r.data.attachmentsHtml);
153
+ if (r.data.tooltip) {
154
+ $('.wmu-upload-wrap').attr('wpd-tooltip', r.data.tooltip);
155
+ }
156
+ } else {
157
+ if (r.data.errorCode) {
158
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data.errorCode], 'error', 3000);
159
+ } else if (r.data.error) {
160
+ wpdiscuzAjaxObj.setCommentMessage(r.data.error, 'error', 3000);
161
+ }
162
+ }
163
+ $('#wpdiscuz-loading-bar').fadeOut(250);
164
+ })
165
+ .fail(function (jqXHR, textStatus, errorThrown) {
166
+ console.log(errorThrown);
167
+ $('#wpdiscuz-loading-bar').fadeOut(250);
168
+ });
169
+ });
170
+
171
+ if (parseInt(wpdiscuzAjaxObj.wmuIsLightbox)) {
172
+ function wmuAddLightBox() {
173
+ $(".wmu-lightbox").colorbox({
174
+ maxHeight: "95%",
175
+ maxWidth: "95%",
176
+ rel: 'wmu-lightbox',
177
+ fixed: true
178
+ });
179
+ }
180
+ wmuAddLightBox();
181
+ wpdiscuzAjaxObj.wmuAddLightBox = wmuAddLightBox;
182
+ }
183
+
184
+ wpdiscuzAjaxObj.wmuHideAll = function (r, wcForm) {
185
+ if (typeof r === 'object') {
186
+ if (r.success) {
187
+ $('.wmu-tabs', wcForm).addClass('wmu-hide');
188
+ $('.wmu-preview', wcForm).remove();
189
+ $('.wmu-attached-data-info', wcForm).remove();
190
+ } else {
191
+ console.log(r.data);
192
+ }
193
+ } else {
194
+ console.log(r);
195
+ }
196
+ }
197
+
198
+ });
assets/js/wpdiscuz-mu-frontend.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(e){if(e(document).delegate("#wpdcom .wmu-upload-wrap","click",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0)}),e(document).delegate(".wmu-add-files","change",function(){var a=e(this),t=a.parents(".wpd_comm_form"),d=a[0].files?a[0].files:[];d.length&&function(a,t,d){var o=new FormData;o.append("action","wmuUploadFiles"),o.append("wmu_nonce",wpdiscuzAjaxObj.wmuSecurity),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val());var s=0;e.each(d,function(e,a){s+=a.size,o.append(wpdiscuzAjaxObj.wmuInput+"["+e+"]",a)}),s>parseInt(wpdiscuzAjaxObj.wmuMaxFileSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhraseMaxFileSize,"error",3e3):s>parseInt(wpdiscuzAjaxObj.wmuPostMaxSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wmuPhrasePostMaxSize,"error",3e3):wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(a){a.success?(e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(a.data.attachmentsHtml),a.data.tooltip&&e(".wmu-upload-wrap").attr("wpd-tooltip",a.data.tooltip),function(a,t){e.each(t.data.previewsData,function(t,d){e(".wmu-action-wrap .wmu-"+t+"-tab",a).html(""),e.each(d,function(d,o){var s=o.id,i="",m=o.fullname,r=o.shortname;t==wpdiscuzAjaxObj.wmuKeyImages?(i=o.url,r=""):t==wpdiscuzAjaxObj.wmuKeyVideos?i=wpdiscuzAjaxObj.wmuIconVideo:t==wpdiscuzAjaxObj.wmuKeyFiles&&(i=wpdiscuzAjaxObj.wmuIconFile);var u='<div class="wmu-preview [PREVIEW_TYPE_CLASS]" title="[PREVIEW_TITLE]" data-wmu-type="[PREVIEW_TYPE]" data-wmu-attachment="[PREVIEW_ID]"><div class="wmu-preview-remove"><img class="wmu-preview-img" src="[PREVIEW_ICON]"><div class="wmu-file-name">[PREVIEW_FILENAME]</div><div class="wmu-delete">&nbsp;</div></div></div>';u=(u=(u=(u=(u=(u=u.replace("[PREVIEW_TYPE_CLASS]","wmu-preview-"+t)).replace("[PREVIEW_TITLE]",m)).replace("[PREVIEW_TYPE]",t)).replace("[PREVIEW_ID]",s)).replace("[PREVIEW_ICON]",i)).replace("[PREVIEW_FILENAME]",r),e(".wmu-action-wrap .wmu-"+t+"-tab",a).removeClass("wmu-hide").append(u)})})}(t,a),a.data.errors&&(wpdiscuzAjaxObj.setCommentMessage(a.data.errors,"error",3e3),console.log(a.data.errors))):a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.errorCode],"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}(0,t,d)}),e(document).delegate(".wmu-attachment-delete","click",function(a){if(confirm(wpdiscuzAjaxObj.wmuPhraseConfirmDelete)){var t=e(this).data("wmu-attachment"),d=new FormData;d.append("action","wmuDeleteAttachment"),d.append("attachmentId",t),wpdiscuzAjaxObj.getAjaxObj(!0,!0,d).done(function(a){if(a.success){var d=e(".wmu-attachment-"+t).parents(".wmu-comment-attachments");e(".wmu-attachment-"+t).remove(),e(".wmu-attached-images *",d).length||e(".wmu-attached-images",d).remove(),e(".wmu-attached-videos *",d).length||e(".wmu-attached-videos",d).remove(),e(".wmu-attached-files *",d).length||e(".wmu-attached-files",d).remove()}else a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[a.data.errorCode],"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}else console.log("canceled")}),e(document).delegate(".wmu-preview","click",function(){var a=e(this),t=a.parents(".wpd_comm_form"),d=(a.data("wmu-type"),a.data("wmu-attachment")),o=new FormData;o.append("action","wmuRemoveAttachmentPreview"),o.append("attachmentId",d),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val()),wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(d){if(d.success){a.remove();var o=e(".wmu-tabs",t);e.each(o,function(a,t){e(".wmu-preview",t).length?e(t).removeClass("wmu-hide"):e(t).addClass("wmu-hide")}),e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(d.data.attachmentsHtml),d.data.tooltip&&e(".wmu-upload-wrap").attr("wpd-tooltip",d.data.tooltip)}else d.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[d.data.errorCode],"error",3e3):d.data.error&&wpdiscuzAjaxObj.setCommentMessage(d.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,d){console.log(d),e("#wpdiscuz-loading-bar").fadeOut(250)})}),parseInt(wpdiscuzAjaxObj.wmuIsLightbox)){function a(){e(".wmu-lightbox").colorbox({maxHeight:"95%",maxWidth:"95%",rel:"wmu-lightbox",fixed:!0})}a(),wpdiscuzAjaxObj.wmuAddLightBox=a}wpdiscuzAjaxObj.wmuHideAll=function(a,t){"object"==typeof a?a.success?(e(".wmu-tabs",t).addClass("wmu-hide"),e(".wmu-preview",t).remove(),e(".wmu-attached-data-info",t).remove()):console.log(a.data):console.log(a)}});
assets/js/wpdiscuz-options.js CHANGED
@@ -1,13 +1,9 @@
1
  jQuery(document).ready(function ($) {
2
-
 
3
  var doingAjax = false;
4
-
5
  if (location.href.indexOf('wpdiscuz_options_page') >= 0) {
6
  $('.wpdiscuz-color-picker').colorPicker();
7
-
8
- if (!$('ul.wpdiscuz-addons-options').html().trim()) {
9
- $('#wpdiscuz-addons-options').remove();
10
- }
11
  }
12
 
13
  $('#wc_share_button_fb').click(function () {
@@ -17,44 +13,39 @@ jQuery(document).ready(function ($) {
17
  $('#wpc-fb-api-cont').attr('style', 'display:none');
18
  }
19
  });
20
-
21
- $('#wpdiscuz-reset-options').click(function (e) {
22
  if (!confirm(wpdiscuzObj.msgConfirmResetOptions)) {
23
  e.preventDefault();
24
  return false;
25
  }
26
  });
27
-
 
 
 
 
 
28
  $('#wpdiscuz-remove-votes').click(function (e) {
29
  if (!confirm(wpdiscuzObj.msgConfirmRemoveVotes)) {
30
  e.preventDefault();
31
  return false;
32
  }
33
  });
34
-
35
  $('#wpdiscuz-reset-phrases').click(function (e) {
36
  if (!confirm(wpdiscuzObj.msgConfirmResetPhrases)) {
37
  e.preventDefault();
38
  return false;
39
  }
40
  });
41
-
42
  $('#wpdiscuz-purge-gravatars-cache').click(function (e) {
43
  if (!confirm(wpdiscuzObj.msgConfirmPurgeGravatarsCache)) {
44
  e.preventDefault();
45
  return false;
46
  }
47
  });
48
-
49
- $('#wpdiscuz-purge-statistics-cache').click(function (e) {
50
- if (!confirm(wpdiscuzObj.msgConfirmPurgeStatisticsCache)) {
51
- e.preventDefault();
52
- return false;
53
- }
54
- });
55
-
56
- $(document).delegate('.wc_stick_btn', 'click', function (e) {
57
  var btn = $(this);
 
58
  $('.fas', btn).addClass('fa-pulse fa-spinner');
59
  var commentId = btn.data('comment');
60
  var postId = btn.data('post');
@@ -68,27 +59,28 @@ jQuery(document).ready(function ($) {
68
  data: data,
69
  contentType: false,
70
  processData: false,
71
- }).done(function (response) {
72
- try {
73
  $('.fas', btn).removeClass('fa-pulse fa-spinner');
74
- var resp = $.parseJSON(response);
75
- if (resp.code == 1) {
76
- $('.wc_stick_text', btn).text(resp.data);
77
  } else {
78
- console.log('Comment not updated');
79
  }
80
- } catch (e) {
81
- console.log(e);
82
  }
83
- $('.wpdiscuz-loading-bar').fadeOut(250);
 
84
  });
85
  e.preventDefault();
86
  return false;
87
  });
88
-
89
- $(document).delegate('.wc_close_btn', 'click', function (e) {
90
  var btn = $(this);
91
- $('.fas', btn).addClass('fa-pulse fa-spinner');
 
92
  var commentId = btn.data('comment');
93
  var postId = btn.data('post');
94
  var data = new FormData();
@@ -101,35 +93,32 @@ jQuery(document).ready(function ($) {
101
  data: data,
102
  contentType: false,
103
  processData: false,
104
- }).done(function (response) {
105
- try {
106
  $('.fas', btn).removeClass('fa-pulse fa-spinner');
107
- var resp = $.parseJSON(response);
108
- if (resp.code == 1) {
109
- $('.wc_close_text', btn).text(resp.data);
110
  $('.fas', btn).removeClass('fa-lock fa-unlock');
111
- $('.fas', btn).addClass(resp.icon);
112
  } else {
113
- console.log('Comment not updated');
114
  }
115
- } catch (e) {
116
- console.log(e);
117
  }
118
- $('.wpdiscuz-loading-bar').fadeOut(250);
 
119
  });
120
  e.preventDefault();
121
  return false;
122
  });
123
-
124
  $(document).delegate('.import-stcr', 'click', function (e) {
125
  e.preventDefault();
126
  var btn = $(this);
127
  btn.attr('disabled', 'disabled');
128
  $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
129
  importSTCR(btn);
130
-
131
  });
132
-
133
  function importSTCR(btn) {
134
  doingAjax = true;
135
  var data = btn.parents('.wc-form').serialize();
@@ -139,10 +128,8 @@ jQuery(document).ready(function ($) {
139
  data: {stcrData: data, 'action': 'wpdImportSTCR'}
140
  }).done(function (response) {
141
  try {
142
- var resp = $.parseJSON(response);
143
- console.log(resp.progress);
144
  $('.stcr-step').val(resp.step);
145
-
146
  if (resp.progress < 100) {
147
  importSTCR(btn);
148
  } else {
@@ -167,83 +154,340 @@ jQuery(document).ready(function ($) {
167
  } catch (e) {
168
  console.log(e);
169
  }
 
 
170
  });
171
  }
172
 
173
- $('#wpd-disable-addons').click(function () {
174
- location.href = $('#wpd-disable-addons-action').val();
175
- });
176
-
177
- $('#generateAntispamKey').click(function () {
178
- $('#antispamKey').val(uniqueKey(32));
179
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
181
- function uniqueKey(length) {
182
- var text = "";
183
- var possible = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-=";
184
 
185
- for (var i = 0; i < length; i++)
186
- text += possible.charAt(Math.floor(Math.random() * possible.length));
 
 
 
 
 
 
 
 
 
 
187
 
188
- return text;
 
 
 
 
 
189
  }
190
 
191
-
192
- $('.hashing-step').val(0);
193
- $(document).delegate('.update-not-hashed-ips', 'click', function (e) {
194
  e.preventDefault();
195
- if ($('.not-hashed-start-id').val() >= 0) {
196
  var btn = $(this);
197
  btn.attr('disabled', 'disabled');
198
  $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
199
- updateNotHashedIps(btn);
200
  }
201
 
202
  });
203
-
204
- function updateNotHashedIps(btn) {
205
  doingAjax = true;
206
  var data = btn.parents('.wc-form').serialize();
207
  $.ajax({
208
  type: 'POST',
209
  url: ajaxurl,
210
- data: {notHashedData: data, action: 'wpdHashVoteIps'}
211
  }).done(function (response) {
212
  try {
213
- var resp = $.parseJSON(response);
214
- $('.hashing-step').val(resp.step);
215
- $('.not-hashed-start-id').val(resp.startId);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  if (resp.progress < 100) {
218
- updateNotHashedIps(btn);
219
  } else {
220
- btn.removeAttr('disabled');
221
  $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
222
  }
223
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
 
225
- if (resp.progress <= 3) {
226
- $('.import-progress').text(3 + '%');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  } else {
228
  if (resp.progress < 100) {
229
- $('.import-progress').text(resp.progress + '%');
230
  } else {
231
- $('.update-not-hashed-ips').attr('disabled', 'disabled');
232
- $('.import-progress').css({'color': '#10b493'});
233
- $('.import-progress').text(resp.progress + '% Done');
234
- $('.not-hashed-count').val(0);
235
- $('.hashing-step').val(0);
236
- $('.not-hashed-start-id').val(0);
237
  doingAjax = false;
 
 
 
238
  }
239
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  } catch (e) {
242
  console.log(e);
243
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  });
245
  }
246
 
 
 
 
247
  window.onbeforeunload = confirmExit;
248
  function confirmExit() {
249
  if (doingAjax) {
@@ -251,5 +495,523 @@ jQuery(document).ready(function ($) {
251
  }
252
  }
253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
255
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).ready(function ($) {
2
+ /* global Cookies */
3
+ /* global Chart */
4
  var doingAjax = false;
 
5
  if (location.href.indexOf('wpdiscuz_options_page') >= 0) {
6
  $('.wpdiscuz-color-picker').colorPicker();
 
 
 
 
7
  }
8
 
9
  $('#wc_share_button_fb').click(function () {
13
  $('#wpc-fb-api-cont').attr('style', 'display:none');
14
  }
15
  });
16
+ $('#wpdiscuz-reset-all-options').click(function (e) {
 
17
  if (!confirm(wpdiscuzObj.msgConfirmResetOptions)) {
18
  e.preventDefault();
19
  return false;
20
  }
21
  });
22
+ $('#wpdiscuz-reset-options').click(function (e) {
23
+ if (!confirm(wpdiscuzObj.msgConfirmResetTabOptions)) {
24
+ e.preventDefault();
25
+ return false;
26
+ }
27
+ });
28
  $('#wpdiscuz-remove-votes').click(function (e) {
29
  if (!confirm(wpdiscuzObj.msgConfirmRemoveVotes)) {
30
  e.preventDefault();
31
  return false;
32
  }
33
  });
 
34
  $('#wpdiscuz-reset-phrases').click(function (e) {
35
  if (!confirm(wpdiscuzObj.msgConfirmResetPhrases)) {
36
  e.preventDefault();
37
  return false;
38
  }
39
  });
 
40
  $('#wpdiscuz-purge-gravatars-cache').click(function (e) {
41
  if (!confirm(wpdiscuzObj.msgConfirmPurgeGravatarsCache)) {
42
  e.preventDefault();
43
  return false;
44
  }
45
  });
46
+ $(document).delegate('.wpd_stick_btn', 'click', function (e) {
 
 
 
 
 
 
 
 
47
  var btn = $(this);
48
+ $('.fas', btn).removeClass('fa-thumbtack');
49
  $('.fas', btn).addClass('fa-pulse fa-spinner');
50
  var commentId = btn.data('comment');
51
  var postId = btn.data('post');
59
  data: data,
60
  contentType: false,
61
  processData: false,
62
+ }).done(function (r) {
63
+ if (typeof r === 'object') {
64
  $('.fas', btn).removeClass('fa-pulse fa-spinner');
65
+ $('.fas', btn).addClass('fa-thumbtack');
66
+ if (r.success) {
67
+ $('.wpd_stick_text', btn).text(r.data);
68
  } else {
69
+ console.log(r.data);
70
  }
71
+ } else {
72
+ console.log(r);
73
  }
74
+ }).fail(function (jqXHR, textStatus, errorThrown) {
75
+ console.log(errorThrown);
76
  });
77
  e.preventDefault();
78
  return false;
79
  });
80
+ $(document).delegate('.wpd_close_btn', 'click', function (e) {
 
81
  var btn = $(this);
82
+ $('.fas', btn).removeClass('fa-lock fa-unlock');
83
+ $('.fas', btn).addClass('fa-spinner fa-pulse');
84
  var commentId = btn.data('comment');
85
  var postId = btn.data('post');
86
  var data = new FormData();
93
  data: data,
94
  contentType: false,
95
  processData: false,
96
+ }).done(function (r) {
97
+ if (typeof r === 'object') {
98
  $('.fas', btn).removeClass('fa-pulse fa-spinner');
99
+ if (r.success) {
100
+ $('.wpd_close_text', btn).text(r.data.data);
 
101
  $('.fas', btn).removeClass('fa-lock fa-unlock');
102
+ $('.fas', btn).addClass(r.data.icon);
103
  } else {
104
+ console.log(r.data);
105
  }
106
+ } else {
107
+ console.log(r);
108
  }
109
+ }).fail(function (jqXHR, textStatus, errorThrown) {
110
+ console.log(errorThrown);
111
  });
112
  e.preventDefault();
113
  return false;
114
  });
 
115
  $(document).delegate('.import-stcr', 'click', function (e) {
116
  e.preventDefault();
117
  var btn = $(this);
118
  btn.attr('disabled', 'disabled');
119
  $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
120
  importSTCR(btn);
 
121
  });
 
122
  function importSTCR(btn) {
123
  doingAjax = true;
124
  var data = btn.parents('.wc-form').serialize();
128
  data: {stcrData: data, 'action': 'wpdImportSTCR'}
129
  }).done(function (response) {
130
  try {
131
+ var resp = JSON.parse(response);
 
132
  $('.stcr-step').val(resp.step);
 
133
  if (resp.progress < 100) {
134
  importSTCR(btn);
135
  } else {
154
  } catch (e) {
155
  console.log(e);
156
  }
157
+ }).fail(function (jqXHR, textStatus, errorThrown) {
158
+ console.log(errorThrown);
159
  });
160
  }
161
 
162
+ $(document).delegate('.import-cir', 'click', function (e) {
163
+ e.preventDefault();
164
+ var btn = $(this);
165
+ btn.attr('disabled', 'disabled');
166
+ $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
167
+ importCIR(btn);
168
  });
169
+ function importCIR(btn) {
170
+ doingAjax = true;
171
+ var data = btn.parents('.wc-form').serialize();
172
+ $.ajax({
173
+ type: 'POST',
174
+ url: ajaxurl,
175
+ data: {cirData: data, 'action': 'wpdImportCIR'}
176
+ }).done(function (response) {
177
+ try {
178
+ var resp = JSON.parse(response);
179
+ $('.cir-step').val(resp.step);
180
+ if (resp.progress < 100) {
181
+ importCIR(btn);
182
+ } else {
183
+ btn.removeAttr('disabled');
184
+ $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
185
+ }
186
 
 
 
 
187
 
188
+ if (resp.progress <= 3) {
189
+ $('.import-progress').text(3 + '%');
190
+ } else {
191
+ if (resp.progress < 100) {
192
+ $('.import-progress').text(resp.progress + '%');
193
+ } else {
194
+ $('.import-progress').css({'color': '#10b493'});
195
+ $('.import-progress').text(resp.progress + '% Done');
196
+ $('.cir-step').val(0);
197
+ doingAjax = false;
198
+ }
199
+ }
200
 
201
+ } catch (e) {
202
+ console.log(e);
203
+ }
204
+ }).fail(function (jqXHR, textStatus, errorThrown) {
205
+ console.log(errorThrown);
206
+ });
207
  }
208
 
209
+ $('.vote-regenerate-step').val(0);
210
+ $(document).delegate('.regenerate-vote-metas', 'click', function (e) {
 
211
  e.preventDefault();
212
+ if ($('.vote-regenerate-start-id').val() >= 0 && parseInt($('.vote-regenerate-limit').val()) > 0) {
213
  var btn = $(this);
214
  btn.attr('disabled', 'disabled');
215
  $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
216
+ updateVoteMetas(btn);
217
  }
218
 
219
  });
220
+ function updateVoteMetas(btn) {
 
221
  doingAjax = true;
222
  var data = btn.parents('.wc-form').serialize();
223
  $.ajax({
224
  type: 'POST',
225
  url: ajaxurl,
226
+ data: {voteRegenerateData: data, action: 'wpdRegenerateVoteMetas'}
227
  }).done(function (response) {
228
  try {
229
+ var resp = JSON.parse(response);
230
+ $('.vote-regenerate-step').val(resp.step);
231
+ $('.vote-regenerate-start-id').val(resp.startId);
232
+ if (resp.progress < 100) {
233
+ updateVoteMetas(btn);
234
+ } else {
235
+ $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
236
+ }
237
+
238
+ if (resp.progress <= 1) {
239
+ $('.vote-regenerate-import-progress').text(1 + '%');
240
+ } else {
241
+ if (resp.progress < 100) {
242
+ $('.vote-regenerate-import-progress').text(resp.progress + '%');
243
+ } else {
244
+ $('.vote-regenerate-import-progress').css({'color': '#10b493'});
245
+ $('.vote-regenerate-import-progress').text(resp.progress + '% Done');
246
+ $('.vote-regenerate-count').val(0);
247
+ $('.vote-regenerate-step').val(0);
248
+ $('.vote-regenerate-start-id').val(0);
249
+ doingAjax = false;
250
+ setTimeout(function () {
251
+ location.reload(true);
252
+ }, 2000);
253
+ }
254
+ }
255
+ } catch (e) {
256
+ console.log(e);
257
+ }
258
+ }).fail(function (jqXHR, textStatus, errorThrown) {
259
+ console.log(errorThrown);
260
+ });
261
+ }
262
+
263
+ $('.closed-regenerate-step').val(0);
264
+ $(document).delegate('.regenerate-closed-comments', 'click', function (e) {
265
+ e.preventDefault();
266
+ if ($('.closed-regenerate-start-id').val() >= 0 && parseInt($('.closed-regenerate-limit').val()) > 0) {
267
+ var btn = $(this);
268
+ btn.attr('disabled', 'disabled');
269
+ $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
270
+ updateClosedComments(btn);
271
+ }
272
 
273
+ });
274
+ function updateClosedComments(btn) {
275
+ doingAjax = true;
276
+ var data = btn.parents('.wc-form').serialize();
277
+ $.ajax({
278
+ type: 'POST',
279
+ url: ajaxurl,
280
+ data: {closedRegenerateData: data, action: 'wpdRegenerateClosedComments'}
281
+ }).done(function (response) {
282
+ try {
283
+ var resp = JSON.parse(response);
284
+ $('.closed-regenerate-step').val(resp.step);
285
+ $('.closed-regenerate-start-id').val(resp.startId);
286
  if (resp.progress < 100) {
287
+ updateClosedComments(btn);
288
  } else {
 
289
  $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
290
  }
291
 
292
+ if (resp.progress <= 1) {
293
+ $('.closed-regenerate-import-progress').text(1 + '%');
294
+ } else {
295
+ if (resp.progress < 100) {
296
+ $('.closed-regenerate-import-progress').text(resp.progress + '%');
297
+ } else {
298
+ $('.closed-regenerate-import-progress').css({'color': '#10b493'});
299
+ $('.closed-regenerate-import-progress').text(resp.progress + '% Done');
300
+ $('.closed-regenerate-count').val(0);
301
+ $('.closed-regenerate-step').val(0);
302
+ $('.closed-regenerate-start-id').val(0);
303
+ doingAjax = false;
304
+ setTimeout(function () {
305
+ location.reload(true);
306
+ }, 2000);
307
+ }
308
+ }
309
+ } catch (e) {
310
+ console.log(e);
311
+ }
312
+ }).fail(function (jqXHR, textStatus, errorThrown) {
313
+ console.log(errorThrown);
314
+ });
315
+ }
316
 
317
+ $('.regenerate-vote-data-step').val(0);
318
+ $(document).delegate('.regenerate-vote-data', 'click', function (e) {
319
+ e.preventDefault();
320
+ if ($('.regenerate-vote-data-start-id').val() >= 0 && parseInt($('.regenerate-vote-data-limit').val()) > 0) {
321
+ var btn = $(this);
322
+ btn.attr('disabled', 'disabled');
323
+ $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
324
+ regenerateVoteData(btn);
325
+ }
326
+
327
+ });
328
+ function regenerateVoteData(btn) {
329
+ doingAjax = true;
330
+ var data = btn.parents('.wc-form').serialize();
331
+ $.ajax({
332
+ type: 'POST',
333
+ url: ajaxurl,
334
+ data: {regenerateVoteData: data, action: 'wpdRegenerateVoteData'}
335
+ }).done(function (response) {
336
+ try {
337
+ var resp = JSON.parse(response);
338
+ $('.regenerate-vote-data-step').val(resp.step);
339
+ $('.regenerate-vote-data-start-id').val(resp.startId);
340
+ if (resp.progress < 100) {
341
+ regenerateVoteData(btn);
342
+ } else {
343
+ $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
344
+ }
345
+
346
+ if (resp.progress <= 1) {
347
+ $('.regenerate-vote-data-import-progress').text(1 + '%');
348
  } else {
349
  if (resp.progress < 100) {
350
+ $('.regenerate-vote-data-import-progress').text(resp.progress + '%');
351
  } else {
352
+ $('.regenerate-vote-data-import-progress').css({'color': '#10b493'});
353
+ $('.regenerate-vote-data-import-progress').text(resp.progress + '% Done');
354
+ $('.regenerate-vote-data-count').val(0);
355
+ $('.regenerate-vote-data-step').val(0);
356
+ $('.regenerate-vote-data-start-id').val(0);
 
357
  doingAjax = false;
358
+ setTimeout(function () {
359
+ location.reload(true);
360
+ }, 2000);
361
  }
362
  }
363
+ } catch (e) {
364
+ console.log(e);
365
+ }
366
+ }).fail(function (jqXHR, textStatus, errorThrown) {
367
+ console.log(errorThrown);
368
+ });
369
+ }
370
+
371
+ $(document).delegate('.sync-commenter-data', 'click', function (e) {
372
+ e.preventDefault();
373
+ var btn = $(this);
374
+ btn.attr('disabled', 'disabled');
375
+ $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
376
+ syncCommenterData(btn);
377
+ });
378
+ function syncCommenterData(btn) {
379
+ doingAjax = true;
380
+ var data = btn.parents('.wc-form').serialize();
381
+ $.ajax({
382
+ type: 'POST',
383
+ url: ajaxurl,
384
+ data: {syncCommenterData: data, action: 'wpdSyncCommenterData'}
385
+ }).done(function (r) {
386
+ if (typeof r === 'object') {
387
+ if (r.success) {
388
+ $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
389
+ $('.sync-commenter-import-progress').css({'color': '#10b493'});
390
+ $('.sync-commenter-import-progress').text('Done');
391
+ doingAjax = false;
392
+ setTimeout(function () {
393
+ location.reload(true);
394
+ }, 2000);
395
+ } else {
396
+ console.log('Something is wrong');
397
+ }
398
+ } else {
399
+ console.log(r);
400
+ }
401
+ }).fail(function (jqXHR, textStatus, errorThrown) {
402
+ console.log(errorThrown);
403
+ });
404
+ }
405
+
406
+ $('.rebuild-ratings-step').val(0);
407
+ $(document).delegate('.rebuild-ratings', 'click', function (e) {
408
+ e.preventDefault();
409
+ if ($('.rebuild-ratings-start-id').val() >= 0) {
410
+ var btn = $(this);
411
+ btn.attr('disabled', 'disabled');
412
+ $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
413
+ rebuildRatings(btn);
414
+ }
415
+
416
+ });
417
+ function rebuildRatings(btn) {
418
+ doingAjax = true;
419
+ var data = btn.parents('.wc-form').serialize();
420
+ $.ajax({
421
+ type: 'POST',
422
+ url: ajaxurl,
423
+ data: {rebuildRatings: data, action: 'wpdRebuildRatings'}
424
+ }).done(function (response) {
425
+ try {
426
+ var resp = JSON.parse(response);
427
+ $('.rebuild-ratings-step').val(resp.step);
428
+ $('.rebuild-ratings-start-id').val(resp.startId);
429
+ if (resp.progress < 100) {
430
+ rebuildRatings(btn);
431
+ } else {
432
+ $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
433
+ }
434
 
435
+ if (resp.progress <= 1) {
436
+ $('.rebuild-ratings-import-progress').text(1 + '%');
437
+ } else {
438
+ if (resp.progress < 100) {
439
+ $('.rebuild-ratings-import-progress').text(resp.progress + '%');
440
+ } else {
441
+ $('.rebuild-ratings-import-progress').css({'color': '#10b493'});
442
+ $('.rebuild-ratings-import-progress').text(resp.progress + '% Done');
443
+ $('.rebuild-ratings-count').val(0);
444
+ $('.rebuild-ratings-step').val(0);
445
+ $('.rebuild-ratings-start-id').val(0);
446
+ doingAjax = false;
447
+ }
448
+ }
449
  } catch (e) {
450
  console.log(e);
451
  }
452
+ }).fail(function (jqXHR, textStatus, errorThrown) {
453
+ console.log(errorThrown);
454
+ });
455
+ }
456
+ $(document).delegate('.fix-tables', 'click', function (e) {
457
+ e.preventDefault();
458
+ var btn = $(this);
459
+ btn.attr('disabled', 'disabled');
460
+ $('.fas', btn).addClass('fa-pulse fa-spinner').removeClass('wc-hidden');
461
+ fixTables(btn);
462
+ });
463
+ function fixTables(btn) {
464
+ doingAjax = true;
465
+ var data = btn.parents('.wc-form').serialize();
466
+ $.ajax({
467
+ type: 'POST',
468
+ url: ajaxurl,
469
+ data: {fixTables: data, action: 'wpdFixTables'}
470
+ }).done(function (r) {
471
+ if (typeof r === 'object') {
472
+ if (r.success) {
473
+ $('.fas', btn).removeClass('fa-pulse fa-spinner').addClass('wc-hidden');
474
+ $('.fix-tables-import-progress').css({'color': '#10b493'});
475
+ $('.fix-tables-import-progress').text('Done');
476
+ doingAjax = false;
477
+ } else {
478
+ console.log('Something is wrong');
479
+ }
480
+ } else {
481
+ console.log(r);
482
+ }
483
+ }).fail(function (jqXHR, textStatus, errorThrown) {
484
+ console.log(errorThrown);
485
  });
486
  }
487
 
488
+ $('#wpd-disable-addons').click(function () {
489
+ location.href = $('#wpd-disable-addons-action').val();
490
+ });
491
  window.onbeforeunload = confirmExit;
492
  function confirmExit() {
493
  if (doingAjax) {
495
  }
496
  }
497
 
498
+ $(".wmu-lightbox").colorbox({
499
+ maxHeight: "95%",
500
+ maxWidth: "95%",
501
+ rel: "wmu-lightbox",
502
+ fixed: true
503
+ });
504
+
505
+ //========================= SETTINGS_LOGIN =====================//
506
+ var showActivityTab = $('#showActivityTab').attr('checked');
507
+ var showSubscriptionsTab = $('#showSubscriptionsTab').attr('checked');
508
+ var showFollowsTab = $('#showFollowsTab').attr('checked');
509
+ if (showActivityTab || showFollowsTab || showSubscriptionsTab) {
510
+ $('#showUserSettingsButton').attr('checked', true);
511
+ }
512
+ $('#showUserSettingsButton').change(function () {
513
+ var checked = $(this).attr('checked');
514
+ if (checked) {
515
+ if (showActivityTab || showFollowsTab || showSubscriptionsTab) {
516
+ if (showActivityTab) {
517
+ $('#showActivityTab').attr('checked', true);
518
+ }
519
+ if (showFollowsTab) {
520
+ $('#showFollowsTab').attr('checked', true);
521
+ }
522
+ if (showSubscriptionsTab) {
523
+ $('#showSubscriptionsTab').attr('checked', true);
524
+ }
525
+ } else {
526
+ $('#showActivityTab').attr('checked', true);
527
+ $('#showSubscriptionsTab').attr('checked', true);
528
+ $('#showFollowsTab').attr('checked', true);
529
+ }
530
+ } else {
531
+ $('#showActivityTab').attr('checked', false);
532
+ $('#showSubscriptionsTab').attr('checked', false);
533
+ $('#showFollowsTab').attr('checked', false);
534
+ }
535
+ });
536
+ $('#showActivityTab').change(function () {
537
+ var checked = $(this).attr('checked');
538
+ if (checked || ($('#showSubscriptionsTab').attr('checked') || $('#showFollowsTab').attr('checked'))) {
539
+ $('#showUserSettingsButton').attr('checked', true);
540
+ } else {
541
+ $('#showUserSettingsButton').attr('checked', false);
542
+ }
543
+ });
544
+ $('#showSubscriptionsTab').change(function () {
545
+ var checked = $(this).attr('checked');
546
+ if (checked || ($('#showActivityTab').attr('checked') || $('#showFollowsTab').attr('checked'))) {
547
+ $('#showUserSettingsButton').attr('checked', true);
548
+ } else {
549
+ $('#showUserSettingsButton').attr('checked', false);
550
+ }
551
+ });
552
+ $('#showFollowsTab').change(function () {
553
+ var checked = $(this).attr('checked');
554
+ if (checked || ($('#showActivityTab').attr('checked') || $('#showSubscriptionsTab').attr('checked'))) {
555
+ $('#showUserSettingsButton').attr('checked', true);
556
+ } else {
557
+ $('#showUserSettingsButton').attr('checked', false);
558
+ }
559
+ });
560
+ $('#enableProfileURLs').change(function () {
561
+ if (!$(this).prop('checked')) {
562
+ $('#websiteAsProfileUrl').prop('checked', false);
563
+ }
564
+ });
565
+ //========================= /SETTINGS_LOGIN =====================//
566
+ //========================= SETTINGS_RECAPTCHA =====================//
567
+ $(document).delegate('#siteKey, #secretKey, #v3_sitekey, #v3_secretkey, #useV3', 'change', function () {
568
+ if ((!$('#useV3').attr('checked') && $('#siteKey').val() && $('#secretKey').val()) || ($('#useV3').attr('checked') && $('#v3_sitekey').val() && $('#v3_secretkey').val())) {
569
+ $('#showForGuests').attr('checked', true);
570
+ }
571
+ });
572
+ //========================= /SETTINGS_RECAPTCHA =====================//
573
+ //========================= DASHBOARD =====================//
574
+ if ($('#wpdiscuz-news').length) {
575
+ setTimeout(function () {
576
+ if (parseInt(Cookies.get('wpd_show_news')) === 0) {
577
+ $('#wpdiscuz-news').hide();
578
+ }
579
+ }, 1000);
580
+ }
581
+ $(document).delegate('.wpd-toggle-news', 'click', function () {
582
+ var dash = $(this).children('.dashicons');
583
+ if (dash.hasClass('dashicons-arrow-down')) {
584
+ $('#wpdiscuz-news').show();
585
+ Cookies.set('wpd_show_news', 1, {expires: 365, path: location.href});
586
+ } else {
587
+ $('#wpdiscuz-news').hide();
588
+ Cookies.set('wpd_show_news', 0, {expires: 365, path: location.href});
589
+ }
590
+ dash.toggleClass('dashicons-arrow-down dashicons-arrow-up')
591
+ });
592
+ if ($('.wpd-stat-brief-top').length) {
593
+ wpd_stat_brief();
594
+ }
595
+ if ($('.wpd-stat-subs .wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked').length) {
596
+ var el = $('.wpd-stat-subs .wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked');
597
+ el.removeClass('wpd_not_clicked');
598
+ var body = el.parents('.wpd-box').children('.wpd-box-body');
599
+ wpd_stat_subs(el, body);
600
+ }
601
+ if ($('.wpd-stat-graph .wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked').length) {
602
+ var el = $('.wpd-stat-graph .wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked');
603
+ el.removeClass('wpd_not_clicked');
604
+ var body = el.parents('.wpd-box').children('.wpd-box-body');
605
+ wpd_stat_graph(el, body);
606
+ }
607
+ if ($('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked').length) {
608
+ var el = $('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked');
609
+ el.removeClass('wpd_not_clicked');
610
+ var body = el.parents('.wpd-box').children('.wpd-box-body');
611
+ wpd_stat_user(el, body);
612
+ }
613
+ $(document).delegate('.wpd-box-toggle .dashicons-arrow-up.wpd_not_clicked, .wpd-box-toggle .dashicons-arrow-down.wpd_not_clicked', 'click', function () {
614
+ var el = $(this);
615
+ el.removeClass('wpd_not_clicked');
616
+ var show = el.hasClass('dashicons-arrow-down') ? 1 : 0;
617
+ var parent = el.parents('.wpd-box');
618
+ var action = parent.data('box');
619
+ Cookies.set(action, show, {expires: 365, path: location.href});
620
+ $(this).toggleClass('dashicons-arrow-up dashicons-arrow-down');
621
+ var body = parent.children('.wpd-box-body');
622
+ body.toggle();
623
+ if (show) {
624
+ window[action](el, body);
625
+ } else {
626
+ if (action === 'wpd_stat_graph') {
627
+ parent.find('.wpd-box-toggle .dashicons-admin-generic, .wpd-box-info').hide();
628
+ } else if (action === 'wpd_stat_user') {
629
+ parent.find('.wpd-box-toggle .dashicons-arrow-left, .wpd-box-toggle .dashicons-arrow-right').hide();
630
+ }
631
+ body.empty();
632
+ el.addClass('wpd_not_clicked');
633
+ }
634
+ });
635
+ $(document).delegate('.wpd-stat-graph .wpd-box-toggle .dashicons-admin-generic', 'click', function () {
636
+ var sibling = $(this).siblings('.wpd-graph-tools');
637
+ sibling.css({display: sibling.is(':visible') ? 'none' : 'flex'});
638
+ });
639
+ $('body').click(function () {
640
+ $('.wpd-stat-graph .wpd-box-toggle .wpd-graph-tools, #wpd-opt-search-results').hide();
641
+ });
642
+ $(document).delegate('.wpd-stat-graph .wpd-box-toggle .wpd-graph-tools span.wpd_not_clicked', 'click', function () {
643
+ var el = $(this);
644
+ el.removeClass('wpd_not_clicked');
645
+ Cookies.set('wpd_stat_graph_interval', el.data('interval'), {expires: 365, path: location.href});
646
+ wpd_stat_graph(el, el.parents('.wpd-box').children('.wpd-box-body'));
647
+ });
648
+ $(document).delegate('.wpd-stat-user .wpd-sort-field', 'click', function () {
649
+ var el = $(this);
650
+ var order = el.hasClass('wpd-active') && el.children('.dashicons').hasClass('dashicons-arrow-down-alt2') ? 'asc' : 'desc';
651
+ Cookies.set('wpd_stat_user_orderby', el.data('orderby'), {expires: 365, path: location.href});
652
+ Cookies.set('wpd_stat_user_order', order, {expires: 365, path: location.href});
653
+ wpdStatUserPage = 1;
654
+ wpd_stat_user(el, el.parents('.wpd-box').children('.wpd-box-body'));
655
+ });
656
+ $(document).delegate('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-left.wpd_not_clicked, .wpd-stat-user .wpd-box-toggle .dashicons-arrow-right.wpd_not_clicked', 'click', function () {
657
+ var el = $(this);
658
+ if (el.hasClass('dashicons-arrow-left')) {
659
+ if (wpdStatUserPage > 1) {
660
+ wpdStatUserPage--;
661
+ } else {
662
+ $(this).css('visibility', 'hidden');
663
+ return;
664
+ }
665
+ } else {
666
+ wpdStatUserPage++;
667
+ }
668
+ wpd_stat_user(el, el.parents('.wpd-box').children('.wpd-box-body'));
669
+ });
670
+ //========================= /DASHBOARD =====================//
671
+ //========================= SETTING SEARCH =====================//
672
+ var searchAjax = null;
673
+ window.onhashchange = scrollToOption;
674
+ scrollToOption();
675
+ function scrollToOption() {
676
+ var matches = location.href.match(/#wpdOpt\-(\w+)/);
677
+ if (matches !== null) {
678
+ var wpdopt = $('[data-wpd-opt=' + matches[1] + ']');
679
+ $('html, body').animate({
680
+ scrollTop: wpdopt.offset().top - 32
681
+ }, 500, function () {
682
+ wpdopt.css('background-color', '#ebebeb');
683
+ setTimeout(function () {
684
+ wpdopt.css('background-color', 'transparent');
685
+ }, 500);
686
+ });
687
+ }
688
+ }
689
+ $(document).delegate('#wpd-opt-search-field, #wpd-opt-search-results', 'keydown', function (e) {
690
+ var keycode = e.which;
691
+ if (keycode == 27) {
692
+ $('#wpd-opt-search-results').hide();
693
+ $('#wpd-opt-search-field').focus();
694
+ e.preventDefault();
695
+ e.stopPropagation();
696
+ } else if (keycode == 35 && !$('#wpd-opt-search-field').is(':focus')) {
697
+ e.preventDefault();
698
+ e.stopPropagation();
699
+ var a = $('#wpd-opt-search-results > a');
700
+ $(a[a.length - 1]).focus();
701
+ } else if (keycode == 36 && !$('#wpd-opt-search-field').is(':focus')) {
702
+ e.preventDefault();
703
+ e.stopPropagation();
704
+ var a = $('#wpd-opt-search-results > a');
705
+ $(a[0]).focus();
706
+ } else if (keycode == 38 || keycode == 40) {
707
+ e.preventDefault();
708
+ e.stopPropagation();
709
+ var a = $('#wpd-opt-search-results > a');
710
+ var focus_status = false;
711
+ a.each(function (key, val) {
712
+ if ($(val).is(':focus') || $(val).is(':hover')) {
713
+ if (keycode == 40) {
714
+ $(a[key + 1]).focus();
715
+ focus_status = true;
716
+ return false;
717
+ } else if (keycode == 38) {
718
+ $(a[key - 1]).focus();
719
+ focus_status = true;
720
+ return false;
721
+ }
722
+ }
723
+ });
724
+ if (!focus_status) {
725
+ $(a[0]).focus()
726
+ }
727
+ } else if (keycode == 13) {
728
+ $('#wpd-opt-search-results > a:focus').click();
729
+ } else {
730
+ $('#wpd-opt-search-field').focus();
731
+ }
732
+ });
733
+ $(document).delegate('#wpd-opt-search-field', 'input', function () {
734
+ var s = $(this).val();
735
+ s = s.trim();
736
+ if (s.length > 2) {
737
+ if (searchAjax) {
738
+ searchAjax.abort();
739
+ }
740
+ searchAjax = $.ajax({
741
+ type: 'POST',
742
+ url: ajaxurl,
743
+ data: {
744
+ action: 'searchOption',
745
+ s: s
746
+ }
747
+ });
748
+ searchAjax.done(function (r) {
749
+ if (r) {
750
+ $('#wpd-opt-search-results').html(r).show();
751
+ } else {
752
+ $('#wpd-opt-search-results').html('').hide();
753
+ }
754
+ }).fail(function (jqXHR, textStatus, errorThrown) {
755
+ console.log(errorThrown);
756
+ });
757
+ }
758
+ });
759
+ //========================= /SETTING SEARCH =====================//
760
+ //========================= SETTINGS MENU =====================//
761
+ $('.wpd-setbar .wpd-menu-head .dashicons-arrow-down, .wpd-setbar .wpd-menu-head .dashicons-arrow-up').click(function () {
762
+ var $this = $(this);
763
+ var up = $this.hasClass('dashicons-arrow-up');
764
+ $this.toggleClass('dashicons-arrow-down dashicons-arrow-up');
765
+ if (up) {
766
+ $this.parents('.wpd-menu-group').find('li:not(.wpd-menu-head)').hide();
767
+ } else {
768
+ $this.parents('.wpd-menu-group').find('li:not(.wpd-menu-head)').show();
769
+ }
770
+ });
771
+ //========================= /SETTINGS MENU =====================//
772
+ //========================= TOOLBAR OPTIONS =====================//
773
+ $('.wpd-editor-toolbar .wpd-editor-button').click(function () {
774
+ if ($(this).hasClass('wpd-enabled')) {
775
+ $(this).removeClass('wpd-enabled');
776
+ $(this).addClass('wpd-disabled');
777
+ $('#' + $(this).attr('id') + '-button').val(0);
778
+ } else {
779
+ $(this).removeClass('wpd-disabled');
780
+ $(this).addClass('wpd-enabled');
781
+ $('#' + $(this).attr('id') + '-button').val(1);
782
+ }
783
+ });
784
+ $('.wpd-editor-toolbar #wpdeb_disable').click(function () {
785
+ $('.wpd-editor-toolbar .wpd-editor-button').removeClass('wpd-enabled');
786
+ $('.wpd-editor-toolbar .wpd-editor-button').addClass('wpd-disabled');
787
+ $('.wpd-editor-toolbar .wpd-editor-button').next('input').val(0);
788
+ $(this).hide();
789
+ $('.wpd-editor-toolbar #wpdeb_enable').show();
790
+ });
791
+ $('.wpd-editor-toolbar #wpdeb_enable').click(function () {
792
+ $('.wpd-editor-toolbar .wpd-editor-button').addClass('wpd-enabled');
793
+ $('.wpd-editor-toolbar .wpd-editor-button').removeClass('wpd-disabled');
794
+ $('.wpd-editor-toolbar .wpd-editor-button').next('input').val(1);
795
+ $(this).hide();
796
+ $('.wpd-editor-toolbar #wpdeb_disable').show();
797
+ });
798
+ //========================= /TOOLBAR OPTIONS =====================//
799
+
800
 
801
+ /* TOOLS PAGE ACCORDION */
802
+ if (location.href.indexOf('wpdiscuz_tools_page') >= 0) {
803
+ var supportsHash = false;
804
+ if ("onhashchange" in window) {
805
+ supportsHash = true;
806
+ }
807
+
808
+ if (supportsHash) {
809
+ window.addEventListener("hashchange", wpdtoolOnhashchange, false);
810
+ }
811
+ // TODO check if browser supports hashchange
812
+
813
+ var accordionMatches = location.href.match(/#wpdtool\-(.+)/);
814
+ if (accordionMatches != null) {
815
+ var item = $('.wpdtool-accordion-title[data-wpdtool-selector="wpdtool-' + accordionMatches[1] + '"');
816
+ toolsAccordion(item);
817
+ }
818
+
819
+ $('.wpdtool-accordion-title').click(function () {
820
+ var item = $(this);
821
+
822
+ if (!supportsHash) {
823
+ toolsAccordion(item);
824
+ }
825
+
826
+ var selector = item.attr("data-wpdtool-selector");
827
+ accordionMatches = location.href.match(/#wpdtool\-(.+)/);
828
+ var accordionNewMatches = selector.match(/wpdtool\-(.+)/);
829
+ if (accordionNewMatches != null && accordionMatches != null) {
830
+ if (accordionMatches[1] == accordionNewMatches[1]) {
831
+ location.href = location.href.replace(accordionNewMatches[0], "");
832
+ if (supportsHash) {
833
+ toolsAccordion(item);
834
+ }
835
+ } else {
836
+ location.href = location.href.replace(accordionMatches[1], accordionNewMatches[1]);
837
+ }
838
+ } else {
839
+ location.href = location.href.indexOf("#") >= 0 ? location.href + selector : location.href + "#" + selector;
840
+ }
841
+ });
842
+
843
+ function toolsAccordion(item) {
844
+ if (item != null) {
845
+ $(item).parent().siblings('.wpdtool-accordion-item').removeClass('wpdtool-accordion-current');
846
+ $(item).parent().siblings('.wpdtool-accordion-item').find('.wpdtool-accordion-content').slideUp(0);
847
+ $(item).siblings('.wpdtool-accordion-content').slideToggle(0);
848
+ $(item).parent().toggleClass('wpdtool-accordion-current');
849
+ }
850
+ }
851
+
852
+ function wpdtoolOnhashchange() {
853
+ var accordionMatches = location.href.match(/#wpdtool\-(.+)/);
854
+ if (accordionMatches != null) {
855
+ item = $('.wpdtool-accordion-title[data-wpdtool-selector="wpdtool-' + accordionMatches[1] + '"');
856
+ toolsAccordion(item);
857
+ }
858
+ }
859
+ }
860
+ /* TOOLS PAGE ACCORDION */
861
+
862
+ });
863
+ //========================= DASHBOARD =====================//
864
+ var wpdSpinner = '<div class="wpd-spinner"><span class="spinner"></span></div>';
865
+ var wpdStatUserPage = 1;
866
+ function wpd_stat_brief() {
867
+ jQuery.ajax({
868
+ type: 'POST',
869
+ url: ajaxurl,
870
+ data: {
871
+ action: 'wpd_stat_brief'
872
+ }
873
+ }).done(function (r) {
874
+ if (r.success) {
875
+ jQuery('.wpd-stat-brief .wpd-stat-brief-all strong').text(r.data.all);
876
+ jQuery('.wpd-stat-brief .wpd-stat-brief-inline strong').text(r.data.inline);
877
+ jQuery('.wpd-stat-brief .wpd-stat-brief-threads strong').text(r.data.threads);
878
+ jQuery('.wpd-stat-brief .wpd-stat-brief-replies strong').text(r.data.replies);
879
+ jQuery('.wpd-stat-brief .wpd-stat-brief-users strong').text(r.data.users);
880
+ jQuery('.wpd-stat-brief .wpd-stat-brief-guests strong').text(r.data.guests);
881
+ }
882
+ }).fail(function (jqXHR, textStatus, errorThrown) {
883
+ console.log(errorThrown);
884
+ el.addClass('wpd_not_clicked');
885
+ });
886
+ }
887
+
888
+ function wpd_stat_subs(el, body) {
889
+ body.html(wpdSpinner);
890
+ jQuery.ajax({
891
+ type: 'POST',
892
+ url: ajaxurl,
893
+ data: {
894
+ action: 'wpd_stat_subs'
895
+ }
896
+ }).done(function (r) {
897
+ body.html(r);
898
+ el.addClass('wpd_not_clicked');
899
+ }).fail(function (jqXHR, textStatus, errorThrown) {
900
+ console.log(errorThrown);
901
+ el.addClass('wpd_not_clicked');
902
+ });
903
+ }
904
+
905
+ function wpd_stat_graph(el, body) {
906
+ body.html(wpdSpinner);
907
+ var interval = Cookies.get('wpd_stat_graph_interval');
908
+ if (!interval) {
909
+ interval = 'today';
910
+ }
911
+ jQuery('.wpd-stat-graph .wpd-box-toggle .wpd-graph-tools span').removeClass('wpd_tool_active');
912
+ jQuery('[data-interval=' + interval + ']').addClass('wpd_tool_active');
913
+ jQuery.ajax({
914
+ type: 'POST',
915
+ url: ajaxurl,
916
+ data: {
917
+ action: 'wpd_stat_graph',
918
+ interval: interval
919
+ }
920
+ }).done(function (r) {
921
+ if (r.success) {
922
+ body.html(r.data.el);
923
+ body.parent().find('.wpd-box-toggle .dashicons-admin-generic, .wpd-box-info').show();
924
+ var wpdchart = document.getElementById('wpdChart');
925
+ wpdchart.height = 250;
926
+ Chart.defaults.global.defaultFontSize = 9;
927
+ Chart.defaults.global.defaultFontColor = '#333';
928
+ new Chart(wpdchart, {
929
+ type: 'bar',
930
+ data: {
931
+ labels: r.data.labels,
932
+ datasets: [
933
+ {
934
+ label: '',
935
+ data: r.data.all,
936
+ backgroundColor: '#46C08F',
937
+ borderColor: '#46C08F'
938
+ },
939
+ {
940
+ label: '',
941
+ data: r.data.inline,
942
+ backgroundColor: '#0498F9',
943
+ borderColor: '#0498F9'
944
+ }
945
+ ]
946
+ },
947
+ options: {
948
+ maintainAspectRatio: false,
949
+ legend: {
950
+ labels: {
951
+ usePointStyle: true,
952
+ }
953
+ },
954
+ scales: {
955
+ yAxes: [{
956
+ ticks: {
957
+ beginAtZero: true
958
+ }
959
+ }]
960
+ }
961
+ }
962
+ });
963
+ } else {
964
+ body.html("Something is wrong");
965
+ }
966
+ el.addClass('wpd_not_clicked');
967
+ }).fail(function (jqXHR, textStatus, errorThrown) {
968
+ console.log(errorThrown);
969
+ el.addClass('wpd_not_clicked');
970
+ });
971
+ }
972
+
973
+ function wpd_stat_user(el, body) {
974
+ body.html(wpdSpinner);
975
+ jQuery('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-left, .wpd-stat-user .wpd-box-toggle .dashicons-arrow-right').removeClass('wpd_not_clicked');
976
+ var orderby = Cookies.get('wpd_stat_user_orderby');
977
+ if (!orderby) {
978
+ orderby = 'comments';
979
+ }
980
+ var order = Cookies.get('wpd_stat_user_order');
981
+ if (!order) {
982
+ order = 'desc';
983
+ }
984
+ jQuery.ajax({
985
+ type: 'POST',
986
+ url: ajaxurl,
987
+ data: {
988
+ action: 'wpd_stat_user',
989
+ orderby: orderby,
990
+ order: order,
991
+ page: wpdStatUserPage
992
+ }
993
+ }).done(function (r) {
994
+ if (r.success) {
995
+ body.html(r.data.body);
996
+ body.parent().find('.wpd-box-toggle .dashicons-arrow-left, .wpd-box-toggle .dashicons-arrow-right').show();
997
+ el.addClass('wpd_not_clicked');
998
+ jQuery('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-left, .wpd-stat-user .wpd-box-toggle .dashicons-arrow-right').addClass('wpd_not_clicked');
999
+ if (wpdStatUserPage > 1) {
1000
+ jQuery('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-left').css('visibility', 'visible');
1001
+ } else {
1002
+ jQuery('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-left').css('visibility', 'hidden');
1003
+ }
1004
+ if (r.data.more) {
1005
+ jQuery('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-right').css('visibility', 'visible');
1006
+ } else {
1007
+ jQuery('.wpd-stat-user .wpd-box-toggle .dashicons-arrow-right').css('visibility', 'hidden');
1008
+ }
1009
+ } else {
1010
+ body.html(r.data);
1011
+ }
1012
+ }).fail(function (jqXHR, textStatus, errorThrown) {
1013
+ console.log(errorThrown);
1014
+ el.addClass('wpd_not_clicked');
1015
+ });
1016
+ }
1017
+ //========================= /DASHBOARD =====================//
assets/js/wpdiscuz-shortcode-gutenberg.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (blocks, editor, element) {
2
+ /* global wpdObject */
3
+ var el = element.createElement;
4
+ var RichText = editor.RichText;
5
+ var wpdIcon = el('svg',
6
+ {
7
+ width: 24,
8
+ height: 24
9
+ },
10
+ el('path',
11
+ {
12
+ d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z",
13
+ style: {
14
+ fill: '#1db99a'
15
+ }
16
+ }
17
+ ),
18
+ el('path',
19
+ {
20
+ d: "M0 0h24v24H0z",
21
+ style: {
22
+ fill: 'transparent'
23
+ }
24
+ }
25
+ )
26
+ );
27
+ blocks.registerBlockType('wpdiscuz/feedback-shortcode', {
28
+ title: 'Feedback Shortcode',
29
+ icon: wpdIcon,
30
+ category: 'common',
31
+ attributes: {
32
+ content: {
33
+ type: 'html',
34
+ default: '[' + wpdObject.shortcode + ' id="' + Math.random().toString(36).substr(2, 10) + '" question="' + wpdObject.leave_feebdack + '" opened="0"][/' + wpdObject.shortcode + ']'
35
+ }
36
+ },
37
+ edit(props) {
38
+ var content = props.attributes.content;
39
+ function onChangeContent(newContent) {
40
+ props.setAttributes({content: newContent});
41
+ }
42
+ return el(
43
+ RichText,
44
+ {
45
+ onChange: onChangeContent,
46
+ value: content
47
+ }
48
+ );
49
+ },
50
+ save: function (props) {
51
+ return props.attributes.content;
52
+ }
53
+ });
54
+ }(window.wp.blocks, window.wp.editor, window.wp.element));
assets/js/wpdiscuz-shortcode-tinymce.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ /* global tinymce */
3
+ /* global wpdObject */
4
+ tinymce.PluginManager.add('wpDiscuz', function (ed, url) {
5
+ if (ed.id === "content") {
6
+ ed.addButton('wpDiscuz', {
7
+ image: wpdObject.image,
8
+ tooltip: wpdObject.tooltip,
9
+ onclick: function () {
10
+ var w = $(window).width();
11
+ var dialogWidth = 600;
12
+ var W = (dialogWidth < w) ? dialogWidth : w;
13
+ $('#wpd-inline-question').val('');
14
+ var text = tinymce.activeEditor.selection.getContent();
15
+ $('#wpd-inline-content').html(text ? text : '<span class="wpd-text-error">' + wpdObject.no_text_selected + '</span>');
16
+ tb_show(wpdObject.popup_title, '#TB_inline?width=' + W + '&height=400&inlineId=wpdiscuz_feedback_dialog');
17
+ }
18
+ });
19
+ }
20
+ });
21
+
22
+ $(document).delegate('#wpd-put-shortcode', 'mousedown', function () {
23
+ var question = $('#wpd-inline-question').val();
24
+ var shortcode = '[' + wpdObject.shortcode + ' id="' + Math.random().toString(36).substr(2, 10) + '" question="' + (question ? $('<div>' + question + '</div>').text() : wpdObject.leave_feebdack) + '" opened="' + $('[name=wpd-inline-type]:checked').val() + '"]';
25
+ shortcode += tinymce.activeEditor.selection.getContent();
26
+ shortcode += '[/' + wpdObject.shortcode + ']';
27
+ tinymce.activeEditor.execCommand('mceInsertContent', 0, shortcode);
28
+ tb_remove();
29
+ });
30
+ })(jQuery);
assets/js/wpdiscuz-social.js CHANGED
@@ -1,5 +1,5 @@
1
  //============================== FACEBOOK API INIT ========================== //
2
- if ((wpdiscuzAjaxObj.wpdiscuz_options.enableFbLogin || wpdiscuzAjaxObj.wpdiscuz_options.enableFbShare) && wpdiscuzAjaxObj.wpdiscuz_options.facebookAppID) {
3
  (function (d, s, id) {
4
  var js, fjs = d.getElementsByTagName(s)[0];
5
  if (d.getElementById(id)) {
@@ -14,7 +14,7 @@ if ((wpdiscuzAjaxObj.wpdiscuz_options.enableFbLogin || wpdiscuzAjaxObj.wpdiscuz_
14
 
15
  window.fbAsyncInit = function () {
16
  FB.init({
17
- appId: wpdiscuzAjaxObj.wpdiscuz_options.facebookAppID,
18
  cookie: true,
19
  xfbml: true,
20
  version: 'v2.8'
@@ -31,56 +31,39 @@ function wpcShareCommentFB(url, quote) {
31
 
32
  //============================== GOOGLE API INIT ========================== //
33
 
34
- if (wpdiscuzAjaxObj.wpdiscuz_options.enableGoogleLogin && wpdiscuzAjaxObj.wpdiscuz_options.googleAppID) {
35
- (function (d, s, id) {
36
- var js, gjs = d.getElementsByTagName(s)[0];
37
- if (d.getElementById(id)) {
38
- return;
39
- }
40
- js = d.createElement(s);
41
- js.id = id;
42
- js.src = "https://apis.google.com/js/platform.js?onload=wpdiscuzGooglePlatformInit";
43
- gjs.parentNode.insertBefore(js, gjs);
44
- }(document, 'script', 'google-jssdk'));
45
-
46
- function wpdiscuzGooglePlatformInit() {
47
- if (wpdiscuzAjaxObj.wpdiscuz_options.enableGoogleLogin && wpdiscuzAjaxObj.wpdiscuz_options.googleAppID) {
48
- gapi.load('auth2', function () {
49
- gapi.auth2.init({client_id: wpdiscuzAjaxObj.wpdiscuz_options.googleAppID});
50
- });
51
- }
52
- }
53
-
54
- }
55
-
56
  jQuery(document).ready(function ($) {
57
  wpdDisplayErrorMessage();
58
- $(document).delegate('.wc-comment-link .fa-facebook-f', 'click', function () {
59
- if (wpdiscuzAjaxObj.wpdiscuz_options.enableFbShare != 1) {
 
 
 
 
 
 
60
  return;
61
  }
62
- var commentID = $(this).parents('.wc-comment').find('.wc-comment-right').attr('id');
63
  var postUrl = window.location.href;
64
  if (postUrl.indexOf('#') !== -1) {
65
  postUrl = postUrl.substring(0, postUrl.indexOf('#'));
66
  }
67
  postUrl += '#' + commentID;
68
- var commentContent = $(this).parents('.wc-comment-right').find('.wc-comment-text').text();
69
  wpcShareCommentFB(postUrl, commentContent);
70
  });
71
 
72
- var socialLoginContainer, socialLoginProvider = '';
73
- $(document).delegate('#wpcomm .wpdiscuz-social-login .wpdiscuz-login-button', 'click', function () {
74
- socialLoginContainer = $(this).parents('.wpdiscuz-social-login');
75
  socialLoginProvider = wpdInitProvider($(this));
76
  wpdSocialLoginIsConfirmAgreement(socialLoginProvider, socialLoginContainer);
77
-
78
  });
79
 
80
- $(document).delegate('#wpcomm .wpd-agreement-buttons-right .wpd-agreement-button', 'click', function () {
81
- socialLoginContainer.parents('.wpdiscuz-ftb-right').next().slideUp(700);
82
  if ($(this).hasClass('wpd-agreement-button-agree')) {
83
- if (wpdiscuzAjaxObj.wpdiscuz_options.isCookiesEnabled) {
84
  Cookies.set('socialLoginAgreementConfirmed', 1, {expires: 30, path: '/'});
85
  }
86
  wpdCallSocialLogin(socialLoginProvider, socialLoginContainer);
@@ -88,10 +71,10 @@ jQuery(document).ready(function ($) {
88
  });
89
 
90
  function wpdSocialLoginIsConfirmAgreement(provider, container) {
91
- if (wpdiscuzAjaxObj.wpdiscuz_options.socialLoginAgreementCheckbox != 1 || Cookies.get('socialLoginAgreementConfirmed') == 1) {
92
  wpdCallSocialLogin(provider, container);
93
  } else {
94
- container.parents('.wpdiscuz-ftb-right').next().slideDown(700);
95
  }
96
  return false;
97
  }
@@ -100,7 +83,8 @@ jQuery(document).ready(function ($) {
100
  function wpdCallSocialLogin(provider, container) {
101
  var token, userID = '';
102
  wpdSocialLoginLoadingBar(container, 1);
103
- if (provider === 'facebook' && wpdiscuzAjaxObj.wpdiscuz_options.facebookUseOAuth2 == 0) {
 
104
  FB.getLoginStatus(function (response) {
105
  if (response.status === 'connected') {
106
  token = response.authResponse.accessToken;
@@ -116,20 +100,6 @@ jQuery(document).ready(function ($) {
116
  }, {scope: 'public_profile,email'});
117
  }
118
  });
119
- } else
120
- if (provider === 'google') {
121
- var googleAuth = gapi.auth2.getAuthInstance();
122
- if (googleAuth.isSignedIn.get()) {
123
- token = googleAuth.currentUser.get().getAuthResponse().id_token;
124
- wpdSendRequest(provider, token, userID, container);
125
- } else {
126
- googleAuth.signIn().then(function (respons) {
127
- token = respons.getAuthResponse().id_token;
128
- wpdSendRequest(provider, token, userID, container);
129
- }, function (reason) {
130
- console.log(reason.error);
131
- });
132
- }
133
  } else {
134
  wpdSendRequest(provider, token, userID, container);
135
  }
@@ -145,7 +115,7 @@ jQuery(document).ready(function ($) {
145
  provider: provider,
146
  token: token,
147
  userID: userID,
148
- postID: wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id
149
  }
150
  }).done(function (wpdiscuz_response) {
151
  wpdHandleResponse(wpdiscuz_response, container);
@@ -162,7 +132,7 @@ jQuery(document).ready(function ($) {
162
  if (parseInt(code) === 200) {
163
  location.assign(url);
164
  } else {
165
- container.append('<div class="wpdiscuz-social-login-error">' + message + '</div>');
166
  }
167
  } catch (e) {
168
  console.log(e);
@@ -174,31 +144,57 @@ jQuery(document).ready(function ($) {
174
  var errorMessage = Cookies.get('wpdiscuz_social_login_message');
175
  if (errorMessage && errorMessage !== 'undefined') {
176
  Cookies.remove('wpdiscuz_social_login_message');
177
- var container = $('#wpcomm .wpdiscuz-social-login').first();
178
- $('.wpdiscuz-social-login-error').remove();
179
- container.append('<div class="wpdiscuz-social-login-error">' + decodeURIComponent(errorMessage.replace(/\+/g, '%20')) + '</div>');
180
- $('html, body').animate({
181
- scrollTop: container.offset().top}, 700);
182
  }
183
  }
184
 
185
  function wpdInitProvider($obj) {
186
  var provider = '';
187
- if ($obj.hasClass('wpdiscuz-facebook-button')) {
188
  provider = 'facebook';
189
  }
190
- if ($obj.hasClass('wpdiscuz-google-button')) {
 
 
 
191
  provider = 'google';
192
  }
193
- if ($obj.hasClass('wpdiscuz-twitter-button')) {
 
 
 
 
 
 
194
  provider = 'twitter';
195
  }
196
- if ($obj.hasClass('wpdiscuz-vk-button')) {
197
  provider = 'vk';
198
  }
199
- if ($obj.hasClass('wpdiscuz-ok-button')) {
200
  provider = 'ok';
201
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  return provider;
203
  }
204
 
1
  //============================== FACEBOOK API INIT ========================== //
2
+ if ((wpdiscuzAjaxObj.enableFbLogin || wpdiscuzAjaxObj.enableFbShare) && wpdiscuzAjaxObj.facebookAppID) {
3
  (function (d, s, id) {
4
  var js, fjs = d.getElementsByTagName(s)[0];
5
  if (d.getElementById(id)) {
14
 
15
  window.fbAsyncInit = function () {
16
  FB.init({
17
+ appId: wpdiscuzAjaxObj.facebookAppID,
18
  cookie: true,
19
  xfbml: true,
20
  version: 'v2.8'
31
 
32
  //============================== GOOGLE API INIT ========================== //
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  jQuery(document).ready(function ($) {
35
  wpdDisplayErrorMessage();
36
+ if (Cookies.get('wpdiscuz_scroll_to_comments')) {
37
+ Cookies.remove('wpdiscuz_scroll_to_comments', {path: '/'});
38
+ $('html, body').animate({
39
+ scrollTop: $('#comments').offset().top - 32
40
+ }, 1000);
41
+ }
42
+ $(document).delegate('.wpd-comment-share .fa-facebook-f', 'click', function () {
43
+ if (wpdiscuzAjaxObj.enableFbShare != 1) {
44
  return;
45
  }
46
+ var commentID = $(this).parents('.wpd-comment').find('.wpd-comment-right').attr('id');
47
  var postUrl = window.location.href;
48
  if (postUrl.indexOf('#') !== -1) {
49
  postUrl = postUrl.substring(0, postUrl.indexOf('#'));
50
  }
51
  postUrl += '#' + commentID;
52
+ var commentContent = $(this).parents('.wpd-comment-right').find('.wpd-comment-text').text();
53
  wpcShareCommentFB(postUrl, commentContent);
54
  });
55
 
56
+ var socialLoginProvider = '';
57
+ $(document).delegate('#wpdcom .wpd-social-login .wpdiscuz-login-button', 'click', function () {
58
+ var socialLoginContainer = $(this).parents('.wpd-social-login');
59
  socialLoginProvider = wpdInitProvider($(this));
60
  wpdSocialLoginIsConfirmAgreement(socialLoginProvider, socialLoginContainer);
 
61
  });
62
 
63
+ $(document).delegate('#wpdcom .wpd-agreement-buttons-right .wpd-agreement-button', 'click', function () {
64
+ var socialLoginContainer = $(this).parents('.wpd-form-wrap, .wpd-form').find('.wpd-social-login-agreement').slideUp(700);
65
  if ($(this).hasClass('wpd-agreement-button-agree')) {
66
+ if (wpdiscuzAjaxObj.isCookiesEnabled) {
67
  Cookies.set('socialLoginAgreementConfirmed', 1, {expires: 30, path: '/'});
68
  }
69
  wpdCallSocialLogin(socialLoginProvider, socialLoginContainer);
71
  });
72
 
73
  function wpdSocialLoginIsConfirmAgreement(provider, container) {
74
+ if (parseInt(wpdiscuzAjaxObj.socialLoginAgreementCheckbox) != 1 || Cookies.get('socialLoginAgreementConfirmed') == 1) {
75
  wpdCallSocialLogin(provider, container);
76
  } else {
77
+ container.parents('.wpd-form-wrap, .wpd-form').find('.wpd-social-login-agreement').first().slideDown(700);
78
  }
79
  return false;
80
  }
83
  function wpdCallSocialLogin(provider, container) {
84
  var token, userID = '';
85
  wpdSocialLoginLoadingBar(container, 1);
86
+ Cookies.set('wpdiscuz_scroll_to_comments', 1, {path: '/'});
87
+ if (provider === 'facebook' && wpdiscuzAjaxObj.facebookUseOAuth2 == 0) {
88
  FB.getLoginStatus(function (response) {
89
  if (response.status === 'connected') {
90
  token = response.authResponse.accessToken;
100
  }, {scope: 'public_profile,email'});
101
  }
102
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  } else {
104
  wpdSendRequest(provider, token, userID, container);
105
  }
115
  provider: provider,
116
  token: token,
117
  userID: userID,
118
+ postID: wpdiscuzAjaxObj.wc_post_id
119
  }
120
  }).done(function (wpdiscuz_response) {
121
  wpdHandleResponse(wpdiscuz_response, container);
132
  if (parseInt(code) === 200) {
133
  location.assign(url);
134
  } else {
135
+ wpdiscuzAjaxObj.setCommentMessage(message, 'error');
136
  }
137
  } catch (e) {
138
  console.log(e);
144
  var errorMessage = Cookies.get('wpdiscuz_social_login_message');
145
  if (errorMessage && errorMessage !== 'undefined') {
146
  Cookies.remove('wpdiscuz_social_login_message');
147
+ wpdiscuzAjaxObj.setCommentMessage(decodeURIComponent(errorMessage.replace(/\+/g, '%20')), 'error');
 
 
 
 
148
  }
149
  }
150
 
151
  function wpdInitProvider($obj) {
152
  var provider = '';
153
+ if ($obj.hasClass('wpdsn-fb')) {
154
  provider = 'facebook';
155
  }
156
+ if ($obj.hasClass('wpdsn-insta')) {
157
+ provider = 'instagram';
158
+ }
159
+ if ($obj.hasClass('wpdsn-gg')) {
160
  provider = 'google';
161
  }
162
+ if ($obj.hasClass('wpdsn-ds')) {
163
+ provider = 'disqus';
164
+ }
165
+ if ($obj.hasClass('wpdsn-wp')) {
166
+ provider = 'wordpress';
167
+ }
168
+ if ($obj.hasClass('wpdsn-tw')) {
169
  provider = 'twitter';
170
  }
171
+ if ($obj.hasClass('wpdsn-vk')) {
172
  provider = 'vk';
173
  }
174
+ if ($obj.hasClass('wpdsn-ok')) {
175
  provider = 'ok';
176
  }
177
+ if ($obj.hasClass('wpdsn-linked')) {
178
+ provider = 'linkedin';
179
+ }
180
+ if ($obj.hasClass('wpdsn-yandex')) {
181
+ provider = 'yandex';
182
+ }
183
+ if ($obj.hasClass('wpdsn-mailru')) {
184
+ provider = 'mailru';
185
+ }
186
+ if ($obj.hasClass('wpdsn-weixin')) {
187
+ provider = 'wechat';
188
+ }
189
+ if ($obj.hasClass('wpdsn-weibo')) {
190
+ provider = 'weibo';
191
+ }
192
+ if ($obj.hasClass('wpdsn-qq')) {
193
+ provider = 'qq';
194
+ }
195
+ if ($obj.hasClass('wpdsn-baidu')) {
196
+ provider = 'baidu';
197
+ }
198
  return provider;
199
  }
200
 
assets/js/wpdiscuz-social.min.js ADDED
@@ -0,0 +1 @@
 
1
+ function wpcShareCommentFB(e,s){FB.ui({method:"share",href:e,quote:s},function(e){})}(wpdiscuzAjaxObj.enableFbLogin||wpdiscuzAjaxObj.enableFbShare)&&wpdiscuzAjaxObj.facebookAppID&&(!function(e,s,n){var o,a=e.getElementsByTagName(s)[0];e.getElementById(n)||((o=e.createElement(s)).id=n,o.src="//connect.facebook.net/en_US/sdk.js",a.parentNode.insertBefore(o,a))}(document,"script","facebook-jssdk"),window.fbAsyncInit=function(){FB.init({appId:wpdiscuzAjaxObj.facebookAppID,cookie:!0,xfbml:!0,version:"v2.8"})}),jQuery(document).ready(function(e){var s;(s=Cookies.get("wpdiscuz_social_login_message"))&&"undefined"!==s&&(Cookies.remove("wpdiscuz_social_login_message"),wpdiscuzAjaxObj.setCommentMessage(decodeURIComponent(s.replace(/\+/g,"%20")),"error")),Cookies.get("wpdiscuz_scroll_to_comments")&&(Cookies.remove("wpdiscuz_scroll_to_comments",{path:"/"}),e("html, body").animate({scrollTop:e("#comments").offset().top-32},1e3)),e(document).delegate(".wpd-comment-share .fa-facebook-f","click",function(){if(1==wpdiscuzAjaxObj.enableFbShare){var s=e(this).parents(".wpd-comment").find(".wpd-comment-right").attr("id"),n=window.location.href;-1!==n.indexOf("#")&&(n=n.substring(0,n.indexOf("#"))),wpcShareCommentFB(n+="#"+s,e(this).parents(".wpd-comment-right").find(".wpd-comment-text").text())}});var n="";function o(e,s){var n,o="";t(s,1),Cookies.set("wpdiscuz_scroll_to_comments",1,{path:"/"}),"facebook"===e&&0==wpdiscuzAjaxObj.facebookUseOAuth2?FB.getLoginStatus(function(t){"connected"===t.status?(n=t.authResponse.accessToken,o=t.authResponse.userID,a(e,n,o,s)):FB.login(function(t){"connected"===t.status&&(n=t.authResponse.accessToken,o=t.authResponse.userID,a(e,n,o,s))},{scope:"public_profile,email"})}):a(e,n,o,s)}function a(s,n,o,a){return e.ajax({type:"POST",url:wpdiscuzAjaxObj.url,data:{action:"wpd_social_login",provider:s,token:n,userID:o,postID:wpdiscuzAjaxObj.wc_post_id}}).done(function(s){!function(s,n){try{var o=e.parseJSON(s),a=o.code,i=o.message,c=o.url;200===parseInt(a)?location.assign(c):wpdiscuzAjaxObj.setCommentMessage(i,"error")}catch(e){console.log(e)}t(n,0)}(s,a)}),""}function t(e,s){1===s?e.find(".wpdiscuz-social-login-spinner").show():e.find(".wpdiscuz-social-login-spinner").hide()}e(document).delegate("#wpdcom .wpd-social-login .wpdiscuz-login-button","click",function(){var s=e(this).parents(".wpd-social-login");!function(e,s){1!=parseInt(wpdiscuzAjaxObj.socialLoginAgreementCheckbox)||1==Cookies.get("socialLoginAgreementConfirmed")?o(e,s):s.parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").first().slideDown(700)}(n=function(e){var s="";e.hasClass("wpdsn-fb")&&(s="facebook");e.hasClass("wpdsn-insta")&&(s="instagram");e.hasClass("wpdsn-gg")&&(s="google");e.hasClass("wpdsn-ds")&&(s="disqus");e.hasClass("wpdsn-wp")&&(s="wordpress");e.hasClass("wpdsn-tw")&&(s="twitter");e.hasClass("wpdsn-vk")&&(s="vk");e.hasClass("wpdsn-ok")&&(s="ok");e.hasClass("wpdsn-linked")&&(s="linkedin");e.hasClass("wpdsn-yandex")&&(s="yandex");e.hasClass("wpdsn-mailru")&&(s="mailru");e.hasClass("wpdsn-weixin")&&(s="wechat");e.hasClass("wpdsn-weibo")&&(s="weibo");e.hasClass("wpdsn-qq")&&(s="qq");e.hasClass("wpdsn-baidu")&&(s="baidu");return s}(e(this)),s)}),e(document).delegate("#wpdcom .wpd-agreement-buttons-right .wpd-agreement-button","click",function(){var s=e(this).parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").slideUp(700);e(this).hasClass("wpd-agreement-button-agree")&&(wpdiscuzAjaxObj.isCookiesEnabled&&Cookies.set("socialLoginAgreementConfirmed",1,{expires:30,path:"/"}),o(n,s))})});
assets/js/wpdiscuz-user-content.js CHANGED
@@ -1,16 +1,11 @@
1
  ;
2
  jQuery(document).ready(function ($) {
3
  var refreshAfterDeleting = 0;
4
- var isNativeAjaxEnabled = wpdiscuzAjaxObj.wpdiscuz_options.isNativeAjaxEnabled;
5
  $(document).delegate('.wpd-info,.wpd-page-link,.wpd-delete-content,.wpd-user-email-delete-links', 'click', function (e) {
6
  e.preventDefault();
7
  });
8
 
9
- // $('#wc_delete_content_message').delay(3000).fadeOut(1500, function () {
10
- // $(this).remove();
11
- // location.href = location.href.substring(0, location.href.indexOf('delete') - 1);
12
- // });
13
-
14
  $(document).delegate('.wpd-info.wpd-not-clicked', 'click', function (e) {
15
  var btn = $(this);
16
  btn.removeClass('wpd-not-clicked');
@@ -25,29 +20,47 @@ jQuery(document).ready(function ($) {
25
  var oldClass = icon.attr('class');
26
  icon.removeClass();
27
  icon.addClass('fas fa-pulse fa-spinner');
28
- var ajax = isNativeAjaxEnabled ? getUCAjaxObj(false, data) : getUCACustomAjaxObj(false, data);
29
- ajax.done(function (response) {
30
- btn.addClass('wpd-not-clicked');
31
- icon.removeClass();
32
- icon.addClass(oldClass);
33
- if (response) {
34
- $('#wpdUserContentInfo').html(response);
35
- $('#wpdUserContentInfo ul.wpd-list .wpd-list-item:first-child').addClass('wpd-active');
36
- $('#wpdUserContentInfo div.wpd-content .wpd-content-item:first-child').addClass('wpd-active');
37
-
38
- if (!($('#wpdUserContentInfo').is(':visible'))) {
39
- $('#wpdUserContentInfoAnchor').trigger('click');
40
- }
41
- }
42
- });
43
  }
44
 
45
  $(document).delegate('.wpd-list-item', 'click', function () {
46
  var relValue = $('input.wpd-rel', this).val();
47
  $('#wpdUserContentInfo .wpd-list-item').removeClass('wpd-active');
48
  $('#wpdUserContentInfo .wpd-content-item').removeClass('wpd-active');
49
- $(this).addClass('wpd-active');
50
- $('#wpdUserContentInfo #' + relValue).addClass('wpd-active');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  });
52
 
53
 
@@ -59,14 +72,14 @@ jQuery(document).ready(function ($) {
59
  var data = new FormData();
60
  data.append('action', action);
61
  data.append('page', goToPage);
62
- var ajax = isNativeAjaxEnabled ? getUCAjaxObj(true, data) : getUCACustomAjaxObj(true, data);
63
- ajax.done(function (response) {
64
- btn.addClass('wpd-not-clicked');
65
- if (response) {
66
- $('.wpd-content-item.wpd-active').html(response);
67
- }
68
- $('.wpdiscuz-loading-bar').hide();
69
- });
70
  });
71
 
72
  $(document).delegate('.wpd-delete-content.wpd-not-clicked', 'click', function () {
@@ -75,11 +88,11 @@ jQuery(document).ready(function ($) {
75
  var id = parseInt(btn.data('wpd-content-id'));
76
  if (!isNaN(id)) {
77
  var action = btn.data('wpd-delete-action');
78
- if (action === 'wpdDeleteComment' && !confirm(wpdiscuzUCObj.msgConfirmDeleteComment)) {
79
  return false;
80
- } else if (action === 'wpdCancelSubscription' && !confirm(wpdiscuzUCObj.msgConfirmCancelSubscription)) {
81
  return false;
82
- } else if (action === 'wpdCancelFollow' && !confirm(wpdiscuzUCObj.msgConfirmCancelFollow)) {
83
  return false;
84
  }
85
  var icon = $('i', btn);
@@ -88,7 +101,7 @@ jQuery(document).ready(function ($) {
88
  var childCount = $('.wpd-content-item.wpd-active').children('.wpd-item').length;
89
  btn.removeClass('wpd-not-clicked');
90
  icon.removeClass().addClass('fas fa-pulse fa-spinner');
91
- if (childCount === 1 && goToPage > 0) {
92
  goToPage = goToPage - 1;
93
  }
94
 
@@ -97,16 +110,13 @@ jQuery(document).ready(function ($) {
97
  data.append('page', goToPage);
98
  data.append('action', action);
99
 
100
-
101
- var ajax = isNativeAjaxEnabled ? getUCAjaxObj(false, data) : getUCACustomAjaxObj(false, data);
102
- ajax.done(function (response) {
103
- btn.addClass('wpd-not-clicked');
104
- icon.removeClass().addClass(oldClass);
105
- $('.wpd-content-item.wpd-active').html(response);
106
- if (action === 'wpdDeleteComment' || action === 'wpdCancelFollow') {
107
- refreshAfterDeleting = 1;
108
- }
109
- });
110
 
111
  }
112
  });
@@ -125,11 +135,11 @@ jQuery(document).ready(function ($) {
125
  $('.wpd-loading', btn).addClass('wpd-show');
126
  var data = new FormData();
127
  data.append('action', 'wpdEmailDeleteLinks');
128
- var ajax = isNativeAjaxEnabled ? getUCAjaxObj(false, data) : getUCACustomAjaxObj(false, data);
129
- ajax.done(function (response) {
130
- btn.addClass('wpd-not-clicked');
131
- $('[data-lity-close]', window.parent.document).trigger('click');
132
- });
133
  });
134
 
135
  $(document).delegate('.wpd-user-settings-button.wpd-not-clicked', 'click', function () {
@@ -142,25 +152,25 @@ jQuery(document).ready(function ($) {
142
  var data = new FormData();
143
  data.append('action', 'wpdGuestAction');
144
  data.append('guestAction', guestAction);
145
- var ajax = isNativeAjaxEnabled ? getUCAjaxObj(false, data) : getUCACustomAjaxObj(false, data);
146
- ajax.done(function (response) {
147
- btn.addClass('wpd-not-clicked');
148
- btn.find('.wpd-loading').removeClass('wpd-show');
149
- try {
150
- var r = $.parseJSON(response);
151
- btn.after(r.message);
152
- var messageWrap = btn.next('.wpd-guest-action-message');
153
- messageWrap.fadeIn(100).fadeOut(7000, function () {
154
- messageWrap.remove();
155
- if (parseInt(r.code) === 1) {
156
- btn.parent().remove();
157
- guestActionDeleteCookieClass();
 
 
 
 
158
  }
159
  });
160
- } catch (e) {
161
- console.log(e);
162
- }
163
- });
164
  } else {
165
  wpdDeleteAllCookies();
166
  }
@@ -180,45 +190,7 @@ jQuery(document).ready(function ($) {
180
  var name = eqPos > -1 ? wpdCookie.substr(0, eqPos) : wpdCookie;
181
  Cookies.remove(name.trim());
182
  }
183
- Cookies.remove(wpdiscuzAjaxObj.wpdiscuz_options.lastVisitKey, {path: window.location});
184
  location.reload(true);
185
  }
186
 
187
- /**
188
- * @param {type} action the action key
189
- * @param {type} data the request properties
190
- * @returns {jqXHR}
191
- */
192
- function getUCAjaxObj(isShowTopLoading, data) {
193
- if (isShowTopLoading) {
194
- $('.wpdiscuz-loading-bar').show();
195
- }
196
- data.append('postId', wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id);
197
- return $.ajax({
198
- type: 'POST',
199
- url: wpdiscuzAjaxObj.url,
200
- data: data,
201
- contentType: false,
202
- processData: false,
203
- });
204
- }
205
-
206
- /**
207
- * @param {type} action the action key
208
- * @param {type} data the request properties
209
- * @returns {jqXHR}
210
- */
211
- function getUCACustomAjaxObj(isShowTopLoading, data) {
212
- if (isShowTopLoading) {
213
- $('.wpdiscuz-loading-bar').show();
214
- }
215
- data.append('postId', wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id);
216
- return $.ajax({
217
- type: 'POST',
218
- url: wpdiscuzAjaxObj.customAjaxUrl,
219
- data: data,
220
- contentType: false,
221
- processData: false,
222
- });
223
- }
224
  });
1
  ;
2
  jQuery(document).ready(function ($) {
3
  var refreshAfterDeleting = 0;
4
+ var isNativeAjaxEnabled = parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled);
5
  $(document).delegate('.wpd-info,.wpd-page-link,.wpd-delete-content,.wpd-user-email-delete-links', 'click', function (e) {
6
  e.preventDefault();
7
  });
8
 
 
 
 
 
 
9
  $(document).delegate('.wpd-info.wpd-not-clicked', 'click', function (e) {
10
  var btn = $(this);
11
  btn.removeClass('wpd-not-clicked');
20
  var oldClass = icon.attr('class');
21
  icon.removeClass();
22
  icon.addClass('fas fa-pulse fa-spinner');
23
+ wpdiscuzAjaxObj.getAjaxObj(isNativeAjaxEnabled, false, data)
24
+ .done(function (response) {
25
+ btn.addClass('wpd-not-clicked');
26
+ icon.removeClass();
27
+ icon.addClass(oldClass);
28
+ if (response) {
29
+ $('#wpdUserContentInfo').html(response);
30
+ $('#wpdUserContentInfo ul.wpd-list .wpd-list-item:first-child').addClass('wpd-active');
31
+ $('#wpdUserContentInfo div.wpd-content .wpd-content-item:first-child').addClass('wpd-active');
32
+
33
+ if (!($('#wpdUserContentInfo').is(':visible'))) {
34
+ $('#wpdUserContentInfoAnchor').trigger('click');
35
+ }
36
+ }
37
+ });
38
  }
39
 
40
  $(document).delegate('.wpd-list-item', 'click', function () {
41
  var relValue = $('input.wpd-rel', this).val();
42
  $('#wpdUserContentInfo .wpd-list-item').removeClass('wpd-active');
43
  $('#wpdUserContentInfo .wpd-content-item').removeClass('wpd-active');
44
+ var $this = $(this);
45
+ if (!$('#wpdUserContentInfo #' + relValue).text().length) {
46
+ var data = new FormData();
47
+ data.append('action', $this.attr('data-action'));
48
+ data.append('page', 0);
49
+ $('#wpdUserContentInfo #' + relValue).addClass('wpd-active');
50
+ $('#wpdUserContentInfo #' + relValue).css('text-align', 'center');
51
+ wpdiscuzAjaxObj.getAjaxObj(isNativeAjaxEnabled, true, data)
52
+ .done(function (response) {
53
+ if (response) {
54
+ $('#wpdUserContentInfo #' + relValue).css('text-align', '');
55
+ $this.addClass('wpd-active');
56
+ $('#wpdUserContentInfo #' + relValue).html(response);
57
+ }
58
+ $('#wpdiscuz-loading-bar').hide();
59
+ });
60
+ } else {
61
+ $this.addClass('wpd-active');
62
+ $('#wpdUserContentInfo #' + relValue).addClass('wpd-active');
63
+ }
64
  });
65
 
66
 
72
  var data = new FormData();
73
  data.append('action', action);
74
  data.append('page', goToPage);
75
+ wpdiscuzAjaxObj.getAjaxObj(isNativeAjaxEnabled, true, data)
76
+ .done(function (response) {
77
+ btn.addClass('wpd-not-clicked');
78
+ if (response) {
79
+ $('.wpd-content-item.wpd-active').html(response);
80
+ }
81
+ $('#wpdiscuz-loading-bar').hide();
82
+ });
83
  });
84
 
85
  $(document).delegate('.wpd-delete-content.wpd-not-clicked', 'click', function () {
88
  var id = parseInt(btn.data('wpd-content-id'));
89
  if (!isNaN(id)) {
90
  var action = btn.data('wpd-delete-action');
91
+ if (action == 'wpdDeleteComment' && !confirm(wpdiscuzUCObj.msgConfirmDeleteComment)) {
92
  return false;
93
+ } else if (action == 'wpdCancelSubscription' && !confirm(wpdiscuzUCObj.msgConfirmCancelSubscription)) {
94
  return false;
95
+ } else if (action == 'wpdCancelFollow' && !confirm(wpdiscuzUCObj.msgConfirmCancelFollow)) {
96
  return false;
97
  }
98
  var icon = $('i', btn);
101
  var childCount = $('.wpd-content-item.wpd-active').children('.wpd-item').length;
102
  btn.removeClass('wpd-not-clicked');
103
  icon.removeClass().addClass('fas fa-pulse fa-spinner');
104
+ if (childCount == 1 && goToPage > 0) {
105
  goToPage = goToPage - 1;
106
  }
107
 
110
  data.append('page', goToPage);
111
  data.append('action', action);
112
 
113
+ wpdiscuzAjaxObj.getAjaxObj(isNativeAjaxEnabled, false, data)
114
+ .done(function (response) {
115
+ btn.addClass('wpd-not-clicked');
116
+ icon.removeClass().addClass(oldClass);
117
+ $('.wpd-content-item.wpd-active').html(response);
118
+ refreshAfterDeleting = 1;
119
+ });
 
 
 
120
 
121
  }
122
  });
135
  $('.wpd-loading', btn).addClass('wpd-show');
136
  var data = new FormData();
137
  data.append('action', 'wpdEmailDeleteLinks');
138
+ wpdiscuzAjaxObj.getAjaxObj(isNativeAjaxEnabled, false, data)
139
+ .done(function (response) {
140
+ btn.addClass('wpd-not-clicked');
141
+ $('[data-lity-close]', window.parent.document).trigger('click');
142
+ });
143
  });
144
 
145
  $(document).delegate('.wpd-user-settings-button.wpd-not-clicked', 'click', function () {
152
  var data = new FormData();
153
  data.append('action', 'wpdGuestAction');
154
  data.append('guestAction', guestAction);
155
+ wpdiscuzAjaxObj.getAjaxObj(isNativeAjaxEnabled, false, data)
156
+ .done(function (response) {
157
+ btn.addClass('wpd-not-clicked');
158
+ btn.find('.wpd-loading').removeClass('wpd-show');
159
+ try {
160
+ var r = $.parseJSON(response);
161
+ btn.after(r.message);
162
+ var messageWrap = btn.next('.wpd-guest-action-message');
163
+ messageWrap.fadeIn(100).fadeOut(7000, function () {
164
+ messageWrap.remove();
165
+ if (parseInt(r.code) === 1) {
166
+ btn.parent().remove();
167
+ guestActionDeleteCookieClass();
168
+ }
169
+ });
170
+ } catch (e) {
171
+ console.log(e);
172
  }
173
  });
 
 
 
 
174
  } else {
175
  wpdDeleteAllCookies();
176
  }
190
  var name = eqPos > -1 ? wpdCookie.substr(0, eqPos) : wpdCookie;
191
  Cookies.remove(name.trim());
192
  }
 
193
  location.reload(true);
194
  }
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  });
assets/js/wpdiscuz-user-content.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(e){var t=0,d=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled);e(document).delegate(".wpd-info,.wpd-page-link,.wpd-delete-content,.wpd-user-email-delete-links","click",function(e){e.preventDefault()}),e(document).delegate(".wpd-info.wpd-not-clicked","click",function(t){var n=e(this);n.removeClass("wpd-not-clicked");var a=new FormData;return a.append("action","wpdGetInfo"),function(t,n){var a=e(".fas",t),i=a.attr("class");a.removeClass(),a.addClass("fas fa-pulse fa-spinner"),wpdiscuzAjaxObj.getAjaxObj(d,!1,n).done(function(d){t.addClass("wpd-not-clicked"),a.removeClass(),a.addClass(i),d&&(e("#wpdUserContentInfo").html(d),e("#wpdUserContentInfo ul.wpd-list .wpd-list-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo div.wpd-content .wpd-content-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo").is(":visible")||e("#wpdUserContentInfoAnchor").trigger("click"))})}(n,a),!1}),e(document).delegate(".wpd-list-item","click",function(){var t=e("input.wpd-rel",this).val();e("#wpdUserContentInfo .wpd-list-item").removeClass("wpd-active"),e("#wpdUserContentInfo .wpd-content-item").removeClass("wpd-active");var n=e(this);if(e("#wpdUserContentInfo #"+t).text().length)n.addClass("wpd-active"),e("#wpdUserContentInfo #"+t).addClass("wpd-active");else{var a=new FormData;a.append("action",n.attr("data-action")),a.append("page",0),e("#wpdUserContentInfo #"+t).addClass("wpd-active"),e("#wpdUserContentInfo #"+t).css("text-align","center"),wpdiscuzAjaxObj.getAjaxObj(d,!0,a).done(function(d){d&&(e("#wpdUserContentInfo #"+t).css("text-align",""),n.addClass("wpd-active"),e("#wpdUserContentInfo #"+t).html(d)),e("#wpdiscuz-loading-bar").hide()})}}),e(document).delegate(".wpd-page-link.wpd-not-clicked","click",function(t){var n=e(this);n.removeClass("wpd-not-clicked");var a=n.data("wpd-page"),i=e(".wpd-active .wpd-pagination .wpd-action").val(),o=new FormData;o.append("action",i),o.append("page",a),wpdiscuzAjaxObj.getAjaxObj(d,!0,o).done(function(t){n.addClass("wpd-not-clicked"),t&&e(".wpd-content-item.wpd-active").html(t),e("#wpdiscuz-loading-bar").hide()})}),e(document).delegate(".wpd-delete-content.wpd-not-clicked","click",function(){var n=e(this),a=parseInt(n.data("wpd-content-id"));if(!isNaN(a)){var i=n.data("wpd-delete-action");if("wpdDeleteComment"==i&&!confirm(wpdiscuzUCObj.msgConfirmDeleteComment))return!1;if("wpdCancelSubscription"==i&&!confirm(wpdiscuzUCObj.msgConfirmCancelSubscription))return!1;if("wpdCancelFollow"==i&&!confirm(wpdiscuzUCObj.msgConfirmCancelFollow))return!1;var o=e("i",n),s=o.attr("class"),c=e(".wpd-wrapper .wpd-page-number").val(),l=e(".wpd-content-item.wpd-active").children(".wpd-item").length;n.removeClass("wpd-not-clicked"),o.removeClass().addClass("fas fa-pulse fa-spinner"),1==l&&c>0&&(c-=1);var p=new FormData;p.append("id",a),p.append("page",c),p.append("action",i),wpdiscuzAjaxObj.getAjaxObj(d,!1,p).done(function(d){n.addClass("wpd-not-clicked"),o.removeClass().addClass(s),e(".wpd-content-item.wpd-active").html(d),t=1})}}),e(document).delegate("[data-lity-close]","click",function(d){e(d.target).is("[data-lity-close]")&&t&&window.location.reload(!0)}),e(document).delegate(".wpd-user-email-delete-links.wpd-not-clicked","click",function(){var t=e(this);t.removeClass("wpd-not-clicked"),e(".wpd-loading",t).addClass("wpd-show");var n=new FormData;n.append("action","wpdEmailDeleteLinks"),wpdiscuzAjaxObj.getAjaxObj(d,!1,n).done(function(d){t.addClass("wpd-not-clicked"),e("[data-lity-close]",window.parent.document).trigger("click")})}),e(document).delegate(".wpd-user-settings-button.wpd-not-clicked","click",function(){var t=e(this);t.removeClass("wpd-not-clicked");var n=t.data("wpd-delete-action");if(console.log(n),"deleteCookies"!==n){t.find(".wpd-loading").addClass("wpd-show");var a=new FormData;a.append("action","wpdGuestAction"),a.append("guestAction",n),wpdiscuzAjaxObj.getAjaxObj(d,!1,a).done(function(d){t.addClass("wpd-not-clicked"),t.find(".wpd-loading").removeClass("wpd-show");try{var n=e.parseJSON(d);t.after(n.message);var a=t.next(".wpd-guest-action-message");a.fadeIn(100).fadeOut(7e3,function(){a.remove(),1===parseInt(n.code)&&(t.parent().remove(),e(".wpd-delete-all-comments").length||e(".wpd-delete-all-subscriptions").length||e(".wpd-delete-all-cookies").parent().addClass("wpd-show"))})}catch(e){console.log(e)}})}else!function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var d=e[t],n=d.indexOf("="),a=n>-1?d.substr(0,n):d;Cookies.remove(a.trim())}location.reload(!0)}()})});
assets/js/wpdiscuz.js CHANGED
@@ -1,230 +1,421 @@
1
  ;
2
- jQuery(document).ready(function ($) {
3
- $('body').addClass('wpdiscuz_' + wpdiscuzAjaxObj.wpdiscuz_options.version);
4
- var isUserLoggedIn = wpdiscuzAjaxObj.wpdiscuz_options.is_user_logged_in;
5
- var isShowCaptchaForGuests = wpdiscuzAjaxObj.wpdiscuz_options.wc_captcha_show_for_guest == 1 && !isUserLoggedIn;
6
- var isShowCaptchaForMembers = wpdiscuzAjaxObj.wpdiscuz_options.wc_captcha_show_for_members == 1 && isUserLoggedIn;
7
- var isCaptchaInSession = wpdiscuzAjaxObj.wpdiscuz_options.isCaptchaInSession;
8
- var wpdiscuzRecaptcha = wpdiscuzAjaxObj.wpdiscuz_options.wpDiscuzReCaptcha;
9
- var isGoodbyeCaptchaActive = wpdiscuzAjaxObj.wpdiscuz_options.isGoodbyeCaptchaActive;
10
- var commentListLoadType = wpdiscuzAjaxObj.wpdiscuz_options.commentListLoadType;
11
- var wordpressIsPaginate = wpdiscuzAjaxObj.wpdiscuz_options.wordpressIsPaginate;
12
- var wpdiscuzPostId = wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id;
13
- var commentListUpdateType = wpdiscuzAjaxObj.wpdiscuz_options.commentListUpdateType;
14
- var commentListUpdateTimer = wpdiscuzAjaxObj.wpdiscuz_options.commentListUpdateTimer;
15
- var disableGuestsLiveUpdate = wpdiscuzAjaxObj.wpdiscuz_options.liveUpdateGuests;
16
- var loadLastCommentId = wpdiscuzAjaxObj.wpdiscuz_options.loadLastCommentId;
17
- var cookieCommentsSorting = wpdiscuzAjaxObj.wpdiscuz_options.cookieCommentsSorting;
18
- var wpdiscuzOrderData = Cookies.get(cookieCommentsSorting + "_" + wpdiscuzPostId);
19
- if (wpdiscuzOrderData) {
20
- wpdiscuzOrderData = JSON.parse(wpdiscuzOrderData);
21
- var wpdiscuzCommentsOrder = wpdiscuzOrderData && wpdiscuzOrderData.order ? wpdiscuzOrderData.order : wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentsOrder;
22
- var wpdiscuzCommentsOrderBy = wpdiscuzOrderData && wpdiscuzOrderData.orderBy ? wpdiscuzOrderData.orderBy : wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentOrderBy;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  } else {
24
- var wpdiscuzCommentsOrder = wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentsOrder;
25
- var wpdiscuzCommentsOrderBy = wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuzCommentOrderBy;
 
 
 
 
 
 
 
 
 
 
 
26
  }
27
- var commentsVoteOrder = wpdiscuzAjaxObj.wpdiscuz_options.commentsVoteOrder;
28
- var storeCommenterData = wpdiscuzAjaxObj.wpdiscuz_options.storeCommenterData;
29
- var wpdiscuzLoadCount = 1;
30
- var wpdiscuzReplyArray = [];
31
- var wpdiscuzCommentArray = [];
32
- var wpdiscuzUploader = wpdiscuzAjaxObj.wpdiscuz_options.uploader;
33
- var commentTextMaxLength = wpdiscuzAjaxObj.wpdiscuz_options.commentTextMaxLength;
34
- var wpdGoogleRecaptchaValid = true;
35
- var wpdiscuzReplyButton = '';
36
- var isCookiesEnabled = wpdiscuzAjaxObj.wpdiscuz_options.isCookiesEnabled;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  var wpdCookiesConsent = true;
38
- var wpdiscuzCookiehash = wpdiscuzAjaxObj.wpdiscuz_options.cookiehash;
39
- var isLoadOnlyParentComments = wpdiscuzAjaxObj.wpdiscuz_options.isLoadOnlyParentComments;
40
- var enableDropAnimation = wpdiscuzAjaxObj.wpdiscuz_options.enableDropAnimation ? 500 : 0;
41
- var isNativeAjaxEnabled = wpdiscuzAjaxObj.wpdiscuz_options.isNativeAjaxEnabled;
 
 
 
 
 
 
 
42
  var wpdiscuzAgreementFields = [];
 
 
 
 
43
  loginButtonsClone();
 
 
 
44
 
45
- if (!wpdiscuzAjaxObj.wpdiscuz_options.wordpressIsPaginate && isCookiesEnabled) {
46
- Cookies.remove('wordpress_last_visit', {path: ''});
47
- var wpdiscuzLastVisitKey = wpdiscuzAjaxObj.wpdiscuz_options.lastVisitKey;
48
- if (wpdiscuzAjaxObj.wpdiscuz_options.enableLastVisitCookie) {
49
- var wpdiscuzLastVisit = wpdiscuzAjaxObj.wpdiscuz_options.lastVisitCookie;
50
- var wpdiscuzLastVisitExpires = wpdiscuzAjaxObj.wpdiscuz_options.lastVisitExpires;
51
- Cookies.set(wpdiscuzLastVisitKey, wpdiscuzLastVisit, {expires: wpdiscuzLastVisitExpires, path: window.location});
52
- } else {
53
- Cookies.remove(wpdiscuzLastVisitKey, {path: ''});
54
  }
 
 
 
 
 
 
 
 
 
55
  }
56
 
57
- $('#wc_unsubscribe_message, #wc_delete_content_message, #wc_follow_message').delay(3000).fadeOut(1500, function () {
58
- $(this).remove();
59
- location.href = location.href.substring(0, location.href.indexOf('wpdiscuzUrlAnchor') - 1);
 
 
 
 
 
60
  });
61
 
62
- $(document).delegate('.wc-reply-button', 'click', function () {
63
- wpdiscuzReplyButton = $(this);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  if ($(this).hasClass('wpdiscuz-clonned')) {
65
- $('#wc-secondary-form-wrapper-' + getUniqueID($(this), 0)).slideToggle(enableDropAnimation);
 
 
 
 
 
 
 
 
 
66
  } else {
67
  cloneSecondaryForm($(this));
68
  }
69
- $(this).toggleClass('wc-cta-active');
70
  });
71
 
72
- $(document).delegate('.wc-comment-img-link', 'click', function () {
73
- var el = $('<input/>');
74
  var val = $(this).data('comment-url');
 
75
  el.appendTo('body').css({'position': 'absolute', 'top': '-10000000px'}).val(val);
76
  el.select();
77
  document.execCommand('copy');
78
  el.remove();
79
- alert(val + '\r\nCopied to clipboard!');
80
- });
81
-
82
- $(document).delegate('textarea.wc_comment', 'focus', function () {
83
- var parent = $(this).parents('.wc-form-wrapper');
84
- $('.commentTextMaxLength', parent).show();
85
- $('.wc-form-footer', parent).slideDown(enableDropAnimation);
86
- });
87
-
88
- $(document).delegate('#wpcomm textarea', 'focus', function () {
89
- if (!($(this).next('.autogrow-textarea-mirror').length)) {
90
- $(this).autoGrow();
91
- }
92
- });
93
-
94
- $(document).delegate('textarea.wc_comment', 'blur', function () {
95
- var parent = $(this).parents('.wc-form-wrapper');
96
- $('.commentTextMaxLength', parent).hide();
97
- });
98
-
99
- $(document).delegate('textarea.wc_comment', 'keyup', function () {
100
- setTextareaCharCount($(this), commentTextMaxLength);
101
- });
102
-
103
- $.each($('textarea.wc_comment'), function () {
104
- setTextareaCharCount($(this), commentTextMaxLength);
105
  });
106
 
107
- $(document).delegate('.wpdiscuz-nofollow,.wc_captcha_refresh_img,.wc-toggle,.wc-load-more-link', 'click', function (e) {
108
  e.preventDefault();
109
  });
110
 
111
- $(document).delegate('.wc-toggle', 'click', function (e) {
 
 
112
  var uniqueID = getUniqueID($(this), 0);
113
  var toggle = $(this);
114
  var icon = $('.fas', toggle);
115
- if (icon.hasClass('wpdiscuz-show-replies') && isLoadOnlyParentComments) {
116
- wpdiscuzShowReplies(uniqueID);
117
  } else {
118
- $('#wc-comm-' + uniqueID + '> .wc-reply').slideToggle(700, function () {
119
  if ($(this).is(':hidden')) {
120
  icon.removeClass('fa-chevron-up');
121
  icon.addClass('fa-chevron-down');
122
- icon.attr('title', wpdiscuzAjaxObj.wpdiscuz_options.wc_show_replies_text);
123
- $('.wpdiscuz-children-button-text', toggle).text(wpdiscuzAjaxObj.wpdiscuz_options.wc_show_replies_text);
124
  } else {
125
  icon.removeClass('fa-chevron-down');
126
  icon.addClass('fa-chevron-up');
127
- icon.attr('title', wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);
128
- $('.wpdiscuz-children-button-text', toggle).text(wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);
129
  }
 
130
  });
131
- if ($('.wpdiscuz-children-count', toggle).length) {
132
- var replies = $('#wc-comm-' + uniqueID + ' .wc-reply');
133
- $('.wpdiscuz-children-count', toggle).html(replies.length);
134
- }
135
  }
136
  });
137
 
138
- $(document).delegate('.wc-new-loaded-comment', 'mouseenter', function () {
139
- if ($(this).hasClass('wc-reply')) {
140
- $('>.wc-comment-right', this).css('backgroundColor', wpdiscuzAjaxObj.wpdiscuz_options.wc_reply_bg_color);
141
- } else {
142
- $('>.wc-comment-right', this).css('backgroundColor', wpdiscuzAjaxObj.wpdiscuz_options.wc_comment_bg_color);
143
- }
144
  });
145
 
146
- $(document).delegate('.wpdiscuz-sbs-wrap', 'click', function () {
147
  $('.wpdiscuz-subscribe-bar').slideToggle(enableDropAnimation);
148
  });
149
- //============================== CAPTCHA ============================== //
150
- $(document).delegate('.wc_captcha_refresh_img', 'click', function (e) {
151
- e.preventDefault();
152
- changeCaptchaImage($(this));
153
- });
154
- function changeCaptchaImage(reloadImage) {
155
- if (!wpdiscuzRecaptcha && !isGoodbyeCaptchaActive && (isShowCaptchaForGuests || isShowCaptchaForMembers)) {
156
- var form = reloadImage.parents('.wc-form-wrapper');
157
- var keyField = $('.wpdiscuz-cnonce', form);
158
- if (isCaptchaInSession) {
159
- var uuId = getUUID();
160
- var captchaImg = $(reloadImage).prev().children('.wc_captcha_img');
161
- var src = captchaImg.attr('src');
162
- var fileUrl = src.substring(0, src.indexOf('=') + 1);
163
- captchaImg.attr('src', fileUrl + uuId + '&r=' + Math.random());
164
- keyField.attr('id', uuId);
165
- keyField.attr('value', uuId);
166
- } else {
167
- var data = new FormData();
168
- data.append('action', 'generateCaptcha');
169
- var isMain = form.hasClass('wc-secondary-form-wrapper') ? 0 : 1;
170
- var uniqueId = getUniqueID(reloadImage, isMain);
171
- data.append('wpdiscuz_unique_id', uniqueId);
172
- var ajaxObject = getAjaxObj(true, data);
173
- ajaxObject.done(function (response) {
174
- try {
175
- var obj = $.parseJSON(response);
176
- if (obj.code == 1) {
177
- var captchaImg = $(reloadImage).prev().children('.wc_captcha_img');
178
- var src = captchaImg.attr('src');
179
- var lastSlashIndex = src.lastIndexOf('/') + 1;
180
- var newSrc = src.substring(0, lastSlashIndex) + obj.message;
181
- captchaImg.attr('src', newSrc);
182
- keyField.attr('id', obj.key);
183
- keyField.attr('value', obj.key);
184
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  } catch (e) {
186
  console.log(e);
 
187
  }
188
- $('.wpdiscuz-loading-bar').fadeOut(250);
189
- });
190
- }
191
  }
192
  }
193
 
194
- function getUUID() {
195
- var chars = '123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
196
- var uuId = 'c';
197
- for (i = 0; i < 13; i++) {
198
- uuId += chars[Math.floor(Math.random() * (chars.length - 1) + 1)];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  }
200
- return uuId;
201
  }
202
- //============================== CAPTCHA ============================== //
 
203
  //============================== ADD COMMENT FUNCTION ============================== //
204
 
205
- $(document).delegate('.wc_comm_submit.wc_not_clicked', 'click', function () {
206
  var currentSubmitBtn = $(this);
207
  var depth = 1;
208
  var wcForm = $(this).parents('form');
209
- if (!wcForm.hasClass('wc_main_comm_form')) {
210
- depth = getCommentDepth($(this).parents('.wc-comment'));
211
  }
212
 
213
- wpdGoogleRecaptchaValid = true;
214
- wpdValidateFieldRequired(wcForm);
215
- wcForm.submit(function (event) {
216
- event.preventDefault();
217
  });
218
- if (wcForm[0].checkValidity() && wpdGoogleRecaptchaValid) {
 
 
 
 
 
219
  addAgreementInCookie(wcForm);
220
- $(currentSubmitBtn).removeClass('wc_not_clicked');
221
  var data = new FormData();
222
  data.append('action', 'wpdAddComment');
223
- data.append('ahk', wpdiscuzAjaxObj.wpdiscuz_options.ahk);
224
  var inputs = $(":input", wcForm);
225
  inputs.each(function () {
226
  if (this.name != '' && this.type != 'checkbox' && this.type != 'radio') {
227
- data.append(this.name + '', $(this).val());
228
  }
229
  if (this.type == 'checkbox' || this.type == 'radio') {
230
  if ($(this).is(':checked')) {
@@ -233,176 +424,153 @@ jQuery(document).ready(function ($) {
233
  }
234
  });
235
 
236
- data.append('wc_comment_depth', depth);
237
-
238
- if (wpdiscuzUploader == 1) {
239
- var images = $(wcForm).find('input.wmu-image');
240
- var videos = $(wcForm).find('input.wmu-video');
241
- var files = $(wcForm).find('input.wmu-file');
242
- if (images.length > 0) {
243
- $.each($(images), function (i, imageFile) {
244
- if (imageFile.files.length > 0) {
245
- $.each(imageFile.files, function (j, imageObj) {
246
- data.append('wmu_images[' + i + ']', imageObj);
247
- });
248
- }
249
- });
250
- }
251
-
252
- if (videos.length > 0) {
253
- $.each($(videos), function (i, videoFile) {
254
- if (videoFile.files.length > 0) {
255
- $.each(videoFile.files, function (j, videoObj) {
256
- data.append('wmu_videos[' + i + ']', videoObj);
257
- });
258
- }
259
- });
260
- }
261
-
262
- if (files.length > 0) {
263
- $.each($(files), function (i, file) {
264
- if (file.files.length > 0) {
265
- $.each(file.files, function (j, fileObj) {
266
- data.append('wmu_files[' + i + ']', fileObj);
267
- });
268
- }
269
- });
270
- }
271
- }
272
-
273
- if (!wpdiscuzRecaptcha && !isGoodbyeCaptchaActive && (isShowCaptchaForGuests || isShowCaptchaForMembers) && !isCaptchaInSession) {
274
- var image = $('.wc_captcha_img', wcForm);
275
- var src = image.attr('src');
276
- var lastIndex = src.lastIndexOf('/') + 1;
277
- var fileName = src.substring(lastIndex);
278
- data.append('fileName', fileName);
279
- }
280
 
281
- if (wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuz_zs) {
282
- data.append('wpdiscuz_zs', wpdiscuzAjaxObj.wpdiscuz_options.wpdiscuz_zs);
283
  }
284
 
285
  if ($('.wpd-cookies-checkbox', wcForm).length && !$('.wpd-cookies-checkbox', wcForm).prop("checked")) {
286
  wpdCookiesConsent = false;
287
  }
288
-
289
- var ajax = (!isNativeAjaxEnabled && !wpdiscuzUploader) ? getCustomAjaxObj(true, data) : getAjaxObj(true, data);
290
- ajax.done(function (response) {
291
- $(currentSubmitBtn).addClass('wc_not_clicked');
292
- var messageKey = '';
293
- var message = '';
294
  try {
295
- var r = $.parseJSON(response);
296
- messageKey = r.code;
297
- if (parseInt(messageKey) >= 0) {
298
- var isMain = r.is_main;
299
- message = r.message;
300
- $('.wpd-cc-value').html(r.wc_all_comments_count_new);
301
- if ($('.wpd-stat-threads-count').length) {
302
- $('.wpd-stat-threads-count').html(r.threadsCount);
303
- }
304
- if ($('.wpd-stat-replies-count').length) {
305
- $('.wpd-stat-replies-count').html(r.repliesCount);
306
- }
307
- if ($('.wpd-stat-authors-count').length) {
308
- $('.wpd-stat-authors-count').html(r.authorsCount);
309
- }
310
- if (isMain) {
311
- addCommentsAfterSticky(message);
312
- } else {
313
- $('#wc-secondary-form-wrapper-' + messageKey).slideToggle(700);
314
- if (r.is_in_same_container == 1) {
315
- $('#wc-secondary-form-wrapper-' + messageKey).after(message);
316
- } else {
317
- $('#wc-secondary-form-wrapper-' + messageKey).after(message.replace('wc-reply', 'wc-reply wc-no-left-margin'));
318
- }
319
- }
320
- notifySubscribers(r);
321
- wpdiscuzRedirect(r);
322
- if (isCookiesEnabled && wpdCookiesConsent) {
323
- addCookie(wcForm, r);
324
- } else if (!wpdCookiesConsent) {
325
- $('.wpd-cookies-checkbox').removeAttr('checked');
326
- }
327
- wcForm.get(0).reset();
328
- setCookieInForm(r);
329
- var currTArea = $('.wc_comment', wcForm);
330
- currTArea.css('height', '72px');
331
- setTextareaCharCount(currTArea, commentTextMaxLength);
332
- $('.wmu-preview-wrap', wcForm).remove();
333
- if (wpdiscuzReplyButton.length) {
334
- wpdiscuzReplyButton.removeClass('wc-cta-active');
335
- }
336
- deleteAgreementFields();
337
- } else {
338
- message = wpdiscuzAjaxObj.wpdiscuz_options[messageKey];
339
- if (r.typeError != 'undefined' && r.typeError != null) {
340
- message += ' ' + r.typeError;
341
- }
342
- wpdiscuzAjaxObj.setCommentMessage(wcForm, messageKey, message, true);
343
- }
344
- runCallbacks(r, wcForm);
345
  } catch (e) {
346
- if (response.indexOf('<') >= 0 && response.indexOf('>') >= 0) {
347
- message = e;
348
- } else {
349
- message = response;
350
- }
351
- wpdiscuzAjaxObj.setCommentMessage(wcForm, 'wc_invalid_field', message, true);
352
  }
353
- $('.wpdiscuz-loading-bar').fadeOut(250);
354
- });
 
 
355
  }
356
- changeCaptchaImage($('.wc_captcha_refresh_img', wcForm));
357
  wpdiscuzReset();
358
  });
359
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  function notifySubscribers(r) {
361
- if (!r.held_moderate) {
362
  var data = new FormData();
363
  data.append('action', 'wpdCheckNotificationType');
364
- data.append('comment_id', r.new_comment_id);
365
- data.append('email', r.comment_author_email);
366
- data.append('isParent', r.is_main);
367
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
368
- ajax.done(function (response) {
369
- try {
370
- r = $.parseJSON(response);
371
- } catch (e) {
372
- console.log(e);
373
- }
374
- });
375
  }
376
  }
377
 
378
  function wpdiscuzRedirect(r) {
379
- if (r.redirect > 0 && r.new_comment_id) {
380
  var data = new FormData();
381
  data.append('action', 'wpdRedirect');
382
- data.append('commentId', r.new_comment_id);
383
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
384
- ajax.done(function (response) {
385
- r = $.parseJSON(response);
386
- if (r.code == 1) {
387
- setTimeout(function () {
388
- window.location.href = r.redirect_to;
389
- }, 5000);
390
- }
391
- });
 
 
 
 
392
  }
393
  }
394
 
395
  function setCookieInForm(obj) {
396
- $('.wc_comm_form .wc_name').val(obj.comment_author);
397
- if (obj.comment_author_email.indexOf('@example.com') < 0) {
398
- $('.wc_comm_form .wc_email').val(obj.comment_author_email);
399
  }
400
  if (obj.comment_author_url) {
401
- $('.wc_comm_form .wc_website').val(obj.comment_author_url);
402
  }
403
  }
404
 
405
- function addCookie(wcForm, obj) {
406
  var email = obj.comment_author_email;
407
  var name = obj.comment_author;
408
  var weburl = obj.comment_author_url;
@@ -424,135 +592,150 @@ jQuery(document).ready(function ($) {
424
  $('.wpd-cookies-checkbox').attr('checked', 'checked');
425
  }
426
  }
427
- //============================== ADD COMMENT FUNCTION ============================== //
428
  //============================== EDIT COMMENT FUNCTION ============================== //
429
  var wcCommentTextBeforeEditing;
430
 
431
- $(document).delegate('.wc_editable_comment', 'click', function () {
432
  if (wcCommentTextBeforeEditing && $('.wpdiscuz-edit-form-wrap').length) {
433
- wcCancelOrSave(getUniqueID($('.wpdiscuz-edit-form-wrap'), 0), wcCommentTextBeforeEditing);
434
  }
435
  var uniqueID = getUniqueID($(this), 0);
436
  var commentID = getCommentID(uniqueID);
437
- var editButton = $(this);
438
  var data = new FormData();
439
  data.append('action', 'wpdEditComment');
440
  data.append('commentId', commentID);
441
- var wcCommentTextBeforeEditingTop = $('#wc-comm-' + uniqueID + ' .wpd-top-custom-fields');
442
- var wcCommentTextBeforeEditingBottom = $('#wc-comm-' + uniqueID + ' .wpd-bottom-custom-fields');
443
- wcCommentTextBeforeEditing = wcCommentTextBeforeEditingTop.length ? '<div class="wpd-top-custom-fields">' + wcCommentTextBeforeEditingTop.html() + '</div>' : '';
444
- wcCommentTextBeforeEditing += '<div class="wc-comment-text">' + $('#wc-comm-' + uniqueID + ' .wc-comment-text').html() + '</div>';
445
- wcCommentTextBeforeEditing += wcCommentTextBeforeEditingBottom.length ? '<div class="wpd-bottom-custom-fields">' + $('#wc-comm-' + uniqueID + ' .wpd-bottom-custom-fields').html() + '</div>' : '';
446
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
447
- ajax.done(function (response) {
448
- try {
449
- var r = $.parseJSON(response);
450
- var message = '';
451
- var messageKey = r.code;
452
- if (parseInt(messageKey) >= 0) {
453
- $('#wc-comm-' + uniqueID + ' .wpd-top-custom-fields').remove();
454
- $('#wc-comm-' + uniqueID + ' .wpd-bottom-custom-fields').remove();
455
- $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-text').replaceWith(r.message);
456
- $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_editable_comment').hide();
457
- $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_cancel_edit').css('display', 'inline-block');
458
- var editForm = $('#wc-comm-' + uniqueID + ' > .wc-comment-right #wpdiscuz-edit-form');
459
- } else {
460
- message = wpdiscuzAjaxObj.wpdiscuz_options[messageKey];
461
- wpdiscuzAjaxObj.setCommentMessage(editButton, messageKey, message, false);
462
- }
463
- } catch (e) {
464
- console.log(e);
465
- }
466
- $('.wpdiscuz-loading-bar').fadeOut(250);
467
- });
 
468
  });
469
 
470
  $(document).delegate('.wc_save_edited_comment', 'click', function () {
471
  var uniqueID = getUniqueID($(this));
472
  var commentID = getCommentID(uniqueID);
473
- var editCommentForm = $('#wc-comm-' + uniqueID + ' #wpdiscuz-edit-form');
474
- var saveButton = $(this);
475
- wpdValidateFieldRequired(editCommentForm);
476
- editCommentForm.submit(function (event) {
477
- event.preventDefault();
478
  });
479
 
480
  if (editCommentForm[0].checkValidity()) {
481
  var data = new FormData();
482
  data.append('action', 'wpdSaveEditedComment');
483
- data.append('wpdiscuz_unique_id', uniqueID);
484
  data.append('commentId', commentID);
485
  var inputs = $(":input", editCommentForm);
486
  inputs.each(function () {
487
- if ($(this).is(':visible') && this.name != '' && this.type != 'checkbox' && this.type != 'radio') {
488
  data.append(this.name + '', $(this).val());
489
  }
490
- if (this.type == 'checkbox' || this.type == 'radio') {
491
  if ($(this).is(':checked')) {
492
  data.append(this.name + '', $(this).val());
493
  }
494
  }
495
  });
496
 
497
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
498
- ajax.done(function (response) {
499
- try {
500
- var r = $.parseJSON(response);
501
- var messageKey = r.code;
502
- var message = '';
503
- if (parseInt(messageKey) >= 0) {
504
- wcCancelOrSave(uniqueID, r.message);
505
- if (r.twitterShareLink) {
506
- $('#wc-comm-' + uniqueID + ' #comment-' + commentID + '.wc-comment-right .wc-comment-header .wc-share-link .wc_tw').attr('href', r.twitterShareLink);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
507
  }
508
- } else {
509
- message = wpdiscuzAjaxObj.wpdiscuz_options[messageKey];
510
- wpdiscuzAjaxObj.setCommentMessage(saveButton, messageKey, message, false);
511
- }
512
- runCallbacks(r, commentID);
513
- } catch (e) {
514
- if (response.indexOf('<') >= 0 && response.indexOf('>') >= 0) {
515
- message = e;
516
- } else {
517
- message = response;
518
- }
519
- wpdiscuzAjaxObj.setCommentMessage(saveButton, 'wc_invalid_field', message, false);
520
- }
521
- $('.wpdiscuz-loading-bar').fadeOut(250);
522
- });
523
  }
524
  });
525
 
526
  $(document).delegate('.wc_cancel_edit', 'click', function () {
527
  var uniqueID = getUniqueID($(this));
528
- wcCancelOrSave(uniqueID, wcCommentTextBeforeEditing);
 
 
 
529
  });
530
 
531
- function wcCancelOrSave(uniqueID, content) {
532
- $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_editable_comment').show();
533
- $('#wc-comm-' + uniqueID + ' > .wc-comment-right .wc-comment-footer .wc_cancel_edit').hide();
534
- $('#wc-comm-' + uniqueID + ' .wpdiscuz-edit-form-wrap').replaceWith(content);
535
  }
536
 
537
- function nl2br(str, is_xhtml) {
538
- var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br/>' : '<br>';
539
- var string = (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2');
540
- return string.replace('<br><br>', '<br/>');
541
- }
542
- //============================== EDIT COMMENT FUNCTION ============================== //
543
  //============================== LOAD MORE ============================== //
544
- $(document).delegate('.wc-load-more-submit', 'click', function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  var loadButton = $(this);
546
- var loaded = 'wc-loaded';
547
- var loading = 'wc-loading';
548
  if (loadButton.hasClass(loaded)) {
549
- wpdiscuzLoadComments(loadButton, loaded, loading);
550
  }
551
  });
552
 
553
  var isRun = false;
554
- if (commentListLoadType == 2 && !wordpressIsPaginate) {
555
- $('.wc-load-more-submit').parents('.wpdiscuz-comment-pagination').hide();
556
  wpdiscuzScrollEvents();
557
  $(window).scroll(function () {
558
  wpdiscuzScrollEvents();
@@ -567,66 +750,88 @@ jQuery(document).ready(function ($) {
567
  var scrollPercent = scrollPosition * 100 / scrollHeight;
568
  if (scrollPercent >= 80 && isRun === false && wpdiscuzHasMoreComments == 1) {
569
  isRun = true;
570
- wpdiscuzLoadComments($('.wc-load-more-submit'));
571
  }
572
  }
573
  }
574
 
575
- function wpdiscuzLoadComments(loadButton, loaded, loading) {
576
- loadButton.toggleClass(loaded);
577
- loadButton.toggleClass(loading);
 
 
578
  var data = new FormData();
579
  data.append('action', 'wpdLoadMoreComments');
 
 
 
 
580
  data.append('offset', wpdiscuzLoadCount);
581
- data.append('orderBy', wpdiscuzCommentsOrderBy);
582
- data.append('order', wpdiscuzCommentsOrder);
583
  data.append('lastParentId', getLastParentID());
584
- if (wpdiscuzAjaxObj.wpdiscuz_options.enableLastVisitCookie) {
585
- data.append(wpdiscuzLastVisitKey, Cookies.get(wpdiscuzLastVisitKey));
586
- }
587
- wpdiscuzLoadCount++;
588
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
589
- ajax.done(function (response) {
590
- try {
591
- var r = $.parseJSON(response);
592
- $('.wpdiscuz-comment-pagination').before(r.comment_list);
593
- setLoadMoreVisibility(r);
594
- $('.wpdiscuz_single').remove();
595
- isRun = false;
596
- loadLastCommentId = r.loadLastCommentId;
597
- } catch (e) {
598
- console.log(e);
599
- }
600
- $('.wpdiscuz-loading-bar').fadeOut(250);
601
- $('.wc-load-more-submit').blur();
602
- loadButton.toggleClass(loaded);
603
- loadButton.toggleClass(loading);
604
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
605
  }
606
 
607
- function setLoadMoreVisibility(r) {
608
- if (r.is_show_load_more == false) {
609
  $('#wpdiscuzHasMoreComments').val(0);
610
- $('.wc-load-more-submit').parents('.wpdiscuz-comment-pagination').hide();
611
  } else {
612
- setLastParentID(r.last_parent_id);
613
  $('#wpdiscuzHasMoreComments').val(1);
 
 
 
614
  }
615
 
616
  runCallbacks(r);
617
  }
618
-
619
- //============================== LOAD MORE ============================== //
620
  //============================== VOTE ============================== //
621
- $(document).delegate('.wc_vote.wc_not_clicked', 'click', function () {
622
  var currentVoteBtn = $(this);
623
- $(currentVoteBtn).removeClass('wc_not_clicked');
624
- var messageKey = '';
625
- var message = '';
626
- var commentID = $(this).parents('.wc-comment-right').attr('id');
627
- commentID = commentID.substring(commentID.lastIndexOf('-') + 1);
628
  var voteType;
629
- if ($(this).hasClass('wc-up')) {
630
  voteType = 1;
631
  } else {
632
  voteType = -1;
@@ -636,91 +841,96 @@ jQuery(document).ready(function ($) {
636
  data.append('action', 'wpdVoteOnComment');
637
  data.append('commentId', commentID);
638
  data.append('voteType', voteType);
639
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
640
- ajax.done(function (response) {
641
- $(currentVoteBtn).addClass('wc_not_clicked');
642
- try {
643
- var r = $.parseJSON(response);
644
- messageKey = r.code;
645
- if (parseInt(messageKey) >= 0) {
646
- if (r.buttonsStyle == 'total') {
647
- var voteCountDiv = $('.wc-comment-footer .wc-vote-result', $('#comment-' + commentID));
648
- voteCountDiv.text(parseInt(voteCountDiv.text()) + voteType);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
649
  } else {
650
- var likeCountDiv = $('.wc-comment-footer .wc-vote-result-like', $('#comment-' + commentID));
651
- var dislikeCountDiv = $('.wc-comment-footer .wc-vote-result-dislike', $('#comment-' + commentID));
652
- likeCountDiv.text(r.likeCount);
653
- dislikeCountDiv.text(r.dislikeCount);
654
- parseInt(r.likeCount) > 0 ? likeCountDiv.addClass('wc-positive') : likeCountDiv.removeClass('wc-positive');
655
- parseInt(r.dislikeCount) < 0 ? dislikeCountDiv.addClass('wc-negative') : dislikeCountDiv.removeClass('wc-negative');
656
  }
657
- } else {
658
- message = wpdiscuzAjaxObj.wpdiscuz_options[messageKey];
659
- wpdiscuzAjaxObj.setCommentMessage(currentVoteBtn, messageKey, message, false);
660
- }
661
- runCallbacks(r, commentID, voteType);
662
- } catch (e) {
663
- console.log(e);
664
- }
665
- $('.wpdiscuz-loading-bar').fadeOut(250);
666
- });
667
  });
668
- //============================== VOTE ============================== //
669
  //============================== SORTING ============================== //
670
- $(document).delegate('.wpdiscuz-sort-button', 'click', function () {
671
- if (!($(this).hasClass('wpdiscuz-sort-button-active'))) {
672
- var clickedBtn = $(this);
673
- if ($(this).hasClass('wpdiscuz-vote-sort-up')) {
674
- wpdiscuzCommentsOrderBy = 'by_vote';
675
- wpdiscuzCommentsOrder = 'desc';
676
- } else {
677
- wpdiscuzCommentsOrderBy = 'comment_date_gmt';
678
- wpdiscuzCommentsOrder = $(this).hasClass('wpdiscuz-date-sort-desc') ? 'desc' : 'asc';
679
- }
680
- var cookieCommentsSorting = wpdiscuzAjaxObj.wpdiscuz_options.cookieCommentsSorting;
681
- var postId = wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id;
682
- var orderData = {orderBy: wpdiscuzCommentsOrderBy, order: wpdiscuzCommentsOrder};
683
- Cookies.set(cookieCommentsSorting + "_" + postId, JSON.stringify(orderData), {expires: 7, path: location.href});
684
  var data = new FormData();
685
  data.append('action', 'wpdSorting');
686
- data.append('orderBy', wpdiscuzCommentsOrderBy);
687
- data.append('order', wpdiscuzCommentsOrder);
688
-
689
- var messageKey = '';
690
- var message = '';
691
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
692
- ajax.done(function (response) {
693
- try {
694
- var r = $.parseJSON(response);
695
- messageKey = r.code;
696
- message = r.message;
697
- if (parseInt(messageKey) > 0) {
698
- $('#wpcomm .wc-thread-wrapper .wc-comment').each(function () {
699
- $(this).remove();
700
- });
701
- $('#wpcomm .wc-thread-wrapper').prepend(message);
702
- wpdiscuzLoadCount = parseInt(r.loadCount);
703
- }
704
- setActiveButton(clickedBtn);
705
- setLoadMoreVisibility(r);
706
- } catch (e) {
707
- console.log(e);
708
- }
709
- $('.wpdiscuz-loading-bar').fadeOut(250);
710
- });
711
  }
712
  });
713
-
714
- function setActiveButton(clickedBtn) {
715
- $('.wpdiscuz-sort-buttons .wpdiscuz-sort-button').each(function () {
716
- $(this).removeClass('wpdiscuz-sort-button-active');
717
- });
718
- clickedBtn.addClass('wpdiscuz-sort-button-active');
719
- }
720
-
721
- //============================== SORTING ============================== //
722
  //============================== SINGLE COMMENT ============================== //
723
- function getSingleComment() {
724
  var loc = location.href;
725
  var matches = loc.match(/#comment\-(\d+)/);
726
  if (matches !== null) {
@@ -729,128 +939,100 @@ jQuery(document).ready(function ($) {
729
  var data = new FormData();
730
  data.append('action', 'wpdGetSingleComment');
731
  data.append('commentId', commentId);
732
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
733
- ajax.done(function (response) {
734
- try {
735
- var r = $.parseJSON(response);
736
- var scrollToSelector = '.wc-thread-wrapper';
737
- if ($('#comment-' + r.parentCommentID).length) {
738
- var parentComment = $('#comment-' + r.parentCommentID);
739
- $('.wc-toggle', parentComment).trigger('click');
740
- scrollToSelector = '#comment-' + r.parentCommentID;
741
- } else {
742
- $('.wc-thread-wrapper').prepend(r.message);
743
- }
744
-
745
- runCallbacks(r);
746
-
747
- $('html, body').animate({
748
- scrollTop: $(scrollToSelector).offset().top - 32
749
- }, 1000);
750
- } catch (e) {
751
- console.log(e);
752
- }
753
- $('.wpdiscuz-loading-bar').fadeOut(250);
754
- });
 
 
 
 
755
  } else {
756
- $('html, body').animate({
757
- scrollTop: $('#comment-' + commentId).parents('[id^=wc-comm-]').offset().top - 32
758
- }, 1000);
 
 
 
 
 
759
  }
760
  }
761
  }
762
- getSingleComment();
763
- //============================== SINGLE COMMENT ============================== //
764
- //============================== LIVE UPDATE ============================== //
765
- if (commentListUpdateType && loadLastCommentId && (isUserLoggedIn || (!isUserLoggedIn && !disableGuestsLiveUpdate))) {
766
- setInterval(liveUpdate, parseInt(commentListUpdateTimer) * 1000);
767
  }
768
-
 
 
 
 
 
 
 
 
769
  function liveUpdate() {
770
- var visibleCommentIds = getVisibleCommentIds();
771
- var email = (Cookies.get('comment_author_email_' + wpdiscuzCookiehash) != undefined && Cookies.get('comment_author_email_' + wpdiscuzCookiehash) != '') ? Cookies.get('comment_author_email_' + wpdiscuzCookiehash) : '';
772
  var data = new FormData();
773
  data.append('action', 'wpdUpdateAutomatically');
774
  data.append('loadLastCommentId', loadLastCommentId);
775
- data.append('visibleCommentIds', visibleCommentIds);
776
- data.append('email', email);
777
- var ajax = isNativeAjaxEnabled ? getAjaxObj(false, data) : getCustomAjaxObj(false, data);
778
- ajax.done(function (response) {
779
- try {
780
- var r = $.parseJSON(response);
781
- if (r.code == 1) {
782
- if (commentListUpdateType == 1) {
783
- liveUpdateImmediately(r);
784
- } else {
785
- wpdiscuzCommentArray = wpdiscuzCommentArray.concat(r.message.comments);
786
- wpdiscuzReplyArray = wpdiscuzReplyArray.concat(r.message.author_replies);
787
- var newCommentArrayLength = wpdiscuzCommentArray.length;
788
- var newRepliesArrayLength = wpdiscuzReplyArray.length;
789
- if (newCommentArrayLength > 0) {
790
- var newCommentText = newCommentArrayLength + ' ';
791
- newCommentText += newCommentArrayLength > 1 ? wpdiscuzAjaxObj.wpdiscuz_options.wc_new_comments_button_text : wpdiscuzAjaxObj.wpdiscuz_options.wc_new_comment_button_text;
792
- $('.wc_new_comment').html(newCommentText).show();
793
- } else {
794
- $('.wc_new_comment').hide();
795
- }
796
- if (newRepliesArrayLength > 0) {
797
- var newReplyText = newRepliesArrayLength + ' ';
798
- newReplyText += newRepliesArrayLength > 1 ? wpdiscuzAjaxObj.wpdiscuz_options.wc_new_replies_button_text : wpdiscuzAjaxObj.wpdiscuz_options.wc_new_reply_button_text;
799
- $('.wc_new_reply').html(newReplyText).show();
800
- } else {
801
- $('.wc_new_reply').hide();
802
  }
803
  }
804
- $('.wpd-cc-value').html(r.wc_all_comments_count_new);
805
- loadLastCommentId = r.loadLastCommentId;
806
- }
807
- } catch (e) {
808
- console.log(e);
809
- }
810
- $('.wpdiscuz-loading-bar').fadeOut(250);
811
- });
812
  }
813
 
814
  function liveUpdateImmediately(r) {
815
- if (r.message !== undefined) {
816
  var commentObject;
817
- var message = r.message;
818
  for (var i = 0; i < message.length; i++) {
819
  commentObject = message[i];
820
  addCommentToTree(commentObject.comment_parent, commentObject.comment_html);
821
  }
822
  }
823
  }
824
-
825
- $(document).delegate('.wc-update-on-click', 'click', function () {
826
- var data = new FormData();
827
- data.append('action', 'wpdUpdateOnClick');
828
- var clickedButton = $(this);
829
- if (clickedButton.hasClass('wc_new_comment')) {
830
- data.append('newCommentIds', wpdiscuzCommentArray.join());
831
- } else {
832
- data.append('newCommentIds', wpdiscuzReplyArray.join());
833
- }
834
-
835
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
836
- ajax.done(function (response) {
837
- try {
838
- var r = $.parseJSON(response);
839
- liveUpdateImmediately(r);
840
- if (clickedButton.hasClass('wc_new_comment')) {
841
- wpdiscuzCommentArray = [];
842
- $('.wc_new_comment').hide();
843
- } else {
844
- wpdiscuzReplyArray = [];
845
- $('.wc_new_reply').hide();
846
- }
847
- } catch (e) {
848
- console.log(e);
849
- }
850
- $('.wpdiscuz-loading-bar').fadeOut(250);
851
- });
852
- });
853
- //============================== LIVE UPDATE ============================== //
854
  //============================== READ MORE ============================== //
855
  $(document).delegate('.wpdiscuz-readmore', 'click', function () {
856
  var uniqueId = getUniqueID($(this));
@@ -858,59 +1040,53 @@ jQuery(document).ready(function ($) {
858
  var data = new FormData();
859
  data.append('action', 'wpdReadMore');
860
  data.append('commentId', commentId);
861
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
862
- ajax.done(function (response) {
863
- try {
864
- var r = $.parseJSON(response);
865
- if (r.code) {
866
- $('#comment-' + commentId + ' .wc-comment-text').html(' ' + r.message);
867
- $('#wpdiscuz-readmore-' + uniqueId).remove();
868
- }
869
- runCallbacks(r);
870
- } catch (e) {
871
- console.log(e);
872
- }
873
- $('.wpdiscuz-loading-bar').fadeOut(250);
874
- });
 
 
 
 
 
875
  });
876
- //============================== READ MORE ============================== //
877
-
878
  //============================== FUNCTIONS ============================== //
879
- /**
880
- * field - the clicked element
881
- * messagekey - the key for adding class on message container
882
- * message - the message to add
883
- * isformerror - whether the error is form or not
884
- */
885
- wpdiscuzAjaxObj.setCommentMessage = function (field, messageKey, message, isFormError) {
886
- var msgContainer;
887
- var parentContainer;
888
- if (isFormError) {
889
- parentContainer = field.parents('.wc-form-wrapper');
890
- } else {
891
- parentContainer = field.closest('.wc-comment');
892
- }
893
- msgContainer = parentContainer.children('.wpdiscuz-comment-message');
894
- msgContainer.removeClass();
895
- msgContainer.addClass('wpdiscuz-comment-message');
896
- msgContainer.addClass(messageKey);
897
- msgContainer.html(message);
898
- msgContainer.show().delay(4000).fadeOut(1000, function () {
899
- msgContainer.removeClass();
900
- msgContainer.addClass('wpdiscuz-comment-message');
901
- msgContainer.html('');
902
- });
903
-
904
- }
905
 
906
  function cloneSecondaryForm(field) {
907
  var uniqueId = getUniqueID(field, 0);
908
  $('#wpdiscuz_form_anchor-' + uniqueId).before(replaceUniqueId(uniqueId));
909
- var secondaryFormWrapper = $('#wc-secondary-form-wrapper-' + uniqueId);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
910
  secondaryFormWrapper.slideToggle(enableDropAnimation, function () {
911
  field.addClass('wpdiscuz-clonned');
912
  });
913
- changeCaptchaImage($('.wc_captcha_refresh_img', secondaryFormWrapper));
914
  }
915
 
916
  function replaceUniqueId(uniqueId) {
@@ -921,9 +1097,9 @@ jQuery(document).ready(function ($) {
921
  function getUniqueID(field, isMain) {
922
  var fieldID = '';
923
  if (isMain) {
924
- fieldID = field.parents('.wc-main-form-wrapper').attr('id');
925
  } else {
926
- fieldID = field.parents('.wc-comment').attr('id');
927
  }
928
  var uniqueID = fieldID.substring(fieldID.lastIndexOf('-') + 1);
929
  return uniqueID;
@@ -934,23 +1110,22 @@ jQuery(document).ready(function ($) {
934
  }
935
 
936
  function getLastParentID() {
937
- return $('.wc-load-more-link').attr("data-lastparentid");
938
  }
939
 
940
  function setLastParentID(lastParentID) {
941
- $('.wc-load-more-link').attr("data-lastparentid", lastParentID);
942
- if (commentListLoadType != 2) {
943
  $('.wpdiscuz-comment-pagination').show();
944
  }
945
  }
946
 
947
-
948
  function getCommentDepth(field) {
949
  var fieldClasses = field.attr('class');
950
  var classesArray = fieldClasses.split(' ');
951
  var depth = '';
952
  $.each(classesArray, function (index, value) {
953
- if ('wc_comment_level' === getParentDepth(value, false)) {
954
  depth = getParentDepth(value, true);
955
  }
956
  });
@@ -980,7 +1155,7 @@ jQuery(document).ready(function ($) {
980
  var uniqueId;
981
  var commentId;
982
  var visibleCommentIds = '';
983
- $('.wc-comment-right').each(function () {
984
  uniqueId = getUniqueID($(this), 0);
985
  commentId = getCommentID(uniqueId);
986
  visibleCommentIds += commentId + ',';
@@ -990,13 +1165,13 @@ jQuery(document).ready(function ($) {
990
 
991
  function loginButtonsClone() {
992
  if ($('.wc_social_plugin_wrapper .wp-social-login-provider-list').length) {
993
- $('.wc_social_plugin_wrapper .wp-social-login-provider-list').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper > .wc-secondary-forms-social-content');
994
  } else if ($('.wc_social_plugin_wrapper .the_champ_login_container').length) {
995
- $('.wc_social_plugin_wrapper .the_champ_login_container').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper > .wc-secondary-forms-social-content');
996
  } else if ($('.wc_social_plugin_wrapper .social_connect_form').length) {
997
- $('.wc_social_plugin_wrapper .social_connect_form').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper > .wc-secondary-forms-social-content');
998
  } else if ($('.wc_social_plugin_wrapper .oneall_social_login_providers').length) {
999
- $('.wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wc-form-wrapper > .wc-secondary-forms-social-content');
1000
  }
1001
  }
1002
 
@@ -1004,23 +1179,12 @@ jQuery(document).ready(function ($) {
1004
  $('.wpdiscuz_reset').val("");
1005
  }
1006
 
1007
- function setTextareaCharCount(elem, count) {
1008
- if (commentTextMaxLength != null) {
1009
- var currLength = elem.val().length;
1010
- var textareaWrap = elem.parents('.wc_comm_form');
1011
- var charCountDiv = $('.commentTextMaxLength', textareaWrap);
1012
- var left = commentTextMaxLength - currLength;
1013
- if (left <= 10) {
1014
- charCountDiv.addClass('left10');
1015
- } else {
1016
- charCountDiv.removeClass('left10');
1017
- }
1018
- charCountDiv.html(left);
1019
- }
1020
- }
1021
-
1022
- function wpdValidateFieldRequired(form) {
1023
  var fieldsGroup = form.find('.wpd-required-group');
 
 
 
 
1024
  $.each(fieldsGroup, function () {
1025
  $('input', this).removeAttr('required');
1026
  var checkedFields = $('input:checked', this);
@@ -1030,13 +1194,17 @@ jQuery(document).ready(function ($) {
1030
  $('.wpd-field-invalid', this).remove();
1031
  }
1032
  });
 
1033
 
1034
- if (wpdiscuzRecaptcha && $('input[name=wpdiscuz_recaptcha]', form).length && !$('input[name=wpdiscuz_recaptcha]', form).val().length) {
1035
- wpdGoogleRecaptchaValid = false;
1036
- $('.wpdiscuz-recaptcha', form).css('border', '1px solid red');
1037
- } else if (wpdiscuzRecaptcha) {
1038
- $('.wpdiscuz-recaptcha', form).css('border', 'none');
1039
- }
 
 
 
1040
  }
1041
 
1042
  $(document).delegate('.wpd-required-group', 'change', function () {
@@ -1058,172 +1226,201 @@ jQuery(document).ready(function ($) {
1058
  $(this).toggleClass('wpdiscuz-spoiler-closed');
1059
  });
1060
 
1061
- function wpdiscuzShowReplies(uniqueId) {
1062
  var commentId = getCommentID(uniqueId);
1063
  var data = new FormData();
1064
  data.append('action', 'wpdShowReplies');
1065
  data.append('commentId', commentId);
1066
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
1067
- ajax.done(function (response) {
1068
- try {
1069
- var r = $.parseJSON(response);
1070
- if (r.code == 1) {
1071
- $('#wc-comm-' + uniqueId).replaceWith(r.data);
1072
- $('#wc-comm-' + uniqueId + ' .wc-toggle .fas').removeClass('fa-chevron-down').addClass('fa-chevron-up').removeClass('wpdiscuz-show-replies').attr('title', wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);
1073
- var toggle = $('#wc-comm-' + uniqueId + ' .wc-toggle');
1074
- $('.wpdiscuz-children-button-text', toggle).text(wpdiscuzAjaxObj.wpdiscuz_options.wc_hide_replies_text);
1075
-
1076
- runCallbacks(r);
1077
- } else {
1078
- console.log('Unknown error occured');
1079
- }
1080
- } catch (e) {
1081
- console.log(e);
1082
- }
1083
- $('.wpdiscuz-loading-bar').fadeOut(250);
1084
- });
 
1085
  }
1086
 
1087
- $(document).delegate('.wc_stick_btn', 'click', function () {
1088
- var btn = $(this);
1089
- var uniqueId = getUniqueID(btn, 0);
 
 
 
 
 
 
 
1090
  var commentId = getCommentID(uniqueId);
1091
  var data = new FormData();
1092
  data.append('action', 'wpdStickComment');
1093
  data.append('commentId', commentId);
1094
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
1095
- ajax.done(function (response) {
1096
- try {
1097
- var r = $.parseJSON(response);
1098
- if (r.code == 1) {
1099
- $('.wc_stick_text', btn).text(r.data);
1100
- setTimeout(function () {
1101
- location.reload(true);
1102
- }, 1000);
1103
- } else {
1104
- console.log('Comment not updated');
1105
- }
1106
- } catch (e) {
1107
- console.log(e);
1108
- }
1109
- $('.wpdiscuz-loading-bar').fadeOut(250);
1110
- });
1111
  });
1112
 
1113
- $(document).delegate('.wc_close_btn', 'click', function () {
1114
- var btn = $(this);
1115
- var uniqueId = getUniqueID(btn, 0);
1116
  var commentId = getCommentID(uniqueId);
1117
  var data = new FormData();
1118
  data.append('action', 'wpdCloseThread');
1119
  data.append('commentId', commentId);
1120
- var ajax = isNativeAjaxEnabled ? getAjaxObj(true, data) : getCustomAjaxObj(true, data);
1121
- ajax.done(function (response) {
1122
- try {
1123
- var r = $.parseJSON(response);
1124
- if (r.code == 1) {
1125
- $('.wc_close_btn', btn).text(r.data);
1126
- setTimeout(function () {
1127
- location.reload(true);
1128
- }, 1000);
1129
- } else {
1130
- console.log('Comment not updated');
1131
- }
1132
- } catch (e) {
1133
- console.log(e);
1134
- }
1135
- $('.wpdiscuz-loading-bar').fadeOut(250);
1136
- });
1137
- });
1138
-
1139
-
1140
- $(document).delegate('.wc_main_comm_form .wc_comment', 'focus', function () {
1141
- $(this).parents('.wpdiscuz-textarea-wrap').find('.wc-field-avatararea').hide('fast');
1142
- $(this).animate({'padding': '15px', 'font-size': '14px'}, 'fast');
1143
  });
1144
 
1145
- $(document).delegate('.wc_main_comm_form .wc_comment', 'blur', function () {
1146
- if (!$(this).val()) {
1147
- $(this).removeAttr("style");
1148
- $(this).parents('.wpdiscuz-textarea-wrap').find('.wc-field-avatararea').show("fast");
 
 
 
 
 
 
 
1149
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1150
  });
1151
 
1152
- $(document).delegate('.wpd-stat-reacted', 'click', function () {
1153
  var btn = $(this);
 
1154
  $('.fas', btn).addClass('fa-pulse fa-spinner');
1155
  var data = new FormData();
1156
  data.append('action', 'wpdMostReactedComment');
1157
- var ajax = isNativeAjaxEnabled ? getAjaxObj(false, data) : getCustomAjaxObj(false, data);
1158
- ajax.done(function (response) {
1159
- try {
1160
- $('.fas', btn).removeClass('fa-pulse fa-spinner');
1161
- var r = $.parseJSON(response);
1162
- if (r.code) {
1163
- var scrollToSelector = '.wc-thread-wrapper';
1164
- if ($('#comment-' + r.commentId).length) {
1165
- scrollToSelector = '#comment-' + r.commentId;
1166
- } else if ($('#comment-' + r.parentCommentID).length) {
1167
- var parentComment = $('#comment-' + r.parentCommentID);
1168
- $('.wc-toggle', parentComment).trigger('click');
1169
- } else {
1170
- $('.wc-thread-wrapper').prepend(r.message);
1171
- scrollToSelector = '#comment-' + r.commentId;
1172
- }
1173
-
1174
- runCallbacks(r);
1175
 
1176
- $('html, body').animate({
1177
- scrollTop: $(scrollToSelector).offset().top - 32
1178
- }, 1000);
1179
- }
1180
- } catch (e) {
1181
- console.log(e);
1182
- }
1183
- $('.wpdiscuz-loading-bar').fadeOut(250);
1184
- });
 
 
1185
  });
1186
 
1187
-
1188
- $(document).delegate('.wpd-stat-hot', 'click', function () {
1189
  var btn = $(this);
1190
- $('.fab', btn).addClass('fas fa-pulse fa-spinner');
 
1191
  var data = new FormData();
1192
  data.append('action', 'wpdHottestThread');
1193
- var ajax = isNativeAjaxEnabled ? getAjaxObj(false, data) : getCustomAjaxObj(false, data);
1194
- ajax.done(function (response) {
1195
- try {
1196
- $('.fab', btn).removeClass('fas fa-pulse fa-spinner');
1197
- var r = $.parseJSON(response);
1198
- if (r.code) {
1199
- var scrollToSelector = '.wc-thread-wrapper';
1200
- if ($('#comment-' + r.commentId).length) {
1201
- scrollToSelector = '#comment-' + r.commentId;
1202
- } else {
1203
- $('.wc-thread-wrapper').prepend(r.message);
1204
- scrollToSelector = '#comment-' + r.commentId;
1205
- }
1206
 
1207
- var comment = $('#comment-' + r.commentId);
1208
- var toggle = $('.wc-toggle', comment);
1209
- var icon = $('.fas', toggle);
1210
- if (icon.hasClass('wpdiscuz-show-replies') && isLoadOnlyParentComments) {
1211
- toggle.trigger('click');
1212
- }
1213
 
1214
- runCallbacks(r);
 
 
 
 
 
 
 
 
 
 
1215
 
1216
- $('html, body').animate({
1217
- scrollTop: $(scrollToSelector).offset().top - 32
1218
- }, 1000);
1219
- }
1220
- } catch (e) {
1221
- console.log(e);
1222
- }
1223
- $('.wpdiscuz-loading-bar').fadeOut(250);
1224
- });
1225
  });
1226
 
 
1227
  function addAgreementInCookie(wcForm) {
1228
  $('.wpd-agreement-checkbox', wcForm).each(function () {
1229
  if ($(this).hasClass('wpd_agreement_hide') && isCookiesEnabled && $(this).prop('checked')) {
@@ -1244,46 +1441,49 @@ jQuery(document).ready(function ($) {
1244
  }
1245
  }
1246
 
1247
- $(document).delegate('.wc-follow-link.wc_not_clicked', 'click', function () {
1248
  var btn = $(this);
1249
- btn.removeClass('wc_not_clicked');
1250
  $('.fas', btn).addClass('fa-pulse fa-spinner');
1251
  var uniqueId = getUniqueID(btn, 0);
1252
  var commentId = getCommentID(uniqueId);
1253
  var data = new FormData();
1254
  data.append('action', 'wpdFollowUser');
1255
  data.append('commentId', commentId);
1256
- var ajax = isNativeAjaxEnabled ? getAjaxObj(false, data) : getCustomAjaxObj(false, data);
1257
-
1258
- ajax.done(function (response) {
1259
- btn.addClass('wc_not_clicked');
1260
- if (response.length) {
1261
- try {
1262
- var r = $.parseJSON(response);
1263
- if (r.code !== '') {
1264
- var message = wpdiscuzAjaxObj.wpdiscuz_options[r.code];
1265
- wpdiscuzAjaxObj.setCommentMessage(btn, r.code, message, false);
1266
- btn.removeClass('wc-follow-active');
1267
- if (r.data.followTip) {
1268
- $('wpdtip', btn).html(r.data.followTip);
1269
- }
1270
- if (r.data && r.data.followClass) {
1271
- btn.addClass(r.data.followClass);
1272
  }
 
 
1273
  }
1274
- } catch (e) {
1275
- console.log(e);
1276
- }
1277
- }
1278
- $('.fas', btn).removeClass('fa-pulse fa-spinner');
1279
- });
 
 
1280
  });
1281
 
1282
  function addCommentsAfterSticky(comment) {
1283
- if ($('.wc-sticky-comment').last()[0]) {
1284
- $(comment).insertAfter($('.wc-sticky-comment').last()[0]);
1285
  } else {
1286
- $('.wc-thread-wrapper').prepend(comment);
1287
  }
1288
  }
1289
 
@@ -1315,62 +1515,598 @@ jQuery(document).ready(function ($) {
1315
  showHideNotificationType($(this));
1316
  });
1317
 
1318
- $(document).delegate('#wpdiscuz-subscribe-form', 'submit', function (e) {
1319
- $('<input />').attr('type', 'hidden')
1320
- .attr('name', "ahk")
1321
- .attr('value', wpdiscuzAjaxObj.wpdiscuz_options.ahk)
1322
- .appendTo('#wpdiscuz-subscribe-form');
1323
- return true;
1324
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1325
 
1326
- function runCallbacks(r, commentID, voteType, wcForm) {
1327
- if (r.callbackFunctions) {
1328
- $.each(r.callbackFunctions, function (i) {
1329
- if (typeof wpdiscuzAjaxObj[r.callbackFunctions[i]] === "function") {
1330
- wpdiscuzAjaxObj[r.callbackFunctions[i]](r.code, commentID, voteType, wcForm);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ;
2
+ var wpdiscuzLoadRichEditor = parseInt(wpdiscuzAjaxObj.loadRichEditor);
3
+ if (wpdiscuzLoadRichEditor) {
4
+ var wpDiscuzEditor = new WpdEditor();
5
+ }
6
+ function wpdMessagesOnInit(message, type) {
7
+ wpdiscuzAjaxObj.setCommentMessage(message, type);
8
+ setTimeout(function () {
9
+ location.href = location.href.substring(0, location.href.indexOf('wpdiscuzUrlAnchor') - 1);
10
+ }, 3000);
11
+ }
12
+ /**
13
+ * @param {string/array} message(s) - message(s) to show
14
+ * @param {string/array} type(s) - message(s) type(s). acceptable values error/success/warning
15
+ * @param {string/array} delay(s) - timeout(s) before message(s) disappears
16
+ */
17
+ wpdiscuzAjaxObj.setCommentMessage = function (message, type, delay) {
18
+ var className = 'wpdiscuz-message-error';
19
+ if (Object.prototype.toString.call(message) === '[object Array]') {
20
+ for (var i in message) {
21
+ if (Object.prototype.toString.call(type) === '[object Array]') {
22
+ if (type[i] === 'success') {
23
+ className = 'wpdiscuz-message-success';
24
+ } else if (type[i] === 'warning') {
25
+ className = 'wpdiscuz-message-warning';
26
+ }
27
+ } else {
28
+ if (type === 'success') {
29
+ className = 'wpdiscuz-message-success';
30
+ } else if (type === 'warning') {
31
+ className = 'wpdiscuz-message-warning';
32
+ }
33
+ }
34
+ jQuery('<div/>')
35
+ .addClass(className)
36
+ .html(message[i])
37
+ .prependTo('#wpdiscuz-comment-message')
38
+ .delay(Object.prototype.toString.call(delay) === '[object Array]' ? delay[i] : delay ? delay : 4000)
39
+ .fadeOut(1000, function () {
40
+ jQuery(this).remove();
41
+ });
42
+ }
43
  } else {
44
+ if (type === 'success') {
45
+ className = 'wpdiscuz-message-success';
46
+ } else if (type === 'warning') {
47
+ className = 'wpdiscuz-message-warning';
48
+ }
49
+ jQuery('<div/>')
50
+ .addClass(className)
51
+ .html(message)
52
+ .prependTo('#wpdiscuz-comment-message')
53
+ .delay(delay ? delay : 4000)
54
+ .fadeOut(1000, function () {
55
+ jQuery(this).remove();
56
+ });
57
  }
58
+ };
59
+ jQuery(document).ready(function ($) {
60
+ /* global wpdiscuzAjaxObj */
61
+ /* global Cookies */
62
+ /* global grecaptcha */
63
+ /* global Quill */
64
+ $('body').addClass('wpdiscuz_' + wpdiscuzAjaxObj.version);
65
+ var isUserLoggedIn = wpdiscuzAjaxObj.is_user_logged_in;
66
+ var isShowCaptchaForGuests = wpdiscuzAjaxObj.wc_captcha_show_for_guest == 1 && !isUserLoggedIn;
67
+ var isShowCaptchaForMembers = wpdiscuzAjaxObj.wc_captcha_show_for_members == 1 && isUserLoggedIn;
68
+ var wpdiscuzRecaptchaVersion = wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion;
69
+ var commentListLoadType = parseInt(wpdiscuzAjaxObj.commentListLoadType);
70
+ var wpdiscuzPostId = parseInt(wpdiscuzAjaxObj.wc_post_id);
71
+ var commentListUpdateType = parseInt(wpdiscuzAjaxObj.commentListUpdateType);
72
+ var commentListUpdateTimer = parseInt(wpdiscuzAjaxObj.commentListUpdateTimer) * 1000;
73
+ var enableGuestsLiveUpdate = parseInt(wpdiscuzAjaxObj.liveUpdateGuests);
74
+ var loadLastCommentId = wpdiscuzAjaxObj.loadLastCommentId;
75
+ var bubbleLastCommentId = loadLastCommentId;
76
+ var firstLoadWithAjax = parseInt(wpdiscuzAjaxObj.firstLoadWithAjax);
77
+ if (Cookies.get('wpdiscuz_comments_sorting')) {
78
+ Cookies.remove('wpdiscuz_comments_sorting', {path: ''});
79
+ }
80
+ if (Cookies.get('wordpress_last_visit')) {
81
+ Cookies.remove('wordpress_last_visit', {path: ''});
82
+ }
83
+ if (Cookies.get('wpdiscuz_last_visit')) {
84
+ Cookies.remove('wpdiscuz_last_visit', {path: ''});
85
+ }
86
+ var storeCommenterData = wpdiscuzAjaxObj.storeCommenterData;
87
+ var wpdiscuzUploader = parseInt(wpdiscuzAjaxObj.wmuEnabled);
88
+ var isCookiesEnabled = wpdiscuzAjaxObj.isCookiesEnabled;
89
  var wpdCookiesConsent = true;
90
+ var wpdiscuzCookiehash = wpdiscuzAjaxObj.cookiehash;
91
+ var isLoadOnlyParentComments = parseInt(wpdiscuzAjaxObj.isLoadOnlyParentComments);
92
+ var enableDropAnimation = parseInt(wpdiscuzAjaxObj.enableDropAnimation) ? 500 : 0;
93
+ var isNativeAjaxEnabled = parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled);
94
+ var bubbleEnabled = parseInt(wpdiscuzAjaxObj.enableBubble);
95
+ var bubbleLiveUpdate = parseInt(wpdiscuzAjaxObj.bubbleLiveUpdate);
96
+ var bubbleHintTimeout = parseInt(wpdiscuzAjaxObj.bubbleHintTimeout);
97
+ var bubbleHintHideTimeout = parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout) ? parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout) : 5;
98
+ var bubbleShowNewCommentMessage = parseInt(wpdiscuzAjaxObj.bubbleShowNewCommentMessage);
99
+ var bubbleLocation = wpdiscuzAjaxObj.bubbleLocation;
100
+ var inlineFeedbackAttractionType = wpdiscuzAjaxObj.inlineFeedbackAttractionType;
101
  var wpdiscuzAgreementFields = [];
102
+ var reCaptchaWidgets = [];
103
+ var bubbleNewCommentIds = [];
104
+ var addingComment = false;
105
+ var wpdiscuzLoadCount = 1;
106
  loginButtonsClone();
107
+ if (wpdiscuzLoadRichEditor && $('#wpd-editor-0_0').length) {
108
+ wpDiscuzEditor.createEditor('#wpd-editor-0_0');
109
+ }
110
 
111
+ $(document).delegate('#wpdcom .ql-editor, #wpdcom .wc_comment', 'focus', function () {
112
+ $('.wpd-form-foot', $(this).parents('.wpd_comm_form')).slideDown(enableDropAnimation);
113
+ });
114
+ $(document).delegate('#wpdcom textarea', 'focus', function () {
115
+ if (!$(this).next('.autogrow-textarea-mirror').length) {
116
+ $(this).autoGrow();
 
 
 
117
  }
118
+ });
119
+
120
+ if (!isUserLoggedIn) {
121
+ var commentAuthorCookies = {
122
+ comment_author: Cookies.get('comment_author_' + wpdiscuzCookiehash),
123
+ comment_author_email: Cookies.get('comment_author_email_' + wpdiscuzCookiehash),
124
+ comment_author_url: Cookies.get('comment_author_url_' + wpdiscuzCookiehash)
125
+ };
126
+ setCookieInForm(commentAuthorCookies);
127
  }
128
 
129
+ $('.wpd-vote-down.wpd-dislike-hidden').remove();
130
+ $('.wpd-toolbar-hidden').prev('[id^=wpd-editor-]').css('border-bottom', "1px solid #dddddd");
131
+
132
+ $(document).delegate('#wpd-editor-source-code-wrapper-bg', 'click', function () {
133
+ $(this).hide();
134
+ $('#wpd-editor-source-code-wrapper').hide();
135
+ $('#wpd-editor-uid').val('');
136
+ $('#wpd-editor-source-code').val('');
137
  });
138
 
139
+ if (wpdiscuzLoadRichEditor) {
140
+ $(document).delegate('#wpd-insert-source-code', 'click', function () {
141
+ var editor = wpDiscuzEditor.createEditor('#' + $('#wpd-editor-uid').val());
142
+ editor.deleteText(0, editor.getLength(), Quill.sources.USER);
143
+ var html = $('#wpd-editor-source-code').val();
144
+ if (html.length) {
145
+ editor.clipboard.dangerouslyPasteHTML(0, html, Quill.sources.USER);
146
+ }
147
+ editor.update();
148
+ $('#wpd-editor-source-code-wrapper-bg').hide();
149
+ $('#wpd-editor-source-code-wrapper').hide();
150
+ $('#wpd-editor-uid').val('');
151
+ $('#wpd-editor-source-code').val('');
152
+ });
153
+ }
154
+
155
+ $(document).delegate('.wpd-reply-button', 'click', function () {
156
+ var uniqueID = getUniqueID($(this), 0);
157
  if ($(this).hasClass('wpdiscuz-clonned')) {
158
+ if (wpdiscuzLoadRichEditor) {
159
+ setTimeout(function () {
160
+ wpDiscuzEditor.createEditor('#wpd-editor-' + uniqueID).focus();
161
+ }, enableDropAnimation);
162
+ } else {
163
+ setTimeout(function () {
164
+ $('#wc-textarea-' + uniqueID).trigger('focus');
165
+ }, enableDropAnimation);
166
+ }
167
+ $('#wpd-secondary-form-wrapper-' + uniqueID).slideToggle(enableDropAnimation);
168
  } else {
169
  cloneSecondaryForm($(this));
170
  }
171
+ generateReCaptcha(uniqueID);
172
  });
173
 
174
+ $(document).delegate('#wpdcom .wpd-comment-link [data-comment-url]', 'click', function () {
 
175
  var val = $(this).data('comment-url');
176
+ var el = $('<input/>');
177
  el.appendTo('body').css({'position': 'absolute', 'top': '-10000000px'}).val(val);
178
  el.select();
179
  document.execCommand('copy');
180
  el.remove();
181
+ wpdiscuzAjaxObj.setCommentMessage(val + '<br/>' + wpdiscuzAjaxObj.wc_copied_to_clipboard, 'success', 5000);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  });
183
 
184
+ $(document).delegate('.wpdiscuz-nofollow,.wc_captcha_refresh_img,.wpd-load-more-submit', 'click', function (e) {
185
  e.preventDefault();
186
  });
187
 
188
+ $(document).delegate('.wpd-toggle.wpd_not_clicked', 'click', function () {
189
+ var btn = $(this);
190
+ btn.removeClass('wpd_not_clicked');
191
  var uniqueID = getUniqueID($(this), 0);
192
  var toggle = $(this);
193
  var icon = $('.fas', toggle);
194
+ if (!toggle.parents('.wpd-comment:not(.wpd-reply)').children('.wpd-reply').length && isLoadOnlyParentComments) {
195
+ wpdiscuzShowReplies(uniqueID, btn);
196
  } else {
197
+ $('#wpd-comm-' + uniqueID + '> .wpd-reply').slideToggle(700, function () {
198
  if ($(this).is(':hidden')) {
199
  icon.removeClass('fa-chevron-up');
200
  icon.addClass('fa-chevron-down');
201
+ toggle.attr('wpd-tooltip', wpdiscuzAjaxObj.wc_show_replies_text);
 
202
  } else {
203
  icon.removeClass('fa-chevron-down');
204
  icon.addClass('fa-chevron-up');
205
+ toggle.attr('wpd-tooltip', wpdiscuzAjaxObj.wc_hide_replies_text);
 
206
  }
207
+ btn.addClass('wpd_not_clicked');
208
  });
 
 
 
 
209
  }
210
  });
211
 
212
+ $(document).delegate('.wpd-new-loaded-comment', 'mouseenter', function () {
213
+ $(this).removeClass('wpd-new-loaded-comment');
 
 
 
 
214
  });
215
 
216
+ $(document).delegate('.wpd-sbs-toggle', 'click', function () {
217
  $('.wpdiscuz-subscribe-bar').slideToggle(enableDropAnimation);
218
  });
219
+ //============================== reCAPTCHA ============================== //
220
+ if (parseInt(wpdiscuzAjaxObj.wpDiscuzIsShowOnSubscribeForm) && !isUserLoggedIn && wpdiscuzAjaxObj.wpDiscuzReCaptchaSK) {
221
+ if (wpdiscuzRecaptchaVersion === '2.0') {
222
+ setTimeout(function () {
223
+ try {
224
+ grecaptcha.render('wpdiscuz-recaptcha-subscribe-form', {
225
+ 'sitekey': wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,
226
+ 'theme': wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,
227
+ 'callback': function (response) {
228
+ $('#wpdiscuz-recaptcha-field-subscribe-form').val('key');
229
+ },
230
+ 'expired-callback': function () {
231
+ $('#wpdiscuz-recaptcha-field-subscribe-form').val("");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  }
233
+ });
234
+ } catch (e) {
235
+ console.log(e);
236
+ wpdiscuzAjaxObj.setCommentMessage('reCaptcha Error: ' + e.message, 'error');
237
+ }
238
+ }, 1000);
239
+
240
+ $(document).delegate('#wpdiscuz-subscribe-form', 'submit', function (e) {
241
+ if (!$('#wpdiscuz-recaptcha-field-subscribe-form').val()) {
242
+ $('.wpdiscuz-recaptcha', $(this)).css('border', '1px solid red');
243
+ e.preventDefault();
244
+ } else {
245
+ $('.wpdiscuz-recaptcha', $(this)).css('border', 'none');
246
+ }
247
+ });
248
+ } else if (wpdiscuzRecaptchaVersion === '3.0') {
249
+ $(document).delegate('#wpdiscuz_subscription_button', 'click', function (e) {
250
+ var subscriptionForm = $(this).parents('#wpdiscuz-subscribe-form');
251
+ e.preventDefault();
252
+ try {
253
+ grecaptcha.ready(function () {
254
+ grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK, {action: 'wpdiscuz/wpdAddSubscription'})
255
+ .then(function (token) {
256
+ console.log(5555);
257
+ document.getElementById('wpdiscuz-recaptcha-field-subscribe-form').value = token;
258
+ subscriptionForm.submit();
259
+ }, function (reason) {
260
+ wpdiscuzAjaxObj.setCommentMessage('reCaptcha Error', 'error');
261
+ console.log(reason);
262
+ });
263
+ });
264
+ } catch (e) {
265
+ console.log(e);
266
+ wpdiscuzAjaxObj.setCommentMessage('reCaptcha Error: ' + e.message, 'error');
267
+ }
268
+ });
269
+ }
270
+ }
271
+
272
+ function generateReCaptcha(uniqueId) {
273
+ if ((isShowCaptchaForGuests || isShowCaptchaForMembers) && wpdiscuzRecaptchaVersion === '2.0') {
274
+ var commentId = getCommentID(uniqueId);
275
+ setTimeout(function () {
276
+ if (!reCaptchaWidgets[commentId]) {
277
+ try {
278
+ reCaptchaWidgets[commentId] = grecaptcha.render('wpdiscuz-recaptcha-' + uniqueId, {
279
+ 'sitekey': wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,
280
+ 'theme': wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,
281
+ 'callback': function (response) {
282
+ $('#wpdiscuz-recaptcha-field-' + uniqueId).val('key');
283
+ },
284
+ 'expired-callback': function () {
285
+ $('#wpdiscuz-recaptcha-field-' + uniqueId).val("");
286
+ }
287
+ });
288
  } catch (e) {
289
  console.log(e);
290
+ wpdiscuzAjaxObj.setCommentMessage('reCaptcha Error: ' + e.message, 'error');
291
  }
292
+ }
293
+ }, 1000);
 
294
  }
295
  }
296
 
297
+ function resetReCaptcha(uniqueId) {
298
+ if ((isShowCaptchaForGuests || isShowCaptchaForMembers) && wpdiscuzRecaptchaVersion === '2.0') {
299
+ var commentId = getCommentID(uniqueId);
300
+ grecaptcha.reset(reCaptchaWidgets[commentId]);
301
+ }
302
+ }
303
+
304
+ function wpdReCaptchaValidate(form) {
305
+ var wpdGoogleRecaptchaValid = true;
306
+ if (wpdiscuzRecaptchaVersion === '2.0' && $('input[name=wc_captcha]', form).length && !$('input[name=wc_captcha]', form).val().length) {
307
+ wpdGoogleRecaptchaValid = false;
308
+ $('.wpdiscuz-recaptcha', form).css('border', '1px solid red');
309
+ } else if (wpdiscuzRecaptchaVersion === '2.0' && $('input[name=wc_captcha]', form).length) {
310
+ $('.wpdiscuz-recaptcha', form).css('border', 'none');
311
+ }
312
+ return wpdGoogleRecaptchaValid;
313
+ }
314
+ function wpdReCaptchaValidateOnSubscribeForm(form) {
315
+ var wpdGoogleRecaptchaValid = true;
316
+ if (wpdiscuzRecaptchaVersion === '2.0' && $('input[name=wpdiscuz_recaptcha_subscribe_form]', form).length && !$('input[name=wpdiscuz_recaptcha_subscribe_form]', form).val().length) {
317
+ wpdGoogleRecaptchaValid = false;
318
+ $('.wpdiscuz-recaptcha', form).css('border', '1px solid red');
319
+ } else if (wpdiscuzRecaptchaVersion === '2.0' && $('input[name=wpdiscuz_recaptcha_subscribe_form]', form).length) {
320
+ $('.wpdiscuz-recaptcha', form).css('border', 'none');
321
+ }
322
+ return wpdGoogleRecaptchaValid;
323
+ }
324
+ if ((isShowCaptchaForGuests || isShowCaptchaForMembers) && wpdiscuzRecaptchaVersion === '2.0') {
325
+ var ww = $(window).width();
326
+ var wpcomm = $('#wpdcom').width();
327
+ if (wpcomm >= 1100) {
328
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.9)", "-webkit-transform": "scale(0.9)"});
329
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.9)", "-webkit-transform": "scale(0.9)"});
330
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({"width": "65%"});
331
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({"width": "35%"});
332
+ }
333
+ if (wpcomm >= 940 && wpcomm < 1100) {
334
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.9)", "-webkit-transform": "scale(0.9)"});
335
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.9)", "-webkit-transform": "scale(0.9)"});
336
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({"width": "60%"});
337
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({"width": "40%"});
338
+ }
339
+ if (wpcomm >= 810 && wpcomm < 940) {
340
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform": "scale(0.9)", "-webkit-transform": "scale(0.9)"});
341
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform": "scale(0.8)", "-webkit-transform": "scale(0.8)"});
342
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({"width": "40%"});
343
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({"width": "60%"});
344
+ }
345
+ if (wpcomm >= 730 && wpcomm < 810) {
346
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform": "scale(0.9)", "-webkit-transform": "scale(0.9)"});
347
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.8)", "-webkit-transform": "scale(0.8)"});
348
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({"width": "45%"});
349
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({"width": "55%"});
350
+ }
351
+ if (wpcomm >= 610 && wpcomm < 730) {
352
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform": "scale(0.85)", "-webkit-transform": "scale(0.85)"});
353
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform": "scale(0.8)", "-webkit-transform": "scale(0.8)"});
354
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({"width": "43%"});
355
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({"width": "55%"});
356
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({"width": "30%"});
357
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({"width": "70%"});
358
+ }
359
+ if (ww > 650) {
360
+ if (wpcomm >= 510 && wpcomm < 610) {
361
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "center 0", "-webkit-transform-origin": "center 0", "transform": "scale(0.77)", "-webkit-transform": "scale(0.77)"});
362
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.77)", "-webkit-transform": "scale(0.77)"});
363
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({"width": "35%"});
364
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({"width": "63%"});
365
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({"width": "30%", "position": "relative", "right": "-60px"});
366
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({"width": "70%"});
367
+ $("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left": "0px"});
368
+ }
369
+ if (wpcomm >= 470 && wpcomm < 510) {
370
+ $("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "center 0", "-webkit-transform-origin": "center 0", "transform": "scale(0.77)", "-webkit-transform": "scale(0.77)"});
371
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin": "right 0", "-webkit-transform-origin": "right 0", "transform": "scale(0.77)", "-webkit-transform": "scale(0.77)"});
372
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({"width": "40%"});
373
+ $("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({"width": "60%"});
374
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({"float": "none", "width": "100%", "display": "block"});
375
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({"float": "none", "width": "100%", "display": "block"});
376
+ $("#wpdcom .wpd_main_comm_form .wc-form-footer").css({"margin-left": "0px"});
377
+ $("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left": "0px"});
378
+ }
379
+ if (wpcomm < 470) {
380
+ $("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"margin": "0px auto", "transform-origin": "center 0", "-webkit-transform-origin": "center 0"});
381
+ $("#wpdcom .wpd-form-col-left").css({"float": "none", "width": "100%", "display": "block"});
382
+ $("#wpdcom .wpd-form-col-right").css({"float": "none", "width": "100%", "display": "block"});
383
+ $("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left": "0px"});
384
+ $("#wpdcom .wpd-secondary-form-wrapper .wc_notification_checkboxes").css({"text-align": "center"});
385
+ $("#wpdcom .wpd-secondary-form-wrapper .wc-field-submit").css({"text-align": "center"});
386
+ }
387
  }
 
388
  }
389
+
390
+ //============================== /reCAPTCHA ============================== //
391
  //============================== ADD COMMENT FUNCTION ============================== //
392
 
393
+ $(document).delegate('.wc_comm_submit.wpd_not_clicked', 'click', function () {
394
  var currentSubmitBtn = $(this);
395
  var depth = 1;
396
  var wcForm = $(this).parents('form');
397
+ if (!wcForm.hasClass('wpd_main_comm_form')) {
398
+ depth = getCommentDepth($(this).parents('.wpd-comment'));
399
  }
400
 
401
+ wpdValidateFieldRequired(wcForm, '#wpd-editor-' + $('.wpdiscuz_unique_id', wcForm).val());
402
+ wcForm.submit(function (e) {
403
+ e.preventDefault();
 
404
  });
405
+ if ($('.wc_comment', wcForm).val().trim() === '' || $('.wc_comment', wcForm).val().trim() === '&nbsp;') {
406
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.wc_msg_required_fields, 'error');
407
+ return;
408
+ }
409
+ if (wcForm[0].checkValidity() && wpdReCaptchaValidate(wcForm)) {
410
+ addingComment = true;
411
  addAgreementInCookie(wcForm);
412
+ $(currentSubmitBtn).removeClass('wpd_not_clicked');
413
  var data = new FormData();
414
  data.append('action', 'wpdAddComment');
 
415
  var inputs = $(":input", wcForm);
416
  inputs.each(function () {
417
  if (this.name != '' && this.type != 'checkbox' && this.type != 'radio') {
418
+ data.append(this.name + '', $(this).val().trim());
419
  }
420
  if (this.type == 'checkbox' || this.type == 'radio') {
421
  if ($(this).is(':checked')) {
424
  }
425
  });
426
 
427
+ data.append('wpd_comment_depth', depth);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
428
 
429
+ if (wpdiscuzAjaxObj.wpdiscuz_zs) {
430
+ data.append('wpdiscuz_zs', wpdiscuzAjaxObj.wpdiscuz_zs);
431
  }
432
 
433
  if ($('.wpd-cookies-checkbox', wcForm).length && !$('.wpd-cookies-checkbox', wcForm).prop("checked")) {
434
  wpdCookiesConsent = false;
435
  }
436
+ $('#wpdiscuz-loading-bar').show();
437
+ if (wpdiscuzAjaxObj.wpDiscuzReCaptchaSK && wpdiscuzRecaptchaVersion === '3.0' && ((wpdiscuzAjaxObj.wc_captcha_show_for_guest == 1 && !wpdiscuzAjaxObj.is_user_logged_in) || (wpdiscuzAjaxObj.wc_captcha_show_for_members == 1 && wpdiscuzAjaxObj.is_user_logged_in))) {
 
 
 
 
438
  try {
439
+ grecaptcha.ready(function () {
440
+ grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK, {action: 'wpdiscuz/addComment'})
441
+ .then(function (token) {
442
+ data.append('g-recaptcha-response', token);
443
+ wpdiscuzSendComment(wcForm, data, currentSubmitBtn);
444
+ }, function (reason) {
445
+ wpdiscuzAjaxObj.setCommentMessage('reCaptcha Error', 'error');
446
+ console.log(reason);
447
+ });
448
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  } catch (e) {
450
+ console.log(e);
451
+ wpdiscuzAjaxObj.setCommentMessage('reCaptcha Error: ' + e.message, 'error');
452
+ $('#wpdiscuz-loading-bar').fadeOut(250);
 
 
 
453
  }
454
+ } else {
455
+ wpdiscuzSendComment(wcForm, data, currentSubmitBtn);
456
+ }
457
+
458
  }
459
+ resetReCaptcha($('.wpdiscuz_unique_id', wcForm).val());
460
  wpdiscuzReset();
461
  });
462
 
463
+ function wpdiscuzSendComment(wcForm, data, currentSubmitBtn) {
464
+ getAjaxObj(isNativeAjaxEnabled || wpdiscuzUploader, false, data)
465
+ .done(function (r) {
466
+ $(currentSubmitBtn).addClass('wpd_not_clicked');
467
+ if (typeof r === 'object') {
468
+ if (r.success) {
469
+ if (wpdiscuzAjaxObj.commentFormView === "collapsed") {
470
+ $('.wpd-form-foot', wcForm).slideUp(enableDropAnimation);
471
+ }
472
+ $('.wpd-thread-info').html(r.data.wc_all_comments_count_new_html);
473
+ r.data.wc_all_comments_count_new = parseInt(r.data.wc_all_comments_count_new);
474
+ $('#wpd-bubble-all-comments-count').text(r.data.wc_all_comments_count_new);
475
+ if (r.data.wc_all_comments_count_new) {
476
+ $('#wpd-bubble-all-comments-count').show();
477
+ } else {
478
+ $('#wpd-bubble-all-comments-count').hide();
479
+ }
480
+ var animateDelay = enableDropAnimation;
481
+ if (r.data.is_main) {
482
+ addCommentsAfterSticky(r.data.message);
483
+ } else {
484
+ animateDelay = enableDropAnimation + 700;
485
+ $('#wpd-secondary-form-wrapper-' + r.data.uniqueid).slideToggle(700);
486
+ if (r.data.is_in_same_container == 1) {
487
+ $('#wpd-secondary-form-wrapper-' + r.data.uniqueid).after(r.data.message);
488
+ } else {
489
+ $('#wpd-comm-' + r.data.uniqueid).after(r.data.message);
490
+ }
491
+ }
492
+ notifySubscribers(r);
493
+ wpdiscuzRedirect(r);
494
+ if (isCookiesEnabled && wpdCookiesConsent) {
495
+ addCookie(r.data);
496
+ } else if (!wpdCookiesConsent) {
497
+ $('.wpd-cookies-checkbox').removeAttr('checked');
498
+ }
499
+ if (wpdiscuzLoadRichEditor) {
500
+ wpDiscuzEditor.createEditor('#wpd-editor-' + $('.wpdiscuz_unique_id', wcForm).val()).setContents([{insert: '\n'}]);
501
+ }
502
+ wcForm.get(0).reset();
503
+ setCookieInForm(r.data);
504
+ $('.wmu-preview-wrap', wcForm).remove();
505
+ deleteAgreementFields();
506
+ if (parseInt(wpdiscuzAjaxObj.scrollToComment)) {
507
+ setTimeout(function () {
508
+ $('html, body').animate({
509
+ scrollTop: $('#comment-' + r.data.new_comment_id).offset().top - 32
510
+ }, 1000);
511
+ }, animateDelay);
512
+ }
513
+ runCallbacks(r, wcForm);
514
+ } else if (r.data) {
515
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
516
+ runCallbacks(r, wcForm);
517
+ }
518
+ } else {
519
+ wpdiscuzAjaxObj.setCommentMessage(r, 'error');
520
+ }
521
+ $('#wpdiscuz-loading-bar').fadeOut(250);
522
+ addingComment = false;
523
+ })
524
+ .fail(function (jqXHR, textStatus, errorThrown) {
525
+ console.log(errorThrown);
526
+ $(currentSubmitBtn).addClass('wpd_not_clicked');
527
+ $('#wpdiscuz-loading-bar').fadeOut(250);
528
+ });
529
+ }
530
+
531
  function notifySubscribers(r) {
532
+ if (!r.data.held_moderate) {
533
  var data = new FormData();
534
  data.append('action', 'wpdCheckNotificationType');
535
+ data.append('comment_id', r.data.new_comment_id);
536
+ data.append('email', r.data.comment_author_email);
537
+ data.append('isParent', r.data.is_main);
538
+ getAjaxObj(isNativeAjaxEnabled, true, data);
 
 
 
 
 
 
 
539
  }
540
  }
541
 
542
  function wpdiscuzRedirect(r) {
543
+ if (r.data.redirect > 0 && r.data.new_comment_id) {
544
  var data = new FormData();
545
  data.append('action', 'wpdRedirect');
546
+ data.append('commentId', r.data.new_comment_id);
547
+ getAjaxObj(isNativeAjaxEnabled, true, data)
548
+ .done(function (r) {
549
+ if (typeof r === 'object') {
550
+ if (r.success) {
551
+ setTimeout(function () {
552
+ location.href = r.data;
553
+ }, 2000);
554
+ }
555
+ }
556
+ })
557
+ .fail(function (jqXHR, textStatus, errorThrown) {
558
+ console.log(errorThrown);
559
+ });
560
  }
561
  }
562
 
563
  function setCookieInForm(obj) {
564
+ $('.wpd_comm_form .wc_name').val(obj.comment_author);
565
+ if (obj.comment_author_email && obj.comment_author_email.indexOf('@example.com') < 0) {
566
+ $('.wpd_comm_form .wc_email').val(obj.comment_author_email);
567
  }
568
  if (obj.comment_author_url) {
569
+ $('.wpd_comm_form .wc_website').val(obj.comment_author_url);
570
  }
571
  }
572
 
573
+ function addCookie(obj) {
574
  var email = obj.comment_author_email;
575
  var name = obj.comment_author;
576
  var weburl = obj.comment_author_url;
592
  $('.wpd-cookies-checkbox').attr('checked', 'checked');
593
  }
594
  }
595
+ //============================== /ADD COMMENT FUNCTION ============================== //
596
  //============================== EDIT COMMENT FUNCTION ============================== //
597
  var wcCommentTextBeforeEditing;
598
 
599
+ $(document).delegate('.wpd_editable_comment', 'click', function () {
600
  if (wcCommentTextBeforeEditing && $('.wpdiscuz-edit-form-wrap').length) {
601
+ wpdCancelOrSave(getUniqueID($('.wpdiscuz-edit-form-wrap'), 0), wcCommentTextBeforeEditing);
602
  }
603
  var uniqueID = getUniqueID($(this), 0);
604
  var commentID = getCommentID(uniqueID);
 
605
  var data = new FormData();
606
  data.append('action', 'wpdEditComment');
607
  data.append('commentId', commentID);
608
+ wcCommentTextBeforeEditing = $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-text').get(0);
609
+ getAjaxObj(isNativeAjaxEnabled, true, data)
610
+ .done(function (r) {
611
+ if (typeof r === 'object') {
612
+ if (r.success) {
613
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text').replaceWith(r.data.html);
614
+ if (wpdiscuzLoadRichEditor) {
615
+ let currentEditor = wpDiscuzEditor.createEditor('#wpd-editor-edit_' + uniqueID);
616
+ currentEditor.clipboard.dangerouslyPasteHTML(0, r.data.content);
617
+ currentEditor.update();
618
+ $('.wpd-toolbar-hidden').prev('[id^=wpd-editor-]').css('border-bottom', "1px solid #dddddd");
619
+ } else {
620
+ $('#wc-textarea-edit_' + uniqueID).val(r.data.content);
621
+ }
622
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment').hide();
623
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-last-edited').hide();
624
+ } else {
625
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
626
+ }
627
+ } else {
628
+ console.log(r);
629
+ }
630
+ $('#wpdiscuz-loading-bar').fadeOut(250);
631
+ })
632
+ .fail(function (jqXHR, textStatus, errorThrown) {
633
+ console.log(errorThrown);
634
+ $('#wpdiscuz-loading-bar').fadeOut(250);
635
+ });
636
  });
637
 
638
  $(document).delegate('.wc_save_edited_comment', 'click', function () {
639
  var uniqueID = getUniqueID($(this));
640
  var commentID = getCommentID(uniqueID);
641
+ var editCommentForm = $('#wpd-comm-' + uniqueID + ' #wpdiscuz-edit-form');
642
+ wpdValidateFieldRequired(editCommentForm, '#wpd-editor-edit_' + uniqueID);
643
+ editCommentForm.submit(function (e) {
644
+ e.preventDefault();
 
645
  });
646
 
647
  if (editCommentForm[0].checkValidity()) {
648
  var data = new FormData();
649
  data.append('action', 'wpdSaveEditedComment');
 
650
  data.append('commentId', commentID);
651
  var inputs = $(":input", editCommentForm);
652
  inputs.each(function () {
653
+ if (this.name !== '' && this.type !== 'checkbox' && this.type !== 'radio') {
654
  data.append(this.name + '', $(this).val());
655
  }
656
+ if (this.type === 'checkbox' || this.type === 'radio') {
657
  if ($(this).is(':checked')) {
658
  data.append(this.name + '', $(this).val());
659
  }
660
  }
661
  });
662
 
663
+ getAjaxObj(isNativeAjaxEnabled, true, data)
664
+ .done(function (r) {
665
+ if (typeof r === 'object') {
666
+ if (r.success) {
667
+ wpdCancelOrSave(uniqueID, r.data.message);
668
+ if (r.data.lastEdited) {
669
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-last-edited').remove();
670
+ $(r.data.lastEdited).insertAfter('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text');
671
+ }
672
+ if (r.data.twitterShareLink) {
673
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_tw').attr('href', r.data.twitterShareLink);
674
+ }
675
+ if (r.data.whatsappShareLink) {
676
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_whatsapp').attr('href', r.data.whatsappShareLink);
677
+ }
678
+ if (wpdiscuzLoadRichEditor) {
679
+ wpDiscuzEditor.removeEditor('#wpd-editor-edit_' + uniqueID);
680
+ }
681
+ } else {
682
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
683
+ }
684
+ runCallbacks(r, commentID);
685
+ } else {
686
+ console.log(r);
687
  }
688
+ $('#wpdiscuz-loading-bar').fadeOut(250);
689
+ })
690
+ .fail(function (jqXHR, textStatus, errorThrown) {
691
+ console.log(errorThrown);
692
+ $('#wpdiscuz-loading-bar').fadeOut(250);
693
+ });
 
 
 
 
 
 
 
 
 
694
  }
695
  });
696
 
697
  $(document).delegate('.wc_cancel_edit', 'click', function () {
698
  var uniqueID = getUniqueID($(this));
699
+ wpdCancelOrSave(uniqueID, wcCommentTextBeforeEditing);
700
+ if (wpdiscuzLoadRichEditor) {
701
+ wpDiscuzEditor.removeEditor('#wpd-editor-edit_' + uniqueID);
702
+ }
703
  });
704
 
705
+ function wpdCancelOrSave(uniqueID, content) {
706
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment').show();
707
+ $('#wpd-comm-' + uniqueID + ' .wpdiscuz-edit-form-wrap').replaceWith(content);
708
+ $('#wpd-comm-' + uniqueID + ' > .wpd-comment-wrap .wpd-comment-last-edited').show();
709
  }
710
 
711
+ //============================== /EDIT COMMENT FUNCTION ============================== //
 
 
 
 
 
712
  //============================== LOAD MORE ============================== //
713
+ if (!wpdiscuzAjaxObj.wordpressIsPaginate && firstLoadWithAjax) {
714
+ wpdiscuzLoadCount = 0;
715
+ if (firstLoadWithAjax == 1) {
716
+ setTimeout(function () {
717
+ wpdiscuzLoadComments(true);
718
+ }, 500);
719
+ } else {
720
+ $(document).delegate('.wpd-load-comments', 'click', function () {
721
+ $(this).parent('.wpd-load-more-submit-wrap').remove();
722
+ wpdiscuzLoadComments(true);
723
+ });
724
+ }
725
+ }
726
+
727
+ $(document).delegate('.wpd-load-more-submit', 'click', function () {
728
  var loadButton = $(this);
729
+ var loaded = 'wpd-loaded';
730
+ var loading = 'wpd-loading';
731
  if (loadButton.hasClass(loaded)) {
732
+ wpdiscuzLoadComments(false, loadButton, loaded, loading);
733
  }
734
  });
735
 
736
  var isRun = false;
737
+ if (commentListLoadType === 2 && !wpdiscuzAjaxObj.wordpressIsPaginate) {
738
+ $('.wpd-load-more-submit').parents('.wpdiscuz-comment-pagination').hide();
739
  wpdiscuzScrollEvents();
740
  $(window).scroll(function () {
741
  wpdiscuzScrollEvents();
750
  var scrollPercent = scrollPosition * 100 / scrollHeight;
751
  if (scrollPercent >= 80 && isRun === false && wpdiscuzHasMoreComments == 1) {
752
  isRun = true;
753
+ wpdiscuzLoadComments(false, $('.wpd-load-more-submit'));
754
  }
755
  }
756
  }
757
 
758
+ function wpdiscuzLoadComments(isFirstLoad, loadButton, loaded, loading) {
759
+ if (loadButton) {
760
+ loadButton.toggleClass(loaded);
761
+ loadButton.toggleClass(loading);
762
+ }
763
  var data = new FormData();
764
  data.append('action', 'wpdLoadMoreComments');
765
+ var sorting = $('.wpdiscuz-sort-button-active').attr('data-sorting');
766
+ if (sorting) {
767
+ data.append('sorting', sorting);
768
+ }
769
  data.append('offset', wpdiscuzLoadCount);
 
 
770
  data.append('lastParentId', getLastParentID());
771
+ data.append('isFirstLoad', isFirstLoad ? 1 : 0);
772
+ var filterType = $('.wpdf-active').attr('data-filter-type');
773
+ data.append('wpdType', filterType ? filterType : '');
774
+ getAjaxObj(isNativeAjaxEnabled, isFirstLoad && firstLoadWithAjax == 1 ? false : true, data)
775
+ .done(function (r) {
776
+ if (typeof r === 'object') {
777
+ if (r.success) {
778
+ wpdiscuzLoadCount++;
779
+ if (isFirstLoad) {
780
+ $('.wpd-comment').remove();
781
+ }
782
+ $('.wpdiscuz_single').remove();
783
+ $('.wpdiscuz-comment-pagination').before(r.data.comment_list);
784
+ setLoadMoreVisibility(r, isFirstLoad && commentListLoadType !== 2);
785
+ isRun = false;
786
+ loadLastCommentId = r.data.loadLastCommentId;
787
+ runCallbacks(r);
788
+ if (isFirstLoad) {
789
+ getSingleComment(false);
790
+ }
791
+ }
792
+ }
793
+ $('#wpdiscuz-loading-bar').fadeOut(250);
794
+ $('.wpd-load-more-submit').blur();
795
+ if (loadButton) {
796
+ loadButton.toggleClass(loaded);
797
+ loadButton.toggleClass(loading);
798
+ }
799
+ })
800
+ .fail(function (jqXHR, textStatus, errorThrown) {
801
+ console.log(errorThrown);
802
+ $('#wpdiscuz-loading-bar').fadeOut(250);
803
+ $('.wpd-load-more-submit').blur();
804
+ if (loadButton) {
805
+ loadButton.toggleClass(loaded);
806
+ loadButton.toggleClass(loading);
807
+ }
808
+ });
809
  }
810
 
811
+ function setLoadMoreVisibility(r, showPagination) {
812
+ if (r.data.is_show_load_more == false) {
813
  $('#wpdiscuzHasMoreComments').val(0);
814
+ $('.wpd-load-more-submit').parents('.wpdiscuz-comment-pagination').hide();
815
  } else {
816
+ setLastParentID(r.data.last_parent_id);
817
  $('#wpdiscuzHasMoreComments').val(1);
818
+ if (showPagination) {
819
+ $('.wpd-load-more-submit').parents('.wpdiscuz-comment-pagination').show();
820
+ }
821
  }
822
 
823
  runCallbacks(r);
824
  }
825
+ wpdiscuzAjaxObj.setLoadMoreVisibility = setLoadMoreVisibility;
826
+ //============================== /LOAD MORE ============================== //
827
  //============================== VOTE ============================== //
828
+ $(document).delegate('.wpd-vote-up.wpd_not_clicked, .wpd-vote-down.wpd_not_clicked', 'click', function () {
829
  var currentVoteBtn = $(this);
830
+ $(currentVoteBtn).removeClass('wpd_not_clicked');
831
+ var uniqueId = getUniqueID(currentVoteBtn);
832
+ var commentID = getCommentID(uniqueId);
 
 
833
  var voteType;
834
+ if ($(this).hasClass('wpd-vote-up')) {
835
  voteType = 1;
836
  } else {
837
  voteType = -1;
841
  data.append('action', 'wpdVoteOnComment');
842
  data.append('commentId', commentID);
843
  data.append('voteType', voteType);
844
+ getAjaxObj(isNativeAjaxEnabled, true, data)
845
+ .done(function (r) {
846
+ $(currentVoteBtn).addClass('wpd_not_clicked');
847
+ if (typeof r === 'object') {
848
+ if (r.success) {
849
+ if (r.data.buttonsStyle === 'total') {
850
+ var voteCountDiv = $('.wpd-comment-footer .wpd-vote-result', $('#comment-' + commentID));
851
+ var votes = r.data.votes;
852
+ voteCountDiv.text(votes);
853
+ voteCountDiv.removeClass('wpd-up wpd-down');
854
+ if (votes > 0) {
855
+ voteCountDiv.addClass('wpd-up');
856
+ }
857
+ if (votes < 0) {
858
+ voteCountDiv.addClass('wpd-down');
859
+ }
860
+ } else {
861
+ var likeCountDiv = $('.wpd-comment-footer .wpd-vote-result-like', $('#comment-' + commentID));
862
+ var dislikeCountDiv = $('.wpd-comment-footer .wpd-vote-result-dislike', $('#comment-' + commentID));
863
+ likeCountDiv.text(r.data.likeCount);
864
+ dislikeCountDiv.text(r.data.dislikeCount);
865
+ parseInt(r.data.likeCount) > 0 ? likeCountDiv.addClass('wpd-up') : likeCountDiv.removeClass('wpd-up');
866
+ parseInt(r.data.dislikeCount) < 0 ? dislikeCountDiv.addClass('wpd-down') : dislikeCountDiv.removeClass('wpd-down');
867
+ }
868
+ var voteUpDiv = $('.wpd-comment-footer .wpd-vote-up', $('#comment-' + commentID));
869
+ var voteDownDiv = $('.wpd-comment-footer .wpd-vote-down', $('#comment-' + commentID));
870
+ voteUpDiv.removeClass('wpd-up');
871
+ voteDownDiv.removeClass('wpd-down');
872
+ if (r.data.curUserReaction > 0) {
873
+ voteUpDiv.addClass('wpd-up');
874
+ } else if (r.data.curUserReaction < 0) {
875
+ voteDownDiv.addClass('wpd-down');
876
+ }
877
+ } else if (r.data) {
878
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
879
+ }
880
+ runCallbacks(r, commentID, voteType);
881
  } else {
882
+ console.log(r);
 
 
 
 
 
883
  }
884
+ $('#wpdiscuz-loading-bar').fadeOut(250);
885
+ })
886
+ .fail(function (jqXHR, textStatus, errorThrown) {
887
+ console.log(errorThrown);
888
+ $(currentVoteBtn).addClass('wpd_not_clicked');
889
+ $('#wpdiscuz-loading-bar').fadeOut(250);
890
+ });
 
 
 
891
  });
892
+ //============================== /VOTE ============================== //
893
  //============================== SORTING ============================== //
894
+ $(document).delegate('body', 'click', function (e) {
895
+ var children = $('.wpdiscuz-sort-buttons');
896
+ if ($(e.target).hasClass('wpdf-sorting') || $(e.target).parent().hasClass('wpdf-sorting')) {
897
+ children.css({display: children.is(':visible') ? 'none' : 'flex'});
898
+ } else {
899
+ children.hide();
900
+ }
901
+ });
902
+ $(document).delegate('.wpdiscuz-sort-button:not(.wpdiscuz-sort-button-active)', 'click', function () {
903
+ var clickedBtn = $(this);
904
+ var sorting = $(this).attr("data-sorting");
905
+ if (sorting) {
906
+ $('.wpdiscuz-sort-button.wpdiscuz-sort-button-active').removeClass('wpdiscuz-sort-button-active').appendTo('.wpdiscuz-sort-buttons');
907
+ clickedBtn.addClass('wpdiscuz-sort-button-active').prependTo('.wpdf-sorting');
908
  var data = new FormData();
909
  data.append('action', 'wpdSorting');
910
+ data.append('sorting', sorting);
911
+ var filterType = $('.wpdf-active').attr('data-filter-type');
912
+ data.append('wpdType', filterType ? filterType : '');
913
+ getAjaxObj(isNativeAjaxEnabled, true, data)
914
+ .done(function (r) {
915
+ if (typeof r === 'object') {
916
+ if (r.success) {
917
+ $('#wpdcom .wpd-comment').remove();
918
+ $('#wpdcom .wpd-thread-list').prepend(r.data.message);
919
+ setLoadMoreVisibility(r, false);
920
+ wpdiscuzLoadCount = 1;
921
+ }
922
+ }
923
+ $('#wpdiscuz-loading-bar').fadeOut(250);
924
+ })
925
+ .fail(function (jqXHR, textStatus, errorThrown) {
926
+ console.log(errorThrown);
927
+ $('#wpdiscuz-loading-bar').fadeOut(250);
928
+ });
 
 
 
 
 
 
929
  }
930
  });
931
+ //============================== /SORTING ============================== //
 
 
 
 
 
 
 
 
932
  //============================== SINGLE COMMENT ============================== //
933
+ function getSingleComment(showReply) {
934
  var loc = location.href;
935
  var matches = loc.match(/#comment\-(\d+)/);
936
  if (matches !== null) {
939
  var data = new FormData();
940
  data.append('action', 'wpdGetSingleComment');
941
  data.append('commentId', commentId);
942
+ getAjaxObj(isNativeAjaxEnabled, true, data)
943
+ .done(function (r) {
944
+ if (typeof r === 'object') {
945
+ if (r.success) {
946
+ var scrollToSelector = '#comment-' + commentId;
947
+ if ($('#comment-' + r.data.parentCommentID).length) {
948
+ $('#comment-' + r.data.parentCommentID).parents('[id^=wpd-comm-' + r.data.parentCommentID + ']').replaceWith(r.data.message);
949
+ } else {
950
+ $('.wpd-thread-list').prepend(r.data.message);
951
+ }
952
+
953
+ runCallbacks(r);
954
+
955
+ $('html, body').animate({
956
+ scrollTop: $(scrollToSelector).offset().top - 32
957
+ }, 1000);
958
+ if (showReply) {
959
+ showReplyForm(commentId);
960
+ }
961
+ }
962
+ }
963
+ $('#wpdiscuz-loading-bar').fadeOut(250);
964
+ })
965
+ .fail(function (jqXHR, textStatus, errorThrown) {
966
+ console.log(errorThrown);
967
+ $('#wpdiscuz-loading-bar').fadeOut(250);
968
+ });
969
  } else {
970
+ setTimeout(function () {
971
+ $('html, body').animate({
972
+ scrollTop: $('#comment-' + commentId).parents('[id^=wpd-comm-]').offset().top - 32
973
+ }, 1000);
974
+ if (showReply) {
975
+ showReplyForm(commentId);
976
+ }
977
+ }, 500);
978
  }
979
  }
980
  }
981
+ window.onhashchange = function () {
982
+ getSingleComment(false);
983
+ };
984
+ if (firstLoadWithAjax != 1) {
985
+ getSingleComment(false);
986
  }
987
+ function showReplyForm(commentId) {
988
+ setTimeout(function () {
989
+ if (!$('#comment-' + commentId).siblings('.wpd-secondary-form-wrapper').is(':visible')) {
990
+ $('#comment-' + commentId).find('.wpd-reply-button').trigger('click');
991
+ }
992
+ }, 1100);
993
+ }
994
+ //============================== /SINGLE COMMENT ============================== //
995
+ //============================== LIVE UPDATE ============================== //
996
  function liveUpdate() {
 
 
997
  var data = new FormData();
998
  data.append('action', 'wpdUpdateAutomatically');
999
  data.append('loadLastCommentId', loadLastCommentId);
1000
+ data.append('visibleCommentIds', getVisibleCommentIds());
1001
+ getAjaxObj(isNativeAjaxEnabled, false, data)
1002
+ .done(function (r) {
1003
+ if (!addingComment) {
1004
+ if (typeof r === 'object') {
1005
+ if (r.success) {
1006
+ liveUpdateImmediately(r);
1007
+ $('.wpd-thread-info').html(r.data.wc_all_comments_count_new_html);
1008
+ r.data.wc_all_comments_count_new = parseInt(r.data.wc_all_comments_count_new);
1009
+ $('#wpd-bubble-all-comments-count').text(r.data.wc_all_comments_count_new);
1010
+ if (r.data.wc_all_comments_count_new) {
1011
+ $('#wpd-bubble-all-comments-count').show();
1012
+ } else {
1013
+ $('#wpd-bubble-all-comments-count').hide();
1014
+ }
1015
+ loadLastCommentId = r.data.loadLastCommentId;
1016
+ }
 
 
 
 
 
 
 
 
 
 
1017
  }
1018
  }
1019
+ })
1020
+ .fail(function (jqXHR, textStatus, errorThrown) {
1021
+ console.log(errorThrown);
1022
+ });
 
 
 
 
1023
  }
1024
 
1025
  function liveUpdateImmediately(r) {
1026
+ if (r.data.message !== undefined) {
1027
  var commentObject;
1028
+ var message = r.data.message;
1029
  for (var i = 0; i < message.length; i++) {
1030
  commentObject = message[i];
1031
  addCommentToTree(commentObject.comment_parent, commentObject.comment_html);
1032
  }
1033
  }
1034
  }
1035
+ //============================== /LIVE UPDATE ============================== //
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1036
  //============================== READ MORE ============================== //
1037
  $(document).delegate('.wpdiscuz-readmore', 'click', function () {
1038
  var uniqueId = getUniqueID($(this));
1040
  var data = new FormData();
1041
  data.append('action', 'wpdReadMore');
1042
  data.append('commentId', commentId);
1043
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1044
+ .done(function (r) {
1045
+ if (typeof r === 'object') {
1046
+ if (r.success) {
1047
+ $('#comment-' + commentId + ' .wpd-comment-text').html(' ' + r.data.message);
1048
+ $('#wpdiscuz-readmore-' + uniqueId).remove();
1049
+ } else {
1050
+ console.log(r.data);
1051
+ }
1052
+ runCallbacks(r);
1053
+ } else {
1054
+ console.log(r);
1055
+ }
1056
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1057
+ })
1058
+ .fail(function (jqXHR, textStatus, errorThrown) {
1059
+ console.log(errorThrown);
1060
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1061
+ });
1062
  });
1063
+ //============================== /READ MORE ============================== //
 
1064
  //============================== FUNCTIONS ============================== //
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1065
 
1066
  function cloneSecondaryForm(field) {
1067
  var uniqueId = getUniqueID(field, 0);
1068
  $('#wpdiscuz_form_anchor-' + uniqueId).before(replaceUniqueId(uniqueId));
1069
+ var secondaryFormWrapper = $('#wpd-secondary-form-wrapper-' + uniqueId);
1070
+ if (!isUserLoggedIn) {
1071
+ var commentAuthorCookies = {
1072
+ comment_author: Cookies.get('comment_author_' + wpdiscuzCookiehash),
1073
+ comment_author_email: Cookies.get('comment_author_email_' + wpdiscuzCookiehash),
1074
+ comment_author_url: Cookies.get('comment_author_url_' + wpdiscuzCookiehash)
1075
+ };
1076
+ setCookieInForm(commentAuthorCookies);
1077
+ }
1078
+ if (wpdiscuzLoadRichEditor) {
1079
+ setTimeout(function () {
1080
+ wpDiscuzEditor.createEditor('#wpd-editor-' + uniqueId).focus();
1081
+ }, enableDropAnimation);
1082
+ } else {
1083
+ setTimeout(function () {
1084
+ $('#wc-textarea-' + uniqueId).trigger('focus');
1085
+ }, enableDropAnimation);
1086
+ }
1087
  secondaryFormWrapper.slideToggle(enableDropAnimation, function () {
1088
  field.addClass('wpdiscuz-clonned');
1089
  });
 
1090
  }
1091
 
1092
  function replaceUniqueId(uniqueId) {
1097
  function getUniqueID(field, isMain) {
1098
  var fieldID = '';
1099
  if (isMain) {
1100
+ fieldID = field.parents('.wpd-main-form-wrapper').attr('id');
1101
  } else {
1102
+ fieldID = field.parents('.wpd-comment').attr('id');
1103
  }
1104
  var uniqueID = fieldID.substring(fieldID.lastIndexOf('-') + 1);
1105
  return uniqueID;
1110
  }
1111
 
1112
  function getLastParentID() {
1113
+ return $('.wpd-load-more-submit').attr("data-lastparentid");
1114
  }
1115
 
1116
  function setLastParentID(lastParentID) {
1117
+ $('.wpd-load-more-submit').attr("data-lastparentid", lastParentID);
1118
+ if (commentListLoadType !== 2) {
1119
  $('.wpdiscuz-comment-pagination').show();
1120
  }
1121
  }
1122
 
 
1123
  function getCommentDepth(field) {
1124
  var fieldClasses = field.attr('class');
1125
  var classesArray = fieldClasses.split(' ');
1126
  var depth = '';
1127
  $.each(classesArray, function (index, value) {
1128
+ if ('wpd_comment_level' === getParentDepth(value, false)) {
1129
  depth = getParentDepth(value, true);
1130
  }
1131
  });
1155
  var uniqueId;
1156
  var commentId;
1157
  var visibleCommentIds = '';
1158
+ $('.wpd-comment-right').each(function () {
1159
  uniqueId = getUniqueID($(this), 0);
1160
  commentId = getCommentID(uniqueId);
1161
  visibleCommentIds += commentId + ',';
1165
 
1166
  function loginButtonsClone() {
1167
  if ($('.wc_social_plugin_wrapper .wp-social-login-provider-list').length) {
1168
+ $('.wc_social_plugin_wrapper .wp-social-login-provider-list').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content');
1169
  } else if ($('.wc_social_plugin_wrapper .the_champ_login_container').length) {
1170
+ $('.wc_social_plugin_wrapper .the_champ_login_container').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content');
1171
  } else if ($('.wc_social_plugin_wrapper .social_connect_form').length) {
1172
+ $('.wc_social_plugin_wrapper .social_connect_form').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content');
1173
  } else if ($('.wc_social_plugin_wrapper .oneall_social_login_providers').length) {
1174
+ $('.wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers').clone().prependTo('#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper > .wpd-secondary-forms-social-content');
1175
  }
1176
  }
1177
 
1179
  $('.wpdiscuz_reset').val("");
1180
  }
1181
 
1182
+ function wpdValidateFieldRequired(form, editorId) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
  var fieldsGroup = form.find('.wpd-required-group');
1184
+ if (wpdiscuzLoadRichEditor) {
1185
+ form.find('.wc_comment').val($(editorId + '>.ql-editor').html());
1186
+ }
1187
+ wpdSanitizeCommentText(form);
1188
  $.each(fieldsGroup, function () {
1189
  $('input', this).removeAttr('required');
1190
  var checkedFields = $('input:checked', this);
1194
  $('.wpd-field-invalid', this).remove();
1195
  }
1196
  });
1197
+ }
1198
 
1199
+ function wpdSanitizeCommentText(form) {
1200
+ var textarea = form.find('.wc_comment');
1201
+ var commentText = textarea.val().trim();
1202
+ var replacedText = commentText.replace(/<p><br><\/p>/g, "\n").replace(/<p>(.*?)<\/p>/g, "$1\n");
1203
+ replacedText = replacedText.replace(/<img src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g, "$3");
1204
+ replacedText = replacedText.replace(/<img[^>]+alt=["|']([^"|']+)["|'][^>]+src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'][^>]?>/g, "$1");
1205
+ replacedText = replacedText.replace(/<img\s+([^>]*)class=["|']wpdem\-sticker["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g, "$3");
1206
+ replacedText = replacedText.replace(/<img\s+([^>]*)src=["|']([^"|']+)["|'](.*?)[^>]*>/g, "$2");
1207
+ textarea.val(replacedText);
1208
  }
1209
 
1210
  $(document).delegate('.wpd-required-group', 'change', function () {
1226
  $(this).toggleClass('wpdiscuz-spoiler-closed');
1227
  });
1228
 
1229
+ function wpdiscuzShowReplies(uniqueId, btn) {
1230
  var commentId = getCommentID(uniqueId);
1231
  var data = new FormData();
1232
  data.append('action', 'wpdShowReplies');
1233
  data.append('commentId', commentId);
1234
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1235
+ .done(function (r) {
1236
+ btn.addClass('wpd_not_clicked');
1237
+ if (typeof r === 'object') {
1238
+ if (r.success) {
1239
+ $('#wpd-comm-' + uniqueId).replaceWith(r.data.comment_list);
1240
+ $('#wpd-comm-' + uniqueId + ' .wpd-toggle .fas').removeClass('fa-chevron-down').addClass('fa-chevron-up');
1241
+ $('#wpd-comm-' + uniqueId + ' .wpd-toggle').attr('wpd-tooltip', wpdiscuzAjaxObj.wc_hide_replies_text);
1242
+ $('#wpd-comm-' + uniqueId + ' .wpd-toggle .wpd-view-replies').remove();
1243
+
1244
+ runCallbacks(r);
1245
+ }
1246
+ }
1247
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1248
+ })
1249
+ .fail(function (jqXHR, textStatus, errorThrown) {
1250
+ console.log(errorThrown);
1251
+ btn.addClass('wpd_not_clicked');
1252
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1253
+ });
1254
  }
1255
 
1256
+ $(document).delegate('.wpd-tools i', 'click', function () {
1257
+ var sibling = $(this).siblings('.wpd-tools-actions');
1258
+ sibling.css({display: sibling.is(':visible') ? 'none' : 'flex'});
1259
+ });
1260
+ $(document).delegate('.wpd-comment-right', 'mouseleave', function () {
1261
+ $(this).find('.wpd-tools-actions').hide();
1262
+ });
1263
+
1264
+ $(document).delegate('.wpd_stick_btn', 'click', function () {
1265
+ var uniqueId = getUniqueID($(this), 0);
1266
  var commentId = getCommentID(uniqueId);
1267
  var data = new FormData();
1268
  data.append('action', 'wpdStickComment');
1269
  data.append('commentId', commentId);
1270
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1271
+ .done(function (r) {
1272
+ if (typeof r === 'object') {
1273
+ if (r.success) {
1274
+ location.reload(true);
1275
+ }
1276
+ }
1277
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1278
+ })
1279
+ .fail(function (jqXHR, textStatus, errorThrown) {
1280
+ console.log(errorThrown);
1281
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1282
+ });
 
 
 
 
1283
  });
1284
 
1285
+ $(document).delegate('.wpd_close_btn', 'click', function () {
1286
+ var uniqueId = getUniqueID($(this), 0);
 
1287
  var commentId = getCommentID(uniqueId);
1288
  var data = new FormData();
1289
  data.append('action', 'wpdCloseThread');
1290
  data.append('commentId', commentId);
1291
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1292
+ .done(function (r) {
1293
+ if (typeof r === 'object') {
1294
+ if (r.success) {
1295
+ location.reload(true);
1296
+ }
1297
+ }
1298
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1299
+ })
1300
+ .fail(function (jqXHR, textStatus, errorThrown) {
1301
+ console.log(errorThrown);
1302
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1303
+ });
 
 
 
 
 
 
 
 
 
 
1304
  });
1305
 
1306
+ $(document).delegate('.wpd-filter.wpd_not_clicked[data-filter-type]', 'click', function () {
1307
+ var btn = $(this);
1308
+ var type = btn.attr('data-filter-type');
1309
+ wpdiscuzAjaxObj.resetActiveFilters('.wpdf-' + type);
1310
+ btn.removeClass('wpd_not_clicked');
1311
+ $('.fas', btn).addClass('fa-pulse fa-spinner');
1312
+ var data = new FormData();
1313
+ data.append('action', 'wpdLoadMoreComments');
1314
+ var sorting = $('.wpdiscuz-sort-button-active').attr('data-sorting');
1315
+ if (sorting) {
1316
+ data.append('sorting', sorting);
1317
  }
1318
+ data.append('lastParentId', 0);
1319
+ data.append('offset', 0);
1320
+ wpdiscuzLoadCount = 1;
1321
+ data.append('wpdType', btn.hasClass('wpdf-active') ? '' : type);
1322
+ data.append('isFirstLoad', 1);
1323
+ if ($(this).hasClass('wpdf-inline')) {
1324
+ if ($(this).hasClass('wpdf-active')) {
1325
+ $('.wpd-comment-info-bar').hide();
1326
+ } else {
1327
+ $('.wpd-comment-info-bar').css('display', 'flex');
1328
+ }
1329
+ } else {
1330
+ $('.wpd-comment-info-bar').hide();
1331
+ }
1332
+ getAjaxObj(isNativeAjaxEnabled, false, data)
1333
+ .done(function (r) {
1334
+ btn.addClass('wpd_not_clicked');
1335
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1336
+ if (typeof r === 'object') {
1337
+ if (r.success) {
1338
+ btn.toggleClass('wpdf-active');
1339
+ $('.wpd-load-comments').remove();
1340
+ $('.wpd-comment').remove();
1341
+ $('.wpd-thread-list').prepend(r.data.comment_list);
1342
+ setLoadMoreVisibility(r);
1343
+ loadLastCommentId = r.data.loadLastCommentId;
1344
+ $('.wpd-load-more-submit').blur();
1345
+ runCallbacks(r);
1346
+ }
1347
+ }
1348
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1349
+ })
1350
+ .fail(function (jqXHR, textStatus, errorThrown) {
1351
+ console.log(errorThrown);
1352
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1353
+ });
1354
  });
1355
 
1356
+ $(document).delegate('.wpdf-reacted.wpd_not_clicked', 'click', function () {
1357
  var btn = $(this);
1358
+ btn.removeClass('wpd_not_clicked');
1359
  $('.fas', btn).addClass('fa-pulse fa-spinner');
1360
  var data = new FormData();
1361
  data.append('action', 'wpdMostReactedComment');
1362
+ getAjaxObj(isNativeAjaxEnabled, false, data)
1363
+ .done(function (r) {
1364
+ btn.addClass('wpd_not_clicked');
1365
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1366
+ if (typeof r === 'object') {
1367
+ if (r.success) {
1368
+ if ($('#comment-' + r.data.parentCommentID).length) {
1369
+ $('#comment-' + r.data.parentCommentID).parents('[id^=wpd-comm-' + r.data.parentCommentID + ']').replaceWith(r.data.message);
1370
+ } else if (!$('#comment-' + r.data.commentId).length) {
1371
+ $('.wpd-thread-list').prepend(r.data.message);
1372
+ }
 
 
 
 
 
 
 
1373
 
1374
+ runCallbacks(r);
1375
+ $('html, body').animate({
1376
+ scrollTop: $('#comment-' + r.data.commentId).offset().top - 32
1377
+ }, 1000);
1378
+ }
1379
+ }
1380
+ })
1381
+ .fail(function (jqXHR, textStatus, errorThrown) {
1382
+ console.log(errorThrown);
1383
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1384
+ });
1385
  });
1386
 
1387
+ $(document).delegate('.wpdf-hottest.wpd_not_clicked', 'click', function () {
 
1388
  var btn = $(this);
1389
+ btn.removeClass('wpd_not_clicked');
1390
+ $('.fas', btn).addClass('fa-pulse fa-spinner');
1391
  var data = new FormData();
1392
  data.append('action', 'wpdHottestThread');
1393
+ getAjaxObj(isNativeAjaxEnabled, false, data)
1394
+ .done(function (r) {
1395
+ btn.addClass('wpd_not_clicked');
1396
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1397
+ if (typeof r === 'object') {
1398
+ if (r.success) {
1399
+ if ($('#comment-' + r.data.commentId).length) {
1400
+ $('#comment-' + r.data.commentId).parents('[id^=wpd-comm-' + r.data.commentId + ']').replaceWith(r.data.message);
1401
+ } else {
1402
+ $('.wpd-thread-list').prepend(r.data.message);
1403
+ }
 
 
1404
 
1405
+ runCallbacks(r);
 
 
 
 
 
1406
 
1407
+ $('html, body').animate({
1408
+ scrollTop: $('#comment-' + r.data.commentId).offset().top - 32
1409
+ }, 1000);
1410
+ }
1411
+ }
1412
+ })
1413
+ .fail(function (jqXHR, textStatus, errorThrown) {
1414
+ console.log(errorThrown);
1415
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1416
+ });
1417
+ });
1418
 
1419
+ $(document).delegate('.wpd-filter-view-all', 'click', function () {
1420
+ $('.wpdf-inline.wpdf-active.wpd_not_clicked').trigger('click');
 
 
 
 
 
 
 
1421
  });
1422
 
1423
+
1424
  function addAgreementInCookie(wcForm) {
1425
  $('.wpd-agreement-checkbox', wcForm).each(function () {
1426
  if ($(this).hasClass('wpd_agreement_hide') && isCookiesEnabled && $(this).prop('checked')) {
1441
  }
1442
  }
1443
 
1444
+ $(document).delegate('.wpd-follow-link.wpd_not_clicked', 'click', function () {
1445
  var btn = $(this);
1446
+ btn.removeClass('wpd_not_clicked');
1447
  $('.fas', btn).addClass('fa-pulse fa-spinner');
1448
  var uniqueId = getUniqueID(btn, 0);
1449
  var commentId = getCommentID(uniqueId);
1450
  var data = new FormData();
1451
  data.append('action', 'wpdFollowUser');
1452
  data.append('commentId', commentId);
1453
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1454
+ .done(function (r) {
1455
+ btn.addClass('wpd_not_clicked');
1456
+ if (typeof r === 'object') {
1457
+ if (r.success) {
1458
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data.code], 'success');
1459
+ btn.removeClass('wpd-follow-active');
1460
+ if (r.data.followTip) {
1461
+ btn.attr('wpd-tooltip', r.data.followTip)
1462
+ }
1463
+ if (r.data.followClass) {
1464
+ btn.addClass(r.data.followClass);
1465
+ }
1466
+ } else {
1467
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
 
1468
  }
1469
+ } else {
1470
+ console.log(r);
1471
  }
1472
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1473
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1474
+ })
1475
+ .fail(function (jqXHR, textStatus, errorThrown) {
1476
+ console.log(errorThrown);
1477
+ $('.fas', btn).removeClass('fa-pulse fa-spinner');
1478
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1479
+ });
1480
  });
1481
 
1482
  function addCommentsAfterSticky(comment) {
1483
+ if ($('.wpd-sticky-comment').last()[0]) {
1484
+ $(comment).insertAfter($('.wpd-sticky-comment').last()[0]);
1485
  } else {
1486
+ $('.wpd-thread-list').prepend(comment);
1487
  }
1488
  }
1489
 
1515
  showHideNotificationType($(this));
1516
  });
1517
 
1518
+ //========================= BUBBLE =====================//
1519
+ if (bubbleEnabled && $('#wpdcom').length) {
1520
+ $('#wpd-bubble-wrapper').hover(function () {
1521
+ $(this).addClass('wpd-bubble-hover');
1522
+ }, function () {
1523
+ $(this).removeClass('wpd-bubble-hover');
1524
+ });
1525
+ if (bubbleHintTimeout && !Cookies.get(wpdiscuzAjaxObj.cookieHideBubbleHint)) {
1526
+ setTimeout(function () {
1527
+ $('#wpd-bubble-wrapper').addClass('wpd-bubble-hover');
1528
+ Cookies.set(wpdiscuzAjaxObj.cookieHideBubbleHint, '1', {expires: 7, path: '/'});
1529
+ setTimeout(function () {
1530
+ $('#wpd-bubble-wrapper').removeClass('wpd-bubble-hover');
1531
+ }, bubbleHintHideTimeout * 1000);
1532
+ }, bubbleHintTimeout * 1000);
1533
+ }
1534
+ if ('content_left' === bubbleLocation) {
1535
+ if ($('.entry-content').length) {
1536
+ var left = Math.min($('.entry-content').offset().left, $('#wpdcom').offset().left) - 120;
1537
+ var bubbleLeft = left > 25 ? left : 25;
1538
+ $('#wpd-bubble-wrapper').css({left: bubbleLeft + 'px'});
1539
+ $('#wpd-bubble-wrapper').addClass('wpd-left-content');
1540
+ } else if ($('.post-entry').length) {
1541
+ var left = Math.min($('.post-entry').offset().left, $('#wpdcom').offset().left) - 120;
1542
+ var bubbleLeft = left > 25 ? left : 25;
1543
+ $('#wpd-bubble-wrapper').css({left: bubbleLeft + 'px'});
1544
+ $('#wpd-bubble-wrapper').addClass('wpd-left-content');
1545
+ } else if ($('.container').length) {
1546
+ var left = Math.min($('.container').offset().left, $('#wpdcom').offset().left) - 120;
1547
+ var bubbleLeft = left > 25 ? left : 25;
1548
+ $('#wpd-bubble-wrapper').css({left: bubbleLeft + 'px'});
1549
+ $('#wpd-bubble-wrapper').addClass('wpd-left-content');
1550
+ } else {
1551
+ $('#wpd-bubble-wrapper').css({left: '25px'});
1552
+ $('#wpd-bubble-wrapper').addClass('wpd-left-corner');
1553
+ }
1554
+ } else if ('left_corner' === bubbleLocation) {
1555
+ $('#wpd-bubble-wrapper').css({left: '25px'});
1556
+ $('#wpd-bubble-wrapper').addClass('wpd-left-corner');
1557
+ } else if ('right_corner' === bubbleLocation) {
1558
+ $('#wpd-bubble-wrapper').css({right: '25px'});
1559
+ $('#wpd-bubble-wrapper').addClass('wpd-right-corner');
1560
+ }
1561
 
1562
+ $('#wpd-bubble-wrapper').show();
1563
+
1564
+ $('#wpd-bubble-add-message-close').click(function (e) {
1565
+ e.preventDefault();
1566
+ e.stopPropagation();
1567
+ $('#wpd-bubble-wrapper').removeClass('wpd-bubble-hover');
1568
+ });
1569
+
1570
+ $('#wpd-bubble').click(function () {
1571
+ $('html, body').animate({
1572
+ scrollTop: $('#wpdcom').offset().top - 60
1573
+ }, 1000, function () {
1574
+ if (wpdiscuzLoadRichEditor) {
1575
+ wpDiscuzEditor.createEditor('#wpd-editor-0_0').focus();
1576
+ } else {
1577
+ $('#wc-textarea-0_0').focus();
1578
+ }
1579
+ });
1580
+ });
1581
+
1582
+ $('#wpd-bubble-comment-close').click(function (e) {
1583
+ e.preventDefault();
1584
+ $('#wpd-bubble-notification-message').hide();
1585
+ $('#wpd-bubble-wrapper').removeClass('wpd-new-comment-added');
1586
+ });
1587
+
1588
+ $('#wpd-bubble-comment-reply-link a').click(function () {
1589
+ var href = $(this).attr('href');
1590
+ setTimeout(function () {
1591
+ $('#wpd-bubble-notification-message').hide();
1592
+ $('#wpd-bubble-wrapper').removeClass('wpd-new-comment-added');
1593
+ getSingleComment(true);
1594
+ var commentId = href.match(/#comment\-(\d+)/);
1595
+ bubbleNewCommentIds = bubbleNewCommentIds.filter(function (val) {
1596
+ return val != commentId[1];
1597
+ });
1598
+ $('#wpd-bubble-count .wpd-new-comments-count').text(bubbleNewCommentIds.length);
1599
+ if (bubbleNewCommentIds.length == 0) {
1600
+ $('#wpd-bubble-count').removeClass('wpd-new-comments');
1601
+ }
1602
+ }, 100);
1603
+ });
1604
+
1605
+ $('#wpd-bubble-count').click(function () {
1606
+ if (bubbleNewCommentIds.length) {
1607
+ var data = new FormData();
1608
+ data.append('action', 'wpdBubbleUpdate');
1609
+ data.append('newCommentIds', bubbleNewCommentIds.join());
1610
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1611
+ .done(function (r) {
1612
+ if (typeof r === 'object') {
1613
+ if (r.success) {
1614
+ r.data.message = r.data.message.filter(function (comment) {
1615
+ if (!$('#comment-' + comment.comment_id).length) {
1616
+ return comment;
1617
+ }
1618
+ });
1619
+ liveUpdateImmediately(r);
1620
+ $('#wpd-bubble-count').removeClass('wpd-new-comments');
1621
+ $('#wpd-bubble-count .wpd-new-comments-count').text('0');
1622
+ bubbleNewCommentIds = [];
1623
+ $('html, body').animate({
1624
+ scrollTop: $($('.wpd-new-loaded-comment')[0]).offset().top - 60
1625
+ }, 1000);
1626
+ runCallbacks(r);
1627
+ }
1628
+ }
1629
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1630
+ })
1631
+ .fail(function (jqXHR, textStatus, errorThrown) {
1632
+ console.log(errorThrown);
1633
+ });
1634
+ }
1635
+ });
1636
+
1637
+ }
1638
+ function bubbleAjax() {
1639
+ $.ajax({
1640
+ type: 'GET',
1641
+ url: wpdiscuzAjaxObj.bubbleUpdateUrl,
1642
+ data: {
1643
+ postId: wpdiscuzPostId,
1644
+ lastId: bubbleLastCommentId,
1645
+ visibleCommentIds: getVisibleCommentIds(),
1646
+ }
1647
+ }).done(function (r) {
1648
+ if (!addingComment) {
1649
+ if (typeof r === 'object') {
1650
+ if (r.ids.length) {
1651
+ if (commentListUpdateType) {
1652
+ liveUpdate();
1653
+ }
1654
+ r.ids = r.ids.filter(function (id) {
1655
+ if (!$('#comment-' + id).length) {
1656
+ return id;
1657
+ }
1658
+ });
1659
+ var timeout = 5000;
1660
+ bubbleLastCommentId = parseInt(r.ids[r.ids.length - 1]);
1661
+ bubbleNewCommentIds = bubbleNewCommentIds.concat(r.ids);
1662
+ if (bubbleShowNewCommentMessage && r.commentText) {
1663
+ $('#wpd-bubble-author-avatar').html(r.avatar);
1664
+ $('#wpd-bubble-author-name').html(r.authorName);
1665
+ $('#wpd-bubble-comment-date span').html(r.commentDate);
1666
+ $('#wpd-bubble-comment-text').html(r.commentText);
1667
+ $('#wpd-bubble-comment-reply-link a').attr('href', r.commentLink);
1668
+ $('#wpd-bubble-notification-message').show();
1669
+ timeout = 10000;
1670
+ }
1671
+ var count = parseInt($('.wpd-new-comments-count').text());
1672
+ count += r.ids.length;
1673
+ $('#wpd-bubble-wrapper').removeClass('wpd-new-comment-added');
1674
+ $('#wpd-bubble-wrapper').addClass('wpd-new-comment-added');
1675
+ setTimeout(function () {
1676
+ $('#wpd-bubble-notification-message').hide();
1677
+ $('#wpd-bubble-wrapper').removeClass('wpd-new-comment-added');
1678
+ }, timeout);
1679
+ $('.wpd-new-comments-count').text(count);
1680
+ $('#wpd-bubble-count').addClass('wpd-new-comments');
1681
+ r.all_comments_count = parseInt(r.all_comments_count);
1682
+ $('#wpd-bubble-all-comments-count').text(r.all_comments_count);
1683
+ if (r.all_comments_count) {
1684
+ $('#wpd-bubble-all-comments-count').show();
1685
+ } else {
1686
+ $('#wpd-bubble-all-comments-count').hide();
1687
+ }
1688
+ $('.wpd-thread-info').html(r.all_comments_count_html);
1689
+ }
1690
+ } else {
1691
+ console.log(r);
1692
+ }
1693
+ }
1694
+ setTimeout(bubbleAjax, commentListUpdateTimer);
1695
+ }).fail(function (jqXHR, textStatus, errorThrown) {
1696
+ console.log(errorThrown);
1697
+ setTimeout(bubbleAjax, commentListUpdateTimer);
1698
+ });
1699
+ }
1700
+ if (((bubbleEnabled && bubbleLiveUpdate) || commentListUpdateType) && (isUserLoggedIn || (!isUserLoggedIn && enableGuestsLiveUpdate))) {
1701
+ setTimeout(bubbleAjax, commentListUpdateTimer);
1702
+ }
1703
+ //========================= /BUBBLE =====================//
1704
+ //========================= INLINE COMMENTS =====================//
1705
+ if ($('.wpd-inline-form-wrapper').length) {
1706
+ var data = new FormData();
1707
+ data.append('action', 'wpdGetInlineCommentForm');
1708
+ getAjaxObj(isNativeAjaxEnabled, false, data)
1709
+ .done(function (r) {
1710
+ if (typeof r === 'object') {
1711
+ if (r.success) {
1712
+ $('.wpd-inline-form-wrapper').append(r.data);
1713
+ $.each($('[name=_wpd_inline_nonce]'), function () {
1714
+ var id = $(this).attr('id');
1715
+ var parentId = $(this).parents('.wpd-inline-shortcode').attr('id');
1716
+ $(this).attr('id', id + '-' + parentId.substring(parentId.lastIndexOf('-') + 1));
1717
+ });
1718
+ $('.wpd-inline-opened').addClass('wpd-active');
1719
+ $('.wpd-inline-opened').find('.wpd-inline-form-wrapper').show();
1720
+ $('.wpd-inline-opened').find('.wpd-inline-icon').addClass('wpd-open');
1721
+ $('.wpd-inline-opened').find('.wpd-inline-icon').removeClass('wpd-ignored');
1722
+ fixInlineFormsPosition();
1723
+ } else {
1724
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
1725
+ }
1726
+ } else {
1727
+ console.log(r);
1728
+ }
1729
+ })
1730
+ .fail(function (jqXHR, textStatus, errorThrown) {
1731
+ console.log(errorThrown);
1732
+ });
1733
+ }
1734
+ $(document).delegate('body', 'click', function (e) {
1735
+ if ($(e.target).hasClass('wpd-inline-form-close') || $(e.target).parents('.wpd-inline-form-close').length) {
1736
+ e.preventDefault();
1737
+ $(e.target).parents('.wpd-inline-form-wrapper').hide();
1738
+ $(e.target).parents('.wpd-inline-shortcode').removeClass('wpd-active');
1739
+ $(e.target).parents('.wpd-inline-form-wrapper').siblings('.wpd-inline-icon').removeClass('wpd-open');
1740
+ } else if (!$(e.target).hasClass('wpd-inline-form-wrapper') && !$(e.target).parents('.wpd-inline-form-wrapper').length) {
1741
+ hideInlineForms();
1742
+ var currentEl = '';
1743
+ if ($(e.target).hasClass('wpd-inline-icon')) {
1744
+ currentEl = $(e.target);
1745
+ } else if ($(e.target).parents('.wpd-inline-icon').length) {
1746
+ currentEl = $(e.target).parents('.wpd-inline-icon');
1747
+ }
1748
+ if (currentEl.length) {
1749
+ currentEl.parents('.wpd-inline-shortcode').addClass('wpd-active');
1750
+ currentEl.siblings('.wpd-inline-form-wrapper').show();
1751
+ currentEl.addClass('wpd-open');
1752
+ currentEl.removeClass('wpd-ignored');
1753
+ fixInlineFormsPosition(currentEl.siblings('.wpd-inline-form-wrapper'));
1754
+ }
1755
+ }
1756
+ if ((!$(e.target).hasClass('wpd-last-inline-comments-wrapper') && !$(e.target).parents('.wpd-last-inline-comments-wrapper').length) || ($(e.target).parents('.wpd-last-inline-comments-wrapper').length && $(e.target).hasClass('wpd-load-inline-comment'))) {
1757
+ $('.wpd-last-inline-comments-wrapper').remove();
1758
+ }
1759
+ });
1760
+ $(document).delegate('.wpd-inline-submit.wpd_not_clicked', 'click', function (e) {
1761
+ e.preventDefault();
1762
+ var clickedButton = $(this);
1763
+ var form = $(this).parents('.wpd_inline_comm_form');
1764
+ if (form[0].checkValidity()) {
1765
+ $(this).removeClass('wpd_not_clicked');
1766
+ var data = new FormData();
1767
+ data.append('action', 'wpdAddInlineComment');
1768
+ data.append('inline_form_id', getInlineFormId(form));
1769
+ $.each($('input, textarea', form), function (i, val) {
1770
+ if (this.type === 'checkbox') {
1771
+ if ($(this).is(':checked')) {
1772
+ data.append($(val).attr('name'), $(val).val());
1773
+ }
1774
+ } else {
1775
+ data.append($(val).attr('name'), $(val).val());
1776
+ }
1777
+ });
1778
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1779
+ .done(function (r) {
1780
+ clickedButton.addClass('wpd_not_clicked');
1781
+ if (typeof r === 'object') {
1782
+ if (r.success) {
1783
+ form[0].reset();
1784
+ hideInlineForms();
1785
+ var newCount = parseInt(r.data.newCount);
1786
+ var countEl = clickedButton.parents('.wpd-inline-icon-wrapper').find('.wpd-inline-icon-count');
1787
+ countEl.text(newCount);
1788
+ if (newCount) {
1789
+ countEl.addClass('wpd-has-comments');
1790
+ } else {
1791
+ countEl.removeClass('wpd-has-comments');
1792
+ }
1793
+ $('.wpd-thread-info').html(r.data.allCommentsCountNewHtml);
1794
+ r.data.allCommentsCountNew = parseInt(r.data.allCommentsCountNew);
1795
+ $('#wpd-bubble-all-comments-count').text(r.data.allCommentsCountNew);
1796
+ if (r.data.allCommentsCountNew) {
1797
+ $('#wpd-bubble-all-comments-count').show();
1798
+ } else {
1799
+ $('#wpd-bubble-all-comments-count').hide();
1800
+ }
1801
+ if (r.data.message) {
1802
+ addCommentsAfterSticky(r.data.message);
1803
+ }
1804
+ wpdiscuzAjaxObj.setCommentMessage(r.data.notification, 'success');
1805
+ } else if (r.data) {
1806
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
1807
+ }
1808
+ } else {
1809
+ wpdiscuzAjaxObj.setCommentMessage(r, 'error');
1810
+ }
1811
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1812
+ })
1813
+ .fail(function (jqXHR, textStatus, errorThrown) {
1814
+ console.log(errorThrown);
1815
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1816
+ });
1817
+ }
1818
+ });
1819
+ $(document).delegate('.wpd-form', 'keydown', function (e) {
1820
+ if (e.ctrlKey && e.keyCode == 13) {
1821
+ $(this).find('.wc_comm_submit').trigger('click');
1822
+ }
1823
+ });
1824
+ $(document).delegate('#wpdiscuz-edit-form', 'keydown', function (e) {
1825
+ if (e.ctrlKey && e.keyCode == 13) {
1826
+ $(this).find('.wc_save_edited_comment').trigger('click');
1827
+ }
1828
+ });
1829
+ $(document).delegate('.wpd-inline-comment-content', 'keydown', function (e) {
1830
+ if (e.ctrlKey && e.keyCode == 13) {
1831
+ $(this).parents('.wpd_inline_comm_form').find('.wpd-inline-submit.wpd_not_clicked').trigger('click');
1832
+ }
1833
+ });
1834
+ $(document).delegate('.wpd-inline-icon-count.wpd-has-comments', 'click', function () {
1835
+ var clickedButton = $(this);
1836
+ var data = new FormData();
1837
+ data.append('action', 'wpdGetLastInlineComments');
1838
+ data.append('inline_form_id', getInlineFormId(clickedButton));
1839
+ getAjaxObj(isNativeAjaxEnabled, true, data)
1840
+ .done(function (r) {
1841
+ if (typeof r === 'object') {
1842
+ if (r.success) {
1843
+ $(r.data).insertAfter(clickedButton);
1844
+ } else {
1845
+ wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj[r.data], 'error');
1846
+ }
1847
+ } else {
1848
+ console.log(r);
1849
+ }
1850
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1851
+ })
1852
+ .fail(function (jqXHR, textStatus, errorThrown) {
1853
+ console.log(errorThrown);
1854
+ $('#wpdiscuz-loading-bar').fadeOut(250);
1855
+ });
1856
+ });
1857
+ $(document).delegate('.wpd-view-all-inline-comments', 'click', function (e) {
1858
+ e.preventDefault();
1859
+ $(this).parents('.wpd-last-inline-comments-wrapper').remove();
1860
+ if (!$('.wpdf-inline').hasClass('wpdf-active')) {
1861
+ $('.wpdf-inline').trigger('click');
1862
+ }
1863
+ $('html, body').animate({
1864
+ scrollTop: $('.wpdf-inline').offset().top - 32
1865
+ }, 1000);
1866
+ });
1867
+ $(document).delegate('.wpd-feedback-content-link', 'click', function (e) {
1868
+ e.preventDefault();
1869
+ var feedbackId = $(this).data('feedback-content-id');
1870
+ $('html, body').animate({
1871
+ scrollTop: $('#wpd-inline-' + feedbackId).offset().top - 38
1872
+ }, 1000, function () {
1873
+ $('#wpd-inline-' + feedbackId).addClass('wpd-active');
1874
+ });
1875
+ });
1876
+ if (inlineFeedbackAttractionType === 'scroll_open' || inlineFeedbackAttractionType === 'blink') {
1877
+ inlineAttraction();
1878
+ $(window).scroll(inlineAttraction);
1879
+ }
1880
+ function getInlineFormId(el) {
1881
+ if ($(el).hasClass('wpd-inline-shortcode')) {
1882
+ var elId = $(el).attr('id');
1883
+ } else {
1884
+ var elId = $(el).parents('.wpd-inline-shortcode').attr('id');
1885
+ }
1886
+ return elId.substring(elId.lastIndexOf('-') + 1);
1887
+ }
1888
+ function hideInlineForms() {
1889
+ $('.wpd-inline-form-wrapper').hide();
1890
+ $('.wpd-inline-shortcode').removeClass('wpd-active');
1891
+ $('.wpd-inline-icon').removeClass('wpd-open');
1892
+ }
1893
+ function inlineAttraction() {
1894
+ $.each($('.wpd-inline-shortcode:not(.wpd-inline-opened) .wpd-inline-icon'), function () {
1895
+ var el = $(this);
1896
+ var diff = el.offset().top - window.pageYOffset;
1897
+ if (diff > 0 && diff < 300) {
1898
+ if (inlineF