2024-07-10 06:11:42 +00:00
|
|
|
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([["/js/app"],{"./resources/assets/js/app.js":
|
|
|
|
/*!************************************!*\
|
|
|
|
!*** ./resources/assets/js/app.js ***!
|
|
|
|
\************************************/(e,t,r)=>{r(/*! jquery */"./node_modules/jquery/dist/jquery.js");var s=r(/*! jquery */"./node_modules/jquery/dist/jquery.js");r(/*! ./polyfill */"./resources/assets/js/polyfill.js"),window._=r(/*! lodash */"./node_modules/lodash/lodash.js"),window.Popper=r(/*! popper.js */"./node_modules/popper.js/dist/esm/popper.js").default,window.pixelfed=window.pixelfed||{},window.$=r(/*! jquery */"./node_modules/jquery/dist/jquery.js"),r(/*! bootstrap */"./node_modules/bootstrap/dist/js/bootstrap.js"),window.axios=r(/*! axios */"./node_modules/axios/dist/browser/axios.cjs"),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",r(/*! readmore-js */"./node_modules/readmore-js/readmore.js"),window.blurhash=r(/*! blurhash */"./node_modules/blurhash/dist/esm/index.js");var o=document.head.querySelector('meta[name="csrf-token"]');o?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=o.content:console.error("CSRF token not found."),window.App=window.App||{},window.App.redirect=function(){document.querySelectorAll("a").forEach((function(e,t){var r=e.getAttribute("href");if(r&&r.length>5&&r.startsWith("https://")){var s=new URL(r);s.host!==window.location.host&&"/i/redirect"!==s.pathname&&e.setAttribute("href","/i/redirect?url="+encodeURIComponent(r))}}))},window.App.boot=function(){new Vue({el:"#content"})},window.addEventListener("load",(function(){"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js")})),window.App.util={compose:{post:function(){var e=window.location.pathname;["/","/timeline/public"].includes(e)?s("#composeModal").modal("show"):window.location.href="/?a=co"},circle:function(){console.log("Unsupported method.")},collection:function(){console.log("Unsupported method.")},loop:function(){console.log("Unsupported method.")},story:function(){console.log("Unsupported method.")}},time:function(){return new Date},version:1,format:{count:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return e<1?0:new Intl.NumberFormat(t,{notation:r,compactDisplay:"short"}).format(e)},timeAgo:function(e){var t=Date.parse(e),r=Math.floor((new Date-t)/1e3),s=Math.floor(r/63072e3);return s>=1?s+"y":(s=Math.floor(r/604800))>=1?s+"w":(s=Math.floor(r/86400))>=1?s+"d":(s=Math.floor(r/3600))>=1?s+"h":(s=Math.floor(r/60))>=1?s+"m":Math.floor(r)+"s"},timeAhead:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Date.parse(e)-Date.parse(new Date),s=Math.floor(r/1e3),o=Math.floor(s/63072e3);return o>=1?o+(t?"y":" years"):(o=Math.floor(s/604800))>=1?o+(t?"w":" weeks"):(o=Math.floor(s/86400))>=1?o+(t?"d":" days"):(o=Math.floor(s/3600))>=1?o+(t?"h":" hours"):(o=Math.floor(s/60))>=1?o+(t?"m":" minutes"):Math.floor(s)+(t?"s":" seconds")},rewriteLinks:function(e){var t=e.innerText;return e.href.startsWith(window.location.origin)?e.href:t=1==t.startsWith("#")?"/discover/tags/"+t.substr(1)+"?src=rph":1==t.startsWith("@")?"/"+e.innerText+"?src=rpp":"/i/redirect?url="+encodeURIComponent(t)}},filters:[["1984","filter-1977"],["Azen","filter-aden"],["Astairo","filter-amaro"],["Grassbee","filter-ashby"],["Bookrun","filter-brannan"],["Borough","filter-brooklyn"],["Farms","filter-charmes"],["Hairsadone","filter-clarendon"],["Cleana ","filter-crema"],["Catpatch","filter-dogpatch"],["Earlyworm","filter-earlybird"],["Plaid","filter-gingham"],["Kyo","filter-ginza"],["Yefe","filter-hefe"],["Goddess","filter-helena"],["Yards","filter-hudson"],["Quill","filter-inkwell"],["Rankine","filter-kelvin"],["Juno","filter-juno"],["Mark","filter-lark"],["Chill","filter-lofi"],["Van","filter-ludwig"],["Apache","filter-maven"],["May","filter-mayfair"],["Ceres","filter-moon"],["Knoxville","filter-nashville"],["Felicity","filter-perpetua"],["Sandblast","filter-poprocket"],["Daisy","filter-reyes"],["Elevate","filter-rise"],["Nevada","filter-sierra"],["Futura","filter-skyline"],["Sleepy","filter-slumber"],["Steward","filter-stinson"],["Sav
|
|
|
|
/*!*****************************************!*\
|
|
|
|
!*** ./resources/assets/js/polyfill.js ***!
|
|
|
|
\*****************************************/function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){var t="object"===("undefined"==typeof window?"undefined":e(window))?window:"object"===("undefined"==typeof self?"undefined":e(self))?self:this,r=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(e,t){return(t=document.createElement("a")).href=e,t};var s=t.Blob,o=URL.createObjectURL,n=URL.revokeObjectURL,a=t.Symbol&&t.Symbol.toStringTag,i=!1,c=!1,f=!!t.ArrayBuffer,u=r&&r.prototype.append&&r.prototype.getBlob;try{i=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(e){}function p(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var r=new Uint8Array(e.byteLength);r.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=r.buffer}return t}return e}))}function d(e,t){t=t||{};var s=new r;return p(e).forEach((function(e){s.append(e)})),t.type?s.getBlob(t.type):s.getBlob()}function h(e,t){return new s(p(e),t||{})}t.Blob&&(d.prototype=Blob.prototype,h.prototype=Blob.prototype);var b="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(e){for(var r=0,s=e.length,o=t.Uint8Array||Array,n=0,a=Math.max(32,s+(s>>1)+7),i=new o(a>>3<<3);r<s;){var l=e.charCodeAt(r++);if(l>=55296&&l<=56319){if(r<s){var c=e.charCodeAt(r);56320==(64512&c)&&(++r,l=((1023&l)<<10)+(1023&c)+65536)}if(l>=55296&&l<=56319)continue}if(n+4>i.length){a+=8,a=(a*=1+r/e.length*2)>>3<<3;var f=new Uint8Array(a);f.set(i),i=f}if(4294967168&l){if(4294965248&l)if(4294901760&l){if(4292870144&l)continue;i[n++]=l>>18&7|240,i[n++]=l>>12&63|128,i[n++]=l>>6&63|128}else i[n++]=l>>12&15|224,i[n++]=l>>6&63|128;else i[n++]=l>>6&31|192;i[n++]=63&l|128}else i[n++]=l}return i.slice(0,n)},y="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(e){for(var t=e.length,r=[],s=0;s<t;){var o,n,a,i,l=e[s],c=null,f=l>239?4:l>223?3:l>191?2:1;if(s+f<=t)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[s+1]))&&(i=(31&l)<<6|63&o)>127&&(c=i);break;case 3:o=e[s+1],n=e[s+2],128==(192&o)&&128==(192&n)&&(i=(15&l)<<12|(63&o)<<6|63&n)>2047&&(i<55296||i>57343)&&(c=i);break;case 4:o=e[s+1],n=e[s+2],a=e[s+3],128==(192&o)&&128==(192&n)&&128==(192&a)&&(i=(15&l)<<18|(63&o)<<12|(63&n)<<6|63&a)>65535&&i<1114112&&(c=i)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),s+=f}var u=r.length,p="";for(s=0;s<u;)p+=String.fromCharCode.apply(String,r.slice(s,s+=4096));return p};function w(){var e=!!t.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,r=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;e&&r&&(XMLHttpRequest.prototype.send=function(e){e instanceof Blob?(this.setRequestHeader("Content-Type",e.type),r.call(this,e)):r.call(this,e)});try{new File([],"")}catch(e){try{var s=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(///g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();t.File=s}catch(e){s=function(e,t,r){var s=new Blob(e,r),o=r&&void 0!==r.lastModified?new Date(r.lastModified):new Date;return s.name=t.replace(/\//g,":"),s.lastModifiedDate=o,s.lastModified=+o,s.toString=function(){return"[object File]"},a&&(s[a]="File"),s};t.File=s}}}i?(w(),t.Blob=c?t.Blob:h):u?(w(),t.Blob=d):function(){function e(e){for(var t=new Array(e.byteLength),r=new Uint8Array(e),s=t.length;s--;)t[s]=r[s];return t}function r(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=[],s=0;s<e.length;s+=3){var o=e[s],n=s+1<e.length,a=n?e[s+1]:0,i=s+2<e.length,l=i?e[s+2]:0,c=o>>2,f=(3&o)<
|
|
|
|
/*! @source http://purl.eligrey.com/github/canvas-toBlob.js/blob/master/canvas-toBlob.js */
|
|
|
|
function(e){"use strict";var t,r=e.Uint8Array,s=e.HTMLCanvasElement,o=s&&s.prototype,n=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",i=function(e){for(var s,o,n=e.length,a=new r(n/4*3|0),i=0,l=0,c=[0,0],f=0,u=0;n--;)o=e.charCodeAt(i++),255!==(s=t[o-43])&&undefined!==s&&(c[1]=c[0],c[0]=o,u=u<<6|s,4===++f&&(a[l++]=u>>>16,61!==c[1]&&(a[l++]=u>>>8),61!==c[0]&&(a[l++]=u),f=0));return a};r&&(t=new r([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!s||o.toBlob&&o.toBlobHD||(o.toBlob||(o.toBlob=function(e,t){if(t||(t="image/png"),this.mozGetAsFile)e(this.mozGetAsFile("canvas",t));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(t))e(this.msToBlob());else{var s,o=Array.prototype.slice.call(arguments,1),l=this[a].apply(this,o),c=l.indexOf(","),f=l.substring(c+1),u=n.test(l.substring(0,c));Blob.fake?((s=new Blob).encoding=u?"base64":"URI",s.data=f,s.size=f.length):r&&(s=u?new Blob([i(f)],{type:t}):new Blob([decodeURIComponent(f)],{type:t})),e(s)}}),!o.toBlobHD&&o.toDataURLHD?o.toBlobHD=function(){a="toDataURLHD";var e=this.toBlob();return a="toDataURL",e}:o.toBlobHD=o.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},"./resources/assets/sass/spa.scss":
|
|
|
|
/*!****************************************!*\
|
|
|
|
!*** ./resources/assets/sass/spa.scss ***!
|
|
|
|
\****************************************/(e,t,r)=>{"use strict";r.r(t)},"./resources/assets/sass/landing.scss":
|
|
|
|
/*!********************************************!*\
|
|
|
|
!*** ./resources/assets/sass/landing.scss ***!
|
|
|
|
\********************************************/(e,t,r)=>{"use strict";r.r(t)},"./resources/assets/sass/app.scss":
|
|
|
|
/*!****************************************!*\
|
|
|
|
!*** ./resources/assets/sass/app.scss ***!
|
|
|
|
\****************************************/(e,t,r)=>{"use strict";r.r(t)},"./resources/assets/sass/appdark.scss":
|
|
|
|
/*!********************************************!*\
|
|
|
|
!*** ./resources/assets/sass/appdark.scss ***!
|
|
|
|
\********************************************/(e,t,r)=>{"use strict";r.r(t)},"./resources/assets/sass/admin.scss":
|
|
|
|
/*!******************************************!*\
|
|
|
|
!*** ./resources/assets/sass/admin.scss ***!
|
|
|
|
\******************************************/(e,t,r)=>{"use strict";r.r(t)},"./resources/assets/sass/portfolio.scss":
|
|
|
|
/*!**********************************************!*\
|
|
|
|
!*** ./resources/assets/sass/portfolio.scss ***!
|
|
|
|
\**********************************************/(e,t,r)=>{"use strict";r.r(t)}},e=>{var t=t=>e(e.s=t);e.O(0,["css/appdark","css/app","css/portfolio","css/admin","css/landing","css/spa","/js/vendor"],(()=>(t("./resources/assets/js/app.js"),t("./resources/assets/sass/app.scss"),t("./resources/assets/sass/appdark.scss"),t("./resources/assets/sass/admin.scss"),t("./resources/assets/sass/portfolio.scss"),t("./resources/assets/sass/spa.scss"),t("./resources/assets/sass/landing.scss"))));e.O()}]);
|