Files
recipe-importer/sobors-examples/sobors_3_files/B1U6UaKA1Kp.js.download
T
2026-02-24 18:00:10 +01:00

37 lines
43 KiB
Plaintext

;/*FB_PKG_DELIM*/
__d("AsyncFormRequestUtils",["Arbiter"],(function(t,n,r,o,a,i,l){function e(e,t,n){r("Arbiter").subscribe("AsyncRequest/"+t,function(t,r){var o=r.request.relativeTo;o&&o===e&&n(r)})}l.subscribe=e}),98);
__d("Button",["csx","cx","invariant","CSS","DOM","DataStore","Event","Parent","emptyFunction","isNode"],(function(t,n,r,o,a,i,l,s,u,c){var e="uiButtonDisabled",d="uiButtonDepressed",m="_42fr",p="_42fs",_="button:blocker",f="href",g="ajaxify";function h(e,t){var n=o("DataStore").get(e,_);t?n&&(n.remove(),o("DataStore").remove(e,_)):n||o("DataStore").set(e,_,r("Event").listen(e,"click",r("emptyFunction").thatReturnsFalse,r("Event").Priority.URGENT))}function y(e){var t=o("Parent").byClass(e,"uiButton")||o("Parent").bySelector(e,"._42ft");if(!t)throw new Error("invalid use case");return t}function C(e){return r("DOM").isNodeOfType(e,"a")}function b(e){return r("DOM").isNodeOfType(e,"button")}function v(e){return o("CSS").matchesSelector(e,"._42ft")}var S={getInputElement:function(t){if(t=y(t),C(t))throw new Error("invalid use case");return b(t)?(t instanceof HTMLButtonElement||c(0,21261),t):r("DOM").find(t,"input")},isEnabled:function(n){return!(o("CSS").hasClass(y(n),e)||o("CSS").hasClass(y(n),m))},setEnabled:function(n,r){n=y(n);var t=v(n)?m:e;if(o("CSS").conditionClass(n,t,!r),C(n)){var a=n.getAttribute("href"),i=n.getAttribute("ajaxify"),l=o("DataStore").get(n,f,"#"),s=o("DataStore").get(n,g);r?(a||n.setAttribute("href",l),!i&&s&&n.setAttribute("ajaxify",s),n.removeAttribute("tabIndex")):(a&&a!==l&&o("DataStore").set(n,f,a),i&&i!==s&&o("DataStore").set(n,g,i),n.removeAttribute("href"),n.removeAttribute("ajaxify"),n.setAttribute("tabIndex","-1")),h(n,r)}else{var u=S.getInputElement(n);u.disabled=!r,h(u,r)}},setDepressed:function(t,n){t=y(t);var e=v(t)?p:d;o("CSS").conditionClass(t,e,n)},isDepressed:function(t){t=y(t);var e=v(t)?p:d;return o("CSS").hasClass(t,e)},setLabel:function(t,n){if(t=y(t),v(t)){var e=[];n&&e.push(n);for(var a=r("DOM").scry(t,".img"),i=0;i<a.length;i++){var l=a[i],s=l.parentNode;s.classList&&(s.classList.contains("_4o_3")||s.classList.contains("_-xe"))?t.firstChild===s?e.unshift(s):e.push(s):t.firstChild==l?e.unshift(l):e.push(l)}r("DOM").setContent(t,e)}else if(C(t)){var u=r("DOM").find(t,"span.uiButtonText");r("DOM").setContent(u,n)}else S.getInputElement(t).value=n;var c=v(t)?"_42fv":"uiButtonNoText";o("CSS").conditionClass(t,c,!n)},getIcon:function(t){return t=y(t),r("DOM").scry(t,".img")[0]},setIcon:function(t,n){if(!(n&&!r("isNode")(n))){var e=S.getIcon(t);if(!n){e&&r("DOM").remove(e);return}o("CSS").addClass(n,"customimg"),e!=n&&(e?r("DOM").replace(e,n):r("DOM").prependContent(y(t),n))}}},R=S;l.default=R}),98);
__d("ClientIDs",["randomInt"],(function(t,n,r,o,a,i,l){var e=new Set;function s(){var t=Date.now(),n=t+":"+(r("randomInt")(0,4294967295)+1);return e.add(n),n}function u(t){return e.has(t)}l.getNewClientID=s,l.isExistingClientID=u}),98);
__d("DOMControl",["$","DataStore"],(function(t,n,r,o,a,i){var e=(function(){"use strict";function e(e){this.root=n("$").fromIDOrElement(e),this.updating=!1,n("DataStore").set(e,"DOMControl",this)}var t=e.prototype;return t.getRoot=function(){return this.root},t.beginUpdate=function(){return this.updating?!1:(this.updating=!0,!0)},t.endUpdate=function(){this.updating=!1},t.update=function(t){if(!this.beginUpdate())return this;this.onupdate(t),this.endUpdate()},t.onupdate=function(t){},e.getInstance=function(t){return n("DataStore").get(t,"DOMControl")},e})();a.exports=e}),null);
__d("DataAttributeUtils",["cr:6669","vulture"],(function(t,n,r,o,a,i){var e=[];function l(e,t){for(var n=e;n;){if(t(n))return n;n=n.parentNode}return null}function s(e,t){var n=l(e,function(e){return e instanceof Element&&!!e.getAttribute(t)});return n instanceof Element?n:null}var u={LEGACY_CLICK_TRACKING_ATTRIBUTE:"data-ft",CLICK_TRACKING_DATASTORE_KEY:"data-ft",ENABLE_STORE_CLICK_TRACKING:"data-fte",IMPRESSION_TRACKING_CONFIG_ATTRIBUTE:"data-xt-vimp",IMPRESSION_TRACKING_CONFIG_DATASTORE_KEY:"data-xt-vimp",REMOVE_LEGACY_TRACKING:"data-ftr",getDataAttribute:function(t,n){return c[n]?c[n](t):t.getAttribute(n)},setDataAttribute:function(t,r,o){return n("vulture")("4Lu3FLmMjrQLLrcn2EWCQmlxy8I="),d[r]?d[r](t,o):t.setAttribute(r,o)},getDataFt:function(t){if(t.getAttribute(u.ENABLE_STORE_CLICK_TRACKING)){var e=n("cr:6669").get(t,u.CLICK_TRACKING_DATASTORE_KEY);return e||(e=u.moveClickTrackingToDataStore(t,t.getAttribute(u.REMOVE_LEGACY_TRACKING))),e}return t.getAttribute(u.LEGACY_CLICK_TRACKING_ATTRIBUTE)},setDataFt:function(t,r){if(n("vulture")("udipsc6pHDBpYf1B82yT_X07kUQ="),t.getAttribute(u.ENABLE_STORE_CLICK_TRACKING)){n("cr:6669").set(t,u.CLICK_TRACKING_DATASTORE_KEY,r);return}t.setAttribute(u.LEGACY_CLICK_TRACKING_ATTRIBUTE,r)},moveXTVimp:function(n){u.moveAttributeToDataStore(n,u.IMPRESSION_TRACKING_CONFIG_ATTRIBUTE,u.IMPRESSION_TRACKING_CONFIG_DATASTORE_KEY),e.push(n.id)},getXTrackableElements:function(){for(var t=e.map(function(e){return document.getElementById(e)}).filter(function(e){return!!e}),n=document.querySelectorAll("[data-xt-vimp]"),r=0;r<n.length;r++)t.push(n[r]);return t},getDataAttributeGeneric:function(t,r,o){var e=n("cr:6669").get(t,o);return e!==void 0?e:t.getAttribute(r)},moveAttributeToDataStore:function(t,r,o){var e=t.getAttribute(r);e&&(n("cr:6669").set(t,o,e),t.removeAttribute(r))},moveClickTrackingToDataStore:function(t,r){var e=t.getAttribute(u.LEGACY_CLICK_TRACKING_ATTRIBUTE);return e&&(n("cr:6669").set(t,u.CLICK_TRACKING_DATASTORE_KEY,e),r&&t.removeAttribute(u.LEGACY_CLICK_TRACKING_ATTRIBUTE)),e},getClickTrackingParent:function(t){var e=s(t,u.LEGACY_CLICK_TRACKING_ATTRIBUTE)||s(t,u.ENABLE_STORE_CLICK_TRACKING);return e},getClickTrackingElements:function(t){return n("vulture")("UD4mgJGkBuRrGcZUyC1Vmuz5VdU="),t.querySelectorAll("["+u.LEGACY_CLICK_TRACKING_ATTRIBUTE+"], ["+u.ENABLE_STORE_CLICK_TRACKING+"]")},getParentByAttributeOrDataStoreKey:function(t,r,o){for(;t&&(!t.getAttribute||!t.getAttribute(r))&&n("cr:6669").get(t,o)===void 0;)t=t.parentNode;return t}},c={"data-ft":u.getDataFt,"data-xt-vimp":function(t){return u.getDataAttributeGeneric(t,"data-xt-vimp","data-xt-vimp")},"data-ad":function(t){return u.getDataAttributeGeneric(t,"data-ad","data-ad")},"data-xt":function(t){return u.getDataAttributeGeneric(t,"data-xt","data-xt")}},d={"data-ft":u.setDataFt,"data-xt":function(t,r){n("vulture")("1Ugsn9aTvy7Oqk3EO6sw5w69Kt0="),n("cr:6669").set(t,"data-xt",r)}};a.exports=u}),null);
__d("DateConsts",[],(function(t,n,r,o,a,i){var e=1e3,l=60,s=60,u=24,c=7,d=12,m=1e3,p=30.43,_=4.333,f=365.242,g=l*s,h=g*u,y=h*c,C=h*f,b=e*l,v=b*s,S=e*h,R=S*c,L=S*f,E={SUNDAY:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6};Object.freeze(E);function k(e,t){return new Date(e,t,0).getDate()}function I(){return Date.now()/e}var T={instantRange:{since:-864e10,until:864e10+1}};i.MS_PER_SEC=e,i.SEC_PER_MIN=l,i.MIN_PER_HOUR=s,i.HOUR_PER_DAY=u,i.DAYS_PER_WEEK=c,i.MONTHS_PER_YEAR=d,i.US_PER_MS=m,i.AVG_DAYS_PER_MONTH=p,i.AVG_WEEKS_PER_MONTH=_,i.AVG_DAYS_PER_YEAR=f,i.SEC_PER_HOUR=g,i.SEC_PER_DAY=h,i.SEC_PER_WEEK=y,i.SEC_PER_YEAR=C,i.MS_PER_MIN=b,i.MS_PER_HOUR=v,i.MS_PER_DAY=S,i.MS_PER_WEEK=R,i.MS_PER_YEAR=L,i.DAYS=E,i.getDaysInMonth=k,i.getCurrentTimeInSeconds=I,i.private=T}),66);
__d("collectDataAttributes",["DataAttributeUtils","getContextualParent"],(function(t,n,r,o,a,i){"use strict";var e="normal";function l(t,r,o){var a={},i=[],l=r.length,s;for(s=0;s<l;++s)a[r[s]]={},i.push("data-"+r[s]);if(o)for(a[e]={},s=0;s<(o||[]).length;++s)i.push(o[s]);for(var u={tn:"","tn-debug":","},c=t;c;){if(c.getAttribute!=null)for(s=0;s<i.length;++s){var d=i[s],m=n("DataAttributeUtils").getDataAttribute(c,d);if(m){if(s>=l){a[e][d]===void 0&&(a[e][d]=m);continue}var p=JSON.parse(m);for(var _ in p)u[_]!==void 0?(a[r[s]][_]===void 0&&(a[r[s]][_]=[]),a[r[s]][_].push(p[_])):a[r[s]][_]===void 0&&(a[r[s]][_]=p[_])}}c=n("getContextualParent")(c)}for(var f in a)for(var g in u)a[f][g]!==void 0&&(a[f][g]=a[f][g].join(u[g]));return a}a.exports=l}),null);
__d("FeedTrackingAsync",["Arbiter","Run","collectDataAttributes"],(function(t,n,r,o,a,i,l){var e;function s(){e||(e=r("Arbiter").subscribe("AsyncRequest/send",function(e,t){var n=t.request,o=n.getRelativeTo();if(o){var a=n.getData(),i=r("collectDataAttributes")(o,["ft"]);i.ft&&Object.keys(i.ft).length&&Object.assign(a,i)}}),o("Run").onLeave(function(){e&&(e.unsubscribe(),e=null)}))}l.init=s}),98);
__d("FocusEvent",["Event","Run","ge","getOrCreateDOMID"],(function(t,n,r,o,a,i,l){"use strict";var e={},s=!1;function u(t,n){if(e[t]){var r=e[t].indexOf(n);r>=0&&e[t].splice(r,1),e[t].length===0&&delete e[t]}}function c(t){var n=t.getTarget();if(e[n.id]&&e[n.id].length>0){var r=t.type==="focusin"||t.type==="focus";e[n.id].forEach(function(e){e(r)})}}function d(){s||(r("Event").listen(document.documentElement,"focusout",c),r("Event").listen(document.documentElement,"focusin",c),s=!0)}function m(t,n,a){var i;a===void 0&&(a={cleanupOnLeave:!0}),d();var l=r("getOrCreateDOMID")(t);e[l]||(e[l]=[]),e[l].push(n);var s=!1;function c(){s||(u(l,n),m&&(m.remove(),m=null),s=!0)}var m=((i=a)==null?void 0:i.cleanupOnLeave)===!0?o("Run").onLeave(function(){r("ge")(l)||c()}):null;return{remove:function(){c()}}}l.listen=m}),98);
__d("isStringNullOrEmpty",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e==null||e===""}i.default=e}),66);
__d("tooltipPropsFor",[],(function(t,n,r,o,a,i){"use strict";function e(e,t,n){if(!e)return{};var r={"data-tooltip-content":e,"data-hover":"tooltip"};return t&&(r["data-tooltip-position"]=t),n&&(r["data-tooltip-alignh"]=n),r}i.default=e}),66);
__d("TooltipData",["DOM","DataStore","FBLogger","URI","getElementText","ifRequired","isStringNullOrEmpty","isTextNode","tooltipPropsFor"],(function(t,n,r,o,a,i,l){var e=["content"],s;function u(t){var n,o,a=t.getAttribute("data-tooltip-delay"),i=a?parseInt(a,10)||1e3:250,l=(n=r("DataStore").get(t,"tooltip"))!=null?n:{},s=l.content,u=babelHelpers.objectWithoutPropertiesLoose(l,e),c=t.getAttribute("data-tooltip-content");return!r("isStringNullOrEmpty")(s)&&!r("isStringNullOrEmpty")(c)&&r("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',t.getAttribute("data-tooltip-content")),babelHelpers.extends({className:t.getAttribute("data-tooltip-root-class"),delay:i,position:t.getAttribute("data-tooltip-position")||"above",alignH:t.getAttribute("data-tooltip-alignh")||"left",offsetY:t.getAttribute("data-tooltip-offsety")||0,suppress:!1,overflowDisplay:t.getAttribute("data-tooltip-display")==="overflow",persistOnClick:t.getAttribute("data-pitloot-persistonclick"),textDirection:t.getAttribute("data-tooltip-text-direction"),content:(o=c!=null?c:s)!=null?o:null},u)}function c(e,t){var n,o=u(e);(typeof t.content!="string"||!r("isStringNullOrEmpty")(t.content))&&!r("isStringNullOrEmpty")(e.getAttribute("data-tooltip-content"))&&r("FBLogger")("tooltip").warn('Setting DataStore tooltip content on an element that already has the "data-tooltip-content" attribute (set to %s) is invalid',e.getAttribute("data-tooltip-content")),r("DataStore").set(e,"tooltip",{content:t.content||((n=r("DataStore").get(e,"tooltip"))!=null?n:{}).content,position:t.position||o.position,alignH:t.alignH||o.alignH,suppress:t.suppress!==void 0?t.suppress:o.suppress,overflowDisplay:t.overflowDisplay||o.overflowDisplay,persistOnClick:t.persistOnClick||o.persistOnClick})}function d(e,t){c(e,t),e.setAttribute("data-hover","tooltip")}function m(e,t){}var p={remove:function(t,n){var e=n===void 0?{}:n,o=e.onlyCleanupDataStore,a=o===void 0?!1:o;r("DataStore").remove(t,"tooltip"),a||(t.removeAttribute("data-hover"),t.removeAttribute("data-tooltip-position"),t.removeAttribute("data-tooltip-alignh"),r("ifRequired")("Tooltip",function(e){e.isActive(t)&&e.hide()}))},set:function(t,n,o,a){n instanceof(s||(s=r("URI")))?(t.setAttribute("data-tooltip-uri",n.toString()),r("ifRequired")("Tooltip",function(e){e.isActive(t)&&e.fetchIfNecessary(t)})):(t.removeAttribute("data-tooltip-content"),p._store({context:t,content:n,position:o,alignH:a}),p.refreshIfActive(t))},refreshIfActive:function(t){r("ifRequired")("Tooltip",function(e){e.isActive(t)&&e.show(t)})},_store:function(t){var e=t.alignH,n=t.content,o=t.context,a=t.position,i=n;r("isTextNode")(i)&&i instanceof Element&&(i=r("getElementText")(i));var l=!1;typeof i!="string"?i=r("DOM").create("div",{},i):l=i==="";var s={alignH:e,content:i,position:a,suppress:l};return d(o,s),s},propsFor:r("tooltipPropsFor"),enableDisplayOnOverflow:function(t){t.removeAttribute("data-tooltip-display"),d(t,{overflowDisplay:!0})},enablePersistOnClick:function(t){t.removeAttribute("data-pitloot-persistOnClick"),d(t,{persistOnClick:!0})},suppress:function(t,n){c(t,{suppress:n})},_get:u};i.exports=p}),34);
__d("Focus",["cx","CSS","Event","FocusEvent","KeyStatus","TooltipData","ifRequired"],(function(t,n,r,o,a,i,l,s){function e(e,t){if(t===void 0&&(t=!1),e){var n=r("ifRequired")("VirtualCursorStatus",function(e){return e.isVirtualCursorTriggered()},function(){return!1});t||o("KeyStatus").isKeyDown()||n?m(e):u(e)}}function u(e){if(e){o("CSS").addClass(e,"_5f0v");var t=r("Event").listen(e,"blur",function(){e&&o("CSS").removeClass(e,"_5f0v"),t.remove()});o("TooltipData").suppress(e,!0),m(e),o("TooltipData").suppress(e,!1)}}function c(e,t,n){return n===void 0&&(n={cleanupOnLeave:!0}),o("CSS").addClass(e,"_5f0v"),o("FocusEvent").listen(e,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return d.apply(void 0,[e,t].concat(r))},n)}function d(e,t,n){o("CSS").addClass(e,"_5f0v");var a=r("ifRequired")("FocusRing",function(e){return e.usingKeyboardNavigation()},function(){return!0}),i=n&&a;o("CSS").conditionClass(t,"_3oxt",i),o("CSS").conditionClass(t,"_16jm",i)}function m(e){try{e.tabIndex=e.tabIndex,e.focus()}catch(e){}}l.set=e,l.setWithoutOutline=u,l.relocate=c,l.performRelocation=d}),98);
__d("Input",["CSS","DOMControl","DOMQuery"],(function(t,n,r,o,a,i,l){function e(e){return!/\S/.test(e||"")}function s(t){return e(t.value)}function u(e){return s(e)?"":e.value}function c(e){return e.value}function d(e,t){e.value=t||"";var n=r("DOMControl").getInstance(e);n&&n.resetHeight&&n.resetHeight()}function m(e,t){t||(t=""),e.setAttribute("aria-label",t),e.setAttribute("placeholder",t)}function p(e){e.value="",e.style.height=""}function _(e,t){o("CSS").conditionClass(e,"enter_submit",t)}function f(e){return o("CSS").hasClass(e,"enter_submit")}function g(e,t){t>0?e.setAttribute("maxlength",t.toString()):e.removeAttribute("maxlength")}l.isWhiteSpaceOnly=e,l.isEmpty=s,l.getValue=u,l.getValueRaw=c,l.setValue=d,l.setPlaceholder=m,l.reset=p,l.setSubmitOnEnter=_,l.getSubmitOnEnter=f,l.setMaxLength=g}),98);
__d("normalizeBoundingClientRect",[],(function(t,n,r,o,a,i){"use strict";function e(e,t){var n=e.ownerDocument.documentElement,r=n?n.clientLeft:0,o=n?n.clientTop:0,a=Math.round(t.left)-r,i=Math.round(t.right)-r,l=Math.round(t.top)-o,s=Math.round(t.bottom)-o;return{left:a,right:i,top:l,bottom:s,width:i-a,height:s-l}}i.default=e}),66);
__d("getElementRect",["containsNode","normalizeBoundingClientRect"],(function(t,n,r,o,a,i,l){function e(e){var t,n=e==null||(t=e.ownerDocument)==null?void 0:t.documentElement;return!e||!("getBoundingClientRect"in e)||!r("containsNode")(n,e)?{left:0,right:0,top:0,bottom:0,width:0,height:0}:r("normalizeBoundingClientRect")(e,e.getBoundingClientRect())}l.default=e}),98);
__d("getElementPosition",["getElementRect"],(function(t,n,r,o,a,i,l){function e(e){var t=r("getElementRect")(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}l.default=e}),98);
__d("Form",["DOM","DOMQuery","DTSG","DTSGUtils","DataStore","FBLogger","Input","LSD","PHPQuerySerializer","Random","SprinkleConfig","URI","getElementPosition","isFacebookURI","isNode"],(function(t,n,r,o,a,i,l){var e,s,u="FileList"in window,c="FormData"in window;function d(t){var n={};return(e||(e=r("PHPQuerySerializer"))).serialize(t).split("&").forEach(function(e){if(e){var t=/^([^=]*)(?:=(.*))?$/.exec(e),o=(s||(s=r("URI"))).decodeComponent(t[1]),a=t[2]!==void 0,i=a?(s||(s=r("URI"))).decodeComponent(t[2]):null;n[o]=i}}),n}var m={getInputs:function(t){return t===void 0&&(t=document),[].concat(o("DOMQuery").scry(t,"input"),o("DOMQuery").scry(t,"select"),o("DOMQuery").scry(t,"textarea"),o("DOMQuery").scry(t,"button"))},getInputsByName:function(t){var e={};return m.getInputs(t).forEach(function(t){var n=e[t.name];e[t.name]=n===void 0?t:[t].concat(n)}),e},getSelectValue:function(t){return t.options[t.selectedIndex].value},setSelectValue:function(t,n){for(var e=0;e<t.options.length;++e)if(t.options[e].value===n){t.selectedIndex=e;break}},getRadioValue:function(t){for(var e=0;e<t.length;e++)if(t[e].checked)return t[e].value;return null},getElements:function(t){return t.tagName==="FORM"&&t.elements!==t?Array.from(t.elements):m.getInputs(t)},getAttribute:function(t,n){return(t.getAttributeNode(n)||{}).value||null},setDisabled:function(t,n){m.getElements(t).forEach(function(e){if(e.disabled!==void 0){var t=r("DataStore").get(e,"origDisabledState");n?(t===void 0&&r("DataStore").set(e,"origDisabledState",e.disabled),e.disabled=n):t===!1&&(e.disabled=!1)}})},forEachValue:function(t,n,r){m.getElements(t).forEach(function(e){if(!(!e.name||e.disabled)&&e.type!=="submit"&&!(e.type==="reset"||e.type==="button"||e.type==="image")&&!((e.type==="radio"||e.type==="checkbox")&&!e.checked)){if(e.nodeName==="SELECT"){for(var t=0,n=e.options.length;t<n;t++){var a=e.options[t];a.selected&&r("select",e.name,a.value)}return}if(e.type==="file"){if(u)for(var i=e.files,l=0;l<i.length;l++)r("file",e.name,i.item(l));return}r(e.type,e.name,o("Input").getValue(e))}}),n&&n.name&&n.type==="submit"&&o("DOMQuery").contains(t,n)&&o("DOMQuery").isNodeOfType(n,["input","button"])&&r("submit",n.name,n.value)},createFormData:function(t,n){if(!c)return null;var e=new FormData;if(t)if(r("isNode")(t))m.forEachValue(t,n,function(t,n,r){e.append(n,r)});else{var o=d(t);for(var a in o)o[a]==null?e.append(a,""):e.append(a,o[a])}return e},serialize:function(t,n){var e={};return m.forEachValue(t,n,function(t,n,r){t!=="file"&&m._serializeHelper(e,n,r)}),m._serializeFix(e)},_serializeHelper:function(t,n,r){var e=Object.prototype.hasOwnProperty,o=/([^\]]+)\[([^\]]*)\](.*)/.exec(n);if(o){if(!t[o[1]]||!e.call(t,o[1])){var a;if(t[o[1]]=a={},t[o[1]]!==a)return}var i=0;if(o[2]==="")for(;t[o[1]][i]!==void 0;)i++;else i=o[2];o[3]===""?t[o[1]][i]=r:m._serializeHelper(t[o[1]],i.concat(o[3]),r)}else t[n]=r},_serializeFix:function(t){for(var e in t)t[e]instanceof Object&&(t[e]=m._serializeFix(t[e]));var n=Object.keys(t);if(n.length===0||n.some(isNaN))return t;n.sort(function(e,t){return e-t});var r=0,o=n.every(function(e){return+e===r++});return o?n.map(function(e){return t[e]}):t},post:function(t,n,a,i){i===void 0&&(i=!0);var e=new(s||(s=r("URI")))(t),l=document.createElement("form");l.action=e.toString(),l.method="POST",l.style.display="none";var u=!r("isFacebookURI")(e);if(a){if(u&&(l.rel="noreferrer",a==="_blank")){a=btoa(r("Random").uint32());var c=window.open("about:blank",a);c!==void 0&&(c.opener=null)}l.target=a}if(i&&!u&&e.getSubdomain()!=="apps"){var d=o("DTSG").getToken();d&&(n.fb_dtsg=d,r("SprinkleConfig").param_name&&(n[r("SprinkleConfig").param_name]=r("DTSGUtils").getNumericValue(d))),r("LSD").token&&(n.lsd=r("LSD").token,r("SprinkleConfig").param_name&&!d&&(n[r("SprinkleConfig").param_name]=r("DTSGUtils").getNumericValue(r("LSD").token)))}return m.createHiddenInputs(n,l),o("DOMQuery").getRootElement().appendChild(l),l.submit(),!1},post_UNSAFE_LET_ANYONE_IMPERSONATE_THE_USER_FOR_THESE_WRITES:function(t,n,r){m.post(t,n,r)},createHiddenInputs:function(t,n,o,a){a===void 0&&(a=!1),o=o||{};var e=d(t);for(var i in e)if(e[i]!==null)if(o[i]&&a)o[i].value=e[i];else{var l=r("DOM").create("input",{type:"hidden",name:i,value:e[i]});o[i]=l,n.appendChild(l)}return o},getFirstElement:function(t,n){n===void 0&&(n=['input[type="text"]',"textarea",'input[type="password"]','input[type="button"]','input[type="submit"]']);for(var e=[],a=0;a<n.length;a++){e=o("DOMQuery").scry(t,n[a]);for(var i=0;i<e.length;i++){var l=e[i];try{var s=r("getElementPosition")(l);if(s.y>0&&s.x>0)return l}catch(e){}}}return null},focusFirst:function(t){var e=m.getFirstElement(t);return e?(e.focus(),!0):!1}};i.exports=m}),34);
__d("FormSubmit",["AsyncRequest","AsyncResponse","CSS","DOMQuery","Event","Form","Parent","trackReferrer"],(function(t,n,r,o,a,i,l){var e={buildRequest:function(t,n){var e=(o("Form").getAttribute(t,"method")||"GET").toUpperCase(),a=n&&o("Parent").byTag(n,"button")||n,i=a&&o("Parent").byClass(a,"stat_elem")||t;if(o("CSS").hasClass(i,"async_saving"))return null;if(a&&(a.form!==t||a.nodeName!="INPUT"&&a.nodeName!="BUTTON"||a.type!="submit")){var l=o("DOMQuery").scry(t,".enter_submit_target")[0];l&&(a=l)}var s=o("Form").serialize(t,a);o("Form").setDisabled(t,!0);var u=o("Form").getAttribute(t,"ajaxify")||o("Form").getAttribute(t,"action"),c=!!o("Form").getAttribute(t,"data-cors");return r("trackReferrer")(t,u),new(r("AsyncRequest"))().setAllowCrossOrigin(c).setURI(u).setData(s).setNectarModuleDataSafe(t).setReadOnly(e=="GET").setMethod(e).setRelativeTo(t).setStatusElement(i).setInitialHandler(o("Form").setDisabled.bind(null,t,!1)).setHandler(function(e){r("Event").fire(t,"success",{response:e})}).setErrorHandler(function(e){r("Event").fire(t,"error",{response:e})!==!1&&r("AsyncResponse").defaultErrorHandler(e)}).setFinallyHandler(o("Form").setDisabled.bind(null,t,!1))},send:function(n,r){var t=e.buildRequest(n,r);return t&&t.send(),t}},s=e;l.default=s}),98);
__d("throttle",["TimeSlice","TimeSliceInteractionSV","setTimeout","setTimeoutAcrossTransitions"],(function(t,n,r,o,a,i,l){function e(e,t,n){return s(e,t,n,r("setTimeout"),!1)}Object.assign(e,{acrossTransitions:function(t,n,o){return s(t,n,o,r("setTimeoutAcrossTransitions"),!1)},withBlocking:function(t,n,o){return s(t,n,o,r("setTimeout"),!0)},acrossTransitionsWithBlocking:function(t,n,o){return s(t,n,o,r("setTimeoutAcrossTransitions"),!0)}});function s(e,t,n,o,a){var i=t==null?100:t,l,s=null,u=0,c=null,d=[],m=r("TimeSlice").guard(function(){if(u=Date.now(),s){for(var t=function(t){e.apply(l,t)}.bind(null,s),n=d.length;--n>=0;)t=d[n].bind(null,t);d=[],t(),s=null,c=o(m,i)}else c=null},"throttle_"+i+"_ms",{propagationType:r("TimeSlice").PropagationType.EXECUTION,registerCallStack:!0});return m.__SMmeta=e.__SMmeta,function(){r("TimeSliceInteractionSV").ref_counting_fix&&d.push(r("TimeSlice").getGuardedContinuation("throttleWithContinuation"));for(var e=arguments.length,t=new Array(e),p=0;p<e;p++)t[p]=arguments[p];s=t,l=this,n!==void 0&&(l=n),(c===null||Date.now()-u>i)&&(a===!0?m():c=o(m,0))}}var u=e;l.default=u}),98);
__d("FullScreen",["ArbiterMixin","CSS","Event","Keys","UserAgent","UserAgent_DEPRECATED","mixin","throttle"],(function(t,n,r,o,a,i,l){var e={},s=!1;function u(e){r("Event").getKeyCode(e)===r("Keys").ESC&&e.stopPropagation()}function c(){s||(document.addEventListener("keydown",u,!0),s=!0)}function d(){s&&(document.removeEventListener("keydown",u,!0),s=!1)}var m=(function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e=t.call.apply(t,[this].concat(r))||this,e.onChange=function(){var t=e.isFullScreen(),n=document.body;n&&o("CSS").conditionClass(n,"fullScreen",t),e.inform("changed"),t||d()},babelHelpers.assertThisInitialized(e)||babelHelpers.assertThisInitialized(e)}babelHelpers.inheritsLoose(n,t);var a=n.prototype;return a.listenForEvent=function(n){var t=r("throttle")(this.onChange,0,this);e[n.id]||(e[n.id]=!0,r("Event").listen(n,{webkitfullscreenchange:t,mozfullscreenchange:t,MSFullscreenChange:t,fullscreenchange:t}))},a.enableFullScreen=function(t){this.listenForEvent(t);var e=t;if(e.webkitRequestFullScreen)o("UserAgent_DEPRECATED").chrome()?e.webkitRequestFullScreen==null||e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):e.webkitRequestFullScreen==null||e.webkitRequestFullScreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.msRequestFullscreen)c(),e.msRequestFullscreen==null||e.msRequestFullscreen();else if(e.requestFullScreen)e.requestFullScreen==null||e.requestFullScreen();else return!1;return!0},a.disableFullScreen=function(){var e=document;if(e.webkitCancelFullScreen)e.webkitCancelFullScreen();else if(e.mozCancelFullScreen)e.mozCancelFullScreen();else if(e.msExitFullscreen)e.msExitFullscreen();else if(e.cancelFullScreen)e.cancelFullScreen();else if(e.exitFullScreen)e.exitFullScreen();else return!1;return!0},a.isFullScreen=function(){var e=document;return!!(e.webkitIsFullScreen||e.fullScreen||e.mozFullScreen||e.msFullscreenElement)},a.toggleFullScreen=function(t){return this.isFullScreen()?(this.disableFullScreen(),!1):this.enableFullScreen(t)},a.isSupportedWithKeyboardInput=function(){return this.isSupported()&&!r("UserAgent").isBrowser("Safari")},a.isSupported=function(){var e=document,t=e.webkitFullscreenEnabled||e.mozFullScreenEnabled||e.msFullscreenEnabled||e.fullscreenEnabled;return!!(t||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullscreen||e.cancelFullScreen||e.exitFullScreen)},n})(r("mixin")(r("ArbiterMixin"))),p=new m,_=r("throttle")(p.onChange,0,p);r("Event").listen(document,{webkitfullscreenchange:_,mozfullscreenchange:_,MSFullscreenChange:_,fullscreenchange:_});var f=p;l.default=f}),98);
__d("GeneratedLoggerUtils",["invariant","Banzai","JstlMigrationFalcoEvent","getDataWithLoggerOptions","gkx"],(function(t,n,r,o,a,i,l){"use strict";var e=window.location.search.indexOf("showlog")>-1;function s(t,r,o,a){var i=n("getDataWithLoggerOptions")(r,a),l=t.split(":")[0],s=t.split(":")[1];l=="logger"?n("JstlMigrationFalcoEvent").log(function(){return{logger_config_name:s,payload:i}}):n("Banzai").post(t,i,o);var u=e||s==="EPFrontendLoggerConfig"&&n("gkx")("3917");if(u&&s==="EPFrontendLoggerConfig"&&i)var c=i.event_name||"unknown",d=i.app||"unknown",m=i.surface||"",p=m?" ["+m+"]":"",_=Date.now(),f=new Date(_).toTimeString().split(" ")[0],g=c.toLowerCase(),h=g.includes("rendered")||g.includes("error")||g.includes("view_metric_results")||g.includes("statsig_result_difference")||g.includes("request_interrupted"),y=h?"[EPFrontend]":"[EPFrontend :click:]"}var u={log:s,serializeVector:function(t){if(!t||Array.isArray(t))return t;if(t.toArray){var e=t;return e.toArray()}if(typeof t=="object"&&t[typeof Symbol=="function"?Symbol.iterator:"@@iterator"])return Array.from(t);l(0,3874,t)},serializeMap:function(t){if(!t)return t;if(t.toJS){var e=t;return e.toJS()}if(typeof t=="object"&&t[typeof Symbol=="function"?Symbol.iterator:"@@iterator"]){var n=t,r={};for(var o of n)r[o[0]]=o[1];return r}if(Object.prototype.toString.call(t)==="[object Object]")return t;l(0,3875,t)},checkExtraDataFieldNames:function(t,n){Object.keys(t).forEach(function(e){!Object.prototype.hasOwnProperty.call(n,e)||l(0,3876,e)})},warnForInvalidFieldNames:function(t,n,r,o){},throwIfNull:function(t,n){return t||l(0,3877,n),t}};a.exports=u}),null);
__d("MessengerWebPluginAnonymousTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$1={}}var t=e.prototype;return t.log=function(t){n("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,n("Banzai").BASIC,t)},t.logVital=function(t){n("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,n("Banzai").VITAL,t)},t.logImmediately=function(t){n("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,{signal:!0},t)},t.clear=function(){return this.$1={},this},t.getData=function(){return babelHelpers.extends({},this.$1)},t.updateData=function(t){return this.$1=babelHelpers.extends({},this.$1,t),this},t.setAppID=function(t){return this.$1.app_id=t,this},t.setCallsite=function(t){return this.$1.callsite=t,this},t.setClientFbid=function(t){return this.$1.client_fbid=t,this},t.setDebugData=function(t){return this.$1.debug_data=t,this},t.setDeltaType=function(t){return this.$1.delta_type=t,this},t.setDeviceParam=function(t){return this.$1.device_param=t,this},t.setDomainSource=function(t){return this.$1.domain_source=t,this},t.setDuration=function(t){return this.$1.duration=t,this},t.setEvent=function(t){return this.$1.event=t,this},t.setEventTimestamp=function(t){return this.$1.event_timestamp=t,this},t.setExceptionMessage=function(t){return this.$1.exception_message=t,this},t.setExceptionStacktrace=function(t){return this.$1.exception_stacktrace=t,this},t.setExceptionType=function(t){return this.$1.exception_type=t,this},t.setGateway=function(t){return this.$1.gateway=t,this},t.setIsUserLoggedIn=function(t){return this.$1.is_user_logged_in=t,this},t.setNewEventName=function(t){return this.$1.new_event_name=t,this},t.setOtherFields=function(t){return this.$1.other_fields=n("GeneratedLoggerUtils").serializeMap(t),this},t.setPageID=function(t){return this.$1.page_id=t,this},t.setPluginExtra=function(t){return this.$1.plugin_extra=n("GeneratedLoggerUtils").serializeMap(t),this},t.setPluginInterface=function(t){return this.$1.plugin_interface=t,this},t.setPluginName=function(t){return this.$1.plugin_name=t,this},t.setRefererURI=function(t){return this.$1.referer_uri=t,this},t.setRequestHeaders=function(t){return this.$1.request_headers=t,this},t.setRequestID=function(t){return this.$1.request_id=t,this},t.setRequestParam=function(t){return this.$1.request_param=t,this},t.setTabName=function(t){return this.$1.tab_name=t,this},t.setUpgradeLoggedInUserID=function(t){return this.$1.upgrade_logged_in_user_id=t,this},t.setUpstreamEvent=function(t){return this.$1.upstream_event=t,this},t.setWhitelistedDomains=function(t){return this.$1.whitelisted_domains=t,this},e})(),l={app_id:!0,callsite:!0,client_fbid:!0,debug_data:!0,delta_type:!0,device_param:!0,domain_source:!0,duration:!0,event:!0,event_timestamp:!0,exception_message:!0,exception_stacktrace:!0,exception_type:!0,gateway:!0,is_user_logged_in:!0,new_event_name:!0,other_fields:!0,page_id:!0,plugin_extra:!0,plugin_interface:!0,plugin_name:!0,referer_uri:!0,request_headers:!0,request_id:!0,request_param:!0,tab_name:!0,upgrade_logged_in_user_id:!0,upstream_event:!0,whitelisted_domains:!0};i.default=e}),66);
__d("PageHooks",["Arbiter","ErrorUtils","InitialJSLoader","PageEvents"],(function(t,n,r,o,a,i){var e,l={DOMREADY_HOOK:"domreadyhooks",ONLOAD_HOOK:"onloadhooks"};function s(){d(_.DOMREADY_HOOK),window.domready=!0,n("Arbiter").inform("uipage_onload",!0,"state")}function u(){d(_.ONLOAD_HOOK),window.loaded=!0}function c(t,r){return(e||(e=n("ErrorUtils"))).applyWithGuard(t,null,null,function(e){e.event_type=r,e.category="runhook"},"PageHooks:"+r)}function d(e){var t=e=="onbeforeleavehooks"||e=="onbeforeunloadhooks";do{var n=window[e];if(!n)break;t||(window[e]=null);for(var r=0;r<n.length;r++){var o=c(n[r],e);if(t&&o)return o}}while(!t&&window[e])}function m(){window.domready||(window.domready=!0,d("onloadhooks")),window.loaded||(window.loaded=!0,d("onafterloadhooks"))}function p(){var e,t;(e=n("Arbiter")).registerCallback(s,[(t=n("PageEvents")).BIGPIPE_DOMREADY,n("InitialJSLoader").INITIAL_JS_READY]),e.registerCallback(u,[t.BIGPIPE_DOMREADY,t.BIGPIPE_ONLOAD,n("InitialJSLoader").INITIAL_JS_READY]),e.subscribe(t.NATIVE_ONBEFOREUNLOAD,function(e,t){t.warn=d("onbeforeleavehooks")||d("onbeforeunloadhooks"),t.warn||(window.domready=!1,window.loaded=!1)},"new"),e.subscribe(t.NATIVE_ONUNLOAD,function(e,t){d("onunloadhooks"),d("onafterunloadhooks")},"new")}var _=babelHelpers.extends({_domreadyHook:s,_onloadHook:u,runHook:c,runHooks:d,keepWindowSetAsLoaded:m},l);p(),t.PageHooks=a.exports=_}),null);
__d("XPostPluginLoggingController",["XController"],(function(t,n,r,o,a,i){a.exports=n("XController").create("/platform/plugin/post/logging/",{})}),null);
__d("PluginFeedFooterActionLogger",["AsyncRequest","DOM","Event","XPostPluginLoggingController"],(function(t,n,r,o,a,i,l){var e={initializeClickLoggers:function(t,n,o,a,i,l,s,u,c,d){var e=function(n,o){try{var e=r("DOM").find(t,"."+n);r("Event").listen(e,"click",function(e){new(r("AsyncRequest"))().setURI(r("XPostPluginLoggingController").getURIBuilder().getURI()).setData({action:o,action_type:"click",source:l,story_token:s,referer_url:u,is_sdk:c,post_url:d}).send()})}catch(e){}};e(n,"embedded_post_like"),e(o,"embedded_post_unlike"),e(a,"embedded_post_comment"),e(i,"embedded_post_share")}};i.exports=e}),34);
__d("PluginLoggedOutUserTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$1={}}var t=e.prototype;return t.log=function(t){n("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,n("Banzai").BASIC,t)},t.logVital=function(t){n("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,n("Banzai").VITAL,t)},t.logImmediately=function(t){n("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,{signal:!0},t)},t.clear=function(){return this.$1={},this},t.getData=function(){return babelHelpers.extends({},this.$1)},t.updateData=function(t){return this.$1=babelHelpers.extends({},this.$1,t),this},t.setHref=function(t){return this.$1.href=t,this},t.setIsSDK=function(t){return this.$1.is_sdk=t,this},t.setPluginAppID=function(t){return this.$1.plugin_app_id=t,this},t.setPluginName=function(t){return this.$1.plugin_name=t,this},t.setRefererURL=function(t){return this.$1.referer_url=t,this},t.updateExtraData=function(t){var e=n("nullthrows")(n("GeneratedLoggerUtils").serializeMap(t));return n("GeneratedLoggerUtils").checkExtraDataFieldNames(e,l),this.$1=babelHelpers.extends({},this.$1,e),this},t.addToExtraData=function(t,n){var e={};return e[t]=n,this.updateExtraData(e)},e})(),l={href:!0,is_sdk:!0,plugin_app_id:!0,plugin_name:!0,referer_url:!0};i.default=e}),66);
__d("PluginOptin",["DOMEvent","DOMEventListener","MessengerWebPluginAnonymousTypedLogger","PlatformWidgetEndpoint","PluginLoggedOutUserTypedLogger","PluginMessage","PopupWindow","URI","UserAgent_DEPRECATED"],(function(t,n,r,o,a,i,l){var e,s={default:{width:450,height:410},large:{width:475,height:605}},u=(function(){function t(t,n){this.return_params=(e||(e=r("URI"))).getRequestURI().getQueryData(),this.login_params={},this.optin_params={},this.plugin=t,this.api_key=n,this.size="default",this.addReturnParams({ret:"optin"}),delete this.return_params.hash}var n=t.prototype;return n.addReturnParams=function(t){return this.return_params=babelHelpers.extends({},this.return_params,t),this},n.addLoginParams=function(t){return Object.assign(this.login_params,t),this},n.addOptinParams=function(t){return Object.assign(this.optin_params,t),this},n.setSize=function(t){return this.size=t||"default",this},n.start=function(){var t=this.api_key||0x7432769dc3ea;(e||(e=r("URI"))).getRequestURI().getQueryData().kid_directed_site&&(this.login_params.kid_directed_site=!0),this.login_params.referrer=document.referrer;var n=new(e||(e=r("URI")))(r("PlatformWidgetEndpoint").dialog("plugin.optin")).addQueryData(this.optin_params).addQueryData({app_id:t,secure:e.getRequestURI().isSecure(),social_plugin:this.plugin,return_params:JSON.stringify(this.return_params),login_params:JSON.stringify(this.login_params)}),a=o("UserAgent_DEPRECATED").mobile()!==null;a?n.setSubdomain("m"):n.addQueryData({display:"popup"}),this.return_params.act!==null&&this.return_params.act==="send"&&new(r("PluginLoggedOutUserTypedLogger"))().setPluginAppID(t).setPluginName(this.return_params.act).setHref(this.return_params.href).logVital();var i=s[this.size];return n=this.transformSocialPluginToFacebookDomainPopupURI(n,e.getRequestURI().getDomain(),a),this.popup=o("PopupWindow").open(n.toString(),i.height,i.width,"fbPluginAuthenticationPopupWindow"),this.plugin==="customer_chat"&&this.login_params.chat_plugin_upgrade!=null&&this.login_params.chat_plugin_upgrade===!0&&new(r("MessengerWebPluginAnonymousTypedLogger"))().setPageID(this.login_params.page_id).setClientFbid(this.login_params.guest_id).setRequestID(this.login_params.request_id).setNewEventName("upgrade_plugin_optin_popup_opened").log(),o("PluginMessage").listen(),this},n.transformSocialPluginToFacebookDomainPopupURI=function(t,n,r){var e=n.split(".");return e[0]!=="socialplugin"?t:(e[e.length-1]="com",e[0]=r?"m":"www",t.setDomain(e.join(".")).setProtocol("https"))},t})();u.starter=function(e,t,n,r){var o=new u(e);return o.addReturnParams(t||{}),o.addLoginParams(n||{}),o.addOptinParams(r||{}),function(){return o.start()}},u.listen=function(e,t,n,o,a){r("DOMEventListener").add(e,"click",function(e){new(r("DOMEvent"))(e).kill(),u.starter(t,n,o,a)()})},l.default=u}),98);
__d("PluginFeedLikeButton",["Arbiter","AsyncFormRequestUtils","CSS","ClientIDs","DOM","DOMEventListener","FormSubmit","Keys","PluginOptin","URI"],(function(t,n,r,o,a,i,l){var e;window.resetConfirmStoryLike=function(e){o("CSS").show(r("DOM").find(document,"#likeStory_"+e)),r("DOM").remove(r("DOM").find(document,"#confirmStory_"+e))};function s(e){e.setAttribute("value",o("ClientIDs").getNewClientID())}function u(e,t,n){var a="";if(t===23)a="post";else if(t===50)a="page";else throw new Error("Invalid FBFeedLocation type.");var i=new(r("PluginOptin"))(a).addReturnParams({act:"like_"+e});o("DOMEventListener").add(n,"click",function(){return i.start()})}function c(t,n,a,i,l){var s,u=function(t){if(t.type==="keypress")if(t.keyCode===r("Keys").RETURN||t.keyCode===r("Keys").SPACE)r("FormSubmit").send(l);else return;r("FormSubmit").send(l)};(s=o("DOMEventListener")).add(n,"click",u),s.add(a,"click",u),s.add(n,"keypress",u),s.add(a,"keypress",u);var c=i.getAttribute("value")==="1";o("AsyncFormRequestUtils").subscribe(l,"send",function(e){var l=i.getAttribute("value")==="1";o("CSS").conditionShow(a,l),o("CSS").conditionShow(n,!l),r("Arbiter").inform("embeddedUfiToggle",{isLike:l,storyToken:t}),i.setAttribute("value",l?"":"1")}),o("AsyncFormRequestUtils").subscribe(l,"response",function(e){var l=e.response.payload;if(l&&!l.success){var s=l.isLike;o("CSS").conditionShow(n,s),o("CSS").conditionShow(a,!s),r("Arbiter").inform("revertLike",{isLike:s,storyToken:t}),i.setAttribute("value",s?"1":"")}});var d=new(e||(e=r("URI")))(window.location.search).getQueryData();c&&d.act==="like_"+t&&r("FormSubmit").send(l)}l.addClientId=s,l.loggedOutLikeButton=u,l.init=c}),98);
__d("queryThenMutateDOM",["ErrorUtils","Run","TimeSlice","emptyFunction","gkx","requestAnimationFrame"],(function(t,n,r,o,a,i){var e,l,s,u=[],c={};function d(e,t,r){if(!e&&!t)return{cancel:n("emptyFunction")};if(r&&Object.prototype.hasOwnProperty.call(c,r))return{cancel:n("emptyFunction")};r&&(c[r]=1);var o=n("TimeSlice").guard(t||n("emptyFunction"),"queryThenMutateDOM mutation callback",{propagationType:n("TimeSlice").PropagationType.CONTINUATION,registerCallStack:!0}),a=n("TimeSlice").guard(e||n("emptyFunction"),"queryThenMutateDOM query callback",{propagationType:n("TimeSlice").PropagationType.CONTINUATION,registerCallStack:!0}),i={queryFunction:a,mutateFunction:o,output:null,deleted:!1};return u.push(i),p(),l||(l=!0,n("gkx")("20935")||n("Run").onLeave(function(){l=!1,s=!1,c={},u.length=0})),{cancel:function(){i.deleted=!0,r&&delete c[r]}}}d.prepare=function(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];o.unshift(this);var i=Function.prototype.bind.apply(e,o),l=t.bind(this);d(i,l,n)}};var m=n("TimeSlice").guard(function(){for(;u.length;){c={};var e=[];for(window.document.body.getClientRects();u.length;){var t=u.shift();t.deleted||(t.output=_(t.queryFunction),e.push(t))}for(;e.length;){var n=e.shift();n.deleted||_(n.mutateFunction,null,[n.output])}}s=!1},"queryThenMutateDOM runScheduledQueriesAndMutations",{propagationType:n("TimeSlice").PropagationType.ORPHAN});function p(){!s&&u.length&&(s=!0,n("requestAnimationFrame")(m))}function _(t,r,o,a,i){return(e||(e=n("ErrorUtils"))).applyWithGuard(t,r,o,a,i)}a.exports=d}),null);
__d("UITinyViewportAction",["Arbiter","ArbiterMixin","CSS","Event","FullScreen","getDocumentScrollElement","queryThenMutateDOM","throttle"],(function(t,n,r,o,a,i){var e=document.documentElement,l,s,u,c,d=!1,m=!1,p=!1,_={init:function(r){var t=n("throttle")(function(){n("FullScreen").isFullScreen()||n("queryThenMutateDOM")(function(){c=c||n("getDocumentScrollElement")(),s=e.clientWidth<c.scrollWidth-1,u=e.clientHeight<400,l=u||s},function(){if(l!==d||s!==m||u!==p){var t;(t=n("CSS")).conditionClass(e,"tinyViewport",l),t.conditionClass(e,"tinyWidth",s),t.conditionClass(e,"tinyHeight",u),t.conditionClass(e,"canHaveFixedElements",!l),_.inform("change",l),n("Arbiter").inform("tinyViewport/change",{tiny:l,tinyWidth:s,tinyHeight:u},"state"),d=l,m=s,p=u}},"TinyViewport")});t(),n("Arbiter").subscribe("quickling/response",t),n("Event").listen(window,"resize",t),n("FullScreen").subscribe("changed",t)},isTiny:function(){return l},isTinyWidth:function(){return s},isTinyHeight:function(){return u}};Object.assign(_,n("ArbiterMixin")),a.exports=_}),null);
__d("VirtualCursorStatus",["UserAgent","cr:5662","emptyFunction","setImmediate"],(function(t,n,r,o,a,i){var e=null,l=null;function s(){l||(l=n("cr:5662").listen(window,"blur",function(){e=null,u()}))}function u(){l&&(l.remove(),l=null)}function c(t){e=t.keyCode,s()}function d(){e=null,u()}if(typeof window!="undefined"&&window.document&&window.document.createElement){var m=document.documentElement;if(m){if(m.addEventListener)m.addEventListener("keydown",c,!0),m.addEventListener("keyup",d,!0);else if(m.attachEvent){var p=m.attachEvent;p("onkeydown",c),p("onkeyup",d)}}}var _={isKeyDown:function(){return!!e},getKeyDownCode:function(){return e}},f=!1,g=!1,h=null,y=!1;function C(e){var t=new Set,r=_.isKeyDown(),o=e.WEBKIT_FORCE_AT_MOUSE_DOWN,a=e.clientX,i=e.clientY,l=e.isTrusted,s=e.mozInputSource,u=e.offsetX,c=e.offsetY,d=e.webkitForce,m=e.target,p=m.clientHeight,h=m.clientWidth;return a===0&&i===0&&u>=0&&c>=0&&g&&l&&s==null&&t.add("Chrome"),f&&g&&!r&&d!=null&&d<o&&u===0&&c===0&&s==null&&t.add("Safari-edge"),a===0&&i===0&&u<0&&c<0&&g&&s==null&&t.add("Safari-old"),!f&&!g&&!r&&l&&n("UserAgent").isBrowser("IE >= 10")&&s==null&&(a<0&&i<0?t.add("IE"):(u<0||u>h)&&(c<0||c>p)&&t.add("MSIE")),s===0&&l&&t.add("Firefox"),t}function b(){f=!0,n("setImmediate")(function(){f=!1})}function v(){g=!0,n("setImmediate")(function(){g=!1})}function S(e,t){h===null&&(h=C(e)),y=h.size>0;var r=e.target.getAttribute("data-accessibilityid")==="virtual_cursor_trigger";t(y,h,r),n("setImmediate")(function(){y=!1,h=null})}var R={isVirtualCursorTriggered:function(){return y},add:function(t,r){r===void 0&&(r=n("emptyFunction"));var e=function(t){return S(t,r)};t.addEventListener("click",e);var o=n("cr:5662").listen(t,"mousedown",b),a=n("cr:5662").listen(t,"mouseup",v);return{remove:function(){t.removeEventListener("click",e),o.remove(),a.remove()}}}};a.exports=R}),null);
__d("intersectionObserverEntryIsIntersecting",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e.isIntersecting!=null?e.isIntersecting:e.intersectionRatio>0||e.intersectionRect&&(e.intersectionRect.height>0||e.intersectionRect.width>0)}i.default=e}),66);
__d("setInterval",["cr:7388"],(function(t,n,r,o,a,i,l){l.default=n("cr:7388")}),98);
__d("textExpose",["Arbiter","CSS","Parent"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){e.onclick=function(n){var a=o("Parent").byClass(e,"text_exposed_root");a&&a.getAttribute("id")==t&&(o("CSS").addClass(a,"text_exposed"),r("Arbiter").inform("reflow")),n.preventDefault()}}function s(e,t){e.onclick=function(n){var a=o("Parent").byClass(e,"text_exposed_root");a&&a.getAttribute("id")==t&&(o("CSS").removeClass(a,"text_exposed"),r("Arbiter").inform("reflow"))}}l.attachSeeMoreOnClick=e,l.attachSeeLessOnClick=s}),98);