1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8062],{28062:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var r,o=n(85893),i=n(87357),c=n(67294),s=n(97334),a=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(){return(p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)0>e.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n},l=function(t){function e(e){var n=t.call(this,e)||this;return n.request=null,n.cancel=function(){n.request&&n.request.cancel()},n.handleFetchSuccess=function(t){n.props.onSuccess&&n.props.onSuccess(t),n.setState({html:t.html},function(){window.instgrm.Embeds.process(),n.props.onAfterRender&&n.props.onAfterRender()})},n.handleFetchFailure=function(t){clearTimeout(n.timer),n.props.onFailure&&n.props.onFailure(t)},n.createRequestPromise=function(t){var e={};return e.promise=new Promise(function(r,o){var i=fetch(t,{headers:{Authorization:"Bearer "+n.props.clientAccessToken}}).then(function(t){return t.json()}).then(function(t){return r(t)}).catch(function(t){return o(t)});return e.cancel=function(){return o(Error("Cancelled"))},i}),e},n.state={html:null},n}return a(e,t),e.prototype.componentDidMount=function(){var t=this;window.instgrm?this.fetchEmbed(this.getQueryParams(this.props)):(this.props.injectScript&&!document.getElementById("react-instagram-embed-script")&&this.injectScript(),this.checkAPI().then(function(){t.fetchEmbed(t.getQueryParams(t.props))}))},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.url,r=e.clientAccessToken,o=e.hideCaption,i=e.maxWidth,c=e.containerTagName,s=e.className;(t.url!==n||t.clientAccessToken!==r||t.hideCaption!==o||t.maxWidth!==i||t.containerTagName!==c||t.className!==s)&&(this.request.cancel(),this.fetchEmbed(this.getQueryParams(this.props)))},e.prototype.componentWillUnmount=function(){this.cancel()},e.prototype.render=function(){var t=this.props.containerTagName;return c.createElement(t,p({},this.omitComponentProps(),{dangerouslySetInnerHTML:{__html:this.state.html||""}}))},e.prototype.fetchEmbed=function(t){this.request=this.createRequestPromise("https://graph.facebook.com/v11.0/instagram_oembed/?"+t),this.props.onLoading&&this.props.onLoading(),this.request.promise.then(this.handleFetchSuccess).catch(this.handleFetchFailure)},e.prototype.omitComponentProps=function(){var t=this.props;return t.url,t.clientAccessToken,t.hideCaption,t.maxWidth,t.containerTagName,t.onLoading,t.onSuccess,t.onAfterRender,t.onFailure,t.protocol,t.injectScript,u(t,["url","clientAccessToken","hideCaption","maxWidth","containerTagName","onLoading","onSuccess","onAfterRender","onFailure","protocol","injectScript"])},e.prototype.injectScript=function(){var t=0===window.location.protocol.indexOf("file")?this.props.protocol:"",e=document.createElement("script");e.async=e.defer=!0,e.src=t+"//platform.instagram.com/en_US/embeds.js",e.id="react-instagram-embed-script";var n=document.body;n&&n.appendChild(e)},e.prototype.checkAPI=function(){var t=this;return new Promise(function(e){!function t(n){n.timer=window.setTimeout(function(){window.instgrm?(clearTimeout(n.timer),e()):t(n)},20)}(t)})},e.prototype.getQueryParams=function(t){var e=t.url,n=t.hideCaption,r=t.maxWidth,o={url:e,hidecaption:n,omitscript:!0,fields:"html"};return"number"==typeof r&&320<=r&&r<=658&&(o.maxwidth=r),(0,s.stringify)(o)},e.defaultProps={hideCaption:!1,containerTagName:"div",protocol:"https:",injectScript:!0},e}(c.Component),f=n(49048),h=n(80141);function d(t){let{attributes:e}=t,{data:n}=(0,f.Z)();return n&&n.fbAppId&&n.fbAppSecret&&(null==e?void 0:e.url)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Z,Object.assign({sx:{"> div":{display:"flex",justifyContent:"center"}}},{children:(0,o.jsx)(l,{clientAccessToken:"".concat(n.fbAppId,"|").concat(n.fbAppSecret),maxWidth:600,url:null==e?void 0:e.url})})),(0,o.jsx)(i.Z,Object.assign({sx:{maxWidth:600,mx:"auto"}},{children:(0,o.jsx)(h.Z,{caption:null==e?void 0:e.caption})}))]}):(0,o.jsx)(o.Fragment,{})}},97334:function(t){!function(){"use strict";var e,n={815:function(t){t.exports=function(t,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var c=/\+/g;t=t.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var a=t.length;s>0&&a>s&&(a=s);for(var p=0;p<a;++p){var u,l,f,h,d=t[p].replace(c,"%20"),m=d.indexOf(r);(m>=0?(u=d.substr(0,m),l=d.substr(m+1)):(u=d,l=""),f=decodeURIComponent(u),h=decodeURIComponent(l),Object.prototype.hasOwnProperty.call(i,f))?e(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i};var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},577:function(t){var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,c,s){return(i=i||"&",c=c||"=",null===t&&(t=void 0),"object"==typeof t)?r(o(t),function(o){var s=encodeURIComponent(e(o))+c;return n(t[o])?r(t[o],function(t){return s+encodeURIComponent(e(t))}).join(i):s+encodeURIComponent(e(t[o]))}).join(i):s?encodeURIComponent(e(s))+c+encodeURIComponent(e(t)):""};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var o=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}},c=!0;try{n[t](i,i.exports,o),c=!1}finally{c&&delete r[t]}return i.exports}o.ab="//";var i={};(e=i).decode=e.parse=o(815),e.encode=e.stringify=o(577),t.exports=i}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.