mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 23:11:27 +00:00
1 line
No EOL
25 KiB
JavaScript
Vendored
1 line
No EOL
25 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"+lRy":function(t,e){},0:function(t,e,r){r("JO1w"),r("+lRy"),r("xWuY"),r("BLqG"),r("B38u"),t.exports=r("YfGV")},"8FsP":function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"===("undefined"==typeof window?"undefined":r(window))?window:"object"===("undefined"==typeof self?"undefined":r(self))?self:this,e=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var n=t.Blob,o=URL.createObjectURL,i=URL.revokeObjectURL,a=t.Symbol&&t.Symbol.toStringTag,s=!1,c=!1,u=!!t.ArrayBuffer,f=e&&e.prototype.append&&e.prototype.getBlob;try{s=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function h(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var r=new Uint8Array(t.byteLength);r.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=r.buffer}return e}return t}))}function p(t,r){r=r||{};var n=new e;return h(t).forEach((function(t){n.append(t)})),r.type?n.getBlob(r.type):n.getBlob()}function d(t,e){return new n(h(t),e||{})}t.Blob&&(p.prototype=Blob.prototype,d.prototype=Blob.prototype);var b="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(e){for(var r=0,n=e.length,o=t.Uint8Array||Array,i=0,a=Math.max(32,n+(n>>1)+7),s=new o(a>>3<<3);r<n;){var l=e.charCodeAt(r++);if(l>=55296&&l<=56319){if(r<n){var c=e.charCodeAt(r);56320==(64512&c)&&(++r,l=((1023&l)<<10)+(1023&c)+65536)}if(l>=55296&&l<=56319)continue}if(i+4>s.length){a+=8,a=(a*=1+r/e.length*2)>>3<<3;var u=new Uint8Array(a);u.set(s),s=u}if(0!=(4294967168&l)){if(0==(4294965248&l))s[i++]=l>>6&31|192;else if(0==(4294901760&l))s[i++]=l>>12&15|224,s[i++]=l>>6&63|128;else{if(0!=(4292870144&l))continue;s[i++]=l>>18&7|240,s[i++]=l>>12&63|128,s[i++]=l>>6&63|128}s[i++]=63&l|128}else s[i++]=l}return s.slice(0,i)},y="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,r=[],n=0;n<e;){var o,i,a,s,l=t[n],c=null,u=l>239?4:l>223?3:l>191?2:1;if(n+u<=e)switch(u){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[n+1]))&&(s=(31&l)<<6|63&o)>127&&(c=s);break;case 3:o=t[n+1],i=t[n+2],128==(192&o)&&128==(192&i)&&(s=(15&l)<<12|(63&o)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=t[n+1],i=t[n+2],a=t[n+3],128==(192&o)&&128==(192&i)&&128==(192&a)&&(s=(15&l)<<18|(63&o)<<12|(63&i)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,u=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=u}var f=r.length,h="";for(n=0;n<f;)h+=String.fromCharCode.apply(String,r.slice(n,n+=4096));return h};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(t){t instanceof Blob?(this.setRequestHeader("Content-Type",t.type),r.call(this,t)):r.call(this,t)});try{new File([],"")}catch(e){try{var n=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=n}catch(e){n=function(t,e,r){var n=new Blob(t,r),o=r&&void 0!==r.lastModified?new Date(r.lastModified):new Date;return n.name=e.replace(/\//g,":"),n.lastModifiedDate=o,n.lastModified=+o,n.toString=function(){return"[object File]"},a&&(n[a]="File"),n};t.File=n}}}s?(w(),t.Blob=c?t.Blob:d):f?(w(),t.Blob=p):function(){function e(t){for(var e=new Array(t.byteLength),r=new Uint8Array(t),n=e.length;n--;)e[n]=r[n];return e}function r(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=[],n=0;n<t.length;n+=3){var o=t[n],i=n+1<t.length,a=i?t[n+1]:0,s=n+2<t.length,l=s?t[n+2]:0,c=o>>2,u=(3&o)<<4|a>>4,f=(15&a)<<2|l>>6,h=63&l;s||(h=64,i||(f=64)),r.push(e[c],e[u],e[f],e[h])}return r.join("")}var n=Object.create||function(t){function e(){}return e.prototype=t,new e};if(u)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(r,n){n=null==n?{}:n;for(var o=0,i=(r=r||[]).length;o<i;o++){var a=r[o];a instanceof c?r[o]=a._buffer:"string"==typeof a?r[o]=b(a):u&&(ArrayBuffer.prototype.isPrototypeOf(a)||s(a))?r[o]=e(a):u&&((f=a)&&DataView.prototype.isPrototypeOf(f))?r[o]=e(a.buffer):r[o]=b(String(a))}var f;this._buffer=t.Uint8Array?function(t){for(var e=0,r=t.length;r--;)e+=t[r].length;var n=new Uint8Array(e),o=0;for(r=0,l=t.length;r<l;r++){var i=t[r];n.set(i,o),o+=i.byteLength||i.length}return n}(r):[].concat.apply([],r),this.size=this._buffer.length,this.type=n.type||"",/[^\u0020-\u007E]/.test(this.type)?this.type="":this.type=this.type.toLowerCase()}function f(t,e,r){r=r||{};var n=c.call(this,t,r)||this;return n.name=e.replace(/\//g,":"),n.lastModifiedDate=r.lastModified?new Date(r.lastModified):new Date,n.lastModified=+n.lastModifiedDate,n}if(c.prototype.arrayBuffer=function(){return Promise.resolve(this._buffer)},c.prototype.text=function(){return Promise.resolve(y(this._buffer))},c.prototype.slice=function(t,e,r){return new c([this._buffer.slice(t||0,e||this._buffer.length)],{type:r})},c.prototype.toString=function(){return"[object Blob]"},f.prototype=n(c.prototype),f.prototype.constructor=f,Object.setPrototypeOf)Object.setPrototypeOf(f,c);else try{f.__proto__=c}catch(t){}function h(){if(!(this instanceof h))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var r=this["on"+e.type];"function"==typeof r&&r(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function p(t,e,r){if(!(e instanceof c))throw new TypeError("Failed to execute '"+r+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout((function(){this.readyState=h.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))}))}f.prototype.toString=function(){return"[object File]"},h.EMPTY=0,h.LOADING=1,h.DONE=2,h.prototype.error=null,h.prototype.onabort=null,h.prototype.onerror=null,h.prototype.onload=null,h.prototype.onloadend=null,h.prototype.onloadstart=null,h.prototype.onprogress=null,h.prototype.readAsDataURL=function(t){p(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+r(t._buffer)},h.prototype.readAsText=function(t){p(this,t,"readAsText"),this.result=y(t._buffer)},h.prototype.readAsArrayBuffer=function(t){p(this,t,"readAsText"),this.result=(t._buffer.buffer||t._buffer).slice()},h.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof c?"data:"+t.type+";base64,"+r(t._buffer):o.call(URL,t)},URL.revokeObjectURL=function(t){i&&i.call(URL,t)};var d=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;d&&(XMLHttpRequest.prototype.send=function(t){t instanceof c?(this.setRequestHeader("Content-Type",t.type),d.call(this,y(t._buffer))):d.call(this,t)}),t.FileReader=h,t.File=f,t.Blob=c}(),a&&(File.prototype[a]="File",Blob.prototype[a]="Blob",FileReader.prototype[a]="FileReader");var m,g=t.Blob.prototype;function v(t){return new Promise((function(e,r){t.onload=t.onerror=function(n){t.onload=t.onerror=null,"load"===n.type?e(t.result||t):r(new Error("Failed to read the blob/file"))}}))}try{new ReadableStream({type:"bytes"}),m=function(){var t=0,e=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:524288,pull:function(r){var n=r.byobRequest.view;return e.slice(t,t+n.byteLength).arrayBuffer().then((function(o){var i=new Uint8Array(o),a=i.byteLength;t+=a,n.set(i),r.byobRequest.respond(a),t>=e.size&&r.close()}))}})}}catch(t){try{new ReadableStream({}),m=function(t){var e=0;t=this;return new ReadableStream({pull:function(r){return t.slice(e,e+524288).arrayBuffer().then((function(n){e+=n.byteLength;var o=new Uint8Array(n);r.enqueue(o),e==t.size&&r.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),m=function(){return new Response(this).body}}catch(t){m=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}g.arrayBuffer||(g.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),v(t)}),g.text||(g.text=function(){var t=new FileReader;return t.readAsText(this),v(t)}),g.stream||(g.stream=m)}(),function(t){"use strict";var e,r=t.Uint8Array,n=t.HTMLCanvasElement,o=n&&n.prototype,i=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",s=function(t){for(var n,o,i=t.length,a=new r(i/4*3|0),s=0,l=0,c=[0,0],u=0,f=0;i--;)o=t.charCodeAt(s++),255!==(n=e[o-43])&&void 0!==n&&(c[1]=c[0],c[0]=o,f=f<<6|n,4===++u&&(a[l++]=f>>>16,61!==c[1]&&(a[l++]=f>>>8),61!==c[0]&&(a[l++]=f),u=0));return a};r&&(e=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])),!n||o.toBlob&&o.toBlobHD||(o.toBlob||(o.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var n,o=Array.prototype.slice.call(arguments,1),l=this[a].apply(this,o),c=l.indexOf(","),u=l.substring(c+1),f=i.test(l.substring(0,c));Blob.fake?((n=new Blob).encoding=f?"base64":"URI",n.data=u,n.size=u.length):r&&(n=f?new Blob([s(u)],{type:e}):new Blob([decodeURIComponent(u)],{type:e})),t(n)}}),!o.toBlobHD&&o.toDataURLHD?o.toBlobHD=function(){a="toDataURLHD";var t=this.toBlob();return a="toDataURL",t}:o.toBlobHD=o.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,c=[],u=!1,f=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var t=s(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++f<e;)l&&l[f].run();f=-1,e=c.length}l=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||u||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},AjvE:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return i}));const n=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},o=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.round(12.92*e*255+.5):Math.round(255*(1.055*Math.pow(e,1/2.4)-.055)+.5)},i=(t,e)=>(t<0?-1:1)*Math.pow(Math.abs(t),e)},B38u:function(t,e){},BLqG:function(t,e){},JO1w:function(t,e,r){r("8FsP"),window._=r("LvDl"),window.Popper=r("8L3F").default,window.pixelfed=window.pixelfed||{},window.$=window.jQuery=r("EVdn"),r("SYky"),window.axios=r("vDqi"),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",r("KGuw"),window.blurhash=r("tz93");var n=document.head.querySelector('meta[name="csrf-token"]');n?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=n.content:console.error("CSRF token not found."),window.App=window.App||{},window.App.redirect=function(){document.querySelectorAll("a").forEach((function(t,e){var r=t.getAttribute("href");if(r&&r.length>5&&r.startsWith("https://")){var n=new URL(r);n.host!==window.location.host&&"/i/redirect"!==n.pathname&&t.setAttribute("href","/i/redirect?url="+encodeURIComponent(r))}}))},window.App.boot=function(){new Vue({el:"#content"})},window.App.util={compose:{post:function(){var t=window.location.pathname;["/","/timeline/public"].includes(t)?$("#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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return t<1?0:new Intl.NumberFormat(e,{notation:r,compactDisplay:"short"}).format(t)},timeAgo:function(t){var e=Date.parse(t),r=Math.floor((new Date-e)/1e3),n=Math.floor(r/63072e3);return n>=1?n+"y":(n=Math.floor(r/604800))>=1?n+"w":(n=Math.floor(r/86400))>=1?n+"d":(n=Math.floor(r/3600))>=1?n+"h":(n=Math.floor(r/60))>=1?n+"m":Math.floor(r)+"s"},timeAhead:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Date.parse(t),n=r-Date.parse(new Date),o=Math.floor(n/1e3),i=Math.floor(o/63072e3);return i>=1?i+(e?"y":" years"):(i=Math.floor(o/604800))>=1?i+(e?"w":" weeks"):(i=Math.floor(o/86400))>=1?i+(e?"d":" days"):(i=Math.floor(o/3600))>=1?i+(e?"h":" hours"):(i=Math.floor(o/60))>=1?i+(e?"m":" minutes"):Math.floor(o)+(e?"s":" seconds")},rewriteLinks:function(t){var e=t.innerText;return t.href.startsWith(window.location.origin)?t.href:e=1==e.startsWith("#")?"/discover/tags/"+e.substr(1)+"?src=rph":1==e.startsWith("@")?"/"+t.innerText+"?src=rpp":"/i/redirect?url="+encodeURIComponent(e)}},filters:[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","filter-xpro-ii"]],filterCss:{"filter-1977":"sepia(.5) hue-rotate(-30deg) saturate(1.4)","filter-aden":"sepia(.2) brightness(1.15) saturate(1.4)","filter-amaro":"sepia(.35) contrast(1.1) brightness(1.2) saturate(1.3)","filter-ashby":"sepia(.5) contrast(1.2) saturate(1.8)","filter-brannan":"sepia(.4) contrast(1.25) brightness(1.1) saturate(.9) hue-rotate(-2deg)","filter-brooklyn":"sepia(.25) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-charmes":"sepia(.25) contrast(1.25) brightness(1.25) saturate(1.35) hue-rotate(-5deg)","filter-clarendon":"sepia(.15) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-crema":"sepia(.5) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-2deg)","filter-dogpatch":"sepia(.35) saturate(1.1) contrast(1.5)","filter-earlybird":"sepia(.25) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-5deg)","filter-gingham":"contrast(1.1) brightness(1.1)","filter-ginza":"sepia(.25) contrast(1.15) brightness(1.2) saturate(1.35) hue-rotate(-5deg)","filter-hefe":"sepia(.4) contrast(1.5) brightness(1.2) saturate(1.4) hue-rotate(-10deg)","filter-helena":"sepia(.5) contrast(1.05) brightness(1.05) saturate(1.35)","filter-hudson":"sepia(.25) contrast(1.2) brightness(1.2) saturate(1.05) hue-rotate(-15deg)","filter-inkwell":"brightness(1.25) contrast(.85) grayscale(1)","filter-kelvin":"sepia(.15) contrast(1.5) brightness(1.1) hue-rotate(-10deg)","filter-juno":"sepia(.35) contrast(1.15) brightness(1.15) saturate(1.8)","filter-lark":"sepia(.25) contrast(1.2) brightness(1.3) saturate(1.25)","filter-lofi":"saturate(1.1) contrast(1.5)","filter-ludwig":"sepia(.25) contrast(1.05) brightness(1.05) saturate(2)","filter-maven":"sepia(.35) contrast(1.05) brightness(1.05) saturate(1.75)","filter-mayfair":"contrast(1.1) brightness(1.15) saturate(1.1)","filter-moon":"brightness(1.4) contrast(.95) saturate(0) sepia(.35)","filter-nashville":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-perpetua":"contrast(1.1) brightness(1.25) saturate(1.1)","filter-poprocket":"sepia(.15) brightness(1.2)","filter-reyes":"sepia(.75) contrast(.75) brightness(1.25) saturate(1.4)","filter-rise":"sepia(.25) contrast(1.25) brightness(1.2) saturate(.9)","filter-sierra":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-skyline":"sepia(.15) contrast(1.25) brightness(1.25) saturate(1.2)","filter-slumber":"sepia(.35) contrast(1.25) saturate(1.25)","filter-stinson":"sepia(.35) contrast(1.25) brightness(1.1) saturate(1.25)","filter-sutro":"sepia(.4) contrast(1.2) brightness(.9) saturate(1.4) hue-rotate(-10deg)","filter-toaster":"sepia(.25) contrast(1.5) brightness(.95) hue-rotate(-15deg)","filter-valencia":"sepia(.25) contrast(1.1) brightness(1.1)","filter-vesper":"sepia(.35) contrast(1.15) brightness(1.2) saturate(1.3)","filter-walden":"sepia(.35) contrast(.8) brightness(1.25) saturate(1.4)","filter-willow":"brightness(1.2) contrast(.85) saturate(.05) sepia(.2)","filter-xpro-ii":"sepia(.45) contrast(1.25) brightness(1.75) saturate(1.3) hue-rotate(-5deg)"},emoji:["😂","💯","❤️","🙌","👏","👌","😍","😯","😢","😅","😁","🙂","😎","😀","🤣","😃","😄","😆","😉","😊","😋","😘","😗","😙","😚","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏","💍","💄","💋","👄","👅","👂","👃","👣","👁","👀","🧠","🗣","👤","👥"],embed:{post:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"full",o=t+"/embed?";return o+=e?"caption=true&":"caption=false&",o+=r?"likes=true&":"likes=false&",'<iframe src="'+(o+="compact"==n?"layout=compact":"layout=full")+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin+'/embed.js"><\/script>'},profile:function(t){return'<iframe src="'+(t+"/embed")+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin+'/embed.js"><\/script>'}},clipboard:function(t){return navigator.clipboard.writeText(t)},navatar:function(){$("#navbarDropdown .far").addClass("d-none"),$("#navbarDropdown img").attr("src",window._sharedData.curUser.avatar).removeClass("d-none").addClass("rounded-circle border shadow").attr("width",38).attr("height",38)}}},JdCH:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}}},UchI:function(t,e,r){"use strict";r.d(e,"b",(function(){return s}));var n=r("fjH8"),o=r("AjvE"),i=r("JdCH");const a=t=>{if(!t||t.length<6)throw new i.a("The blurhash string must be at least 6 characters");const e=Object(n.a)(t[0]),r=Math.floor(e/9)+1,o=e%9+1;if(t.length!==4+2*o*r)throw new i.a(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*o*r}`)},s=t=>{try{a(t)}catch(t){return{result:!1,errorReason:t.message}}return{result:!0}},l=t=>{const e=t>>16,r=t>>8&255,n=255&t;return[Object(o.b)(e),Object(o.b)(r),Object(o.b)(n)]},c=(t,e)=>{const r=Math.floor(t/361),n=Math.floor(t/19)%19,i=t%19;return[Object(o.c)((r-9)/9,2)*e,Object(o.c)((n-9)/9,2)*e,Object(o.c)((i-9)/9,2)*e]};e.a=(t,e,r,i)=>{a(t),i|=1;const s=Object(n.a)(t[0]),u=Math.floor(s/9)+1,f=s%9+1,h=(Object(n.a)(t[1])+1)/166,p=new Array(f*u);for(let e=0;e<p.length;e++)if(0===e){const r=Object(n.a)(t.substring(2,6));p[e]=l(r)}else{const r=Object(n.a)(t.substring(4+2*e,6+2*e));p[e]=c(r,h*i)}const d=4*e,b=new Uint8ClampedArray(d*r);for(let t=0;t<r;t++)for(let n=0;n<e;n++){let i=0,a=0,s=0;for(let o=0;o<u;o++)for(let l=0;l<f;l++){const c=Math.cos(Math.PI*n*l/e)*Math.cos(Math.PI*t*o/r);let u=p[l+o*f];i+=u[0]*c,a+=u[1]*c,s+=u[2]*c}let l=Object(o.a)(i),c=Object(o.a)(a),h=Object(o.a)(s);b[4*n+0+t*d]=l,b[4*n+1+t*d]=c,b[4*n+2+t*d]=h,b[4*n+3+t*d]=255}return b}},YfGV:function(t,e){},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},fjH8:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return i}));const n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],o=t=>{let e=0;for(let r=0;r<t.length;r++){const o=t[r];e=83*e+n.indexOf(o)}return e},i=(t,e)=>{var r="";for(let o=1;o<=e;o++){let i=Math.floor(t)/Math.pow(83,e-o)%83;r+=n[Math.floor(i)]}return r}},tz93:function(t,e,r){"use strict";r.r(e),r.d(e,"decode",(function(){return n.a})),r.d(e,"isBlurhashValid",(function(){return n.b})),r.d(e,"encode",(function(){return l})),r.d(e,"ValidationError",(function(){return a.a}));var n=r("UchI"),o=r("fjH8"),i=r("AjvE"),a=r("JdCH");const s=(t,e,r,n)=>{let o=0,a=0,s=0;const l=4*e;for(let c=0;c<e;c++)for(let e=0;e<r;e++){const r=n(c,e);o+=r*Object(i.b)(t[4*c+0+e*l]),a+=r*Object(i.b)(t[4*c+1+e*l]),s+=r*Object(i.b)(t[4*c+2+e*l])}let c=1/(e*r);return[o*c,a*c,s*c]};var l=(t,e,r,n,l)=>{if(n<1||n>9||l<1||l>9)throw new a.a("BlurHash must have between 1 and 9 components");if(e*r*4!==t.length)throw new a.a("Width and height must match the pixels array");let c=[];for(let o=0;o<l;o++)for(let i=0;i<n;i++){const n=0==i&&0==o?1:2,a=s(t,e,r,(t,a)=>n*Math.cos(Math.PI*i*t/e)*Math.cos(Math.PI*o*a/r));c.push(a)}const u=c[0],f=c.slice(1);let h,p="",d=n-1+9*(l-1);if(p+=Object(o.b)(d,1),f.length>0){let t=Math.max(...f.map(t=>Math.max(...t))),e=Math.floor(Math.max(0,Math.min(82,Math.floor(166*t-.5))));h=(e+1)/166,p+=Object(o.b)(e,1)}else h=1,p+=Object(o.b)(0,1);var b;return p+=Object(o.b)((b=u,(Object(i.a)(b[0])<<16)+(Object(i.a)(b[1])<<8)+Object(i.a)(b[2])),4),f.forEach(t=>{p+=Object(o.b)(((t,e)=>19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*Object(i.c)(t[0]/e,.5)+9.5))))*19+19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*Object(i.c)(t[1]/e,.5)+9.5))))+Math.floor(Math.max(0,Math.min(18,Math.floor(9*Object(i.c)(t[2]/e,.5)+9.5)))))(t,h),2)}),p}},xWuY:function(t,e){},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r}},[[0,0,1]]]); |