if (self.CavalryLogger) { CavalryLogger.start_js(["X4j+a"]); }

__d("BrowseClientSizeLogger",["BanzaiLogger","DataAttributeUtils","getElementPosition"],(function a(b,c,d,e,f,g){var h={log:function i(j){var k=c("DataAttributeUtils").getDataAttribute(j,"data-xt"),l=JSON.parse(k.substring(k.indexOf("{"))),m=c("getElementPosition")(j);l.client_height=m.height;l.client_width=m.width;l.raw_id=+l.raw_id;c("BanzaiLogger").log("SearchResultsClientSizeLoggerConfig",l)}};f.exports=h}),null);
__d("NodeHighlighter",["DOM","TokenizeUtil","concatMap","escapeRegex","getElementText","isTextNode"],(function a(b,c,d,e,f,g){__p&&__p();var h={};function i(l,m){var n=c("getElementText")(l).split(m),o=n.map(function(p){if(m.test(p))return j(p);return p||""});return n.length>1?o:null}function j(l){var m=c("DOM").create("span",{"class":"highlightNode",className:"highlightNode"},l);return m}var k={getTextNodes:function l(m){if(this.isLeafNode(m)||this.isStopNode(m))return m;else if(this.isDiscardNode(m))return[];return c("concatMap")(this.getTextNodes.bind(this),Array.from(m.childNodes))},getHighlightCandidates:function l(){return[]},isLeafNode:function l(m){return c("isTextNode")(m)},isStopNode:function l(m){return false},isDiscardNode:function l(m){return false},createSegmentedRegex:function l(m){var n=c("TokenizeUtil").getPunctuation();m=this.escapeAndAddBidirectionalCharsToTokens(m);m=m.map(function(o){o=o.split(/\s+/).join("(?:"+n+"|\\s)+");return o});return"(^|\\s|"+n+")("+m.join("|")+")(?=(?:$|\\s|"+n+"))"},createNonSegmentedRegex:function l(m){return"("+m.map(c("escapeRegex")).join("|")+")"},escapeAndAddBidirectionalCharsToTokens:function l(m){var n="[\\u200E\\u200F\\u202A\\u202B\\u202C\\u202D\\u202E]*";return m.map(function(o){return n+String(o).split("").map(c("escapeRegex")).join(n)+n})},createRegex:function l(m){__p&&__p();m=m.filter(function(t){return t});if(!m||m.length===0)return new RegExp(null);var n=m.join("|");if(h[n])return h[n];var o=/[\u0E00-\u109F\u2000-\uFFFF]/,p=[],q=[];m.forEach(function(t){if(o.test(t))q.push(t);else p.push(t)});var r="";if(p.length){r+=this.createSegmentedRegex(p);r+=q.length?"|":""}if(q.length)r+=this.createNonSegmentedRegex(q);var s=new RegExp(r,"i");h[n]=s;return s},searchNodes:function l(m,n){return c("DOM").scry(m,n)},highlight:function l(m,n){__p&&__p();n=n.filter(function(q){return q});if(!n||n.length===0||!m)return;var o=c("concatMap")(function(q){return c("concatMap")(this.getTextNodes.bind(this),this.searchNodes(m,q))}.bind(this),this.getHighlightCandidates()),p=this.createRegex(n);o.forEach(function(q){var r=i(q,p);if(r)if(this.isStopNode(q))c("DOM").setContent(q,r);else c("DOM").replace(q,r)}.bind(this))}};f.exports=k}),null);
__d("BrowseFacebarHighlighter",["csx","CSS","NodeHighlighter"],(function a(b,c,d,e,f,g,h){"use strict";var i={};Object.assign(i,c("NodeHighlighter"),{getHighlightCandidates:function j(){return["._53ad"]},isDiscardNode:function j(k){return c("CSS").hasClass(k,"DefaultText")},createSegmentedRegex:function j(k){k=this.escapeAndAddBidirectionalCharsToTokens(k);return"(^|\\s|\\b)("+k.join("|")+")"}});f.exports=i}),null);
__d("BrowseTopFiltersFullWidth",["cx","Arbiter","CSS","NavigationMessage","SubscriptionsHandler"],(function a(b,c,d,e,f,g,h){var i,j=/(facebook\.com\/(search|hashtag|topic)\/)/,k={init:function l(){c("CSS").addClass(document.body,"_4dik");i=new(c("SubscriptionsHandler"))();i.addSubscriptions(c("Arbiter").subscribe(c("NavigationMessage").NAVIGATION_FIRST_RESPONSE,this.cleanup));c("Arbiter").inform("browse_top_filters_full_width_displayed")},cleanup:function l(){i&&i.release();if(!window.location.href.match(j))c("CSS").removeClass(document.body,"_4dik")}};f.exports=k}),null);
__d("BrowseTopFiltersNone",["cx","CSS"],(function a(b,c,d,e,f,g,h){var i={init:function j(){c("CSS").removeClass(document.body,"_4dik")}};f.exports=i}),null);
__d("TypeaheadFacepile",["DOM"],(function a(b,c,d,e,f,g){function h(){}h.render=function(i){var j=[c("DOM").create("span",{className:"splitpic leftpic"},[c("DOM").create("img",{alt:"",src:i[0]})]),c("DOM").create("span",{className:"splitpic"+(i[2]?" toppic":"")},[c("DOM").create("img",{alt:"",src:i[1]})])];if(i[2])j.push(c("DOM").create("span",{className:"splitpic bottompic"},[c("DOM").create("img",{alt:"",src:i[2]})]));return c("DOM").create("span",{className:"splitpics clearfix"},j)};f.exports=h}),null);
__d("Typeahead",["ArbiterMixin","BehaviorsMixin","DataStore","DOM","Event","Parent","Run","Style","emptyFunction","ge","mixin"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("mixin")(c("ArbiterMixin"),c("BehaviorsMixin")));i=h&&h.prototype;function j(k,l,m,n){"use strict";i.constructor.call(this);this.args={data:k,view:l,core:m};c("DataStore").set(n,"Typeahead",this);this.element=n}j.prototype.init=function(k){"use strict";this.init=c("emptyFunction");this.getCore();this.getView().setAccessibilityControlElement(this.getCore().getElement());this.proxyEvents();this.initBehaviors(k||[]);this.inform("init",this);this.data.bootstrap();this.core.focus()};j.prototype.getData=function(){"use strict";if(!this.data){var k=this.args.data;this.data=k;this.data.init()}return this.data};j.prototype.getView=function(){"use strict";__p&&__p();if(!this.view){var k=this.args.view,l=k.node||c("ge")(k.node_id);if(!l){l=c("DOM").create("div",{className:"uiTypeaheadView"});c("DOM").appendContent(this.element,l)}if(typeof k.ctor==="string")this.view=new window[k.ctor](l,k.options||{});else this.view=new k.ctor(l,k.options||{});this.view.init();this.view.setTypeahead(this.element)}return this.view};j.prototype.getCore=function(){"use strict";if(!this.core){var k=this.args.core;if(typeof k.ctor==="string")this.core=new window[k.ctor](k.options||{});else this.core=new k.ctor(k.options||{});this.core.init(this.getData(),this.getView(),this.getElement())}return this.core};j.prototype.getElement=function(){"use strict";return this.element};j.prototype.setHeight=function(k){"use strict";if(k!=="auto")k+="px";c("Style").set(this.element,"height",k)};j.prototype.swapData=function(k){"use strict";return this.$Typeahead1(k,true)};j.prototype.swapDataNoCoreReset=function(k){"use strict";return this.$Typeahead1(k,false)};j.prototype.$Typeahead1=function(k,l){"use strict";__p&&__p();var m=this.core;this.data=this.args.data=k;k.init();if(m){m.data=k;m.initData();if(l)m.reset();this.proxyEvents()}k.bootstrap();return k};j.prototype.proxyEvents=function(){"use strict";[this.data,this.view,this.core].forEach(function(k){k.subscribe(k.events,this.inform.bind(this))},this)};j.prototype.initBehaviors=function(k){"use strict";k.forEach(function(l){if(typeof l==="string")if(b.TypeaheadBehaviors&&b.TypeaheadBehaviors[l])b.TypeaheadBehaviors[l](this);else c("Run").onLoad(function(){if(b.TypeaheadBehaviors)(b.TypeaheadBehaviors[l]||c("emptyFunction"))(this)}.bind(this));else this.enableBehavior(l)},this)};j.getInstance=function(k){"use strict";var l=c("Parent").byClass(k,"uiTypeahead");return l?c("DataStore").get(l,"Typeahead"):null};j.initNow=function(k,l,m){"use strict";if(m)m.init(k);k.init(l)};j.init=function(k,l,m,n){__p&&__p();var o;"use strict";if(!c("DOM").isNodeOfType(k,["input","textarea"]))k=c("DOM").scry(k,"input")[0]||c("DOM").scry(k,"textarea")[0];var p=false;try{p=document.activeElement===k}catch(q){}if(p)j.initNow(l,m,n);else(function(){var r=c("Event").listen(k,"focus",function(){j.initNow(l,m,n);r.remove()})})()};f.exports=j}),null);
__d("BasicTypeaheadRenderer",["BadgeHelper","DOM"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j){__p&&__p();var k=[];if(i.icon)k.push(c("DOM").create("img",{alt:"",src:i.icon}));var l=i.debug_info;if(l)k.push(c("DOM").create("span",{className:"debugInfo"},l));if(i.text){var m=[i.text];if(i.is_verified)m.push(c("BadgeHelper").renderBadge("xsmall","verified"));k.push(c("DOM").create("span",{className:"text"},m))}if(i.subtext){var n=[i.subtext];k.push(c("DOM").create("span",{className:"subtext"},n))}var o=c("DOM").create("li",{className:i.type||""},k);if(i.text){o.setAttribute("title",i.text);o.setAttribute("aria-label",i.text)}return o}h.className="basic";f.exports=h}),null);
__d("createIxElement",["invariant","DOM","joinClasses"],(function a(b,c,d,e,f,g,h){__p&&__p();function i(j,k){__p&&__p();var l="img";j.sprited||j.uri||h(0);if(j.sprited){l=c("joinClasses")(l,j.spriteMapCssClass,j.spriteCssClass);var m=c("DOM").create("i",{className:l});if(k!=null)c("DOM").setContent(m,c("DOM").create("u",null,k));return m}var n=c("DOM").create("img",{className:l,src:j.uri});if(k!=null)n.setAttribute("alt",k);if(j.width)n.setAttribute("width",j.width);if(j.height)n.setAttribute("height",j.height);return n}f.exports=i}),null);
__d("TypeaheadView",["ix","$","ArbiterMixin","BasicTypeaheadRenderer","CSS","DOM","Event","Parent","createIxElement","emptyFunction","getElementText","getOrCreateDOMID","mixin"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("mixin")(c("ArbiterMixin")));j=i&&i.prototype;function k(l,m){"use strict";j.constructor.call(this);this.element=this.content=c("$")(l);Object.assign(this,m)}k.prototype.init=function(){"use strict";this.init=c("emptyFunction");this.initializeEvents();this.reset()};k.prototype.initializeEvents=function(){"use strict";c("Event").listen(this.element,{mouseup:this.mouseup.bind(this),mouseover:this.mouseover.bind(this)})};k.prototype.setTypeahead=function(l){"use strict";this.typeahead=l};k.prototype.setAccessibilityControlElement=function(l){"use strict";this.accessibilityElement=l};k.prototype.getElement=function(){"use strict";return this.element};k.prototype.mouseup=function(event){"use strict";if(event.button!=2){this.select(true);event.prevent()}};k.prototype.mouseover=function(event){"use strict";if(this.ignoreMouseover){this.ignoreMouseover=false;return}if(this.visible)this.highlight(this.getIndex(event))};k.prototype.reset=function(l){"use strict";__p&&__p();if(!l)this.disableAutoSelect=false;this.index=-1;this.items=[];this.results=[];this.value="";this.content.innerHTML="";this.inform("reset");return this};k.prototype.getIndex=function(event){"use strict";return this.items.indexOf(c("Parent").byTag(event.getTarget(),"li"))};k.prototype.getSelection=function(){"use strict";var l=this.results[this.index]||null;return this.visible?l:null};k.prototype.isEmpty=function(){"use strict";return!this.results.length};k.prototype.isVisible=function(){"use strict";return!!this.visible};k.prototype.show=function(){"use strict";c("CSS").show(this.element);if(this.results&&this.results.length)if(this.autoSelect&&this.accessibilityElement&&this.selected)this.accessibilityElement.setAttribute("aria-activedescendant",c("getOrCreateDOMID")(this.selected));this.accessibilityElement&&this.accessibilityElement.setAttribute("aria-expanded","true");this.visible=true;return this};k.prototype.hide=function(){"use strict";c("CSS").hide(this.element);if(this.accessibilityElement){this.accessibilityElement.setAttribute("aria-expanded","false");this.accessibilityElement.removeAttribute("aria-activedescendant")}this.visible=false;return this};k.prototype.render=function(l,m,n){"use strict";__p&&__p();this.value=l;if(!m.length){this.accessibilityElement&&this.accessibilityElement.removeAttribute("aria-activedescendant");this.reset(true);return}var o={results:m,value:l};this.inform("beforeRender",o);m=o.results;var p=n&&this.index!=-1?this.index:this.getDefaultIndex(m);this.results=m;c("DOM").setContent(this.content,this.buildResults(m));this.items=this.getItems();this.highlight(p,false);this.inform("render",this.results)};k.prototype.getItems=function(){"use strict";return c("DOM").scry(this.content,"li")};k.prototype.buildResults=function(l){"use strict";__p&&__p();var m,n=null;if(typeof this.renderer=="function"){m=this.renderer;n=this.renderer.className||""}else{m=b.TypeaheadRenderers[this.renderer];n=this.renderer}m=m.bind(this);var o=l.map(function(q,r){var s=q.node||m(q,r);s.setAttribute("role","option");return s}),p=c("DOM").create("ul",{className:n,id:"typeahead_list_"+(this.typeahead?c("getOrCreateDOMID")(this.typeahead):c("getOrCreateDOMID")(this.element))},o);p.setAttribute("role","listbox");return p};k.prototype.showLoadingIndicator=function(){"use strict";var l=c("createIxElement")(h("85428")),m=c("DOM").create("li",{className:"typeaheadViewInternalLoading"},l),n=c("DOM").create("ul",{role:"listbox"},m);c("DOM").setContent(this.content,n)};k.prototype.getDefaultIndex=function(){"use strict";var l=this.autoSelect&&!this.disableAutoSelect;return this.index<0&&!l?-1:0};k.prototype.next=function(){"use strict";this.highlight(this.index+1);this.inform("next",this.selected)};k.prototype.prev=function(){"use strict";this.highlight(this.index-1);this.inform("prev",this.selected)};k.prototype.getItemText=function(l){"use strict";__p&&__p();var m="";if(l){m=l.getAttribute("aria-label");if(!m){m=c("getElementText")(l);l.setAttribute("aria-label",m)}}return m};k.prototype.setIsViewingSelectedItems=function(l){"use strict";this.viewingSelected=l;return this};k.prototype.getIsViewingSelectedItems=function(){"use strict";return!!this.viewingSelected};k.prototype.highlight=function(l,m){"use strict";__p&&__p();if(this.selected){c("CSS").removeClass(this.selected,"selected");this.selected.setAttribute("aria-selected","false")}if(l>this.items.length-1)l=-1;else if(l<-1)l=this.items.length-1;if(l>=0&&l<this.items.length){this.selected=this.items[l];c("CSS").addClass(this.selected,"selected");this.selected.setAttribute("aria-selected","true");if(this.accessibilityElement)setTimeout(function(){this.accessibilityElement.setAttribute("aria-activedescendant",c("getOrCreateDOMID")(this.selected))}.bind(this),0)}else this.accessibilityElement&&this.accessibilityElement.removeAttribute("aria-activedescendant");this.index=l;this.disableAutoSelect=l==-1;if(m!==false)this.inform("highlight",{index:l,selected:this.results[l],element:this.selected})};k.prototype.select=function(l){"use strict";__p&&__p();if(this.headerIndex&&l)return;var m=this.index,n=this.results[m],o=this.element.getAttribute("id");if(n){var p=function(n){this.inform("select",{index:m,clicked:!!l,selected:n,id:o,query:this.value});this.inform("afterSelect")}.bind(this);if(this.shouldValidateTypeaheadSelection(n))this.validateTypeaheadSelection(n,p);else p(n)}};k.prototype.shouldValidateTypeaheadSelection=function(l){"use strict";return false};k.prototype.validateTypeaheadSelection=function(l,m){"use strict"};Object.assign(k.prototype,{events:["highlight","render","reset","select","beforeRender","next","prev"],renderer:c("BasicTypeaheadRenderer"),autoSelect:false,ignoreMouseover:false});f.exports=k}),null);
__d("SearchBootstrapEntityModuleDebugUtil",["Arbiter","BanzaiODS","JSLogger","gkx"],(function a(b,c,d,e,f,g){"use strict";var h={backend_faster_no_matches:"BEM not shown because backend returned faster but had no matches anyway",backend_faster_with_matches:"BEM had matches but backend was faster",no_matches:"BEM not shown as no matches were found",shown:"BEM shown"},i={printDebugNotice:function j(k,l,m){c("BanzaiODS").bumpEntityKey("search.www."+k,l);c("Arbiter").subscribe(c("JSLogger").DUMP_EVENT,function(event,n){n.searchBootstrapEntityModule={notice:h[l],matches:JSON.stringify(m!=null?m:[])}});c("gkx")("AT5mEoK6yZIZfOTePCTalrkJYM_xxtUvvUlHcKv-Nw4MRnriEvGxI7gLFZxvp7qTmJZGLJlpAI-hO4R1yDBCdPrb")}};f.exports=i}),null);
__d("SearchBootstrapEntityModuleUtil",["cx","fbt","Base64","DOM","FacebarJSConstants","immutable","SearchBootstrapEntityModuleUIConfig","SearchEntityModuleServerConstants","URI","md5","randomInt"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("immutable").Map(),k=new RegExp("^/(search/top|search/str.+/keywords_(top|search))"),l=new RegExp("^/(search|topic/trending)"),m=new RegExp("^/search/str/([^/]+)/");function n(y){__p&&__p();var z=void 0;switch(y){case"user":z=i._("People");break;case"page":z=i._("Pages");break;case"group":z=i._("Groups");break;case"application":z=i._("Apps");break;case"place":z=i._("Places");break;case"event":z=i._("Events");break}return z}function o(y){__p&&__p();if(y.subtext==null)return[];if(y.browse_type==="browse_type_tv_show")return[c("DOM").create("span",{},[c("DOM").create("span",{className:"_2vo8"},i._("SHOW")),y.subtext])];var z=y.subtext.split(/\s*\u00B7s*/g).map(function(B){return c("DOM").create("span",{},B)}),A=z.pop();z=z.slice(0,c("SearchBootstrapEntityModuleUIConfig").numSnippetsToShow-1);if(A!=null)z.push(A);return z}function p(y,z){__p&&__p();y=y.filter(function(C){return C.type!==c("FacebarJSConstants").keywordType}).sort(function(C,D){return C.bootstrapCost-D.bootstrapCost});var A=y[0],B=void 0;if(A!=null)B=A.type;y=y.filter(function(C){return C.type===B}).slice(0,c("SearchBootstrapEntityModuleUIConfig").numBootstrapResultsToShow);return y.map(function(C){return q(C,z)})}function q(y,z){var A=y.tuid,B=y.path,C=y.text,D=y.photo,E=y.photos,F=y.is_verified,G=r(y);return{tuid:A,uri:new(c("URI"))(B).addQueryData("ref",c("SearchEntityModuleServerConstants").BROWSE_RESULTS_PAGE_REF),type:G,text:C,photo:D,photos:E,snippets:o(y),module_role:c("SearchEntityModuleServerConstants").RESULT_TYPE_TO_MODULE_ROLE[G],is_bootstrap:true,is_verified:F,logging_unit_id:t(z,y),is_currently_live:false,is_gaming_page:false}}function r(y){var z=void 0;if(y.type==="app")z="application";else if(y.render_type==="place")z="place";else z=y.type;return z}function s(y,z,A){var B={ref:c("SearchEntityModuleServerConstants").BROWSE_NAV_SOURCE_SEE_MORE};if(z!=null)B.sid=z;return new(c("URI"))(c("SearchEntityModuleServerConstants").TYPE_TO_SERP_PATH[r(y[0])]).setQueryData({q:A,see_more_ref:c("Base64").encode(JSON.stringify(B)).replace(/\=+$/,"")})}function t(y,z){__p&&__p();var A=j.get(y);if(A==null){A=c("immutable").Map();j.set(y,A)}var B=A.get(z.tuid);if(B==null){B=u("www_bem_res");A.set(z.tuid,B)}return B}function u(y){return y+":"+c("md5")(String(c("randomInt")(0,Number.MAX_SAFE_INTEGER)))}function v(y){return y.getPath().match(l)!=null}function w(y){var z=y.getQueryData(),A=z.ref!=null&&z.q!=null&&Object.keys(z).length===2,B=z.ref!=null&&Object.keys(z).length===1;return y.getPath().match(k)!=null&&(B||A)}function x(y){if(!v(y))return null;var z=y.getQueryData();if(z.q!=null)return z.q;var A=y.getPath(),B=A.match(m);if(B!=null)return decodeURIComponent(B[1]).replace(/\+/g," ");return null}f.exports={getTitleForResultType:n,getSnippetForRawBootstrapResult:o,transformRawBootstrapResultsToEntityModuleResults:p,getSeeMoreURIForResults:s,generateUnitIDWithPrefix:u,getQueryFromURI:x,isSERPURI:v,isTopTabURI:w}}),null);
__d("BrowseWebSLRPELoggerAction",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({SEARCH:"search",CLICK:"click",MODULE_IMPRESSION:"module_impression",TIME_SPENT:"time_spent"})}),null);
__d("BrowseWebSLRPELoggerClickType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ITEM_IN_MODULE_TAPPED:"graph_search_results_item_in_module_tapped",ITEM_TAPPED:"graph_search_results_item_tapped",SEE_MORE_TAPPED:"graph_search_results_see_more_on_module_tapped",INLINE_FRIEND_REQUEST:"inline_friend_request",INLINE_PAGE_LIKE_REQUEST:"inline_page_like_request",MODULE_TAPPED:"graph_search_results_module_tapped",TAP_MODULE:"graph_search_results_module_tapped",VIEW_PORT_VIEWS_ON_SEARCH_RESULTS:"view_port_views_on_search_results"})}),null);
__d("SearchEntityModuleStyle",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({SMALL:"small",MEDIUM:"medium",LARGE:"large",XLARGE:"xlarge"})}),null);
__d("XSearchBEMUnitDataLoggingController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/search/async/log_bem_unit_data/",{session_id:{type:"String",required:true},logging_unit_id:{type:"String",required:true},query:{type:"String",required:true},query_function:{type:"String",required:true},results_module_role:{type:"String",required:true},tapped_results_entity_id:{type:"String"},entity_ids:{type:"StringSet"}})}),null);
__d("XSearchBrowseActionsController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/search/async/browse_actions/",{id:{type:"String",required:true},result_type:{type:"String",required:true},quick_link_tab:{type:"String"}})}),null);
__d("XSearchProfilePictureController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/search/async/profile_picture/",{fbid:{type:"FBID",required:true},width:{type:"Int",required:true},height:{type:"Int",required:true}})}),null);
__d("SearchEntityModuleResult.react",["ix","cx","fbt","AsyncRequest","Badge.react","BrowseClientEventLogger","BrowseWebSLRPELoggerClickType","CurrentUser","DOM","DOMContainer.react","HovercardLink","Image.react","Link.react","React","SearchEntityModuleServerConstants","SearchEntityModuleStyle","SearchResultPageExperiments","XSearchBEMUnitDataLoggingController","XSearchBrowseActionsController","XSearchProfilePictureController","XUIButton.react","XUISpinner.react","asset","gkx","memoize"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m,n=(m={},m[c("SearchEntityModuleStyle").SMALL]=48,m[c("SearchEntityModuleStyle").MEDIUM]=64,m[c("SearchEntityModuleStyle").LARGE]=72,m[c("SearchEntityModuleStyle").XLARGE]=100,m);k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(p){l.constructor.call(this,p);this.state={actionsLoaded:false,showCrActions:false};this.getLoggingData=c("memoize")(function(){var q=c("SearchEntityModuleServerConstants").TYPE_TO_DISPLAY_STYLE[this.props.result.type],r=c("SearchEntityModuleServerConstants").TYPE_TO_BROWSE_TYPE[this.props.result.type],s=c("SearchEntityModuleServerConstants").WWW_GRAPH_SEARCH_RESULTS_TRACKABLE_CODE,t=s+JSON.stringify({display_style:q,id:this.props.result.tuid,item_type:"result",module_result_type:r,module_type:this.props.module_role,position_in_module:this.props.position_in_module,query:this.props.browse_query,raw_id:parseInt(this.props.result.tuid,10),session_id:this.props.browse_session_id,vertical:"content",is_bootstrap:this.props.result.is_bootstrap,unit_id:this.props.result.logging_unit_id,unit_id_click_type:c("BrowseWebSLRPELoggerClickType").ITEM_IN_MODULE_TAPPED,unit_id_result_id:this.props.result.tuid});return{"data-xt":t,"data-gt":JSON.stringify({type:"xtracking",xt:t}),"data-bt":JSON.stringify({id:parseInt(this.props.result.tuid,10)}),"data-xt-vimp":JSON.stringify(this.props.client_view_config),"data-vistracking":"1","data-insertion-position":this.props.position_in_module}}.bind(this))}o.prototype.componentDidMount=function(){this.$SearchEntityModuleResult1=c("DOM").create("div");this.$SearchEntityModuleResult2=c("DOM").create("div");this.$SearchEntityModuleResult3=[];this.renderActions();this.logImpression();if(this.props.result.logging_unit_id!=null&&this.props.result.is_bootstrap)this.logUnitData()};o.prototype.render=function(){__p&&__p();var p,q=this.props.result.uri,r=c("HovercardLink").constructEndpoint({id:this.props.result.tuid}),s=void 0;if(this.props.result.badge_type)s=c("React").createElement(c("Badge.react"),{type:this.props.result.badge_type,size:"small"});else if(this.props.result.is_verified===true)s=c("React").createElement(c("Badge.react"),{type:"verified",size:"small"});var t=this.props.result.snippets.map(function(J,K){return c("React").createElement(c("DOMContainer.react"),{key:"snippet_"+K,className:(K===0?"_2yep":"")+(K!==0?" _2yeq":"")},J)}),u=this.props.result.photos,v=void 0,w=n[this.props.module_style];if(u!=null&&!this.props.has_module_guidelines)(function(){var J=u.length,K=u.map(function(v,L){var M=w/2-L%2,N=w/2-Math.round(L/J);return c("React").createElement(c("Image.react"),{key:L,className:"_4wq6",src:v,style:{width:M+"px",height:N+"px"}})});v=c("React").createElement("div",{className:"_4wq7",style:{width:w+"px",height:w+"px"}},K)})();else{var x=false;if(this.props.result.type==="group")x=this.props.has_module_guidelines;var y=this.props.result.photo,z=c("SearchResultPageExperiments").useUncachedBootstrapEntityModulePictures&&this.props.result.is_bootstrap&&this.props.result.type==="user";if(z)y=c("XSearchProfilePictureController").getURIBuilder().setFBID("fbid",this.props.result.tuid).setInt("width",w).setInt("height",w).getURI().toString();v=c("React").createElement(c("Image.react"),{className:"_2yeu"+(x?" _4lxz":""),src:y,width:w,height:w,style:{width:w+"px",height:w+"px"}})}var A=void 0,B=this.$SearchEntityModuleResult1;if(B!=null)A=c("React").createElement("div",{className:"_2ye_"},c("React").createElement(c("DOMContainer.react"),null,B),c("React").createElement(c("XUIButton.react"),{className:"_4cei"+(this.state.actionsLoaded?" hidden_elem":""),image:c("React").createElement(c("XUISpinner.react"),{size:"small",background:"dark"}),label:j._("Loading...")}));var C=void 0,D=this.state.showCrActions,E=this.$SearchEntityModuleResult2;if(D&&E!=null)C=c("React").createElement("div",{className:"_5-zc"},c("React").createElement(c("DOMContainer.react"),null,E),c("React").createElement(c("XUIButton.react"),{className:"_4cei"+(this.state.actionsLoaded?" hidden_elem":""),image:c("React").createElement(c("XUISpinner.react"),{size:"small",background:"dark"}),label:j._("Loading...")}));var F=this.props.module_style===c("SearchEntityModuleStyle").XLARGE||this.props.module_style===c("SearchEntityModuleStyle").LARGE,G=this.props.result.is_currently_live&&this.props.result.is_gaming_page&&c("gkx")("AT6SmGsmVfyNU-cjbyx2vy1HknWL_e3TY6abNVn8ybQEsIlspUc8iWx2vxlcZ9kvYZLiRIyPccRKA849wmQIQzcPrEhIg8qQJcHAhk9vza2E-g")?c("React").createElement(c("Image.react"),{className:"_2rru",src:h("404364")}):null,H=null;if(this.props.has_module_guidelines)H=c("React").createElement("div",{style:{WebkitLineClamp:2},className:"_52eh _5bcu"},this.props.result.text,s,G);else H=c("React").createElement("div",null,this.props.result.text,s,G);var I=this.props.result.missing_words!=null?c("React").createElement("div",{className:"_40e4"},c("React").createElement(c("DOMContainer.react"),null,this.props.result.missing_words)):null;return c("React").createElement("div",babelHelpers["extends"]({className:"_2yer _401d"+(F?" _2xje":"")+" _2nuh"},this.getLoggingData()),I,c("React").createElement(c("Link.react"),{className:"_2yet",href:q,"data-hovercard":r},v),c("React").createElement("div",{className:"_2yev"},c("React").createElement("div",{className:"_2xjf"},c("React").createElement(c("Link.react"),{href:q,className:(this.props.has_module_guidelines?"_1ii5":"")+" _2yez","data-hovercard":r},H),F?A:null),c("React").createElement("div",{className:"_2ye-"},t.shift(),c("React").createElement("div",{className:"_2xjg"},t)),C),F?null:A)};o.prototype.renderActions=function(){__p&&__p();if(!c("CurrentUser").isLoggedIn()){this.setState({actionsLoaded:true});return}var p=c("SearchEntityModuleServerConstants").TYPE_TO_BROWSE_TYPE[this.props.result.type],q=c("XSearchBrowseActionsController").getURIBuilder().setString("id",this.props.result.tuid).setString("quick_link_tab",this.props.result.quick_link_tab).setString("result_type",p),r=new(c("AsyncRequest"))(q.getURI()).setMethod("POST").setHandler(function(t){__p&&__p();var u=this.$SearchEntityModuleResult1;if(u==null){this.setState({actionsLoaded:true});return}var v=t.getPayload(),w=v.actions!=null?v.actions:"";c("DOM").setContent(u,w);var x=false;if(v.cr_actions!=null){c("DOM").setContent(this.$SearchEntityModuleResult2,v.cr_actions);x=true}this.setState({actionsLoaded:true,showCrActions:x})}.bind(this)).setAllowCrossPageTransition(true),s=this.$SearchEntityModuleResult3;if(s!=null)s.push(r);r.send()};o.prototype.logImpression=function(){var p=this.getLoggingData();c("BrowseClientEventLogger").logImpression({xt:p["data-xt"]})};o.prototype.logUnitData=function(){var p=this.props.result,q=c("XSearchBEMUnitDataLoggingController").getURIBuilder().setString("logging_unit_id",p.logging_unit_id).setString("session_id",this.props.browse_session_id).setString("query",this.props.plain_text_query).setString("query_function",this.props.browse_query).setString("tapped_results_entity_id",p.tuid).setString("results_module_role",p.module_role);new(c("AsyncRequest"))(q.getURI()).setAllowCrossPageTransition(true).send()};o.prototype.componentWillUnmount=function(){var p=this.$SearchEntityModuleResult3;if(p!=null)p.forEach(function(q){q.abandon()})};f.exports=o}),null);
__d("XSearchBEMClientDataLoggingController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/search/async/log_bem_client_data/",{session_id:{type:"String",required:true},logging_unit_id:{type:"String",required:true},event_name:{type:"String",required:true},bootstrap_item_count:{type:"Int",required:true}})}),null);
__d("SearchEntityModule.react",["cx","fbt","Arbiter","AsyncRequest","BrowseWebSLRPELoggerAction","BrowseWebSLRPELoggerClickType","Link.react","React","SearchEntityModuleResult.react","SearchEntityModuleServerConstants","SubscriptionsHandler","ViewableImpressionTracking","XSearchBEMClientDataLoggingController","XSearchBEMUnitDataLoggingController","XUICard.react","XUICardHeader.react","XUICardHeaderTitle.react","XUICardSection.react","memoize","memoizeWithArgs"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(m){__p&&__p();k.constructor.call(this,m);this.state={isExpanded:this.props.num_results_to_show==null,shouldRenderFooter:this.props.should_render_footer,results:this.props.results};this.onSeeMoreLinkClick=function(event){event.preventDefault();this.setState({isExpanded:true})}.bind(this);this.getModuleLoggingData=c("memoize")(function(){var n=c("SearchEntityModuleServerConstants").WWW_GRAPH_SEARCH_RESULTS_TRACKABLE_CODE,o=n+JSON.stringify({query:this.props.browse_query,session_id:this.props.browse_session_id,module_type:this.props.module_role,unit_id:this.props.logging_unit_id,unit_id_click_type:c("BrowseWebSLRPELoggerClickType").VIEW_PORT_VIEWS_ON_SEARCH_RESULTS});return{"data-xt":o,"data-xt-vimp":JSON.stringify(this.props.client_view_config)}}.bind(this));this.getSeeMoreLoggingData=c("memoizeWithArgs")(function(n){var o=c("SearchEntityModuleServerConstants").WWW_GRAPH_SEARCH_RESULTS_TRACKABLE_CODE,p=c("SearchEntityModuleServerConstants").SEE_MORE_LOGGING.MODULE_HEADER_ITEM_TYPE,q=c("SearchEntityModuleServerConstants").SEE_MORE_LOGGING.MODULE_FOOTER_ITEM_TYPE,r=o+JSON.stringify({item_type:n==="header"?p:q,module_type:this.props.module_role,query:this.props.browse_query,session_id:this.props.browse_session_id,source_module_role:this.props.module_role,vertical:"content",unit_id:this.props.logging_unit_id,unit_id_click_type:c("BrowseWebSLRPELoggerClickType").SEE_MORE_TAPPED});return{"data-xt":r,"data-gt":JSON.stringify({type:"xtracking",xt:r}),"data-xt-vimp":JSON.stringify(this.props.client_view_config),"data-vistracking":"1","data-bt":JSON.stringify({ct:"see_more",source_module_role:this.props.module_role})}}.bind(this),function(n){return n});this.$SearchEntityModule1=new(c("SubscriptionsHandler"))()}l.prototype.componentDidMount=function(){if(this.props.logging_unit_id!=null&&this.props.is_bootstrap_entity_module){this.logUnitData();c("ViewableImpressionTracking").init()}if(this.props.is_bootstrap_entity_module)this.$SearchEntityModule1.addSubscriptions(c("Arbiter").subscribeOnce("Search/addResultsToBEM",function(m,n){this.setState({results:this.state.results.concat(n.results),shouldRenderFooter:true})}.bind(this)),c("Arbiter").subscribeOnce("Search/firstModuleIsNotBEMMergable",function(){this.setState({shouldRenderFooter:true})}.bind(this)))};l.prototype.componentWillReceiveProps=function(m){this.setState({results:m.results})};l.prototype.render=function(){__p&&__p();var m=this.props.num_results_to_show,n=!this.state.isExpanded&&m!=null?this.state.results.slice(0,m):this.state.results;if(n.length===0)return c("React").createElement("div",null);n=n.map(function(q,r){return c("React").createElement(c("SearchEntityModuleResult.react"),{key:q.tuid,result:q,position_in_module:r,browse_query:this.props.browse_query,client_view_config:this.props.client_view_config,browse_session_id:this.props.browse_session_id,module_style:this.props.module_style,module_role:this.props.module_role,plain_text_query:this.props.plain_text_query,has_module_guidelines:this.props.has_module_guidelines,viewer_id:this.props.viewer_id})}.bind(this));var o=void 0;if(this.props.see_more_uri!=null)o=c("React").createElement(c("Link.react"),babelHelpers["extends"]({},this.getSeeMoreLoggingData("header"),{href:this.props.see_more_uri}),i._("See All"));var p=this.props.title instanceof Object&&this.props.title.__html!=null?c("React").createElement("span",{dangerouslySetInnerHTML:this.props.title}):this.props.title;return c("React").createElement("div",babelHelpers["extends"]({},this.getModuleLoggingData(),{className:"_5w7z"+(this.props.result_type==="user"&&this.props.module_role==="SHORTCUT_PEOPLE"?" _d7o":"")+(this.props.result_type==="user"?" _5w81":"")+(this.props.result_type==="page"?" _5w82":"")+(this.props.result_type==="group"?" _5w84":"")+(this.props.result_type==="application"?" _3h4u":"")+(this.props.result_type==="place"?" _5w9b":"")+(this.props.result_type==="event"?" _5w9c":"")}),c("React").createElement(c("XUICard.react"),{className:"_5w9d"},c("React").createElement(c("XUICardHeader.react"),{link:o,type:"primary"},c("React").createElement(c("XUICardHeaderTitle.react"),{role:"heading","aria-level":"3"},c("React").createElement("div",{className:"_5w9e"}),p)),c("React").createElement(c("XUICardSection.react"),null,n,this.maybeRenderFooter())))};l.prototype.maybeRenderFooter=function(){if(!this.state.shouldRenderFooter)return[];var m=[],n=c("React").createElement(c("Link.react"),babelHelpers["extends"]({key:"see_more_footer"},this.getSeeMoreLoggingData("footer"),{href:"",onClick:this.onSeeMoreLinkClick,className:"_5w9f"+(this.state.isExpanded||this.props.num_results_to_show==null||this.state.results.length<=this.props.num_results_to_show?" hidden_elem":"")}),i._("See All"));m.push(n);if(this.props.see_more_uri!=null){var o=c("React").createElement(c("Link.react"),babelHelpers["extends"]({key:"see_all_footer"},this.getSeeMoreLoggingData("footer"),{href:this.props.see_more_uri,className:"_5w9f"+(!this.state.isExpanded&&this.props.num_results_to_show!=null&&this.state.results.length>this.props.num_results_to_show?" hidden_elem":"")}),i._("See All"));m.push(o)}return m};l.prototype.logUnitData=function(){var m=c("XSearchBEMUnitDataLoggingController").getURIBuilder().setString("logging_unit_id",this.props.logging_unit_id).setString("session_id",this.props.browse_session_id).setString("query",this.props.plain_text_query).setString("query_function",this.props.browse_query).setString("results_module_role",this.props.module_role).setStringSet("entity_ids",this.state.results.map(function(o){return o.tuid}));new(c("AsyncRequest"))(m.getURI()).setAllowCrossPageTransition(true).send();var n=c("XSearchBEMClientDataLoggingController").getURIBuilder().setString("logging_unit_id",this.props.logging_unit_id).setString("session_id",this.props.browse_session_id).setString("event_name",c("BrowseWebSLRPELoggerAction").MODULE_IMPRESSION).setInt("bootstrap_item_count",this.state.results.filter(function(o){return o.is_bootstrap}).length);new(c("AsyncRequest"))(n.getURI()).setAllowCrossPageTransition(true).send()};l.prototype.componentWillUnmount=function(){this.$SearchEntityModule1.release()};f.exports=l}),null);
__d("SearchEntityModuleDispatcher",["ExplicitRegistrationReactDispatcher"],(function a(b,c,d,e,f,g){var h,i;h=babelHelpers.inherits(j,c("ExplicitRegistrationReactDispatcher"));i=h&&h.prototype;function j(k){"use strict";i.constructor.call(this,k);this.dispatch=this.dispatch.bind(this)}f.exports=new j({strict:true})}),null);
__d("SearchEntityModuleUIConstants",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";var i={Actions:{ADD_MODULE:"ADD_MODULE",ADD_RESULTS:"ADD_RESULTS",REMOVE_ALL_RESULTS_AND_MODULES:"REMOVE_ALL_RESULTS_AND_MODULES"},MODULE_ROLE_TO_TITLE:{user:h._("People"),page:h._("Pages"),group:h._("Groups"),application:h._("Apps"),place:h._("Places"),event:h._("Events")}};f.exports=i}),null);
__d("SearchEntityModuleActions",["SearchEntityModuleDispatcher","SearchEntityModuleUIConstants"],(function a(b,c,d,e,f,g){"use strict";var h=c("SearchEntityModuleUIConstants").Actions,i={addModule:function j(k,f){var l={type:h.ADD_MODULE,value:{sessionID:k,module:f}};c("SearchEntityModuleDispatcher").dispatch(l)},addResultsToModule:function j(k,f,l){var m={type:h.ADD_RESULTS,value:{sessionID:k,module:f,results:l}};c("SearchEntityModuleDispatcher").dispatch(m)},clearAllResultsAndModules:function j(k){var l={type:h.REMOVE_ALL_RESULTS_AND_MODULES,value:{sessionID:k}};c("SearchEntityModuleDispatcher").dispatch(l)}};f.exports=i}),null);
__d("SearchEntityModuleContainerStore",["FluxReduceStore","immutable","SearchEntityModuleDispatcher","SearchEntityModuleUIConstants","SearchResultPageExperiments"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("SearchEntityModuleUIConstants").Actions;h=babelHelpers.inherits(k,c("FluxReduceStore"));i=h&&h.prototype;k.prototype.getInitialState=function(){return c("immutable").Map()};k.prototype.reduce=function(l,m){__p&&__p();var n=void 0,o=m.value.sessionID;switch(m.type){case j.ADD_MODULE:n=l.get(o);if(n==null)n=c("immutable").List([]);n=n.push(babelHelpers["extends"]({},m.value.module,{results:c("immutable").List([])}));l=l.set(o,n);break;case j.ADD_RESULTS:n=l.get(o);if(n==null)n=c("immutable").List([]);n=this.addResultsWithoutDupes(o,n,m.value.module,m.value.results);l=l.set(o,n);break;case j.REMOVE_ALL_RESULTS_AND_MODULES:n=l.get(o);if(n!=null){n=n.clear();l=l.set(o,n)}break;default:break}return l};k.prototype.addResultsWithoutDupes=function(l,m,n,o){__p&&__p();f=m.find(function(f){return f.role===n.role&&f.is_bootstrap_entity_module===n.is_bootstrap_entity_module&&f.id===n.id});if(f==null)return m;var p=f.results,q=m.first();if(q!=null&&q.is_bootstrap_entity_module)p=q.results.concat(p);var r=p.map(function(x){return x.tuid}),s=[];for(var t=o,u=Array.isArray(t),v=0,t=u?t:t[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var w;if(u){if(v>=t.length)break;w=t[v++]}else{v=t.next();if(v.done)break;w=v.value}var x=w;if(r.indexOf(x.tuid)===-1){r.push(x.tuid);s.push(x)}}f.results=f.results.concat(s);return m};k.prototype.getResults=function(l,f){__p&&__p();var m=this.getState().get(l),n=null;for(var o=m,p=Array.isArray(o),q=0,o=p?o:o[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var r;if(p){if(q>=o.length)break;r=o[q++]}else{q=o.next();if(q.done)break;r=q.value}var s=r;if(s.role===f.role&&s.is_bootstrap_entity_module===f.is_bootstrap_entity_module&&s.id===f.id)n=s}if(n==null)return c("immutable").List([]);var t=m.get(0),u=m.get(1),v=t.results.size>0?t.results.first().type:null,w=n.results.size>0?n.results.first().type:null;if(c("SearchResultPageExperiments").removeNonAdjacentBEMModuleRole&&t.is_bootstrap_entity_module&&v!==null&&v===w&&n!==t&&n!==u)return c("immutable").List([]);if(t!=null&&t.is_bootstrap_entity_module&&t.results.size>0&&u!=null&&u.results.size>0){var x=u.results.first().type,y=v===x;if(y)if(n===t)return t.results.concat(u.results);else if(n===u)return c("immutable").List([])}return n.results};k.prototype.getModules=function(l){var m=this.getState(),n=this.getState().get(l);if(n==null){n=c("immutable").List([]);m.set(l,n)}return n};function k(){h.apply(this,arguments)}f.exports=new k(c("SearchEntityModuleDispatcher"))}),null);
__d("SearchEntityModuleContainer.react",["FluxContainer","immutable","React","SearchEntityModule.react","SearchEntityModuleActions","SearchEntityModuleContainerStore","SearchEntityModuleDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getStores=function(){return[c("SearchEntityModuleContainerStore")]};j.calculateState=function(k,l){return{modules:c("SearchEntityModuleContainerStore").getModules(l.browse_session_id)}};j.prototype.componentWillMount=function(){c("SearchEntityModuleDispatcher").explicitlyRegisterStores([c("SearchEntityModuleContainerStore")])};j.prototype.componentWillUnmount=function(){c("SearchEntityModuleActions").clearAllResultsAndModules(this.props.browse_session_id)};j.prototype.render=function(){__p&&__p();var k=this.state.modules,f=k.find(function(f){return f.role===this.props.module_role&&f.is_bootstrap_entity_module===this.props.is_bootstrap_entity_module&&f.id===this.props.id}.bind(this));if(f!=null&&f.component==null){f.component=this;c("SearchEntityModuleActions").addResultsToModule(this.props.browse_session_id,{id:this.props.id,role:this.props.module_role,is_bootstrap_entity_module:this.props.is_bootstrap_entity_module},c("immutable").List(this.props.results));this.forceUpdate();return c("React").createElement("div",null)}if(f!=null&&f.component===this){var l=c("SearchEntityModuleContainerStore").getResults(this.props.browse_session_id,{id:this.props.id,role:this.props.module_role,is_bootstrap_entity_module:this.props.is_bootstrap_entity_module});return c("React").createElement(c("SearchEntityModule.react"),{plain_text_query:this.props.plain_text_query,browse_query:this.props.browse_query,module_role:this.props.module_role,result_type:this.props.result_type,results:l.toArray(),num_results_to_show:this.props.num_results_to_show,client_view_config:this.props.client_view_config,browse_session_id:this.props.browse_session_id,module_style:this.props.module_style,title:this.props.title,see_more_uri:this.props.see_more_uri,logging_unit_id:this.props.logging_unit_id,is_bootstrap_entity_module:this.props.is_bootstrap_entity_module,has_module_guidelines:this.props.has_module_guidelines,viewer_id:this.props.viewer_id,should_render_footer:true})}return c("React").createElement("div",null)};function j(){h.apply(this,arguments)}f.exports=c("FluxContainer").create(j,{withProps:true})}),null);
__d("SearchEntityModuleUtils",["SearchEntityModuleActions","SearchEntityModuleContainerStore","SearchEntityModuleDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();f.exports={addModules:function h(i,j){__p&&__p();var k;c("SearchEntityModuleDispatcher").explicitlyRegisterStores([c("SearchEntityModuleContainerStore")]);var l=c("SearchEntityModuleContainerStore").getModules(j),m=function m(r){var s=l.find(function(t){return t.role===r.role&&t.id===r.id&&t.is_bootstrap_entity_module===r.is_bootstrap_entity_module});if(s==null)c("SearchEntityModuleActions").addModule(j,r)};for(var n=i,o=Array.isArray(n),p=0,n=o?n:n[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var q;if(o){if(p>=n.length)break;q=n[p++]}else{p=n.next();if(p.done)break;q=p.value}var r=q;m(r)}}}}),null);
__d("SearchBootstrapEntityModule",["Arbiter","ReactRenderer","SearchBootstrapEntityModuleDebugUtil","SearchBootstrapEntityModuleUtil","SearchEntityModuleContainer.react","SearchEntityModuleContainerStore","SearchEntityModuleDispatcher","SearchEntityModuleServerConstants","SearchEntityModuleUtils","tidyEvent"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h="pagelet_loader_browse:independent:modules:pagelet",i="pagelet_loader_initial_browse_result",j=void 0,k=false,l={init:function m(n){j=n;c("tidyEvent")(c("Arbiter").subscribe("pagelet_event",function(event,p){if(event==="display"&&(p.id===h||p.id===i))k=true}));var o=j.squashed_ent_ids?j.squashed_ent_ids:[];c("Arbiter").inform("FacebarDataSource.getBootstrapMatches",{query:j.plain_text_query,callback:function p(q){l.onBootstrapResponse(q)},whitelistedEntIds:o},c("Arbiter").BEHAVIOR_PERSISTENT)},onBootstrapResponse:function m(n){__p&&__p();var o=c("SearchBootstrapEntityModuleUtil").transformRawBootstrapResultsToEntityModuleResults(n,j.browse_session_id);if(k||o.length===0){if(k)c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice("old_bem",o.length===0?"backend_faster_no_matches":"backend_faster_with_matches",n);else c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice("old_bem","no_matches",n);return}c("SearchEntityModuleDispatcher").explicitlyRegisterStores([c("SearchEntityModuleContainerStore")]);var p=c("SearchEntityModuleContainerStore").getModules(j.browse_session_id);if(p.size>0){c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice("old_bem","backend_faster_with_matches",n);return}var q=c("SearchEntityModuleServerConstants").RESULT_TYPE_TO_MODULE_ROLE[o[0].type];c("SearchEntityModuleUtils").addModules([{id:-1,role:q,is_bootstrap_entity_module:true}],j.browse_session_id);c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice("old_bem","shown",n);var r=j.typeahead_session_id;c("ReactRenderer").constructAndRenderComponent(c("SearchEntityModuleContainer.react"),{plain_text_query:j.plain_text_query,browse_query:j.browse_query,results:o,result_type:o[0].type,module_role:q,is_bootstrap_entity_module:true,num_results_to_show:j.num_results_to_show,client_view_config:j.client_view_config,browse_session_id:j.browse_session_id,module_style:j.module_style,title:c("SearchBootstrapEntityModuleUtil").getTitleForResultType(o[0].type),see_more_uri:c("SearchBootstrapEntityModuleUtil").getSeeMoreURIForResults(o,r!=null?r:"",j.plain_text_query),logging_unit_id:j.logging_unit_id,has_module_guidelines:j.has_module_guidelines,viewer_id:j.viewer_id,id:-1},j.root)}};f.exports=l}),null);
__d("FacebarSemanticQuery",["CurrentUser","URI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h="str",i=/\*[\w\-]+\(/g;function j(t){var u={me:c("CurrentUser").getID()};return Object.assign(u,Array.isArray(t.semantic_map)?{}:t.semantic_map)}function k(t,u){var v=j(t);if(typeof v[u]!=="undefined")return String(v[u]);return u}function l(t){return new(c("URI"))("/profile.php").addQueryData({id:t})}function m(t,u){__p&&__p();var v=[u],w=[],x=t.browse_functions,y=t.search_path;while(v.length>0){var z=v.pop();if(!p(z)){w.push(z);continue}var A=z.substring(0,z.indexOf("(")),B=A,C=q(z);if(!x[A]){w=[];break}var D=x[A].minNumParams,E=x[A].maxNumParams;if(v.length>0)if(x[A].numParamsUnbounded){if(w.length>0)A+="-"+C.length}else if(C.length!=1&&C.length>D||C.length===0&&D!=E)A+="-"+C.length;v.push(A);for(var F=0;F<C.length;F++){if(C[F].length===0)continue;if(x[B].allowsFreeText)v.push(h+"/"+encodeURIComponent(encodeURIComponent(C[F])));else v.push(C[F])}}return new(c("URI"))(y+w.join("/"))}function n(t){return t.replace(/[\'\"\[\]]/g,"")}function o(t,u){__p&&__p();var v=JSON.parse(u),w=[];if(v.length>0)w=[v[0]];var x=[],y=t.browse_functions,z=t.search_path;while(w.length>0){var A=w.pop();if(typeof A!=="object"){x.push(n(A));continue}var B=Object.keys(A)[0],C=B,D=A[B];if(!y[B]){x=[];break}var E=y[B].minNumParams,F=y[B].maxNumParams;if(w.length>0)if(y[B].numParamsUnbounded){if(x.length>0)B+="-"+D.length}else if(D.length!=1&&D.length>E||D.length===0&&E!=F)B+="-"+D.length;w.push(B);for(var G=0;G<D.length;G++){if(D[G].length===0)continue;if(y[C].allowsFreeText)w.push(h+"/"+encodeURIComponent(D[G]));else w.push(D[G])}}return new(c("URI"))(z+x.join("/"))}function p(t){return/^[a-z\-]+\(.*\)$/.test(t)}function q(t){if(!p(t)&&t.indexOf("param_")!==0)return[t];var u=t.substring(t.indexOf("(")+1,t.length-1);if(u.length===0)return[];return r(u)}function r(t){__p&&__p();var u=[],v=0,w=0;for(var x=0;x<t.length;++x)if(t[x]==","&&w===0){u.push(t.substring(v,x));v=x+1}else if(t[x]=="(")w++;else if(t[x]==")")w--;u.push(t.substring(v,t.length));return u}function s(t,u,v){this.facebarConfig=t;this.unmapped=(u||"").trim();this.mapped=k(t,this.unmapped);this.position=null;this.$FacebarSemanticQuery1=v!==undefined?v:false}s.prototype.isEntity=function(){return/^\d+$/.test(this.mapped)};s.prototype.isShortcut=function(){return this.mapped.indexOf("shortcut(")===0};s.prototype.isImplemented=function(){return this.mapped&&!this.mapped.match(i)};s.prototype.isSemanticForest=function(){return this.$FacebarSemanticQuery1};s.prototype.getUnimplemented=function(){return(this.mapped.match(i)||[]).map(function(t){return t.substr(1,t.length-2)})};s.prototype.getURI=function(){if(this.isEntity())return l(this.mapped);else if(this.isShortcut())return new(c("URI"))(this.mapped.substr(9,this.mapped.length-10));else if(this.isSemanticForest())return o(this.facebarConfig,this.unmapped);else return m(this.facebarConfig,this.unmapped)};f.exports=s}),null);
__d("LocalSERPSurfaceRequestParam",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({SINGLE_STATE:"sist",TYPEAHEAD:"tyah",ECHO:"ec",SERP_TO_SERP:"s2s",NEARBY_PLACES:"nepl",FEED_STORY:"fest",PLACES_TAB:"plta",NOTIFICATIONS:"noti",RECENT_SEARCHES:"rese",TODAY:"to",SHARED_LINK:"lnk"})}),null);
__d("FacebarURI",["FacebarJSConstants","FacebarSemanticQuery","KeywordsSearchResultConfig","LocalSERPSurfaceRequestParam","URI","WWWBase"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={event:{ref:c("FacebarJSConstants").eventLinkRef},user:{fref:"ts"},page:{fref:"ts"}},i={getSearchRawPrefix:function j(){return"search"},getSearchPath:function j(){return"/"+this.getSearchRawPrefix()+"/"},getURI:function j(k,l){__p&&__p();var m=null,n=!l.song&&!l.isExtendedResult&&l.path;if(n){m=new(c("URI"))(n);if(l.type in h)m.addQueryData(h[l.type])}else if(c("KeywordsSearchResultConfig").use_seo_urls&&l.type===c("KeywordsSearchResultConfig").result_type&&l.semantic.startsWith("str/"))if(l.keywordType===c("FacebarJSConstants").keywordTypes.local_category)m=new(c("URI"))("/search/places").addQueryData("q",l.keyword?l.keyword:l.text);else m=new(c("URI"))(c("KeywordsSearchResultConfig").seo_top_url).addQueryData("q",l.keyword?l.keyword:l.text);else{var o=new(c("FacebarSemanticQuery"))(k,l.semantic);if(o&&o.isImplemented())m=o.getURI();if(l.keywordType===c("FacebarJSConstants").keywordTypes.local)if(l.isSingleState)m.addQueryData("surface",c("LocalSERPSurfaceRequestParam").SINGLE_STATE);else if(l.isRecent)m.addQueryData("surface",c("LocalSERPSurfaceRequestParam").RECENT_SEARCHES);else m.addQueryData("surface",c("LocalSERPSurfaceRequestParam").TYPEAHEAD)}return m&&i.getQualifiedURI(m)},getQualifiedURI:function j(k){var l=new(c("URI"))(k);if(!l.getDomain()){var m=new(c("URI"))(c("WWWBase").uri);l.setProtocol(m.getProtocol()).setDomain(m.getDomain()).setPort(m.getPort())}return l}};f.exports=i}),null);
__d("FacebarKeywordSearchUtils",["Arbiter","Base64","FacebarJSConstants","FacebarStructuredText","FacebarURI","KeywordsSearchResultConfig","LocalSERPSurfaceRequestParam","SearchStickyTabsConfig","URI","setTimeoutAcrossTransitions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i=function i(l){var m=0;while(m<l.length)if(l[m].exactMatchKeyword)l.splice(m,1);else++m},j=null,k={addExactMatch:function l(m,n,o){__p&&__p();if(!n.length)return;var p=void 0,q=void 0;for(var r=0,s=n.length;r<s;r++){q=n[r];if(q.type==="grammar")continue;p=true;break}if(!p)return;var t=this.getExactMatchKeywordResult(m);if(!t)return;var u=Math.min(n.length,o),v=u;for(var w=0;w<u;w++){q=n[w];if(q.exactMatchKeyword)return;if(q.cost>c("KeywordsSearchResultConfig").default_cost)--v;if(q.type!==c("KeywordsSearchResultConfig").result_type)continue;t.backendCost=q.cost+c("KeywordsSearchResultConfig").exact_match_cost_delta_from_best;t.cost=q.backendCost;i(n);n.splice(w,0,t);return}i(n);n.splice(Math.min(Math.min(u,o-1),v),0,t)},getExactMatchKeywordResult:function l(m){if(!m||m.is_empty||!m.raw_text)return null;var n=m.raw_text.toLowerCase().replace(/\s{2,}/g," ").trim(),o=c("KeywordsSearchResultConfig").query_prefix_blacklist;for(var p=0;p<o.length;p++)if(n.startsWith(o[p]))return null;var q=this.makeFacebarEntry(n);return this._makeFacebarResult(q,m.cache_id.length)},makeFacebarEntryForLocalPage:function l(m){var n=m.getFragment(0).getUID(),o=m.getFragment(0).getText(),p=n+"/local_search",q=c("FacebarURI").getQualifiedURI(new(c("URI"))("/search/"+p).addQueryData("surface",c("LocalSERPSurfaceRequestParam").SINGLE_STATE));return{semantic:p,text:o,type:c("KeywordsSearchResultConfig").result_type,resultsSetType:c("KeywordsSearchResultConfig").result_set_type,uid:c("KeywordsSearchResultConfig").uid_prefix+o,iconClass:c("KeywordsSearchResultConfig").icon_class,keywordType:c("FacebarJSConstants").keywordTypes.local,uri:q,structure:c("FacebarStructuredText").fromString(o)}},makeFacebarEntry:function l(m){__p&&__p();var n=null,o=null,p=null;if(c("KeywordsSearchResultConfig").gsv2_results_page){if(j!=null)p=j;else p=c("KeywordsSearchResultConfig").gsv2_browse_edge;o="str/"+encodeURIComponent(m).replace(/%20/g,"+")+"/"+p;n=c("FacebarURI").getQualifiedURI(new(c("URI"))("/search/"+o))}else{n=c("FacebarURI").getQualifiedURI(new(c("URI"))(c("KeywordsSearchResultConfig").results_page_url).addQueryData("q",m));o=c("KeywordsSearchResultConfig").shortcut+"("+n.toString()+")"}if(j==null&&c("KeywordsSearchResultConfig").use_seo_urls)n=c("FacebarURI").getQualifiedURI(new(c("URI"))(c("KeywordsSearchResultConfig").seo_top_url).addQueryData("q",m));return{semantic:o,text:m,type:c("KeywordsSearchResultConfig").result_type,resultsSetType:c("KeywordsSearchResultConfig").result_set_type,uid:c("KeywordsSearchResultConfig").uid_prefix+m,iconClass:c("KeywordsSearchResultConfig").icon_class,uri:n,structure:c("FacebarStructuredText").fromString(m)}},clearSelectedTabInfo:function l(){j=null},_makeFacebarResult:function l(m,n){var o={semantic:m.semantic,structure:[{type:"grammar",text:m.text,uid:m.semantic}],type:m.type,resultsSetType:m.resultsSetType,cost:c("KeywordsSearchResultConfig").default_cost,cache_id_length:n,parse:{display:[{type:"grammar",uid:c("KeywordsSearchResultConfig").uid_prefix+m.text}],remTokens:[],suffix:""},iconClass:m.iconClass,exactMatchKeyword:true};o.tuid=JSON.stringify({semantic:o.semantic,structure:o.structure});return o},encodeFacebarURIParams:function l(m){return c("Base64").encode(JSON.stringify(m)).replace(/\=+$/,"")},decodeFacebarURIParams:function l(m){var n=m.getQueryData().ref;if(n==null)return null;var o=void 0;try{o=JSON.parse(c("Base64").decode(n))}catch(p){}return o}};if(c("SearchStickyTabsConfig").has_sticky_tabs)(function(){__p&&__p();var l=void 0;c("Arbiter").subscribe("FacebarTypeahead.persistentTabs",function(m,n){j=n.browseEdge;var o=c("SearchStickyTabsConfig").timeout;if(o!=null){if(l!=null)clearTimeout(l);l=c("setTimeoutAcrossTransitions")(function(){k.clearSelectedTabInfo()},o*1e3)}})})();f.exports=k}),null);
__d("generateBrowseSessionID",["CurrentUser","md5"],(function a(b,c,d,e,f,g){var h={mtouch:"412378670482",www:"256281040558"},i="keywords_search";function j(k){var l=k.appName,m=k.edge;return c("md5")([h[l],c("CurrentUser").getID(),m,Math.floor(Date.now()/30)].join(":"))}f.exports=j}),null);
__d("SearchInstantBootstrapEntityModule",["cx","fbt","Arbiter","BanzaiODS","Base64","BrowseClickLogger","ContextualComponent","CSS","CurrentUser","DOM","FacebarKeywordSearchUtils","PageTransitionsRegistrar","React","ReactDOM","ReactRenderer","Run","SearchBootstrapEntityModuleDebugUtil","SearchBootstrapEntityModuleUIConfig","SearchBootstrapEntityModuleUtil","SearchEntityModule.react","SearchEntityModuleServerConstants","SearchEntityModuleUIConfig","SearchWWWTrackableClientViewConfig","SubscriptionsHandler","URI","XUIPageNavigation.react","XUIPageNavigationGroup.react","XUIPageNavigationItem.react","XUISpinner.react","ge","generateBrowseSessionID"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=[i._("All"),i._("Posts"),i._("People"),i._("Photos"),i._("Videos"),i._("Pages"),i._("Places"),i._("Groups"),i._("Apps"),i._("Events")],k=void 0;function l(m){__p&&__p();this.$SearchInstantBootstrapEntityModule10=[];this.$SearchInstantBootstrapEntityModule11=false;this.$SearchInstantBootstrapEntityModule12=false;this.$SearchInstantBootstrapEntityModule13=false;this.$SearchInstantBootstrapEntityModule17=function(n){__p&&__p();this.$SearchInstantBootstrapEntityModule11=false;if(!c("SearchBootstrapEntityModuleUtil").isTopTabURI(n))return;this.$SearchInstantBootstrapEntityModule13=true;var o=void 0,p=c("FacebarKeywordSearchUtils").decodeFacebarURIParams(n);if(p!=null){this.$SearchInstantBootstrapEntityModule8=p.sid;o=p.bsid}if(o==null)o=c("generateBrowseSessionID")({appName:"www",edge:"keywords_search"});this.$SearchInstantBootstrapEntityModule9=o;this.$SearchInstantBootstrapEntityModule4=c("SearchBootstrapEntityModuleUtil").getQueryFromURI(n);this.$SearchInstantBootstrapEntityModule18();this.$SearchInstantBootstrapEntityModule19(n);if(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading){if(this.$SearchInstantBootstrapEntityModule13&&this.$SearchInstantBootstrapEntityModule10.length>0){this.$SearchInstantBootstrapEntityModule20();this.$SearchInstantBootstrapEntityModule21()}this.$SearchInstantBootstrapEntityModule22()}}.bind(this);this.$SearchInstantBootstrapEntityModule25=function(n){if(this.$SearchInstantBootstrapEntityModule9==null)return;this.$SearchInstantBootstrapEntityModule10=c("SearchBootstrapEntityModuleUtil").transformRawBootstrapResultsToEntityModuleResults(n,this.$SearchInstantBootstrapEntityModule9)}.bind(this);this.$SearchInstantBootstrapEntityModule26=function(){this.$SearchInstantBootstrapEntityModule13=false;if(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading)this.$SearchInstantBootstrapEntityModule27();c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","shown")}.bind(this);this.$SearchInstantBootstrapEntityModule1=m.getCore();this.$SearchInstantBootstrapEntityModule2=new(c("SubscriptionsHandler"))();k=this}l.prototype.enable=function(){__p&&__p();this.$SearchInstantBootstrapEntityModule7=c("ge")("content");if(this.$SearchInstantBootstrapEntityModule7==null)return;c("Run").onAfterLoad(function(){this.$SearchInstantBootstrapEntityModule14();this.$SearchInstantBootstrapEntityModule2.addSubscriptions(c("Arbiter").subscribe("page_transition",function(){this.$SearchInstantBootstrapEntityModule15();this.$SearchInstantBootstrapEntityModule16()}.bind(this)));this.$SearchInstantBootstrapEntityModule15();this.$SearchInstantBootstrapEntityModule16()}.bind(this))};l.prototype.disable=function(){this.$SearchInstantBootstrapEntityModule2.release()};l.prototype.$SearchInstantBootstrapEntityModule15=function(){if(!this.$SearchInstantBootstrapEntityModule11){c("PageTransitionsRegistrar").registerHandler(this.$SearchInstantBootstrapEntityModule17);this.$SearchInstantBootstrapEntityModule11=true}};l.prototype.$SearchInstantBootstrapEntityModule16=function(){__p&&__p();if(this.$SearchInstantBootstrapEntityModule12)return;var m=this.$SearchInstantBootstrapEntityModule7;if(m==null)return;var n=c("ContextualComponent").closestToNode(m);if(n==null)return;n.onUnmount(function(){this.$SearchInstantBootstrapEntityModule23();this.$SearchInstantBootstrapEntityModule12=false}.bind(this));this.$SearchInstantBootstrapEntityModule12=true};l.prototype.$SearchInstantBootstrapEntityModule23=function(){__p&&__p();if(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading){if(c("SearchBootstrapEntityModuleUtil").isTopTabURI(c("URI").getNextURI())){if(this.$SearchInstantBootstrapEntityModule13&&this.$SearchInstantBootstrapEntityModule10.length===0){this.$SearchInstantBootstrapEntityModule20();this.$SearchInstantBootstrapEntityModule21()}return}this.$SearchInstantBootstrapEntityModule21();this.$SearchInstantBootstrapEntityModule20()}else this.$SearchInstantBootstrapEntityModule21()};l.prototype.$SearchInstantBootstrapEntityModule14=function(){__p&&__p();var m=c("DOM").create("div",{className:"_126b"});this.$SearchInstantBootstrapEntityModule3=c("DOM").create("div",{className:"_126c"},m);c("ReactRenderer").constructAndRenderComponentAcrossTransitions(c("XUISpinner.react"),{size:"large"},m);var n=[this.$SearchInstantBootstrapEntityModule3],j=c("SearchBootstrapEntityModuleUIConfig").hasTabBarPlaceholder?this.$SearchInstantBootstrapEntityModule24():null;if(j!=null)n.push(j);this.$SearchInstantBootstrapEntityModule6=c("DOM").create("div",{className:"_126d"},n);c("DOM").appendContent(this.$SearchInstantBootstrapEntityModule6,this.$SearchInstantBootstrapEntityModule3);c("CSS").hide(this.$SearchInstantBootstrapEntityModule6);c("DOM").appendContent(document.body,this.$SearchInstantBootstrapEntityModule6)};l.prototype.$SearchInstantBootstrapEntityModule24=function(){var m=j.map(function(p,q){return c("React").createElement(c("XUIPageNavigationItem.react"),{className:"_4gsg",href:"#",key:q},p)}),n=c("DOM").create("div"),o=c("DOM").create("div",{className:"_5sqx _4-u2 _4-u8","aria-hidden":true},c("DOM").create("div",{className:"_zz9 _5im-"},n));c("ReactRenderer").constructAndRenderComponentAcrossTransitions(c("XUIPageNavigation.react"),{children:c("React").createElement(c("XUIPageNavigationGroup.react"),null,m)},n);return o};l.prototype.$SearchInstantBootstrapEntityModule18=function(){var m=[];if(this.$SearchInstantBootstrapEntityModule4!=null){m=this.$SearchInstantBootstrapEntityModule1.getSquashedEntityIDsFromQueryString(this.$SearchInstantBootstrapEntityModule4);if(m==null)m=[]}c("Arbiter").inform("FacebarDataSource.getBootstrapMatches",{query:this.$SearchInstantBootstrapEntityModule4,callback:this.$SearchInstantBootstrapEntityModule25,whitelistedEntIds:m},c("Arbiter").BEHAVIOR_PERSISTENT)};l.prototype.$SearchInstantBootstrapEntityModule19=function(m){__p&&__p();var n=this.$SearchInstantBootstrapEntityModule4,o=this.$SearchInstantBootstrapEntityModule10;if(n==null||o.length===0)return;var p=void 0,q=m.getQueryData().ref,r=c("FacebarKeywordSearchUtils").decodeFacebarURIParams(m);if(r==null)p=q;var s=o.map(function(v){return v.tuid}),t=this.$SearchInstantBootstrapEntityModule9;if(t==null)return;var u=babelHelpers["extends"]({},r,{preloaded_entity_ids:s,preloaded_entity_type:o[0].type,ent_ids:this.$SearchInstantBootstrapEntityModule1.getSquashedEntityIDsFromQueryString(n),bsid:t});if(p!=null)u.ref=p;m.setQueryData(babelHelpers["extends"]({},m.getQueryData(),{ref:c("Base64").encode(JSON.stringify(u)).replace(/\=+$/,"")}))};l.prototype.$SearchInstantBootstrapEntityModule22=function(){__p&&__p();var m=this.$SearchInstantBootstrapEntityModule10,n=this.$SearchInstantBootstrapEntityModule4,o=this.$SearchInstantBootstrapEntityModule9;if(m==null||n==null||o==null)return;if(m.length===0){c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","no_matches");return}var p=c("DOM").create("div",{"data-bt":JSON.stringify({session_id:o,typeahead_sid:this.$SearchInstantBootstrapEntityModule8})});c("BrowseClickLogger").init(p);var q=c("SearchBootstrapEntityModuleUtil").getTitleForResultType(m[0].type),r={plain_text_query:n,browse_query:"keywords_search("+n+")",results:m,module_role:c("SearchEntityModuleServerConstants").RESULT_TYPE_TO_MODULE_ROLE[m[0].type],result_type:m[0].type,num_results_to_show:c("SearchBootstrapEntityModuleUIConfig").numResultsToShow,client_view_config:c("SearchWWWTrackableClientViewConfig"),browse_session_id:o,module_style:c("SearchEntityModuleUIConfig").moduleStyle,title:q,see_more_uri:c("SearchBootstrapEntityModuleUtil").getSeeMoreURIForResults(m,this.$SearchInstantBootstrapEntityModule8,n),logging_unit_id:c("SearchBootstrapEntityModuleUtil").generateUnitIDWithPrefix("www_bem"),has_module_guidelines:c("SearchEntityModuleUIConfig").hasModuleGuidelines,viewer_id:c("CurrentUser").getID(),is_bootstrap_entity_module:true,should_render_footer:false};if(this.$SearchInstantBootstrapEntityModule5!=null)c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","previous_bem_not_unmounted");this.$SearchInstantBootstrapEntityModule5=c("ReactRenderer").constructAndRenderComponentAcrossTransitions(c("SearchEntityModule.react"),r,p,this.$SearchInstantBootstrapEntityModule26);c("DOM").prependContent(this.$SearchInstantBootstrapEntityModule3,p)};l.prototype.$SearchInstantBootstrapEntityModule21=function(){__p&&__p();var f=this.$SearchInstantBootstrapEntityModule5;if(f==null)return;var m=false,n=c("ReactDOM").findDOMNode(f);if(n!=null&&n.parentNode!=null)m=c("ReactDOM").unmountComponentAtNode(n.parentNode);if(!m)c("BanzaiODS").bumpEntityKey("search.www.bem.instant_bem","current_bem_did_not_unmount");this.$SearchInstantBootstrapEntityModule5=null;this.$SearchInstantBootstrapEntityModule13=false};l.prototype.$SearchInstantBootstrapEntityModule27=function(){c("CSS").show(this.$SearchInstantBootstrapEntityModule6);if(document.body!=null)c("CSS").removeClass(document.body,"_2yq");if(this.$SearchInstantBootstrapEntityModule7!=null)c("CSS").hide(this.$SearchInstantBootstrapEntityModule7)};l.prototype.$SearchInstantBootstrapEntityModule20=function(){if(this.$SearchInstantBootstrapEntityModule7!=null)c("CSS").show(this.$SearchInstantBootstrapEntityModule7);c("CSS").hide(this.$SearchInstantBootstrapEntityModule6)};l.moveInsideWrapper=function(m){__p&&__p();if(k==null){c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","bem_not_initialized");return}if(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading)k.$SearchInstantBootstrapEntityModule20();else k.$SearchInstantBootstrapEntityModule22();var f=k.$SearchInstantBootstrapEntityModule5;if(f==null){c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","no_module_found_on_instance");return}var n=c("ReactDOM").findDOMNode(f);if(n==null){c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","no_module_root_found");return}if(n.parentNode==null){c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","no_parent_node_found_for_module_root");return}if(!c("DOM").contains(document.body,m))c("SearchBootstrapEntityModuleDebugUtil").printDebugNotice(c("SearchBootstrapEntityModuleUIConfig").hasInstantLoading?"new_bem_with_instant_loading":"new_bem","wrapper_not_in_dom");c("DOM").appendContent(m,n.parentNode)};f.exports=l}),null);
__d("SearchCommentHighlighter",["csx","Arbiter","CSS","NodeHighlighter","Parent","UFIUIEvents"],(function a(b,c,d,e,f,g,h){__p&&__p();var i="data-highlight-tokens",j=babelHelpers["extends"]({},c("NodeHighlighter"),{_enableCommentHighlighting:function k(){if(this._subscription)return;this._subscription=c("Arbiter").subscribe(c("UFIUIEvents").Changed,function(l,m){var n=m.form;return this._highlightComments(n)}.bind(this));c("Arbiter").subscribeOnce("pre_page_transition",function(){return this._disableCommentHighlighting()}.bind(this))},_disableCommentHighlighting:function k(){this._subscription.unsubscribe();this._subscription=null},_highlightComments:function k(l){var m=this._getHighlightTokens(l);if(m)c("NodeHighlighter").highlight.call(this,l,m)},_getHighlightTokens:function k(l){var m=c("Parent").byAttribute(l,i);return m?JSON.parse(m.getAttribute(i)):null},isDiscardNode:function k(l){return c("CSS").hasClass(l,"highlightNode")},getHighlightCandidates:function k(){return[".UFICommentContent"]},highlight:function k(l,m){if(!l.setAttribute)return;l.setAttribute(i,JSON.stringify(m));this._enableCommentHighlighting()}});f.exports=j}),null);
__d("SimpleStructuredInput",["csx","Arbiter","ArbiterMixin","DataStore","DOM","Event","FacebarStructuredText","Input","Parent","getActiveElement","mixin"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("mixin")(c("ArbiterMixin")));j=i&&i.prototype;function k(l){"use strict";j.constructor.call(this);this.$SimpleStructuredInput1=l;this.$SimpleStructuredInput2=c("DOM").find(l,"._1frb");this.$SimpleStructuredInput3=c("DOM").find(l,"._5eay");c("DataStore").set(l,"SimpleStructuredInput",this);this.init()}k.prototype.init=function(){"use strict";var l=function(event){return this.inform(event.type)}.bind(this);c("Event").listen(this.$SimpleStructuredInput2,"blur",l);c("Event").listen(this.$SimpleStructuredInput2,"focus",l);c("Event").listen(this.$SimpleStructuredInput2,"input",function(){this.inform("change")}.bind(this));this.inform("init",null,c("Arbiter").BEHAVIOR_PERSISTENT)};k.prototype.setHint=function(l){"use strict";var m=l.map(function(l){return l.text}).join(""),n=c("Input").getValue(this.$SimpleStructuredInput2);if(this.hasFocus()&&n.length>0&&m.toLowerCase().indexOf(n.toLowerCase())===0)c("Input").setValue(this.$SimpleStructuredInput3,n+m.slice(n.length));else c("Input").setValue(this.$SimpleStructuredInput3,"")};k.prototype.focus=function(){"use strict";this.$SimpleStructuredInput2.focus()};k.prototype.blur=function(){"use strict";this.$SimpleStructuredInput2.blur();this.setHint([])};k.prototype.hasFocus=function(){"use strict";return c("DOM").contains(this.$SimpleStructuredInput1,c("getActiveElement")())};k.prototype.setStructure=function(l){var m=arguments.length<=1||arguments[1]===undefined?false:arguments[1];"use strict";var n=l.map(function(l){return l.text});c("Input").setValue(this.$SimpleStructuredInput2,n.join(""));if(m!==true)this.inform("change")};k.prototype.getStructure=function(){"use strict";return c("FacebarStructuredText").fromString(c("Input").getValue(this.$SimpleStructuredInput2)).toStruct()};k.prototype.getSelection=function(){"use strict";return{offset:this.$SimpleStructuredInput2.selectionStart,length:this.$SimpleStructuredInput2.selectionEnd-this.$SimpleStructuredInput2.selectionStart}};k.prototype.setSelection=function(l){"use strict";if(this.hasFocus()){this.$SimpleStructuredInput2.setSelectionRange(l.offset,l.offset+l.length);this.inform("select")}};k.prototype.isSelectionAtEnd=function(){"use strict";var l=this.getSelection().offset,m=c("Input").getValue(this.$SimpleStructuredInput2).length;return l>=m};k.prototype.selectAll=function(){"use strict";this.setSelection({offset:0,length:c("Input").getValue(this.$SimpleStructuredInput2).length})};k.getInstance=function(l){"use strict";var m=c("Parent").bySelector(l,"._5eaz");if(!(m instanceof HTMLElement))throw new Error("No DOMElement structured input found using");return c("DataStore").get(m,"SimpleStructuredInput")||new k(m)};f.exports=k}),null);
__d("FbFeedHighlighter",["csx","cx","CSS","NodeHighlighter","SearchCommentHighlighter"],(function a(b,c,d,e,f,g,h,i){var j="_58cn",k=babelHelpers["extends"]({},c("NodeHighlighter"),{getHighlightCandidates:function l(){return["._5pbw","._5pbx","._6m6","._6m7","._59tj","._5b-_","._5b_0","._4_j6",".commentBody","._6lc","._6s_"]},isStopNode:function l(m){return c("CSS").hasClass(m,j)},isDiscardNode:function l(m){return c("CSS").hasClass(m,"text_exposed_link")},highlight:function l(m,n){c("NodeHighlighter").highlight.call(this,m,n);c("SearchCommentHighlighter").highlight(m,n)}});f.exports=k}),null);
__d("WorkWebDriverConstants",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ADMIN_EMPLOYEES_MEMBER_TABLE:"employees_member_table",ADMIN_EMPLOYEES_GENERATE_CLAIM_DIALOG:"employees_generate_claim_dialog",PAGELET_COMPANY_LOGO:"pagelet_company_logo",PROGRESS_BAR:"progressbar",DASHBOARD_GROUPS_GRID:"dashboard_groups_grid",DASHBOARD_GROUPS_MEMBER_COUNT:"dashboard_groups_member_count",DASHBOARD_GROUPS_ADMIN_COUNT:"dashboard_groups_admin_count",DASHBOARD_IMPORT_PEOPLE_CREATED:"dashboard_import_people_created",DASHBOARD_IMPORT_PEOPLE_FINISHED_BUTTON:"dashboard_import_people_finished_button",DASHBOARD_IMPORT_PEOPLE_OPTIONS:"dashboard_import_people_options",DASHBOARD_IMPORT_PEOPLE_QUICK_ADD_OPTION:"dashboard_import_people_quick_add_option",DASHBOARD_IMPORT_PEOPLE_SPREADSHEET_OPTION:"dashboard_import_people_spreadsheet_option",DASHBOARD_INVITES_SECTION:"dashboard_invites_section",DASHBOARD_INVITES_ALL_BUTTON:"dashboard_invites_all_button",DASHBOARD_INVITES_CUSTOM_EMAIL:"dashboard_invites_custom_email",DASHBOARD_INVITES_DEFAULT_EMAIL_SEND:"dashboard_invites_default_email_send",DASHBOARD_INVITES_CONFIRMATION_DIALOG:"dashboard_invites_confirmation_dialog",DASHBOARD_INVITES_CONFIRM_SEND:"dashboard_invites_confirm_send",DASHBOARD_INVITES_CONFIRMED:"dashboard_invites_confirmed",DASHBOARD_INVITES_PREPARING:"dashboard_invites_preparing",DASHBOARD_IMPORT_PROFILES:"dashboard_import_profiles",DASHBOARD_IMPORT_PROFILES_CONFIRM:"dashboard_import_profiles_confirm",DASHBOARD_IMPORT_PROFILES_SUCCESS:"dashboard_import_profiles_success",DASHBOARD_UPLOAD_SPREADSHEET:"dashboard_upload_spreadsheet",DASHBOARD_LOCALE_SELECTOR_DIALOG:"dashboard_locale_selector_dialog",DASHBOARD_LOCALE_SELECTOR_DIALOG_LOCALE_SELECTOR:"dashboard_locale_selector_dialog_locale_selector",DASHBOARD_LOCALE_SELECTOR_DIALOG_CTA:"dashboard_locale_selector_dialog_cta",DASHBOARD_SETTINGS_COMPANY_NAME:"dashboard_settings_company_name",DASHBOAR_SETTINGS_SAVE:"dashboard_settings_save",DASHBOARD_SETTINGS_SAVED_DIALOG:"dashboard_settings_saved_dialog",GROUP_MORE_ACTIONS:"group_more_actions",GROUP_MORE_ACTIONS_POPOVER:"group_more_actions_popover",GROUP_IMPORT_MEMBERS:"group_import_members",GROUP_IMPORT_MEMBERS_UPLOAD_FILE:"group_import_members_upload_file",GROUP_IMPORT_MEMBERS_INVITE_ALL:"group_import_members_invite_all",GROUP_IMPORT_MEMBERS_SUCCESS:"group_import_members_success",GROUP_SUGGESTION_CARD:"GROUP_SUGGESTION_CARD",GROUP_SETUP_SUBMIT:"GROUP_SETUP_SUBMIT",GROUP_SUBMISSION_SUCCESS:"GROUP_SUBMISSION_SUCCESS",DASHBOARD_ADMINISTRATORS:"dashboard_add_administrators",DASHBOARD_ADMINISTRATORS_INVITE_ADMIN:"dashboard_administrators_invite_admin",DASHBOARD_ADMINISTRATORS_FIND_COLLEAGUES:"dashboard_administrators_find_colleagues",DASHBOARD_ADMINISTRATORS_ROLE_DIALOG:"dashboard_administrators_role_dialog",DASHBOARD_ADMINISTRATORS_ADD_ADMIN:"dashboard_administrators_add_admin",DASHBOARD_ADMINISTRATORS_AWAITING_ACCEPTANCE:"dashboard_administrators_awaiting_acceptance",FAKE_IDP_EMAIL_FIELD:"fake_idp_field",FAKE_IDP_LOGIN_BUTTON:"fake_idp_login_button",FAKE_IDP_LOGOUT_BUTTON:"fake_idp_logout_button",CREATE_WORK_GROUP_DIALOG_SKIP_ADD_MEMBERS:"create_group_dialog_skip_add_members",CREATE_WORK_GROUP_LEFT_NAV_BOOKMARK:"left_nav_item_Create Group",CREATE_WORK_GROUP_NAME_NEXT_BUTTON:"create_work_group_name_next_button",CREATE_WORK_GROUP_NAME_TEXT:"create_work_group_name_text",CREATE_WORK_GROUP_NAME_DIALOG:"create_group_dialog_name",CREATE_WORK_GROUP_PURPOSE_TEAM_GROUP:"create_work_group_purpose_work_team",GROUP_TITLE_IN_GROUP_PAGE:"group_title_in_group_page",COWORKER_INVITE_BOX:"coworker_invite_box",COWORKER_INVITE_DIALOG_INPUT:"coworker_invite_dialog_input",COWORKER_INVITE_DIALOG_LINK:"coworker_invite_dialog_link",COWORKER_INVITE_DIALOG_INPUT_VIEW:"coworker_invite_dialog_input_view",COWORKER_INVITE_INPUT:"coworker_invite_input",COWORKER_INVITE_BUTTON:"coworker_invite_button",COWORKER_INVITE_TOPBAR_BUTTON:"coworker_invite_topbar_button",COWORKER_INVITE_RESULTS:"coworker_invite_results",COWORKER_INVITE_LINK:"coworker_invite_link",WORK_LANDING:"work_landing",WORK_LANDING_TITLE:"work_landing_title",WORK_LANDING_INPUT:"work_landing_input",WORK_LANDING_BUTTON:"work_landing_button",COMPANY_CREATION_LANDING:"company_creation_landing",COMPANY_CREATION_TITLE:"company_creation_title",LOGIN_USERNAME_PASSWORD_FORM:"login_username_password_form",LOGIN_BUTTON:"login_button",LOGIN_USERNAME:"login_username",LOGIN_PASSWORD:"login_password",LOGIN_FORGOT_PASSWORD:"login_forgot_password",LOGIN_FORGOT_PASSWORD_MOBILE:"login_forgot_password_mobile",LOGIN_IDENTIFY_FORM:"login_identify_form",LOGIN_IDENTIFY_USERNAME:"login_identify_username",LOGIN_IDENTIFY_BUTTON:"login_identify_button",SIGNUP_FORM:"signup_form",SIGNUP_FORM_FIELD_NAME:"signup_form_field_name",SIGNUP_FORM_FIELD_PASSWORD:"signup_form_field_password",SIGNUP_FORM_FIELD_COUNTRY_CODE:"signup_form_field_country_code",SIGNUP_FORM_FIELD_COMPANY_NAME:"signup_form_field_company_name",SIGNUP_FORM_FIELD_PHONE_NUMBER:"signup_form_field_phone_number",SIGNUP_FORM_FIELD_TITLE:"signup_form_field_title",SIGNUP_FORM_FIELD_DEPARTMENT:"signup_form_field_department",SIGNUP_FORM_FIELD_INDUSTRY:"signup_form_field_industry",SIGNUP_FORM_FIELD_NGO:"signup_form_field_ngo",SIGNUP_FORM_FIELD_COMPANY_SIZE:"signup_form_field_company_size",SIGNUP_FORM_FIELD_COMPANY_SIZE_TOGGLE:"signup_form_field_company_size_toggle",SIGNUP_FORM_FIELD_B2B:"signup_form_field_b2b",SIGNUP_FORM_FIELD_GO:"signup_form_field_go",SIGNUP_FORM_FIELD_COMMENT:"signup_form_field_comment",SIGNUP_FORM_FIELD_CUSTOM_AGREEMENT:"signup_form_field_custom_agreement",SIGNUP_FORM_FIELD_USERNAME:"signup_form_field_username",SIGNUP3_FORM_FIELD_EMAIL:"signup3_form_field_email",LOGIN_SSO_FORM:"login_sso_form",LOGIN_SSO_SUBMIT_BUTTON:"login_sso_submit_button",SEARCH_INPUT:"search_input",SEARCH_TYPEAHEAD_VIEW:"search_typeahead_view",SIMPLIFIED_GYSJ_JOIN_GROUP_BUTTON:"simplified_gysj_join_group_button",SIMPLIFIED_GYSJ_SUBMIT_BUTTON:"simplified_gysj_submit_button",TEAM_SETUP_CONTINUE_BUTTON:"team_setup_continue_button",TEAM_SETUP_TEAM_NAME_INPUT:"team_setup_team_name_input",TEAM_SETUP_INVITE_INPUT:"team_setup_invite_input",WORK_INVITE_GRID:"work_invite_grid",WORK_INVITE_GRID_BUTTON_ADD_MORE:"work_invite_grid_button_add_more",WORK_INVITE_GRID_BUTTON_SKIP:"work_invite_grid_button_skip",WORK_INVITE_GRID_BUTTON_SUBMIT:"work_invite_grid_button_submit",WORK_INVITE_GRID_FIELD_EMAIL:"work_invite_grid_field_email",WORK_INVITE_GRID_FIELD_NAME:"work_invite_grid_field_name",WORK_INVITE_GRID_ROW:"work_invite_grid_row",COMPOSER_MARKDOWN_BUTTON:"testid-MARKDOWN",PROFILE_NAME_IN_PROFILE_PAGE:"profile_name_in_profile_page",UPGRADE_TEXT_LINK:"upgrade_text_link",UPGRADE_CONFIRM_BUTTON:"upgrade_confirm_button",UPGRADE_DNS_METHOD_BUTTON:"upgrade_dns_method_button",UPGRADE_HTML_METHOD_BUTTON:"upgrade_html_method_button",UPGRADE_VERIFY_BUTTON:"upgrade_verify_button",EMAILLESS_ACCESS_CODE_FORM:"emailless_access_code_form",EMAILLESS_ACCESS_CODE_FIELD:"emailless_access_code_field",EMAILLESS_ACCESS_CODE_SUBMIT_BUTTON:"emailless_access_code_submit_button",ACTIVATION_GOLDIE_REACT_COMPONENT:"activation_goldie_react_component",ACTIVATION_GOLDIE_SKIP_BUTTON:"activation_goldie_skip_button",ACTIVATION_GOLDIE_DONE_BUTTON:"activation_goldie_done_button",ACTIVATION_GOLDIE_WELCOME_MESSAGE_COMPONENT:"activation_goldie_welcome_message_component",ACTIVATION_GOLDIE_ADD_PEOPLE_COMPONENT:"activation_goldie_add_people_component",ACTIVATION_GOLDIE_UPLOAD_LOGO_COMPONENT:"activation_goldie_upload_logo_component",ACTIVATION_GOLDIE_CREATE_GROUP_COMPONENT:"activation_goldie_create_group_component",WORK_PROVISIONER_COMPONENT:"work_provisioner_component",WORK_PROVISIONER_ROW_COMPONENT:"work_provisioner_row_component",WORK_PROVISIONER_NAME_INPUT_COMPONENT:"work_provisioner_name_input_component",WORK_PROVISIONER_EMAIL_INPUT_COMPONENT:"work_provisioner_email_input_component"})}),null);
__d("StaticContainer.react",["React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.shouldComponentUpdate=function(k){"use strict";return!!k.shouldUpdate};j.prototype.render=function(){"use strict";var k=this.props.children;if(k===null||k===false)return null;return c("React").Children.only(k)};function j(){"use strict";h.apply(this,arguments)}f.exports=j}),null);
__d("mayHaveConnectedCharacters",[],(function a(b,c,d,e,f,g){"use strict";function h(i){return i.match(/[\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1A20-\u1AAF\u1B00-\u1B7F\u1B80-\u1BBF\u1BC0-\u1BFF\u1C00-\u1C4F\u1CC0-\u1CCF\uA800-\uA82F\uA840-\uA87F\uA880-\uA8DF\uA8E0-\uA8FF\uA930-\uA95F\uA980-\uA9DF\uA9E0-\uA9FF\uAA00-\uAA5F\uAA60-\uAA7F\uAA80-\uAADF\uAAE0-\uAAFF\uABC0-\uABFF\u0600-\u06FF\u0750–\u077F\u08A0–\u08FF\uFB50–\uFDFF\uFE70–\uFEFF\u4e00-\u9faf\u0D80-\u0DFF\u0E80-\u0EFF]/)!=null}f.exports=h}),null);