mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-30 07:46:28 +00:00
3 lines
88 KiB
JavaScript
3 lines
88 KiB
JavaScript
|
"use strict";(function(){var f=this,e=f.EmojiConvertor,a=function(){var f=this;return f.img_set="apple",f.img_sets={apple:{path:"/emoji-data/img-apple-64/",sheet:"/emoji-data/sheet_apple_64.png",mask:1},google:{path:"/emoji-data/img-google-64/",sheet:"/emoji-data/sheet_google_64.png",mask:2},twitter:{path:"/emoji-data/img-twitter-64/",sheet:"/emoji-data/sheet_twitter_64.png",mask:4},emojione:{path:"/emoji-data/img-emojione-64/",sheet:"/emoji-data/sheet_emojione_64.png",mask:8},facebook:{path:"/emoji-data/img-facebook-64/",sheet:"/emoji-data/sheet_facebook_64.png",mask:16},messenger:{path:"/emoji-data/img-messenger-64/",sheet:"/emoji-data/sheet_messenger_64.png",mask:32}},f.use_css_imgs=!1,f.colons_mode=!1,f.text_mode=!1,f.include_title=!1,f.include_text=!1,f.allow_native=!0,f.use_sheet=!1,f.avoid_ms_emoji=!0,f.allow_caps=!1,f.img_suffix="",f.inits={},f.map={},f.init_env(),f};a.prototype.noConflict=function(){return f.EmojiConvertor=e,a},a.prototype.replace_emoticons=function(f){var e=this,a=e.replace_emoticons_with_colons(f);return e.replace_colons(a)},a.prototype.replace_emoticons_with_colons=function(f){var e=this;e.init_emoticons();var a=0,o=[],t=f.replace(e.rx_emoticons,function(t,i,n,l){var r=a;a=l+t.length;var c=-1!==n.indexOf("("),_=-1!==n.indexOf(")");if((c||_)&&-1==o.indexOf(n)&&o.push(n),_&&!c){var s=f.substring(r,l);if(-1!==s.indexOf("(")&&-1===s.indexOf(")"))return t}if("\n8)"===t){var d=f.substring(0,l);if(/\n?(6\)|7\))/.test(d))return t}var g=e.data[e.map.emoticons[n]][3][0];return g?i+":"+g+":":t});if(o.length){var i=o.map(e.escape_rx),n=new RegExp("(\\(.+)("+i.join("|")+")(.+\\))","g");t=t.replace(n,function(f,a,o,t){var i=e.data[e.map.emoticons[o]][3][0];return i?a+":"+i+":"+t:f})}return t},a.prototype.replace_colons=function(f){var e=this;return e.init_colons(),f.replace(e.rx_colons,function(f){var a=f.substr(1,f.length-2);if(e.allow_caps&&(a=a.toLowerCase()),a.indexOf("::skin-tone-")>-1){var o=a.substr(-1,1),t="skin-tone-"+o,i=e.map.colons[t];a=a.substr(0,a.length-13);var n=e.map.colons[a];return n?e.replacement(n,a,":",{idx:i,actual:t,wrapper:":"}):":"+a+":"+e.replacement(i,t,":")}var n=e.map.colons[a];return n?e.replacement(n,a,":"):f})},a.prototype.replace_unified=function(f){var e=this;return e.init_unified(),f.replace(e.rx_unified,function(f,a,o){var t=e.map.unified[a];if(!t)return f;var i=null;return"🏻"==o&&(i="1f3fb"),"🏼"==o&&(i="1f3fc"),"🏽"==o&&(i="1f3fd"),"🏾"==o&&(i="1f3fe"),"🏿"==o&&(i="1f3ff"),i?e.replacement(t,null,null,{idx:i,actual:o,wrapper:""}):e.replacement(t)})},a.prototype.addAliases=function(f){var e=this;e.init_colons();for(var a in f)e.map.colons[a]=f[a]},a.prototype.removeAliases=function(f){for(var e=this,a=0;a<f.length;a++){var o=f[a];delete e.map.colons[o];f:for(var t in e.data)for(var i=0;i<e.data[t][3].length;i++)if(o==e.data[t][3][i]){e.map.colons[o]=t;break f}}},a.prototype.replacement=function(f,e,a,o){var t=this,i=f,n="",l=0;"object"==typeof o&&(n=t.replacement(o.idx,o.actual,o.wrapper),l=f+"-"+o.idx);var r=t.img_set;if(t.use_sheet&&t.supports_css||t.data[f][6]&t.img_sets[t.img_set].mask||(r="apple"),a=a||"",t.colons_mode)return":"+t.data[f][3][0]+":"+n;var c=e?a+e+a:t.data[f][8]||a+t.data[f][3][0]+a;if(t.text_mode)return c+n;if(t.init_env(),"unified"==t.replace_mode&&t.allow_native&&t.data[f][0][0])return t.data[f][0][0]+n;if("softbank"==t.replace_mode&&t.allow_native&&t.data[f][1])return t.data[f][1]+n;if("google"==t.replace_mode&&t.allow_native&&t.data[f][2])return t.data[f][2]+n;var _=t.data[f][7]||t.img_sets[r].path+f+".png"+t.img_suffix,s=t.include_title?' title="'+(e||t.data[f][3][0])+'"':"",d=t.include_text?a+(e||t.data[f][3][0])+a:"",g=t.data[f][4],b=t.data[f][5];if(l&&t.variations_data[l]&&t.variations_data[l][2]&&!t.data[f][7]&&t.variations_data[l][2]&t.img_sets[t.img_set].mask&&(_=t.img_sets[t.img_set].path+l+".png",g=t.variations_data[l][0],b=t.variations_data[l][1],n="",i=l,t.include_text&&o&&o.actual&&o.wrapper&&(d+=o.wrapper+o.actual+o.wrapper)),t.supports_css){if(t.use_sheet&&null!=g&&null!=b){var m=100/(t.sheet_size-1),p="background: url(
|
|||
|
"1f43a":[["🐺"],"","",["wolf"],13,22,15,0],"1f43b":[["🐻"],"","",["bear"],13,23,15,0],"1f43c":[["🐼"],"","",["panda_face"],13,24,15,0],"1f43d":[["🐽"],"","",["pig_nose"],13,25,15,0],"1f43e":[["🐾"],"","",["feet","paw_prints"],13,26,15,0],"1f43f":[["🐿"],"","",["chipmunk"],13,27,15,0],"1f440":[["👀"],"","",["eyes"],13,28,15,0],"1f441":[["👁"],"","",["eye"],13,29,15,0],"1f442":[["👂"],"","",["ear"],13,30,15,0],"1f443":[["👃"],"","",["nose"],13,36,15,0],"1f444":[["👄"],"","",["lips"],14,1,15,0],"1f445":[["👅"],"","",["tongue"],14,2,15,0],"1f446":[["👆"],"","",["point_up_2"],14,3,15,0],"1f447":[["👇"],"","",["point_down"],14,9,15,0],"1f448":[["👈"],"","",["point_left"],14,15,15,0],"1f449":[["👉"],"","",["point_right"],14,21,15,0],"1f44a":[["👊"],"","",["facepunch","punch"],14,27,15,0],"1f44b":[["👋"],"","",["wave"],14,33,15,0],"1f44c":[["👌"],"","",["ok_hand"],14,39,15,0],"1f44d":[["👍"],"","",["+1","thumbsup"],15,4,15,0],"1f44e":[["👎"],"","",["-1","thumbsdown"],15,10,15,0],"1f44f":[["👏"],"","",["clap"],15,16,15,0],"1f450":[["👐"],"","",["open_hands"],15,22,15,0],"1f451":[["👑"],"","",["crown"],15,28,15,0],"1f452":[["👒"],"","",["womans_hat"],15,29,15,0],"1f453":[["👓"],"","",["eyeglasses"],15,30,15,0],"1f454":[["👔"],"","",["necktie"],15,31,15,0],"1f455":[["👕"],"","",["shirt","tshirt"],15,32,15,0],"1f456":[["👖"],"","",["jeans"],15,33,15,0],"1f457":[["👗"],"","",["dress"],15,34,15,0],"1f458":[["👘"],"","",["kimono"],15,35,15,0],"1f459":[["👙"],"","",["bikini"],15,36,15,0],"1f45a":[["👚"],"","",["womans_clothes"],15,37,15,0],"1f45b":[["👛"],"","",["purse"],15,38,15,0],"1f45c":[["👜"],"","",["handbag"],15,39,15,0],"1f45d":[["👝"],"","",["pouch"],15,40,15,0],"1f45e":[["👞"],"","",["mans_shoe","shoe"],16,0,15,0],"1f45f":[["👟"],"","",["athletic_shoe"],16,1,15,0],"1f460":[["👠"],"","",["high_heel"],16,2,15,0],"1f461":[["👡"],"","",["sandal"],16,3,15,0],"1f462":[["👢"],"","",["boot"],16,4,15,0],"1f463":[["👣"],"","",["footprints"],16,5,15,0],"1f464":[["👤"],"","",["bust_in_silhouette"],16,6,15,0],"1f465":[["👥"],"","",["busts_in_silhouette"],16,7,15,0],"1f466":[["👦"],"","",["boy"],16,8,15,0],"1f467":[["👧"],"","",["girl"],16,14,15,0],"1f468":[["👨"],"","",["man"],16,20,15,0],"1f469":[["👩"],"","",["woman"],16,26,15,0],"1f46a":[["👨👩👦","👪"],"","",["family","man-woman-boy"],16,32,15,0],"1f46b":[["👫"],"","",["couple","man_and_woman_holding_hands"],16,33,15,0],"1f46c":[["👬"],"","",["two_men_holding_hands"],16,34,15,0],"1f46d":[["👭"],"","",["two_women_holding_hands"],16,35,15,0],"1f46e":[["👮"],"","",["cop"],16,36,15,0],"1f46f":[["👯"],"","",["dancers"],17,1,15,0],"1f470":[["👰"],"","",["bride_with_veil"],17,2,15,0],"1f471":[["👱"],"","",["person_with_blond_hair"],17,8,15,0],"1f472":[["👲"],"","",["man_with_gua_pi_mao"],17,14,15,0],"1f473":[["👳"],"","",["man_with_turban"],17,20,15,0],"1f474":[["👴"],"","",["older_man"],17,26,15,0],"1f475":[["👵"],"","",["older_woman"],17,32,15,0],"1f476":[["👶"],"","",["baby"],17,38,15,0],"1f477":[["👷"],"","",["construction_worker"],18,3,15,0],"1f478":[["👸"],"","",["princess"],18,9,15,0],"1f479":[["👹"],"","",["japanese_ogre"],18,15,15,0],"1f47a":[["👺"],"","",["japanese_goblin"],18,16,15,0],"1f47b":[["👻"],"","",["ghost"],18,17,15,0],"1f47c":[["👼"],"","",["angel"],18,18,15,0],"1f47d":[["👽"],"","",["alien"],18,24,15,0],"1f47e":[["👾"],"","",["space_invader"],18,25,15,0],"1f47f":[["👿"],"","",["imp"],18,26,15,0],"1f480":[["💀"],"","",["skull"],18,27,15,0],"1f481":[["💁"],"","",["information_desk_person"
|
|||
|
"1f1ec-1f1f3":[["🇬🇳"],"","",["flag-gn"],35,0,15,0],"1f1ec-1f1f5":[["🇬🇵"],"","",["flag-gp"],35,1,13,0],"1f1ec-1f1f6":[["🇬🇶"],"","",["flag-gq"],35,2,15,0],"1f1ec-1f1f7":[["🇬🇷"],"","",["flag-gr"],35,3,15,0],"1f1ec-1f1f8":[["🇬🇸"],"","",["flag-gs"],35,4,13,0],"1f1ec-1f1f9":[["🇬🇹"],"","",["flag-gt"],35,5,15,0],"1f1ec-1f1fa":[["🇬🇺"],"","",["flag-gu"],35,6,15,0],"1f1ec-1f1fc":[["🇬🇼"],"","",["flag-gw"],35,7,15,0],"1f1ec-1f1fe":[["🇬🇾"],"","",["flag-gy"],35,8,15,0],"1f1ed-1f1f0":[["🇭🇰"],"","",["flag-hk"],35,9,15,0],"1f1ed-1f1f2":[["🇭🇲"],"","",["flag-hm"],35,10,13,0],"1f1ed-1f1f3":[["🇭🇳"],"","",["flag-hn"],35,11,15,0],"1f1ed-1f1f7":[["🇭🇷"],"","",["flag-hr"],35,12,15,0],"1f1ed-1f1f9":[["🇭🇹"],"","",["flag-ht"],35,13,15,0],"1f1ed-1f1fa":[["🇭🇺"],"","",["flag-hu"],35,14,15,0],"1f1ee-1f1e8":[["🇮🇨"],"","",["flag-ic"],35,15,15,0],"1f1ee-1f1e9":[["🇮🇩"],"","",["flag-id"],35,16,15,0],"1f1ee-1f1ea":[["🇮🇪"],"","",["flag-ie"],35,17,15,0],"1f1ee-1f1f1":[["🇮🇱"],"","",["flag-il"],35,18,15,0],"1f1ee-1f1f2":[["🇮🇲"],"","",["flag-im"],35,19,15,0],"1f1ee-1f1f3":[["🇮🇳"],"","",["flag-in"],35,20,15,0],"1f1ee-1f1f4":[["🇮🇴"],"","",["flag-io"],35,21,15,0],"1f1ee-1f1f6":[["🇮🇶"],"","",["flag-iq"],35,22,15,0],"1f1ee-1f1f7":[["🇮🇷"],"","",["flag-ir"],35,23,15,0],"1f1ee-1f1f8":[["🇮🇸"],"","",["flag-is"],35,24,15,0],"1f1ee-1f1f9":[["🇮🇹"],"","",["flag-it","it"],35,25,15,0],"1f1ef-1f1ea":[["🇯🇪"],"","",["flag-je"],35,26,15,0],"1f1ef-1f1f2":[["🇯🇲"],"","",["flag-jm"],35,27,15,0],"1f1ef-1f1f4":[["🇯🇴"],"","",["flag-jo"],35,28,15,0],"1f1ef-1f1f5":[["🇯🇵"],"","",["flag-jp","jp"],35,29,15,0],"1f1f0-1f1ea":[["🇰🇪"],"","",["flag-ke"],35,30,15,0],"1f1f0-1f1ec":[["🇰🇬"],"","",["flag-kg"],35,31,15,0],"1f1f0-1f1ed":[["🇰🇭"],"","",["flag-kh"],35,32,15,0],"1f1f0-1f1ee":[["🇰🇮"],"","",["flag-ki"],35,33,15,0],"1f1f0-1f1f2":[["🇰🇲"],"","",["flag-km"],35,34,15,0],"1f1f0-1f1f3":[["🇰🇳"],"","",["flag-kn"],35,35,15,0],"1f1f0-1f1f5":[["🇰🇵"],"","",["flag-kp"],35,36,15,0],"1f1f0-1f1f7":[["🇰🇷"],"","",["flag-kr","kr"],35,37,15,0],"1f1f0-1f1fc":[["🇰🇼"],"","",["flag-kw"],35,38,15,0],"1f1f0-1f1fe":[["🇰🇾"],"","",["flag-ky"],35,39,15,0],"1f1f0-1f1ff":[["🇰🇿"],"","",["flag-kz"],35,40,15,0],"1f1f1-1f1e6":[["🇱🇦"],"","",["flag-la"],36,0,15,0],"1f1f1-1f1e7":[["🇱🇧"],"","",["flag-lb"],36,1,15,0],"1f1f1-1f1e8":[["🇱🇨"],"","",["flag-lc"],36,2,15,0],"1f1f1-1f1ee":[["🇱🇮"],"","",["flag-li"],36,3,15,0],"1f1f1-1f1f0":[["🇱🇰"],"","",["flag-lk"],36,4,15,0],"1f1f1-1f1f7":[["🇱🇷"],"","",["flag-lr"],36,5,15,0],"1f1f1-1f1f8":[["🇱🇸"],"","",["flag-ls"],36,6,15,0],"1f1f1-1f1f9":[["🇱🇹"],"","",["flag-lt"],36,7,15,0],"1f1f1-1f1fa":[["🇱🇺"],"","",["flag-lu"],36,8,15,0],"1f1f1-1f1fb":[["🇱🇻"],"","",["flag-lv"],36,9,15,0],"1f1f1-1f1fe":[["🇱🇾"],"","",["flag-ly"],36,10,15,0],"1f1f2-1f1e6":[["🇲🇦"],"","",["flag-ma"],36,11,15,0],"1f1f2-1f1e8":[["🇲🇨"],"","",["flag-mc"],36,12,15,0],"1f1f2-1f1e9":[["🇲🇩"],"","",["flag-md"],36,13,15,0],"1f1f2-1f1ea":[["🇲🇪"],"","",["flag-me"],36,14,15,0],"1f1f2-1f1eb":[["🇲🇫"],"","",["flag-mf"],36,15,13,0],"1f1f2-1f1ec":[["🇲🇬"],"","",["flag-mg"],36,16,15,0],"1f1f2-1f1ed":[["🇲🇭"],"","",["flag-mh"],36,17,15,0],"1f1f2-1f1f0":[["🇲🇰"],"","",["flag-mk"],36,18,15,0],"1f1f2-1f1f1":[["🇲🇱"],"","",["flag-ml"],36,19,15,0],"1f1f2-1f1f2":[["🇲🇲"],"","",["flag-mm"],36,20,15,0],"1f1f2-1f1f3":[["🇲🇳"],"","",["flag-mn"],36,21,15,0],"1f1f2-1f1f4":[["🇲🇴"],"","",["flag-mo"],36,22,15,0],"1f1f2-1f1f5":[["🇲🇵"],"","",["flag-mp"],36,23,15,0],"1f1f2-1f1f6":[["🇲🇶"],"","",["flag-mq"],36,24,13,0],"1f1f2-1f1f7":[["🇲🇷"],"","",["flag-mr"],36,25,15,0],"1f1f2-1f1f8":[["🇲🇸"],"","",["flag-ms"],36,26,15,0],"1f1f2-1f1f9":[["🇲🇹"],"","",["flag-mt"],36,27,15,0],"1f1f2-1f1fa":[["🇲🇺"],"","",["flag-mu"],36,28,15,0],"1f1f2-1f1fb":[["<EFBFBD><EFBFBD>
|