;/*FB_PKG_DELIM*/ __d("CometDarkModeRootClass",["ExecutionEnvironment","StyleXSheet"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a,b,c){c?a.classList.add(b):a.classList.remove(b)}function a(a){j(a?"ENABLED":"DISABLED")}function j(a){if(!(h||(h=c("ExecutionEnvironment"))).canUseDOM)return;var b=window.document.documentElement;i(b,c("StyleXSheet").DARK_MODE_CLASS_NAME,a==="ENABLED");i(b,c("StyleXSheet").LIGHT_MODE_CLASS_NAME,a==="DISABLED"||a==="UNDECLARED")}g.toggleDarkModeRootClass=a;g.updateDarkModeRootClass=j}),98); __d("DSPDisplayModeContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext(null);g["default"]=b}),98); /** * License: https://www.facebook.com/legal/license/MDzNl_j9yvg/ */ __d("ms-2.1.1",[],(function(a,b,c,d,e,f){"use strict";b={};var g={exports:b};function h(){var a=1e3,b=a*60,c=b*60,d=c*24,e=d*7,f=d*365.25;g.exports=function(a,b){b=b||{};var c=typeof a;if(c==="string"&&a.length>0)return h(a);else if(c==="number"&&isNaN(a)===!1)return b["long"]?j(a):i(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function h(g){g=String(g);if(g.length>100)return;g=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(!g)return;var h=parseFloat(g[1]);g=(g[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*f;case"weeks":case"week":case"w":return h*e;case"days":case"day":case"d":return h*d;case"hours":case"hour":case"hrs":case"hr":case"h":return h*c;case"minutes":case"minute":case"mins":case"min":case"m":return h*b;case"seconds":case"second":case"secs":case"sec":case"s":return h*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return void 0}}function i(e){var f=Math.abs(e);if(f>=d)return Math.round(e/d)+"d";if(f>=c)return Math.round(e/c)+"h";if(f>=b)return Math.round(e/b)+"m";return f>=a?Math.round(e/a)+"s":e+"ms"}function j(e){var f=Math.abs(e);if(f>=d)return k(e,f,d,"day");if(f>=c)return k(e,f,c,"hour");if(f>=b)return k(e,f,b,"minute");return f>=a?k(e,f,a,"second"):e+" ms"}function k(a,b,c,d){b=b>=c*1.5;return Math.round(a/c)+" "+d+(b?"s":"")}}var i=!1;function j(){i||(i=!0,h());return g.exports}function a(a){switch(a){case void 0:return j()}}e.exports=a}),null); /** * License: https://www.facebook.com/legal/license/MDzNl_j9yvg/ */ __d("debug-4.1.1",["ms-2.1.1","supports-color-5.5.0"],(function(a,b,c,d,e,f){"use strict";function a(a){return a&&typeof a==="object"&&"default"in a?a["default"]:a}var g=a(b("ms-2.1.1")),h=a(b("supports-color-5.5.0"));d={};var i={exports:d};function j(){function a(a){c.debug=c;c["default"]=c;c.coerce=j;c.disable=h;c.enable=f;c.enabled=i;c.humanize=g();Object.keys(a).forEach(function(b){c[b]=a[b]});c.instances=[];c.names=[];c.skips=[];c.formatters={};function b(a){var b=0;for(var d=0;d=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function b(a){a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff);if(!this.useColors)return;var b="color: "+this.color;a.splice(1,0,b,"color: inherit");var c=0,d=0;a[0].replace(/%[a-zA-Z%]/g,function(a){if(a==="%%")return;c++;a==="%c"&&(d=c)});a.splice(d,0,b)}function c(){arguments;return typeof console==="object"&&emptyFunction&&emptyFunction.apply(console,arguments)}function d(a){try{a?m.storage.setItem("debug",a):m.storage.removeItem("debug")}catch(a){}}function e(){var a;try{a=m.storage.getItem("debug")}catch(a){}!a&&typeof process!=="undefined"&&"env"in process&&(a=process.env.DEBUG);return a}function f(){try{return localStorage}catch(a){}}n.exports=l()(m);c=n.exports.formatters;c.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}var p=!1;function q(){p||(p=!0,o());return n.exports}var r={},s={exports:r};function t(){({});var a={};r.init=i;r.log=e;r.formatArgs=c;r.save=f;r.load=g;r.useColors=b;r.colors=[6,2,3,4,5,1];try{i=h();i&&(i.stderr||i).level>=2&&(r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(a){}r.inspectOpts=Object.keys(process.env).filter(function(a){return/^debug_/i.test(a)}).reduce(function(a,b){var c=b.substring(6).toLowerCase().replace(/_([a-z])/g,function(a,b){return b.toUpperCase()});b=process.env[b];/^(yes|on|true|enabled)$/i.test(b)?b=!0:/^(no|off|false|disabled)$/i.test(b)?b=!1:b==="null"?b=null:b=Number(b);a[c]=b;return a},{});function b(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):!1}function c(b){var c=this.namespace,a=this.useColors;if(a){a=this.color;a="\x1b[3"+(a<8?a:"8;5;"+a);var e=a+";1m$"+c+"\x1b[0m";b[0]=e+b[0].split("\n").join("\n"+e);b.push(a+"m+"+s.exports.humanize(this.diff)+"\x1b[0m")}else b[0]=d()+c+" "+b[0]}function d(){return r.inspectOpts.hideDate?"":new Date().toISOString()+" "}function e(){return process.stderr.write(a.format.apply(a,arguments)+"\n")}function f(a){a?process.env.DEBUG=a:delete process.env.DEBUG}function g(){return process.env.DEBUG}function i(a){a.inspectOpts={};var b=Object.keys(r.inspectOpts);for(var c=0;c0?a[1]:""}function k(a){if(a==null)return a;var b=(h||(h=d("URIRFC3986"))).parse(a);if(b==null||b.query==null&&b.fragment==null)return a;b=[[/(password=)(?:.*?)(?=#|&|%23|%26|$)/g,"$1"+j],[/(access_?token=)(?:.*?)(?=#|&|%23|%26|$)/g,"$1"+j]];var c=a;b.forEach(function(a){var b=a[0];a=a[1];return c=c.replace(b,a)});return c}function l(a){if(a==null)return a;a=a;return a.replace(/(\/direct\/t\/)\d+/g,"$1"+j)}function m(a){if(a==null)return a;a=a;return a.includes("direct_v2")?a.replace(/\/\d+/g,"/"+j):a}function b(a){return m(l(k(a)))}function e(a){return m(l(a))}g.getReferrerDomain=a;g.sanitizeReferrer=b;g.sanitizeErrorStack=e}),98); __d("polarisShouldSendCSRFTokenForRequest",["isIGAPIUrl"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=/^(HEAD|OPTIONS|TRACE)$/;return!b.test(a)}function i(a){var b=/^(\/\/|http:|https:).*/;if(!b.test(a))return!0;if(!document||!document.location||!document.location.host||!document.location.protocol)return!1;b=window.location.host;var c=window.location.protocol;b="//"+b;c=c+b;return a===c||a.slice(0,c.length+1)===c+"/"||a===b||a.slice(0,b.length+1)===b+"/"}function a(a,b,d){d===void 0&&(d=!1);return(d||h(a))&&(i(b)||c("isIGAPIUrl")(b))}g["default"]=a}),98); __d("PolarisInstajax",["BDHeaderConfig","FBLogger","InstagramWebPushInfo","PolarisConfig","PolarisCookies","PolarisEncryptionKeysStore","PolarisInstajaxRequestHeader","PolarisMachineID","PolarisSentryFeedbackDispatcher","PolarisWWWClaim","Promise","WebBloksVersioningID","dangerous_DO_NOT_USE_buildIGRequestUrl","handleFeatureLimitRestrictionError","isIGAPIUrl","justknobx","polarisIsInternalURIString","polarisReferrerFormatter","polarisShouldSendCSRFTokenForRequest","qwest"],(function(a,b,c,d,e,f,g){"use strict";var h,i=6e4,j=1,k=!1;if("XMLHttpRequest"in window){var l=XMLHttpRequest.prototype.setRequestHeader;XMLHttpRequest.prototype.setRequestHeader=function(){if(k)return;l.apply(this,arguments)}}var m=function(a,b,c,e){var f;this.name="AjaxError";e=d("polarisReferrerFormatter").sanitizeReferrer(e);var g;try{g=JSON.parse(c||"")}catch(a){g=null}this.message=((f=g)==null?void 0:f.message)||"";typeof this.message==="string"&&(this.message=d("polarisReferrerFormatter").sanitizeErrorStack(this.message));this.stack=new Error().stack;this.framesToPop=1;this.networkError=a;this.statusCode=b;this.responseText=c;this.responseObject=g;this.url=e};m.prototype=new Error();function n(a){var b;try{a&&(b=JSON.parse(a.responseText))}catch(a){}if(b&&typeof b==="object"){a=b;var c=a.checkpoint_url;a=a.redirect_url;var d;typeof c==="string"?d=c:typeof a==="string"&&(d=a);if(d)return d}return null}function o(a){try{a.message==="feedback_required"&&c("PolarisSentryFeedbackDispatcher").getInstance().dispatchSentryFeedbackResponse({feedback_action:a.feedback_action,feedback_appeal_label:a.feedback_appeal_label,feedback_message:a.feedback_message,feedback_title:a.feedback_title,feedback_url:a.feedback_url,message:a.message,restriction_enrollment_data:a.restriction_enrollment_data});if(a.is_restriction_transparency_enabled){c("handleFeatureLimitRestrictionError")(a.feedback_title,a.feedback_message,a.restriction_transparency_url);return!0}}catch(a){c("FBLogger")("ig_web").warn("Error handling feature limit restriction.")}return!1}function p(a){return new(h||(h=b("Promise")))(function(b,c){a.then(function(a,c){b([a,c])})["catch"](function(a,b,d){c([a,b,d])})})}function q(){var a=window.location.search,b;return a&&(b=a.match(/[?&](hl|locale)=([-\w]+)(&.+)?$/))?b[2]:""}function r(a,b){return a}function s(a,e,f,g,l){var p=g||{},s=p.alwaysPassCsrfTokenToSameOrigin;s=s===void 0?!1:s;var v=p.alwaysPassCsrfToken;v=v===void 0?!1:v;var w=p.headers;w=w===void 0?{}:w;var x=p.omitLanguageParam;x=x===void 0?!1:x;var y=p.omitHeaders,z=y===void 0?[]:y;y=p.preloadable;var A=y===void 0?!1:y;y=p.urlErrorFormatter;var B=y===void 0?r:y;y=p.sendBloksVersioningID;p=babelHelpers.objectWithoutPropertiesLoose(p,["alwaysPassCsrfTokenToSameOrigin","alwaysPassCsrfToken","headers","omitLanguageParam","omitHeaders","preloadable","urlErrorFormatter","sendBloksVersioningID"]);var C=c("dangerous_DO_NOT_USE_buildIGRequestUrl")(e);e=c("isIGAPIUrl")(C);var D=babelHelpers["extends"]({cache:!0,timeout:i},p,{headers:babelHelpers["extends"]({},w)});if(d("PolarisCookies").needsToConfirmCookies()){p=d("PolarisMachineID").getMID();p&&(D.headers[c("PolarisInstajaxRequestHeader").MachineId]=p)}if(v||c("polarisShouldSendCSRFTokenForRequest")(a,C,s)){D.headers[c("PolarisInstajaxRequestHeader").CSRFToken]=(w=g==null?void 0:g.CSRFToken)!=null?w:d("PolarisConfig").getCSRFToken()}a!=="GET"&&(D.headers[c("PolarisInstajaxRequestHeader").Ajax]=c("InstagramWebPushInfo").rollout_hash);D.headers[c("PolarisInstajaxRequestHeader").AppId]=(p=g==null?void 0:g.appId)!=null?p:d("PolarisConfig").getIGAppID();D.headers[c("PolarisInstajaxRequestHeader").ASBDId]=d("BDHeaderConfig").ASBD_ID;y===!0&&c("justknobx")._("1126")&&(D.headers[c("PolarisInstajaxRequestHeader").BloksVersionId]=d("WebBloksVersioningID").versioningID);var E=c("polarisIsInternalURIString")(C);(E||e)&&(D.headers[c("PolarisInstajaxRequestHeader").WWWClaim]=d("PolarisWWWClaim").getWWWClaim()||"0");(E||e)&&d("PolarisConfig").sendDeviceIdHeader()&&(D.headers[c("PolarisInstajaxRequestHeader").DeviceId]=d("PolarisConfig").getDeviceId());z.forEach(function(a){delete D.headers[a]});e&&(D.withCredentials=!0);if(!x){v=q();if(v){s=C.indexOf("?")!==-1;C+=(s?"&":"?")+"hl="+v}}if(window.location.href.includes("cm_j=eu_accept")){w=C.indexOf("?")!==-1;C+=(w?"&":"?")+"cm_j=eu_accept"}if(window.location.href.includes("ig_3p_controls=on")){g=C.indexOf("?")!==-1;C+=(g?"&":"?")+"ig_3p_controls=on"}var F=b("qwest");p=a==="GET"||a==="HEAD"?j:0;y=function(){A&&a==="GET"&&(k=!0);var b=F.map(a,C,f,D,l);A&&a==="GET"&&(k=!1);return b};return u(y,p).then(function(a){var b=a[0];a=a[1];if(!z.includes(c("PolarisInstajaxRequestHeader").WWWClaim)&&E){var e=b.getResponseHeader("x-ig-set-www-claim");e&&e!==d("PolarisWWWClaim").getWWWClaim()&&d("PolarisWWWClaim").setWWWClaim(e);t(b)}return typeof a==="object"&&a!=null?babelHelpers["extends"]({statusCode:b!=null?b.status:null},a):a})["catch"](function(c){c[0];var d=c[1];c=c[2];if(o(c))return new(h||(h=b("Promise")))(function(){return null});if(a.toUpperCase()!=="GET"){c=n(d);if(c){window.top.location.href=c;return new(h||(h=b("Promise")))(function(){return null})}}E&&t(d);return(h||(h=b("Promise"))).reject(new m(d&&d.statusText,d&&d.status,d&&d.responseText,B(C,f)))})}function t(a){var b,c="IG-Set-Password-Encryption-Web-Key-Id",e="IG-Set-Password-Encryption-Web-Key-Version",f="IG-Set-Password-Encryption-Web-Pub-Key";b=(b=a.getAllResponseHeaders==null?void 0:a.getAllResponseHeaders())!=null?b:"";b=b.includes(c)&&b.includes(e)&&b.includes(f);if(!b)return;b=a.getResponseHeader(c);c=a.getResponseHeader(e);e=a.getResponseHeader(f);b&&e&&c&&d("PolarisEncryptionKeysStore").setEncryptionKeys(b,e,c)}function u(a,c){var d;try{d=a()}catch(d){return c-1>0?u(a,c-1):(h||(h=b("Promise"))).reject(["",{responseText:"",status:0,statusText:d.toString()}])}return p(d)["catch"](function(d){return c-1>0?u(a,c-1):(h||(h=b("Promise"))).reject(d)})}function a(a,b,c,d){return s("GET",a,b,c,d)}function e(a,b,c,d){return s("POST",a,b,c,d)}f=a;a=e;g.GENERIC_TIMEOUT_60=i;g.AjaxError=m;g.map=s;g.get_UNTYPED=f;g.post_UNTYPED=a}),98); __d("PolarisDeviceOrMachineId",["PolarisConfig","PolarisMachineID"],(function(a,b,c,d,e,f,g){"use strict";function a(){return d("PolarisConfig").getDeviceId()||d("PolarisMachineID").getMID().toUpperCase()}g.getDeviceOrMachineId=a}),98); __d("PolarisPigeonLogger",["AnalyticsCoreData","IGServerUrls","InstagramODS","PHPQuerySerializer","PolarisConfig","PolarisCookies","PolarisDeviceOrMachineId","PolarisInstajax","PolarisInstajaxRequestHeader","PolarisWWWClaim","PolarisWebStorage","Promise","WebSession"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k="client_event",l="pigeon_state",m=18e4,n=432e5,o=null,p=null;function q(){return{lastEventTime:0,sequenceID:0,sessionID:""}}function r(){return{lastDeviceInfoTime:0}}function s(){var a={local:r(),session:q()},b=c("PolarisWebStorage").getLocalStorage();if(b)try{b=b.getItem(l);b!=null&&(a.local=JSON.parse(b))}catch(a){}b=c("PolarisWebStorage").getSessionStorage();if(b)try{b=b.getItem(l);b!=null&&(a.session=JSON.parse(b))}catch(a){}return a}function t(){o||(o=s());var a=Date.now();a-m>o.session.lastEventTime&&(o.session.sessionID=a.toString(16)+"-"+(~~(Math.random()*16777215)).toString(16),o.session.sequenceID=0);return o}function a(){o=null}function e(){if(o){var a=c("PolarisWebStorage").getLocalStorage();if(a)try{a.setItem(l,JSON.stringify(o.local))}catch(a){}a=c("PolarisWebStorage").getSessionStorage();if(a)try{a.setItem(l,JSON.stringify(o.session))}catch(a){}}}function u(){return{density:window.screen.devicePixelRatio||null,locale:window.navigator.language||null,platform:window.navigator.platform||null,screen_height:window.screen.availHeight,screen_width:window.screen.availWidth,user_agent:window.navigator.userAgent}}function v(){return{locale:window.navigator.language}}function w(a,b,c){var d=t();d.session.lastEventTime=Date.now();b=babelHelpers["extends"]({extra:b,name:a,time:d.session.lastEventTime},c);b.time/=1e3;return b}function x(){var a=t(),b=[];a.session.sequenceID===0&&b.push(w("device_status",v()));var c=Date.now();c-a.local.lastDeviceInfoTime>n&&(b.push(w("device_id",u())),a.local.lastDeviceInfoTime=c);return b}function y(){var a=d("PolarisWWWClaim").getWWWClaim();return a!=null?[a]:[]}function z(a){var b=t(),e=d("PolarisConfig").getIGAppID(),f=(j||(j=c("AnalyticsCoreData"))).app_id,g=f;e===f?c("InstagramODS").incr_CAREFUL_WHEN_USE_DYNAMIC_KEY("web.app_id.same."+e+".client.server"):c("InstagramODS").incr_CAREFUL_WHEN_USE_DYNAMIC_KEY("web.app_id.diff."+e+"."+f);return{access_token:d("PolarisConfig").getGraphTokenForApp(),message:JSON.stringify({app_id:g,app_uid:d("PolarisConfig").getViewerIdOrZero(),app_ver:d("PolarisConfig").getAppVersion(),claims:y(),data:a,device_id:d("PolarisDeviceOrMachineId").getDeviceOrMachineId(),log_type:k,seq:b.session.sequenceID++,session_id:d("WebSession").getId()})}}function f(a){p=a}function A(a,e){if(d("PolarisCookies").needsToConfirmCookies())return(h||(h=b("Promise"))).resolve();var f=t(),g=[].concat(a,x());return d("PolarisInstajax").post_UNTYPED(d("IGServerUrls").PIGEON_LOGGER_ENDPOINT,z(g),{omitHeaders:[c("PolarisInstajaxRequestHeader").Ajax,c("PolarisInstajaxRequestHeader").AppId,c("PolarisInstajaxRequestHeader").DeviceId],omitLanguageParam:!0,timeout:e.timeout||0},e.referenceToXhr||function(){})["catch"](function(a){f.session=q();a instanceof d("PolarisInstajax").AjaxError&&a.statusCode===0&&(p&&p({event_count:g.length}));return(h||(h=b("Promise"))).reject(a)})}function B(a){if(d("PolarisCookies").needsToConfirmCookies())return!0;a=window.navigator.sendBeacon(d("IGServerUrls").PIGEON_LOGGER_ENDPOINT,new Blob([(i||(i=c("PHPQuerySerializer"))).serialize(z([].concat(a,x())))],{type:"application/x-www-form-urlencoded"}));a||(t().session=q());return a}g.getState=t;g._clearState=a;g.store=e;g.createEvent=w;g.packageEvents=z;g.onRequestFailed=f;g.send=A;g.sendWithBeacon=B}),98); __d("PolarisTimeSlice",[],(function(a,b,c,d,e,f){"use strict";e.exports={guard:function(a){return a}}}),null); __d("PolarisVisibility",["PolarisTimeSlice","mixInEventEmitter"],(function(a,b,c,d,e,f){"use strict";var g,h;document.hidden!==void 0?(g="hidden",h="visibilitychange"):document.mozHidden!==void 0?(g="mozHidden",h="mozvisibilitychange"):document.msHidden!==void 0?(g="msHidden",h="msvisibilitychange"):document.webkitHidden!==void 0&&(g="webkitHidden",h="webkitvisibilitychange");function i(){return g?document[g]:!1}function a(){return document.addEventListener&&h!==void 0}var j={HIDDEN:"hidden",VISIBLE:"visible",isHidden:i,isSupported:a};b("mixInEventEmitter")(j,{hidden:!0,visible:!0});a()&&document.addEventListener(h,b("PolarisTimeSlice").guard(function(){j.emit(i()?j.HIDDEN:j.VISIBLE)},"visibility change"));e.exports=j}),null); __d("PolarisBanzaiAdapter",["PHPQuerySerializer","PolarisBanzaiAdapterEventHelper","PolarisBanzaiConfig","PolarisBanzaiConstants","PolarisBanzaiUtils","PolarisInstajax","PolarisPigeonLogger","PolarisVisibility","Promise","dangerous_DO_NOT_USE_buildIGRequestUrl","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=[],k={},l="/ajax/bz?__d=dis";a=c("gkx")("25383");var m=a?function(a){a.addEventListener("readystatechange",function(){if(a.readyState>=4){var b=j.indexOf(a);b>=0&&j.splice(b,1)}});return j.push(a)}:function(a){return j.push(a)},n={_classifyEvents:function(a){var b=[],c=[];for(var d=0;d=g.length)break;j=g[i++]}else{i=g.next();if(i.done)break;j=i.value}j=j;switch(j[0]){case"pigeon":b.push(j[1]);break;default:f.push(j);break}}f.length>0&&c.push(babelHelpers["extends"]({},e,{posts:f}))}return{bzPayload:c,pigeonEvents:b}},cleanup:function(){for(var a=0;a0&&g.push(d("PolarisPigeonLogger").send(a,{referenceToXhr:m,timeout:d("PolarisBanzaiConfig").SEND_TIMEOUT}));h.length>0&&g.push(d("PolarisInstajax").post_UNTYPED(l,{q:JSON.stringify(h),ts:Date.now()},{dataType:"post",omitLanguageParam:!0,timeout:d("PolarisBanzaiConfig").SEND_TIMEOUT},m));(i||(i=b("Promise"))).all(g).then(function(){c&&c(),f||n.inform(d("PolarisBanzaiConstants").OK)})["catch"](function(a){e&&e(a.statusCode),f||n.inform(d("PolarisBanzaiConstants").ERROR)})},sendWithBeacon:function(a){var b=!0;a=n._classifyEvents(a);var e=a.bzPayload;a=a.pigeonEvents;a.length>0&&(b=d("PolarisPigeonLogger").sendWithBeacon(a)&&b);e.length>0&&(b=window.navigator.sendBeacon(c("dangerous_DO_NOT_USE_buildIGRequestUrl")(l),new Blob([(h||(h=c("PHPQuerySerializer"))).serialize({q:JSON.stringify(e),ts:String(Date.now())})],{type:"application/x-www-form-urlencoded"}))&&b);return b},setHooks:function(a,e){c("PolarisVisibility").addListener("hidden",a),c("PolarisVisibility").addListener("visible",e),d("PolarisBanzaiAdapterEventHelper").add(window,"pagehide",a),d("PolarisBanzaiAdapterEventHelper").add(window,"pageshow",e),d("PolarisBanzaiUtils").isDocumentFullyLoaded()&&(i||(i=b("Promise"))).resolve().then(e),d("PolarisBanzaiAdapterEventHelper").add(window,"blur",a),d("PolarisBanzaiAdapterEventHelper").add(window,"focus",e)},setUnloadHook:function(a){d("PolarisBanzaiAdapterEventHelper").add(window,"unload",a)},subscribe:function(a,b){k[a]||(k[a]=[]),k[a].push(b)}};n.subscribe(d("PolarisBanzaiConstants").STORE,d("PolarisPigeonLogger").store);e=n;g["default"]=e}),98); __d("PolarisBanzaiStreamPayloads",[],(function(a,b,c,d,e,f){"use strict";var g={};a={addPayload:function(a,b){g[a]=b},removePayload:function(a){delete g[a]},unload:function(a){Object.keys(g).forEach(function(b){b=g[b];a(b.route,b.payload)})}};b=a;f["default"]=b}),66); __d("PolarisBanzai",["ExecutionEnvironment","FBLogger","InstagramWebPushInfo","PolarisBanzaiAdapter","PolarisBanzaiConfig","PolarisBanzaiConstants","PolarisBanzaiStreamPayloads","PolarisConfig","PolarisDeviceOrMachineId","PolarisTimeSlice","PolarisWebStorage","WebStorageMutex","isInIframe","isStringNullOrEmpty","pageID"],(function(a,b,c,d,e,f,g){"use strict";var h,i={},j=c("isInIframe")(),k="ig_bz:",l="ods:banzai",m="send_via_beacon_failure",n="send_via_beacon_failure_catch",o=0,p=1,q=2,r,s,t=[],u=null;function v(){return k}function w(a){return a[2]>=Date.now()-d("PolarisBanzaiConfig").EXPIRY}function x(a,b){a.__meta.status=o,a[3]=(a[3]||0)+1,!a.__meta.retry&&b>=400&&b<600&&t.push(a)}function y(a,b,e,f){a=[a,b,e,0];a.__meta={pageID:c("pageID"),retry:f===!0,status:o,userID:d("PolarisConfig").getViewerId()};return a}function z(a){var b=Date.now()+a;if(!s||b=q||!w(f))return!1;if(h.status>=p)return!0;var i=h.pageID+h.userID,j=g[i];j||(j={app_id:d("PolarisConfig").getIGAppID(),device_id:d("PolarisDeviceOrMachineId").getDeviceOrMachineId(),frontend_env:c("InstagramWebPushInfo").frontend_env,page_id:h.pageID,posts:[],user:h.userID},g[i]=j,a.push(j));h.status=p;j.posts.push(f);b.push(f);return e&&h.retry})}var F,G,H=!1;function I(){H||(H=!0,G=c("PolarisWebStorage").getLocalStorage());return G}function J(){F||(!j?F={restore:function(){var a=I();if(!a)return;new(c("WebStorageMutex"))("polaris_banzai").lock(function(b){var d=[];for(var e=0;e0&&C(),c("PolarisBanzaiAdapter").inform(d("PolarisBanzaiConstants").STORE),J(),F.store()}(i._initialize=function(){(h||(h=c("ExecutionEnvironment"))).canUseDOM&&(c("PolarisBanzaiAdapter").setHooks(function(){C(),K()},L),c("PolarisBanzaiAdapter").setUnloadHook(M))})();i._clearBuffer=function(){t=[]};i._clearStorage=function(){F=void 0,G=void 0,H=!1};a=i;g["default"]=a}),98); __d("PolarisBatchDOM",[],(function(a,b,c,d,e,f){"use strict";var g=[],h=[],i=!1;function j(){return g.length||h.length}function k(){i||(window.requestAnimationFrame(function(){return l()}),i=!0)}function l(a){a===void 0&&(a=!1);var b=null;try{while(j())m(h),m(g)}catch(a){b=a}i=!1;if(b){j()&&!a&&k();throw b}}function m(a){while(a.length!==0)a.shift()()}function a(a,b){b===void 0&&(b=!1),g.push(a),b||k()}function b(a,b){b===void 0&&(b=!1),h.push(a),b||k()}c=l;f.measure=a;f.mutate=b;f._flush=c}),66); __d("PolarisDarkModeQEUtils",["PolarisConfig","PolarisLoggedOutDarkModeExposure"],(function(a,b,c,d,e,f,g){"use strict";function a(){return d("PolarisConfig").isLoggedIn()}function b(){return d("PolarisConfig").isLoggedIn()?!1:c("PolarisLoggedOutDarkModeExposure").xplatform.has_lox_dark_mode_available}g.hasDarkModeToggleEnabled=a;g.isLOXDarkModeEligible=b}),98); __d("getRGBString",["XIGStyleXDarkTheme","XIGStyleXDefaultTheme"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){b===void 0&&(b="light");b=b==="light"?c("XIGStyleXDefaultTheme")[a]:c("XIGStyleXDarkTheme")[a];return"rgb("+b+")"}g["default"]=a}),98); __d("useCometSetDarkModeMetaContent",["CometStyleXDarkTheme","CometStyleXDefaultTheme","DspFDSWebLegacyThemeUsage","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useLayoutEffect,j="color-scheme",k="theme-color",l="nav-bar-background";function m(a){var b=document.querySelector('meta[name="'+j+'"]');a=a?"dark":"light";if(b==null){var c,d=document.createElement("meta");d.setAttribute("name",j);d.setAttribute("content",a);(c=document.querySelector("head"))==null?void 0:c.appendChild(d)}else b==null?void 0:b.setAttribute("content",a)}function n(a){var b=document.querySelector('meta[name="'+k+'"]');if(b==null){var c,d=document.createElement("meta");d.setAttribute("name",k);d.setAttribute("content",a);(c=document.querySelector("head"))==null?void 0:c.appendChild(d)}else b==null?void 0:b.setAttribute("content",a)}function o(a){m(a);if(a){a=babelHelpers["extends"]({},c("CometStyleXDarkTheme"));Object.assign(a,c("DspFDSWebLegacyThemeUsage").dark);n(a[l])}else{a=babelHelpers["extends"]({},c("CometStyleXDefaultTheme"));Object.assign(a,c("DspFDSWebLegacyThemeUsage").light);n(a[l])}}function a(a){i(function(){o(a)},[a])}g.setDarkModeMetaColorScheme=m;g.setMetaThemeColor=n;g.setDarkModeMetaContent=o;g.useCometSetDarkModeMetaContent=a}),98); __d("PolarisIGTheme.react",["cx","$InternalEnum","CometDarkModeRootClass","DSPDisplayModeContext","FBLogger","InstagramQueryParamsHelper","PolarisDarkModeQEUtils","PolarisWebStorage","err","getRGBString","once","react","useCometSetDarkModeMetaContent"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i,l=k.useContext,m=k.useEffect,n=k.useLayoutEffect,o=k.useMemo,p=k.useState,q="igt",r=b("$InternalEnum")({Light:"light",Dark:"dark"});function s(a){if(a==null)return null;switch(a){case"dark":return r.Dark;default:return r.Light}}var t={get:function(){var a;a=(a=d("PolarisWebStorage").getLocalStorage())==null?void 0:a.getItem(q);return s(a)},set:function(a){var b=d("PolarisWebStorage").getLocalStorage();if(b==null)return;b.setItem(q,a)}},u=function(){var a=typeof window.matchMedia==="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches===!0;return v(a)}();function v(a){if(!(d("PolarisDarkModeQEUtils").hasDarkModeToggleEnabled()||d("PolarisDarkModeQEUtils").isLOXDarkModeEligible()))return r.Light;var b=t.get();if(b!=null)return b;if(a&&d("PolarisDarkModeQEUtils").hasDarkModeToggleEnabled())return r.Dark;else if(a&&d("PolarisDarkModeQEUtils").isLOXDarkModeEligible())return r.Dark;return r.Light}function w(){return u}function x(a){u=a}function a(){return w()===r.Dark}function y(a){if(a.__initialTheme!=null)return a.__initialTheme;a=d("InstagramQueryParamsHelper").getQueryParams(window.location.search);a=a.theme;a=s(a);return a!=null?a:w()}function z(a,b){return c("getRGBString")(a,b===r.Dark?"dark":"light")}function A(a){var b=document.documentElement;if(b==null)return;var c="_aa4c",d="_aa4d";b.classList.remove(c,d);switch(a){case r.Dark:b.classList.add(d);break;case r.Light:b.classList.add(c);break}}var B=c("once")(function(a){A(a);a=document.body;a!=null&&a.style.removeProperty("background")});k={getColor:function(a){return z(a,r.Light)},getTheme:function(){return r.Light},hasTemporaryForcedTheme:!1,removeTemporaryForcedTheme:function(){throw c("err")("Unable to set theme without IGThemeProvider")},setTemporaryForcedTheme:function(){throw c("err")("Unable to set theme without IGThemeProvider")},setTheme:function(){throw c("err")("Unable to set theme without IGThemeProvider")},toggleTheme:function(){throw c("err")("Unable to toggle theme without IGThemeProvider")}};var C=j.createContext(k);function e(a){var b=p(function(){return y(a)}),e=b[0],f=b[1];b=p(e);var g=b[0],h=b[1];b=p(!1);var i=b[0],k=b[1];B(e);n(function(){A(e),d("CometDarkModeRootClass").updateDarkModeRootClass(e===r.Dark?"ENABLED":"DISABLED")},[e]);d("useCometSetDarkModeMetaContent").useCometSetDarkModeMetaContent(e===r.Dark);var l=o(function(){return{getColor:function(a){return z(a,e)},getTheme:function(){return e},hasTemporaryForcedTheme:i,removeTemporaryForcedTheme:function(){f(g),x(g),k(!1)},setTemporaryForcedTheme:function(a){f(a),x(a),k(!0)},setTheme:function(a){f(a),x(a)},toggleTheme:function(){if(i)return;var a=e===r.Light?r.Dark:r.Light;f(a);x(a);h(a);t.set(a);d("useCometSetDarkModeMetaContent").setDarkModeMetaContent(a===r.Dark);d("CometDarkModeRootClass").updateDarkModeRootClass(a===r.Dark?"ENABLED":"DISABLED")}}},[e,f,g,h,i,k]);m(function(){if(typeof window.matchMedia!=="function")return;var a=window.matchMedia("(prefers-color-scheme: dark)");try{a.addEventListener("change",function(a){a=v(a.matches);l.setTheme(a)})}catch(b){c("FBLogger")("ig_web").catching(b);try{a.addEventListener(function(a){a=v(a.matches);l.setTheme(a)})}catch(a){c("FBLogger")("ig_web").catching(a)}}});return j.jsx(C.Provider,{value:l,children:j.jsx(c("DSPDisplayModeContext").Provider,{value:l.getTheme()===r.Dark?"dark":"light",children:a.children})})}e.displayName=e.name+" [from "+f.id+"]";b=C.Consumer;function D(){return l(C)}function h(a){var b=D();return b.getColor(a)}g.IG_THEME_LOCAL_STORAGE_KEY=q;g.IGTheme=r;g.isDarkMode=a;g.IGThemeContext=C;g.IGThemeProvider=e;g.IGThemeConsumer=b;g.useTheme=D;g.useThemeColor=h}),98); __d("PolarisIsEmployee",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("25386")||c("gkx")("32992")}g["default"]=a}),98); __d("PolarisLoggerUtils",["polarisReferrerFormatter"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return parseFloat((a/1e3).toFixed(2))}function h(a){var b=window.location.protocol+"//"+window.location.host;return a&&a.indexOf(b)===0?a.substr(b.length):a}function i(a){return h((a=d("polarisReferrerFormatter").sanitizeReferrer(a))!=null?a:"")}function b(a){if(a==null||a==="")return null;a=i(a);return a!==""?a:null}function c(a,b){return a+"_"+b}g.msToLogSeconds=a;g.trimUrl=h;g.trimAndSanitizeUrl=i;g.getSanitizedUrlOrNull=b;g.getFormattedMediaID=c}),98); __d("PolarisQPConstants",["keyMirror"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=(a=c("keyMirror"))({activity:null,app_start:null,edit_profile:null,explore:null,feed:null,inbox:null,inbox_folder_menu:null,landing:null,other_profile:null,own_profile:null,post:null,privacy_and_security:null,settings:null});d={INTERSTITIAL:"5780",LOGIN_INTERSTITIAL:"11497",PAGE_TOP:"5095",TOOLTIP:"5906"};e=a({actor_gateway_interstitial:null,feta_account_auto_migration_dialog:null,feta_save_password_interstitial:null,ig_nido_enrollment:null,ig_nido_graduation:null,iig_celebration_fullscreen:null,iig_dialog:null,iig_fullscreen:null,iig_fullscreen_bullet_list:null,iig_fullscreen_rectangular_image:null,instagram_direct_launcher:null,instagram_footer_banner:null,instagram_tool_tip:null,standard_megaphone:null,standard_megaphone_ig:null});f=a({instagram_activity_feed_header:null,instagram_activity_feed_prompt:null,instagram_direct_web_broadcast_channel:null,instagram_direct_web_e2ee_chat:null,instagram_explore_prompt:null,instagram_feed_header:null,instagram_feed_prompt:null,instagram_landing_page:null,instagram_navigation_tooltip:null,instagram_other_profile_page_header:null,instagram_post_page_header:null,instagram_profile_page:null,instagram_settings_loaded:null,instagram_settings_page_prompt:null,session_start:null});c=(c={},c[b.activity]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.explore]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.feed]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.own_profile]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.other_profile]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.landing]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.post]=[d.PAGE_TOP,d.TOOLTIP],c[b.settings]=[d.INTERSTITIAL,d.TOOLTIP],c[b.inbox]=[d.PAGE_TOP,d.INTERSTITIAL,d.TOOLTIP],c[b.inbox_folder_menu]=[d.TOOLTIP],c[b.app_start]=[d.LOGIN_INTERSTITIAL],c);h=(h={},h[b.activity]=[f.instagram_activity_feed_header,f.instagram_activity_feed_prompt,f.instagram_navigation_tooltip],h[b.explore]=[f.instagram_explore_prompt,f.instagram_navigation_tooltip],h[b.feed]=[f.instagram_feed_header,f.instagram_feed_prompt,f.instagram_navigation_tooltip],h[b.own_profile]=[f.instagram_profile_page,f.instagram_navigation_tooltip],h[b.other_profile]=[f.instagram_other_profile_page_header,f.instagram_navigation_tooltip],h[b.landing]=[f.instagram_landing_page],h[b.post]=[f.instagram_post_page_header,f.instagram_navigation_tooltip],h[b.settings]=[f.instagram_settings_page_prompt,f.instagram_settings_loaded],h[b.inbox]=[f.instagram_direct_web_e2ee_chat],h[b.inbox_folder_menu]=[f.instagram_direct_web_broadcast_channel],h[b.app_start]=[f.session_start],h);i=(i={},i[e.standard_megaphone]=72,i[e.iig_celebration_fullscreen]=80,i[e.iig_dialog]=80,i[e.iig_fullscreen]=80,i[e.iig_fullscreen_rectangular_image]=80,i[e.instagram_footer_banner]=72,i);var j=a({click:null,view:null}),k=a({dismiss:null,primary:null,secondary:null}),l=a({max_width:null,tooltip_anchor:null,tooltip_arrow_position:null,tooltip_direction:null,tooltip_duration:null}),m=a({direct_icon:null,ig_direct_channel_menu_tab:null,profile_icon:null});a=a({DOWN:null,UP:null});g.SLOTS=b;g.SURFACES=d;g.TEMPLATES=e;g.TRIGGERS=f;g.SLOT_TO_SURFACES=c;g.SLOT_TO_TRIGGERS=h;g.IMAGE_SIZES=i;g.LOG_EVENTS=j;g.OBJECT_IDS=k;g.QP_TOOLTIP_PARAMETERS=l;g.QP_TOOLTIP_ANCHORS=m;g.QP_TOOLTIP_DIRECTIONS=a}),98); __d("polarisDebugLogFalcoEvent",["cr:1333","cr:5527"],(function(a,b,c,d,e,f,g){"use strict";function a(a,c){b("cr:5527")==null?void 0:b("cr:5527")(a,c),b("cr:1333")==null?void 0:b("cr:1333").logStoryAdFalcoEventNameToConsole(c)}g["default"]=a}),98); __d("PolarisLogger",["CurrentLocale","InstagramWebClientEventsFalcoEvent","InstagramWebPushInfo","PolarisBanzai","PolarisConfig","PolarisDirectLogger","PolarisIGTheme.react","PolarisIsEmployee","PolarisLoggerUtils","PolarisMachineID","PolarisPigeonLogger","PolarisQPConstants","QpActionFalcoEvent","QpImpressionFalcoEvent","filterObject","isEmpty","justknobx","polarisDebugLogFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i=[];d("PolarisPigeonLogger").onRequestFailed(function(a){c("PolarisBanzai").post("pigeon_failed",a)});function a(a,b,c){b=p(b);var e=b.url;b=babelHelpers.objectWithoutPropertiesLoose(b,["url"]);l(d("PolarisPigeonLogger").createEvent("instagram_web_client_events",babelHelpers["extends"]({event_name:a,event_type:"action",mid:d("PolarisMachineID").getMID()},b),{module:(a=b.source)!=null?a:null,obj_id:d("PolarisLoggerUtils").trimAndSanitizeUrl(e||window.location.href),obj_type:"url"}),c)}function j(a){switch(a){case d("PolarisQPConstants").OBJECT_IDS.primary:return"primary";case d("PolarisQPConstants").OBJECT_IDS.secondary:return"secondary";case d("PolarisQPConstants").OBJECT_IDS.dismiss:return"dismiss";default:return null}}function b(a,b){if(c("justknobx")._("3076")){var e=b==null?void 0:b.nux_id,f=b==null?void 0:b.promotion_id;if(!!e&&!!f)if(a==="view")c("QpImpressionFalcoEvent").logImmediately(function(){return{context_surface_id:e,promotion_id:f}});else if(a==="click"){var g=b==null?void 0:b.object_id,h=j(g);h!=null&&c("QpActionFalcoEvent").logImmediately(function(){return{action_type:h,context_surface_id:e,promotion_id:f}})}}else{g=p(b);g=g.ig_userid;l(d("PolarisPigeonLogger").createEvent(a,babelHelpers["extends"]({pk:g},b),{module:"quick_promotion"}),{signal:!0})}}function e(a,b){b=p(b);var c=b.url;b=babelHelpers.objectWithoutPropertiesLoose(b,["url"]);b.pk=""+b.ig_userid;l(d("PolarisPigeonLogger").createEvent("instagram_web_client_events",babelHelpers["extends"]({event_name:a,event_type:"action",mid:d("PolarisMachineID").getMID()},b),{module:b.containermodule,obj_id:d("PolarisLoggerUtils").trimAndSanitizeUrl(c||window.location.href),obj_type:"url"}))}function f(a,b,c){b=p(b);var e=b.url;b=babelHelpers.objectWithoutPropertiesLoose(b,["url"]);l(d("PolarisPigeonLogger").createEvent("instagram_web_client_events",babelHelpers["extends"]({event_type:"page_view",is_dark_mode:d("PolarisIGTheme.react").isDarkMode(),mid:d("PolarisMachineID").getMID()},b),{module:a,obj_id:d("PolarisLoggerUtils").trimAndSanitizeUrl(e||window.location.href),obj_type:"url"}),c)}function k(a){var b={"1_frame_drop_bucket":a.smallFrameDrops,"4_frame_drop_bucket":a.largeFrameDrops,current_ts_ms:a.currentTimestampMillis,display_refresh_rate:a.displayRefreshRate,fps_guessed:!0,startup_ts_ms:a.startupTimestampMillis,startup_type:"",total_time_spent:a.scrollDurationMillis};l(d("PolarisPigeonLogger").createEvent("feed_scroll_perf",p(babelHelpers["extends"]({},b)),{module:a.containerModule}))}function l(a,b){var e=d("PolarisPigeonLogger").getState();if(a.name==="instagram_web_client_events"){c("InstagramWebClientEventsFalcoEvent").log(function(){return babelHelpers["extends"]({},a.extra,{locale:c("CurrentLocale").get(),pigeon_reserved_keyword_module:a.module,pigeon_reserved_keyword_obj_id:a.obj_id,pigeon_reserved_keyword_obj_type:a.obj_type,pigeon_session_id:e.session.sessionID})});return}c("PolarisBanzai").post("pigeon",a,b);c("polarisDebugLogFalcoEvent")(a.name,babelHelpers["extends"]({},a.extra,{module:a.module}))}function m(a,b){c("PolarisBanzai").flush(a,b)}function n(a){i.push(a)}function o(a){var b=c("filterObject")({app_id:d("PolarisConfig").getIGAppID(),frontend_env:c("InstagramWebPushInfo").frontend_env,pwa:d("PolarisConfig").isProgressiveWebApp()},function(a){return!(h||(h=c("isEmpty")))(a)});return babelHelpers["extends"]({},i.reduce(function(a,b){return babelHelpers["extends"]({},a,b())},{}),b,a)}function p(a){var b=d("PolarisConfig").getViewerIdOrZero();b=babelHelpers["extends"]({},c("filterObject")({ig_userid:b,is_employee:c("PolarisIsEmployee")(),pk:b,rollout_hash:c("InstagramWebPushInfo").rollout_hash},function(a){return!(h||(h=c("isEmpty")))(a)}),o(a));return d("PolarisDirectLogger").DirectLogger.stripExtraData(b)}g.logAction=a;g.logQuickPromotionEvent=b;g.logGatingEvent_DEPRECATED=e;g.logPageView=f;g.logScrollPerfEvent=k;g.logPigeonEvent=l;g.flushLogs=m;g.addLoggerPlugin=n;g.getAnonymousExtra=o;g.getExtra=p}),98); __d("PolarisDirectLogger",["FBLogger","InstagramWebDirectFalcoEvent","PolarisLogger","PolarisPigeonLogger","cr:5941","isObject","keyMirror"],(function(a,b,c,d,e,f,g){"use strict";a=c("keyMirror")({direct_inbox:null,direct_recipient_list:null,ig_direct:null,ig_direct_realtime:null});e=function(){function a(a,b){this.$2=b,this.$1=a}var e=a.prototype;e.getDebugId=function(){return this.$2||""};a.stripExtraData=function(a){a=babelHelpers["extends"]({},a);delete a.thread_id;delete a.threadId;delete a.directThreadId;return a};e.logError=function(b,d,e){e===void 0&&(e={});var f;d instanceof Error?(c("FBLogger")("ig_web").warn(d.message),f={errorMessage:d.message,message:b,name:d.name,stack:d.stack}):c("isObject")(d)?(c("FBLogger")("ig_web").warn(b),f=babelHelpers["extends"]({},d,{message:b})):(c("FBLogger")("ig_web").warn(b),f={error:JSON.stringify(d),message:b});this.logDirectEvent("error",babelHelpers["extends"]({},f,a.stripExtraData(e)))};a.logError=function(b,c,d,e){e===void 0&&(e={}),new a(b).logError(c,d,a.stripExtraData(e))};a.debugTrace=function(b,c,d){new a(b).debugTrace(c,d)};e.$3=function(){return this.$2!=null?"["+this.$2+","+this.$1+"],":"["+this.$1+"],"};e.debugTrace=function(a,c){b("cr:5941")==null?void 0:b("cr:5941").appendMqttLog(""+this.$3()+a,c)};e.logDirectEvent=function(e,f){var g=this;f===void 0&&(f={});var h=f?JSON.stringify(a.stripExtraData(f)):void 0,i=d("PolarisLogger").getExtra({event_name:e,mqtt_data:h});c("InstagramWebDirectFalcoEvent").log(function(){var a;return{event_name:e,frontend_env:i.frontend_env,ig_userid:i.ig_userid,module:g.$1,mqtt_data:(a=h)!=null?a:""}});b("cr:5941")==null?void 0:b("cr:5941").appendMqttLog(""+this.$3()+e,a.stripExtraData(f))};a.logDirectEvent=function(b,c,d){d===void 0&&(d={}),new a(b).logDirectEvent(c,d)};e.logDirectClientEvent=function(a,c,e,f,g){e===void 0&&(e={});e=d("PolarisLogger").getExtra({extra:e,sampling_frequency:1});d("PolarisLogger").logPigeonEvent(d("PolarisPigeonLogger").createEvent(a,e,babelHelpers["extends"]({},g,{module:c})),f);b("cr:5941")==null?void 0:b("cr:5941").appendMqttLog(""+this.$3()+a,e)};a.logDirectClientEvent=function(b,c,d,e,f){d===void 0&&(d={}),new a(c).logDirectClientEvent(b,c,d,e,f)};return a}();g.DIRECT_CONTAINER_MODULES=a;g.DirectLogger=e}),98); __d("PolarisEmbedAnonymousMode",[],(function(a,b,c,d,e,f){"use strict";var g=!0,h=[];function a(){return g}function b(a){var b=g!==a;g=a;b&&h.forEach(function(b){return b(a)})}f.getAnonymous=a;f.setAnonymous=b}),66); __d("PolarisEmbedAsyncBridge",["performanceAbsoluteNow"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){function a(){this.$1=[],this.$2={}}a.getInstance=function(){window.__EmbedAsyncBridge__instance||(window.__EmbedAsyncBridge__instance=new a());return window.__EmbedAsyncBridge__instance};var b=a.prototype;b.$3=function(a){var b=a.eventName;b=this.$2[b];if(b==null||b.length===0)return;b.forEach(function(b){return b(a)})};b.emit=function(a,b){b===void 0&&(b=null);a={eventName:a,options:b,timestamp:(h||(h=c("performanceAbsoluteNow")))()};this.$1.push(a);this.$3(a)};b.on=function(a,b){var c=this.$2[a]||[];c.push(b);this.$2[a]=c;this.$1.filter(function(b){return b.eventName===a}).forEach(b)};return a}();g["default"]=a}),98); __d("PolarisEmbedHashHelpers",["memoize"],(function(a,b,c,d,e,f,g){"use strict";a=c("memoize")(function(){var a=window.location.hash;a=decodeURIComponent(a.substring(a.indexOf("#")+1));try{a=JSON.parse(a)}catch(b){a={}}return{clientId:a.ci,offset:a.os,sdkLoadEnd:a.le,sdkLoadStart:a.ls}});g.getHashPayload=a}),98); __d("polarisGetEmbedRequestID",["nullthrows"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("nullthrows")(document.querySelector(".Embed"));return a.getAttribute("data-request-id")}g["default"]=a}),98); __d("PolarisEmbedLogger",["InstagramQueryParamsHelper","PolarisEmbedHashHelpers","PolarisLogger","PolarisLoggerUtils","PolarisPigeonLogger","gkx","polarisGetEmbedRequestID"],(function(a,b,c,d,e,f,g){"use strict";function h(a){a=d("PolarisLoggerUtils").trimAndSanitizeUrl(a||window.location.href);var b=c("polarisGetEmbedRequestID")();return b!=null?d("InstagramQueryParamsHelper").appendQueryParams(a,{ig_rid:b}):a}function a(a,b,e){if(!c("gkx")("25394"))return;var f=d("PolarisLogger").getExtra(),g=f.url;f=babelHelpers.objectWithoutPropertiesLoose(f,["url"]);a=babelHelpers["extends"]({client_id:d("PolarisEmbedHashHelpers").getHashPayload().clientId,event_name:a.actionName,is_copyright_blocked:a.isCopyrightBlocked,media_id:a.mediaId,media_type:a.mediaType,owner_id:a.ownerId===""?null:a.ownerId},f);f=babelHelpers["extends"]({obj_id:h(g),obj_type:"url"},e);d("PolarisLogger").logPigeonEvent(d("PolarisPigeonLogger").createEvent("instagram_web_embeds",a,f),b)}function i(a,b,c){var e=d("PolarisLogger").getAnonymousExtra(),f=e.url;e=babelHelpers.objectWithoutPropertiesLoose(e,["url"]);a=babelHelpers["extends"]({client_id:d("PolarisEmbedHashHelpers").getHashPayload().clientId,event_name:a.actionName,is_copyright_blocked:a.isCopyrightBlocked,media_id:a.mediaId,media_type:a.mediaType,owner_id:a.ownerId===""?null:a.ownerId},e);e=babelHelpers["extends"]({obj_id:h(f),obj_type:"url"},c);d("PolarisLogger").logPigeonEvent(d("PolarisPigeonLogger").createEvent("instagram_web_embeds_anonymous",a,e),b)}function b(a){var b=a.isCopyrightBlocked,c=a.mediaId,d=a.mediaType;a=a.ownerId;i({actionName:"view",isCopyrightBlocked:b,mediaId:c,mediaType:d,ownerId:a})}function e(a,b,e){if(!c("gkx")("25394"))return;a=d("PolarisLogger").getExtra(a);var f=a.url;a=babelHelpers.objectWithoutPropertiesLoose(a,["url"]);a=babelHelpers["extends"]({client_id:d("PolarisEmbedHashHelpers").getHashPayload().clientId,parent_url:window.document.referrer},a);f=babelHelpers["extends"]({obj_id:h(f),obj_type:"url"},e);d("PolarisLogger").logPigeonEvent(d("PolarisPigeonLogger").createEvent("instagram_web_embed_perf_events",a,f),b)}g.logEmbedAction=a;g.logEmbedPageView=b;g.logEmbedTimings=e}),98); __d("PolarisEmbedTimings",["PolarisEmbedHashHelpers"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){return a==null?null:Math.round(a+b)}function a(a){var b=d("PolarisEmbedHashHelpers").getHashPayload();if(b.clientId!=null&&b.offset!=null&&b.sdkLoadStart!=null&&b.sdkLoadEnd!=null){var c=b.clientId,e=b.offset,f=b.sdkLoadEnd;b=b.sdkLoadStart;return{clientId:c,contentLoaded:h(a.contentLoaded,e),contentLoading:h(a.contentLoading,e),frameLoad:Math.round(e),resourcesLoaded:h(a.resourcesLoaded,e),sdkLoadEnd:Math.round(f),sdkLoadStart:Math.round(b)}}return null}g.getEmbedTimings=a}),98); __d("PolarisMonitorErrors",["FBLogger","fb-error"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=new(c("fb-error").ErrorMetadata)();typeof a.url==="string"&&b.addEntry("IG_WEB","ERROR_URL",h(a.url));typeof a.statusCode==="number"&&b.addEntry("IG_WEB","ERROR_CODE",String(a.statusCode));typeof a.jsonFirstChars==="string"&&b.addEntry("IG_WEB","JSON_FIRST_CHARS",a.jsonFirstChars);return b}function b(){var a=window.__bufferedErrors;if(a&&a.length)for(var a=a,b=Array.isArray(a),d=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(b){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;"message"in e||c("FBLogger")("ig_web").catching(e.error)}delete window.__bufferedErrors}function h(a){return a.replace(":","%RESEREVED%")}g.createErrorMetadata=a;g.monitorErrors=b}),98); __d("PolarisServiceWorkerConstants",[],(function(a,b,c,d,e,f){"use strict";a={htmlCache:"html-cache-v2",loggingParams:"logging-params-v3",sharedData:"shared-data-v2",swConfig:"sw-config-v2"};b="/translations";c="/data/shared_data/";d="/data/logging_params/";f.SW_CACHE_NAMES=a;f.TRANSLATIONS=b;f.SHARED_DATA_PATH=c;f.LOGGING_PARAMS=d}),66); __d("PolarisEntrypointHelper",["ErrorTransport","InstagramWebPushInfo","PolarisConfig","PolarisMonitorErrors","PolarisServiceWorkerConstants","Promise","fb-error"],(function(a,b,c,d,e,f,g){"use strict";var h,i=!1;function a(){var a;i=!1;return((a=window)==null?void 0:a.caches)?window.caches.open(d("PolarisServiceWorkerConstants").SW_CACHE_NAMES.sharedData).then(function(a){return a?a["delete"](d("PolarisServiceWorkerConstants").SHARED_DATA_PATH):(h||(h=b("Promise"))).resolve()}):(h||(h=b("Promise"))).resolve()}function j(a,b){if(!i){d("PolarisConfig").setRawConfig(b);c("fb-error").ErrorSetup.preSetup();c("fb-error").ErrorSetup.setup({appId:Number(d("PolarisConfig").getIGAppID()),bundle_variant:(b=c("InstagramWebPushInfo")).bundle_variant,frontend_env:b.frontend_env,loggingFramework:"ig_web",push_phase:b.deployment_stage,rollout_hash:b.rollout_hash,sample_weight:1},d("ErrorTransport").log);d("PolarisMonitorErrors").monitorErrors();i=!0}return{entrypoint:(b=a)!=null?b:"",initialData:{}}}function e(a){if(window.__initialData.pending){var c={};window.__initialData.waiting.push(c);return new(h||(h=b("Promise")))(function(b,d){c.resolve=function(c){b(j(a,c))},c.reject=d})}else if(Object.prototype.hasOwnProperty.call(window.__initialData,"data"))return(h||(h=b("Promise"))).resolve(j(a,window.__initialData.data));return(h||(h=b("Promise"))).reject(window.__initialData.error)}function f(a){return window.__additionalData&&window.__additionalData[a]!=null}function k(a){var c=window.__additionalData[a];if(!c)return(h||(h=b("Promise"))).reject(new Error("No data queued for "+a));else if(c.pending){var d={};c.waiting.push(d);return new(h||(h=b("Promise")))(function(a,b){d.resolve=a,d.reject=b})}else if(Object.prototype.hasOwnProperty.call(c,"data"))return(h||(h=b("Promise"))).resolve(c.data);return(h||(h=b("Promise"))).reject(c.error)}function l(a){a=window.__additionalData&&window.__additionalData[a];return a!=null&&Object.prototype.hasOwnProperty.call(a,"data")}g.clearSharedDataCache=a;g.entrypointReady=e;g.hasAdditionalData=f;g.additionalDataReady=k;g.isAdditionalDataReady=l}),98); __d("PolarisOneTraceQPLLogger",["QuickPerformanceLogger","performanceNavigationStart","performanceNow"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j={CANCEL:4,ERROR:87,FAIL:3,OFFLINE:160,START:1,SUCCESS:2,TIMEOUT:113},k=c("performanceNavigationStart")();function a(a,b){if(a==null)return;(h||(h=c("QuickPerformanceLogger"))).markerStart(a,b.instanceKey,b.startTime+k)}function b(a,b){if(a==null)return;(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,b.annotations,{instanceKey:b.instanceKey});for(var d in b.markerPoints)(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,d,{data:b.markerPoints[d].data,instanceKey:b.instanceKey,timestamp:b.markerPoints[d].timeSinceStart+k});d=j[b.status];h.markerEnd(a,d,b.instanceKey,((a=b.endTime)!=null?a:(i||(i=c("performanceNow")))())+k)}g.initQPL=a;g.logQPL=b}),98); __d("PolarisQuickLogModules",[],(function(a,b,c,d,e,f){a={BLOKS_EXAMPLE_TTI:719988411,BLOKS_SCREEN_TTI:719983200,BLOKS_SCREEN_TTRC:720000263};b={APP_START:27459588,EMBED_LOAD:27459587,FWP_TEST_IG_FEED_LOAD:27475950,IG_FEED_LOAD:27459585,IG_FEED_LOAD_MORE:27459586,IG_REPORT:27459592,IG_VIDEO_ACTION:27467867,PRESENT_STORY_VIEWER:27459589,STORY_NAVIGATION:27459590,STORY_TRAY_LOAD:27459591};c={INITIAL_LOAD:528233608,INTERACTION:528230786,NAVIGATION:528235747};d={IMAGE:558902195,INPUT_DELAY:558904351,LONGTASK:558903169,RESPONSIVENESS:558903412,SCROLL:558905116,TYPING:558904495};e={IG_INBOX_FETCH:35586049,IG_MQTT_TTA_PHOTO:35586053,IG_MQTT_TTA_TEXT:35586052,IG_THREAD_FETCH:35586051};var g={INITIAL_LOAD:553648129,INITIAL_LOAD_SERVER:553661671,INTERACTION:553655735,NAVIGATION:553648130},h={IMAGE:602157403,INPUT_DELAY:602153811,LONGTASK:602154925,RESPONSIVENESS:602150380,SCROLL:602148241,TYPING:602161050},i={INITIAL_LOAD:755968561,INTERACTION:755965148,NAVIGATION:755959842};f.BloksScreensQuickLogModule=a;f.IgWebQuickLogModule=b;f.IgWebBloksInteractionQuickLogModule=c;f.IgWebBloksOneTraceQuickLogModule=d;f.IgWebDirectQuickLogModule=e;f.IgWebInteractionQuickLogModule=g;f.IgWebOneTraceQuickLogModule=h;f.IgWebVisualCompletionQuickLogModule=i}),66); __d("PolarisIgWebOneTrace",["PolarisOneTraceQPLLogger","gkx","one-trace","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function i(a){switch(a.traceType){case"IMAGE":return c("qpl")._(602157403,"21");case"SCROLL":return c("gkx")("6676")?c("qpl")._(602148241,"1597"):null;case"INP":return c("qpl")._(602153811,"6287");case"LONGTASK":return null;case"RESPONSIVENESS":return c("qpl")._(602150380,"6915");case"TYPING":return c("qpl")._(602161050,"8327")}return null}function a(){if(!h){var a;h=!0;c("one-trace").setup({Image:{enableTracking:(a=c("gkx"))("6536")},INP:{enableTracking:a("6626")},Longtask:{enableTracking:a("6626")},Responsiveness:{enableTracking:a("6626")},Scroll:{enableTracking:a("32993")},Typing:{enableTracking:a("32994")}});c("one-trace").subscribe("trace-start",function(a){d("PolarisOneTraceQPLLogger").initQPL(i(a),a)});c("one-trace").subscribe("trace-end",function(a){d("PolarisOneTraceQPLLogger").logQPL(i(a),a)})}}g.init=a}),98); __d("PolarisPPRUtil",["performanceNow"],(function(a,b,c,d,e,f,g){"use strict";var h,i=250,j=new Map(),k=new Map();function a(){j.clear()}function b(){var a=Array.from(j.values());j.clear();return a}function l(a,b){return b+"_"+a}function d(a){var b=a.isGridView,d=a.mediaId;a=a.pageId;var e=l(d,a);if(j.has(e))return;b={isGridView:b,loadTime:k.get(e),mediaId:d,pageId:a,timeEnteredViewport:(h||(h=c("performanceNow")))()};j.set(e,b)}function e(a){var b=a.mediaId,c=a.pageId;a=a.timeTaken;b=l(b,c);c=j.get(b);c?c.loadTime=a:k.has(b)||k.set(b,a)}function f(a){var b=a.mediaId;a=a.pageId;b=l(b,a);a=j.get(b);a&&a.timeInViewport===void 0&&(a.timeInViewport=(h||(h=c("performanceNow")))()-a.timeEnteredViewport);return a}g.PPR_LOGGING_THRESHOLD=i;g.clearPPRMap=a;g.flushMediaStillInViewport=b;g.getPPRKey=l;g.setMediaEntersViewport=d;g.setMediaRendered=e;g.setMediaLeavesViewport=f}),98); __d("PolarisEventLoop",["PolarisBatchDOM","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(){function a(a,b){this.canceled=!1,this.$1=a,this.nativeId=b}var b=a.prototype;b.runOnFlush=function(){var a=this;d("PolarisBatchDOM").mutate(function(){a.canceled||a.$1()})};return a}();a=function(){function a(){this.counter=1,this.subscriptions=new Map()}var c=a.prototype;c.setTimeout=function(a,b){return this.$1(window.setTimeout,a,b)};c.setInterval=function(a,b){return this.$1(window.setInterval,a,b)};c.$1=function(a,b,c){a=a(function(){return d.runOnFlush()},c);var d=new i(b,a);c=this.counter++;this.subscriptions.set(c,d);return c};c.clearTimeout=function(a){if(a!=null){var b=this.subscriptions.get(a);b!=null&&(b.canceled=!0,window.clearTimeout(b.nativeId));this.subscriptions["delete"](a)}};c.clearInterval=function(a){this.clearTimeout(a)};c.wait=function(a){var c=this;return new(h||(h=b("Promise")))(function(b){c.setTimeout(b,a)})};return a}();c=new a();e=c;g["default"]=e}),98); __d("polarisDebounceCore",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c,d,e){d=d||window.setTimeout;e=e||window.clearTimeout;var f;function g(){for(var e=arguments.length,h=new Array(e),i=0;i=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;k(f)&&j.set(f.name,l(f,a))}b&&b.clearResourceTimings&&b.clearResourceTimings()}function b(a){var b;b=(b=window)==null?void 0:(b=b.performance)==null?void 0:b.getEntriesByType;if(typeof b!=="function")return[];b=b.call(window.performance,"resource").filter(function(b){return!a.type||b.initiatorType===a.type}).filter(k).map(function(b){return l(b,a.pageId)});if(a.includeBuffered===!0)for(var c=j.values(),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;(!a.type||f.resource_type===a.type)&&b.push(f)}return b}function c(a,b){var c;c=(c=window)==null?void 0:(c=c.performance)==null?void 0:c.getEntriesByName;if(typeof c!=="function")return null;c=c.call(window.performance,a);for(var c=c,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;if(k(f)){f=l(f,b.pageId);if(f.resource_name===a)return f}}if(b.includeBuffered===!0)for(f=j.values(),e=Array.isArray(f),d=0,f=e?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(e){if(d>=f.length)break;c=f[d++]}else{d=f.next();if(d.done)break;c=d.value}c=c;if(a===c.resource_name&&b.pageId===c.page_id)return c}return null}function k(a){return["img","script","link"].indexOf(a.initiatorType)>=0&&a.name.match(i)}function l(a,b){b={connect_start:Math.round(a.connectStart),connect_time:Math.round(a.connectEnd-a.connectStart),decoded_body_size:Math.round(a.decodedBodySize),domain_lookup_start:Math.round(a.domainLookupStart),domain_lookup_time:Math.round(a.domainLookupEnd-a.domainLookupStart),duration:Math.round(a.duration),encoded_body_size:Math.round(a.encodedBodySize),fetch_start:Math.round(a.fetchStart),from_cache:!a.transferSize,page_id:b!=null&&b!==""?b:null,redirect_start:Math.round(a.redirectStart),redirect_time:Math.round(a.redirectEnd-a.redirectStart),request_start:Math.round(a.requestStart),resource_name:a.name,resource_type:a.initiatorType,response_start:Math.round(a.responseStart),response_time:Math.round(a.responseEnd-a.responseStart),secure_connection_start:Math.round(a.secureConnectionStart),start_time:Math.round(a.startTime),transfer_size:Math.round(a.transferSize)};if(b.resource_type==="script"){a=b.resource_name.match(g);if(a){b.resource_hash=a[3];b.resource_name=a[1];a=a[1].match(h);a!=null&&(b.resource_lang=a[2])}}return b}f.bufferResourceTimings=a;f.getResourceTimings=b;f.getResourceTimingByName=c}),66); __d("PolarisPerformanceLogger",["IgWebImageLoadingFalcoEvent","InstagramWebClientConnectionInfoFalcoEvent","InstagramWebComponentPerfEventsFalcoEvent","InstagramWebPushInfo","InstagramWebResourceTimingEventsFalcoEvent","InstagramWebResourceTransferSizeEventsFalcoEvent","PolarisIgWebOneTrace","PolarisLogger","PolarisLoggerUtils","PolarisPPRUtil","PolarisPigeonLogger","gkx","performanceNow","polarisDebounce","polarisHashCode","polarisResourceTimings","requestIdleCallback"],(function(a,b,c,d,e,f,g){"use strict";var h,i=1e4,j="",k=!0,l=!0;d("PolarisIgWebOneTrace").init();function a(a){j=(a==null?void 0:a.currentPageId)||"",k=!!(a==null?void 0:a.firstPageLoad),l=!!(a==null?void 0:a.resourceMetricsLocked)}function b(b){var e=b.component,g=b.eventType,h=b.pageId,i=b.route,j=b.timeTaken,a=h||"";c("InstagramWebComponentPerfEventsFalcoEvent").log(function(){return{component:e,event_name:g,frontend_env:c("InstagramWebPushInfo").frontend_env,module:a,objid:"url",objtype:d("PolarisLoggerUtils").trimAndSanitizeUrl(i||""),time_taken:Math.round(j).toString()}})}function e(a,b,c){d("PolarisLogger").logPigeonEvent(d("PolarisPigeonLogger").createEvent("instagram_web_graphql_timing_events",babelHelpers["extends"]({query_hash:a,query_time:b},d("PolarisLogger").getExtra())),c)}function m(a){var b=a.fromFullPageLoad,d=a.pageId,e=a.resourceCount,f=a.resourceType,g=a.transferSize;c("InstagramWebResourceTransferSizeEventsFalcoEvent").log(function(){return{frontend_env:c("InstagramWebPushInfo").frontend_env,full_page_load:b,module:d,resource_type:f,resources_count:e.toString(),transfer_size:g==null?void 0:g.toString()}})}function n(a){var b=a.eventType,e=a.fromFullPageLoad;a=a.timings;var f=a.page_id,g=babelHelpers.objectWithoutPropertiesLoose(a,["page_id"]);c("InstagramWebResourceTimingEventsFalcoEvent").log(function(){var a;return babelHelpers["extends"]({},g,{connect_start:g.connect_start.toString(),connect_time:g.connect_time.toString(),decoded_body_size:(a=g.decoded_body_size)==null?void 0:a.toString(),domain_lookup_start:g.domain_lookup_start.toString(),domain_lookup_time:g.domain_lookup_time.toString(),duration:g.duration.toString(),encoded_body_size:(a=g.encoded_body_size)==null?void 0:a.toString(),event_type:(a=b)!=null?a:"",fetch_start:g.fetch_start.toString(),frontend_env:c("InstagramWebPushInfo").frontend_env,full_page_load:e,module:f,obj_id:d("PolarisLoggerUtils").trimAndSanitizeUrl(window.location.href),obj_type:"url",redirect_start:g.redirect_start.toString(),redirect_time:g.redirect_time.toString(),request_start:g.request_start.toString(),response_start:g.response_start.toString(),response_time:g.response_time.toString(),secure_connection_start:(a=g.secure_connection_start)==null?void 0:a.toString(),start_time:g.start_time.toString(),transfer_size:(a=g.transfer_size)==null?void 0:a.toString()})})}function f(){if("performance"in window){c("requestIdleCallback")(function(){var a=o();a&&p(a)});var a=c("polarisDebounce")(s,i);document.addEventListener("load",function(b){b=b.target;(b.tagName==="IMG"||b.tagName==="SCRIPT"||b.tagName==="LINK")&&a()},!0);"addEventListener"in window.performance&&window.performance.addEventListener("resourcetimingbufferfull",function(){s()});window.addEventListener("beforeunload",function(){l=!1,s(),v()})}}function o(){var a,b;a=(a=window)==null?void 0:(a=a.navigator)==null?void 0:a.connection;return!a||!a.effectiveType||!a.downlink||!a.rtt?null:{connectionType:(b=a.type)!=null?b:"unknown",downlink:Math.round(a.downlink*1e3),effectiveType:a.effectiveType,rtt:a.rtt}}function p(a){var b=d("PolarisLogger").getExtra(),e=b.url;c("InstagramWebClientConnectionInfoFalcoEvent").log(function(){return{connection_type:a.connectionType,downlink:a.downlink.toString(),effective_type:a.effectiveType,objid:d("PolarisLoggerUtils").trimAndSanitizeUrl(e||window.location.href),objtype:"url",rtt:a.rtt.toString()}})}function q(){k||s(null),l=!0}function r(a){l=!1,s(a),k=!1}function s(a){if(l||c("gkx")("33000"))return;j=(a=a)!=null?a:j;["script","img"].forEach(function(a){var b=d("polarisResourceTimings").getResourceTimings({pageId:j,type:a}).reduce(function(b,d){a==="script"&&c("gkx")("33001")&&n({eventType:"",fromFullPageLoad:k,timings:d});(d.transfer_size>0||a==="script")&&(b.resourceCount++,b.transferSize+=d.transfer_size);return b},{fromFullPageLoad:k,pageId:j,resourceCount:0,resourceType:a,transferSize:0});b.resourceCount>0&&m(b)});d("polarisResourceTimings").bufferResourceTimings(j)}var t=new Set();function u(a){var b=a.pageId;if(!b)return;else b==="feed"&&(b="feedPage");var e=d("PolarisPPRUtil").getPPRKey(a.mediaId,b);if(t.has(e))return;t.add(e);a.timeInViewport||(a.timeInViewport=(h||(h=c("performanceNow")))()-a.timeEnteredViewport);if(a.timeInViewport