1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[187],{1493:e=>{e.exports={"embed-twitter-container":"Xj"}},9591:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){var e=function(){},t={},r={},n={};function o(e,t){if(e){var o=n[e];if(r[e]=t,o)for(;o.length;)o[0](e,t),o.splice(0,1)}}function i(t,r){t.call&&(t={success:t}),r.length?(t.error||e)(r):(t.success||e)(t)}function u(r,n,u){var c,s;if(n&&n.trim&&(c=n),s=(c?u:n)||{},c)if(c in t)throw"LoadJS";else t[c]=!0;function f(t,n){!function(t,r,n){var o,i,u=(t=t.push?t:[t]).length,c=u,s=[];for(i=0,o=function(e,t,n){if("e"==t&&s.push(e),"b"==t)if(!n)return;else s.push(e);--u||r(s)};i<c;i++)!function t(r,n,o,i){var u,c,s,f=document,l=o.async,a=(o.numRetries||0)+1,d=o.before||e,p=r.replace(/[\?|#].*$/,""),h=r.replace(/^(css|img|module|nomodule)!/,"");if(i=i||0,/(^css!|\.css$)/.test(p))(s=f.createElement("link")).rel="stylesheet",s.href=h,(u="hideFocus"in s)&&s.relList&&(u=0,s.rel="preload",s.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(p))(s=f.createElement("img")).src=h;else if((s=f.createElement("script")).src=h,s.async=void 0===l||l,c="noModule"in s,/^module!/.test(p)){if(!c)return n(r,"l");s.type="module"}else if(/^nomodule!/.test(p)&&c)return n(r,"l");s.onload=s.onerror=s.onbeforeload=function(e){var c=e.type[0];if(u)try{s.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((i+=1)<a)return t(r,n,o,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(r,c,e.defaultPrevented)},!1!==d(r,s)&&f.head.appendChild(s)}(t[i],o,n)}(r,function(e){i(s,e),t&&i({success:t,error:n},e),o(c,e)},s)}if(s.returnPromise)return new Promise(f);f()}return u.ready=function(e,t){return!function(e,t){e=e.push?e:[e];var o,i,u,c=[],s=e.length,f=s;for(o=function(e,r){r.length&&c.push(e),--f||t(c)};s--;){if(u=r[i=e[s]]){o(i,u);continue}(n[i]=n[i]||[]).push(o)}}(e,function(e){i(t,e)}),u},u.done=function(e){o(e,[])},u.reset=function(){t={},r={},n={}},u.isDefined=function(e){return e in t},u})?r.apply(t,[]):r)||(e.exports=n)},40187:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmbedTwitter:()=>E,TWITTER_DOMAIN_REGEX:()=>n.$});var n=r(33224),o=r(80263),i=r(53239),u=r(9591),c=r.n(u),s="twttr",f=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e){var t=(0,i.useRef)();return!function(e,t){if(l(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!l(e[r[o]],t[r[o]]))return!1;return!0}(e,t.current)&&(t.current=e),t.current}function d(e){return"object"==typeof e?Object.assign({},e):e}var p="twdiv";function h(e,t,r,n){var o=(0,i.useState)(null),u=o[0],l=o[1],h=(0,i.useRef)(null);if(!f)return{ref:h,error:u};var m=[e,a(t),a(r)];return(0,i.useEffect)(function(){l(null);var o=!1;if(h.current){if(i=h.current,i&&i.querySelectorAll("*").forEach(function(e){e.hasAttribute(p)&&e.remove()}),!h||!h.current)return;var i,u=document.createElement("div");u.setAttribute(p,"yes"),h.current.appendChild(u),new Promise(function(e,t){var r=function(){return t(Error("Could not load remote twitter widgets js"))};c().isDefined(s)||c()("https://platform.twitter.com/widgets.js",s),c().ready(s,{success:function(){var t=window[s];t&&t.widgets||r(),e(t.widgets)},error:r})}).then(function(n){return n[e](d(t),u,d(r))}).then(function(e){if(!e&&!o)throw Error("Twitter could not create widget. If it is a Timeline or Tweet, ensure the screenName/tweetId exists.");if(h&&h.current){if(o){u&&u.remove();return}n&&n()}}).catch(function(e){console.error(e),l(e)})}return function(){o=!0}},m),{ref:h,error:u}}var m=function(e){var t=e.dataSource,r=e.options,n=e.onLoad,o=e.renderError,u=h("createTimeline",t,r,n),c=u.ref,s=u.error;return i.createElement("div",{ref:c},s&&o&&o(s))},w=function(e){var t=e.tweetId,r=e.options,n=e.onLoad,o=e.renderError,u=h("createTweet",t,r,n),c=u.ref,s=u.error;return i.createElement("div",{ref:c},s&&o&&o(s))},v=r(1493),y=r.n(v);function E(e){var t=e.href,r=function(e){if(!n.$.test(e))return null;var t=e.match(/\w+\/status(?:es)?\/(\d+)/);return t&&t[1]?t[1]:null}(t),u=function(e){if(!n.$.test(e))return null;var t=e.match(/\w+\/(\w+)/);return t&&t[1]?t[1]:null}(t);return((0,i.useEffect)(function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)},[]),r||u)?(0,o.jsx)("div",{className:y()["embed-twitter-container"],"data-testid":"embed-twitter ".concat(r?"tweet":"timeline"),children:r?(0,o.jsx)(w,{tweetId:r,options:{conversation:"none"}}):(0,o.jsx)(m,{dataSource:{sourceType:"profile",screenName:u}})}):null}}}]);
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.