!function(){"use strict";var e,t={n:function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,{a:i}),i},d:function(e,i){for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},i=Roblox,n=t.n(i),r=CoreUtilities,l={assetRootUrlTemplate:"catalog",bundleRootUrlTemplate:"bundles",getRecommendations:{url:i.EnvironmentUrls.catalogApi+"/v2/recommendations/complement-assets",retryable:!0,withCredentials:!0},postItemDetails:{url:i.EnvironmentUrls.catalogApi+"/v1/catalog/items/details",retryable:!0,withCredentials:!0},postCollectibleItemDetails:{url:i.EnvironmentUrls.apiGatewayUrl+"/marketplace-items/v1/items/details",retryable:!0,withCredentials:!0},getItemOwnershipUrl:function(e,t,n){return i.EnvironmentUrls.inventoryApi+"/v1/users/"+e+"/items/"+t+"/"+n+"/is-owned"}};!function(e){e[e.DETAILS_NOT_HYDRATED=0]="DETAILS_NOT_HYDRATED",e[e.DETAILS_LOADING=1]="DETAILS_LOADING",e[e.DETAILS_HYDRATED=2]="DETAILS_HYDRATED"}(e||(e={}));var o=1e4,s=1e3,a=1e4,c=500,u="asset",d="bundle",f=CoreRobloxUtilities,m=function(e,t){return"ITEM_DETAILS_HYDRATION_"+t.toUpperCase()+"_"+e},p=function(e){return"ITEM_DETAILS_HYDRATION_"+e.toUpperCase()+"_TRACKING"},v=function(e){try{return f.localStorageService.getLocalStorage(p(e))}catch(e){return}},h=function(e,t){var i=v(e);null==i&&(i=function(e){var t=new Array;return f.localStorageService.setLocalStorage(p(e),t),t}(e)),i.push(t),f.localStorageService.setLocalStorage(p(e),i)},I=function(e,t){try{return f.localStorageService.getLocalStorage(m(e,t))}catch(e){return}},y=function(t,i,n){if(!n){var r={};r.status=e.DETAILS_LOADING,r.lastModifiedTimestamp=Date.now(),f.localStorageService.setLocalStorage(m(t,i),r),h(i,t)}},b=function(t,i,n,r){if(!r){var l={};l.status=e.DETAILS_HYDRATED,l.details=n,l.lastModifiedTimestamp=Date.now(),f.localStorageService.setLocalStorage(m(t,i),l),h(i,t)}},D=function(e){var t=v(e),i=new Array;null!=t&&t.forEach((function(t){var n=I(t,e);void 0===(null==n?void 0:n.lastModifiedTimestamp)||Date.now()-(null==n?void 0:n.lastModifiedTimestamp)>a?f.localStorageService.removeLocalStorage(m(t,e)):i.push(t)})),f.localStorageService.setLocalStorage(p(e),i)},T=function(){D(u),D(d)},w=function(e){return new Promise((function(t){return setTimeout((function(){return t(void 0)}),e)}))},A=function(e,t){if(e.isOffSale)return!1;if((e.itemRestrictions.includes("Limited")||e.itemRestrictions.includes("LimitedUnique"))&&!0!==e.hasResellers)return!1;if(e.collectibleItemId&&t){if(void 0===t)return!1;if(0===t.unitsAvailableForConsumption&&!1===t.hasResellers&&e.itemRestrictions.includes("Collectible"))return!1;if(!(void 0!==e.collectibleItemId&&e.itemRestrictions.includes("Collectible")&&!0===t.hasResellers&&(0===t.unitsAvailableForConsumption||t.lowestResalePrice&&0!==t.lowestResalePrice&&t.lowestResalePrice0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]0&&i>0?[4,w(c)]:[3,3];case 1:return o.sent(),[4,U(r,i-1)];case 2:return(l=o.sent()).hydratedItemDetails=n.concat(l.hydratedItemDetails),[2,l];case 3:return[2,{hydratedItemDetails:n,nonHydratedItemDetails:r}]}}))}))},x=function(e,t,i){return P(void 0,void 0,Promise,(function(){var n,r,l;return O(this,(function(o){switch(o.label){case 0:for(n=new Array,r=function(i){var r=e.find((function(e){return e.collectibleItemId===t[i]}));if(r){var l=I(r.id,r.itemType);l&&void 0===l.details.collectibleItemDetails&&n.push(t[i])}},l=0;l0&&i>0?[4,w(c)]:[3,3];case 1:return o.sent(),[4,x(e,n,i-1)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},H=function(t,i,n){return P(void 0,void 0,Promise,(function(){var a,c,u,d,f,m,p,v,h,D,w,A,R,S;return O(this,(function(g){switch(g.label){case 0:return a=null!=i&&i,T(),c=new Array,u=new Array,d=new Array,t.forEach((function(t){var i=I(t.id,t.itemType);null==i?(u.push(t),y(t.id,t.itemType,a)):i.status===e.DETAILS_LOADING||i.status===e.DETAILS_NOT_HYDRATED?Date.now()-i.lastModifiedTimestamp>s?(u.push(t),y(t.id,t.itemType,a)):d.push(t):Date.now()-i.lastModifiedTimestamp>o?(u.push(t),y(t.id,t.itemType,a)):c.push(i.details)})),u.length>0?[4,Promise.resolve(C(u,3))]:[3,2];case 1:void 0!==(f=g.sent())&&f.forEach((function(e){b(e.id,e.itemType,e,a),c.push(e)})),g.label=2;case 2:return[4,U(d,3)];case 3:return(m=g.sent()).hydratedItemDetails.forEach((function(e){c.push(e)})),m.nonHydratedItemDetails.length>0?[4,Promise.resolve(C(d,3))]:[3,5];case 4:void 0!==(p=g.sent())&&p.forEach((function(e){b(e.id,e.itemType,e,a),c.push(e)})),g.label=5;case 5:return v=new Array,h=new Array,c.forEach((function(e){var t=I(e.id,e.itemType),i=null==t?void 0:t.details;if(i&&i.collectibleItemId&&void 0===i.collectibleItemDetails)if(i.collectibleItemDetailsLoading)h.push(i.collectibleItemId);else{var n=E(E({},i),{collectibleItemDetailsLoading:!0});b(n.id,n.itemType,n,a),v.push(i.collectibleItemId)}})),v.length>0&&n?[4,Promise.resolve((P=v,O={itemIds:P},r.httpService.post(l.postCollectibleItemDetails,O)))]:[3,7];case 6:for(D=g.sent(),w=function(e){var t=D.data[e],i=c.find((function(e){return e.collectibleItemId===t.collectibleItemId}));void 0!==i&&(t.purchaseInfo=L(i,t),i.collectibleItemDetails=t,b(i.id,i.itemType,i,a))},A=0;A