PageSourceSearch

https://wykopx.pl/assets/instagram-DkL_3T0Z.js

js wykopx.pl collected 2026-09-24 12:24:03 UTC 6,893 bytes, 1 lines download raw bytes

1import{d as e,p as t,u as n}from"./main-CMQ_AqCq.js";var r=e(((e,t)=>{t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}})),i=e(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),a=e(((e,t)=>{var n=`%[a-f0-9]{2}`,r=RegExp(`(`+n+`)|([^%]+?)`,`gi`),i=RegExp(`(`+n+`)+`,`gi`);function a(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function o(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(r)||[],n=1;n<t.length;n++)e=a(t,n).join(``),t=e.match(r)||[];return e}}function s(e){for(var t={"%FE%FF":`��`,"%FF%FE":`��`},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t[`%C2`]=`�`;for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,`g`),t[c])}return e}t.exports=function(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g,` `),decodeURIComponent(e)}catch{return s(e)}}})),o=e((e=>{var t=r(),n=i();a();function o(e){switch(e.arrayFormat){case`index`:return function(t,n,r){return n===null?[s(t,e),`[`,r,`]`].join(``):[s(t,e),`[`,s(r,e),`]=`,s(n,e)].join(``)};case`bracket`:return function(t,n){return n===null?s(t,e):[s(t,e),`[]=`,s(n,e)].join(``)};default:return function(t,n){return n===null?s(t,e):[s(t,e),`=`,s(n,e)].join(``)}}}function s(e,n){return n.encode?n.strict?t(e):encodeURIComponent(e):e}e.stringify=function(e,t){t=n({encode:!0,strict:!0,arrayFormat:`none`},t),t.sort===!1&&(t.sort=function(){});var r=o(t);return e?Object.keys(e).sort(t.sort).map(function(n){var i=e[n];if(i===void 0)return``;if(i===null)return s(n,t);if(Array.isArray(i)){var a=[];return i.slice().forEach(function(e){e!==void 0&&a.push(r(n,e,a.length))}),a.join(`&`)}return s(n,t)+`=`+s(i,t)}).filter(function(e){return e.length>0}).join(`&`):``}})),s=t(n()),c=t(o()),l=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n},f=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.request=null,n.cancel=function(){n.request&&n.request.cancel()},n.handleFetchSuccess=function(e){n.props.onSuccess&&n.props.onSuccess(e),n.setState({html:e.html},function(){window.instgrm.Embeds.process(),n.props.onAfterRender&&n.props.onAfterRender()})},n.handleFetchFailure=function(){var e=[...arguments];clearTimeout(n.timer),n.props.onFailure&&n.props.onFailure(e)},n.createRequestPromise=function(e){var t={};return t.promise=new Promise(function(n,r){var i=fetch(e).then(function(e){return e.json()}).then(function(e){return n(e)}).catch(function(e){return r(e)});return t.cancel=function(){return r(Error(`Cancelled`))},i}),t},n.state={html:null},n}return t.prototype.componentDidMount=function(){var e=this;window.instgrm?this.fetchEmbed(this.getQueryParams(this.props)):(this.props.injectScript&&!document.getElementById(`react-instagram-embed-script`)&&this.injectScript(),this.checkAPI().then(function(){e.fetchEmbed(e.getQueryParams(e.props))}))},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.url,r=t.hideCaption,i=t.maxWidth,a=t.containerTagName;
1(e.url!==n||e.hideCaption!==r||e.maxWidth!==i||e.containerTagName!==a)&&(this.request.cancel(),this.fetchEmbed(this.getQueryParams(this.props)))},t.prototype.componentWillUnmount=function(){this.cancel()},t.prototype.render=function(){var e=this.props.containerTagName;return s.createElement(e,u({},this.omitComponentProps(),{dangerouslySetInnerHTML:{__html:this.state.html||``}}))},t.prototype.fetchEmbed=function(e){this.request=this.createRequestPromise(`https://api.instagram.com/oembed/?`+e),this.props.onLoading&&this.props.onLoading(),this.request.promise.then(this.handleFetchSuccess).catch(this.handleFetchFailure)},t.prototype.omitComponentProps=function(){var e=this.props;return e.url,e.hideCaption,e.maxWidth,e.containerTagName,e.onLoading,e.onSuccess,e.onAfterRender,e.onFailure,e.protocol,e.injectScript,d(e,[`url`,`hideCaption`,`maxWidth`,`containerTagName`,`onLoading`,`onSuccess`,`onAfterRender`,`onFailure`,`protocol`,`injectScript`])},t.prototype.injectScript=function(){var e=window.location.protocol.indexOf(`file`)===0?this.props.protocol:``,t=document.createElement(`script`);t.async=t.defer=!0,t.src=e+`//platform.instagram.com/en_US/embeds.js`,t.id=`react-instagram-embed-script`;var n=document.body;n&&n.appendChild(t)},t.prototype.checkAPI=function(){var e=this;return new Promise(function(t){(function e(n){n.timer=window.setTimeout(function(){window.instgrm?(clearTimeout(n.timer),t()):e(n)},20)})(e)})},t.prototype.getQueryParams=function(e){var t=e.url,n=e.hideCaption,r=e.maxWidth;return c.stringify({url:t,hidecaption:n,maxwidth:typeof r==`number`&&r>=320?r:void 0,omitscript:!0})},t.defaultProps={hideCaption:!1,containerTagName:`div`,protocol:`https:`,injectScript:!0},t}(s.PureComponent),p=function(e){var t=e.url,n=e.renderWrap,r=f;return n(s.createElement(r,{url:t,maxWidth:320,hideCaption:!1,containerTagName:`div`,protocol:``,injectScript:!0,onLoading:function(){},onSuccess:function(){},onAfterRender:function(){},onFailure:function(){}}))};export{p as default};

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.