;/*FB_PKG_DELIM*/ __d("IGDSThemeConstantsHelpers",["XIGStyleXDefaultTheme"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=c("XIGStyleXDefaultTheme")[a];return a.includes(".")?parseFloat(a):parseInt(a,10)}g.getNumericValue=a}),98); __d("IgWebImageLoadingFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5537");b=d("FalcoLoggerInternal").create("ig_web_image_loading",a);e=b;g["default"]=e}),98); __d("InstagramWebClientConnectionInfoFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5851");b=d("FalcoLoggerInternal").create("instagram_web_client_connection_info",a);e=b;g["default"]=e}),98); __d("InstagramWebComponentPerfEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5852");b=d("FalcoLoggerInternal").create("instagram_web_component_perf_events",a);e=b;g["default"]=e}),98); __d("InstagramWebResourceTimingEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5853");b=d("FalcoLoggerInternal").create("instagram_web_resource_timing_events",a);e=b;g["default"]=e}),98); __d("InstagramWebResourceTransferSizeEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5854");b=d("FalcoLoggerInternal").create("instagram_web_resource_transfer_size_events",a);e=b;g["default"]=e}),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("PolarisDesktopStoriesGalleryConstants",[],(function(a,b,c,d,e,f){"use strict";a={preview:.4,viewer:1};b=[a.preview,a.preview,a.preview,a.preview,a.viewer,a.preview,a.preview,a.preview,a.preview];c=b.slice(2,7);d=.5;e=1.5;var g=2,h=[{height:1,previewCount:d,width:1},{height:9,previewCount:e,width:14},{height:9,previewCount:g,width:16}],i=.96,j=9/16;f.STORY_GALLERY_ITEM_SCALES=a;f.GALLERY=b;f.VISIBLE_GALLERY=c;f.PREVIEW_COUNT_0_5_CROP=d;f.PREVIEW_COUNT_1_5_CROP=e;f.PREVIEW_COUNT_2_CROP=g;f.ASPECT_RATIOS=h;f.STORY_VIEWER_LARGE_HEIGHT_PCT=i;f.STORY_VIEWER_ASPECT_RATIO_W_H=j}),66); __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.timeInViewporta.width&&(b=Math.ceil(a.width*parseInt(c("IGDSThemeConfig").light.photo,10)/a.height));return b+d("IGDSThemeConstantsHelpers").getNumericValue("media-info")}function e(a){return!!(a&&a.height&&a.width&&a.height>a.width)}function f(a){return d("PolarisUA").isMobile()?a>n:a>l}function o(a){a=a*d("PolarisDesktopStoriesGalleryConstants").STORY_VIEWER_LARGE_HEIGHT_PCT;var b=d("PolarisDesktopStoriesGalleryConstants").STORY_VIEWER_ASPECT_RATIO_W_H*a;return{height:a,width:b}}var p=125;g.SITE_WIDTHS=i;g.FEED_WIDTH_WIDE=j;g.FEED_WIDTH_WIDE_DENSE=k;g.SMALL_SCREEN_CUTOFF=l;g.SMALL_SCREEN_MAX=m;g.LANDSCAPE_SMALL_SCREEN_CUTOFF=h;g.MEDIUM_SCREEN_MIN=n;g.getHeightPercent=a;g.getPageWidthForPostDimensions=b;g.needsCustomMaxPageWidth=e;g.shouldSpawnModals=f;g.getViewerDimensionsFromHeightV2=o;g.CAPPED_HEIGHT_PERCENT=p}),98); __d("polarisGetCrossOriginAttribute",["justknobx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("justknobx")._("87")?"anonymous":void 0}g["default"]=a}),98); __d("polarisRenderAboveImage",["ReactDOM","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e=".EmbedFrame";e=c("nullthrows")(document.querySelector(e));var f=document.createElement("div");f.className=a;e.appendChild(f);a==="EmbedSidecar"&&(e.className+=" EmbedFrameWithSidecar");d("ReactDOM").createRoot(f).render(b)}g["default"]=a}),98);