Dot_Files/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/currently-playing.js

6 lines
88 KiB
JavaScript
Raw Normal View History

var Ka=Object.create;var tt=Object.defineProperty;var ja=Object.getOwnPropertyDescriptor;var Da=Object.getOwnPropertyNames;var ka=Object.getPrototypeOf,Ga=Object.prototype.hasOwnProperty;var Nr=e=>tt(e,"__esModule",{value:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ba=(e,t)=>{for(var r in t)tt(e,r,{get:t[r],enumerable:!0})},Wr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Da(t))!Ga.call(e,u)&&(r||u!=="default")&&tt(e,u,{get:()=>t[u],enumerable:!(n=ja(t,u))||n.enumerable});return e},Ee=(e,t)=>Wr(Nr(tt(e!=null?Ka(ka(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),$a=(e=>(t,r)=>e&&e.get(t)||(r=Wr(Nr({}),t,1),e&&e.set(t,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var x=m(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.getEndomorphismMonoid=h.not=h.SK=h.hole=h.pipe=h.untupled=h.tupled=h.absurd=h.decrement=h.increment=h.tuple=h.flow=h.flip=h.constVoid=h.constUndefined=h.constNull=h.constFalse=h.constTrue=h.constant=h.unsafeCoerce=h.identity=h.apply=h.getRing=h.getSemiring=h.getMonoid=h.getSemigroup=h.getBooleanAlgebra=void 0;var Va=function(e){return function(){return{meet:function(t,r){return function(n){return e.meet(t(n),r(n))}},join:function(t,r){return function(n){return e.join(t(n),r(n))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,r){return function(n){return e.implies(t(n),r(n))}},not:function(t){return function(r){return e.not(t(r))}}}}};h.getBooleanAlgebra=Va;var za=function(e){return function(){return{concat:function(t,r){return function(n){return e.concat(t(n),r(n))}}}}};h.getSemigroup=za;var Xa=function(e){var t=h.getSemigroup(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}};h.getMonoid=Xa;var Ha=function(e){return{add:function(t,r){return function(n){return e.add(t(n),r(n))}},zero:function(){return e.zero},mul:function(t,r){return function(n){return e.mul(t(n),r(n))}},one:function(){return e.one}}};h.getSemiring=Ha;var Ja=function(e){var t=h.getSemiring(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(r,n){return function(u){return e.sub(r(u),n(u))}}}};h.getRing=Ja;var Za=function(e){return function(t){return t(e)}};h.apply=Za;function Tt(e){return e}h.identity=Tt;h.unsafeCoerce=Tt;function Le(e){return function(){return e}}h.constant=Le;h.constTrue=Le(!0);h.constFalse=Le(!1);h.constNull=Le(null);h.constUndefined=Le(void 0);h.constVoid=h.constUndefined;function Ya(e){return function(t,r){return e(r,t)}}h.flip=Ya;function Lr(e,t,r,n,u,c,s,l,v){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return r(t(e.apply(this,arguments)))};case 4:return function(){return n(r(t(e.apply(this,arguments))))};case 5:return function(){return u(n(r(t(e.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(t(e.apply(this,arguments))))))};case 7:return function(){return s(c(u(n(r(t(e.apply(this,arguments)))))))};case 8:return function(){return l(s(c(u(n(r(t(e.apply(this,arguments))))))))};case 9:return function(){return v(l(s(c(u(n(r(t(e.apply(this,arguments)))))))))}}}h.flow=Lr;function Qa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}h.tuple=Qa;function eo(e){return e+1}h.increment=eo;function to(e){return e-1}h.decrement=to;function Kr(e){throw new Error("Called `absurd` function which should be uncallable")}h.absurd=Kr;function ro(e){return function(t){return e.apply(void 0,t)}}h.tupled=ro;function no(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(t)}}h.untupled=no;function io(e,t,r,n,u,c,s,l,v){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return r(t(e));case 4:return n(r(t(e)));case 5:return u(n(r(t(e))));case 6:return c(u(n(r(t(e)))));case 7:return s(c(u(n(r(t(e))))));case 8:return l(s(c(u(n(r(t(e)))))));case 9:return v(l(s(c(u(n(r(t(e))))))));default:for(var y=arguments[0],I=1;I<arguments.length;I++)y=arguments[I](y);return y}}h.pipe=io;h.hole=K
`:`
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}});var Vn=m((Pd,Xe)=>{"use strict";var ze=require("path"),Bn=jt(),$n=e=>{e={cwd:process.cwd(),path:process.env[Bn()],execPath:process.execPath,...e};let t,r=ze.resolve(e.cwd),n=[];for(;t!==r;)n.push(ze.join(r,"node_modules/.bin")),t=r,r=ze.resolve(r,"..");let u=ze.resolve(e.cwd,e.execPath,"..");return n.push(u),n.concat(e.path).join(ze.delimiter)};Xe.exports=$n;Xe.exports.default=$n;Xe.exports.env=e=>{e={env:process.env,...e};let t={...e.env},r=Bn({env:t});return e.path=t[r],t[r]=Xe.exports(e),t}});var Xn=m((Cd,Xt)=>{"use strict";var zn=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Xt.exports=zn;Xt.exports.default=zn});var Jn=m((Nd,ut)=>{"use strict";var qc=Xn(),ot=new WeakMap,Hn=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,u=e.displayName||e.name||"<anonymous>",c=function(...s){if(ot.set(c,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return qc(c,e),ot.set(c,n),c};ut.exports=Hn;ut.exports.default=Hn;ut.exports.callCount=e=>{if(!ot.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ot.get(e)}});var Zn=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.SIGNALS=void 0;var wc=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:
${n.message}`:H,et=[Qe,t,e].filter(Boolean).join(`
`);return Se?(n.originalMessage=n.message,n.message=et):n=new Error(et),n.shortMessage=Qe,n.command=s,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=U,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(v),n.isCanceled=y,n.killed=I&&!v,n};ni.exports=zc});var oi=m((kd,Jt)=>{"use strict";var st=["stdin","stdout","stderr"],Xc=e=>st.some(t=>e[t]!==void 0),ai=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return st.map(n=>e[n]);if(Xc(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${st.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,st.length);return Array.from({length:r},(n,u)=>t[u])};Jt.exports=ai;Jt.exports.node=e=>{let t=ai(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var ui=m((Gd,lt)=>{lt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&lt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&lt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var pi=m((Bd,Ue)=>{var O=global.process;typeof O!="object"||!O?Ue.exports=function(){}:(ci=require("assert"),Te=ui(),fi=/^win/i.test(O.platform),He=require("events"),typeof He!="function"&&(He=He.EventEmitter),O.__signal_exit_emitter__?C=O.__signal_exit_emitter__:(C=O.__signal_exit_emitter__=new He,C.count=0,C.emitted={}),C.infinite||(C.setMaxListeners(1/0),C.infinite=!0),Ue.exports=function(e,t){if(global.process===O){ci.equal(typeof e,"function","a callback must be provided for exit handler"),Me===!1&&Zt();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){C.removeListener(r,e),C.listeners("exit").length===0&&C.listeners("afterexit").length===0&&pt()};return C.on(r,e),n}},pt=function(){!Me||global.process!==O||(Me=!1,Te.forEach(function(t){try{O.removeListener(t,dt[t])}catch{}}),O.emit=mt,O.reallyExit=Yt,C.count-=1)},Ue.exports.unload=pt,me=function(t,r,n){C.emitted[t]||(C.emitted[t]=!0,C.emit(t,r,n))},dt={},Te.forEach(function(e){dt[e]=function(){if(O===global.process){var r=O.listeners(e);r.length===C.count&&(pt(),me("exit",null,e),me("afterexit",null,e),fi&&e==="SIGHUP"&&(e="SIGINT"),O.kill(O.pid,e))}}}),Ue.exports.signals=function(){return Te},Me=!1,Zt=function(){Me||O!==global.process||(Me=!0,C.count+=1,Te=Te.filter(function(t){try{return O.on(t,dt[t]),!0}catch{return!1}}),O.emit=li,O.reallyExit=si)},Ue.exports.load=Zt,Yt=O.reallyExit,si=function(t){O===global.process&&(O.exitCode=t||0,me("exit",O.exitCode,null),me("afterexit",O.exitCode,null),Yt.call(O,O.exitCode))},mt=O.emit,li=function(t,r){if(t==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=mt.apply(this,arguments);return me("exit",O.exitCode,null),me("afterexit",O.exitCode,null),n}else return mt.apply(this,arguments)});var ci,Te,fi,He,C,pt,me,dt,Me,Zt,Yt,si,mt,li});var mi=m(($d,di)=>{"use strict";var Hc=require("os"),Jc=pi(),Zc=1e3*5,Yc=(e,t="SIGTERM",r={})=>{let n=e(t);return Qc(e,t,r,n),n},Qc=(e,t,r,n)=>{if(!ef(t,r,n))return;let u=rf(r),c=setTimeout(()=>{e("SIGKILL")},u);c.unref&&c.unref()},ef=(e,{forceKillAfterTimeout:t},r)=>tf(e)&&t!==!1&&r,tf=e=>e===Hc.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",rf=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return Zc;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},nf=(e,t)=>{e.kill()&&(t.isCanceled=!0)},af=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},of=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{af(e,r,v)},t)}),s=n.finally(()=>{clearTimeout(u)});return Promise.race([c,s])},uf=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw