;/*FB_PKG_DELIM*/ __d("AsyncFormRequestUtils",["Arbiter"],(function(a,b,c,d,e,f,g){function a(a,b,d){c("Arbiter").subscribe("AsyncRequest/"+b,function(b,c){b=c.request.relativeTo;b&&b===a&&d(c)})}g.subscribe=a}),98); __d("Button",["csx","cx","invariant","CSS","DOM","DataStore","Event","Parent","emptyFunction","isNode"],(function(a,b,c,d,e,f,g,h,i,j){var k="uiButtonDisabled",l="uiButtonDepressed",m="_42fr",n="_42fs",o="button:blocker",p="href",q="ajaxify";function r(a,b){var e=d("DataStore").get(a,o);b?e&&(e.remove(),d("DataStore").remove(a,o)):e||d("DataStore").set(a,o,c("Event").listen(a,"click",c("emptyFunction").thatReturnsFalse,c("Event").Priority.URGENT))}function s(a){a=d("Parent").byClass(a,"uiButton")||d("Parent").bySelector(a,"._42ft");if(!a)throw new Error("invalid use case");return a}function t(a){return c("DOM").isNodeOfType(a,"a")}function u(a){return c("DOM").isNodeOfType(a,"button")}function v(a){return d("CSS").matchesSelector(a,"._42ft")}var w={getInputElement:function(a){a=s(a);if(t(a))throw new Error("invalid use case");if(u(a)){a instanceof HTMLButtonElement||j(0,21261);return a}return c("DOM").find(a,"input")},isEnabled:function(a){return!(d("CSS").hasClass(s(a),k)||d("CSS").hasClass(s(a),m))},setEnabled:function(a,b){a=s(a);var c=v(a)?m:k;d("CSS").conditionClass(a,c,!b);if(t(a)){c=a.getAttribute("href");var e=a.getAttribute("ajaxify"),f=d("DataStore").get(a,p,"#"),g=d("DataStore").get(a,q);b?(c||a.setAttribute("href",f),!e&&g&&a.setAttribute("ajaxify",g),a.removeAttribute("tabIndex")):(c&&c!==f&&d("DataStore").set(a,p,c),e&&e!==g&&d("DataStore").set(a,q,e),a.removeAttribute("href"),a.removeAttribute("ajaxify"),a.setAttribute("tabIndex","-1"));r(a,b)}else{f=w.getInputElement(a);f.disabled=!b;r(f,b)}},setDepressed:function(a,b){a=s(a);var c=v(a)?n:l;d("CSS").conditionClass(a,c,b)},isDepressed:function(a){a=s(a);var b=v(a)?n:l;return d("CSS").hasClass(a,b)},setLabel:function(a,b){a=s(a);if(v(a)){var e=[];b&&e.push(b);var f=c("DOM").scry(a,".img");for(var g=0;g=h){e[g][j]===void 0&&(e[g][j]=k);continue}j=JSON.parse(k);for(k in j)d[k]!==void 0?(e[c[i]][k]===void 0&&(e[c[i]][k]=[]),e[c[i]][k].push(j[k])):e[c[i]][k]===void 0&&(e[c[i]][k]=j[k])}}a=b("getContextualParent")(a)}for(k in e)for(j in d)e[k][j]!==void 0&&(e[k][j]=e[k][j].join(d[j]));return e}e.exports=a}),null); __d("FeedTrackingAsync",["Arbiter","Run","collectDataAttributes"],(function(a,b,c,d,e,f,g){var h;function a(){if(h)return;h=c("Arbiter").subscribe("AsyncRequest/send",function(a,b){a=b.request;b=a.getRelativeTo();if(b){a=a.getData();b=c("collectDataAttributes")(b,["ft"]);b.ft&&Object.keys(b.ft).length&&Object.assign(a,b)}});d("Run").onLeave(function(){h&&(h.unsubscribe(),h=null)})}g.init=a}),98); __d("FocusEvent",["Event","Run","ge","getOrCreateDOMID"],(function(a,b,c,d,e,f,g){"use strict";var h={},i=!1;function j(a,b){if(h[a]){b=h[a].indexOf(b);b>=0&&h[a].splice(b,1);h[a].length===0&&delete h[a]}}function k(a){var b=a.getTarget();if(h[b.id]&&h[b.id].length>0){var c=a.type==="focusin"||a.type==="focus";h[b.id].forEach(function(a){a(c)})}}function l(){if(i)return;c("Event").listen(document.documentElement,"focusout",k);c("Event").listen(document.documentElement,"focusin",k);i=!0}function a(a,b,e){e===void 0&&(e={cleanupOnLeave:!0});l();var f=c("getOrCreateDOMID")(a);h[f]||(h[f]=[]);h[f].push(b);var g=!1;function i(){g||(j(f,b),k&&(k.remove(),k=null),g=!0)}var k=((a=e)==null?void 0:a.cleanupOnLeave)===!0?d("Run").onLeave(function(){c("ge")(f)||i()}):null;return{remove:function(){i()}}}g.listen=a}),98); __d("isStringNullOrEmpty",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a==null||a===""}f["default"]=a}),66); __d("tooltipPropsFor",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){if(!a)return{};a={"data-tooltip-content":a,"data-hover":"tooltip"};b&&(a["data-tooltip-position"]=b);c&&(a["data-tooltip-alignh"]=c);return a}f["default"]=a}),66); __d("TooltipData",["DOM","DataStore","FBLogger","URI","getElementText","ifRequired","isStringNullOrEmpty","isTextNode","tooltipPropsFor"],(function(a,b,c,d,e,f,g){var h;function i(a){var b,d=a.getAttribute("data-tooltip-delay");d=d?parseInt(d,10)||1e3:250;b=(b=c("DataStore").get(a,"tooltip"))!=null?b:{};var e=b.content;b=babelHelpers.objectWithoutPropertiesLoose(b,["content"]);var f=a.getAttribute("data-tooltip-content");!c("isStringNullOrEmpty")(e)&&!c("isStringNullOrEmpty")(f)&&c("FBLogger")("tooltip").warn('Getting DataStore tooltip content on an element that has both a "data-tooltip-content" attribute value (set to %s) and a value coming from the DataStore',a.getAttribute("data-tooltip-content"));return babelHelpers["extends"]({className:a.getAttribute("data-tooltip-root-class"),delay:d,position:a.getAttribute("data-tooltip-position")||"above",alignH:a.getAttribute("data-tooltip-alignh")||"left",offsetY:a.getAttribute("data-tooltip-offsety")||0,suppress:!1,overflowDisplay:a.getAttribute("data-tooltip-display")==="overflow",persistOnClick:a.getAttribute("data-pitloot-persistonclick"),textDirection:a.getAttribute("data-tooltip-text-direction"),content:(a=(d=f)!=null?d:e)!=null?a:null},b)}function j(a,b){var d=i(a);(typeof b.content!=="string"||!c("isStringNullOrEmpty")(b.content))&&!c("isStringNullOrEmpty")(a.getAttribute("data-tooltip-content"))&&c("FBLogger")("tooltip").warn('Setting DataStore tooltip content on an element that already has the "data-tooltip-content" attribute (set to %s) is invalid',a.getAttribute("data-tooltip-content"));c("DataStore").set(a,"tooltip",{content:b.content||((a=c("DataStore").get(a,"tooltip"))!=null?a:{}).content,position:b.position||d.position,alignH:b.alignH||d.alignH,suppress:b.suppress!==void 0?b.suppress:d.suppress,overflowDisplay:b.overflowDisplay||d.overflowDisplay,persistOnClick:b.persistOnClick||d.persistOnClick})}function k(a,b){j(a,b),a.setAttribute("data-hover","tooltip")}function l(a,b){}var m={remove:function(a,b){b=b===void 0?{}:b;b=b.onlyCleanupDataStore;b=b===void 0?!1:b;c("DataStore").remove(a,"tooltip");b||(a.removeAttribute("data-hover"),a.removeAttribute("data-tooltip-position"),a.removeAttribute("data-tooltip-alignh"),c("ifRequired")("Tooltip",function(b){b.isActive(a)&&b.hide()}))},set:function(a,b,d,e){l(a,b),b instanceof(h||(h=c("URI")))?(a.setAttribute("data-tooltip-uri",b.toString()),c("ifRequired")("Tooltip",function(b){b.isActive(a)&&b.fetchIfNecessary(a)})):(a.removeAttribute("data-tooltip-content"),m._store({context:a,content:b,position:d,alignH:e}),m.refreshIfActive(a))},refreshIfActive:function(a){c("ifRequired")("Tooltip",function(b){b.isActive(a)&&b.show(a)})},_store:function(a){var b=a.context,d=a.content,e=a.position;a=a.alignH;d=d;l(b,d);c("isTextNode")(d)&&d instanceof Element&&(d=c("getElementText")(d));var f=!1;typeof d!=="string"?d=c("DOM").create("div",{},d):f=d==="";a={alignH:a,content:d,position:e,suppress:f};k(b,a);return a},propsFor:c("tooltipPropsFor"),enableDisplayOnOverflow:function(a){a.removeAttribute("data-tooltip-display"),k(a,{overflowDisplay:!0})},enablePersistOnClick:function(a){a.removeAttribute("data-pitloot-persistOnClick"),k(a,{persistOnClick:!0})},suppress:function(a,b){j(a,{suppress:b})},_get:i};f.exports=m}),34); __d("Focus",["cx","CSS","Event","FocusEvent","KeyStatus","TooltipData","ifRequired"],(function(a,b,c,d,e,f,g,h){function a(a,b){b===void 0&&(b=!1);if(a){var e=c("ifRequired")("VirtualCursorStatus",function(a){return a.isVirtualCursorTriggered()},function(){return!1});b||d("KeyStatus").isKeyDown()||e?k(a):i(a)}}function i(a){if(a){d("CSS").addClass(a,"_5f0v");var b=c("Event").listen(a,"blur",function(){a&&d("CSS").removeClass(a,"_5f0v"),b.remove()});d("TooltipData").suppress(a,!0);k(a);d("TooltipData").suppress(a,!1)}}function b(a,b,c){c===void 0&&(c={cleanupOnLeave:!0});d("CSS").addClass(a,"_5f0v");return d("FocusEvent").listen(a,function(){for(var c=arguments.length,d=new Array(c),e=0;e0?a.setAttribute("maxlength",b.toString()):a.removeAttribute("maxlength")}g.isWhiteSpaceOnly=h;g.isEmpty=i;g.getValue=a;g.getValueRaw=b;g.setValue=e;g.setPlaceholder=f;g.reset=j;g.setSubmitOnEnter=k;g.getSubmitOnEnter=l;g.setMaxLength=m}),98); __d("normalizeBoundingClientRect",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=a.ownerDocument.documentElement;var c=a?a.clientLeft:0;a=a?a.clientTop:0;var d=Math.round(b.left)-c;c=Math.round(b.right)-c;var e=Math.round(b.top)-a;b=Math.round(b.bottom)-a;return{left:d,right:c,top:e,bottom:b,width:c-d,height:b-e}}f["default"]=a}),66); __d("getElementRect",["containsNode","normalizeBoundingClientRect"],(function(a,b,c,d,e,f,g){function a(a){var b;b=a==null?void 0:(b=a.ownerDocument)==null?void 0:b.documentElement;return!a||!("getBoundingClientRect"in a)||!c("containsNode")(b,a)?{left:0,right:0,top:0,bottom:0,width:0,height:0}:c("normalizeBoundingClientRect")(a,a.getBoundingClientRect())}g["default"]=a}),98); __d("getElementPosition",["getElementRect"],(function(a,b,c,d,e,f,g){function a(a){a=c("getElementRect")(a);return{x:a.left,y:a.top,width:a.right-a.left,height:a.bottom-a.top}}g["default"]=a}),98); __d("Form",["DOM","DOMQuery","DTSG","DTSGUtils","DataStore","FBLogger","Input","LSD","PHPQuerySerializer","Random","SprinkleConfig","URI","getElementPosition","isFacebookURI","isNode"],(function(a,b,c,d,e,f,g){var h,i,j="FileList"in window,k="FormData"in window;function l(a){var b={};(h||(h=c("PHPQuerySerializer"))).serialize(a).split("&").forEach(function(a){if(a){a=/^([^=]*)(?:=(.*))?$/.exec(a);var d=(i||(i=c("URI"))).decodeComponent(a[1]),e=a[2]!==void 0;e=e?(i||(i=c("URI"))).decodeComponent(a[2]):null;b[d]=e}});return b}var m={getInputs:function(a){a===void 0&&(a=document);return[].concat(d("DOMQuery").scry(a,"input"),d("DOMQuery").scry(a,"select"),d("DOMQuery").scry(a,"textarea"),d("DOMQuery").scry(a,"button"))},getInputsByName:function(a){var b={};m.getInputs(a).forEach(function(a){var c=b[a.name];b[a.name]=c===void 0?a:[a].concat(c)});return b},getSelectValue:function(a){return a.options[a.selectedIndex].value},setSelectValue:function(a,b){for(var c=0;c0&&i.x>0)return h}catch(a){}}}return null},focusFirst:function(a){a=m.getFirstElement(a);if(a){a.focus();return!0}return!1}};f.exports=m}),34); __d("FormSubmit",["AsyncRequest","AsyncResponse","CSS","DOMQuery","Event","Form","Parent","trackReferrer"],(function(a,b,c,d,e,f,g){var h={buildRequest:function(a,b){var e=(d("Form").getAttribute(a,"method")||"GET").toUpperCase();b=b&&d("Parent").byTag(b,"button")||b;var f=b&&d("Parent").byClass(b,"stat_elem")||a;if(d("CSS").hasClass(f,"async_saving"))return null;if(b&&(b.form!==a||b.nodeName!="INPUT"&&b.nodeName!="BUTTON"||b.type!="submit")){var g=d("DOMQuery").scry(a,".enter_submit_target")[0];g&&(b=g)}g=d("Form").serialize(a,b);d("Form").setDisabled(a,!0);b=d("Form").getAttribute(a,"ajaxify")||d("Form").getAttribute(a,"action");var h=!!d("Form").getAttribute(a,"data-cors");c("trackReferrer")(a,b);return new(c("AsyncRequest"))().setAllowCrossOrigin(h).setURI(b).setData(g).setNectarModuleDataSafe(a).setReadOnly(e=="GET").setMethod(e).setRelativeTo(a).setStatusElement(f).setInitialHandler(d("Form").setDisabled.bind(null,a,!1)).setHandler(function(b){c("Event").fire(a,"success",{response:b})}).setErrorHandler(function(b){c("Event").fire(a,"error",{response:b})!==!1&&c("AsyncResponse").defaultErrorHandler(b)}).setFinallyHandler(d("Form").setDisabled.bind(null,a,!1))},send:function(a,b){a=h.buildRequest(a,b);a&&a.send();return a}};a=h;g["default"]=a}),98); __d("throttle",["TimeSlice","TimeSliceInteractionSV","setTimeout","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){function a(a,b,d){return h(a,b,d,c("setTimeout"),!1)}Object.assign(a,{acrossTransitions:function(a,b,d){return h(a,b,d,c("setTimeoutAcrossTransitions"),!1)},withBlocking:function(a,b,d){return h(a,b,d,c("setTimeout"),!0)},acrossTransitionsWithBlocking:function(a,b,d){return h(a,b,d,c("setTimeoutAcrossTransitions"),!0)}});function h(a,b,d,e,f){var g=b==null?100:b,h,i=null,j=0,k=null,l=[],m=c("TimeSlice").guard(function(){j=Date.now();if(i){var b=function(b){a.apply(h,b)}.bind(null,i),c=l.length;while(--c>=0)b=l[c].bind(null,b);l=[];b();i=null;k=e(m,g)}else k=null},"throttle_"+g+"_ms",{propagationType:c("TimeSlice").PropagationType.EXECUTION,registerCallStack:!0});m.__SMmeta=a.__SMmeta;return function(){c("TimeSliceInteractionSV").ref_counting_fix&&l.push(c("TimeSlice").getGuardedContinuation("throttleWithContinuation"));for(var a=arguments.length,b=new Array(a),n=0;ng)&&(f===!0?m():k=e(m,0))}}b=a;g["default"]=b}),98); __d("FullScreen",["ArbiterMixin","CSS","Event","Keys","UserAgent","UserAgent_DEPRECATED","mixin","throttle"],(function(a,b,c,d,e,f,g){var h={},i=!1;function j(a){c("Event").getKeyCode(a)===c("Keys").ESC&&a.stopPropagation()}function k(){i||(document.addEventListener("keydown",j,!0),i=!0)}function l(){i&&(document.removeEventListener("keydown",j,!0),i=!1)}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g=0&&i>=0&&m&&g&&j==null&&c.add("Chrome");l&&m&&!d&&o!=null&&o= 10")&&j==null&&(e<0&&f<0?c.add("IE"):(h<0||h>p)&&(i<0||i>a)&&c.add("MSIE"));j===0&&g&&c.add("Firefox");return c}function q(){l=!0,b("setImmediate")(function(){l=!1})}function r(){m=!0,b("setImmediate")(function(){m=!1})}function s(a,c){n===null&&(n=p(a));o=n.size>0;a=a.target.getAttribute("data-accessibilityid")==="virtual_cursor_trigger";c(o,n,a);b("setImmediate")(function(){o=!1,n=null})}d={isVirtualCursorTriggered:function(){return o},add:function(a,c){c===void 0&&(c=b("emptyFunction"));var d=function(a){return s(a,c)};a.addEventListener("click",d);var e=b("cr:5662").listen(a,"mousedown",q),f=b("cr:5662").listen(a,"mouseup",r);return{remove:function(){a.removeEventListener("click",d),e.remove(),f.remove()}}}};e.exports=d}),null);