webpackJsonp([0],{"+71d":function(t,e,i){(function(e){function s(t,e,i){e=e||{};for(var s in a)e[s]||(e[s]=a[s]);return r.render(t,e,i)}var n=i("Opvs").default,o={"dm/dm_avatar":i("2g5l")},a=n(o),r=new e.Template({code:function(t,e,i){var s=this;return s.b(i=i||""),s.b('
GIF画像の読み込みができません。
\n \n").addClass("error").html(i.message);this.setUsers(s,!0),this.setTitle(Object(n.default)("エラーが発生しました。"))},this.notifyOpenerDialogClosed=function(){this.trigger(this.openerNode,"uiActivityPopupClosed")},this.setReplyUsersCheckboxState=function(e){var i=this;e&&(this.select("activityUserCheckboxSelector").each(function(s,n){var o=t(n),a=o.closest(i.attr.accountSelector),r=a.attr("data-user-id");o.prop("checked",e.indexOf(r)<0)}),this.updateExcludeAllCheckboxState())},this.updateExcludeAllCheckboxState=function(){var t=this.select("activityUserCheckboxSelector"),e=t.length===t.filter(":checked").length;this.select("activityOtherReplyUsersCheckboxSelector").prop("checked",e)},this.saveExcludedReplyUsers=function(){var e=this.select("activityUserCheckboxSelector").filter(":not(:checked)").toArray().map(function(e){return t(e).closest(this.attr.accountSelector).attr("data-user-id")},this);this.trigger(this.openerNode,"uiActivityPopupSave",{excludeReplyUserIds:e})},this.toggleAllReplyUsers=function(e){this.select("activityUserCheckboxSelector").prop("checked",t(e.target).prop("checked"))},this.after("initialize",function(){this.on(document,"uiRequestActivityPopup",this.requestPopup),this.on(document,"dataActivityPopupSuccess",this.updatePopup),this.on(document,"dataActivityPopupError",this.showError),this.on(document,"uiShowProfilePopup uiOpenTweetDialogWithOptions uiNeedsDMDialog uiOpenSignupDialog",this.close),this.on("change",{activityUserCheckboxSelector:this.updateExcludeAllCheckboxState,activityOtherReplyUsersCheckboxSelector:this.toggleAllReplyUsers}),this.on("uiDialogClosed",this.saveExcludedReplyUsers),this.on("uiDialogClosed",this.notifyOpenerDialogClosed)})}var n=i("0d4m"),o=i("DBjh"),a=i("YzIt"),r=i("UHc7"),c=i("xgWv"),l=i("El2S");e.a=Object(o.default)(s,r.a,l.a,c.a)}).call(e,i("4kSj"))},"1f87":function(t,e,i){"use strict";function s(){this.attributes({conversationContentSelector:".DMConversation-content",notificationDisplayDuration:7e3,mostRecentNotifiedMessageKey:"most_recent_notified_message_id",rollingTagPrefix:"twitterDM",maxSimultaneousNotifications:2,notificationType:"direct_message"}),this.handleUserUpdates=function(t,e){e&&e.notifications&&e.notifications.length&&!this.hasPushSubscription&&this.processNotifications(e.notifications)},this.handleDMPush=function(t,e){this.processNotifications([e])},this.processNotifications=function(t){var e=this.$conversationContainer.attr("data-thread-id"),i=this.isPageFocused()&&this.$conversationContainer.is(":visible"),s=this.storage.getItem(this.attr.mostRecentNotifiedMessageKey)||0,n=t.length?t[t.length-1].id||0:0;this.storage.setItem(this.attr.mostRecentNotifiedMessageKey,o.a.max(n,s)),t.filter(function(t){var n=t.id&&o.a.compare(s,t.id)>=0,a=i&&t.conversation_id.toString()===e;return!n&&!a}).forEach(function(t){this.trigger("uiDisplayNativeNotification",{title:t.title,body:t.body,icon:t.icon,tag:this.getRollingTag(),type:this.attr.notificationType,click:{eventName:"uiDMNotificationClicked",eventData:{conversation_id:t.conversation_id}},displayDuration:this.attr.notificationDisplayDuration})},this)},this.dmNotificationClicked=function(t,e){window.focus(),this.trigger("uiNeedsDMDialog",{conversation_id:e.conversation_id})},this.isPageFocused=function(){return document.hasFocus()},this.getRollingTag=function(){return this.lastTagNumber=this.lastTagNumber||0,this.lastTagNumber=this.lastTagNumber>=this.attr.maxSimultaneousNotifications?1:this.lastTagNumber+1,this.attr.rollingTagPrefix+this.lastTagNumber},this.updatePushSupport=function(t,e){this.hasPushSubscription=!!e.subscribed},this.after("initialize",function(){this.$conversationContainer=this.select("conversationContentSelector"),this.hasPushSubscription=!1,this.on(document,"dataPushSubscriptionState",this.updatePushSupport),this.trigger("uiWantsPushSubscriptionState"),this.on(document,"dataDMUserUpdates",this.handleUserUpdates),this.on(document,"uiDMNotificationClicked",this.dmNotificationClicked),this.on(document,"dataDMPushReceived",this.handleDMPush),this.on(document,"dataDMPushReceived","uiDMRequestUserUpdates"),this.storage=new a.a("dm_notifications")})}var n=i("DBjh"),o=i("lUIe"),a=i("WODX"),r=Object(n.default)(s);e.a=r},"1hKY":function(t,e,i){"use strict";(function(t){function i(){this.onClickOutside=function(e,i){i=i.bind(this),this.clickOutsideHandler=function(s,n){var o=!0;e.each(function(){if(t(s.target).closest(this).length)return o=!1,!1}),o&&i(s,n)},t(document).on("click",this.clickOutsideHandler)},this.offClickOutside=function(){this.clickOutsideHandler&&(t(document).off("click",this.clickOutsideHandler),this.clickOutsideHandler=null)},this.before("teardown",function(){this.offClickOutside()})}e.a=i}).call(e,i("4kSj"))},"1ihI":function(t,e,i){"use strict";(function(t){function s(e,i){i=i||{},this.attr={url:"/i/direct_messages/typeahead",dbName:i.dbName||"dm_typeahead",dbVersion:i.dbVersion||20160920,metadata:{name:"metadata",keyPath:"key"},conversations:{name:"conversations",keyPath:"id",indexes:[{name:"title",keyPath:"title",unique:!1}]},users:{name:"users",keyPath:"id",indexes:[{name:"name_lowercase",keyPath:"name_lowercase",unique:!1},{name:"screen_name",keyPath:"screen_name",unique:!0}]}},this.attr=c.default.merge(this.attr,e),this.after=t.noop,this.defaultAttrs=t.noop,a.default.mixin(this,[l.a]),this.initialize=function(){this.isUsingIndexedDB=!0;var t=this;return this.openIndexedDB(this.attr.dbName,this.attr.dbVersion,[this.attr.metadata,this.attr.users,this.attr.conversations]).then(this.ensureLocalDataBelongsToCurrentUser.bind(this,h.a.user.id)).then(this.checkIfLocalDataHasExpired.bind(this)).then(this.fetchDataIfExpired.bind(this)).then(this.ensureDataAndSchemaVersionMatch.bind(this)).then(this.repopulateDataStore.bind(this)).then(function(){return t.database}).catch(this.onInitializationError.bind(this))},this.getLocalSuggestions=function(t,e){var i=this;return new Promise(function(s,n){var o=function(t){(e||s)(t||[])},a=r.a.tokenizeText(t.query),c=t.dmConversationsOptions||{},l=a.map(function(t){return this.search(t)},i);Promise.all(l).then(u).then(function(t){return c.excludeGroups?i.removeGroups(t):t}).then(function(t){return c.excludeOneToOnes?i.removeOneToOnes(t):t}).then(function(t){return c.sortBySortId?i.sortBySortId(t):t}).then(o,o)})},this.repopulateIfStale=function(t){var e=this;if(t=t||[],t.length){var i=o.a.KeyRange.bound(t[0],t[t.length-1],!1,!1);return this.database.getAll(this.attr.conversations.name,i).then(function(e){return e.length
'),s.b(s.v(s.f("explanation",t,e,0))),s.b("
"),s.fl()},partials:{},subs:{}})}).call(e,i("jTWp"))},"7TGm":function(t,e,i){"use strict";function s(){this.scribeActivityPopupOpen=function(t,e){var i=e.sourceEventData;this.scribe("open",e,{items:[{id:i.contentId,item_type:o.a.tweet}],item_count:1})},this.after("initialize",function(){this.on(document,"dataActivityPopupSuccess",this.scribeActivityPopupOpen)})}var n=i("DBjh"),o=i("rbkv"),a=i("3oDc");e.a=Object(n.default)(s,a.a)},"7VCw":function(t,e,i){"use strict";(function(t){function s(){this.attributes({textSelector:"textarea.TokenizedMultiselect-input",selectedClass:"is-selected",suggestionClass:"DMTypeaheadSuggestions-item",suggestionSelector:".DMTypeaheadSuggestions-item",highlightedClass:"is-highlighted",highlightedSelector:".is-highlighted",suggestionsContainerSelector:".DMTypeaheadSuggestions",tokenIdDelimiter:"::",topAccountsLength:5,accountsDatasource:"dmAccounts",conversationsDatasource:"dmConversations",typeaheadSrc:"compose_message",preselectedItems:[],maxItems:50}),this.buildAccountTemplateData=function(t){var e=t.id_str,i=this.generateTokenId(this.attr.accountsDatasource,e),s=this.isItemSelected(i),n=this.isPreSelected(e),o=n?"":this.attr.suggestionClass,r=this.hasBusinessContext(t),c={emojified_text_as_html:a.a.emojifyText(t.name)};return{data_token_id:i,data_token_text:t.name,suggestion_class:o,title:{text:t.name,rich_text:c,screen_name:t.screen_name,verified:t.verified,protected:!(!t.is_protected&&!t.protected)},avatar:{images:{src:t.profile_image_url_https,alt:t.name}},selected:s,preselected:n,is_group:!1,has_business_context:r}},this.buildGroupTemplateData=function(t){return{data_token_id:this.generateTokenId(this.attr.conversationsDatasource,t.id),data_token_text:t.emojified_title,suggestion_class:this.attr.suggestionClass,html:t.html,is_group:!0}},this.buildTemplateDataFromDMConversation=function(t){return t.is_group?this.buildGroupTemplateData(t):1===t.participants.length?this.buildAccountTemplateData(t.participants[0]):void 0},this.processEmptyQuerySuggestions=function(t){var e=t.suggestions.dmConversations||[],i=e.map(this.buildTemplateDataFromDMConversation.bind(this)),s=h.a.render({suggestions:i,has_suggestions:Boolean(i.length)});this.trigger("uiTokenizedMultiselectSuggestions",{html:s,preserve_previous_hightlight:!1})},this.processNonEmptyQuerySuggestions=function(t){var e=(t.suggestions.dmAccounts||[]).map(this.buildAccountTemplateData.bind(this)),i=(t.suggestions.dmConversations||[]).map(this.buildGroupTemplateData.bind(this)),s=i.length?e.slice(0,this.attr.topAccountsLength):e,n=u.a.render({accounts:s,groups:i,has_accounts:s.length,has_groups:i.length});this.trigger("uiTokenizedMultiselectSuggestions",{html:n,preserve_previous_hightlight:!0})},this.processSuggestions=function(t,e){var i=e.queryData&&e.queryData.query;e.suggestions&&this.currentQuery===i&&(""===i?this.processEmptyQuerySuggestions(e):this.processNonEmptyQuerySuggestions(e))},this.requestEmptyQuerySuggestions=function(){var t=this.attr.preselectedItems||[],e={id:this.typeaheadId,queryData:{query:"",dmConversationsOptions:{excludeGroups:this.selectedItems.length||t.length,sortBySortId:!0,excludeOneToOnes:!1}},datasources:[this.attr.conversationsDatasource]};this.trigger("uiNeedsTypeaheadSuggestions",e)},this.requestSuggestions=function(t,e){if(this.currentQuery=e.text,""===this.currentQuery)return void this.requestEmptyQuerySuggestions();var i=this.attr.preselectedItems||[],s=this.selectedItems.length||i.length,n=s?[this.attr.accountsDatasource]:[this.attr.accountsDatasource,this.attr.conversationsDatasource],o={id:this.typeaheadId,queryData:{query:e.text,typeaheadSrc:this.attr.typeaheadSrc,dmConversationsOptions:{excludeGroups:s,sortBySortId:!1,excludeOneToOnes:!s}},datasources:n};this.trigger("uiNeedsTypeaheadSuggestions",o)},this.splitTokenId=function(t){var e=t.split(this.attr.tokenIdDelimiter);return{datasource:e[0],id:e[1]}},this.handleItemSelected=function(t,e){this.selectedItems=e.selected_items||[];var i=this.selectedItems.map(function(t){var e=this.splitTokenId(t.id);return{datasource:e.datasource,id:e.id,text:t.text}},this),s=i.filter(function(t){return t.datasource===this.attr.accountsDatasource},this).map(function(t){return{id:t.id,name:t.text}}),n=i.filter(function(t){return t.datasource===this.attr.conversationsDatasource},this).map(function(t){return{id:t.id,name:t.text}});this.trigger("uiDMTypeaheadSelectedItemsChanged",{accounts:s,groups:n})},this.generateTokenId=function(t,e){return t+this.attr.tokenIdDelimiter+e},this.isItemSelected=function(e){var i=this.selectedItems.map(function(t){return t.id});return t.inArray(e+"",i||[])>=0},this.isPreSelected=function(e){return t.inArray(e+"",this.attr.preselectedItems||[])>=0},this.hasBusinessContext=function(t){return"enabled"===t.customer_service_state},this.resetAndInitialize=function(t,e){this.select("suggestionsContainerSelector").empty(),this.trigger("uiResetTokenizedMultiselect"),this.attr.preselectedItems=e&&e.preselectedItems&&e.preselectedItems.length?e.preselectedItems:[],e&&e.maxItems&&(this.attr.maxItems=e.maxItems,this.trigger("uiTokenizedMultiSelectMaxItems",{maxItems:e.maxItems})),this.selectedItems=[],this.requestEmptyQuerySuggestions(),this.currentQuery=""},this.after("handleItemSelected",this.requestEmptyQuerySuggestions),this.handleTokenChangeAccessibility=function(t,e){if(this.splitTokenId(e.id).datasource===this.attr.accountsDatasource){var i="uiTokenizedMultiselectTokenAdded"===t.type?Object(n.default)("{{user}}さんを追加",{user:e.text}):Object(n.default)("{{user}}さんを削除",{user:e.text});this.trigger("uiShouldSpeakMessage",{message:i})}},this.after("initialize",function(){this.typeaheadId="dm_typeahead"+Math.floor(1e6*Math.random()),this.attachChild(r.a,this.$node,this.attr),this.on("uiTokenizedMultiselectTokenAdded uiTokenizedMultiselectTokenRemoved",this.handleTokenChangeAccessibility),this.on("uiTokenizedMultiselectTextChanged",this.requestSuggestions),this.on(document,"dataTypeaheadSuggestionsResults",this.processSuggestions),this.on("uiTokenizedMultiselectItemSelectionChanged",this.handleItemSelected),this.on("uiInitializeDMTypeahead",this.resetAndInitialize),this.selectedItems=[],this.requestEmptyQuerySuggestions()})}var n=i("0d4m"),o=i("DBjh"),a=i("tLYs"),r=i("hZQJ"),c=i("AJAn"),l=i("xH9u"),h=i.n(l),d=i("HTfI"),u=i.n(d),f=Object(o.default)(s,c.a);e.a=f}).call(e,i("4kSj"))},"7Xpg":function(t,e,i){"use strict";function s(){this.after("initialize",function(){this.initTextNode()})}var n=i("DBjh"),o=i("pUl/"),a=i("FBSA"),r=Object(n.default)(s,o.a,a.a);e.a=r},"7j8l":function(t,e,i){var s;!function(n,o){void 0!==(s=function(){return n.TwitterVideoPlayer=o()}.call(e,i,e,t))&&(t.exports=s)}(this,function(){function t(t){if(t&&t.data&&t.data.params&&t.data.params[0]){var e=t.data.params[0],i=t.data.id;if(e&&e.context&&"TwitterVideoPlayer"===e.context){var s=e.playerId;delete e.playerId,delete e.context;var n=r[s];n&&n.processMessage(t.data.method,e,i)}}}function e(t,e,i){var s=Object.keys(i).filter(function(t){return null!=i[t]}).map(function(t){var e=i[t];return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&");return s&&(s="?"+s),t+e+s}function i(i,n,o,c,l){i.ownerDocument.defaultView.addEventListener("message",t),this.playerId=a++;var h={embed_source:"clientlib",player_id:this.playerId,rpc_init:1};if(this.scribeParams={},this.scribeParams.suppressScribing=c&&c.suppressScribing,!this.scribeParams.suppressScribing){if(!c.scribeContext)throw"video_player: Missing scribe context";if(!c.scribeContext.client)throw"video_player: Scribe context missing client property";this.scribeParams.client=c.scribeContext.client,this.scribeParams.page=c.scribeContext.page,this.scribeParams.section=c.scribeContext.section,this.scribeParams.component=c.scribeContext.component}this.scribeParams.debugScribe=c&&c.scribeContext&&c.scribeContext.debugScribing,this.scribeParams.scribeUrl=c&&c.scribeContext&&c.scribeContext.scribeUrl,this.promotedLogParams=c.promotedContext,this.adRequestCallback=c.adRequestCallback,c.languageCode&&(h.language_code=c.languageCode);var d=e(s,n,h);return this.videoIframe=document.createElement("iframe"),this.videoIframe.setAttribute("src",d),this.videoIframe.setAttribute("allowfullscreen",""),this.videoIframe.setAttribute("id",o),this.videoIframe.setAttribute("style","width: 100%; height: 100%; position: absolute; top: 0; left: 0;"),this.domElement=i,this.domElement.appendChild(this.videoIframe),r[this.playerId]=this,this.eventCallbacks={},this.emitEvent=function(t,e){var i=this.eventCallbacks[t];void 0!==i&&i.forEach(function(t){t.apply(this.playerInterface,[e])}.bind(this))},this.jsonRpc=function(t){var e=this.videoIframe.contentWindow;t.jsonrpc="2.0",e&&e.postMessage&&e.postMessage(JSON.stringify(t),"*")},this.jsonRpcCall=function(t,e){this.jsonRpc({method:t,params:e})},this.jsonRpcResult=function(t,e){this.jsonRpc({result:t,id:e})},this.processMessage=function(t,e,i){switch(t){case"requestPlayerConfig":this.jsonRpcResult({scribeParams:this.scribeParams,promotedLogParams:this.promotedLogParams,squareCorners:c.squareCorners,borderRadius:c.borderRadius,hideControls:c.hideControls,embedded:c.addTwitterBranding,ignoreFineGrainGeoblocking:c.ignoreFineGrainGeoblocking},i);break;case"videoPlayerAdStart":this.emitEvent("adStart",e);break;case"videoPlayerAdEnd":this.emitEvent("adEnd",e);break;case"videoPlayerPlay":this.emitEvent("play",e);break;case"videoPlayerPause":this.emitEvent("pause",e);break;case"videoPlayerMute":this.emitEvent("mute",e);break;case"videoPlayerUnmute":this.emitEvent("unmute",e);break;case"videoPlayerPlaybackComplete":this.emitEvent("playbackComplete",e);break;case"videoPlayerReady":this.emitEvent("ready",e);break;case"videoView":this.emitEvent("view",e);break;case"debugLoggingEvent":this.emitEvent("logged",e);break;case"requestDynamicAd":"function"==typeof this.adRequestCallback?this.jsonRpcResult(this.adRequestCallback(),i):this.jsonRpcResult({},i);break;case"videoPlayerError":e&&"NO_COOKIES_ERROR"===e.error_category?this.emitEvent("noCookiesError",e):e&&"GEOBLOCK_ERROR"===e.error_category&&this.emitEvent("geoblockError",e)}},this.playerInterface={on:function(t,e){return void 0===this.eventCallbacks[t]&&(this.eventCallbacks[t]=[]),this.eventCallbacks[t].push(e),this.playerInterface}.bind(this),off:function(t,e){if(void 0===e)delete this.eventCallbacks[t];else{var i=this.eventCallbacks[t];if(void 0!==i){var s=i.indexOf(e);s>-1&&i.splice(s,1)}}return this.playerInterface}.bind(this),play:function(){return this.jsonRpcCall("play"),this.playerInterface}.bind(this),pause:function(){return this.jsonRpcCall("pause"),this.playerInterface}.bind(this),mute:function(){return this.jsonRpcCall("mute"),this.playerInterface}.bind(this),unmute:function(){return this.jsonRpcCall("unmute"),this.playerInterface}.bind(this),playPreview:function(){return this.jsonRpcCall("autoPlayPreview"),this.playerInterface}.bind(this),pausePreview:function(){return this.jsonRpcCall("autoPlayPreviewStop"),this.playerInterface}.bind(this),updatePosition:function(t){return this.jsonRpcCall("updatePosition",[t]),this.playerInterface}.bind(this),updateLayoutBreakpoint:function(t){return this.jsonRpcCall("updateLayoutBreakpoint",[t]),this.playerInterface}.bind(this),enterFullScreen:function(){return this.jsonRpcCall("enterFullScreen"),this.playerInterface}.bind(this),exitFullScreen:function(){return this.jsonRpcCall("exitFullScreen"),this.playerInterface}.bind(this),teardown:function(){this.eventCallbacks={},i.removeChild(this.videoIframe),this.videoIframe=void 0,delete r[this.playerId]}.bind(this)},this.playerInterface}var s="https://twitter.com",n=/^https?:\/\/([a-zA-Z0-9]+\.)*twitter.com(:\d+)?$/,o={suppressScribing:!1,squareCorners:!1,hideControls:!1,addTwitterBranding:!1},a=0,r={};return{setBaseUrl:function(t){n.test(t)?s=t:window.console.error("newBaseUrl "+t+" not allowed")},createPlayerForTweet:function(t,e,s){return new i(t,"/i/videos/tweet/"+e,"player_tweet_"+e,s||o)},createPlayerForDm:function(t,e,s){return new i(t,"/i/videos/dm/"+e,"player_dm_"+e,s||o)},createPlayerForLiveVideo:function(t,e,s){return new i(t,"/i/videos/live_video/"+e,"player_live_video_"+e,s||o)},findPlayerForElement:function(t){for(var e in r)if(r.hasOwnProperty(e)){var i=r[e];if(i&&i.domElement===t)return i.playerInterface}return null}}})},"7tcb":function(t,e,i){"use strict";function s(){this.defaultAttrs({dropdownThresholdSelector:".dropdown-threshold"}),this.scrollIntoView=function(){var t=this.$node.closest(this.attr.dropdownThresholdSelector),e=void 0,i=void 0;t.length&&(e=this.$node.find(this.attr.dropDownSelector),(i=e.offset().top+e.outerHeight()-(t.offset().top+t.height()))>0&&t.animate({scrollTop:t.scrollTop()+i}))},this.after("initialize",function(){this.on("uiDropdownOpened",this.scrollIntoView),this.on(document,"uiHasInjectedNewTimeline uiHasInjectedOldTimelineItems uiHasInjectedRangeTimelineItems",this.applyARIAAttrs)})}var n=i("DBjh"),o=i("mGri"),a=Object(n.default)(o.a,s);e.a=a},"8/gf":function(t,e,i){"use strict";var s=i("0d4m"),n=i("9TDk"),o=i("IAMj"),a=i("9eqS"),r=i.n(a);e.a=function(t){var e=r.a.render({article_number:"20172128"});switch(t){case n.a.INVALID_MEDIA:return Object(s.default)("動画のアップロードができませんでした。詳細をご確認ください。 {{learnMoreLink}}",{learnMoreLink:e});case n.a.FILE_TOO_LARGE:return Object(s.default)("動画のサイズが大きすぎます。最大{{maxSize}} MB以内にしてください。{{learnMoreLink}}",{maxSize:o.a.getDeciderValue("upload_video_size"),learnMoreLink:e});case n.a.UNSUPPORTED_MEDIA:return Object(s.default)("この動画ファイルは互換性がありません。詳細はこちらをご参照ください。{{learnMoreLink}}",{learnMoreLink:e})}}},"84/5":function(t,e,i){"use strict";(function(t){function s(){this.defaultAttrs({richEditorTextSelector:"div.rich-editor",linksSelector:"a",hashtagSelector:".twitter-hashtag",pictographsSelector:".RichEditor-pictographs",pictographTextSelector:".RichEditor-pictographText",pictographImageSelector:".RichEditor-pictographImage",richEditorSelector:".RichEditor",pictographTextClass:"RichEditor-pictographText",tempTextAreaClass:"RichEditor-tempTextArea",fakeFocusClass:"is-fakeFocus",singleLineClass:"is-singleLine",plainTextClass:"is-plainText",hashflagsEnabled:!1,twitterTextOptions:g.a.defaults}),this.linkify=function(t){var e=this,i={urlTarget:null,textWithSymbolTag:x?"b":"",linkAttributeBlock:function(t,i){var s=t.screenName||t.url;s&&(e.urlAndMentionsCharCount+=s.length+2),delete i.title,delete i["data-screen-name"],i.dir=t.hashtag&&e.shouldBeRTL(t.hashtag,0)?"rtl":"ltr",i.role="presentation"}};return this.urlAndMentionsCharCount=0,f.a.linkify(t,i)},this.setSelection=function(t){t&&this.setSelectionIfFocused(t)},this.getSelection=function(){return this.previousSelection||this.htmlRich.getSelectionOffsets()},this.around("setCursorPosition",function(t,e){void 0===e&&(e=this.cursorPosition),void 0===e&&(e=A),this.setSelectionIfFocused([e]),this.detectUpdatedCursorPosition(e)}),this.isInputMethodEditorInComposition=function(){return this.$text.attr("data-in-composition")},this.isEmoji=function(t){return c.a.regex.lastIndex=0,c.a.regex.test(t)},this.around("detectUpdatedText",function(t,e,i){var s=this.htmlRich.getHtml(),n=this.htmlRich.getSelectionOffsets()||this.previousSelection||[A],o=void 0!==i;if(s!==this.prevHtml||e||o){var a=o?i:this.htmlRich.getText(),r=a.replace(D,"");if(2===n.length&&this.isInputMethodEditorInComposition()){var c=a.substr(n[0],n[1]-n[0]),l=a.substr(n[1]);if(j.test(l)){this.caughtIMEBug=!0;for(var h=j.exec(l)[1],d=c+h,u=c,f=1;f