1function heateorSsspCallAjax(e){if(typeof jQuery!="undefined"){e()}else{heateorSsspGetScript("https://code.jquery.com/jquery-latest.min.js",e)}} 2function heateorSsspGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)} 3function heateorSsspDetermineWhatsappShareAPI(a){if(a)return-1!=navigator.userAgent.indexOf("Mobi")?"api.whatsapp.com":"web.whatsapp.com";var p=jQuery("i.heateorSsspWhatsappBackground a").attr("href");return void 0!==p?-1!=navigator.userAgent.indexOf("Mobi")?(jQuery("i.heateorSsspWhatsappBackground a").attr("href",p.replace("web.whatsapp.com","api.whatsapp.com")),"api.whatsapp.com"):(jQuery("i.heateorSsspWhatsappBackground a").attr("href",p.replace("api.whatsapp.com","web.whatsapp.com")),"web.whatsapp.com"):""} 4/** 5 * Show more sharing services popup 6 */ 7function heateorSsspMoreSharingPopup(elem, postUrl, postTitle, twitterTitle){ 8 postUrl = encodeURIComponent(postUrl); 9 concate = '</ul></div><div class="footer-panel"><p></p></div></div>'; 10 var heateorSsspMoreSharingServices = { 11 facebook: { 12 title: "Facebook", 13 locale: "en-US", 14 redirect_url: "https://www.facebook.com/sharer.php?u=" + postUrl + "&t=" + postTitle + "&v=3", 15 }, 16 twitter: { 17 title: "Twitter", 18 locale: "en-US", 19 redirect_url: "https://twitter.com/intent/tweet?text=" + (twitterTitle ? twitterTitle : postTitle) + " " + postUrl, 20 }, 21 linkedin: { 22 title: "Linkedin", 23 locale: "en-US", 24 redirect_url: "https://www.linkedin.com/shareArticle?mini=true&url=" + postUrl + "&title=" + postTitle, 25 }, 26 parler: { 27 title: "Parler", 28 locale: "en-US", 29 redirect_url: "https://parler.com/new-post?message=" + postTitle + "&url=" + postUrl 30 }, 31 gab: { 32 title: "Gab", 33 locale: "en-US", 34 redirect_url: "https://gab.com/compose?text=" + postTitle + "&url=" + postUrl 35 }, 36 pinterest: { 37 title: "Pinterest", 38 locale: "en-US", 39 redirect_url: "https://pinterest.com/pin/create/button/?url=" + postUrl + "&media=${media_link}&description=" + postTitle, 40 bookmarklet_url: "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" 41 }, 42 CopyLink: { 43 title: "Copy Link", 44 locale: "en-US", 45 redirect_url: "", 46 bookmarklet_url: "" 47 }, 48 Diaspora: { 49 title: "Diaspora", 50 locale: "en-US", 51 redirect_url: "https://joindiaspora.com/bookmarklet?url=" + postUrl + "&title=" + postTitle + "&v=1" 52 }, 53 Douban: { 54 title: "Douban", 55 locale: "en-US", 56 redirect_url: "https://www.douban.com/share/service?name="+postTitle+"&href="+postUrl+"&image=&updated=&bm=&url="+postUrl+"&title="+postTitle+"&sel=" 57 }, 58 Draugiem: { 59 title: "Draugiem", 60 locale: "en-US", 61 redirect_url: "https://www.draugiem.lv/say/ext/add.php?link="+postUrl+"&title="+postTitle 62 }, 63 Facebook_Messenger: { 64 title: "Facebook Messenger", 65 locale: "en-US", 66 redirect_url: "https://www.facebook.com/dialog/send?app_id=1904103319867886&display=popup&link="+postUrl+"&redirect_uri="+postUrl 67 }, 68 Google_Classroom: { 69 title: "Google Classroom", 70 locale: "en-US", 71 redirect_url: "https://classroom.google.com/u/0/share?url="+postUrl 72 }, 73 Instagram: { 74 title: "Instagram", 75 locale: "en-US", 76 redirect_url: "https://www.instagram.com/"+heateorSsspInstagramUsername 77 }, 78 Youtube: { 79 title: "Youtube", 80 locale: "en-US", 81 redirect_url: heateorSsspYoutubeUsername 82 }, 83 Kik: { 84 title: "Kik", 85 locale: "en-US", 86 redirect_url: "https://www.kik.com/send/article/?app_name=Share&text=&title="+postTitle+"&url="+postUrl 87 }, 88 Papaly: {
89 title: "Papaly", 90 locale: "en-US", 91 redirect_url: "https://papaly.com/api/share.html?url="+postUrl+"&title="+postTitle 92 }, 93 Refind: { 94 title: "Refind", 95 locale: "en-US", 96 redirect_url: "https://refind.com/?url="+postUrl 97 }, 98 Skype: { 99 title: "Skype", 100 locale: "en-US", 101 redirect_url: "https://web.skype.com/share?url="+postUrl 102 }, 103 SMS: { 104 title: "SMS", 105 locale: "en-US", 106 bookmarklet_url: "sms:?&body="+postTitle+" "+postUrl 107 }, 108 Trello: { 109 title: "Trello", 110 locale: "en-US", 111 redirect_url: "https://trello.com/add-card?mode=popup&url="+postUrl+"&name="+postTitle+"&desc=" 112 }, 113 Viber: { 114 title: "Viber", 115 locale: "en-US", 116 bookmarklet_url: "viber://forward?text="+postTitle+" "+postUrl 117 }, 118 Threema: { 119 title: "Threema", 120 locale: "en-US", 121 bookmarklet_url: "threema://compose?text="+postTitle+" "+postUrl 122 }, 123 Telegram: { 124 title: "Telegram", 125 locale: "en-US", 126 redirect_url: "https://telegram.me/share/url?url="+postUrl+"&text="+postTitle 127 }, 128 email: { 129 title: "Email", 130 locale: "en-US", 131 redirect_url: "mailto:?subject=" + postTitle + "&body=Link: " + postUrl, 132 }, 133 reddit: { 134 title: "Reddit", 135 locale: "en-US", 136 redirect_url: "https://reddit.com/submit?url=" + postUrl + "&title=" + postTitle, 137 }, 138 float_it: { 139 title: "Float it", 140 locale: "en-US", 141 redirect_url: "https://www.designfloat.com/submit.php?url=" + postUrl + "&title=" + postTitle, 142 }, 143 google_mail: { 144 title: "Google Gmail", 145 locale: "en-US", 146 redirect_url: "https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&su=" + postTitle + "&body=Link: " + postUrl, 147 }, 148 gentlereader: { 149 title: "GentleReader", 150 locale: "en-US", 151 redirect_url: "https://app.gentlereader.com/bookmark?url=" + postUrl, 152 }, 153 goodreads: { 154 title: "Goodreads", 155 locale: "en-US", 156 redirect_url: "https://www.goodreads.com/update_status?url=" + postUrl, 157 }, 158 google_bookmarks: { 159 title: "Google Bookmarks", 160 locale: "en-US", 161 redirect_url: "http://www.google.com/bookmarks/mark?op=edit&bkmk=" + postUrl + "&title=" + postTitle, 162 }, 163 digg: { 164 title: "Digg", 165 locale: "en-US", 166 redirect_url: "http://digg.com/submit?phase=2&url=" + postUrl + "&title=" + postTitle, 167 }, 168 printfriendly: { 169 title: "PrintFriendly", 170 locale: "en-US", 171 redirect_url: "https://www.printfriendly.com/print?url=" + postUrl, 172 }, 173 print: { 174 title: "Print", 175 locale: "en-US", 176 redirect_url: "https://www.printfriendly.com/print?url=" + postUrl, 177 }, 178 tumblr: { 179 title: "Tumblr", 180 locale: "en-US", 181 redirect_url: "https://www.tumblr.com/widgets/share/tool?posttype=link&canonicalUrl=" + postUrl + "&title=" + postTitle + "&caption=", 182 bookmarklet_url: "javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.tumblr.com/share',l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href) +'&t='+e(d.title) +'&s='+e(s),u=f+p;try{if(!/^(.*\\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0);" 183 }, 184 vk: { 185 title: "Vkontakte", 186 locale: "ru", 187 redirect_url: "https://vk.com/share.php?url=" + postUrl + "&title=" + postTitle, 188 }, 189 evernote: { 190 title: "Evernote", 191 locale: "en-US", 192 redirect_url: "https://www.evernote.com/clip.action?url=" + postUrl + "&title=" + postTitle, 193 bookmarklet_url: "javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();" 194 }, 195 amazon_us_wish_list: { 196 title: "Amazon Wish List", 197 locale: "en-US", 198 redirect_url: "https://www.amazon.com/wishlist/add?u=" + postUrl + "&t=" + postTitle, 199 bookmarklet_url: "javascript:(function(){var w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,x='undefined',u='http://www.amazon.com/gp/wishlist/add';if(typeof s!='object')l.href=u+'?u='+e(l)+'&t='+e(d.title);function g(){if(d.readyState&&d.readyState!='complete'){setTimeout(g,200);}else{if(typeof AUWLBook==x)s.setAttribute('src',u+'.js?loc='+e(l)),d.body.appendChild(s);function f(){(typeof AUWLBook==x)?setTimeout(f,200):AUWLBook.showPopover();}f();}}g();}())" 200 }, 201 wordpress_blog: { 202 title: "WordPress", 203 locale: "en-US", 204 redirect_url: "https://www.addtoany.com/ext/wordpress/press_this?linkurl=" + postUrl + "&linkname=" + postTitle, 205 }, 206 whatsapp: { 207 title: "Whatsapp", 208 locale: "en-US", 209 bookmarklet_url: "https://" + heateorSsspDetermineWhatsappShareAPI(true) + "/send?text=" + postTitle + " " + postUrl, 210 }, 211 diigo: { 212 title: "Diigo", 213 locale: "en-US", 214 redirect_url: "https://www.diigo.com/post?url=" + postUrl + "&title=" + postTitle, 215 }, 216 yc_hacker_news: { 217 title: "Hacker News", 218 locale: "en-US", 219 redirect_url: "https://news.ycombinator.com/submitlink?u=" + postUrl + "&t=" + postTitle, 220 }, 221 box_net: { 222 title: "Box.net", 223 locale: "en-US", 224 redirect_url: "https://www.box.net/api/1.0/import?url=" + postUrl + "&name=" + postTitle + "&import_as=link", 225 }, 226 aol_mail: { 227 title: "AOL Mail", 228 locale: "en-US",
229 redirect_url: "http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?subject=" + postTitle + "&body=" + postUrl, 230 }, 231 yahoo_mail: { 232 title: "Yahoo Mail", 233 locale: "en-US", 234 redirect_url: "https://compose.mail.yahoo.com/?Subject=" + postTitle + "&body=Link: " + postUrl, 235 }, 236 instapaper: { 237 title: "Instapaper", 238 locale: "en-US", 239 redirect_url: "https://www.instapaper.com/edit?url=" + postUrl + "&title=" + postTitle, 240 }, 241 plurk: { 242 title: "Plurk", 243 locale: "en-US", 244 redirect_url: "https://www.plurk.com/m?content=" + postUrl + "&qualifier=shares", 245 }, 246 wanelo: { 247 title: "Wanelo", 248 locale: "en-US", 249 redirect_url: "http://wanelo.com/p/post?bookmarklet=&images%5B%5D=&url=" + postUrl + "&title=" + postTitle + "&price=&shop=", 250 bookmarklet_url: "javascript:void ((function(url){if(!window.waneloBookmarklet){var productURL=encodeURIComponent(url),cacheBuster=Math.floor(Math.random()*1e3),element=document.createElement('script');element.setAttribute('src','//wanelo.com/bookmarklet/3/setup?*='+cacheBuster+'&url='+productURL),element.onload=init,element.setAttribute('type','text/javascript'),document.getElementsByTagName('head')[0].appendChild(element)}else init();function init(){window.waneloBookmarklet()}})(window.location.href))" 251 }, 252 aim: { 253 title: "AIM", 254 locale: "en-US", 255 redirect_url: "http://share.aim.com/share/?url=" + postUrl + "&title=" + postTitle, 256 }, 257 viadeo: { 258 title: "Viadeo", 259 locale: "en-US", 260 redirect_url: "https://www.viadeo.com/shareit/share/?url=" + postUrl + "&title=" + postTitle, 261 }, 262 pinboard_in: { 263 title: "Pinboard", 264 locale: "en-US", 265 redirect_url: "https://pinboard.in/add?url=" + postUrl + "&title=" + postTitle, 266 }, 267 blogger_post: { 268 title: "Blogger Post", 269 locale: "en-US", 270 redirect_url: "https://www.blogger.com/blog_this.pyra?t=&u=" + postUrl + "&l&n=" + postTitle, 271 }, 272 typepad_post: { 273 title: "TypePad Post", 274 locale: "en-US", 275 redirect_url: "https://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title=" + postTitle + "&qp_href=" + postUrl + "&qp_text=" + postTitle, 276 }, 277 buffer: { 278 title: "Buffer", 279 locale: "en-US", 280 redirect_url: "https://bufferapp.com/add?url=" + postUrl + "&text=" + postTitle, 281 }, 282 flipboard: { 283 title: "Flipboard", 284 locale: "en-US", 285 redirect_url: "https://share.flipboard.com/bookmarklet/popout?v=2&url=" + postUrl + "&title=" + postTitle, 286 }, 287 pocket: { 288 title: "Pocket", 289 locale: "en-US", 290 redirect_url: "https://readitlaterlist.com/save?url=" + postUrl + "&title=" + postTitle, 291 }, 292 fark: { 293 title: "Fark", 294 locale: "en-US", 295 redirect_url: "https://cgi.fark.com/cgi/fark/submit.pl?new_url=" + postUrl, 296 }, 297 fintel: { 298 title: "Fintel", 299 locale: "en-US", 300 redirect_url: "https://fintel.io/submit?url=" + postUrl, 301 }, 302 yummly: { 303 title: "Yummly", 304 locale: "en-US", 305 redirect_url: "https://www.yummly.com/urb/verify?url=" + postUrl + "&title=" + postTitle, 306 }, 307 app_net: { 308 title: "App.net", 309 locale: "en-US", 310 redirect_url: "https://account.app.net/login/", 311 }, 312 balatarin: { 313 title: "Balatarin", 314 locale: "en-US", 315 redirect_url: "https://www.balatarin.com/login", 316 }, 317 bibSonomy: { 318 title: "BibSonomy", 319 locale: "en-US", 320 redirect_url: "https://www.bibsonomy.org/login", 321 }, 322 Bitty_Browser: { 323 title: "Bitty Browser", 324 locale: "en-US", 325 redirect_url: "http://www.bitty.com/manual/?contenttype=&contentvalue=" + postUrl, 326 }, 327 Blinklist: { 328 title: "Blinklist", 329 locale: "en-US", 330 redirect_url: "https://blinklist.com/blink?t=" + postTitle + "&d=&u=" + postUrl, 331 }, 332 BlogMarks: { 333 title: "BlogMarks", 334 locale: "en-US", 335 redirect_url: "https://blogmarks.net/my/new.php?mini=1&simple=1&title=" + postTitle + "&url=" + postUrl, 336 }, 337 Bookmarks_fr: { 338 title: "Bookmarks.fr", 339 locale: "en-US", 340 redirect_url: "https://www.bookmarks.fr/Connexion/?action=add&address=" + postUrl + "&title=" + postTitle, 341 }, 342 BuddyMarks: { 343 title: "BuddyMarks", 344 locale: "en-US", 345 redirect_url: "http://buddymarks.com/login.php?bookmark_title=" + postTitle + "&bookmark_url=" + postUrl + "&bookmark_desc=&bookmark_tags=", 346 }, 347 Care2_news: { 348 title: "Care2 News", 349 locale: "en-US", 350 redirect_url: "https://www.care2.com/passport/login.html?promoID=10&pg=http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]=" 351 }, 352 CiteULike: { 353 title: "Cite U Like", 354 locale: "en-US", 355 redirect_url: "http://www.citeulike.org/posturl?url=" + postUrl + "&title=" + postTitle, 356 }, 357 Diary_Ru: { 358 title: "Diary.Ru", 359 locale: "en-US", 360 redirect_url: "https://www.diary.ru/?newpost&title=" + postTitle + "&text=" + postUrl, 361 }, 362 dzone: { 363 title: "DZone", 364 locale: "en-US", 365 redirect_url: "http://www.dzone.com/links/add.html?url=" + postUrl + "&title=" + postTitle, 366 }, 367 Folkd: { 368 title: "Folkd", 369 locale: "en-US", 370 redirect_url: "https://www.folkd.com/page/social-bookmarking.html?addurl=" + postUrl, 371 }, 372 Hatena: { 373 title: "Hatena", 374 locale: "en-US", 375 redirect_url: "https://b.hatena.ne.jp/bookmarklet?url=" + postUrl + "&btitle=" + postTitle, 376 }, 377 Jamespot: { 378 title: "Jamespot", 379 locale: "en-US", 380 redirect_url: "http://my.jamespot.com/", 381 }, 382 Kakao: { 383 title: "Kakao", 384 locale: "en-US", 385 redirect_url: "https://story.kakao.com/share?url=" + postUrl, 386 }, 387 Kindle_It: { 388 title: "Kindle_It", 389 locale: "en-US", 390 redirect_url: "https://fivefilters.org/kindle-it/send.php?url=" + postUrl, 391 }, 392 Known: { 393 title: "Known", 394 locale: "en-US", 395 redirect_url: "https://withknown.com/share/?url=" + postUrl + "&title=" + postTitle, 396 }, 397 Line: { 398 title: "Line", 399 locale: "en-US", 400 redirect_url: "https://social-plugins.line.me/lineit/share?url=" + postUrl, 401 }, 402 LiveJournal: { 403 title: "LiveJournal", 404 locale: "en-US", 405 redirect_url: "https://www.livejournal.com/update.bml?subject=" + postTitle + "&event=" + postUrl, 406 }, 407 Mail_Ru: { 408 title: "Mail.Ru", 409 locale: "en-US", 410 redirect_url: "https://connect.mail.ru/share?share_url=" + postUrl, 411 }, 412 Mendeley: { 413 title: "Mendeley", 414 locale: "en-US", 415 redirect_url: "https://www.mendeley.com/sign-in/", 416 }, 417 Meneame: { 418 title: "Meneame", 419 locale: "en-US", 420 redirect_url: "https://www.meneame.net/submit.php?url=" + postUrl, 421 }, 422 MeWe: { 423 title: "MeWe", 424 locale: "en-US", 425 redirect_url: "https://mewe.com/share?link=" + postUrl, 426 }, 427 Mix: { 428 title: "Mix", 429 locale: "en-US", 430 redirect_url: "https://mix.com/mixit?url=" + postUrl, 431 }, 432 Mixi: { 433 title: "Mixi", 434 locale: "en-US", 435 redirect_url: "https://mixi.jp/share.pl?mode=login&u=" + postUrl, 436 }, 437 MySpace: { 438 title: "MySpace", 439 locale: "en-US", 440 redirect_url: "https://myspace.com/post?u=" + encodeURIComponent(postUrl) + "&t=" + postTitle + "&l=3&c=" + postTitle, 441 }, 442 Netvouz: { 443 title: "Netvouz", 444 locale: "en-US", 445 redirect_url: "https://www.netvouz.com/action/submitBookmark?url=" + postUrl + "&title=" + postTitle + "&popup=no&description=", 446 }, 447 Odnoklassniki: { 448 title: "Odnoklassniki", 449 locale: "en-US", 450 redirect_url: "https://connect.ok.ru/dk?cmd=WidgetSharePreview&st.cmd=WidgetSharePreview&st.shareUrl=" + postUrl + "&st.client_id=-1", 451 }, 452 Outlook_com: { 453 title: "Outlook.com", 454 locale: "en-US", 455 redirect_url: "https://mail.live.com/default.aspx?rru=compose?subject=" + postTitle + "&body=" + postUrl + "&lc=1033&id=64855&mkt=en-us&cbcxt=mai", 456 }, 457 Protopage_Bookmarks: { 458 title: "Protopage_Bookmarks", 459 locale: "en-US", 460 redirect_url: "https://www.protopage.com/add-button-site?url=" + postUrl + "&label=&type=page", 461 }, 462 Pusha: { 463 title: "Pusha", 464 locale: "en-US", 465 redirect_url: "https://www.pusha.se/posta?url=" + postUrl, 466 }, 467 Qzone: { 468 title: "Qzone", 469 locale: "en-US", 470 redirect_url: "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + postUrl, 471 }, 472 Rediff_MyPage: { 473 title: "Rediff MyPage", 474 locale: "en-US", 475 redirect_url: "https://share.rediff.com/bookmark/addbookmark?bookmarkurl=" + postUrl + "&title=" + postTitle, 476 }, 477 Renren: { 478 title: "Renren", 479 locale: "en-US", 480 redirect_url: "https://www.connect.renren.com/share/sharer?url=" + postUrl + "&title=" + postTitle, 481 }, 482 Sina_Weibo: { 483 title: "Sina Weibo", 484 locale: "en-US", 485 redirect_url: "http://service.weibo.com/share/share.php?url=" + postUrl + "&title=" + postTitle, 486 }, 487 SiteJot: { 488 title: "SiteJot", 489 locale: "en-US", 490 redirect_url: "http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=", 491 }, 492 Slashdot: { 493 title: "Slashdot", 494 locale: "en-US", 495 redirect_url: "https://slashdot.org/submission?url=" + postUrl, 496 }, 497 StockTwits: { 498 title: "StockTwits", 499 locale: "en-US", 500 redirect_url: "https://stocktwits.com/widgets/share?body=" + postTitle + " " + postUrl, 501 }, 502 Svejo: { 503 title: "Svejo", 504 locale: "en-US", 505 redirect_url: "https://svejo.net/story/submit_by_url?url=" + postUrl + "&title=" + postTitle + "&summary=", 506 }, 507 Symbaloo_Feeds: { 508 title: "Symbaloo_Feeds", 509 locale: "en-US", 510 redirect_url: "https://www.symbaloo.com/", 511 }, 512 Tuenti: { 513 title: "Tuenti", 514 locale: "en-US",
515 redirect_url: "https://www.tuenti.com/share?p=b5dd6602&url=" + postUrl, 516 }, 517 Twiddla: { 518 title: "Twiddla", 519 locale: "en-US", 520 redirect_url: "https://www.twiddla.com/New.aspx?url=" + postUrl + "&title=" + postTitle, 521 }, 522 Webnews: { 523 title: "Webnews", 524 locale: "en-US", 525 redirect_url: "https://www.webnews.de/login" 526 }, 527 Wykop: { 528 title: "Wykop", 529 locale: "en-US", 530 redirect_url: "https://www.wykop.pl/dodaj?url=" + postUrl + "&title=" + postTitle, 531 }, 532 Xing: { 533 title: "Xing", 534 locale: "en-US", 535 redirect_url: "https://www.xing.com/spi/shares/new?cb=0&url=" + postUrl, 536 }, 537 Yoolink: { 538 title: "Yoolink", 539 locale: "en-US", 540 redirect_url: "http://auth.yoolink.to/authenticate/login?service=yoolink.to&landing_path=%2Faddorshare%3Furl_value%3D" + encodeURIComponent(postUrl) + "%26title%3D" + encodeURIComponent(postTitle), 541 } 542 } 543 var heateorSsspMoreSharingServicesHtml = '<button id="heateor_sssp_sharing_popup_close" class="close-button separated"><img src="'+ heateorSsspCloseIconPath +'" /></button><div id="heateor_sssp_sharing_more_content" data-href="'+ decodeURIComponent(postUrl) +'"><div class="filter"><input type="text" onkeyup="heateorSsspFilterSharing(this.value.trim())" placeholder="Search" class="search"></div><div class="all-services"><ul class="mini">'; 544 for(var i in heateorSsspMoreSharingServices){ 545 var tempTitle = heateorSsspCapitaliseFirstLetter(heateorSsspMoreSharingServices[i].title.replace(/[_. ]/g, "")); 546 heateorSsspMoreSharingServicesHtml += '<li><a rel="nofollow" class="heateorSssp'+i+'Share" title="'+ heateorSsspMoreSharingServices[i].title +'" alt="'+ heateorSsspMoreSharingServices[i].title +'" '; 547 if(heateorSsspMoreSharingServices[i].bookmarklet_url){ 548 heateorSsspMoreSharingServicesHtml += 'href="' + heateorSsspMoreSharingServices[i].bookmarklet_url + '" '; 549 }else if(heateorSsspMoreSharingServices[i].redirect_url){ 550 heateorSsspMoreSharingServicesHtml += 'onclick="heateorSsspPopup(\'' + heateorSsspMoreSharingServices[i].redirect_url + '\')" href="javascript:void(0)" '; 551 }else{ 552 heateorSsspMoreSharingServicesHtml += 'href="javascript:void(0)" '; 553 } 554 heateorSsspMoreSharingServicesHtml += '"><i style="width:22px;height:22px" title="'+ heateorSsspMoreSharingServices[i].title +'" class="heateorSsspSharing heateorSssp' + tempTitle + 'Background"><ss style="display:block;width:100%;height:100%;" class="heateorSsspSharingSvg heateorSssp' + tempTitle + 'Svg"></ss></i>' + heateorSsspMoreSharingServices[i].title + '</a></li>'; 555 } 556 heateorSsspMoreSharingServicesHtml += concate; 557 558 var mainDiv = document.createElement('div'); 559 mainDiv.innerHTML = heateorSsspMoreSharingServicesHtml; 560 mainDiv.setAttribute('id', 'heateor_sssp_sharing_more_providers'); 561 var bgDiv = document.createElement('div'); 562 bgDiv.setAttribute('id', 'heateor_sssp_popup_bg'); 563 jQuery('body').append(mainDiv).append(bgDiv); 564 document.getElementById('heateor_sssp_popup_bg').onclick = document.getElementById('heateor_sssp_sharing_popup_close').onclick = function(){ 565 mainDiv.parentNode.removeChild(mainDiv); 566 bgDiv.parentNode.removeChild(bgDiv); 567 } 568} 569 570function heateorSsspPopupSharing(elem, postUrl, postTitle, twitterTitle){ 571 postUrl = encodeURIComponent(postUrl); 572 concate = '</ul></div><div class="footer-panel"><p></p></div></div>'; 573 var heateorSsspMoreSharingServicesHtml = '<button id="heateor_sssp_sharing_popup_close" class="close-button separated"><img src="'+ heateorSsspCloseIconPath +'" /></button><div id="heateor_sssp_sharing_more_content" data-href="'+ decodeURIComponent(postUrl) +'"><div class="filter"><input type="text" onkeyup="heateorSsspFilterSharing(this.value.trim())" placeholder="Search" class="search"></div><div class="all-services"><ul class="mini">'; 574 var tempTitle = heateorSsspCapitaliseFirstLetter(heateorSsspMoreSharingServices[i].title.replace(/[_. ]/g, "")); 575 heateorSsspMoreSharingServicesHtml += '<li><a rel="nofollow" class="heateorSssp'+i+'Share" title="'+ heateorSsspMoreSharingServices[i].title +'" alt="'+ heateorSsspMoreSharingServices[i].title +'" '; 576 if(heateorSsspMoreSharingServices[i].bookmarklet_url){ 577 heateorSsspMoreSharingServicesHtml += 'href="' + heateorSsspMoreSharingServices[i].bookmarklet_url + '" '; 578 }else if(heateorSsspMoreSharingServices[i].redirect_url){ 579 heateorSsspMoreSharingServicesHtml += 'onclick="heateorSsspPopup(\'' + heateorSsspMoreSharingServices[i].redirect_url + '\')" href="javascript:void(0)" '; 580 }else{ 581 heateorSsspMoreSharingServicesHtml += 'href="javascript:void(0)" '; 582 } 583 heateorSsspMoreSharingServicesHtml += '"><i style="width:22px;height:22px" title="'+ heateorSsspMoreSharingServices[i].title +'" class="heateorSsspSharing heateorSssp' + tempTitle + 'Backgroun
583d"><ss style="display:block;width:100%;height:100%;" class="heateorSsspSharingSvg heateorSssp' + tempTitle + 'Svg"></ss></i>' + heateorSsspMoreSharingServices[i].title + '</a></li>'; 584 585 heateorSsspMoreSharingServicesHtml += concate; 586 587 var mainDiv = document.createElement('div'); 588 mainDiv.innerHTML = heateorSsspMoreSharingServicesHtml; 589 mainDiv.setAttribute('id', 'heateor_sssp_sharing_more_providers'); 590 var bgDiv = document.createElement('div'); 591 bgDiv.setAttribute('id', 'heateor_sssp_popup_bg'); 592 jQuery('body').append(mainDiv).append(bgDiv); 593 document.getElementById('heateor_sssp_popup_bg').onclick = document.getElementById('heateor_sssp_sharing_popup_close').onclick = function(){ 594 mainDiv.parentNode.removeChild(mainDiv); 595 bgDiv.parentNode.removeChild(bgDiv); 596 } 597} 598 599if(typeof heateorSsspSaveShareCount == "undefined" && (heateorSsspHorizontalSharingCountEnable || heateorSsspVerticalSharingCountEnable)){ 600 // get sharing counts on window load 601 heateorSsspLoadEvent( 602 function(){ 603 // sharing counts 604 heateorSsspCallAjax(function(){ 605 heateorSsspGetSharingCounts(); 606 }); 607 } 608 ); 609} 610 611/** 612 * Search sharing services 613 */ 614function heateorSsspFilterSharing(val) { 615 jQuery('ul.mini li a').each(function(){ 616 if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) { 617 jQuery(this).parent().css('display', 'block'); 618 } else { 619 jQuery(this).parent().css('display', 'none'); 620 } 621 }); 622}; 623 624/** 625 * Get sharing counts 626 */ 627function heateorSsspGetSharingCounts(){ 628 var targetUrls = []; 629 jQuery('.heateor_sssp_sharing_container').each(function(){ 630 if(typeof jQuery(this).attr('heateor-sssp-no-counts') == 'undefined'){ 631 var currentTargetUrl = jQuery(this).attr('heateor-sssp-data-href'); 632 if(currentTargetUrl != null && jQuery.inArray(currentTargetUrl, heateorSsspUrlCountFetched) == -1){ 633 targetUrls.push(currentTargetUrl); 634 heateorSsspUrlCountFetched.push(currentTargetUrl); 635 } 636 } 637 }); 638 639 if(targetUrls.length == 0){ 640 return; 641 } 642 jQuery.ajax({ 643 type: 'GET', 644 dataType: 'json', 645 url: heateorSsspSharingAjaxUrl, 646 data: { 647 action: 'heateor_sssp_sharing_count', 648 urls: targetUrls, 649 }, 650 success: function(data, textStatus, XMLHttpRequest){ 651 if(data.status == 1){ 652 for(var i in data.message){ 653 var sharingContainers = jQuery("div[heateor-sssp-data-href='"+i+"']"); 654 655 jQuery(sharingContainers).each(function(){ 656 var totalCount = 0; 657 for(var j in data.message[i]){ 658 var sharingCount = parseInt(data.message[i][j]) || 0; 659 660 var targetElement = jQuery(this).find('.heateor_sssp_'+j+'_count'); 661 662 if(jQuery(targetElement).attr('sss_st_count')){ 663 sharingCount = parseInt(sharingCount) + parseInt(jQuery(targetElement).attr('sss_st_count')); 664 } 665 totalCount += parseInt(sharingCount); 666 if(sharingCount < 1){ continue; } 667 jQuery(targetElement).html(heateorSsspCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'}); 668 if ( ( typeof heateorSsspReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sssp_horizontal_sharing') ) || ( typeof heateorSsspReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sssp_vertical_sharing') ) ) { 669 jQuery(targetElement).parents('li').find('.heateorSsspSharingSvg').css('float', 'left'); 670 } 671 if ( ( typeof heateorSsspReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sssp_horizontal_sharing') ) || ( typeof heateorSsspReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sssp_vertical_sharing') ) ) { 672 jQuery(targetElement).parents('li').find('.heateorSsspSharingSvg').css('marginTop', '0'); 673 } 674 } 675 var totalCountContainer = jQuery(this).find('.heateorSsspTCBackground'), totalShares = heateorSsspCalculateApproxCount(totalCount); 676 jQuery(totalCountContainer).each(function(){ 677 var containerHeight = jQuery(this).css('height'); 678 jQuery(this).html('<div class="heateorSsspTotalShareCount" style="font-size: '+ (parseInt(containerHeight) * 62/100) +'px">' + totalShares + '</div><div class="heateorSsspTotalShareText" style="font-size: '+ (parseInt(containerHeight) * 38/100) +'px">' + (totalCount == 0 || totalCount > 1 ? heateorSsspSharesText : heateorSsspShareText) + '</div>').css('visibility', 'visible'); 679 }); 680 }); 681 } 682 } 683 }, 684 error: function(data, textStatus, XMLHttpRequest){ 685 } 686 }); 687} 688 689function heateorSsspSaveFacebookShares(facebookShares){ 690 jQuery.ajax({ 691 type: 'GET', 692 dataType: 'json', 693 url: heateorSsspSharingAjaxUrl, 694 data: { 695 action: 'heateor_sssp_save_facebook_shares', 696 share_counts: facebookShares, 697 }, 698 success: function(data, textStatus, XMLHttpRequest){} 699 }); 700} 701 702function heateorSsspCalculateApproxCount(sharingCount){ 703 // round to one decimal 704 if(sharingCount > 999 && sharingCount < 10000){ 705 sharingCount = (Math.round(sharingCount/100))/10 + 'K'; 706 }else if(sharingCount > 9999 && sharingCount < 100000){ 707 sharingCount = (Math.round(sharingCount/100))/10 + 'K'; 708 }else if(sharingCount > 99999 && sharingCount < 1000000){ 709 sharingCount = (Math.round(sharingCount/100))/10 + 'K'; 710 }else if(sharingCount > 999999){ 711 sharingCount = (Math.round(sharingCount/100000))/10 + 'M'; 712 } 713 return sharingCount; 714} 715 716function heateorSsspCalculateActualCount(sharingCount){ 717 if(sharingCount.indexOf('K') > 0){ 718 sharingCount = sharingCount.replace('K', '') * 1000; 719 }else if(sharingCount.indexOf('M') > 0){ 720 sharingCount = sharingCount.replace('M', '') * 1000000; 721 } 722 return parseInt(sharingCount); 723} 724 725function heateorSsspCapitaliseFirstLetter(e) { 726 return e.charAt(0).toUpperCase() + e.slice(1) 727} 728 729function heateorSsspSaveSocialShares(socialNetwork, urlToShare) { 730 jQuery.ajax({ 731 type: 'GET', 732 dataType: 'json', 733 url: heateorSsspSharingAjaxUrl, 734 data: { 735 action: 'heateor_sssp_save_social_shares', 736 social_network: socialNetwork, 737 url: urlToShare 738 }, 739 success: function(data, textStatus, XMLHttpRequest){} 740 }); 741} 742 743jQuery(function(){ 744 // myCRED points for Twitter tweet button 745 if(typeof heateorSsmiEnabled != "undefined"){ 746 jQuery("#twitter-wjs").load(function(){ 747 twttr.ready(function(e){ 748 e.events.bind("tweet", function(e){ 749 "tweet" == e.type && heateorSsmiMycredPoints("Twitter_tweet", "", jQuery(e.target).parent().attr("heateor-ss-data-href") ? jQuery(e.target).parent().attr("heateor-ss-data-href") : jQuery(e.target).parent().attr("heateor-sssp-data-href")) 750 }) 751 }) 752 }) 753 } 754 // save share counts in the database 755 if(typeof heateorSsspSaveShareCount != "undefined"){ 756 jQuery(document).on('click', '.heateor_sssp_sharing_container i', function(){var title = jQuery(this).attr('alt'), urlToShare = jQuery(this).parents('div.heateor_sssp_sharing_container').attr('heateor-sssp-data-href'); if(title != 'Total Shares'){if(title == 'More'){jQuery('#heateor_sssp_sharing_more_content a').click(function(){heateorSsspSaveSocialShares(jQuery(this).find('i').attr('title'), urlToShare);});} else{heateorSsspSaveSocialShares(title, urlToShare);}}}); 757 } 758 var heateorSsspWhatsappJSAPI = heateorSsspDetermineWhatsappShareAPI(false); 759 var classes = ['heateor_sssp_vertical_sharing', 'heateor_sssp_vertical_counter']; 760 for(var i = 0; i < classes.length; i++){ 761 if(jQuery('.' + classes[i]).length){ 762 jQuery('.' + classes[i]).each(function(){ 763 var verticalSharingHtml = jQuery(this).html(); 764 if(jQuery(this).attr('style').indexOf('right') >= 0){ 765 var removeClass = 'heateorSsspPushIn', margin = 'Right', alignment = 'right', addClass = 'heateorSsspPullOut'; 766 }else{ 767 var removeClass = 'heateorSsspPullOut', margin = 'Left', alignment = 'left', addClass = 'heateorSsspPushIn'; 768 } 769 jQuery(this).html(verticalSharingHtml + '<div title="Hide" style="float:' + alignment + '" onclick="heateorSsspHideSharing(this, \''+ removeClass +'\', \''+ addClass +'\',\'' + margin +'\', \'' + alignment + '\')" class="heateorSsspSharingArrow ' + removeClass + '"></div>'); 770 }); 771 } 772 } 773 if(heateorSsspMobileStickySharingEnabled == 1){ 774 if(jQuery('div.heateor_sssp_vertical_sharing').length){ 775 // insert div before </body> 776 jQuery(document.body).append("<div class='heateor_sssp_mobile_footer'></div>"); 777 } 778 } 779 780 var heateorSsspClipboard = new ClipboardJS('.heateorSsspCopyLinkBackgroun
780d, .heateorSsspCopyLinkShare, .heateorSsspCopyLinkSvg', { 781 text: function(trigger) { 782 if(jQuery(trigger).hasClass('heateorSsspCopyLinkShare')){ 783 var element = trigger.parentElement.parentElement.parentElement.parentElement; 784 var url = jQuery(element).attr("data-href") || ""; 785 }else if(jQuery(trigger).hasClass('heateorSsspCopyLinkSvg')){ 786 var element = trigger.parentElement.parentElement.parentElement.parentElement; 787 var url = jQuery(element).attr("heateor-sssp-data-href") || ""; 788 if(!url){ 789 var element = trigger.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; 790 var url = jQuery(element).attr("data-href") || ""; 791 } 792 } 793 return url; 794 } 795 }); 796 heateorSsspClipboard.on('success', function(e) { 797 alert(heateorSsspCopyLinkMessage); 798 }); 799 if(typeof heateorSsspSharePopupOffset != "undefined"){ 800 jQuery('body').append('<div style="display:none;top:' + heateorSsspSharePopupOffset + '%" id="heateor_sssp_popup_sharing_providers"><button id="heateor_sssp_popup_sharing_close" class="close-button separated"><img src="' + heateorSsspCloseIconPath + '"></button><div id="heateor_sssp_sharing_more_content"><div class="filter">' + heateorSsspShareShortcode + '</div><div class="all-services"></div></div></div><div style="display:none" id="heateor_sssp_popup_sharing_bg"></div><script type="text/javascript">var mainDiv = document.getElementById(\'heateor_sssp_popup_sharing_providers\'), bgDiv = document.getElementById(\'heateor_sssp_popup_sharing_bg\') ;document.getElementById(\'heateor_sssp_popup_sharing_bg\').onclick = document.getElementById(\'heateor_sssp_popup_sharing_close\').onclick = function(){mainDiv.parentNode.removeChild(mainDiv);bgDiv.parentNode.removeChild(bgDiv);};setTimeout(function(){ document.getElementById(\'heateor_sssp_popup_sharing_providers\').style.display = "block", document.getElementById(\'heateor_sssp_popup_sharing_bg\').style.display = "block" },' + ( ( heateorSsspSharePopupTime ? heateorSsspSharePopupTime : 4 ) * 1000 ) + ');</script>'); 801 } 802}); 803 804function heateorSsspHideSharing(elem, removeClass, addClass, margin, alignment){ 805 var animation = {}, counter = jQuery(elem).parent().hasClass('heateor_sssp_vertical_counter'), offset = parseInt(jQuery(elem).parent().css('width')) + 10 - (counter ? 16 : 0); 806 var ssOffset = jQuery(elem).parent().attr('ss-offset'); 807 if(ssOffset){ 808 var savedOffset = parseInt(ssOffset); 809 }else{ 810 var savedOffset = (counter ? heateorSsspCounterOffset : heateorSsspSharingOffset); 811 } 812 if(jQuery(elem).attr('title') == 'Hide'){ 813 animation[alignment] = "-=" + (offset + savedOffset); 814 jQuery(elem).parent().animate(animation, 400, function(){ 815 jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title', 'Share'); 816 if(counter){ 817 var cssFloat = alignment == 'left' ? 'right' : 'left'; 818 jQuery(elem).css('float', cssFloat); 819 }else{ 820 jQuery(elem).css('margin' + margin, offset + 'px') 821 } 822 }); 823 }else{ 824 animation[alignment] = "+=" + (offset + savedOffset); 825 jQuery(elem).parent().animate(animation, 400, function(){ 826 jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title', 'Hide'); 827 if(counter){ 828 jQuery(elem).css('float', alignment); 829 }else{ 830 jQuery(elem).css('margin' + margin, '0px'); 831 } 832 }); 833 } 834} 835 836//MYCRED js 837function heateorSsmiMycredPoints(e, t, r, i) { 838 jQuery.ajax({ 839 type: "GET", 840 dataType: "json", 841 url: heateorSsmiAjaxUrl, 842 data: { 843 action: "heateor_sssp_mi_share_click", 844 provider: e, 845 log_provider: "undefined" != typeof t ? t : "", 846 url: r, 847 deduct: "undefined" != typeof i ? i : "" 848 }, 849 success: function(a, b, c) {} 850 }) 851} 852 853function heateorSsmiGpCallback(e) { 854 typeof heateorSsmiEnabled != "undefined" && "on" == e.state ? heateorSsmiMycredPoints("Google_plusone", "", e.href ? e.href : "") : "off" == e.state && heateorSsmiMycredPoints("Google_plusone", "", e.href ? e.href : "", "Minus point(s) for undoing Google +1") 855} 856jQuery(document).on('click', '.heateor_sssp_sharing_container i', function(){ 857 if(typeof heateorSsmiEnabled != "undefined"){ 858 var e = jQuery(this).attr("title"); 859 "More" != e && "Total Shares" != e && ("Google Plus" == e ? e = "Google" : "Float it" == e && (e = "Floatit"), heateorSsmiMycredPoints(e, "", jQuery(this).parents(".heateor_sssp_sharing_container").attr("heateor-sssp-data-href"))); 860 } 861});
862jQuery(document).on('click', '.theChampMoreBackground, .heateorSsspMoreBackground', function(){ 863 if(typeof heateorSsmiEnabled != "undefined"){ 864 jQuery("#the_champ_sharing_more_content li, #heateor_sssp_sharing_more_content li").find("a").click(function(){ 865 heateorSsmiMycredPoints("Other", jQuery(this).find("i").attr("title"), jQuery(this).parents(".the_champ_sharing_container").length ? jQuery(this).parents(".the_champ_sharing_container").attr("heateor-sssp-data-href") : jQuery(this).parents(".heateor_sssp_sharing_container").attr("heateor-sssp-data-href")) 866 }); 867 } 868}); 869 870/*! 871 * clipboard.js v2.0.6 872 * https://clipboardjs.com/ 873 * 874 * Licensed MIT © Zeno Rocha 875 */ 876!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
876else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var d=n(3),h=n(4);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(u=t).addEventListener(s,f),{destroy:function(){u.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,l=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,l)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,l,u,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(5);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o),i="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};function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),this.resolveOptions(t),this.initSelection()}var l=(function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}(c,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=r()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(t){var e=0<arguments.length&&void 0!==t?t:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),c),u=n(1),s=n.n(u),f=n(2),d=n.n(f),h="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}
876,p=function(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t};function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var m=(function(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)}(v,s.a),p(v,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(t){var e=0<arguments.length&&void 0!==t?t:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),v);function v(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v);var n=function(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}(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));return n.resolveOptions(e),n.listenClick(t),n}function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=m}],r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=6).default;function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.