diff --git a/nvim/lua/config/toggleterm.lua b/nvim/lua/config/toggleterm.lua index 4ad385b..3f75131 100644 --- a/nvim/lua/config/toggleterm.lua +++ b/nvim/lua/config/toggleterm.lua @@ -1,46 +1,15 @@ local g = vim.g local map = require('utils').map -local Terminal = require('toggleterm.terminal').Terminal -local lazygit = Terminal:new({ - cmd = 'lazygit', - dir = 'git_dir', - close_on_exit = true, - direction = 'float', - float_opts = { - border = 'double', - }, - hidden = true, - -- function to run on opening the terminal - --on_open = function(term) - --vim.cmd("startinsert!") - --vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "close", {noremap = true, silent = true}) - --end, - -- function to run on closing the terminal - --on_close = function(term) - --vim.cmd("Closing terminal") - --end, +map('t', '', [[]], { noremap = true }) + +require('toggleterm').setup({ + open_mapping = [[]], + size = function(term) + if term.direction == 'horizontal' then + return 15 + else + return vim.o.columns * 0.3 + end + end, }) - -function _lazygit_toggle() - lazygit:toggle() -end - -function _G.set_terminal_keymaps() - local opts = { noremap = true } - vim.api.nvim_buf_set_keymap(0, 't', '', [[]], opts) - --vim.api.nvim_buf_set_keymap(0, 't', 'jk', [[]], opts) - --vim.api.nvim_buf_set_keymap(0, 't', '', [[h]], opts) - --vim.api.nvim_buf_set_keymap(0, 't', '', [[j]], opts) - --vim.api.nvim_buf_set_keymap(0, 't', '', [[k]], opts) - --vim.api.nvim_buf_set_keymap(0, 't', '', [[l]], opts) -end - -vim.api.nvim_set_keymap('n', 'g', 'lua _lazygit_toggle()', { noremap = true, silent = true }) - --- if you only want these mappings for toggle term use term://*toggleterm#* instead -vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') - -map('n', 'tm', ':ToggleTerm size=15 direction=horizontal') - -require('toggleterm').setup({}) diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/add-to-library.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/add-to-library.js new file mode 100644 index 0000000..0ba3a26 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/add-to-library.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),_m=tt("Music","play"),Rm=tt("Music","stop"),Om=tt("Music","next track"),Am=tt("Music","previous track"),qm=tt("Music","playpause"),wm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),Tm=tt("Music","set loved of current track to true"),Mm=tt("Music","set disliked of current track to true"),ja=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/assets/icon.png b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/assets/icon.png new file mode 100644 index 0000000..795615b Binary files /dev/null and b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/assets/icon.png differ diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/currently-playing.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/currently-playing.js new file mode 100644 index 0000000..1cc7a4a --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/currently-playing.js @@ -0,0 +1,5 @@ +var Ga=Object.create;var jt=Object.defineProperty,$a=Object.defineProperties,Va=Object.getOwnPropertyDescriptor,za=Object.getOwnPropertyDescriptors,Ja=Object.getOwnPropertyNames,Lr=Object.getOwnPropertySymbols,Xa=Object.getPrototypeOf,jr=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable;var Kr=(t,e,r)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))jr.call(e,r)&&Kr(t,r,e[r]);if(Lr)for(var r of Lr(e))Ha.call(e,r)&&Kr(t,r,e[r]);return t},rt=(t,e)=>$a(t,za(e)),kr=t=>jt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Za=(t,e)=>{for(var r in e)jt(t,r,{get:e[r],enumerable:!0})},Dr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of Ja(e))!jr.call(t,u)&&(r||u!=="default")&&jt(t,u,{get:()=>e[u],enumerable:!(n=Va(e,u))||n.enumerable});return t},_t=(t,e)=>Dr(kr(jt(t!=null?Ga(Xa(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Ya=(t=>(e,r)=>t&&t.get(e)||(r=Dr(kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Qa=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Qa;var to=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=to;var eo=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=eo;var ro=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=ro;var no=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=no;var io=function(t){return function(e){return e(t)}};h.apply=io;function xe(t){return t}h.identity=xe;h.unsafeCoerce=xe;function kt(t){return function(){return t}}h.constant=kt;h.constTrue=kt(!0);h.constFalse=kt(!1);h.constNull=kt(null);h.constUndefined=kt(void 0);h.constVoid=h.constUndefined;function ao(t){return function(e,r){return t(r,e)}}h.flip=ao;function Br(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=Br;function oo(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var vo=U();function go(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=yo;function Io(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=Io;function So(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=So;function Eo(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=Eo;function Fe(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.getFunctorComposition=Q.bindTo=Q.flap=Q.map=void 0;var Ao=U();function $r(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Q.map=$r;function qo(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Q.flap=qo;function To(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Q.bindTo=To;function wo(t,e){var r=$r(t,e);return{map:function(n,u){return Ao.pipe(n,r(u))}}}Q.getFunctorComposition=wo});var Dt=m(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getApplicativeComposition=Rt.getApplicativeMonoid=void 0;var Vr=pt(),Mo=U(),xo=tt();function Uo(t){var e=Vr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}Rt.getApplicativeMonoid=Uo;function Fo(t,e){var r=xo.getFunctorComposition(t,e).map,n=Vr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return Mo.pipe(u,n(c))}}}Rt.getApplicativeComposition=Fo});var dt=m(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.bind=Ot.chainFirst=void 0;function Po(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}Ot.chainFirst=Po;function Co(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}Ot.bind=Co});var zr=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.tailRec=void 0;var No=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};ie.tailRec=No});var at=m(b=>{"use strict";var Wo=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=Vo;var zo=function(t){return t[0]};b.head=zo;var Jo=function(t){return t.slice(1)};b.tail=Jo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Xo=function(t){return Wo([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Xo});var ae=m(w=>{"use strict";var Ho=w&&w.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Zo=w&&w.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Yo=w&&w.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ho(e,t,r);return Zo(e,t),e};Object.defineProperty(w,"__esModule",{value:!0});w.filterOrElse=w.chainEitherK=w.fromEitherK=w.chainOptionK=w.fromOptionK=w.fromPredicate=w.fromOption=void 0;var Jr=U(),mt=Yo(at());function Xr(t){return function(e){return function(r){return t.fromEither(mt.isNone(r)?mt.left(e()):mt.right(r.value))}}}w.fromOption=Xr;function Qo(t){return function(e,r){return function(n){return t.fromEither(e(n)?mt.right(n):mt.left(r(n)))}}}w.fromPredicate=Qo;function Hr(t){var e=Xr(t);return function(r){var n=e(r);return function(u){return Jr.flow(u,n)}}}w.fromOptionK=Hr;function tu(t,e){var r=Hr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}w.chainOptionK=tu;function Zr(t){return function(e){return Jr.flow(e,t.fromEither)}}w.fromEitherK=Zr;function eu(t,e){var r=Zr(t);return function(n){return function(u){return e.chain(u,r(n))}}}w.chainEitherK=eu;function ru(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?mt.right(c):mt.left(n(c)))})}}}w.filterOrElse=ru});var Bt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Pe=U(),nu=tt(),iu=function(t,e){return{left:t,right:e}};E.separated=iu;var au=function(t,e){return Pe.pipe(t,E.map(e))},ou=function(t,e){return Pe.pipe(t,E.mapLeft(e))},uu=function(t,e,r){return Pe.pipe(t,E.bimap(e,r))},cu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=cu;var su=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=su;var fu=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=fu;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:ou,bimap:uu};E.Functor={URI:E.URI,map:au};E.flap=nu.flap(E.Functor);var lu=function(t){return t.left};E.left=lu;var pu=function(t){return t.right};E.right=pu});var Ce=m(j=>{"use strict";var du=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),mu=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&du(e,t,r);return mu(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Yr=hu(at());function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=vu;function gu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=gu;function yu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Yr.some(c):Yr.none})})}}}}j.filterE=yu});var Xt=m(i=>{"use strict";var Iu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Su=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Eu=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Iu(e,t,r);return Su(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var tn=Dt(),Gt=pt(),en=dt(),bu=zr(),$t=ae(),C=U(),rn=tt(),ot=Eu(at()),nt=Bt(),Qr=Ce();i.left=ot.left;i.right=ot.right;var K=function(t,e){return C.pipe(t,i.map(e))},ht=function(t,e){return C.pipe(t,i.ap(e))},At=function(t,e){return C.pipe(t,i.chain(e))},Vt=function(t,e,r){return C.pipe(t,i.reduce(e,r))},zt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},Jt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},oe=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ne=function(t,e,r){return C.pipe(t,i.bimap(e,r))},We=function(t,e){return C.pipe(t,i.mapLeft(e))},nn=function(t,e){return C.pipe(t,i.alt(e))},Le=function(t,e){return C.pipe(t,i.extend(e))},Ke=function(t,e){return bu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var _u=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=_u;var Ru=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=Ru;var Ou=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ou;var Au=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?nt.separated(r,r):i.isLeft(r.right)?nt.separated(i.right(r.right.left),e):nt.separated(e,i.right(r.right.right))}}};i.getCompactable=Au;var qu=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?nt.separated(l,l):v(l.right)?nt.separated(e,i.right(l.right)):nt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return nt.separated(l,l);var y=v(l.right);return i.isLeft(y)?nt.separated(i.right(y.left),e):nt.separated(e,i.right(y.right))}}};i.getFilterable=qu;var Tu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:oe,sequence:i.sequence,reduce:Vt,foldMap:zt,reduceRight:Jt,wither:Qr.witherDefault(i.Traversable,r),wilt:Qr.wiltDefault(i.Traversable,r)}};i.getWitherable=Tu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Mu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Mu;var xu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=xu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=Uu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:ht};i.Applicative={URI:i.URI,map:K,ap:ht,of:i.of};var Fu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Fu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:ht,chain:At};i.Monad={URI:i.URI,map:K,ap:ht,of:i.of,chain:At};var Pu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Pu;var Cu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Cu;var Nu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Nu;i.Foldable={URI:i.URI,reduce:Vt,foldMap:zt,reduceRight:Jt};var Wu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Wu;var Lu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Lu;i.Traversable={URI:i.URI,map:K,reduce:Vt,foldMap:zt,reduceRight:Jt,traverse:oe,sequence:i.sequence};var Ku=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Ku;var ju=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=ju;i.Bifunctor={URI:i.URI,bimap:Ne,mapLeft:We};var ku=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ku;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:nn};var Du=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=Du;i.Extend={URI:i.URI,map:K,extend:Le};i.ChainRec={URI:i.URI,map:K,ap:ht,chain:At,chainRec:Ke};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:ht,of:i.of,chain:At,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=$t.fromPredicate(i.FromEither);i.fromOption=$t.fromOption(i.FromEither);i.isLeft=ot.isLeft;i.isRight=ot.isRight;var Bu=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Bu;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Gu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Gu;i.getOrElse=i.getOrElseW;i.flap=rn.flap(i.Functor);i.apFirst=Gt.apFirst(i.Apply);i.apSecond=Gt.apSecond(i.Apply);i.chainFirst=en.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=$t.fromOptionK(i.FromEither);i.chainOptionK=$t.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=$t.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var $u=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=$u;var Vu=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=Vu;i.orElse=i.orElseW;var zu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=zu;var Ju=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=Ju;var Xu=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var qt=U(),cc=function(t,e){return qt.pipe(t,A.contramap(e))},sc=function(t){return function(e){return qt.flow(t,e)}};A.contramap=sc;A.URI="Predicate";var fc=function(){return{concat:function(t,e){return qt.pipe(t,A.or(e))}}};A.getSemigroupAny=fc;var lc=function(){return{concat:A.getSemigroupAny().concat,empty:qt.constFalse}};A.getMonoidAny=lc;var pc=function(){return{concat:function(t,e){return qt.pipe(t,A.and(e))}}};A.getSemigroupAll=pc;var dc=function(){return{concat:A.getSemigroupAll().concat,empty:qt.constTrue}};A.getMonoidAll=dc;A.Contravariant={URI:A.URI,contramap:cc};var mc=function(t){return function(e){return!t(e)}};A.not=mc;var hc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=hc;var vc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=vc});var on=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.concatAll=z.endo=z.filterSecond=z.filterFirst=z.reverse=void 0;var gc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};z.reverse=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};z.filterFirst=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};z.filterSecond=Ic;var Sc=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};z.endo=Sc;var Ec=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};z.concatAll=Ec});var un=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var bc=U(),_c=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=_c;var Rc=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=Rc;var Oc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var xc=un(),ue=U(),Uc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=Uc;var Fc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Fc;var Pc=function(){for(var t=[],e=0;e-1?e:r}};p.max=Vc;var zc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=zc;var Jc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=Jc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Xc(t,e){return te?1:0}var ke={equals:xc.eqStrict.equals,compare:Xc};p.ordBoolean=ke;p.ordString=ke;p.ordNumber=ke;p.ordDate=ue.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var pn=m(d=>{"use strict";var Hc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Zc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),De=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Hc(e,t,r);return Zc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var sn=U(),Yc=De(at()),fn=De(on()),ln=De(cn()),Qc=function(t){return{concat:ln.min(t)}};d.min=Qc;var ts=function(t){return{concat:ln.max(t)}};d.max=ts;var es=function(t){return{concat:function(){return t}}};d.constant=es;d.reverse=fn.reverse;var rs=function(t){return{concat:function(e,r){var n={};for(var u in t)Yc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=rs;var ns=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.guard=void 0;function ss(t,e){return function(r){return r?e.of(void 0):t.zero()}}ce.guard=ss});var Ze=m(o=>{"use strict";var fs=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ls=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ps=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&fs(e,t,r);return ls(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ds=Dt(),se=pt(),mn=dt(),hn=ae(),M=U(),vn=tt(),vt=ps(at()),ms=je(),gn=pn(),Be=Bt(),yn=Ce(),hs=dn();o.none=vt.none;o.some=vt.some;function vs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=vs;var gs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=gs;var ys=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=ys;var B=function(t,e){return M.pipe(t,o.map(e))},gt=function(t,e){return M.pipe(t,o.ap(e))},fe=function(t,e){return M.pipe(t,o.chain(e))},le=function(t,e,r){return M.pipe(t,o.reduce(e,r))},pe=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},de=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Ge=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},$e=function(t,e){return M.pipe(t,o.alt(e))},Ht=function(t,e){return M.pipe(t,o.filter(e))},Ve=function(t,e){return M.pipe(t,o.filterMap(e))},In=function(t,e){return M.pipe(t,o.extend(e))},ze=function(t,e){return M.pipe(t,o.partition(e))},Je=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var Is=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=Is;var Ss=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Ss;var Es=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Es;var bs=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=bs;var _s=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=_s;o.Functor={URI:o.URI,map:B};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=Rs;o.Apply={URI:o.URI,map:B,ap:gt};o.Applicative={URI:o.URI,map:B,ap:gt,of:o.of};var Os=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Os;o.Chain={URI:o.URI,map:B,ap:gt,chain:fe};o.Monad={URI:o.URI,map:B,ap:gt,of:o.of,chain:fe};var As=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=As;var qs=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=qs;var Ts=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=Ts;o.Foldable={URI:o.URI,reduce:le,foldMap:pe,reduceRight:de};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:B,alt:$e};var Ms=function(){return o.none};o.zero=Ms;o.Zero={URI:o.URI,zero:o.zero};o.guard=hs.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:B,ap:gt,of:o.of,alt:$e,zero:o.zero};var xs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=xs;o.Extend={URI:o.URI,map:B,extend:In};o.compact=o.chain(M.identity);var Us=Be.separated(o.none,o.none),Fs=function(t){return o.isNone(t)?Us:Be.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Fs;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Ps;var Cs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Cs;var Ns=function(t){return function(e){return Be.separated(Ht(e,ms.not(t)),Ht(e,t))}};o.partition=Ns;var Ws=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ws;o.Filterable={URI:o.URI,map:B,compact:o.compact,separate:o.separate,filter:Ht,filterMap:Ve,partition:ze,partitionMap:Je};var Ls=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ls;var Ks=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ks;o.Traversable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:Ge,sequence:o.sequence};var Xe=yn.witherDefault(o.Traversable,o.Compactable),He=yn.wiltDefault(o.Traversable,o.Compactable),js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wither=js;var ks=function(t){var e=He(t);return function(r){return function(n){return e(n,r)}}};o.wilt=ks;o.Witherable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:Ge,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Ht,filterMap:Ve,partition:ze,partitionMap:Je,wither:Xe,wilt:He};var Ds=function(){return o.none};o.throwError=Ds;o.MonadThrow={URI:o.URI,map:B,ap:gt,of:o.of,chain:fe,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=vt.isSome;var Bs=function(t){return t._tag==="None"};o.isNone=Bs;var Gs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Gs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var $s=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=$s;o.getOrElse=o.getOrElseW;o.flap=vn.flap(o.Functor);o.apFirst=se.apFirst(o.Apply);o.apSecond=se.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=mn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=hn.fromEitherK(o.FromEither);o.chainEitherK=hn.chainEitherK(o.FromEither,o.Chain);var Vs=function(t){return t==null?o.none:o.some(t)};o.fromNullable=Vs;var zs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=zs;var Js=function(t){return function(){for(var e=[],r=0;r{"use strict";var af=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),of=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uf=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&af(e,t,r);return of(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var En=U(),_n=tt(),bn=Ze(),cf=uf(Bt());function Ye(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ye;function Rn(t,e,r){var n=Ye(t,e),u=_n.map(t,r);return function(c){return cf.separated(n(En.pipe(c,u(bn.getLeft))),n(En.pipe(c,u(bn.getRight))))}}k.separate=Rn;function sf(t,e){var r=_n.getFunctorComposition(t,e).map;return{map:r,compact:Ye(t,e),separate:Rn(t,e,e)}}k.getCompactableComposition=sf});var Wn=m(S=>{"use strict";var ff=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),lf=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),pf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ff(e,t,r);return lf(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var df=pt(),T=pf(Xt()),Z=U(),mf=tt();function tr(t){return Z.flow(T.right,t.of)}S.right=tr;function On(t){return Z.flow(T.left,t.of)}S.left=On;function An(t){return function(e){return t.map(e,T.right)}}S.rightF=An;function qn(t){return function(e){return t.map(e,T.left)}}S.leftF=qn;function Tn(t){return mf.map(t,T.Functor)}S.map=Tn;function wn(t){return df.ap(t,T.Apply)}S.ap=wn;function Mn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=Mn;function xn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e():t.of(n)})}}}S.alt=xn;function Un(t){return function(e,r){return function(n){return t.map(n,T.bimap(e,r))}}}S.bimap=Un;function Fn(t){return function(e){return function(r){return t.map(r,T.mapLeft(e))}}}S.mapLeft=Fn;function hf(t,e){return function(r){return function(n){return t.chain(n,T.match(function(u){return t.map(r(),T.mapLeft(function(c){return e.concat(u,c)}))},tr(t)))}}}S.altValidation=hf;function vf(t){return function(e,r){return function(n){return t.map(n,T.match(e,r))}}}S.match=vf;function Pn(t){return function(e,r){return function(n){return t.chain(n,T.match(e,r))}}}S.matchE=Pn;function Cn(t){return function(e){return function(r){return t.chain(r,T.match(e,t.of))}}}S.getOrElse=Cn;function er(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=er;function gf(t){var e=er(t);return function(r){return e(function(n){return t.map(r(n),function(u){return T.isLeft(u)?u:T.left(n)})})}}S.orElseFirst=gf;function yf(t){return function(e){return function(r){return t.chain(r,T.match(function(n){return t.map(e(n),T.left)},function(n){return t.of(T.right(n))}))}}}S.orLeft=yf;function Nn(t){return function(e){return t.map(e,T.swap)}}S.swap=Nn;function If(t){return function(e){return t.map(e,T.toUnion)}}S.toUnion=If;function Sf(t){var e=wn(t),r=Tn(t),n=Mn(t),u=xn(t),c=Un(t),f=Fn(t),l=Pn(t),v=Cn(t),y=er(t);return{map:function(I,R){return Z.pipe(I,r(R))},ap:function(I,R){return Z.pipe(I,e(R))},of:tr(t),chain:function(I,R){return Z.pipe(I,n(R))},alt:function(I,R){return Z.pipe(I,u(R))},bimap:function(I,R,x){return Z.pipe(I,c(R,x))},mapLeft:function(I,R){return Z.pipe(I,f(R))},fold:function(I,R,x){return Z.pipe(I,l(R,x))},getOrElse:function(I,R){return Z.pipe(I,v(R))},orElse:function(I,R){return Z.pipe(I,y(R))},swap:Nn(t),rightM:An(t),leftM:qn(t),left:On(t)}}S.getEitherM=Sf});var Bn=m(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.getFilterableComposition=J.partitionMap=J.partition=J.filterMap=J.filter=void 0;var Ln=Qe(),Tt=U(),Ef=tt(),Kn=Ze(),bf=je(),jn=Bt();function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}J.filter=rr;function nr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}J.filterMap=nr;function kn(t,e){var r=rr(t,e);return function(n){var u=r(bf.not(n)),c=r(n);return function(f){return jn.separated(u(f),c(f))}}}J.partition=kn;function Dn(t,e){var r=nr(t,e);return function(n){return function(u){return jn.separated(Tt.pipe(u,r(function(c){return Kn.getLeft(n(c))})),Tt.pipe(u,r(function(c){return Kn.getRight(n(c))})))}}}J.partitionMap=Dn;function _f(t,e){var r=Ef.getFunctorComposition(t,e).map,n=Ln.compact(t,e),u=Ln.separate(t,e,e),c=rr(t,e),f=nr(t,e),l=kn(t,e),v=Dn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return Tt.pipe(y,c(I))},filterMap:function(y,I){return Tt.pipe(y,f(I))},partition:function(y,I){return Tt.pipe(y,l(I))},partitionMap:function(y,I){return Tt.pipe(y,v(I))}}}J.getFilterableComposition=_f});var ar=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstIOK=ut.chainIOK=ut.fromIOK=void 0;var Rf=dt(),ir=U();function Of(t){return function(e){return ir.flow(e,t.fromIO)}}ut.fromIOK=Of;function Af(t,e){return function(r){var n=ir.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ut.chainIOK=Af;function qf(t,e){var r=Rf.chainFirst(e);return function(n){return r(ir.flow(n,t.fromIO))}}ut.chainFirstIOK=qf});var Gn=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.chainFirstTaskK=ct.chainTaskK=ct.fromTaskK=void 0;var Tf=dt(),or=U();function wf(t){return function(e){return or.flow(e,t.fromTask)}}ct.fromTaskK=wf;function Mf(t,e){return function(r){var n=or.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ct.chainTaskK=Mf;function xf(t,e){var r=Tf.chainFirst(e);return function(n){return r(or.flow(n,t.fromTask))}}ct.chainFirstTaskK=xf});var zn=m(s=>{"use strict";var Uf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ff=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Pf=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Uf(e,t,r);return Ff(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Cf=Dt(),me=pt(),$n=dt(),ur=ar(),it=U(),Vn=tt(),yt=Pf(at()),Nf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Nf;function Wf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Wf;var Y=function(t,e){return it.pipe(t,s.map(e))},It=function(t,e){return it.pipe(t,s.ap(e))},cr=function(t,e){return it.pipe(t,s.chain(function(r){return it.pipe(e,s.map(r))}))},wt=function(t,e){return it.pipe(t,s.chain(e))},Lf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Lf;var Kf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Kf;var jf=function(t){return function(){return Promise.resolve(t)}};s.of=jf;var kf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=kf;s.flatten=s.chain(it.identity);s.URI="Task";function Df(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=Df;s.Functor={URI:s.URI,map:Y};s.flap=Vn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:Y,ap:It};s.apFirst=me.apFirst(s.ApplyPar);s.apSecond=me.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:Y,ap:It,of:s.of};s.ApplySeq={URI:s.URI,map:Y,ap:cr};s.ApplicativeSeq={URI:s.URI,map:Y,ap:cr,of:s.of};s.Chain={URI:s.URI,map:Y,ap:It,chain:wt};s.Monad={URI:s.URI,map:Y,of:s.of,ap:It,chain:wt};s.MonadIO={URI:s.URI,map:Y,of:s.of,ap:It,chain:wt,fromIO:s.fromIO};s.fromTask=it.identity;s.MonadTask={URI:s.URI,map:Y,of:s.of,ap:It,chain:wt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=$n.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=ur.fromIOK(s.FromIO);s.chainIOK=ur.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=ur.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Bf=function(){return new Promise(function(t){})};s.never=Bf;s.Do=s.of(yt.emptyRecord);s.bindTo=Vn.bindTo(s.Functor);s.bind=$n.bind(s.Chain);s.apS=me.apS(s.ApplyPar);s.ApT=s.of(yt.emptyReadonlyArray);var Gf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Gf;var $f=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return yt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=$f;var Vf=function(t){return function(e){return function(){return yt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,yt.head(e))).then(yt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=Vf;var zf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return yt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=zf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var Jf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=Jf;s.sequenceArray=s.traverseArray(it.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Xf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Xf;s.sequenceSeqArray=s.traverseSeqArray(it.identity);s.task={URI:s.URI,map:Y,of:s.of,ap:It,chain:wt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:Y,of:s.of,ap:cr,chain:wt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=me.getApplySemigroup(s.ApplySeq);s.getMonoid=Cf.getApplicativeMonoid(s.ApplicativeSeq)});var Qn=m(a=>{"use strict";var Hf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Zf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ve=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Hf(e,t,r);return Zf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Yf=Dt(),Mt=pt(),Xn=dt(),Jn=Qe(),st=ve(Xt()),P=ve(Wn()),he=Bn(),St=ae(),sr=ar(),fr=Gn(),q=U(),Hn=tt(),G=ve(at()),_=ve(zn());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Qf=function(t){return _.map(st.fromOption(t))};a.fromTaskOption=Qf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var tl=function(t,e){return function(){return t().then(G.right,function(r){return G.left(e(r))})}};a.tryCatch=tl;var el=function(t,e){return function(){for(var r=[],n=0;n{ni.exports=ri;ri.sync=Il;var ti=require("fs");function yl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{ci.exports=oi;oi.sync=Sl;var ai=require("fs");function oi(t,e,r){ai.stat(t,function(n,u){r(n,n?!1:ui(u,e))})}function Sl(t,e){return ui(ai.statSync(t),e)}function ui(t,e){return t.isFile()&&El(t,e)}function El(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var li=m((Bd,fi)=>{var Dd=require("fs"),Ie;process.platform==="win32"||global.TESTING_WINDOWS?Ie=ii():Ie=si();fi.exports=dr;dr.sync=bl;function dr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){dr(t,e||{},function(c,f){c?u(c):n(f)})})}Ie(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function bl(t,e){try{return Ie.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var yi=m((Gd,gi)=>{var xt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",pi=require("path"),_l=xt?";":":",di=li(),mi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),hi=(t,e)=>{let r=e.colon||_l,n=t.match(/\//)||xt&&t.match(/\\/)?[""]:[...xt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=xt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=xt?u.split(r):[""];return xt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},vi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=hi(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(mi(t));let x=n[y],$=/^".*"$/.test(x)?x.slice(1,-1):x,V=pi.join($,t),H=!$&&/^\.[\\\/]/.test(t)?t.slice(0,2)+V:V;I(v(H,y,0))}),v=(y,I,R)=>new Promise((x,$)=>{if(R===u.length)return x(l(I+1));let V=u[R];di(y+V,{pathExt:c},(H,bt)=>{if(!H&&bt)if(e.all)f.push(y+V);else return x(y+V);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},Rl=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=hi(t,e),c=[];for(let f=0;f{"use strict";var Ii=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mr.exports=Ii;mr.exports.default=Ii});var _i=m((Vd,bi)=>{"use strict";var Si=require("path"),Ol=yi(),Al=hr();function Ei(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Ol.sync(t.command,{path:r[Al({env:r})],pathExt:e?Si.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=Si.resolve(u?t.options.cwd:"",f)),f}function ql(t){return Ei(t)||Ei(t,!0)}bi.exports=ql});var Ri=m((zd,gr)=>{"use strict";var vr=/([()\][%!^"`<>&|;, *?])/g;function Tl(t){return t=t.replace(vr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(vr,"^$1"),e&&(t=t.replace(vr,"^$1")),t}gr.exports.command=Tl;gr.exports.argument=wl});var Ai=m((Jd,Oi)=>{"use strict";Oi.exports=/^#!(.*)/});var Ti=m((Xd,qi)=>{"use strict";var Ml=Ai();qi.exports=(t="")=>{let e=t.match(Ml);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var Mi=m((Hd,wi)=>{"use strict";var yr=require("fs"),xl=Ti();function Ul(t){let r=Buffer.alloc(150),n;try{n=yr.openSync(t,"r"),yr.readSync(n,r,0,150,0),yr.closeSync(n)}catch{}return xl(r.toString())}wi.exports=Ul});var Pi=m((Zd,Fi)=>{"use strict";var Fl=require("path"),xi=_i(),Ui=Ri(),Pl=Mi(),Cl=process.platform==="win32",Nl=/\.(?:com|exe)$/i,Wl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ll(t){t.file=xi(t);let e=t.file&&Pl(t.file);return e?(t.args.unshift(t.file),t.command=e,xi(t)):t.file}function Kl(t){if(!Cl)return t;let e=Ll(t),r=!Nl.test(e);if(t.options.forceShell||r){let n=Wl.test(e);t.command=Fl.normalize(t.command),t.command=Ui.command(t.command),t.args=t.args.map(c=>Ui.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function jl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Kl(n)}Fi.exports=jl});var Wi=m((Yd,Ni)=>{"use strict";var Ir=process.platform==="win32";function Sr(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function kl(t,e){if(!Ir)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Ci(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Ci(t,e){return Ir&&t===1&&!e.file?Sr(e.original,"spawn"):null}function Dl(t,e){return Ir&&t===1&&!e.file?Sr(e.original,"spawnSync"):null}Ni.exports={hookChildProcess:kl,verifyENOENT:Ci,verifyENOENTSync:Dl,notFoundError:Sr}});var ji=m((Qd,Ut)=>{"use strict";var Li=require("child_process"),Er=Pi(),br=Wi();function Ki(t,e,r){let n=Er(t,e,r),u=Li.spawn(n.command,n.args,n.options);return br.hookChildProcess(u,n),u}function Bl(t,e,r){let n=Er(t,e,r),u=Li.spawnSync(n.command,n.args,n.options);return u.error=u.error||br.verifyENOENTSync(u.status,n),u}Ut.exports=Ki;Ut.exports.spawn=Ki;Ut.exports.sync=Bl;Ut.exports._parse=Er;Ut.exports._enoent=br});var Di=m((tm,ki)=>{"use strict";ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var $i=m((em,Yt)=>{"use strict";var Zt=require("path"),Bi=hr(),Gi=t=>{t=F({cwd:process.cwd(),path:process.env[Bi()],execPath:process.execPath},t);let e,r=Zt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Zt.join(r,"node_modules/.bin")),e=r,r=Zt.resolve(r,"..");let u=Zt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Zt.delimiter)};Yt.exports=Gi;Yt.exports.default=Gi;Yt.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=Bi({env:e});return t.path=e[r],e[r]=Yt.exports(t),e}});var zi=m((rm,_r)=>{"use strict";var Vi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};_r.exports=Vi;_r.exports.default=Vi});var Xi=m((nm,Ee)=>{"use strict";var Gl=zi(),Se=new WeakMap,Ji=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Se.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Gl(c,t),Se.set(c,n),c};Ee.exports=Ji;Ee.exports.default=Ji;Ee.exports.callCount=t=>{if(!Se.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Se.get(t)}});var Hi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.SIGNALS=void 0;var $l=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];be.SIGNALS=$l});var Rr=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.SIGRTMAX=Ft.getRealtimeSignals=void 0;var Vl=function(){let t=Yi-Zi+1;return Array.from({length:t},zl)};Ft.getRealtimeSignals=Vl;var zl=function(t,e){return{name:`SIGRT${e+1}`,number:Zi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Zi=34,Yi=64;Ft.SIGRTMAX=Yi});var Qi=m(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.getSignals=void 0;var Jl=require("os"),Xl=Hi(),Hl=Rr(),Zl=function(){let t=(0,Hl.getRealtimeSignals)();return[...Xl.SIGNALS,...t].map(Yl)};_e.getSignals=Zl;var Yl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=Jl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var ea=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.signalsByNumber=Pt.signalsByName=void 0;var Ql=require("os"),ta=Qi(),tp=Rr(),ep=function(){return(0,ta.getSignals)().reduce(rp,{})},rp=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return rt(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},np=ep();Pt.signalsByName=np;var ip=function(){let t=(0,ta.getSignals)(),e=tp.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ap(u,t));return Object.assign({},...r)},ap=function(t,e){let r=op(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},op=function(t,e){let r=e.find(({name:n})=>Ql.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},up=ip();Pt.signalsByNumber=up});var na=m((cm,ra)=>{"use strict";var{signalsByName:cp}=ea(),sp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",fp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:cp[u].description,$=n&&n.code,H=`Command ${sp({timedOut:v,timeout:R,errorCode:$,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,bt=Object.prototype.toString.call(n)==="[object Error]",re=bt?`${H} +${n.message}`:H,ne=[re,e,t].filter(Boolean).join(` +`);return bt?(n.originalMessage=n.message,n.message=ne):n=new Error(ne),n.shortMessage=re,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ra.exports=fp});var aa=m((sm,Or)=>{"use strict";var Re=["stdin","stdout","stderr"],lp=t=>Re.some(e=>t[e]!==void 0),ia=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Re.map(n=>t[n]);if(lp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Re.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Re.length);return Array.from({length:r},(n,u)=>e[u])};Or.exports=ia;Or.exports.node=t=>{let e=ia(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var oa=m((fm,Oe)=>{Oe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Oe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Oe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var la=m((lm,Wt)=>{var O=global.process;typeof O!="object"||!O?Wt.exports=function(){}:(ua=require("assert"),Ct=oa(),ca=/^win/i.test(O.platform),Qt=require("events"),typeof Qt!="function"&&(Qt=Qt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Qt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Wt.exports=function(t,e){if(global.process===O){ua.equal(typeof t,"function","a callback must be provided for exit handler"),Nt===!1&&Ar();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Ae()};return N.on(r,t),n}},Ae=function(){!Nt||global.process!==O||(Nt=!1,Ct.forEach(function(e){try{O.removeListener(e,qe[e])}catch{}}),O.emit=Te,O.reallyExit=qr,N.count-=1)},Wt.exports.unload=Ae,Et=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},qe={},Ct.forEach(function(t){qe[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Ae(),Et("exit",null,t),Et("afterexit",null,t),ca&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Wt.exports.signals=function(){return Ct},Nt=!1,Ar=function(){Nt||O!==global.process||(Nt=!0,N.count+=1,Ct=Ct.filter(function(e){try{return O.on(e,qe[e]),!0}catch{return!1}}),O.emit=fa,O.reallyExit=sa)},Wt.exports.load=Ar,qr=O.reallyExit,sa=function(e){O===global.process&&(O.exitCode=e||0,Et("exit",O.exitCode,null),Et("afterexit",O.exitCode,null),qr.call(O,O.exitCode))},Te=O.emit,fa=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=Te.apply(this,arguments);return Et("exit",O.exitCode,null),Et("afterexit",O.exitCode,null),n}else return Te.apply(this,arguments)});var ua,Ct,ca,Qt,N,Ae,Et,qe,Nt,Ar,qr,sa,Te,fa});var da=m((pm,pa)=>{"use strict";var pp=require("os"),dp=la(),mp=1e3*5,hp=(t,e="SIGTERM",r={})=>{let n=t(e);return vp(t,e,r,n),n},vp=(t,e,r,n)=>{if(!gp(e,r,n))return;let u=Ip(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},gp=(t,{forceKillAfterTimeout:e},r)=>yp(t)&&e!==!1&&r,yp=t=>t===pp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Ip=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return mp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Sp=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Ep=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},bp=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Ep(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},_p=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Rp=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=dp(()=>{t.kill()});return n.finally(()=>{u()})};pa.exports={spawnedKill:hp,spawnedCancel:Sp,setupTimeout:bp,validateTimeout:_p,setExitHandler:Rp}});var ha=m((dm,ma)=>{"use strict";var et=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";et.writable=t=>et(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";et.readable=t=>et(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";et.duplex=t=>et.writable(t)&&et.readable(t);et.transform=t=>et.duplex(t)&&typeof t._transform=="function";ma.exports=et});var ga=m((mm,va)=>{"use strict";var{PassThrough:Op}=require("stream");va.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Op({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var ya=m((hm,te)=>{"use strict";var{constants:Ap}=require("buffer"),qp=require("stream"),{promisify:Tp}=require("util"),wp=ga(),Mp=Tp(qp.pipeline),Tr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Ap.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Mp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new Tr)})}),n.getBufferedValue()}te.exports=wr;te.exports.buffer=(t,e)=>wr(t,rt(F({},e),{encoding:"buffer"}));te.exports.array=(t,e)=>wr(t,rt(F({},e),{array:!0}));te.exports.MaxBufferError=Tr});var Sa=m((vm,Ia)=>{"use strict";var{PassThrough:xp}=require("stream");Ia.exports=function(){var t=[],e=new xp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var Ra=m((gm,_a)=>{"use strict";var ba=ha(),Ea=ya(),Up=Sa(),Fp=(t,e)=>{e===void 0||t.stdin===void 0||(ba(e)?e.pipe(t.stdin):t.stdin.end(e))},Pp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Up();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Mr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ea(t,{encoding:e,maxBuffer:n}):Ea.buffer(t,{maxBuffer:n})},Cp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=xr(t,{encoding:n,buffer:u,maxBuffer:c}),v=xr(e,{encoding:n,buffer:u,maxBuffer:c}),y=xr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Mr(t,l),Mr(e,v),Mr(r,y)])}},Np=({input:t})=>{if(ba(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};_a.exports={handleInput:Fp,makeAllStream:Pp,getSpawnedResult:Cp,validateInputSync:Np}});var Aa=m((ym,Oa)=>{"use strict";var Wp=(async()=>{})().constructor.prototype,Lp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Wp,t)]),Kp=(t,e)=>{for(let[r,n]of Lp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,rt(F({},n),{value:u}))}return t},jp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Oa.exports={mergePromise:Kp,getSpawnedPromise:jp}});var wa=m((Im,Ta)=>{"use strict";var qa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],kp=/^[\w.-]+$/,Dp=/"/g,Bp=t=>typeof t!="string"||kp.test(t)?t:`"${t.replace(Dp,'\\"')}"`,Gp=(t,e)=>qa(t,e).join(" "),$p=(t,e)=>qa(t,e).map(r=>Bp(r)).join(" "),Vp=/ +/g,zp=t=>{let e=[];for(let r of t.trim().split(Vp)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Ta.exports={joinCommand:Gp,getEscapedCommand:$p,parseCommand:zp}});var Na=m((Sm,Lt)=>{"use strict";var Jp=require("path"),Ur=require("child_process"),Xp=ji(),Hp=Di(),Zp=$i(),Yp=Xi(),we=na(),xa=aa(),{spawnedKill:Qp,spawnedCancel:td,setupTimeout:ed,validateTimeout:rd,setExitHandler:nd}=da(),{handleInput:id,getSpawnedResult:ad,makeAllStream:od,validateInputSync:ud}=Ra(),{mergePromise:Ma,getSpawnedPromise:cd}=Aa(),{joinCommand:Ua,parseCommand:Fa,getEscapedCommand:Pa}=wa(),sd=1e3*1e3*100,fd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Zp.env({env:c,cwd:n,execPath:u}):c},Ca=(t,e,r={})=>{let n=Xp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:sd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=fd(r),r.stdio=xa(r),process.platform==="win32"&&Jp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ee=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Hp(e):e,Me=(t,e,r)=>{let n=Ca(t,e,r),u=Ua(t,e),c=Pa(t,e);rd(n.options);let f;try{f=Ur.spawn(n.file,n.args,n.options)}catch($){let V=new Ur.ChildProcess,H=Promise.reject(we({error:$,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Ma(V,H)}let l=cd(f),v=ed(f,n.options,l),y=nd(f,n.options,v),I={isCanceled:!1};f.kill=Qp.bind(null,f.kill.bind(f)),f.cancel=td.bind(null,f,I);let x=Yp(async()=>{let[{error:$,exitCode:V,signal:H,timedOut:bt},re,ne,Ba]=await ad(f,n.options,y),Pr=ee(n.options,re),Cr=ee(n.options,ne),Nr=ee(n.options,Ba);if($||V!==0||H!==null){let Wr=we({error:$,exitCode:V,signal:H,stdout:Pr,stderr:Cr,all:Nr,command:u,escapedCommand:c,parsed:n,timedOut:bt,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Wr;throw Wr}return{command:u,escapedCommand:c,exitCode:0,stdout:Pr,stderr:Cr,all:Nr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return id(f,n.options.input),f.all=od(f,n.options),Ma(f,x)};Lt.exports=Me;Lt.exports.sync=(t,e,r)=>{let n=Ca(t,e,r),u=Ua(t,e),c=Pa(t,e);ud(n.options);let f;try{f=Ur.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=ee(n.options,f.stdout,f.error),v=ee(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Lt.exports.command=(t,e)=>{let[r,...n]=Fa(t);return Me(r,n,e)};Lt.exports.commandSync=(t,e)=>{let[r,...n]=Fa(t);return Me.sync(r,n,e)};Lt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=xa.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Me(c,[...f,t,...Array.isArray(e)?e:[]],rt(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var dd={};Za(dd,{default:()=>pd});var Kt=require("@raycast/api"),Da=_t(Xt());var ja=_t(Xt()),Fr=_t(U()),X=_t(Qn());var Wa=_t(require("node:process"),1),La=_t(Na(),1);async function Ka(t){if(Wa.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,La.default)("osascript",["-e",t]);return e}var D=(t,e)=>X.tryCatch(()=>Ka(`tell application "${t}" to ${e}`),ja.toError);var _m=D("Music","pause"),Rm=D("Music","play"),Om=D("Music","stop"),Am=D("Music","next track"),qm=D("Music","previous track"),Tm=D("Music","playpause"),ld=(0,Fr.pipe)(D("Music","player state"),X.map(t=>t)),wm=D("Music","set loved of current track to true"),Mm=D("Music","set disliked of current track to true"),xm=D("Music",'duplicate current track to source "Library"');var ka=()=>{let t=D("Music","get name of current track"),e=D("Music","get artist of current track"),r=D("Music","get album of current track"),n=D("Music","get duration of current track");return(0,Fr.pipe)(X.Do,X.apS("name",t),X.apS("artist",e),X.apS("album",r),X.apS("duration",n),X.apS("state",ld))};var pd=async()=>{let t=await ka()();if((0,Da.isLeft)(t)){(0,Kt.showToast)(Kt.ToastStyle.Failure,"Could not get currently playing track");return}(0,Kt.showToast)(Kt.ToastStyle.Success,t.right.name,`${t.right.album} - ${t.right.artist}`)};module.exports=Ya(dd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/dislike.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/dislike.js new file mode 100644 index 0000000..15b0da6 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/dislike.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),_m=tt("Music","play"),Rm=tt("Music","stop"),Om=tt("Music","next track"),Am=tt("Music","previous track"),qm=tt("Music","playpause"),wm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),Tm=tt("Music","set loved of current track to true"),ja=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love-and-add-to-library.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love-and-add-to-library.js new file mode 100644 index 0000000..6c5d205 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love-and-add-to-library.js @@ -0,0 +1,5 @@ +var Ga=Object.create;var Lt=Object.defineProperty,$a=Object.defineProperties,Va=Object.getOwnPropertyDescriptor,za=Object.getOwnPropertyDescriptors,Ja=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Xa=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Ha.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>$a(t,za(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Za=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of Ja(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=Va(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ga(Xa(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Ya=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Qa=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Qa;var to=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=to;var eo=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=eo;var ro=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=ro;var no=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=no;var io=function(t){return function(e){return e(t)}};h.apply=io;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function ao(t){return function(e,r){return t(r,e)}}h.flip=ao;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function oo(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var vo=U();function go(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=yo;function Io(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=Io;function So(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=So;function Eo(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=Eo;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Ao=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function qo(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=qo;function wo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=wo;function To(t,e){var r=Br(t,e);return{map:function(n,u){return Ao.pipe(n,r(u))}}}Z.getFunctorComposition=To});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),Mo=U(),xo=Y();function Uo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=Uo;function Fo(t,e){var r=xo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return Mo.pipe(u,n(c))}}}bt.getApplicativeComposition=Fo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Po(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Po;function Co(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Co});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var No=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=No});var it=m(b=>{"use strict";var Wo=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=Vo;var zo=function(t){return t[0]};b.head=zo;var Jo=function(t){return t.slice(1)};b.tail=Jo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Xo=function(t){return Wo([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Xo});var ne=m(T=>{"use strict";var Ho=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Zo=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Yo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ho(e,t,r);return Zo(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Yo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Qo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Qo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function tu(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=tu;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function eu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=eu;function ru(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=ru});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),nu=Y(),iu=function(t,e){return{left:t,right:e}};E.separated=iu;var au=function(t,e){return Fe.pipe(t,E.map(e))},ou=function(t,e){return Fe.pipe(t,E.mapLeft(e))},uu=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},cu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=cu;var su=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=su;var fu=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=fu;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:ou,bimap:uu};E.Functor={URI:E.URI,map:au};E.flap=nu.flap(E.Functor);var lu=function(t){return t.left};E.left=lu;var pu=function(t){return t.right};E.right=pu});var Pe=m(j=>{"use strict";var du=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),mu=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&du(e,t,r);return mu(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=hu(it());function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=vu;function gu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=gu;function yu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=yu});var ae=m(i=>{"use strict";var Iu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Su=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Eu=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Iu(e,t,r);return Su(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),bu=$r(),Gt=ne(),C=U(),tn=Y(),at=Eu(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return bu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var _u=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=_u;var Ru=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=Ru;var Ou=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ou;var Au=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Au;var qu=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=qu;var wu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=Tu;var Mu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Mu;var xu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=xu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=Uu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Fu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Fu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Pu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Pu;var Cu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Cu;var Nu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Nu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Wu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Wu;var Lu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Lu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Ku=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Ku;var ju=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=ju;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ku=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ku;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var Du=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=Du;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Bu=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Bu;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Gu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Gu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var $u=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=$u;var Vu=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=Vu;i.orElse=i.orElseW;var zu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=zu;var Ju=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=Ju;var Xu=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),cc=function(t,e){return Ot.pipe(t,A.contramap(e))},sc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=sc;A.URI="Predicate";var fc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=fc;var lc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=lc;var pc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=pc;var dc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=dc;A.Contravariant={URI:A.URI,contramap:cc};var mc=function(t){return function(e){return!t(e)}};A.not=mc;var hc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=hc;var vc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=vc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var gc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=Ic;var Sc=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Sc;var Ec=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Ec});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var bc=U(),_c=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=_c;var Rc=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=Rc;var Oc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var xc=an(),oe=U(),Uc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=Uc;var Fc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Fc;var Pc=function(){for(var t=[],e=0;e-1?e:r}};p.max=Vc;var zc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=zc;var Jc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=Jc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Xc(t,e){return te?1:0}var je={equals:xc.eqStrict.equals,compare:Xc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Hc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Zc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Hc(e,t,r);return Zc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Yc=ke(it()),cn=ke(nn()),sn=ke(on()),Qc=function(t){return{concat:sn.min(t)}};d.min=Qc;var ts=function(t){return{concat:sn.max(t)}};d.max=ts;var es=function(t){return{concat:function(){return t}}};d.constant=es;d.reverse=cn.reverse;var rs=function(t){return{concat:function(e,r){var n={};for(var u in t)Yc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=rs;var ns=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function ss(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=ss});var He=m(o=>{"use strict";var fs=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ls=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ps=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&fs(e,t,r);return ls(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ds=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ps(it()),ms=Ke(),hn=fn(),De=Dt(),vn=Pe(),hs=ln();o.none=ht.none;o.some=ht.some;function vs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=vs;var gs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=gs;var ys=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=ys;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var Is=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=Is;var Ss=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Ss;var Es=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Es;var bs=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=bs;var _s=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=_s;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=Rs;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Os=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Os;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var As=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=As;var qs=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=qs;var ws=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=ws;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var Ts=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=Ts;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ms=function(){return o.none};o.zero=Ms;o.Zero={URI:o.URI,zero:o.zero};o.guard=hs.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var xs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=xs;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var Us=De.separated(o.none,o.none),Fs=function(t){return o.isNone(t)?Us:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Fs;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Ps;var Cs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Cs;var Ns=function(t){return function(e){return De.separated(Jt(e,ms.not(t)),Jt(e,t))}};o.partition=Ns;var Ws=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ws;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ls=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ls;var Ks=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ks;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),js=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=js;var ks=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=ks;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var Ds=function(){return o.none};o.throwError=Ds;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Bs=function(t){return t._tag==="None"};o.isNone=Bs;var Gs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Gs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var $s=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=$s;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var Vs=function(t){return t==null?o.none:o.some(t)};o.fromNullable=Vs;var zs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=zs;var Js=function(t){return function(){for(var e=[],r=0;r{"use strict";var af=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),of=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uf=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&af(e,t,r);return of(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),cf=uf(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return cf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function sf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=sf});var Cn=m(S=>{"use strict";var ff=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),lf=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),pf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ff(e,t,r);return lf(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var df=lt(),w=pf(ae()),X=U(),mf=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return mf.map(t,w.Functor)}S.map=An;function qn(t){return df.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function hf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=hf;function vf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=vf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function gf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=gf;function yf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=yf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function If(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=If;function Sf(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=Sf});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Ef=Y(),Wn=He(),bf=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(bf.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function _f(t,e){var r=Ef.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=_f});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var Rf=pt(),nr=U();function Of(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Of;function Af(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Af;function qf(t,e){var r=Rf.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=qf});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var wf=pt(),ar=U();function Tf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=Tf;function Mf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Mf;function xf(t,e){var r=wf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=xf});var $n=m(s=>{"use strict";var Uf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ff=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Pf=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Uf(e,t,r);return Ff(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Cf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Pf(it()),Nf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Nf;function Wf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Wf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Lf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Lf;var Kf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Kf;var jf=function(t){return function(){return Promise.resolve(t)}};s.of=jf;var kf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=kf;s.flatten=s.chain(nt.identity);s.URI="Task";function Df(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=Df;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Bf=function(){return new Promise(function(t){})};s.never=Bf;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Gf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Gf;var $f=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=$f;var Vf=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=Vf;var zf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=zf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var Jf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=Jf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Xf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Xf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Cf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Hf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Zf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Hf(e,t,r);return Zf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Yf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Qf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Qf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var tl=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=tl;var el=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=Il;var Yn=require("fs");function yl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Sl;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Sl(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&El(t,e)}function El(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Bd,ci)=>{var Dd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=bl;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function bl(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Gd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),_l=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||_l,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},Rl=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m((Vd,Si)=>{"use strict";var yi=require("path"),Ol=vi(),Al=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Ol.sync(t.command,{path:r[Al({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function ql(t){return Ii(t)||Ii(t,!0)}Si.exports=ql});var bi=m((zd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function wl(t){return t=t.replace(hr,"^$1"),t}function Tl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=wl;vr.exports.argument=Tl});var Ri=m((Jd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Xd,Oi)=>{"use strict";var Ml=Ri();Oi.exports=(t="")=>{let e=t.match(Ml);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Hd,qi)=>{"use strict";var gr=require("fs"),xl=Ai();function Ul(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return xl(r.toString())}qi.exports=Ul});var Ui=m((Zd,xi)=>{"use strict";var Fl=require("path"),Ti=Ei(),Mi=bi(),Pl=wi(),Cl=process.platform==="win32",Nl=/\.(?:com|exe)$/i,Wl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ll(t){t.file=Ti(t);let e=t.file&&Pl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Kl(t){if(!Cl)return t;let e=Ll(t),r=!Nl.test(e);if(t.options.forceShell||r){let n=Wl.test(e);t.command=Fl.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function jl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Kl(n)}xi.exports=jl});var Ci=m((Yd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function kl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function Dl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:kl,verifyENOENT:Fi,verifyENOENTSync:Dl,notFoundError:Ir}});var Li=m((Qd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Bl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Bl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((tm,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((em,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((rm,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((nm,Se)=>{"use strict";var Gl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Gl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var $l=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=$l});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var Vl=function(){let t=Hi-Xi+1;return Array.from({length:t},zl)};xt.getRealtimeSignals=Vl;var zl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var Jl=require("os"),Xl=Ji(),Hl=_r(),Zl=function(){let t=(0,Hl.getRealtimeSignals)();return[...Xl.SIGNALS,...t].map(Yl)};be.getSignals=Zl;var Yl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=Jl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Ql=require("os"),Yi=Zi(),tp=_r(),ep=function(){return(0,Yi.getSignals)().reduce(rp,{})},rp=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},np=ep();Ut.signalsByName=np;var ip=function(){let t=(0,Yi.getSignals)(),e=tp.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ap(u,t));return Object.assign({},...r)},ap=function(t,e){let r=op(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},op=function(t,e){let r=e.find(({name:n})=>Ql.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},up=ip();Ut.signalsByNumber=up});var ea=m((cm,ta)=>{"use strict";var{signalsByName:cp}=Qi(),sp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",fp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:cp[u].description,G=n&&n.code,J=`Command ${sp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=fp});var na=m((sm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],lp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(lp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((fm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((lm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((pm,fa)=>{"use strict";var pp=require("os"),dp=sa(),mp=1e3*5,hp=(t,e="SIGTERM",r={})=>{let n=t(e);return vp(t,e,r,n),n},vp=(t,e,r,n)=>{if(!gp(e,r,n))return;let u=Ip(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},gp=(t,{forceKillAfterTimeout:e},r)=>yp(t)&&e!==!1&&r,yp=t=>t===pp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Ip=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return mp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Sp=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Ep=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},bp=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Ep(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},_p=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Rp=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=dp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:hp,spawnedCancel:Sp,setupTimeout:bp,validateTimeout:_p,setExitHandler:Rp}});var da=m((dm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((mm,ma)=>{"use strict";var{PassThrough:Op}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Op({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((hm,Yt)=>{"use strict";var{constants:Ap}=require("buffer"),qp=require("stream"),{promisify:wp}=require("util"),Tp=ha(),Mp=wp(qp.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=Tp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Ap.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Mp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((vm,ga)=>{"use strict";var{PassThrough:xp}=require("stream");ga.exports=function(){var t=[],e=new xp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((gm,Ea)=>{"use strict";var Sa=da(),Ia=va(),Up=ya(),Fp=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Pp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Up();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Cp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Np=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Fp,makeAllStream:Pp,getSpawnedResult:Cp,validateInputSync:Np}});var Ra=m((ym,_a)=>{"use strict";var Wp=(async()=>{})().constructor.prototype,Lp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Wp,t)]),Kp=(t,e)=>{for(let[r,n]of Lp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},jp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Kp,getSpawnedPromise:jp}});var qa=m((Im,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],kp=/^[\w.-]+$/,Dp=/"/g,Bp=t=>typeof t!="string"||kp.test(t)?t:`"${t.replace(Dp,'\\"')}"`,Gp=(t,e)=>Oa(t,e).join(" "),$p=(t,e)=>Oa(t,e).map(r=>Bp(r)).join(" "),Vp=/ +/g,zp=t=>{let e=[];for(let r of t.trim().split(Vp)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Gp,getEscapedCommand:$p,parseCommand:zp}});var Pa=m((Sm,Nt)=>{"use strict";var Jp=require("path"),xr=require("child_process"),Xp=Li(),Hp=ji(),Zp=Bi(),Yp=zi(),we=ea(),Ta=na(),{spawnedKill:Qp,spawnedCancel:td,setupTimeout:ed,validateTimeout:rd,setExitHandler:nd}=la(),{handleInput:id,getSpawnedResult:ad,makeAllStream:od,validateInputSync:ud}=ba(),{mergePromise:wa,getSpawnedPromise:cd}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),sd=1e3*1e3*100,fd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Zp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Xp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:sd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=fd(r),r.stdio=Ta(r),process.platform==="win32"&&Jp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Hp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);rd(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=cd(f),v=ed(f,n.options,l),y=nd(f,n.options,v),I={isCanceled:!1};f.kill=Qp.bind(null,f.kill.bind(f)),f.cancel=td.bind(null,f,I);let x=Yp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Ba]=await ad(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Ba);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return id(f,n.options.input),f.all=od(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ud(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var dd={};Za(dd,{default:()=>pd});var Da=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var _m=tt("Music","pause"),Rm=tt("Music","play"),Om=tt("Music","stop"),Am=tt("Music","next track"),qm=tt("Music","previous track"),wm=tt("Music","playpause"),Tm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),ja=tt("Music","set loved of current track to true"),Mm=tt("Music","set disliked of current track to true"),ka=tt("Music",'duplicate current track to source "Library"');var pd=async()=>{await(0,Da.closeMainWindow)(),await ja(),await ka()};module.exports=Ya(dd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love.js new file mode 100644 index 0000000..cd30bba --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),_m=tt("Music","play"),Rm=tt("Music","stop"),Om=tt("Music","next track"),Am=tt("Music","previous track"),qm=tt("Music","playpause"),wm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),ja=tt("Music","set loved of current track to true"),Tm=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/next-track.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/next-track.js new file mode 100644 index 0000000..08518f1 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/next-track.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),_m=tt("Music","play"),Rm=tt("Music","stop"),ja=tt("Music","next track"),Om=tt("Music","previous track"),Am=tt("Music","playpause"),qm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),wm=tt("Music","set loved of current track to true"),Tm=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/package.json b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/package.json new file mode 100644 index 0000000..0391592 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/package.json @@ -0,0 +1,135 @@ +{ + "$schema": "https://www.raycast.com/schemas/extension.json", + "name": "music", + "title": "Music", + "description": "Control the Apple Music app with your keyboard.", + "icon": "icon.png", + "author": "fedevitaledev", + "license": "MIT", + "keywords": [ + "music", + "player", + "media" + ], + "commands": [ + { + "name": "toggle-play-pause", + "title": "Toggle Play/Pause", + "subtitle": "Apple Music", + "description": "Toggle play or pause of current track in Music.", + "mode": "no-view" + }, + { + "name": "play", + "title": "Play", + "subtitle": "Apple Music", + "description": "Play current track in Music.", + "mode": "no-view" + }, + { + "name": "pause", + "title": "Pause", + "subtitle": "Apple Music", + "description": "Pause current track in Music.", + "mode": "no-view" + }, + { + "name": "next-track", + "title": "Next Track", + "subtitle": "Apple Music", + "description": "Skip to the next track in Music.", + "mode": "no-view" + }, + { + "name": "previous-track", + "title": "Previous Track", + "subtitle": "Apple Music", + "description": "Skip to the previous track in Music.", + "mode": "no-view" + }, + { + "name": "currently-playing", + "title": "Currently Playing Track", + "subtitle": "Apple Music", + "description": "Get info about currently playing track.", + "mode": "no-view" + }, + { + "name": "love", + "title": "Love Track", + "subtitle": "Apple Music", + "description": "Love currently playing track.", + "mode": "no-view" + }, + { + "name": "dislike", + "title": "Dislike Track", + "subtitle": "Apple Music", + "description": "Dislike currently playing track.", + "mode": "no-view" + }, + { + "name": "add-to-library", + "title": "Add to Library", + "subtitle": "Apple Music", + "description": "Add currently playing track to your library.", + "mode": "no-view" + }, + { + "name": "love-and-add-to-library", + "title": "Love and Add to Library", + "subtitle": "Apple Music", + "description": "Love and add currently playing track to your library.", + "mode": "no-view" + }, + { + "name": "start-playlist", + "title": "Start Playlist", + "subtitle": "Apple Music", + "description": "Start any of your playlists.", + "keywords": [ + "playlist" + ], + "mode": "view" + }, + { + "name": "play-library-track", + "title": "Search & Play Library Track", + "subtitle": "Apple Music", + "description": "Search and start a track from your library.", + "keywords": [ + "track" + ], + "mode": "view" + }, + { + "name": "play-library-album", + "title": "Search & Play Library Album", + "subtitle": "Apple Music", + "description": "Search and start an album from your library.", + "keywords": [ + "album" + ], + "mode": "view" + } + ], + "dependencies": { + "@raycast/api": "^1.25.4", + "fp-ts": "^2.11.5", + "run-applescript": "^6.0.0" + }, + "devDependencies": { + "@types/node": "~16.10.0", + "@types/react": "^17.0.28", + "@typescript-eslint/eslint-plugin": "^5.0.0", + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^7.32.0", + "eslint-config-prettier": "^8.3.0", + "react-devtools": "^4.19.2", + "typescript": "^4.4.3" + }, + "scripts": { + "build": "ray build -e dist", + "dev": "ray develop" + } +} diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/pause.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/pause.js new file mode 100644 index 0000000..10d107f --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/pause.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var ja=tt("Music","pause"),bm=tt("Music","play"),_m=tt("Music","stop"),Rm=tt("Music","next track"),Om=tt("Music","previous track"),Am=tt("Music","playpause"),qm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),wm=tt("Music","set loved of current track to true"),Tm=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play-library-album.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play-library-album.js new file mode 100644 index 0000000..9fa0176 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play-library-album.js @@ -0,0 +1,29 @@ +var Ya=Object.create;var jt=Object.defineProperty,Qa=Object.defineProperties,to=Object.getOwnPropertyDescriptor,eo=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertyNames,Dr=Object.getOwnPropertySymbols,no=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable;var Br=(t,e,r)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))Gr.call(e,r)&&Br(t,r,e[r]);if(Dr)for(var r of Dr(e))io.call(e,r)&&Br(t,r,e[r]);return t},H=(t,e)=>Qa(t,eo(e)),$r=t=>jt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ao=(t,e)=>{for(var r in e)jt(t,r,{get:e[r],enumerable:!0})},Vr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of ro(e))!Gr.call(t,u)&&(r||u!=="default")&&jt(t,u,{get:()=>e[u],enumerable:!(n=to(e,u))||n.enumerable});return t},nt=(t,e)=>Vr($r(jt(t!=null?Ya(no(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),oo=(t=>(e,r)=>t&&t.get(e)||(r=Vr($r({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 uo=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=uo;var co=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=co;var so=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=so;var fo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=fo;var lo=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=lo;var po=function(t){return function(e){return e(t)}};h.apply=po;function Pe(t){return t}h.identity=Pe;h.unsafeCoerce=Pe;function kt(t){return function(){return t}}h.constant=kt;h.constTrue=kt(!0);h.constFalse=kt(!1);h.constNull=kt(null);h.constUndefined=kt(void 0);h.constVoid=h.constUndefined;function mo(t){return function(e,r){return t(r,e)}}h.flip=mo;function zr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=zr;function ho(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var _o=U();function Ao(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=Ao;function Oo(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=Oo;function qo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=qo;function To(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=To;function wo(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=wo;function Ce(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.getFunctorComposition=Q.bindTo=Q.flap=Q.map=void 0;var Fo=U();function Xr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Q.map=Xr;function Co(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Q.flap=Co;function No(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Q.bindTo=No;function Wo(t,e){var r=Xr(t,e);return{map:function(n,u){return Fo.pipe(n,r(u))}}}Q.getFunctorComposition=Wo});var Dt=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.getApplicativeComposition=At.getApplicativeMonoid=void 0;var Hr=dt(),Lo=U(),Ko=tt();function jo(t){var e=Hr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}At.getApplicativeMonoid=jo;function ko(t,e){var r=Ko.getFunctorComposition(t,e).map,n=Hr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return Lo.pipe(u,n(c))}}}At.getApplicativeComposition=ko});var mt=m(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.bind=Ot.chainFirst=void 0;function Do(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}Ot.chainFirst=Do;function Bo(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}Ot.bind=Bo});var Zr=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.tailRec=void 0;var Go=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};ie.tailRec=Go});var ot=m(b=>{"use strict";var $o=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=tu;var eu=function(t){return t[0]};b.head=eu;var ru=function(t){return t.slice(1)};b.tail=ru;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var nu=function(t){return $o([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=nu});var ae=m(w=>{"use strict";var iu=w&&w.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),au=w&&w.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ou=w&&w.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&iu(e,t,r);return au(e,t),e};Object.defineProperty(w,"__esModule",{value:!0});w.filterOrElse=w.chainEitherK=w.fromEitherK=w.chainOptionK=w.fromOptionK=w.fromPredicate=w.fromOption=void 0;var Yr=U(),ht=ou(ot());function Qr(t){return function(e){return function(r){return t.fromEither(ht.isNone(r)?ht.left(e()):ht.right(r.value))}}}w.fromOption=Qr;function uu(t){return function(e,r){return function(n){return t.fromEither(e(n)?ht.right(n):ht.left(r(n)))}}}w.fromPredicate=uu;function tn(t){var e=Qr(t);return function(r){var n=e(r);return function(u){return Yr.flow(u,n)}}}w.fromOptionK=tn;function cu(t,e){var r=tn(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}w.chainOptionK=cu;function en(t){return function(e){return Yr.flow(e,t.fromEither)}}w.fromEitherK=en;function su(t,e){var r=en(t);return function(n){return function(u){return e.chain(u,r(n))}}}w.chainEitherK=su;function fu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?ht.right(c):ht.left(n(c)))})}}}w.filterOrElse=fu});var Bt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Ne=U(),lu=tt(),pu=function(t,e){return{left:t,right:e}};E.separated=pu;var du=function(t,e){return Ne.pipe(t,E.map(e))},mu=function(t,e){return Ne.pipe(t,E.mapLeft(e))},hu=function(t,e,r){return Ne.pipe(t,E.bimap(e,r))},vu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=vu;var gu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=gu;var yu=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=yu;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:mu,bimap:hu};E.Functor={URI:E.URI,map:du};E.flap=lu.flap(E.Functor);var Iu=function(t){return t.left};E.left=Iu;var Su=function(t){return t.right};E.right=Su});var We=m(k=>{"use strict";var Eu=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),bu=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ru=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Eu(e,t,r);return bu(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.filterE=k.witherDefault=k.wiltDefault=void 0;var rn=Ru(ot());function _u(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}k.wiltDefault=_u;function Au(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}k.witherDefault=Au;function Ou(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?rn.some(c):rn.none})})}}}}k.filterE=Ou});var Xt=m(i=>{"use strict";var qu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Tu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),wu=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qu(e,t,r);return Tu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var an=Dt(),Gt=dt(),on=mt(),Mu=Zr(),$t=ae(),C=U(),un=tt(),ut=wu(ot()),it=Bt(),nn=We();i.left=ut.left;i.right=ut.right;var K=function(t,e){return C.pipe(t,i.map(e))},vt=function(t,e){return C.pipe(t,i.ap(e))},qt=function(t,e){return C.pipe(t,i.chain(e))},Vt=function(t,e,r){return C.pipe(t,i.reduce(e,r))},zt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},Jt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},oe=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Le=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ke=function(t,e){return C.pipe(t,i.mapLeft(e))},cn=function(t,e){return C.pipe(t,i.alt(e))},je=function(t,e){return C.pipe(t,i.extend(e))},ke=function(t,e){return Mu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var xu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=xu;var Uu=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=Uu;var Pu=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Pu;var Fu=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?it.separated(r,r):i.isLeft(r.right)?it.separated(i.right(r.right.left),e):it.separated(e,i.right(r.right.right))}}};i.getCompactable=Fu;var Cu=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?it.separated(l,l):v(l.right)?it.separated(e,i.right(l.right)):it.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return it.separated(l,l);var y=v(l.right);return i.isLeft(y)?it.separated(i.right(y.left),e):it.separated(e,i.right(y.right))}}};i.getFilterable=Cu;var Nu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:oe,sequence:i.sequence,reduce:Vt,foldMap:zt,reduceRight:Jt,wither:nn.witherDefault(i.Traversable,r),wilt:nn.wiltDefault(i.Traversable,r)}};i.getWitherable=Nu;var Wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=Wu;var Lu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Ku;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var ju=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=ju;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:vt};i.Applicative={URI:i.URI,map:K,ap:vt,of:i.of};var ku=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=ku;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:vt,chain:qt};i.Monad={URI:i.URI,map:K,ap:vt,of:i.of,chain:qt};var Du=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Du;var Bu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Bu;var Gu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Gu;i.Foldable={URI:i.URI,reduce:Vt,foldMap:zt,reduceRight:Jt};var $u=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=$u;var Vu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Vu;i.Traversable={URI:i.URI,map:K,reduce:Vt,foldMap:zt,reduceRight:Jt,traverse:oe,sequence:i.sequence};var zu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=zu;var Ju=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ju;i.Bifunctor={URI:i.URI,bimap:Le,mapLeft:Ke};var Xu=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=Xu;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:cn};var Hu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=Hu;i.Extend={URI:i.URI,map:K,extend:je};i.ChainRec={URI:i.URI,map:K,ap:vt,chain:qt,chainRec:ke};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:vt,of:i.of,chain:qt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=$t.fromPredicate(i.FromEither);i.fromOption=$t.fromOption(i.FromEither);i.isLeft=ut.isLeft;i.isRight=ut.isRight;var Zu=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Zu;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Yu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Yu;i.getOrElse=i.getOrElseW;i.flap=un.flap(i.Functor);i.apFirst=Gt.apFirst(i.Apply);i.apSecond=Gt.apSecond(i.Apply);i.chainFirst=on.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=$t.fromOptionK(i.FromEither);i.chainOptionK=$t.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=$t.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Qu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Qu;var tc=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=tc;i.orElse=i.orElseW;var ec=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=ec;var rc=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=rc;var nc=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.and=O.or=O.not=O.Contravariant=O.getMonoidAll=O.getSemigroupAll=O.getMonoidAny=O.getSemigroupAny=O.URI=O.contramap=void 0;var Tt=U(),vc=function(t,e){return Tt.pipe(t,O.contramap(e))},gc=function(t){return function(e){return Tt.flow(t,e)}};O.contramap=gc;O.URI="Predicate";var yc=function(){return{concat:function(t,e){return Tt.pipe(t,O.or(e))}}};O.getSemigroupAny=yc;var Ic=function(){return{concat:O.getSemigroupAny().concat,empty:Tt.constFalse}};O.getMonoidAny=Ic;var Sc=function(){return{concat:function(t,e){return Tt.pipe(t,O.and(e))}}};O.getSemigroupAll=Sc;var Ec=function(){return{concat:O.getSemigroupAll().concat,empty:Tt.constTrue}};O.getMonoidAll=Ec;O.Contravariant={URI:O.URI,contramap:vc};var bc=function(t){return function(e){return!t(e)}};O.not=bc;var Rc=function(t){return function(e){return function(r){return e(r)||t(r)}}};O.or=Rc;var _c=function(t){return function(e){return function(r){return e(r)&&t(r)}}};O.and=_c});var fn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.concatAll=z.endo=z.filterSecond=z.filterFirst=z.reverse=void 0;var Ac=function(t){return{concat:function(e,r){return t.concat(r,e)}}};z.reverse=Ac;var Oc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};z.filterFirst=Oc;var qc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};z.filterSecond=qc;var Tc=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};z.endo=Tc;var wc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};z.concatAll=wc});var ln=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Mc=U(),xc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=xc;var Uc=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=Uc;var Pc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Kc=ln(),ue=U(),jc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=jc;var kc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=kc;var Dc=function(){for(var t=[],e=0;e-1?e:r}};p.max=ts;var es=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=es;var rs=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=rs;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function ns(t,e){return te?1:0}var Be={equals:Kc.eqStrict.equals,compare:ns};p.ordBoolean=Be;p.ordString=Be;p.ordNumber=Be;p.ordDate=ue.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var vn=m(d=>{"use strict";var is=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),as=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ge=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&is(e,t,r);return as(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var dn=U(),os=Ge(ot()),mn=Ge(fn()),hn=Ge(pn()),us=function(t){return{concat:hn.min(t)}};d.min=us;var cs=function(t){return{concat:hn.max(t)}};d.max=cs;var ss=function(t){return{concat:function(){return t}}};d.constant=ss;d.reverse=mn.reverse;var fs=function(t){return{concat:function(e,r){var n={};for(var u in t)os.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=fs;var ls=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.guard=void 0;function gs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ce.guard=gs});var me=m(o=>{"use strict";var ys=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Is=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ss=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ys(e,t,r);return Is(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var Es=Dt(),se=dt(),yn=mt(),In=ae(),M=U(),Sn=tt(),gt=Ss(ot()),bs=De(),En=vn(),$e=Bt(),bn=We(),Rs=gn();o.none=gt.none;o.some=gt.some;function _s(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=_s;var As=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=As;var Os=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=Os;var B=function(t,e){return M.pipe(t,o.map(e))},yt=function(t,e){return M.pipe(t,o.ap(e))},fe=function(t,e){return M.pipe(t,o.chain(e))},le=function(t,e,r){return M.pipe(t,o.reduce(e,r))},pe=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},de=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Ve=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},ze=function(t,e){return M.pipe(t,o.alt(e))},Ht=function(t,e){return M.pipe(t,o.filter(e))},Je=function(t,e){return M.pipe(t,o.filterMap(e))},Rn=function(t,e){return M.pipe(t,o.extend(e))},Xe=function(t,e){return M.pipe(t,o.partition(e))},He=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var qs=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=qs;var Ts=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Ts;var ws=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=ws;var Ms=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Ms;var xs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=xs;o.Functor={URI:o.URI,map:B};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var Us=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=Us;o.Apply={URI:o.URI,map:B,ap:yt};o.Applicative={URI:o.URI,map:B,ap:yt,of:o.of};var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Ps;o.Chain={URI:o.URI,map:B,ap:yt,chain:fe};o.Monad={URI:o.URI,map:B,ap:yt,of:o.of,chain:fe};var Fs=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Fs;var Cs=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=Cs;var Ns=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=Ns;o.Foldable={URI:o.URI,reduce:le,foldMap:pe,reduceRight:de};var Ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=Ws;o.alt=o.altW;o.Alt={URI:o.URI,map:B,alt:ze};var Ls=function(){return o.none};o.zero=Ls;o.Zero={URI:o.URI,zero:o.zero};o.guard=Rs.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:B,ap:yt,of:o.of,alt:ze,zero:o.zero};var Ks=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ks;o.Extend={URI:o.URI,map:B,extend:Rn};o.compact=o.chain(M.identity);var js=$e.separated(o.none,o.none),ks=function(t){return o.isNone(t)?js:$e.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=ks;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Ds=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Ds;var Bs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Bs;var Gs=function(t){return function(e){return $e.separated(Ht(e,bs.not(t)),Ht(e,t))}};o.partition=Gs;var $s=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=$s;o.Filterable={URI:o.URI,map:B,compact:o.compact,separate:o.separate,filter:Ht,filterMap:Je,partition:Xe,partitionMap:He};var Vs=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Vs;var zs=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=zs;o.Traversable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:Ve,sequence:o.sequence};var Ze=bn.witherDefault(o.Traversable,o.Compactable),Ye=bn.wiltDefault(o.Traversable,o.Compactable),Js=function(t){var e=Ze(t);return function(r){return function(n){return e(n,r)}}};o.wither=Js;var Xs=function(t){var e=Ye(t);return function(r){return function(n){return e(n,r)}}};o.wilt=Xs;o.Witherable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:Ve,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Ht,filterMap:Je,partition:Xe,partitionMap:He,wither:Ze,wilt:Ye};var Hs=function(){return o.none};o.throwError=Hs;o.MonadThrow={URI:o.URI,map:B,ap:yt,of:o.of,chain:fe,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=gt.isSome;var Zs=function(t){return t._tag==="None"};o.isNone=Zs;var Ys=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Ys;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Qs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Qs;o.getOrElse=o.getOrElseW;o.flap=Sn.flap(o.Functor);o.apFirst=se.apFirst(o.Apply);o.apSecond=se.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=yn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=In.fromEitherK(o.FromEither);o.chainEitherK=In.chainEitherK(o.FromEither,o.Chain);var tf=function(t){return t==null?o.none:o.some(t)};o.fromNullable=tf;var ef=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=ef;var rf=function(t){return function(){for(var e=[],r=0;r{"use strict";var df=D&&D.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),mf=D&&D.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),hf=D&&D.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&df(e,t,r);return mf(e,t),e};Object.defineProperty(D,"__esModule",{value:!0});D.getCompactableComposition=D.separate=D.compact=void 0;var An=U(),qn=tt(),On=me(),vf=hf(Bt());function Qe(t,e){return function(r){return t.map(r,e.compact)}}D.compact=Qe;function Tn(t,e,r){var n=Qe(t,e),u=qn.map(t,r);return function(c){return vf.separated(n(An.pipe(c,u(On.getLeft))),n(An.pipe(c,u(On.getRight))))}}D.separate=Tn;function gf(t,e){var r=qn.getFunctorComposition(t,e).map;return{map:r,compact:Qe(t,e),separate:Tn(t,e,e)}}D.getCompactableComposition=gf});var kn=m(S=>{"use strict";var yf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),If=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Sf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yf(e,t,r);return If(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var Ef=dt(),T=Sf(Xt()),Z=U(),bf=tt();function er(t){return Z.flow(T.right,t.of)}S.right=er;function wn(t){return Z.flow(T.left,t.of)}S.left=wn;function Mn(t){return function(e){return t.map(e,T.right)}}S.rightF=Mn;function xn(t){return function(e){return t.map(e,T.left)}}S.leftF=xn;function Un(t){return bf.map(t,T.Functor)}S.map=Un;function Pn(t){return Ef.ap(t,T.Apply)}S.ap=Pn;function Fn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=Fn;function Cn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e():t.of(n)})}}}S.alt=Cn;function Nn(t){return function(e,r){return function(n){return t.map(n,T.bimap(e,r))}}}S.bimap=Nn;function Wn(t){return function(e){return function(r){return t.map(r,T.mapLeft(e))}}}S.mapLeft=Wn;function Rf(t,e){return function(r){return function(n){return t.chain(n,T.match(function(u){return t.map(r(),T.mapLeft(function(c){return e.concat(u,c)}))},er(t)))}}}S.altValidation=Rf;function _f(t){return function(e,r){return function(n){return t.map(n,T.match(e,r))}}}S.match=_f;function Ln(t){return function(e,r){return function(n){return t.chain(n,T.match(e,r))}}}S.matchE=Ln;function Kn(t){return function(e){return function(r){return t.chain(r,T.match(e,t.of))}}}S.getOrElse=Kn;function rr(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=rr;function Af(t){var e=rr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return T.isLeft(u)?u:T.left(n)})})}}S.orElseFirst=Af;function Of(t){return function(e){return function(r){return t.chain(r,T.match(function(n){return t.map(e(n),T.left)},function(n){return t.of(T.right(n))}))}}}S.orLeft=Of;function jn(t){return function(e){return t.map(e,T.swap)}}S.swap=jn;function qf(t){return function(e){return t.map(e,T.toUnion)}}S.toUnion=qf;function Tf(t){var e=Pn(t),r=Un(t),n=Fn(t),u=Cn(t),c=Nn(t),f=Wn(t),l=Ln(t),v=Kn(t),y=rr(t);return{map:function(I,_){return Z.pipe(I,r(_))},ap:function(I,_){return Z.pipe(I,e(_))},of:er(t),chain:function(I,_){return Z.pipe(I,n(_))},alt:function(I,_){return Z.pipe(I,u(_))},bimap:function(I,_,P){return Z.pipe(I,c(_,P))},mapLeft:function(I,_){return Z.pipe(I,f(_))},fold:function(I,_,P){return Z.pipe(I,l(_,P))},getOrElse:function(I,_){return Z.pipe(I,v(_))},orElse:function(I,_){return Z.pipe(I,y(_))},swap:jn(t),rightM:Mn(t),leftM:xn(t),left:wn(t)}}S.getEitherM=Tf});var zn=m(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.getFilterableComposition=J.partitionMap=J.partition=J.filterMap=J.filter=void 0;var Dn=tr(),wt=U(),wf=tt(),Bn=me(),Mf=De(),Gn=Bt();function nr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}J.filter=nr;function ir(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}J.filterMap=ir;function $n(t,e){var r=nr(t,e);return function(n){var u=r(Mf.not(n)),c=r(n);return function(f){return Gn.separated(u(f),c(f))}}}J.partition=$n;function Vn(t,e){var r=ir(t,e);return function(n){return function(u){return Gn.separated(wt.pipe(u,r(function(c){return Bn.getLeft(n(c))})),wt.pipe(u,r(function(c){return Bn.getRight(n(c))})))}}}J.partitionMap=Vn;function xf(t,e){var r=wf.getFunctorComposition(t,e).map,n=Dn.compact(t,e),u=Dn.separate(t,e,e),c=nr(t,e),f=ir(t,e),l=$n(t,e),v=Vn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return wt.pipe(y,c(I))},filterMap:function(y,I){return wt.pipe(y,f(I))},partition:function(y,I){return wt.pipe(y,l(I))},partitionMap:function(y,I){return wt.pipe(y,v(I))}}}J.getFilterableComposition=xf});var or=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.chainFirstIOK=ct.chainIOK=ct.fromIOK=void 0;var Uf=mt(),ar=U();function Pf(t){return function(e){return ar.flow(e,t.fromIO)}}ct.fromIOK=Pf;function Ff(t,e){return function(r){var n=ar.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ct.chainIOK=Ff;function Cf(t,e){var r=Uf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromIO))}}ct.chainFirstIOK=Cf});var Jn=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.chainFirstTaskK=st.chainTaskK=st.fromTaskK=void 0;var Nf=mt(),ur=U();function Wf(t){return function(e){return ur.flow(e,t.fromTask)}}st.fromTaskK=Wf;function Lf(t,e){return function(r){var n=ur.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}st.chainTaskK=Lf;function Kf(t,e){var r=Nf.chainFirst(e);return function(n){return r(ur.flow(n,t.fromTask))}}st.chainFirstTaskK=Kf});var Zn=m(s=>{"use strict";var jf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Df=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&jf(e,t,r);return kf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Bf=Dt(),he=dt(),Xn=mt(),cr=or(),at=U(),Hn=tt(),It=Df(ot()),Gf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Gf;function $f(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=$f;var Y=function(t,e){return at.pipe(t,s.map(e))},St=function(t,e){return at.pipe(t,s.ap(e))},sr=function(t,e){return at.pipe(t,s.chain(function(r){return at.pipe(e,s.map(r))}))},Mt=function(t,e){return at.pipe(t,s.chain(e))},Vf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Vf;var zf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=zf;var Jf=function(t){return function(){return Promise.resolve(t)}};s.of=Jf;var Xf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=Xf;s.flatten=s.chain(at.identity);s.URI="Task";function Hf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=Hf;s.Functor={URI:s.URI,map:Y};s.flap=Hn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:Y,ap:St};s.apFirst=he.apFirst(s.ApplyPar);s.apSecond=he.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:Y,ap:St,of:s.of};s.ApplySeq={URI:s.URI,map:Y,ap:sr};s.ApplicativeSeq={URI:s.URI,map:Y,ap:sr,of:s.of};s.Chain={URI:s.URI,map:Y,ap:St,chain:Mt};s.Monad={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt};s.MonadIO={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt,fromIO:s.fromIO};s.fromTask=at.identity;s.MonadTask={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Xn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=cr.fromIOK(s.FromIO);s.chainIOK=cr.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=cr.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Zf=function(){return new Promise(function(t){})};s.never=Zf;s.Do=s.of(It.emptyRecord);s.bindTo=Hn.bindTo(s.Functor);s.bind=Xn.bind(s.Chain);s.apS=he.apS(s.ApplyPar);s.ApT=s.of(It.emptyReadonlyArray);var Yf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Yf;var Qf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return It.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Qf;var tl=function(t){return function(e){return function(){return It.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,It.head(e))).then(It.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=tl;var el=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return It.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=el;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var rl=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=rl;s.sequenceArray=s.traverseArray(at.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var nl=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=nl;s.sequenceSeqArray=s.traverseSeqArray(at.identity);s.task={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:Y,of:s.of,ap:sr,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=he.getApplySemigroup(s.ApplySeq);s.getMonoid=Bf.getApplicativeMonoid(s.ApplicativeSeq)});var mr=m(a=>{"use strict";var il=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),al=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ge=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&il(e,t,r);return al(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var ol=Dt(),xt=dt(),Qn=mt(),Yn=tr(),ft=ge(Xt()),F=ge(kn()),ve=zn(),Et=ae(),fr=or(),lr=Jn(),q=U(),ti=tt(),G=ge(ot()),R=ge(Zn());a.left=F.left(R.Pointed);a.right=F.right(R.Pointed);a.rightTask=F.rightF(R.Functor);a.leftTask=F.leftF(R.Functor);a.rightIO=q.flow(R.fromIO,a.rightTask);a.leftIO=q.flow(R.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=R.of;a.fromIOEither=R.fromIO;var ul=function(t){return R.map(ft.fromOption(t))};a.fromTaskOption=ul;a.match=F.match(R.Functor);a.matchW=a.match;a.matchE=F.matchE(R.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=F.getOrElse(R.Monad);a.getOrElseW=a.getOrElse;var cl=function(t,e){return function(){return t().then(G.right,function(r){return G.left(e(r))})}};a.tryCatch=cl;var sl=function(t,e){return function(){for(var r=[],n=0;n{oi.exports=ai;ai.sync=ql;var ni=require("fs");function Ol(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{li.exports=si;si.sync=Tl;var ci=require("fs");function si(t,e,r){ci.stat(t,function(n,u){r(n,n?!1:fi(u,e))})}function Tl(t,e){return fi(ci.statSync(t),e)}function fi(t,e){return t.isFile()&&wl(t,e)}function wl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,_=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return _}});var mi=m((Hd,di)=>{var Xd=require("fs"),Se;process.platform==="win32"||global.TESTING_WINDOWS?Se=ui():Se=pi();di.exports=hr;hr.sync=Ml;function hr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){hr(t,e||{},function(c,f){c?u(c):n(f)})})}Se(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function Ml(t,e){try{return Se.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Ei=m((Zd,Si)=>{var Ut=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",hi=require("path"),xl=Ut?";":":",vi=mi(),gi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),yi=(t,e)=>{let r=e.colon||xl,n=t.match(/\//)||Ut&&t.match(/\\/)?[""]:[...Ut?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Ut?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Ut?u.split(r):[""];return Ut&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},Ii=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=yi(t,e),f=[],l=y=>new Promise((I,_)=>{if(y===n.length)return e.all&&f.length?I(f):_(gi(t));let P=n[y],$=/^".*"$/.test(P)?P.slice(1,-1):P,V=hi.join($,t),X=!$&&/^\.[\\\/]/.test(t)?t.slice(0,2)+V:V;I(v(X,y,0))}),v=(y,I,_)=>new Promise((P,$)=>{if(_===u.length)return P(l(I+1));let V=u[_];vi(y+V,{pathExt:c},(X,_t)=>{if(!X&&_t)if(e.all)f.push(y+V);else return P(y+V);return P(v(y,I,_+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},Ul=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=yi(t,e),c=[];for(let f=0;f{"use strict";var bi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};vr.exports=bi;vr.exports.default=bi});var Oi=m((Qd,Ai)=>{"use strict";var Ri=require("path"),Pl=Ei(),Fl=gr();function _i(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Pl.sync(t.command,{path:r[Fl({env:r})],pathExt:e?Ri.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=Ri.resolve(u?t.options.cwd:"",f)),f}function Cl(t){return _i(t)||_i(t,!0)}Ai.exports=Cl});var qi=m((tm,Ir)=>{"use strict";var yr=/([()\][%!^"`<>&|;, *?])/g;function Nl(t){return t=t.replace(yr,"^$1"),t}function Wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(yr,"^$1"),e&&(t=t.replace(yr,"^$1")),t}Ir.exports.command=Nl;Ir.exports.argument=Wl});var wi=m((em,Ti)=>{"use strict";Ti.exports=/^#!(.*)/});var xi=m((rm,Mi)=>{"use strict";var Ll=wi();Mi.exports=(t="")=>{let e=t.match(Ll);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var Pi=m((nm,Ui)=>{"use strict";var Sr=require("fs"),Kl=xi();function jl(t){let r=Buffer.alloc(150),n;try{n=Sr.openSync(t,"r"),Sr.readSync(n,r,0,150,0),Sr.closeSync(n)}catch{}return Kl(r.toString())}Ui.exports=jl});var Wi=m((im,Ni)=>{"use strict";var kl=require("path"),Fi=Oi(),Ci=qi(),Dl=Pi(),Bl=process.platform==="win32",Gl=/\.(?:com|exe)$/i,$l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Vl(t){t.file=Fi(t);let e=t.file&&Dl(t.file);return e?(t.args.unshift(t.file),t.command=e,Fi(t)):t.file}function zl(t){if(!Bl)return t;let e=Vl(t),r=!Gl.test(e);if(t.options.forceShell||r){let n=$l.test(e);t.command=kl.normalize(t.command),t.command=Ci.command(t.command),t.args=t.args.map(c=>Ci.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Jl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:zl(n)}Ni.exports=Jl});var ji=m((am,Ki)=>{"use strict";var Er=process.platform==="win32";function br(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Xl(t,e){if(!Er)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Li(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Li(t,e){return Er&&t===1&&!e.file?br(e.original,"spawn"):null}function Hl(t,e){return Er&&t===1&&!e.file?br(e.original,"spawnSync"):null}Ki.exports={hookChildProcess:Xl,verifyENOENT:Li,verifyENOENTSync:Hl,notFoundError:br}});var Bi=m((om,Pt)=>{"use strict";var ki=require("child_process"),Rr=Wi(),_r=ji();function Di(t,e,r){let n=Rr(t,e,r),u=ki.spawn(n.command,n.args,n.options);return _r.hookChildProcess(u,n),u}function Zl(t,e,r){let n=Rr(t,e,r),u=ki.spawnSync(n.command,n.args,n.options);return u.error=u.error||_r.verifyENOENTSync(u.status,n),u}Pt.exports=Di;Pt.exports.spawn=Di;Pt.exports.sync=Zl;Pt.exports._parse=Rr;Pt.exports._enoent=_r});var $i=m((um,Gi)=>{"use strict";Gi.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Ji=m((cm,Yt)=>{"use strict";var Zt=require("path"),Vi=gr(),zi=t=>{t=x({cwd:process.cwd(),path:process.env[Vi()],execPath:process.execPath},t);let e,r=Zt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Zt.join(r,"node_modules/.bin")),e=r,r=Zt.resolve(r,"..");let u=Zt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Zt.delimiter)};Yt.exports=zi;Yt.exports.default=zi;Yt.exports.env=t=>{t=x({env:process.env},t);let e=x({},t.env),r=Vi({env:e});return t.path=e[r],e[r]=Yt.exports(t),e}});var Hi=m((sm,Ar)=>{"use strict";var Xi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Ar.exports=Xi;Ar.exports.default=Xi});var Yi=m((fm,be)=>{"use strict";var Yl=Hi(),Ee=new WeakMap,Zi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ee.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Yl(c,t),Ee.set(c,n),c};be.exports=Zi;be.exports.default=Zi;be.exports.callCount=t=>{if(!Ee.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ee.get(t)}});var Qi=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.SIGNALS=void 0;var Ql=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Re.SIGNALS=Ql});var Or=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.SIGRTMAX=Ft.getRealtimeSignals=void 0;var tp=function(){let t=ea-ta+1;return Array.from({length:t},ep)};Ft.getRealtimeSignals=tp;var ep=function(t,e){return{name:`SIGRT${e+1}`,number:ta+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},ta=34,ea=64;Ft.SIGRTMAX=ea});var ra=m(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.getSignals=void 0;var rp=require("os"),np=Qi(),ip=Or(),ap=function(){let t=(0,ip.getRealtimeSignals)();return[...np.SIGNALS,...t].map(op)};_e.getSignals=ap;var op=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=rp.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var ia=m(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.signalsByNumber=Ct.signalsByName=void 0;var up=require("os"),na=ra(),cp=Or(),sp=function(){return(0,na.getSignals)().reduce(fp,{})},fp=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return H(x({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},lp=sp();Ct.signalsByName=lp;var pp=function(){let t=(0,na.getSignals)(),e=cp.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>dp(u,t));return Object.assign({},...r)},dp=function(t,e){let r=mp(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},mp=function(t,e){let r=e.find(({name:n})=>up.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},hp=pp();Ct.signalsByNumber=hp});var oa=m((hm,aa)=>{"use strict";var{signalsByName:vp}=ia(),gp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",yp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:_}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let P=u===void 0?void 0:vp[u].description,$=n&&n.code,X=`Command ${gp({timedOut:v,timeout:_,errorCode:$,signal:u,signalDescription:P,exitCode:c,isCanceled:y})}: ${f}`,_t=Object.prototype.toString.call(n)==="[object Error]",re=_t?`${X} +${n.message}`:X,ne=[re,e,t].filter(Boolean).join(` +`);return _t?(n.originalMessage=n.message,n.message=ne):n=new Error(ne),n.shortMessage=re,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=P,n.stdout=t,n.stderr=e,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};aa.exports=yp});var ca=m((vm,qr)=>{"use strict";var Ae=["stdin","stdout","stderr"],Ip=t=>Ae.some(e=>t[e]!==void 0),ua=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Ae.map(n=>t[n]);if(Ip(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ae.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Ae.length);return Array.from({length:r},(n,u)=>e[u])};qr.exports=ua;qr.exports.node=t=>{let e=ua(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var sa=m((gm,Oe)=>{Oe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Oe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Oe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ma=m((ym,Lt)=>{var A=global.process;typeof A!="object"||!A?Lt.exports=function(){}:(fa=require("assert"),Nt=sa(),la=/^win/i.test(A.platform),Qt=require("events"),typeof Qt!="function"&&(Qt=Qt.EventEmitter),A.__signal_exit_emitter__?N=A.__signal_exit_emitter__:(N=A.__signal_exit_emitter__=new Qt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Lt.exports=function(t,e){if(global.process===A){fa.equal(typeof t,"function","a callback must be provided for exit handler"),Wt===!1&&Tr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&qe()};return N.on(r,t),n}},qe=function(){!Wt||global.process!==A||(Wt=!1,Nt.forEach(function(e){try{A.removeListener(e,Te[e])}catch{}}),A.emit=we,A.reallyExit=wr,N.count-=1)},Lt.exports.unload=qe,bt=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Te={},Nt.forEach(function(t){Te[t]=function(){if(A===global.process){var r=A.listeners(t);r.length===N.count&&(qe(),bt("exit",null,t),bt("afterexit",null,t),la&&t==="SIGHUP"&&(t="SIGINT"),A.kill(A.pid,t))}}}),Lt.exports.signals=function(){return Nt},Wt=!1,Tr=function(){Wt||A!==global.process||(Wt=!0,N.count+=1,Nt=Nt.filter(function(e){try{return A.on(e,Te[e]),!0}catch{return!1}}),A.emit=da,A.reallyExit=pa)},Lt.exports.load=Tr,wr=A.reallyExit,pa=function(e){A===global.process&&(A.exitCode=e||0,bt("exit",A.exitCode,null),bt("afterexit",A.exitCode,null),wr.call(A,A.exitCode))},we=A.emit,da=function(e,r){if(e==="exit"&&A===global.process){r!==void 0&&(A.exitCode=r);var n=we.apply(this,arguments);return bt("exit",A.exitCode,null),bt("afterexit",A.exitCode,null),n}else return we.apply(this,arguments)});var fa,Nt,la,Qt,N,qe,bt,Te,Wt,Tr,wr,pa,we,da});var va=m((Im,ha)=>{"use strict";var Sp=require("os"),Ep=ma(),bp=1e3*5,Rp=(t,e="SIGTERM",r={})=>{let n=t(e);return _p(t,e,r,n),n},_p=(t,e,r,n)=>{if(!Ap(e,r,n))return;let u=qp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},Ap=(t,{forceKillAfterTimeout:e},r)=>Op(t)&&e!==!1&&r,Op=t=>t===Sp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",qp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return bp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Tp=(t,e)=>{t.kill()&&(e.isCanceled=!0)},wp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Mp=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{wp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},xp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Up=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=Ep(()=>{t.kill()});return n.finally(()=>{u()})};ha.exports={spawnedKill:Rp,spawnedCancel:Tp,setupTimeout:Mp,validateTimeout:xp,setExitHandler:Up}});var ya=m((Sm,ga)=>{"use strict";var et=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";et.writable=t=>et(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";et.readable=t=>et(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";et.duplex=t=>et.writable(t)&&et.readable(t);et.transform=t=>et.duplex(t)&&typeof t._transform=="function";ga.exports=et});var Sa=m((Em,Ia)=>{"use strict";var{PassThrough:Pp}=require("stream");Ia.exports=t=>{t=x({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Pp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var Ea=m((bm,te)=>{"use strict";var{constants:Fp}=require("buffer"),Cp=require("stream"),{promisify:Np}=require("util"),Wp=Sa(),Lp=Np(Cp.pipeline),Mr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function xr(t,e){if(!t)throw new Error("Expected a stream");e=x({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=Wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Fp.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Lp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new Mr)})}),n.getBufferedValue()}te.exports=xr;te.exports.buffer=(t,e)=>xr(t,H(x({},e),{encoding:"buffer"}));te.exports.array=(t,e)=>xr(t,H(x({},e),{array:!0}));te.exports.MaxBufferError=Mr});var Ra=m((Rm,ba)=>{"use strict";var{PassThrough:Kp}=require("stream");ba.exports=function(){var t=[],e=new Kp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var qa=m((_m,Oa)=>{"use strict";var Aa=ya(),_a=Ea(),jp=Ra(),kp=(t,e)=>{e===void 0||t.stdin===void 0||(Aa(e)?e.pipe(t.stdin):t.stdin.end(e))},Dp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=jp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Ur=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Pr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?_a(t,{encoding:e,maxBuffer:n}):_a.buffer(t,{maxBuffer:n})},Bp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Pr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Pr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Pr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Ur(t,l),Ur(e,v),Ur(r,y)])}},Gp=({input:t})=>{if(Aa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Oa.exports={handleInput:kp,makeAllStream:Dp,getSpawnedResult:Bp,validateInputSync:Gp}});var wa=m((Am,Ta)=>{"use strict";var $p=(async()=>{})().constructor.prototype,Vp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor($p,t)]),zp=(t,e)=>{for(let[r,n]of Vp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,H(x({},n),{value:u}))}return t},Jp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Ta.exports={mergePromise:zp,getSpawnedPromise:Jp}});var Ua=m((Om,xa)=>{"use strict";var Ma=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Xp=/^[\w.-]+$/,Hp=/"/g,Zp=t=>typeof t!="string"||Xp.test(t)?t:`"${t.replace(Hp,'\\"')}"`,Yp=(t,e)=>Ma(t,e).join(" "),Qp=(t,e)=>Ma(t,e).map(r=>Zp(r)).join(" "),td=/ +/g,ed=t=>{let e=[];for(let r of t.trim().split(td)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};xa.exports={joinCommand:Yp,getEscapedCommand:Qp,parseCommand:ed}});var Ka=m((qm,Kt)=>{"use strict";var rd=require("path"),Fr=require("child_process"),nd=Bi(),id=$i(),ad=Ji(),od=Yi(),Me=oa(),Fa=ca(),{spawnedKill:ud,spawnedCancel:cd,setupTimeout:sd,validateTimeout:fd,setExitHandler:ld}=va(),{handleInput:pd,getSpawnedResult:dd,makeAllStream:md,validateInputSync:hd}=qa(),{mergePromise:Pa,getSpawnedPromise:vd}=wa(),{joinCommand:Ca,parseCommand:Na,getEscapedCommand:Wa}=Ua(),gd=1e3*1e3*100,yd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?x(x({},process.env),t):t;return r?ad.env({env:c,cwd:n,execPath:u}):c},La=(t,e,r={})=>{let n=nd._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=x({maxBuffer:gd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=yd(r),r.stdio=Fa(r),process.platform==="win32"&&rd.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ee=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?id(e):e,xe=(t,e,r)=>{let n=La(t,e,r),u=Ca(t,e),c=Wa(t,e);fd(n.options);let f;try{f=Fr.spawn(n.file,n.args,n.options)}catch($){let V=new Fr.ChildProcess,X=Promise.reject(Me({error:$,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Pa(V,X)}let l=vd(f),v=sd(f,n.options,l),y=ld(f,n.options,v),I={isCanceled:!1};f.kill=ud.bind(null,f.kill.bind(f)),f.cancel=cd.bind(null,f,I);let P=od(async()=>{let[{error:$,exitCode:V,signal:X,timedOut:_t},re,ne,Za]=await dd(f,n.options,y),Lr=ee(n.options,re),Kr=ee(n.options,ne),jr=ee(n.options,Za);if($||V!==0||X!==null){let kr=Me({error:$,exitCode:V,signal:X,stdout:Lr,stderr:Kr,all:jr,command:u,escapedCommand:c,parsed:n,timedOut:_t,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return kr;throw kr}return{command:u,escapedCommand:c,exitCode:0,stdout:Lr,stderr:Kr,all:jr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return pd(f,n.options.input),f.all=md(f,n.options),Pa(f,P)};Kt.exports=xe;Kt.exports.sync=(t,e,r)=>{let n=La(t,e,r),u=Ca(t,e),c=Wa(t,e);hd(n.options);let f;try{f=Fr.spawnSync(n.file,n.args,n.options)}catch(y){throw Me({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=ee(n.options,f.stdout,f.error),v=ee(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=Me({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Kt.exports.command=(t,e)=>{let[r,...n]=Na(t);return xe(r,n,e)};Kt.exports.commandSync=(t,e)=>{let[r,...n]=Na(t);return xe.sync(r,n,e)};Kt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Fa.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return xe(c,[...f,t,...Array.isArray(e)?e:[]],H(x({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var Sd={};ao(Sd,{default:()=>Ha});var j=require("@raycast/api"),za=nt(Xt()),Wr=nt(U()),Ue=nt(me()),Ja=nt(mr()),Xa=require("react");var Nr=nt(Xt()),Da=nt(U()),Rt=nt(mr());var ja=nt(require("node:process"),1),ka=nt(Ka(),1);async function Cr(t){if(ja.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,ka.default)("osascript",["-e",t]);return e}var rt=(t,e)=>Rt.tryCatch(()=>Cr(`tell application "${t}" to ${e}`),Nr.toError),Ba=t=>Rt.tryCatch(()=>Cr(t),Nr.toError),Mm=rt("Music","pause"),xm=rt("Music","play"),Um=rt("Music","stop"),Pm=rt("Music","next track"),Fm=rt("Music","previous track"),Cm=rt("Music","playpause"),Nm=(0,Da.pipe)(rt("Music","player state"),Rt.map(t=>t)),Wm=rt("Music","set loved of current track to true"),Lm=rt("Music","set disliked of current track to true"),Km=rt("Music",'duplicate current track to source "Library"');var Ga=t=>Ba(`set output to "" + set albumList to {} + tell application "Music" + set results to (every track of playlist 1 whose album contains "${t}" or artist contains "${t}") + repeat with aTrack in results + set albumName to the album of aTrack + set trackCount to count (every track of playlist 1 whose album contains albumName) + tell album of aTrack to if albumList does not contain it then + set end of albumList to it + set trackId to the id of aTrack + set artistName to the artist of aTrack + set output to output & "id: " & trackId & " name: " & albumName & " artist: " & artistName & " count: " & trackCount & " +" + end if + end repeat + end tell + return output`),$a=t=>Ba(`tell application "Music" + if (exists playlist "Raycast DJ") then + delete playlist "Raycast DJ" + end if + make new user playlist with properties {name:"Raycast DJ", shuffle:false, song repeat:one} + duplicate (every track of playlist 1 whose album contains "${t}") to playlist "Raycast DJ" + play playlist "Raycast DJ" + end tell`);function Va(t){return t.trim().split(` +`).map(r=>{let n={};return r.split(" ").map(c=>{let[f,...l]=c.split(": "),v=l.join(": ");n=H(x({},n),{[f]:v})}),n})}function Ha(){let[t,e]=(0,Xa.useState)(),{pop:r}=(0,j.useNavigation)();return _jsx(j.List,{isLoading:t===null,searchBarPlaceholder:"Search A Song By Album Or Artist",onSearchTextChange:async u=>{if(e(null),!u||u?.length<1){e([]);return}let c=await(0,Wr.pipe)(u,Ga,Ja.matchW(()=>((0,j.showToast)(j.ToastStyle.Failure,"Could not get albums"),[]),f=>(0,Wr.pipe)(f,Ue.fromNullable,Ue.matchW(()=>[],l=>l?Va(l):[]))))();e(c)},throttle:!0},t&&t?.length>0&&t.map(({id:u,name:c,artist:f,count:l})=>_jsx(j.List.Item,{key:u,title:c,subtitle:f,accessoryTitle:l?`\u{1F3A7} ${l}`:"",icon:{source:"../assets/icon.png"},actions:_jsx(Id,{name:c,pop:r})})))}function Id({name:t,pop:e}){let r=`Start Album "${t}"`,n=async()=>{let u=await $a(t)();if((0,za.isLeft)(u)){(0,j.showToast)(j.ToastStyle.Failure,"Could not play this album");return}await(0,j.closeMainWindow)(),e()};return _jsx(j.ActionPanel,null,_jsx(j.ActionPanel.Item,{title:r,onAction:n}))}module.exports=oo(Sd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play-library-track.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play-library-track.js new file mode 100644 index 0000000..e7d911a --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play-library-track.js @@ -0,0 +1,19 @@ +var Za=Object.create;var jt=Object.defineProperty,Ya=Object.defineProperties,Qa=Object.getOwnPropertyDescriptor,to=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertyNames,Dr=Object.getOwnPropertySymbols,ro=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable;var Br=(t,e,r)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))Gr.call(e,r)&&Br(t,r,e[r]);if(Dr)for(var r of Dr(e))no.call(e,r)&&Br(t,r,e[r]);return t},H=(t,e)=>Ya(t,to(e)),$r=t=>jt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),io=(t,e)=>{for(var r in e)jt(t,r,{get:e[r],enumerable:!0})},Vr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of eo(e))!Gr.call(t,u)&&(r||u!=="default")&&jt(t,u,{get:()=>e[u],enumerable:!(n=Qa(e,u))||n.enumerable});return t},nt=(t,e)=>Vr($r(jt(t!=null?Za(ro(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),ao=(t=>(e,r)=>t&&t.get(e)||(r=Vr($r({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 oo=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=oo;var uo=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=uo;var co=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=co;var so=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=so;var fo=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=fo;var lo=function(t){return function(e){return e(t)}};h.apply=lo;function Pe(t){return t}h.identity=Pe;h.unsafeCoerce=Pe;function kt(t){return function(){return t}}h.constant=kt;h.constTrue=kt(!0);h.constFalse=kt(!1);h.constNull=kt(null);h.constUndefined=kt(void 0);h.constVoid=h.constUndefined;function po(t){return function(e,r){return t(r,e)}}h.flip=po;function zr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=zr;function mo(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var Ro=U();function _o(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=_o;function Oo(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=Oo;function Ao(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=Ao;function qo(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=qo;function To(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=To;function Ce(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.getFunctorComposition=tt.bindTo=tt.flap=tt.map=void 0;var Po=U();function Xr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}tt.map=Xr;function Fo(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}tt.flap=Fo;function Co(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}tt.bindTo=Co;function No(t,e){var r=Xr(t,e);return{map:function(n,u){return Po.pipe(n,r(u))}}}tt.getFunctorComposition=No});var Dt=m(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.getApplicativeComposition=Ot.getApplicativeMonoid=void 0;var Hr=dt(),Wo=U(),Lo=et();function Ko(t){var e=Hr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}Ot.getApplicativeMonoid=Ko;function jo(t,e){var r=Lo.getFunctorComposition(t,e).map,n=Hr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return Wo.pipe(u,n(c))}}}Ot.getApplicativeComposition=jo});var mt=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.bind=At.chainFirst=void 0;function ko(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}At.chainFirst=ko;function Do(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}At.bind=Do});var Zr=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.tailRec=void 0;var Bo=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};ie.tailRec=Bo});var ot=m(b=>{"use strict";var Go=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=Qo;var tu=function(t){return t[0]};b.head=tu;var eu=function(t){return t.slice(1)};b.tail=eu;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var ru=function(t){return Go([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=ru});var ae=m(w=>{"use strict";var nu=w&&w.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),iu=w&&w.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),au=w&&w.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nu(e,t,r);return iu(e,t),e};Object.defineProperty(w,"__esModule",{value:!0});w.filterOrElse=w.chainEitherK=w.fromEitherK=w.chainOptionK=w.fromOptionK=w.fromPredicate=w.fromOption=void 0;var Yr=U(),ht=au(ot());function Qr(t){return function(e){return function(r){return t.fromEither(ht.isNone(r)?ht.left(e()):ht.right(r.value))}}}w.fromOption=Qr;function ou(t){return function(e,r){return function(n){return t.fromEither(e(n)?ht.right(n):ht.left(r(n)))}}}w.fromPredicate=ou;function tn(t){var e=Qr(t);return function(r){var n=e(r);return function(u){return Yr.flow(u,n)}}}w.fromOptionK=tn;function uu(t,e){var r=tn(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}w.chainOptionK=uu;function en(t){return function(e){return Yr.flow(e,t.fromEither)}}w.fromEitherK=en;function cu(t,e){var r=en(t);return function(n){return function(u){return e.chain(u,r(n))}}}w.chainEitherK=cu;function su(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?ht.right(c):ht.left(n(c)))})}}}w.filterOrElse=su});var Bt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Ne=U(),fu=et(),lu=function(t,e){return{left:t,right:e}};E.separated=lu;var pu=function(t,e){return Ne.pipe(t,E.map(e))},du=function(t,e){return Ne.pipe(t,E.mapLeft(e))},mu=function(t,e,r){return Ne.pipe(t,E.bimap(e,r))},hu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=hu;var vu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=vu;var gu=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=gu;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:du,bimap:mu};E.Functor={URI:E.URI,map:pu};E.flap=fu.flap(E.Functor);var yu=function(t){return t.left};E.left=yu;var Iu=function(t){return t.right};E.right=Iu});var We=m(k=>{"use strict";var Su=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Eu=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bu=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Su(e,t,r);return Eu(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.filterE=k.witherDefault=k.wiltDefault=void 0;var rn=bu(ot());function Ru(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}k.wiltDefault=Ru;function _u(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}k.witherDefault=_u;function Ou(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?rn.some(c):rn.none})})}}}}k.filterE=Ou});var Xt=m(i=>{"use strict";var Au=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),qu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Tu=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Au(e,t,r);return qu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var an=Dt(),Gt=dt(),on=mt(),wu=Zr(),$t=ae(),C=U(),un=et(),ut=Tu(ot()),it=Bt(),nn=We();i.left=ut.left;i.right=ut.right;var K=function(t,e){return C.pipe(t,i.map(e))},vt=function(t,e){return C.pipe(t,i.ap(e))},qt=function(t,e){return C.pipe(t,i.chain(e))},Vt=function(t,e,r){return C.pipe(t,i.reduce(e,r))},zt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},Jt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},oe=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Le=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ke=function(t,e){return C.pipe(t,i.mapLeft(e))},cn=function(t,e){return C.pipe(t,i.alt(e))},je=function(t,e){return C.pipe(t,i.extend(e))},ke=function(t,e){return wu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var Mu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=Mu;var xu=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=xu;var Uu=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Uu;var Pu=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?it.separated(r,r):i.isLeft(r.right)?it.separated(i.right(r.right.left),e):it.separated(e,i.right(r.right.right))}}};i.getCompactable=Pu;var Fu=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?it.separated(l,l):v(l.right)?it.separated(e,i.right(l.right)):it.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return it.separated(l,l);var y=v(l.right);return i.isLeft(y)?it.separated(i.right(y.left),e):it.separated(e,i.right(y.right))}}};i.getFilterable=Fu;var Cu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:oe,sequence:i.sequence,reduce:Vt,foldMap:zt,reduceRight:Jt,wither:nn.witherDefault(i.Traversable,r),wilt:nn.wiltDefault(i.Traversable,r)}};i.getWitherable=Cu;var Nu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=Nu;var Wu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Wu;var Lu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Lu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var Ku=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=Ku;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:vt};i.Applicative={URI:i.URI,map:K,ap:vt,of:i.of};var ju=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=ju;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:vt,chain:qt};i.Monad={URI:i.URI,map:K,ap:vt,of:i.of,chain:qt};var ku=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=ku;var Du=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Du;var Bu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Bu;i.Foldable={URI:i.URI,reduce:Vt,foldMap:zt,reduceRight:Jt};var Gu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=$u;i.Traversable={URI:i.URI,map:K,reduce:Vt,foldMap:zt,reduceRight:Jt,traverse:oe,sequence:i.sequence};var Vu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Vu;var zu=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=zu;i.Bifunctor={URI:i.URI,bimap:Le,mapLeft:Ke};var Ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=Ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:cn};var Xu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=Xu;i.Extend={URI:i.URI,map:K,extend:je};i.ChainRec={URI:i.URI,map:K,ap:vt,chain:qt,chainRec:ke};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:vt,of:i.of,chain:qt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=$t.fromPredicate(i.FromEither);i.fromOption=$t.fromOption(i.FromEither);i.isLeft=ut.isLeft;i.isRight=ut.isRight;var Hu=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Hu;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Zu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Zu;i.getOrElse=i.getOrElseW;i.flap=un.flap(i.Functor);i.apFirst=Gt.apFirst(i.Apply);i.apSecond=Gt.apSecond(i.Apply);i.chainFirst=on.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=$t.fromOptionK(i.FromEither);i.chainOptionK=$t.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=$t.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Yu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Yu;var Qu=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=Qu;i.orElse=i.orElseW;var tc=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=tc;var ec=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=ec;var rc=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Tt=U(),hc=function(t,e){return Tt.pipe(t,A.contramap(e))},vc=function(t){return function(e){return Tt.flow(t,e)}};A.contramap=vc;A.URI="Predicate";var gc=function(){return{concat:function(t,e){return Tt.pipe(t,A.or(e))}}};A.getSemigroupAny=gc;var yc=function(){return{concat:A.getSemigroupAny().concat,empty:Tt.constFalse}};A.getMonoidAny=yc;var Ic=function(){return{concat:function(t,e){return Tt.pipe(t,A.and(e))}}};A.getSemigroupAll=Ic;var Sc=function(){return{concat:A.getSemigroupAll().concat,empty:Tt.constTrue}};A.getMonoidAll=Sc;A.Contravariant={URI:A.URI,contramap:hc};var Ec=function(t){return function(e){return!t(e)}};A.not=Ec;var bc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=bc;var Rc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=Rc});var fn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.concatAll=z.endo=z.filterSecond=z.filterFirst=z.reverse=void 0;var _c=function(t){return{concat:function(e,r){return t.concat(r,e)}}};z.reverse=_c;var Oc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};z.filterFirst=Oc;var Ac=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};z.filterSecond=Ac;var qc=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};z.endo=qc;var Tc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};z.concatAll=Tc});var ln=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var wc=U(),Mc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=Mc;var xc=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=xc;var Uc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Lc=ln(),ue=U(),Kc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=Kc;var jc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=jc;var kc=function(){for(var t=[],e=0;e-1?e:r}};p.max=Qc;var ts=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=ts;var es=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=es;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function rs(t,e){return te?1:0}var Be={equals:Lc.eqStrict.equals,compare:rs};p.ordBoolean=Be;p.ordString=Be;p.ordNumber=Be;p.ordDate=ue.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var vn=m(d=>{"use strict";var ns=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),is=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ge=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ns(e,t,r);return is(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var dn=U(),as=Ge(ot()),mn=Ge(fn()),hn=Ge(pn()),os=function(t){return{concat:hn.min(t)}};d.min=os;var us=function(t){return{concat:hn.max(t)}};d.max=us;var cs=function(t){return{concat:function(){return t}}};d.constant=cs;d.reverse=mn.reverse;var ss=function(t){return{concat:function(e,r){var n={};for(var u in t)as.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=ss;var fs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.guard=void 0;function vs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ce.guard=vs});var me=m(o=>{"use strict";var gs=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ys=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Is=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gs(e,t,r);return ys(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var Ss=Dt(),se=dt(),yn=mt(),In=ae(),M=U(),Sn=et(),gt=Is(ot()),Es=De(),En=vn(),$e=Bt(),bn=We(),bs=gn();o.none=gt.none;o.some=gt.some;function Rs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=Rs;var _s=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=_s;var Os=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=Os;var B=function(t,e){return M.pipe(t,o.map(e))},yt=function(t,e){return M.pipe(t,o.ap(e))},fe=function(t,e){return M.pipe(t,o.chain(e))},le=function(t,e,r){return M.pipe(t,o.reduce(e,r))},pe=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},de=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Ve=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},ze=function(t,e){return M.pipe(t,o.alt(e))},Ht=function(t,e){return M.pipe(t,o.filter(e))},Je=function(t,e){return M.pipe(t,o.filterMap(e))},Rn=function(t,e){return M.pipe(t,o.extend(e))},Xe=function(t,e){return M.pipe(t,o.partition(e))},He=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var As=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=As;var qs=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=qs;var Ts=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ts;var ws=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=ws;var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=Ms;o.Functor={URI:o.URI,map:B};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var xs=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=xs;o.Apply={URI:o.URI,map:B,ap:yt};o.Applicative={URI:o.URI,map:B,ap:yt,of:o.of};var Us=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Us;o.Chain={URI:o.URI,map:B,ap:yt,chain:fe};o.Monad={URI:o.URI,map:B,ap:yt,of:o.of,chain:fe};var Ps=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Ps;var Fs=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=Fs;var Cs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=Cs;o.Foldable={URI:o.URI,reduce:le,foldMap:pe,reduceRight:de};var Ns=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=Ns;o.alt=o.altW;o.Alt={URI:o.URI,map:B,alt:ze};var Ws=function(){return o.none};o.zero=Ws;o.Zero={URI:o.URI,zero:o.zero};o.guard=bs.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:B,ap:yt,of:o.of,alt:ze,zero:o.zero};var Ls=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ls;o.Extend={URI:o.URI,map:B,extend:Rn};o.compact=o.chain(M.identity);var Ks=$e.separated(o.none,o.none),js=function(t){return o.isNone(t)?Ks:$e.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=js;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var ks=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=ks;var Ds=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ds;var Bs=function(t){return function(e){return $e.separated(Ht(e,Es.not(t)),Ht(e,t))}};o.partition=Bs;var Gs=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Gs;o.Filterable={URI:o.URI,map:B,compact:o.compact,separate:o.separate,filter:Ht,filterMap:Je,partition:Xe,partitionMap:He};var $s=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=$s;var Vs=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Vs;o.Traversable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:Ve,sequence:o.sequence};var Ze=bn.witherDefault(o.Traversable,o.Compactable),Ye=bn.wiltDefault(o.Traversable,o.Compactable),zs=function(t){var e=Ze(t);return function(r){return function(n){return e(n,r)}}};o.wither=zs;var Js=function(t){var e=Ye(t);return function(r){return function(n){return e(n,r)}}};o.wilt=Js;o.Witherable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:Ve,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Ht,filterMap:Je,partition:Xe,partitionMap:He,wither:Ze,wilt:Ye};var Xs=function(){return o.none};o.throwError=Xs;o.MonadThrow={URI:o.URI,map:B,ap:yt,of:o.of,chain:fe,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=gt.isSome;var Hs=function(t){return t._tag==="None"};o.isNone=Hs;var Zs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Zs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Ys=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Ys;o.getOrElse=o.getOrElseW;o.flap=Sn.flap(o.Functor);o.apFirst=se.apFirst(o.Apply);o.apSecond=se.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=yn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=In.fromEitherK(o.FromEither);o.chainEitherK=In.chainEitherK(o.FromEither,o.Chain);var Qs=function(t){return t==null?o.none:o.some(t)};o.fromNullable=Qs;var tf=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=tf;var ef=function(t){return function(){for(var e=[],r=0;r{"use strict";var pf=D&&D.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),df=D&&D.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mf=D&&D.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pf(e,t,r);return df(e,t),e};Object.defineProperty(D,"__esModule",{value:!0});D.getCompactableComposition=D.separate=D.compact=void 0;var On=U(),qn=et(),An=me(),hf=mf(Bt());function Qe(t,e){return function(r){return t.map(r,e.compact)}}D.compact=Qe;function Tn(t,e,r){var n=Qe(t,e),u=qn.map(t,r);return function(c){return hf.separated(n(On.pipe(c,u(An.getLeft))),n(On.pipe(c,u(An.getRight))))}}D.separate=Tn;function vf(t,e){var r=qn.getFunctorComposition(t,e).map;return{map:r,compact:Qe(t,e),separate:Tn(t,e,e)}}D.getCompactableComposition=vf});var kn=m(S=>{"use strict";var gf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),yf=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),If=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gf(e,t,r);return yf(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var Sf=dt(),T=If(Xt()),Z=U(),Ef=et();function er(t){return Z.flow(T.right,t.of)}S.right=er;function wn(t){return Z.flow(T.left,t.of)}S.left=wn;function Mn(t){return function(e){return t.map(e,T.right)}}S.rightF=Mn;function xn(t){return function(e){return t.map(e,T.left)}}S.leftF=xn;function Un(t){return Ef.map(t,T.Functor)}S.map=Un;function Pn(t){return Sf.ap(t,T.Apply)}S.ap=Pn;function Fn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=Fn;function Cn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e():t.of(n)})}}}S.alt=Cn;function Nn(t){return function(e,r){return function(n){return t.map(n,T.bimap(e,r))}}}S.bimap=Nn;function Wn(t){return function(e){return function(r){return t.map(r,T.mapLeft(e))}}}S.mapLeft=Wn;function bf(t,e){return function(r){return function(n){return t.chain(n,T.match(function(u){return t.map(r(),T.mapLeft(function(c){return e.concat(u,c)}))},er(t)))}}}S.altValidation=bf;function Rf(t){return function(e,r){return function(n){return t.map(n,T.match(e,r))}}}S.match=Rf;function Ln(t){return function(e,r){return function(n){return t.chain(n,T.match(e,r))}}}S.matchE=Ln;function Kn(t){return function(e){return function(r){return t.chain(r,T.match(e,t.of))}}}S.getOrElse=Kn;function rr(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=rr;function _f(t){var e=rr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return T.isLeft(u)?u:T.left(n)})})}}S.orElseFirst=_f;function Of(t){return function(e){return function(r){return t.chain(r,T.match(function(n){return t.map(e(n),T.left)},function(n){return t.of(T.right(n))}))}}}S.orLeft=Of;function jn(t){return function(e){return t.map(e,T.swap)}}S.swap=jn;function Af(t){return function(e){return t.map(e,T.toUnion)}}S.toUnion=Af;function qf(t){var e=Pn(t),r=Un(t),n=Fn(t),u=Cn(t),c=Nn(t),f=Wn(t),l=Ln(t),v=Kn(t),y=rr(t);return{map:function(I,_){return Z.pipe(I,r(_))},ap:function(I,_){return Z.pipe(I,e(_))},of:er(t),chain:function(I,_){return Z.pipe(I,n(_))},alt:function(I,_){return Z.pipe(I,u(_))},bimap:function(I,_,P){return Z.pipe(I,c(_,P))},mapLeft:function(I,_){return Z.pipe(I,f(_))},fold:function(I,_,P){return Z.pipe(I,l(_,P))},getOrElse:function(I,_){return Z.pipe(I,v(_))},orElse:function(I,_){return Z.pipe(I,y(_))},swap:jn(t),rightM:Mn(t),leftM:xn(t),left:wn(t)}}S.getEitherM=qf});var zn=m(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.getFilterableComposition=J.partitionMap=J.partition=J.filterMap=J.filter=void 0;var Dn=tr(),wt=U(),Tf=et(),Bn=me(),wf=De(),Gn=Bt();function nr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}J.filter=nr;function ir(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}J.filterMap=ir;function $n(t,e){var r=nr(t,e);return function(n){var u=r(wf.not(n)),c=r(n);return function(f){return Gn.separated(u(f),c(f))}}}J.partition=$n;function Vn(t,e){var r=ir(t,e);return function(n){return function(u){return Gn.separated(wt.pipe(u,r(function(c){return Bn.getLeft(n(c))})),wt.pipe(u,r(function(c){return Bn.getRight(n(c))})))}}}J.partitionMap=Vn;function Mf(t,e){var r=Tf.getFunctorComposition(t,e).map,n=Dn.compact(t,e),u=Dn.separate(t,e,e),c=nr(t,e),f=ir(t,e),l=$n(t,e),v=Vn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return wt.pipe(y,c(I))},filterMap:function(y,I){return wt.pipe(y,f(I))},partition:function(y,I){return wt.pipe(y,l(I))},partitionMap:function(y,I){return wt.pipe(y,v(I))}}}J.getFilterableComposition=Mf});var or=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.chainFirstIOK=ct.chainIOK=ct.fromIOK=void 0;var xf=mt(),ar=U();function Uf(t){return function(e){return ar.flow(e,t.fromIO)}}ct.fromIOK=Uf;function Pf(t,e){return function(r){var n=ar.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ct.chainIOK=Pf;function Ff(t,e){var r=xf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromIO))}}ct.chainFirstIOK=Ff});var Jn=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.chainFirstTaskK=st.chainTaskK=st.fromTaskK=void 0;var Cf=mt(),ur=U();function Nf(t){return function(e){return ur.flow(e,t.fromTask)}}st.fromTaskK=Nf;function Wf(t,e){return function(r){var n=ur.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}st.chainTaskK=Wf;function Lf(t,e){var r=Cf.chainFirst(e);return function(n){return r(ur.flow(n,t.fromTask))}}st.chainFirstTaskK=Lf});var Zn=m(s=>{"use strict";var Kf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),jf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),kf=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Kf(e,t,r);return jf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Df=Dt(),he=dt(),Xn=mt(),cr=or(),at=U(),Hn=et(),It=kf(ot()),Bf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Bf;function Gf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Gf;var Y=function(t,e){return at.pipe(t,s.map(e))},St=function(t,e){return at.pipe(t,s.ap(e))},sr=function(t,e){return at.pipe(t,s.chain(function(r){return at.pipe(e,s.map(r))}))},Mt=function(t,e){return at.pipe(t,s.chain(e))},$f=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=$f;var Vf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Vf;var zf=function(t){return function(){return Promise.resolve(t)}};s.of=zf;var Jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=Jf;s.flatten=s.chain(at.identity);s.URI="Task";function Xf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=Xf;s.Functor={URI:s.URI,map:Y};s.flap=Hn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:Y,ap:St};s.apFirst=he.apFirst(s.ApplyPar);s.apSecond=he.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:Y,ap:St,of:s.of};s.ApplySeq={URI:s.URI,map:Y,ap:sr};s.ApplicativeSeq={URI:s.URI,map:Y,ap:sr,of:s.of};s.Chain={URI:s.URI,map:Y,ap:St,chain:Mt};s.Monad={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt};s.MonadIO={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt,fromIO:s.fromIO};s.fromTask=at.identity;s.MonadTask={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Xn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=cr.fromIOK(s.FromIO);s.chainIOK=cr.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=cr.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Hf=function(){return new Promise(function(t){})};s.never=Hf;s.Do=s.of(It.emptyRecord);s.bindTo=Hn.bindTo(s.Functor);s.bind=Xn.bind(s.Chain);s.apS=he.apS(s.ApplyPar);s.ApT=s.of(It.emptyReadonlyArray);var Zf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Zf;var Yf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return It.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Yf;var Qf=function(t){return function(e){return function(){return It.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,It.head(e))).then(It.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=Qf;var tl=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return It.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=tl;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var el=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=el;s.sequenceArray=s.traverseArray(at.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var rl=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=rl;s.sequenceSeqArray=s.traverseSeqArray(at.identity);s.task={URI:s.URI,map:Y,of:s.of,ap:St,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:Y,of:s.of,ap:sr,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=he.getApplySemigroup(s.ApplySeq);s.getMonoid=Df.getApplicativeMonoid(s.ApplicativeSeq)});var mr=m(a=>{"use strict";var nl=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),il=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ge=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nl(e,t,r);return il(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var al=Dt(),xt=dt(),Qn=mt(),Yn=tr(),ft=ge(Xt()),F=ge(kn()),ve=zn(),Et=ae(),fr=or(),lr=Jn(),q=U(),ti=et(),G=ge(ot()),R=ge(Zn());a.left=F.left(R.Pointed);a.right=F.right(R.Pointed);a.rightTask=F.rightF(R.Functor);a.leftTask=F.leftF(R.Functor);a.rightIO=q.flow(R.fromIO,a.rightTask);a.leftIO=q.flow(R.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=R.of;a.fromIOEither=R.fromIO;var ol=function(t){return R.map(ft.fromOption(t))};a.fromTaskOption=ol;a.match=F.match(R.Functor);a.matchW=a.match;a.matchE=F.matchE(R.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=F.getOrElse(R.Monad);a.getOrElseW=a.getOrElse;var ul=function(t,e){return function(){return t().then(G.right,function(r){return G.left(e(r))})}};a.tryCatch=ul;var cl=function(t,e){return function(){for(var r=[],n=0;n{oi.exports=ai;ai.sync=Al;var ni=require("fs");function Ol(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{li.exports=si;si.sync=ql;var ci=require("fs");function si(t,e,r){ci.stat(t,function(n,u){r(n,n?!1:fi(u,e))})}function ql(t,e){return fi(ci.statSync(t),e)}function fi(t,e){return t.isFile()&&Tl(t,e)}function Tl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,_=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return _}});var mi=m((Hd,di)=>{var Xd=require("fs"),Se;process.platform==="win32"||global.TESTING_WINDOWS?Se=ui():Se=pi();di.exports=hr;hr.sync=wl;function hr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){hr(t,e||{},function(c,f){c?u(c):n(f)})})}Se(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function wl(t,e){try{return Se.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Ei=m((Zd,Si)=>{var Ut=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",hi=require("path"),Ml=Ut?";":":",vi=mi(),gi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),yi=(t,e)=>{let r=e.colon||Ml,n=t.match(/\//)||Ut&&t.match(/\\/)?[""]:[...Ut?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Ut?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Ut?u.split(r):[""];return Ut&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},Ii=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=yi(t,e),f=[],l=y=>new Promise((I,_)=>{if(y===n.length)return e.all&&f.length?I(f):_(gi(t));let P=n[y],$=/^".*"$/.test(P)?P.slice(1,-1):P,V=hi.join($,t),X=!$&&/^\.[\\\/]/.test(t)?t.slice(0,2)+V:V;I(v(X,y,0))}),v=(y,I,_)=>new Promise((P,$)=>{if(_===u.length)return P(l(I+1));let V=u[_];vi(y+V,{pathExt:c},(X,_t)=>{if(!X&&_t)if(e.all)f.push(y+V);else return P(y+V);return P(v(y,I,_+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},xl=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=yi(t,e),c=[];for(let f=0;f{"use strict";var bi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};vr.exports=bi;vr.exports.default=bi});var Ai=m((Qd,Oi)=>{"use strict";var Ri=require("path"),Ul=Ei(),Pl=gr();function _i(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Ul.sync(t.command,{path:r[Pl({env:r})],pathExt:e?Ri.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=Ri.resolve(u?t.options.cwd:"",f)),f}function Fl(t){return _i(t)||_i(t,!0)}Oi.exports=Fl});var qi=m((tm,Ir)=>{"use strict";var yr=/([()\][%!^"`<>&|;, *?])/g;function Cl(t){return t=t.replace(yr,"^$1"),t}function Nl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(yr,"^$1"),e&&(t=t.replace(yr,"^$1")),t}Ir.exports.command=Cl;Ir.exports.argument=Nl});var wi=m((em,Ti)=>{"use strict";Ti.exports=/^#!(.*)/});var xi=m((rm,Mi)=>{"use strict";var Wl=wi();Mi.exports=(t="")=>{let e=t.match(Wl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var Pi=m((nm,Ui)=>{"use strict";var Sr=require("fs"),Ll=xi();function Kl(t){let r=Buffer.alloc(150),n;try{n=Sr.openSync(t,"r"),Sr.readSync(n,r,0,150,0),Sr.closeSync(n)}catch{}return Ll(r.toString())}Ui.exports=Kl});var Wi=m((im,Ni)=>{"use strict";var jl=require("path"),Fi=Ai(),Ci=qi(),kl=Pi(),Dl=process.platform==="win32",Bl=/\.(?:com|exe)$/i,Gl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function $l(t){t.file=Fi(t);let e=t.file&&kl(t.file);return e?(t.args.unshift(t.file),t.command=e,Fi(t)):t.file}function Vl(t){if(!Dl)return t;let e=$l(t),r=!Bl.test(e);if(t.options.forceShell||r){let n=Gl.test(e);t.command=jl.normalize(t.command),t.command=Ci.command(t.command),t.args=t.args.map(c=>Ci.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function zl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Vl(n)}Ni.exports=zl});var ji=m((am,Ki)=>{"use strict";var Er=process.platform==="win32";function br(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Jl(t,e){if(!Er)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Li(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Li(t,e){return Er&&t===1&&!e.file?br(e.original,"spawn"):null}function Xl(t,e){return Er&&t===1&&!e.file?br(e.original,"spawnSync"):null}Ki.exports={hookChildProcess:Jl,verifyENOENT:Li,verifyENOENTSync:Xl,notFoundError:br}});var Bi=m((om,Pt)=>{"use strict";var ki=require("child_process"),Rr=Wi(),_r=ji();function Di(t,e,r){let n=Rr(t,e,r),u=ki.spawn(n.command,n.args,n.options);return _r.hookChildProcess(u,n),u}function Hl(t,e,r){let n=Rr(t,e,r),u=ki.spawnSync(n.command,n.args,n.options);return u.error=u.error||_r.verifyENOENTSync(u.status,n),u}Pt.exports=Di;Pt.exports.spawn=Di;Pt.exports.sync=Hl;Pt.exports._parse=Rr;Pt.exports._enoent=_r});var $i=m((um,Gi)=>{"use strict";Gi.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Ji=m((cm,Yt)=>{"use strict";var Zt=require("path"),Vi=gr(),zi=t=>{t=x({cwd:process.cwd(),path:process.env[Vi()],execPath:process.execPath},t);let e,r=Zt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Zt.join(r,"node_modules/.bin")),e=r,r=Zt.resolve(r,"..");let u=Zt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Zt.delimiter)};Yt.exports=zi;Yt.exports.default=zi;Yt.exports.env=t=>{t=x({env:process.env},t);let e=x({},t.env),r=Vi({env:e});return t.path=e[r],e[r]=Yt.exports(t),e}});var Hi=m((sm,Or)=>{"use strict";var Xi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Or.exports=Xi;Or.exports.default=Xi});var Yi=m((fm,be)=>{"use strict";var Zl=Hi(),Ee=new WeakMap,Zi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ee.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Zl(c,t),Ee.set(c,n),c};be.exports=Zi;be.exports.default=Zi;be.exports.callCount=t=>{if(!Ee.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ee.get(t)}});var Qi=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.SIGNALS=void 0;var Yl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Re.SIGNALS=Yl});var Ar=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.SIGRTMAX=Ft.getRealtimeSignals=void 0;var Ql=function(){let t=ea-ta+1;return Array.from({length:t},tp)};Ft.getRealtimeSignals=Ql;var tp=function(t,e){return{name:`SIGRT${e+1}`,number:ta+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},ta=34,ea=64;Ft.SIGRTMAX=ea});var ra=m(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.getSignals=void 0;var ep=require("os"),rp=Qi(),np=Ar(),ip=function(){let t=(0,np.getRealtimeSignals)();return[...rp.SIGNALS,...t].map(ap)};_e.getSignals=ip;var ap=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=ep.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var ia=m(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.signalsByNumber=Ct.signalsByName=void 0;var op=require("os"),na=ra(),up=Ar(),cp=function(){return(0,na.getSignals)().reduce(sp,{})},sp=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return H(x({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},fp=cp();Ct.signalsByName=fp;var lp=function(){let t=(0,na.getSignals)(),e=up.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>pp(u,t));return Object.assign({},...r)},pp=function(t,e){let r=dp(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},dp=function(t,e){let r=e.find(({name:n})=>op.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},mp=lp();Ct.signalsByNumber=mp});var oa=m((hm,aa)=>{"use strict";var{signalsByName:hp}=ia(),vp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",gp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:_}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let P=u===void 0?void 0:hp[u].description,$=n&&n.code,X=`Command ${vp({timedOut:v,timeout:_,errorCode:$,signal:u,signalDescription:P,exitCode:c,isCanceled:y})}: ${f}`,_t=Object.prototype.toString.call(n)==="[object Error]",re=_t?`${X} +${n.message}`:X,ne=[re,e,t].filter(Boolean).join(` +`);return _t?(n.originalMessage=n.message,n.message=ne):n=new Error(ne),n.shortMessage=re,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=P,n.stdout=t,n.stderr=e,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};aa.exports=gp});var ca=m((vm,qr)=>{"use strict";var Oe=["stdin","stdout","stderr"],yp=t=>Oe.some(e=>t[e]!==void 0),ua=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Oe.map(n=>t[n]);if(yp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Oe.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Oe.length);return Array.from({length:r},(n,u)=>e[u])};qr.exports=ua;qr.exports.node=t=>{let e=ua(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var sa=m((gm,Ae)=>{Ae.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ae.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ae.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ma=m((ym,Lt)=>{var O=global.process;typeof O!="object"||!O?Lt.exports=function(){}:(fa=require("assert"),Nt=sa(),la=/^win/i.test(O.platform),Qt=require("events"),typeof Qt!="function"&&(Qt=Qt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Qt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Lt.exports=function(t,e){if(global.process===O){fa.equal(typeof t,"function","a callback must be provided for exit handler"),Wt===!1&&Tr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&qe()};return N.on(r,t),n}},qe=function(){!Wt||global.process!==O||(Wt=!1,Nt.forEach(function(e){try{O.removeListener(e,Te[e])}catch{}}),O.emit=we,O.reallyExit=wr,N.count-=1)},Lt.exports.unload=qe,bt=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Te={},Nt.forEach(function(t){Te[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(qe(),bt("exit",null,t),bt("afterexit",null,t),la&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Lt.exports.signals=function(){return Nt},Wt=!1,Tr=function(){Wt||O!==global.process||(Wt=!0,N.count+=1,Nt=Nt.filter(function(e){try{return O.on(e,Te[e]),!0}catch{return!1}}),O.emit=da,O.reallyExit=pa)},Lt.exports.load=Tr,wr=O.reallyExit,pa=function(e){O===global.process&&(O.exitCode=e||0,bt("exit",O.exitCode,null),bt("afterexit",O.exitCode,null),wr.call(O,O.exitCode))},we=O.emit,da=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=we.apply(this,arguments);return bt("exit",O.exitCode,null),bt("afterexit",O.exitCode,null),n}else return we.apply(this,arguments)});var fa,Nt,la,Qt,N,qe,bt,Te,Wt,Tr,wr,pa,we,da});var va=m((Im,ha)=>{"use strict";var Ip=require("os"),Sp=ma(),Ep=1e3*5,bp=(t,e="SIGTERM",r={})=>{let n=t(e);return Rp(t,e,r,n),n},Rp=(t,e,r,n)=>{if(!_p(e,r,n))return;let u=Ap(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},_p=(t,{forceKillAfterTimeout:e},r)=>Op(t)&&e!==!1&&r,Op=t=>t===Ip.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Ap=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Ep;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},qp=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Tp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},wp=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Tp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},Mp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},xp=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=Sp(()=>{t.kill()});return n.finally(()=>{u()})};ha.exports={spawnedKill:bp,spawnedCancel:qp,setupTimeout:wp,validateTimeout:Mp,setExitHandler:xp}});var ya=m((Sm,ga)=>{"use strict";var rt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";rt.writable=t=>rt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";rt.readable=t=>rt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";rt.duplex=t=>rt.writable(t)&&rt.readable(t);rt.transform=t=>rt.duplex(t)&&typeof t._transform=="function";ga.exports=rt});var Sa=m((Em,Ia)=>{"use strict";var{PassThrough:Up}=require("stream");Ia.exports=t=>{t=x({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Up({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var Ea=m((bm,te)=>{"use strict";var{constants:Pp}=require("buffer"),Fp=require("stream"),{promisify:Cp}=require("util"),Np=Sa(),Wp=Cp(Fp.pipeline),Mr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function xr(t,e){if(!t)throw new Error("Expected a stream");e=x({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=Np(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Pp.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Wp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new Mr)})}),n.getBufferedValue()}te.exports=xr;te.exports.buffer=(t,e)=>xr(t,H(x({},e),{encoding:"buffer"}));te.exports.array=(t,e)=>xr(t,H(x({},e),{array:!0}));te.exports.MaxBufferError=Mr});var Ra=m((Rm,ba)=>{"use strict";var{PassThrough:Lp}=require("stream");ba.exports=function(){var t=[],e=new Lp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var qa=m((_m,Aa)=>{"use strict";var Oa=ya(),_a=Ea(),Kp=Ra(),jp=(t,e)=>{e===void 0||t.stdin===void 0||(Oa(e)?e.pipe(t.stdin):t.stdin.end(e))},kp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Kp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Ur=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Pr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?_a(t,{encoding:e,maxBuffer:n}):_a.buffer(t,{maxBuffer:n})},Dp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Pr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Pr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Pr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Ur(t,l),Ur(e,v),Ur(r,y)])}},Bp=({input:t})=>{if(Oa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Aa.exports={handleInput:jp,makeAllStream:kp,getSpawnedResult:Dp,validateInputSync:Bp}});var wa=m((Om,Ta)=>{"use strict";var Gp=(async()=>{})().constructor.prototype,$p=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Gp,t)]),Vp=(t,e)=>{for(let[r,n]of $p){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,H(x({},n),{value:u}))}return t},zp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Ta.exports={mergePromise:Vp,getSpawnedPromise:zp}});var Ua=m((Am,xa)=>{"use strict";var Ma=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Jp=/^[\w.-]+$/,Xp=/"/g,Hp=t=>typeof t!="string"||Jp.test(t)?t:`"${t.replace(Xp,'\\"')}"`,Zp=(t,e)=>Ma(t,e).join(" "),Yp=(t,e)=>Ma(t,e).map(r=>Hp(r)).join(" "),Qp=/ +/g,td=t=>{let e=[];for(let r of t.trim().split(Qp)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};xa.exports={joinCommand:Zp,getEscapedCommand:Yp,parseCommand:td}});var Ka=m((qm,Kt)=>{"use strict";var ed=require("path"),Fr=require("child_process"),rd=Bi(),nd=$i(),id=Ji(),ad=Yi(),Me=oa(),Fa=ca(),{spawnedKill:od,spawnedCancel:ud,setupTimeout:cd,validateTimeout:sd,setExitHandler:fd}=va(),{handleInput:ld,getSpawnedResult:pd,makeAllStream:dd,validateInputSync:md}=qa(),{mergePromise:Pa,getSpawnedPromise:hd}=wa(),{joinCommand:Ca,parseCommand:Na,getEscapedCommand:Wa}=Ua(),vd=1e3*1e3*100,gd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?x(x({},process.env),t):t;return r?id.env({env:c,cwd:n,execPath:u}):c},La=(t,e,r={})=>{let n=rd._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=x({maxBuffer:vd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=gd(r),r.stdio=Fa(r),process.platform==="win32"&&ed.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ee=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?nd(e):e,xe=(t,e,r)=>{let n=La(t,e,r),u=Ca(t,e),c=Wa(t,e);sd(n.options);let f;try{f=Fr.spawn(n.file,n.args,n.options)}catch($){let V=new Fr.ChildProcess,X=Promise.reject(Me({error:$,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Pa(V,X)}let l=hd(f),v=cd(f,n.options,l),y=fd(f,n.options,v),I={isCanceled:!1};f.kill=od.bind(null,f.kill.bind(f)),f.cancel=ud.bind(null,f,I);let P=ad(async()=>{let[{error:$,exitCode:V,signal:X,timedOut:_t},re,ne,Ha]=await pd(f,n.options,y),Lr=ee(n.options,re),Kr=ee(n.options,ne),jr=ee(n.options,Ha);if($||V!==0||X!==null){let kr=Me({error:$,exitCode:V,signal:X,stdout:Lr,stderr:Kr,all:jr,command:u,escapedCommand:c,parsed:n,timedOut:_t,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return kr;throw kr}return{command:u,escapedCommand:c,exitCode:0,stdout:Lr,stderr:Kr,all:jr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return ld(f,n.options.input),f.all=dd(f,n.options),Pa(f,P)};Kt.exports=xe;Kt.exports.sync=(t,e,r)=>{let n=La(t,e,r),u=Ca(t,e),c=Wa(t,e);md(n.options);let f;try{f=Fr.spawnSync(n.file,n.args,n.options)}catch(y){throw Me({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=ee(n.options,f.stdout,f.error),v=ee(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=Me({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Kt.exports.command=(t,e)=>{let[r,...n]=Na(t);return xe(r,n,e)};Kt.exports.commandSync=(t,e)=>{let[r,...n]=Na(t);return xe.sync(r,n,e)};Kt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Fa.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return xe(c,[...f,t,...Array.isArray(e)?e:[]],H(x({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var Sd={};io(Sd,{default:()=>Xa});var j=require("@raycast/api"),Va=nt(Xt()),Wr=nt(U()),Ue=nt(me()),za=nt(mr()),Ja=require("react");var Nr=nt(Xt()),Da=nt(U()),Rt=nt(mr());var ja=nt(require("node:process"),1),ka=nt(Ka(),1);async function Cr(t){if(ja.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,ka.default)("osascript",["-e",t]);return e}var Q=(t,e)=>Rt.tryCatch(()=>Cr(`tell application "${t}" to ${e}`),Nr.toError),yd=t=>Rt.tryCatch(()=>Cr(t),Nr.toError),Mm=Q("Music","pause"),xm=Q("Music","play"),Um=Q("Music","stop"),Pm=Q("Music","next track"),Fm=Q("Music","previous track"),Cm=Q("Music","playpause"),Nm=(0,Da.pipe)(Q("Music","player state"),Rt.map(t=>t)),Wm=Q("Music","set loved of current track to true"),Lm=Q("Music","set disliked of current track to true"),Km=Q("Music",'duplicate current track to source "Library"');var Ba=t=>yd(`set output to "" + tell application "Music" + set results to (every track whose name contains "${t}" or artist contains "${t}") + repeat with selectedTrack in results + set trackId to the id of selectedTrack + set trackName to the name of selectedTrack + set albumName to the album of selectedTrack + set artistName to the artist of selectedTrack + set trackDuration to the duration of selectedTrack + set output to output & "id: " & trackId & " name: " & trackName & " artist: " & artistName & " album: " & albumName & " duration: " & trackDuration & " +" + end repeat + end tell + return output`),Ga=t=>Q("Music",`play track "${t}" of playlist 1`);function $a(t){return t.trim().split(` +`).map(r=>{let n={};return r.split(" ").map(c=>{let[f,...l]=c.split(": "),v=l.join(": ");n=H(x({},n),{[f]:v})}),n})}function Xa(){let[t,e]=(0,Ja.useState)(),{pop:r}=(0,j.useNavigation)();return _jsx(j.List,{isLoading:t===null,searchBarPlaceholder:"Search A Song By Title Or Artist",onSearchTextChange:async u=>{if(!u||u?.length<1){e([]);return}let c=await(0,Wr.pipe)(u,Ba,za.matchW(()=>((0,j.showToast)(j.ToastStyle.Failure,"Could not get tracks"),[]),f=>(0,Wr.pipe)(f,Ue.fromNullable,Ue.matchW(()=>[],l=>l?$a(l):[]))))();e(c)},throttle:!0},t?.map(({id:u,name:c,artist:f,album:l})=>_jsx(j.List.Item,{key:u,title:c,subtitle:f,accessoryTitle:`\u{1F4BF} ${l}`,icon:{source:"../assets/icon.png"},actions:_jsx(Id,{name:c,pop:r})})))}function Id({name:t,pop:e}){let r=`Start Track "${t}"`,n=async()=>{let u=await Ga(t)();if((0,Va.isLeft)(u)){(0,j.showToast)(j.ToastStyle.Failure,"Could not play this track");return}await(0,j.closeMainWindow)(),e()};return _jsx(j.ActionPanel,null,_jsx(j.ActionPanel.Item,{title:r,onAction:n}))}module.exports=ao(Sd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play.js new file mode 100644 index 0000000..d47ebef --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/play.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),ja=tt("Music","play"),_m=tt("Music","stop"),Rm=tt("Music","next track"),Om=tt("Music","previous track"),Am=tt("Music","playpause"),qm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),wm=tt("Music","set loved of current track to true"),Tm=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/previous-track.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/previous-track.js new file mode 100644 index 0000000..fa9034e --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/previous-track.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Fo(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Fo;function Po(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Po});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Fe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Fe.pipe(t,E.map(e))},au=function(t,e){return Fe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Fe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Pe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Pe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Fu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Fu;var Pu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Pu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Fc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Pe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Fs;var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Ps;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Fn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Fn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Pn(t){return function(e){return t.map(e,w.swap)}}S.swap=Pn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Fn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Pn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ff=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Pf=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Ff(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Pf.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),P=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=P.left(_.Pointed);a.right=P.right(_.Pointed);a.rightTask=P.rightF(_.Functor);a.leftTask=P.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=P.match(_.Functor);a.matchW=a.match;a.matchE=P.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=P.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Fl=wi(),Pl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Fl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Pl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Pi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Fi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Fi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Pi.exports={hookChildProcess:jl,verifyENOENT:Fi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=F({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=F({env:process.env},t);let e=F({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(F({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Ft=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Pt===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Pt||global.process!==O||(Pt=!1,Ft.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Ft.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Ft},Pt=!1,Or=function(){Pt||O!==global.process||(Pt=!0,N.count+=1,Ft=Ft.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Ft,oa,Zt,N,Oe,St,Ae,Pt,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=F({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=F({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(F({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(F({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Fp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Pp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Fp,getSpawnedResult:Pp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(F({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Pa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?F(F({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Fa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=F({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Fr=Qt(n.options,ee),Pr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Fr,all:Pr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Fr,all:Pr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Fa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(F({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Pa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),_m=tt("Music","play"),Rm=tt("Music","stop"),Om=tt("Music","next track"),ja=tt("Music","previous track"),Am=tt("Music","playpause"),qm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),wm=tt("Music","set loved of current track to true"),Tm=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/start-playlist.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/start-playlist.js new file mode 100644 index 0000000..8361273 --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/start-playlist.js @@ -0,0 +1,18 @@ +var Xa=Object.create;var jt=Object.defineProperty,Ha=Object.defineProperties,Za=Object.getOwnPropertyDescriptor,Ya=Object.getOwnPropertyDescriptors,Qa=Object.getOwnPropertyNames,kr=Object.getOwnPropertySymbols,to=Object.getPrototypeOf,Br=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var Dr=(t,e,r)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,P=(t,e)=>{for(var r in e||(e={}))Br.call(e,r)&&Dr(t,r,e[r]);if(kr)for(var r of kr(e))eo.call(e,r)&&Dr(t,r,e[r]);return t},H=(t,e)=>Ha(t,Ya(e)),Gr=t=>jt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ro=(t,e)=>{for(var r in e)jt(t,r,{get:e[r],enumerable:!0})},$r=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of Qa(e))!Br.call(t,u)&&(r||u!=="default")&&jt(t,u,{get:()=>e[u],enumerable:!(n=Za(e,u))||n.enumerable});return t},_t=(t,e)=>$r(Gr(jt(t!=null?Xa(to(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),no=(t=>(e,r)=>t&&t.get(e)||(r=$r(Gr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 io=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=io;var ao=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=ao;var oo=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=oo;var uo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=uo;var co=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=co;var so=function(t){return function(e){return e(t)}};h.apply=so;function xe(t){return t}h.identity=xe;h.unsafeCoerce=xe;function kt(t){return function(){return t}}h.constant=kt;h.constTrue=kt(!0);h.constFalse=kt(!1);h.constNull=kt(null);h.constUndefined=kt(void 0);h.constVoid=h.constUndefined;function fo(t){return function(e,r){return t(r,e)}}h.flip=fo;function Vr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=Vr;function lo(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var Eo=U();function bo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=bo;function Ro(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=Ro;function _o(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=_o;function Oo(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Oo;function Ao(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=Ao;function Fe(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.getFunctorComposition=tt.bindTo=tt.flap=tt.map=void 0;var Po=U();function Jr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}tt.map=Jr;function xo(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}tt.flap=xo;function Uo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}tt.bindTo=Uo;function Fo(t,e){var r=Jr(t,e);return{map:function(n,u){return Po.pipe(n,r(u))}}}tt.getFunctorComposition=Fo});var Dt=m(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.getApplicativeComposition=Ot.getApplicativeMonoid=void 0;var Xr=pt(),Co=U(),No=et();function Wo(t){var e=Xr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}Ot.getApplicativeMonoid=Wo;function Lo(t,e){var r=No.getFunctorComposition(t,e).map,n=Xr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return Co.pipe(u,n(c))}}}Ot.getApplicativeComposition=Lo});var dt=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.bind=At.chainFirst=void 0;function Ko(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}At.chainFirst=Ko;function jo(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}At.bind=jo});var Hr=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.tailRec=void 0;var ko=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};ie.tailRec=ko});var at=m(b=>{"use strict";var Do=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=Zo;var Yo=function(t){return t[0]};b.head=Yo;var Qo=function(t){return t.slice(1)};b.tail=Qo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var tu=function(t){return Do([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=tu});var ae=m(w=>{"use strict";var eu=w&&w.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ru=w&&w.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nu=w&&w.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&eu(e,t,r);return ru(e,t),e};Object.defineProperty(w,"__esModule",{value:!0});w.filterOrElse=w.chainEitherK=w.fromEitherK=w.chainOptionK=w.fromOptionK=w.fromPredicate=w.fromOption=void 0;var Zr=U(),mt=nu(at());function Yr(t){return function(e){return function(r){return t.fromEither(mt.isNone(r)?mt.left(e()):mt.right(r.value))}}}w.fromOption=Yr;function iu(t){return function(e,r){return function(n){return t.fromEither(e(n)?mt.right(n):mt.left(r(n)))}}}w.fromPredicate=iu;function Qr(t){var e=Yr(t);return function(r){var n=e(r);return function(u){return Zr.flow(u,n)}}}w.fromOptionK=Qr;function au(t,e){var r=Qr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}w.chainOptionK=au;function tn(t){return function(e){return Zr.flow(e,t.fromEither)}}w.fromEitherK=tn;function ou(t,e){var r=tn(t);return function(n){return function(u){return e.chain(u,r(n))}}}w.chainEitherK=ou;function uu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?mt.right(c):mt.left(n(c)))})}}}w.filterOrElse=uu});var Bt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Ce=U(),cu=et(),su=function(t,e){return{left:t,right:e}};E.separated=su;var fu=function(t,e){return Ce.pipe(t,E.map(e))},lu=function(t,e){return Ce.pipe(t,E.mapLeft(e))},pu=function(t,e,r){return Ce.pipe(t,E.bimap(e,r))},du=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=du;var mu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=mu;var hu=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=hu;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:lu,bimap:pu};E.Functor={URI:E.URI,map:fu};E.flap=cu.flap(E.Functor);var vu=function(t){return t.left};E.left=vu;var gu=function(t){return t.right};E.right=gu});var Ne=m(k=>{"use strict";var yu=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.filterE=k.witherDefault=k.wiltDefault=void 0;var en=Su(at());function Eu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}k.wiltDefault=Eu;function bu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}k.witherDefault=bu;function Ru(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?en.some(c):en.none})})}}}}k.filterE=Ru});var Xt=m(i=>{"use strict";var _u=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ou=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Au=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&_u(e,t,r);return Ou(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var nn=Dt(),Gt=pt(),an=dt(),qu=Hr(),$t=ae(),C=U(),on=et(),ot=Au(at()),nt=Bt(),rn=Ne();i.left=ot.left;i.right=ot.right;var K=function(t,e){return C.pipe(t,i.map(e))},ht=function(t,e){return C.pipe(t,i.ap(e))},qt=function(t,e){return C.pipe(t,i.chain(e))},Vt=function(t,e,r){return C.pipe(t,i.reduce(e,r))},zt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},Jt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},oe=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},We=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Le=function(t,e){return C.pipe(t,i.mapLeft(e))},un=function(t,e){return C.pipe(t,i.alt(e))},Ke=function(t,e){return C.pipe(t,i.extend(e))},je=function(t,e){return qu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var Tu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=Tu;var wu=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=wu;var Mu=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Mu;var Pu=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?nt.separated(r,r):i.isLeft(r.right)?nt.separated(i.right(r.right.left),e):nt.separated(e,i.right(r.right.right))}}};i.getCompactable=Pu;var xu=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?nt.separated(l,l):v(l.right)?nt.separated(e,i.right(l.right)):nt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return nt.separated(l,l);var y=v(l.right);return i.isLeft(y)?nt.separated(i.right(y.left),e):nt.separated(e,i.right(y.right))}}};i.getFilterable=xu;var Uu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:oe,sequence:i.sequence,reduce:Vt,foldMap:zt,reduceRight:Jt,wither:rn.witherDefault(i.Traversable,r),wilt:rn.wiltDefault(i.Traversable,r)}};i.getWitherable=Uu;var Fu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=Fu;var Cu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Cu;var Nu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Nu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var Wu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=Wu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:ht};i.Applicative={URI:i.URI,map:K,ap:ht,of:i.of};var Lu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Lu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:ht,chain:qt};i.Monad={URI:i.URI,map:K,ap:ht,of:i.of,chain:qt};var Ku=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Ku;var ju=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=ju;var ku=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=ku;i.Foldable={URI:i.URI,reduce:Vt,foldMap:zt,reduceRight:Jt};var Du=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Du;var Bu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Bu;i.Traversable={URI:i.URI,map:K,reduce:Vt,foldMap:zt,reduceRight:Jt,traverse:oe,sequence:i.sequence};var Gu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=$u;i.Bifunctor={URI:i.URI,bimap:We,mapLeft:Le};var Vu=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=Vu;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:un};var zu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=zu;i.Extend={URI:i.URI,map:K,extend:Ke};i.ChainRec={URI:i.URI,map:K,ap:ht,chain:qt,chainRec:je};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:ht,of:i.of,chain:qt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=$t.fromPredicate(i.FromEither);i.fromOption=$t.fromOption(i.FromEither);i.isLeft=ot.isLeft;i.isRight=ot.isRight;var Ju=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Ju;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Xu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Xu;i.getOrElse=i.getOrElseW;i.flap=on.flap(i.Functor);i.apFirst=Gt.apFirst(i.Apply);i.apSecond=Gt.apSecond(i.Apply);i.chainFirst=an.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=$t.fromOptionK(i.FromEither);i.chainOptionK=$t.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=$t.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Hu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Hu;var Zu=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=Zu;i.orElse=i.orElseW;var Yu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Yu;var Qu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=Qu;var tc=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Tt=U(),dc=function(t,e){return Tt.pipe(t,A.contramap(e))},mc=function(t){return function(e){return Tt.flow(t,e)}};A.contramap=mc;A.URI="Predicate";var hc=function(){return{concat:function(t,e){return Tt.pipe(t,A.or(e))}}};A.getSemigroupAny=hc;var vc=function(){return{concat:A.getSemigroupAny().concat,empty:Tt.constFalse}};A.getMonoidAny=vc;var gc=function(){return{concat:function(t,e){return Tt.pipe(t,A.and(e))}}};A.getSemigroupAll=gc;var yc=function(){return{concat:A.getSemigroupAll().concat,empty:Tt.constTrue}};A.getMonoidAll=yc;A.Contravariant={URI:A.URI,contramap:dc};var Ic=function(t){return function(e){return!t(e)}};A.not=Ic;var Sc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=Sc;var Ec=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=Ec});var sn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.concatAll=z.endo=z.filterSecond=z.filterFirst=z.reverse=void 0;var bc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};z.reverse=bc;var Rc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};z.filterFirst=Rc;var _c=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};z.filterSecond=_c;var Oc=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};z.endo=Oc;var Ac=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};z.concatAll=Ac});var fn=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var qc=U(),Tc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=Tc;var wc=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=wc;var Mc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Nc=fn(),ue=U(),Wc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=Wc;var Lc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Lc;var Kc=function(){for(var t=[],e=0;e-1?e:r}};p.max=Zc;var Yc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Yc;var Qc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=Qc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function ts(t,e){return te?1:0}var De={equals:Nc.eqStrict.equals,compare:ts};p.ordBoolean=De;p.ordString=De;p.ordNumber=De;p.ordDate=ue.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var hn=m(d=>{"use strict";var es=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),rs=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Be=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&es(e,t,r);return rs(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var pn=U(),ns=Be(at()),dn=Be(sn()),mn=Be(ln()),is=function(t){return{concat:mn.min(t)}};d.min=is;var as=function(t){return{concat:mn.max(t)}};d.max=as;var os=function(t){return{concat:function(){return t}}};d.constant=os;d.reverse=dn.reverse;var us=function(t){return{concat:function(e,r){var n={};for(var u in t)ns.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=us;var cs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.guard=void 0;function ms(t,e){return function(r){return r?e.of(void 0):t.zero()}}ce.guard=ms});var Ye=m(o=>{"use strict";var hs=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),vs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gs=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&hs(e,t,r);return vs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ys=Dt(),se=pt(),gn=dt(),yn=ae(),M=U(),In=et(),vt=gs(at()),Is=ke(),Sn=hn(),Ge=Bt(),En=Ne(),Ss=vn();o.none=vt.none;o.some=vt.some;function Es(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=Es;var bs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=bs;var Rs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=Rs;var B=function(t,e){return M.pipe(t,o.map(e))},gt=function(t,e){return M.pipe(t,o.ap(e))},fe=function(t,e){return M.pipe(t,o.chain(e))},le=function(t,e,r){return M.pipe(t,o.reduce(e,r))},pe=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},de=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},$e=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ve=function(t,e){return M.pipe(t,o.alt(e))},Ht=function(t,e){return M.pipe(t,o.filter(e))},ze=function(t,e){return M.pipe(t,o.filterMap(e))},bn=function(t,e){return M.pipe(t,o.extend(e))},Je=function(t,e){return M.pipe(t,o.partition(e))},Xe=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var _s=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=_s;var Os=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Os;var As=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=As;var qs=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=qs;var Ts=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=Ts;o.Functor={URI:o.URI,map:B};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var ws=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=ws;o.Apply={URI:o.URI,map:B,ap:gt};o.Applicative={URI:o.URI,map:B,ap:gt,of:o.of};var Ms=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Ms;o.Chain={URI:o.URI,map:B,ap:gt,chain:fe};o.Monad={URI:o.URI,map:B,ap:gt,of:o.of,chain:fe};var Ps=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Ps;var xs=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=xs;var Us=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=Us;o.Foldable={URI:o.URI,reduce:le,foldMap:pe,reduceRight:de};var Fs=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=Fs;o.alt=o.altW;o.Alt={URI:o.URI,map:B,alt:Ve};var Cs=function(){return o.none};o.zero=Cs;o.Zero={URI:o.URI,zero:o.zero};o.guard=Ss.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:B,ap:gt,of:o.of,alt:Ve,zero:o.zero};var Ns=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ns;o.Extend={URI:o.URI,map:B,extend:bn};o.compact=o.chain(M.identity);var Ws=Ge.separated(o.none,o.none),Ls=function(t){return o.isNone(t)?Ws:Ge.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Ls;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Ks=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Ks;var js=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=js;var ks=function(t){return function(e){return Ge.separated(Ht(e,Is.not(t)),Ht(e,t))}};o.partition=ks;var Ds=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ds;o.Filterable={URI:o.URI,map:B,compact:o.compact,separate:o.separate,filter:Ht,filterMap:ze,partition:Je,partitionMap:Xe};var Bs=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Bs;var Gs=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Gs;o.Traversable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:$e,sequence:o.sequence};var He=En.witherDefault(o.Traversable,o.Compactable),Ze=En.wiltDefault(o.Traversable,o.Compactable),$s=function(t){var e=He(t);return function(r){return function(n){return e(n,r)}}};o.wither=$s;var Vs=function(t){var e=Ze(t);return function(r){return function(n){return e(n,r)}}};o.wilt=Vs;o.Witherable={URI:o.URI,map:B,reduce:le,foldMap:pe,reduceRight:de,traverse:$e,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Ht,filterMap:ze,partition:Je,partitionMap:Xe,wither:He,wilt:Ze};var zs=function(){return o.none};o.throwError=zs;o.MonadThrow={URI:o.URI,map:B,ap:gt,of:o.of,chain:fe,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=vt.isSome;var Js=function(t){return t._tag==="None"};o.isNone=Js;var Xs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Xs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Hs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Hs;o.getOrElse=o.getOrElseW;o.flap=In.flap(o.Functor);o.apFirst=se.apFirst(o.Apply);o.apSecond=se.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=gn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=yn.fromEitherK(o.FromEither);o.chainEitherK=yn.chainEitherK(o.FromEither,o.Chain);var Zs=function(t){return t==null?o.none:o.some(t)};o.fromNullable=Zs;var Ys=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Ys;var Qs=function(t){return function(){for(var e=[],r=0;r{"use strict";var ff=D&&D.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),lf=D&&D.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),pf=D&&D.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ff(e,t,r);return lf(e,t),e};Object.defineProperty(D,"__esModule",{value:!0});D.getCompactableComposition=D.separate=D.compact=void 0;var _n=U(),An=et(),On=Ye(),df=pf(Bt());function Qe(t,e){return function(r){return t.map(r,e.compact)}}D.compact=Qe;function qn(t,e,r){var n=Qe(t,e),u=An.map(t,r);return function(c){return df.separated(n(_n.pipe(c,u(On.getLeft))),n(_n.pipe(c,u(On.getRight))))}}D.separate=qn;function mf(t,e){var r=An.getFunctorComposition(t,e).map;return{map:r,compact:Qe(t,e),separate:qn(t,e,e)}}D.getCompactableComposition=mf});var jn=m(S=>{"use strict";var hf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),vf=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&hf(e,t,r);return vf(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var yf=pt(),T=gf(Xt()),Z=U(),If=et();function er(t){return Z.flow(T.right,t.of)}S.right=er;function Tn(t){return Z.flow(T.left,t.of)}S.left=Tn;function wn(t){return function(e){return t.map(e,T.right)}}S.rightF=wn;function Mn(t){return function(e){return t.map(e,T.left)}}S.leftF=Mn;function Pn(t){return If.map(t,T.Functor)}S.map=Pn;function xn(t){return yf.ap(t,T.Apply)}S.ap=xn;function Un(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=Un;function Fn(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e():t.of(n)})}}}S.alt=Fn;function Cn(t){return function(e,r){return function(n){return t.map(n,T.bimap(e,r))}}}S.bimap=Cn;function Nn(t){return function(e){return function(r){return t.map(r,T.mapLeft(e))}}}S.mapLeft=Nn;function Sf(t,e){return function(r){return function(n){return t.chain(n,T.match(function(u){return t.map(r(),T.mapLeft(function(c){return e.concat(u,c)}))},er(t)))}}}S.altValidation=Sf;function Ef(t){return function(e,r){return function(n){return t.map(n,T.match(e,r))}}}S.match=Ef;function Wn(t){return function(e,r){return function(n){return t.chain(n,T.match(e,r))}}}S.matchE=Wn;function Ln(t){return function(e){return function(r){return t.chain(r,T.match(e,t.of))}}}S.getOrElse=Ln;function rr(t){return function(e){return function(r){return t.chain(r,function(n){return T.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=rr;function bf(t){var e=rr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return T.isLeft(u)?u:T.left(n)})})}}S.orElseFirst=bf;function Rf(t){return function(e){return function(r){return t.chain(r,T.match(function(n){return t.map(e(n),T.left)},function(n){return t.of(T.right(n))}))}}}S.orLeft=Rf;function Kn(t){return function(e){return t.map(e,T.swap)}}S.swap=Kn;function _f(t){return function(e){return t.map(e,T.toUnion)}}S.toUnion=_f;function Of(t){var e=xn(t),r=Pn(t),n=Un(t),u=Fn(t),c=Cn(t),f=Nn(t),l=Wn(t),v=Ln(t),y=rr(t);return{map:function(I,_){return Z.pipe(I,r(_))},ap:function(I,_){return Z.pipe(I,e(_))},of:er(t),chain:function(I,_){return Z.pipe(I,n(_))},alt:function(I,_){return Z.pipe(I,u(_))},bimap:function(I,_,x){return Z.pipe(I,c(_,x))},mapLeft:function(I,_){return Z.pipe(I,f(_))},fold:function(I,_,x){return Z.pipe(I,l(_,x))},getOrElse:function(I,_){return Z.pipe(I,v(_))},orElse:function(I,_){return Z.pipe(I,y(_))},swap:Kn(t),rightM:wn(t),leftM:Mn(t),left:Tn(t)}}S.getEitherM=Of});var Vn=m(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.getFilterableComposition=J.partitionMap=J.partition=J.filterMap=J.filter=void 0;var kn=tr(),wt=U(),Af=et(),Dn=Ye(),qf=ke(),Bn=Bt();function nr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}J.filter=nr;function ir(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}J.filterMap=ir;function Gn(t,e){var r=nr(t,e);return function(n){var u=r(qf.not(n)),c=r(n);return function(f){return Bn.separated(u(f),c(f))}}}J.partition=Gn;function $n(t,e){var r=ir(t,e);return function(n){return function(u){return Bn.separated(wt.pipe(u,r(function(c){return Dn.getLeft(n(c))})),wt.pipe(u,r(function(c){return Dn.getRight(n(c))})))}}}J.partitionMap=$n;function Tf(t,e){var r=Af.getFunctorComposition(t,e).map,n=kn.compact(t,e),u=kn.separate(t,e,e),c=nr(t,e),f=ir(t,e),l=Gn(t,e),v=$n(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return wt.pipe(y,c(I))},filterMap:function(y,I){return wt.pipe(y,f(I))},partition:function(y,I){return wt.pipe(y,l(I))},partitionMap:function(y,I){return wt.pipe(y,v(I))}}}J.getFilterableComposition=Tf});var or=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstIOK=ut.chainIOK=ut.fromIOK=void 0;var wf=dt(),ar=U();function Mf(t){return function(e){return ar.flow(e,t.fromIO)}}ut.fromIOK=Mf;function Pf(t,e){return function(r){var n=ar.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ut.chainIOK=Pf;function xf(t,e){var r=wf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromIO))}}ut.chainFirstIOK=xf});var zn=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.chainFirstTaskK=ct.chainTaskK=ct.fromTaskK=void 0;var Uf=dt(),ur=U();function Ff(t){return function(e){return ur.flow(e,t.fromTask)}}ct.fromTaskK=Ff;function Cf(t,e){return function(r){var n=ur.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ct.chainTaskK=Cf;function Nf(t,e){var r=Uf.chainFirst(e);return function(n){return r(ur.flow(n,t.fromTask))}}ct.chainFirstTaskK=Nf});var Hn=m(s=>{"use strict";var Wf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Lf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Kf=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Wf(e,t,r);return Lf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var jf=Dt(),me=pt(),Jn=dt(),cr=or(),it=U(),Xn=et(),yt=Kf(at()),kf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=kf;function Df(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Df;var Y=function(t,e){return it.pipe(t,s.map(e))},It=function(t,e){return it.pipe(t,s.ap(e))},sr=function(t,e){return it.pipe(t,s.chain(function(r){return it.pipe(e,s.map(r))}))},Mt=function(t,e){return it.pipe(t,s.chain(e))},Bf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Bf;var Gf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Gf;var $f=function(t){return function(){return Promise.resolve(t)}};s.of=$f;var Vf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=Vf;s.flatten=s.chain(it.identity);s.URI="Task";function zf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=zf;s.Functor={URI:s.URI,map:Y};s.flap=Xn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:Y,ap:It};s.apFirst=me.apFirst(s.ApplyPar);s.apSecond=me.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:Y,ap:It,of:s.of};s.ApplySeq={URI:s.URI,map:Y,ap:sr};s.ApplicativeSeq={URI:s.URI,map:Y,ap:sr,of:s.of};s.Chain={URI:s.URI,map:Y,ap:It,chain:Mt};s.Monad={URI:s.URI,map:Y,of:s.of,ap:It,chain:Mt};s.MonadIO={URI:s.URI,map:Y,of:s.of,ap:It,chain:Mt,fromIO:s.fromIO};s.fromTask=it.identity;s.MonadTask={URI:s.URI,map:Y,of:s.of,ap:It,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Jn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=cr.fromIOK(s.FromIO);s.chainIOK=cr.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=cr.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Jf=function(){return new Promise(function(t){})};s.never=Jf;s.Do=s.of(yt.emptyRecord);s.bindTo=Xn.bindTo(s.Functor);s.bind=Jn.bind(s.Chain);s.apS=me.apS(s.ApplyPar);s.ApT=s.of(yt.emptyReadonlyArray);var Xf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Xf;var Hf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return yt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Hf;var Zf=function(t){return function(e){return function(){return yt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,yt.head(e))).then(yt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=Zf;var Yf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return yt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Yf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var Qf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=Qf;s.sequenceArray=s.traverseArray(it.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var tl=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=tl;s.sequenceSeqArray=s.traverseSeqArray(it.identity);s.task={URI:s.URI,map:Y,of:s.of,ap:It,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:Y,of:s.of,ap:sr,chain:Mt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=me.getApplySemigroup(s.ApplySeq);s.getMonoid=jf.getApplicativeMonoid(s.ApplicativeSeq)});var ri=m(a=>{"use strict";var el=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),rl=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ve=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&el(e,t,r);return rl(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var nl=Dt(),Pt=pt(),Yn=dt(),Zn=tr(),st=ve(Xt()),F=ve(jn()),he=Vn(),St=ae(),fr=or(),lr=zn(),q=U(),Qn=et(),G=ve(at()),R=ve(Hn());a.left=F.left(R.Pointed);a.right=F.right(R.Pointed);a.rightTask=F.rightF(R.Functor);a.leftTask=F.leftF(R.Functor);a.rightIO=q.flow(R.fromIO,a.rightTask);a.leftIO=q.flow(R.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=R.of;a.fromIOEither=R.fromIO;var il=function(t){return R.map(st.fromOption(t))};a.fromTaskOption=il;a.match=F.match(R.Functor);a.matchW=a.match;a.matchE=F.matchE(R.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=F.getOrElse(R.Monad);a.getOrElseW=a.getOrElse;var al=function(t,e){return function(){return t().then(G.right,function(r){return G.left(e(r))})}};a.tryCatch=al;var ol=function(t,e){return function(){for(var r=[],n=0;n{oi.exports=ai;ai.sync=_l;var ni=require("fs");function Rl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{li.exports=si;si.sync=Ol;var ci=require("fs");function si(t,e,r){ci.stat(t,function(n,u){r(n,n?!1:fi(u,e))})}function Ol(t,e){return fi(ci.statSync(t),e)}function fi(t,e){return t.isFile()&&Al(t,e)}function Al(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,_=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return _}});var mi=m((Jd,di)=>{var zd=require("fs"),Ie;process.platform==="win32"||global.TESTING_WINDOWS?Ie=ui():Ie=pi();di.exports=mr;mr.sync=ql;function mr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){mr(t,e||{},function(c,f){c?u(c):n(f)})})}Ie(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function ql(t,e){try{return Ie.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Ei=m((Xd,Si)=>{var xt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",hi=require("path"),Tl=xt?";":":",vi=mi(),gi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),yi=(t,e)=>{let r=e.colon||Tl,n=t.match(/\//)||xt&&t.match(/\\/)?[""]:[...xt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=xt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=xt?u.split(r):[""];return xt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},Ii=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=yi(t,e),f=[],l=y=>new Promise((I,_)=>{if(y===n.length)return e.all&&f.length?I(f):_(gi(t));let x=n[y],$=/^".*"$/.test(x)?x.slice(1,-1):x,V=hi.join($,t),X=!$&&/^\.[\\\/]/.test(t)?t.slice(0,2)+V:V;I(v(X,y,0))}),v=(y,I,_)=>new Promise((x,$)=>{if(_===u.length)return x(l(I+1));let V=u[_];vi(y+V,{pathExt:c},(X,Rt)=>{if(!X&&Rt)if(e.all)f.push(y+V);else return x(y+V);return x(v(y,I,_+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},wl=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=yi(t,e),c=[];for(let f=0;f{"use strict";var bi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};hr.exports=bi;hr.exports.default=bi});var Ai=m((Zd,Oi)=>{"use strict";var Ri=require("path"),Ml=Ei(),Pl=vr();function _i(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Ml.sync(t.command,{path:r[Pl({env:r})],pathExt:e?Ri.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=Ri.resolve(u?t.options.cwd:"",f)),f}function xl(t){return _i(t)||_i(t,!0)}Oi.exports=xl});var qi=m((Yd,yr)=>{"use strict";var gr=/([()\][%!^"`<>&|;, *?])/g;function Ul(t){return t=t.replace(gr,"^$1"),t}function Fl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(gr,"^$1"),e&&(t=t.replace(gr,"^$1")),t}yr.exports.command=Ul;yr.exports.argument=Fl});var wi=m((Qd,Ti)=>{"use strict";Ti.exports=/^#!(.*)/});var Pi=m((tm,Mi)=>{"use strict";var Cl=wi();Mi.exports=(t="")=>{let e=t.match(Cl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var Ui=m((em,xi)=>{"use strict";var Ir=require("fs"),Nl=Pi();function Wl(t){let r=Buffer.alloc(150),n;try{n=Ir.openSync(t,"r"),Ir.readSync(n,r,0,150,0),Ir.closeSync(n)}catch{}return Nl(r.toString())}xi.exports=Wl});var Wi=m((rm,Ni)=>{"use strict";var Ll=require("path"),Fi=Ai(),Ci=qi(),Kl=Ui(),jl=process.platform==="win32",kl=/\.(?:com|exe)$/i,Dl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Bl(t){t.file=Fi(t);let e=t.file&&Kl(t.file);return e?(t.args.unshift(t.file),t.command=e,Fi(t)):t.file}function Gl(t){if(!jl)return t;let e=Bl(t),r=!kl.test(e);if(t.options.forceShell||r){let n=Dl.test(e);t.command=Ll.normalize(t.command),t.command=Ci.command(t.command),t.args=t.args.map(c=>Ci.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function $l(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Gl(n)}Ni.exports=$l});var ji=m((nm,Ki)=>{"use strict";var Sr=process.platform==="win32";function Er(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Vl(t,e){if(!Sr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Li(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Li(t,e){return Sr&&t===1&&!e.file?Er(e.original,"spawn"):null}function zl(t,e){return Sr&&t===1&&!e.file?Er(e.original,"spawnSync"):null}Ki.exports={hookChildProcess:Vl,verifyENOENT:Li,verifyENOENTSync:zl,notFoundError:Er}});var Bi=m((im,Ut)=>{"use strict";var ki=require("child_process"),br=Wi(),Rr=ji();function Di(t,e,r){let n=br(t,e,r),u=ki.spawn(n.command,n.args,n.options);return Rr.hookChildProcess(u,n),u}function Jl(t,e,r){let n=br(t,e,r),u=ki.spawnSync(n.command,n.args,n.options);return u.error=u.error||Rr.verifyENOENTSync(u.status,n),u}Ut.exports=Di;Ut.exports.spawn=Di;Ut.exports.sync=Jl;Ut.exports._parse=br;Ut.exports._enoent=Rr});var $i=m((am,Gi)=>{"use strict";Gi.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Ji=m((om,Yt)=>{"use strict";var Zt=require("path"),Vi=vr(),zi=t=>{t=P({cwd:process.cwd(),path:process.env[Vi()],execPath:process.execPath},t);let e,r=Zt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Zt.join(r,"node_modules/.bin")),e=r,r=Zt.resolve(r,"..");let u=Zt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Zt.delimiter)};Yt.exports=zi;Yt.exports.default=zi;Yt.exports.env=t=>{t=P({env:process.env},t);let e=P({},t.env),r=Vi({env:e});return t.path=e[r],e[r]=Yt.exports(t),e}});var Hi=m((um,_r)=>{"use strict";var Xi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};_r.exports=Xi;_r.exports.default=Xi});var Yi=m((cm,Ee)=>{"use strict";var Xl=Hi(),Se=new WeakMap,Zi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Se.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Xl(c,t),Se.set(c,n),c};Ee.exports=Zi;Ee.exports.default=Zi;Ee.exports.callCount=t=>{if(!Se.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Se.get(t)}});var Qi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.SIGNALS=void 0;var Hl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];be.SIGNALS=Hl});var Or=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.SIGRTMAX=Ft.getRealtimeSignals=void 0;var Zl=function(){let t=ea-ta+1;return Array.from({length:t},Yl)};Ft.getRealtimeSignals=Zl;var Yl=function(t,e){return{name:`SIGRT${e+1}`,number:ta+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},ta=34,ea=64;Ft.SIGRTMAX=ea});var ra=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.getSignals=void 0;var Ql=require("os"),tp=Qi(),ep=Or(),rp=function(){let t=(0,ep.getRealtimeSignals)();return[...tp.SIGNALS,...t].map(np)};Re.getSignals=rp;var np=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=Ql.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var ia=m(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.signalsByNumber=Ct.signalsByName=void 0;var ip=require("os"),na=ra(),ap=Or(),op=function(){return(0,na.getSignals)().reduce(up,{})},up=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return H(P({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},cp=op();Ct.signalsByName=cp;var sp=function(){let t=(0,na.getSignals)(),e=ap.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>fp(u,t));return Object.assign({},...r)},fp=function(t,e){let r=lp(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},lp=function(t,e){let r=e.find(({name:n})=>ip.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},pp=sp();Ct.signalsByNumber=pp});var oa=m((dm,aa)=>{"use strict";var{signalsByName:dp}=ia(),mp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",hp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:_}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:dp[u].description,$=n&&n.code,X=`Command ${mp({timedOut:v,timeout:_,errorCode:$,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Rt=Object.prototype.toString.call(n)==="[object Error]",re=Rt?`${X} +${n.message}`:X,ne=[re,e,t].filter(Boolean).join(` +`);return Rt?(n.originalMessage=n.message,n.message=ne):n=new Error(ne),n.shortMessage=re,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};aa.exports=hp});var ca=m((mm,Ar)=>{"use strict";var _e=["stdin","stdout","stderr"],vp=t=>_e.some(e=>t[e]!==void 0),ua=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(vp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Ar.exports=ua;Ar.exports.node=t=>{let e=ua(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var sa=m((hm,Oe)=>{Oe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Oe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Oe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ma=m((vm,Lt)=>{var O=global.process;typeof O!="object"||!O?Lt.exports=function(){}:(fa=require("assert"),Nt=sa(),la=/^win/i.test(O.platform),Qt=require("events"),typeof Qt!="function"&&(Qt=Qt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Qt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Lt.exports=function(t,e){if(global.process===O){fa.equal(typeof t,"function","a callback must be provided for exit handler"),Wt===!1&&qr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Ae()};return N.on(r,t),n}},Ae=function(){!Wt||global.process!==O||(Wt=!1,Nt.forEach(function(e){try{O.removeListener(e,qe[e])}catch{}}),O.emit=Te,O.reallyExit=Tr,N.count-=1)},Lt.exports.unload=Ae,Et=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},qe={},Nt.forEach(function(t){qe[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Ae(),Et("exit",null,t),Et("afterexit",null,t),la&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Lt.exports.signals=function(){return Nt},Wt=!1,qr=function(){Wt||O!==global.process||(Wt=!0,N.count+=1,Nt=Nt.filter(function(e){try{return O.on(e,qe[e]),!0}catch{return!1}}),O.emit=da,O.reallyExit=pa)},Lt.exports.load=qr,Tr=O.reallyExit,pa=function(e){O===global.process&&(O.exitCode=e||0,Et("exit",O.exitCode,null),Et("afterexit",O.exitCode,null),Tr.call(O,O.exitCode))},Te=O.emit,da=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=Te.apply(this,arguments);return Et("exit",O.exitCode,null),Et("afterexit",O.exitCode,null),n}else return Te.apply(this,arguments)});var fa,Nt,la,Qt,N,Ae,Et,qe,Wt,qr,Tr,pa,Te,da});var va=m((gm,ha)=>{"use strict";var gp=require("os"),yp=ma(),Ip=1e3*5,Sp=(t,e="SIGTERM",r={})=>{let n=t(e);return Ep(t,e,r,n),n},Ep=(t,e,r,n)=>{if(!bp(e,r,n))return;let u=_p(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},bp=(t,{forceKillAfterTimeout:e},r)=>Rp(t)&&e!==!1&&r,Rp=t=>t===gp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",_p=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Ip;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Op=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Ap=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},qp=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Ap(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},Tp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},wp=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=yp(()=>{t.kill()});return n.finally(()=>{u()})};ha.exports={spawnedKill:Sp,spawnedCancel:Op,setupTimeout:qp,validateTimeout:Tp,setExitHandler:wp}});var ya=m((ym,ga)=>{"use strict";var rt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";rt.writable=t=>rt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";rt.readable=t=>rt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";rt.duplex=t=>rt.writable(t)&&rt.readable(t);rt.transform=t=>rt.duplex(t)&&typeof t._transform=="function";ga.exports=rt});var Sa=m((Im,Ia)=>{"use strict";var{PassThrough:Mp}=require("stream");Ia.exports=t=>{t=P({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Mp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var Ea=m((Sm,te)=>{"use strict";var{constants:Pp}=require("buffer"),xp=require("stream"),{promisify:Up}=require("util"),Fp=Sa(),Cp=Up(xp.pipeline),wr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function Mr(t,e){if(!t)throw new Error("Expected a stream");e=P({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=Fp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Pp.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Cp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new wr)})}),n.getBufferedValue()}te.exports=Mr;te.exports.buffer=(t,e)=>Mr(t,H(P({},e),{encoding:"buffer"}));te.exports.array=(t,e)=>Mr(t,H(P({},e),{array:!0}));te.exports.MaxBufferError=wr});var Ra=m((Em,ba)=>{"use strict";var{PassThrough:Np}=require("stream");ba.exports=function(){var t=[],e=new Np({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var qa=m((bm,Aa)=>{"use strict";var Oa=ya(),_a=Ea(),Wp=Ra(),Lp=(t,e)=>{e===void 0||t.stdin===void 0||(Oa(e)?e.pipe(t.stdin):t.stdin.end(e))},Kp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Wp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Pr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},xr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?_a(t,{encoding:e,maxBuffer:n}):_a.buffer(t,{maxBuffer:n})},jp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=xr(t,{encoding:n,buffer:u,maxBuffer:c}),v=xr(e,{encoding:n,buffer:u,maxBuffer:c}),y=xr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Pr(t,l),Pr(e,v),Pr(r,y)])}},kp=({input:t})=>{if(Oa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Aa.exports={handleInput:Lp,makeAllStream:Kp,getSpawnedResult:jp,validateInputSync:kp}});var wa=m((Rm,Ta)=>{"use strict";var Dp=(async()=>{})().constructor.prototype,Bp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Dp,t)]),Gp=(t,e)=>{for(let[r,n]of Bp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,H(P({},n),{value:u}))}return t},$p=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Ta.exports={mergePromise:Gp,getSpawnedPromise:$p}});var xa=m((_m,Pa)=>{"use strict";var Ma=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Vp=/^[\w.-]+$/,zp=/"/g,Jp=t=>typeof t!="string"||Vp.test(t)?t:`"${t.replace(zp,'\\"')}"`,Xp=(t,e)=>Ma(t,e).join(" "),Hp=(t,e)=>Ma(t,e).map(r=>Jp(r)).join(" "),Zp=/ +/g,Yp=t=>{let e=[];for(let r of t.trim().split(Zp)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Pa.exports={joinCommand:Xp,getEscapedCommand:Hp,parseCommand:Yp}});var Ka=m((Om,Kt)=>{"use strict";var Qp=require("path"),Ur=require("child_process"),td=Bi(),ed=$i(),rd=Ji(),nd=Yi(),we=oa(),Fa=ca(),{spawnedKill:id,spawnedCancel:ad,setupTimeout:od,validateTimeout:ud,setExitHandler:cd}=va(),{handleInput:sd,getSpawnedResult:fd,makeAllStream:ld,validateInputSync:pd}=qa(),{mergePromise:Ua,getSpawnedPromise:dd}=wa(),{joinCommand:Ca,parseCommand:Na,getEscapedCommand:Wa}=xa(),md=1e3*1e3*100,hd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?P(P({},process.env),t):t;return r?rd.env({env:c,cwd:n,execPath:u}):c},La=(t,e,r={})=>{let n=td._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=P({maxBuffer:md,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=hd(r),r.stdio=Fa(r),process.platform==="win32"&&Qp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},ee=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?ed(e):e,Me=(t,e,r)=>{let n=La(t,e,r),u=Ca(t,e),c=Wa(t,e);ud(n.options);let f;try{f=Ur.spawn(n.file,n.args,n.options)}catch($){let V=new Ur.ChildProcess,X=Promise.reject(we({error:$,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Ua(V,X)}let l=dd(f),v=od(f,n.options,l),y=cd(f,n.options,v),I={isCanceled:!1};f.kill=id.bind(null,f.kill.bind(f)),f.cancel=ad.bind(null,f,I);let x=nd(async()=>{let[{error:$,exitCode:V,signal:X,timedOut:Rt},re,ne,Ja]=await fd(f,n.options,y),Wr=ee(n.options,re),Lr=ee(n.options,ne),Kr=ee(n.options,Ja);if($||V!==0||X!==null){let jr=we({error:$,exitCode:V,signal:X,stdout:Wr,stderr:Lr,all:Kr,command:u,escapedCommand:c,parsed:n,timedOut:Rt,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return jr;throw jr}return{command:u,escapedCommand:c,exitCode:0,stdout:Wr,stderr:Lr,all:Kr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return sd(f,n.options.input),f.all=ld(f,n.options),Ua(f,x)};Kt.exports=Me;Kt.exports.sync=(t,e,r)=>{let n=La(t,e,r),u=Ca(t,e),c=Wa(t,e);pd(n.options);let f;try{f=Ur.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=ee(n.options,f.stdout,f.error),v=ee(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Kt.exports.command=(t,e)=>{let[r,...n]=Na(t);return Me(r,n,e)};Kt.exports.commandSync=(t,e)=>{let[r,...n]=Na(t);return Me.sync(r,n,e)};Kt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Fa.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Me(c,[...f,t,...Array.isArray(e)?e:[]],H(P({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var yd={};ro(yd,{default:()=>za});var j=require("@raycast/api"),Nr=_t(Xt()),Pe=require("react");var Cr=_t(Xt()),Ba=_t(U()),bt=_t(ri());var ja=_t(require("node:process"),1),ka=_t(Ka(),1);async function Fr(t){if(ja.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,ka.default)("osascript",["-e",t]);return e}var Q=(t,e)=>bt.tryCatch(()=>Fr(`tell application "${t}" to ${e}`),Cr.toError),vd=t=>bt.tryCatch(()=>Fr(t),Cr.toError),Tm=Q("Music","pause"),wm=Q("Music","play"),Mm=Q("Music","stop"),Pm=Q("Music","next track"),xm=Q("Music","previous track"),Um=Q("Music","playpause"),Fm=(0,Ba.pipe)(Q("Music","player state"),bt.map(t=>t)),Cm=Q("Music","set loved of current track to true"),Nm=Q("Music","set disliked of current track to true"),Wm=Q("Music",'duplicate current track to source "Library"'),Ga=t=>Q("Music",`play playlist "${t.trim()}"`),$a=()=>vd(`set output to "" + tell application "Music" + ${Da("subscription")} + ${Da("user")} + end tell + return output`),Da=t=>`repeat with selectedPlaylist in ${t} playlists + set pId to the id of selectedPlaylist + set pName to the name of selectedPlaylist + set pDuration to the duration of selectedPlaylist + set pCount to count (tracks of selectedPlaylist) + set output to output & "id: " & pId & " name: " & pName & " duration: " & pDuration & " count: " & pCount & " +" + end repeat`;function Va(t){return t.trim().split(` +`).map(r=>{let n={};return r.split(" ").map(c=>{let[f,...l]=c.split(": "),v=l.join(": ");n=H(P({},n),{[f]:v})}),n})}function za(){let[t,e]=(0,Pe.useState)(null),{pop:r}=(0,j.useNavigation)();return(0,Pe.useEffect)(()=>{(async()=>{let u=await $a()();if((0,Nr.isLeft)(u)){(0,j.showToast)(j.ToastStyle.Failure,"Could not get your playlists");return}let c=[];u.right?.length>0&&(c=Va(u.right)),e(c)})()},[]),_jsx(j.List,{isLoading:t===null,searchBarPlaceholder:"Search A Playlist"},t&&t?.length>0&&t.map(({id:n,name:u,duration:c,count:f})=>_jsx(j.List.Item,{key:n,title:u,accessoryTitle:`\u{1F3A7} ${f} \u23F1 ${Math.floor(Number(c)/60)} min`,icon:{source:"../assets/icon.png"},actions:_jsx(gd,{name:u,pop:r})})))}function gd({name:t,pop:e}){let r=`Start Playlist "${t}"`,n=async()=>{let u=await Ga(t)();if((0,Nr.isLeft)(u)){(0,j.showToast)(j.ToastStyle.Failure,"Could not play this playlist");return}await(0,j.closeMainWindow)(),e()};return _jsx(j.ActionPanel,{title:r},_jsx(j.ActionPanel.Item,{title:r,onAction:n}))}module.exports=no(yd);0&&(module.exports={}); diff --git a/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/toggle-play-pause.js b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/toggle-play-pause.js new file mode 100644 index 0000000..5827dcd --- /dev/null +++ b/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/toggle-play-pause.js @@ -0,0 +1,5 @@ +var Ba=Object.create;var Lt=Object.defineProperty,Ga=Object.defineProperties,$a=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertyNames,Nr=Object.getOwnPropertySymbols,Ja=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var Wr=(t,e,r)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,P=(t,e)=>{for(var r in e||(e={}))Lr.call(e,r)&&Wr(t,r,e[r]);if(Nr)for(var r of Nr(e))Xa.call(e,r)&&Wr(t,r,e[r]);return t},et=(t,e)=>Ga(t,Va(e)),Kr=t=>Lt(t,"__esModule",{value:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ha=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},jr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of za(e))!Lr.call(t,u)&&(r||u!=="default")&&Lt(t,u,{get:()=>e[u],enumerable:!(n=$a(e,u))||n.enumerable});return t},Kt=(t,e)=>jr(Kr(Lt(t!=null?Ba(Ja(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Za=(t=>(e,r)=>t&&t.get(e)||(r=jr(Kr({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var U=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 Ya=function(t){return function(){return{meet:function(e,r){return function(n){return t.meet(e(n),r(n))}},join:function(e,r){return function(n){return t.join(e(n),r(n))}},zero:function(){return t.zero},one:function(){return t.one},implies:function(e,r){return function(n){return t.implies(e(n),r(n))}},not:function(e){return function(r){return t.not(e(r))}}}}};h.getBooleanAlgebra=Ya;var Qa=function(t){return function(){return{concat:function(e,r){return function(n){return t.concat(e(n),r(n))}}}}};h.getSemigroup=Qa;var to=function(t){var e=h.getSemigroup(t);return function(){return{concat:e().concat,empty:function(){return t.empty}}}};h.getMonoid=to;var eo=function(t){return{add:function(e,r){return function(n){return t.add(e(n),r(n))}},zero:function(){return t.zero},mul:function(e,r){return function(n){return t.mul(e(n),r(n))}},one:function(){return t.one}}};h.getSemiring=eo;var ro=function(t){var e=h.getSemiring(t);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(r,n){return function(u){return t.sub(r(u),n(u))}}}};h.getRing=ro;var no=function(t){return function(e){return e(t)}};h.apply=no;function Me(t){return t}h.identity=Me;h.unsafeCoerce=Me;function jt(t){return function(){return t}}h.constant=jt;h.constTrue=jt(!0);h.constFalse=jt(!1);h.constNull=jt(null);h.constUndefined=jt(void 0);h.constVoid=h.constUndefined;function io(t){return function(e,r){return t(r,e)}}h.flip=io;function kr(t,e,r,n,u,c,f,l,v){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return r(e(t.apply(this,arguments)))};case 4:return function(){return n(r(e(t.apply(this,arguments))))};case 5:return function(){return u(n(r(e(t.apply(this,arguments)))))};case 6:return function(){return c(u(n(r(e(t.apply(this,arguments))))))};case 7:return function(){return f(c(u(n(r(e(t.apply(this,arguments)))))))};case 8:return function(){return l(f(c(u(n(r(e(t.apply(this,arguments))))))))};case 9:return function(){return v(l(f(c(u(n(r(e(t.apply(this,arguments)))))))))}}}h.flow=kr;function ao(){for(var t=[],e=0;e{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.sequenceS=L.sequenceT=L.getApplySemigroup=L.apS=L.apSecond=L.apFirst=L.ap=void 0;var ho=U();function vo(t,e){return function(r){return function(n){return t.ap(t.map(n,function(u){return function(c){return e.ap(u,c)}}),r)}}}L.ap=vo;function go(t){return function(e){return function(r){return t.ap(t.map(r,function(n){return function(){return n}}),e)}}}L.apFirst=go;function yo(t){return function(e){return function(r){return t.ap(t.map(r,function(){return function(n){return n}}),e)}}}L.apSecond=yo;function Io(t){return function(e,r){return function(n){return t.ap(t.map(n,function(u){return function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))}}),r)}}}L.apS=Io;function So(t){return function(e){return{concat:function(r,n){return t.ap(t.map(r,function(u){return function(c){return e.concat(u,c)}}),n)}}}}L.getApplySemigroup=So;function Ue(t,e,r){return function(n){for(var u=Array(r.length+1),c=0;c{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.getFunctorComposition=Z.bindTo=Z.flap=Z.map=void 0;var Oo=U();function Br(t,e){return function(r){return function(n){return t.map(n,function(u){return e.map(u,r)})}}}Z.map=Br;function Ao(t){return function(e){return function(r){return t.map(r,function(n){return n(e)})}}}Z.flap=Ao;function qo(t){return function(e){return function(r){return t.map(r,function(n){var u;return u={},u[e]=n,u})}}}Z.bindTo=qo;function wo(t,e){var r=Br(t,e);return{map:function(n,u){return Oo.pipe(n,r(u))}}}Z.getFunctorComposition=wo});var kt=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getApplicativeComposition=bt.getApplicativeMonoid=void 0;var Gr=lt(),To=U(),Mo=Y();function xo(t){var e=Gr.getApplySemigroup(t);return function(r){return{concat:e(r).concat,empty:t.of(r.empty)}}}bt.getApplicativeMonoid=xo;function Uo(t,e){var r=Mo.getFunctorComposition(t,e).map,n=Gr.ap(t,e);return{map:r,of:function(u){return t.of(e.of(u))},ap:function(u,c){return To.pipe(u,n(c))}}}bt.getApplicativeComposition=Uo});var pt=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.bind=_t.chainFirst=void 0;function Po(t){return function(e){return function(r){return t.chain(r,function(n){return t.map(e(n),function(){return n})})}}}_t.chainFirst=Po;function Fo(t){return function(e,r){return function(n){return t.chain(n,function(u){return t.map(r(u),function(c){var f;return Object.assign({},u,(f={},f[e]=c,f))})})}}}_t.bind=Fo});var $r=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.tailRec=void 0;var Co=function(t,e){for(var r=e(t);r._tag==="Left";)r=e(r.left);return r.right};re.tailRec=Co});var it=m(b=>{"use strict";var No=b&&b.__spreadArray||function(t,e){for(var r=0,n=e.length,u=t.length;r0};b.isNonEmpty=$o;var Vo=function(t){return t[0]};b.head=Vo;var zo=function(t){return t.slice(1)};b.tail=zo;b.emptyReadonlyArray=[];b.emptyRecord={};b.has=Object.prototype.hasOwnProperty;var Jo=function(t){return No([t[0]],t.slice(1))};b.fromReadonlyNonEmptyArray=Jo});var ne=m(T=>{"use strict";var Xo=T&&T.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ho=T&&T.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zo=T&&T.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xo(e,t,r);return Ho(e,t),e};Object.defineProperty(T,"__esModule",{value:!0});T.filterOrElse=T.chainEitherK=T.fromEitherK=T.chainOptionK=T.fromOptionK=T.fromPredicate=T.fromOption=void 0;var Vr=U(),dt=Zo(it());function zr(t){return function(e){return function(r){return t.fromEither(dt.isNone(r)?dt.left(e()):dt.right(r.value))}}}T.fromOption=zr;function Yo(t){return function(e,r){return function(n){return t.fromEither(e(n)?dt.right(n):dt.left(r(n)))}}}T.fromPredicate=Yo;function Jr(t){var e=zr(t);return function(r){var n=e(r);return function(u){return Vr.flow(u,n)}}}T.fromOptionK=Jr;function Qo(t,e){var r=Jr(t);return function(n){var u=r(n);return function(c){return function(f){return e.chain(f,u(c))}}}}T.chainOptionK=Qo;function Xr(t){return function(e){return Vr.flow(e,t.fromEither)}}T.fromEitherK=Xr;function tu(t,e){var r=Xr(t);return function(n){return function(u){return e.chain(u,r(n))}}}T.chainEitherK=tu;function eu(t,e){return function(r,n){return function(u){return e.chain(u,function(c){return t.fromEither(r(c)?dt.right(c):dt.left(n(c)))})}}}T.filterOrElse=eu});var Dt=m(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.right=E.left=E.flap=E.Functor=E.Bifunctor=E.URI=E.bimap=E.mapLeft=E.map=E.separated=void 0;var Pe=U(),ru=Y(),nu=function(t,e){return{left:t,right:e}};E.separated=nu;var iu=function(t,e){return Pe.pipe(t,E.map(e))},au=function(t,e){return Pe.pipe(t,E.mapLeft(e))},ou=function(t,e,r){return Pe.pipe(t,E.bimap(e,r))},uu=function(t){return function(e){return E.separated(E.left(e),t(E.right(e)))}};E.map=uu;var cu=function(t){return function(e){return E.separated(t(E.left(e)),E.right(e))}};E.mapLeft=cu;var su=function(t,e){return function(r){return E.separated(t(E.left(r)),e(E.right(r)))}};E.bimap=su;E.URI="Separated";E.Bifunctor={URI:E.URI,mapLeft:au,bimap:ou};E.Functor={URI:E.URI,map:iu};E.flap=ru.flap(E.Functor);var fu=function(t){return t.left};E.left=fu;var lu=function(t){return t.right};E.right=lu});var Fe=m(j=>{"use strict";var pu=j&&j.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),du=j&&j.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mu=j&&j.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pu(e,t,r);return du(e,t),e};Object.defineProperty(j,"__esModule",{value:!0});j.filterE=j.witherDefault=j.wiltDefault=void 0;var Hr=mu(it());function hu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.separate)}}}j.wiltDefault=hu;function vu(t,e){return function(r){var n=t.traverse(r);return function(u,c){return r.map(n(u,c),e.compact)}}}j.witherDefault=vu;function gu(t){return function(e){var r=t.wither(e);return function(n){return function(u){return r(u,function(c){return e.map(n(c),function(f){return f?Hr.some(c):Hr.none})})}}}}j.filterE=gu});var ae=m(i=>{"use strict";var yu=i&&i.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Iu=i&&i.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Su=i&&i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yu(e,t,r);return Iu(e,t),e};Object.defineProperty(i,"__esModule",{value:!0});i.fold=i.match=i.foldW=i.matchW=i.isRight=i.isLeft=i.fromOption=i.fromPredicate=i.FromEither=i.MonadThrow=i.throwError=i.ChainRec=i.Extend=i.extend=i.Alt=i.alt=i.altW=i.Bifunctor=i.mapLeft=i.bimap=i.Traversable=i.sequence=i.traverse=i.Foldable=i.reduceRight=i.foldMap=i.reduce=i.Monad=i.Chain=i.chain=i.chainW=i.Applicative=i.Apply=i.ap=i.apW=i.Pointed=i.of=i.Functor=i.map=i.getAltValidation=i.getApplicativeValidation=i.getWitherable=i.getFilterable=i.getCompactable=i.getSemigroup=i.getEq=i.getShow=i.URI=i.right=i.left=void 0;i.getValidation=i.getValidationMonoid=i.getValidationSemigroup=i.getApplyMonoid=i.getApplySemigroup=i.either=i.stringifyJSON=i.parseJSON=i.sequenceArray=i.traverseArray=i.traverseArrayWithIndex=i.traverseReadonlyArrayWithIndex=i.traverseReadonlyNonEmptyArrayWithIndex=i.ApT=i.apSW=i.apS=i.bindW=i.bind=i.bindTo=i.Do=i.exists=i.elem=i.toError=i.toUnion=i.chainNullableK=i.fromNullableK=i.tryCatchK=i.tryCatch=i.fromNullable=i.orElse=i.orElseW=i.swap=i.filterOrElseW=i.filterOrElse=i.chainOptionK=i.fromOptionK=i.duplicate=i.flatten=i.flattenW=i.chainFirstW=i.chainFirst=i.apSecond=i.apFirst=i.flap=i.getOrElse=i.getOrElseW=void 0;var Yr=kt(),Bt=lt(),Qr=pt(),Eu=$r(),Gt=ne(),C=U(),tn=Y(),at=Su(it()),rt=Dt(),Zr=Fe();i.left=at.left;i.right=at.right;var K=function(t,e){return C.pipe(t,i.map(e))},mt=function(t,e){return C.pipe(t,i.ap(e))},Rt=function(t,e){return C.pipe(t,i.chain(e))},$t=function(t,e,r){return C.pipe(t,i.reduce(e,r))},Vt=function(t){return function(e,r){var n=i.foldMap(t);return C.pipe(e,n(r))}},zt=function(t,e,r){return C.pipe(t,i.reduceRight(e,r))},ie=function(t){var e=i.traverse(t);return function(r,n){return C.pipe(r,e(n))}},Ce=function(t,e,r){return C.pipe(t,i.bimap(e,r))},Ne=function(t,e){return C.pipe(t,i.mapLeft(e))},en=function(t,e){return C.pipe(t,i.alt(e))},We=function(t,e){return C.pipe(t,i.extend(e))},Le=function(t,e){return Eu.tailRec(e(t),function(r){return i.isLeft(r)?i.right(i.left(r.left)):i.isLeft(r.right)?i.left(e(r.right.left)):i.right(i.right(r.right.right))})};i.URI="Either";var bu=function(t,e){return{show:function(r){return i.isLeft(r)?"left("+t.show(r.left)+")":"right("+e.show(r.right)+")"}}};i.getShow=bu;var _u=function(t,e){return{equals:function(r,n){return r===n||(i.isLeft(r)?i.isLeft(n)&&t.equals(r.left,n.left):i.isRight(n)&&e.equals(r.right,n.right))}}};i.getEq=_u;var Ru=function(t){return{concat:function(e,r){return i.isLeft(r)?e:i.isLeft(e)?r:i.right(t.concat(e.right,r.right))}}};i.getSemigroup=Ru;var Ou=function(t){var e=i.left(t.empty);return{URI:i.URI,_E:void 0,compact:function(r){return i.isLeft(r)?r:r.right._tag==="None"?e:i.right(r.right.value)},separate:function(r){return i.isLeft(r)?rt.separated(r,r):i.isLeft(r.right)?rt.separated(i.right(r.right.left),e):rt.separated(e,i.right(r.right.right))}}};i.getCompactable=Ou;var Au=function(t){var e=i.left(t.empty),r=i.getCompactable(t),n=r.compact,u=r.separate,c=function(l,v){return i.isLeft(l)||v(l.right)?l:e},f=function(l,v){return i.isLeft(l)?rt.separated(l,l):v(l.right)?rt.separated(e,i.right(l.right)):rt.separated(i.right(l.right),e)};return{URI:i.URI,_E:void 0,map:K,compact:n,separate:u,filter:c,filterMap:function(l,v){if(i.isLeft(l))return l;var y=v(l.right);return y._tag==="None"?e:i.right(y.value)},partition:f,partitionMap:function(l,v){if(i.isLeft(l))return rt.separated(l,l);var y=v(l.right);return i.isLeft(y)?rt.separated(i.right(y.left),e):rt.separated(e,i.right(y.right))}}};i.getFilterable=Au;var qu=function(t){var e=i.getFilterable(t),r=i.getCompactable(t);return{URI:i.URI,_E:void 0,map:K,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:ie,sequence:i.sequence,reduce:$t,foldMap:Vt,reduceRight:zt,wither:Zr.witherDefault(i.Traversable,r),wilt:Zr.wiltDefault(i.Traversable,r)}};i.getWitherable=qu;var wu=function(t){return{URI:i.URI,_E:void 0,map:K,ap:function(e,r){return i.isLeft(e)?i.isLeft(r)?i.left(t.concat(e.left,r.left)):e:i.isLeft(r)?r:i.right(e.right(r.right))},of:i.of}};i.getApplicativeValidation=wu;var Tu=function(t){return{URI:i.URI,_E:void 0,map:K,alt:function(e,r){if(i.isRight(e))return e;var n=r();return i.isLeft(n)?i.left(t.concat(e.left,n.left)):n}}};i.getAltValidation=Tu;var Mu=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e.right))}};i.map=Mu;i.Functor={URI:i.URI,map:K};i.of=i.right;i.Pointed={URI:i.URI,of:i.of};var xu=function(t){return function(e){return i.isLeft(e)?e:i.isLeft(t)?t:i.right(e.right(t.right))}};i.apW=xu;i.ap=i.apW;i.Apply={URI:i.URI,map:K,ap:mt};i.Applicative={URI:i.URI,map:K,ap:mt,of:i.of};var Uu=function(t){return function(e){return i.isLeft(e)?e:t(e.right)}};i.chainW=Uu;i.chain=i.chainW;i.Chain={URI:i.URI,map:K,ap:mt,chain:Rt};i.Monad={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt};var Pu=function(t,e){return function(r){return i.isLeft(r)?t:e(t,r.right)}};i.reduce=Pu;var Fu=function(t){return function(e){return function(r){return i.isLeft(r)?t.empty:e(r.right)}}};i.foldMap=Fu;var Cu=function(t,e){return function(r){return i.isLeft(r)?t:e(r.right,t)}};i.reduceRight=Cu;i.Foldable={URI:i.URI,reduce:$t,foldMap:Vt,reduceRight:zt};var Nu=function(t){return function(e){return function(r){return i.isLeft(r)?t.of(i.left(r.left)):t.map(e(r.right),i.right)}}};i.traverse=Nu;var Wu=function(t){return function(e){return i.isLeft(e)?t.of(i.left(e.left)):t.map(e.right,i.right)}};i.sequence=Wu;i.Traversable={URI:i.URI,map:K,reduce:$t,foldMap:Vt,reduceRight:zt,traverse:ie,sequence:i.sequence};var Lu=function(t,e){return function(r){return i.isLeft(r)?i.left(t(r.left)):i.right(e(r.right))}};i.bimap=Lu;var Ku=function(t){return function(e){return i.isLeft(e)?i.left(t(e.left)):e}};i.mapLeft=Ku;i.Bifunctor={URI:i.URI,bimap:Ce,mapLeft:Ne};var ju=function(t){return function(e){return i.isLeft(e)?t():e}};i.altW=ju;i.alt=i.altW;i.Alt={URI:i.URI,map:K,alt:en};var ku=function(t){return function(e){return i.isLeft(e)?e:i.right(t(e))}};i.extend=ku;i.Extend={URI:i.URI,map:K,extend:We};i.ChainRec={URI:i.URI,map:K,ap:mt,chain:Rt,chainRec:Le};i.throwError=i.left;i.MonadThrow={URI:i.URI,map:K,ap:mt,of:i.of,chain:Rt,throwError:i.throwError};i.FromEither={URI:i.URI,fromEither:C.identity};i.fromPredicate=Gt.fromPredicate(i.FromEither);i.fromOption=Gt.fromOption(i.FromEither);i.isLeft=at.isLeft;i.isRight=at.isRight;var Du=function(t,e){return function(r){return i.isLeft(r)?t(r.left):e(r.right)}};i.matchW=Du;i.foldW=i.matchW;i.match=i.matchW;i.fold=i.match;var Bu=function(t){return function(e){return i.isLeft(e)?t(e.left):e.right}};i.getOrElseW=Bu;i.getOrElse=i.getOrElseW;i.flap=tn.flap(i.Functor);i.apFirst=Bt.apFirst(i.Apply);i.apSecond=Bt.apSecond(i.Apply);i.chainFirst=Qr.chainFirst(i.Chain);i.chainFirstW=i.chainFirst;i.flattenW=i.chainW(C.identity);i.flatten=i.flattenW;i.duplicate=i.extend(C.identity);i.fromOptionK=Gt.fromOptionK(i.FromEither);i.chainOptionK=Gt.chainOptionK(i.FromEither,i.Chain);i.filterOrElse=Gt.filterOrElse(i.FromEither,i.Chain);i.filterOrElseW=i.filterOrElse;var Gu=function(t){return i.isLeft(t)?i.right(t.left):i.left(t.right)};i.swap=Gu;var $u=function(t){return function(e){return i.isLeft(e)?t(e.left):e}};i.orElseW=$u;i.orElse=i.orElseW;var Vu=function(t){return function(e){return e==null?i.left(t):i.right(e)}};i.fromNullable=Vu;var zu=function(t,e){try{return i.right(t())}catch(r){return i.left(e(r))}};i.tryCatch=zu;var Ju=function(t,e){return function(){for(var r=[],n=0;n{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.and=A.or=A.not=A.Contravariant=A.getMonoidAll=A.getSemigroupAll=A.getMonoidAny=A.getSemigroupAny=A.URI=A.contramap=void 0;var Ot=U(),uc=function(t,e){return Ot.pipe(t,A.contramap(e))},cc=function(t){return function(e){return Ot.flow(t,e)}};A.contramap=cc;A.URI="Predicate";var sc=function(){return{concat:function(t,e){return Ot.pipe(t,A.or(e))}}};A.getSemigroupAny=sc;var fc=function(){return{concat:A.getSemigroupAny().concat,empty:Ot.constFalse}};A.getMonoidAny=fc;var lc=function(){return{concat:function(t,e){return Ot.pipe(t,A.and(e))}}};A.getSemigroupAll=lc;var pc=function(){return{concat:A.getSemigroupAll().concat,empty:Ot.constTrue}};A.getMonoidAll=pc;A.Contravariant={URI:A.URI,contramap:uc};var dc=function(t){return function(e){return!t(e)}};A.not=dc;var mc=function(t){return function(e){return function(r){return e(r)||t(r)}}};A.or=mc;var hc=function(t){return function(e){return function(r){return e(r)&&t(r)}}};A.and=hc});var nn=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.concatAll=V.endo=V.filterSecond=V.filterFirst=V.reverse=void 0;var vc=function(t){return{concat:function(e,r){return t.concat(r,e)}}};V.reverse=vc;var gc=function(t){return function(e){return{concat:function(r,n){return t(r)?e.concat(r,n):n}}}};V.filterFirst=gc;var yc=function(t){return function(e){return{concat:function(r,n){return t(n)?e.concat(r,n):r}}}};V.filterSecond=yc;var Ic=function(t){return function(e){return{concat:function(r,n){return e.concat(t(r),t(n))}}}};V.endo=Ic;var Sc=function(t){return function(e){return function(r){return r.reduce(function(n,u){return t.concat(n,u)},e)}}};V.concatAll=Sc});var an=m(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.eqDate=g.eqNumber=g.eqString=g.eqBoolean=g.eq=g.strictEqual=g.getStructEq=g.getTupleEq=g.Contravariant=g.getMonoid=g.getSemigroup=g.eqStrict=g.URI=g.contramap=g.tuple=g.struct=g.fromEquals=void 0;var Ec=U(),bc=function(t){return{equals:function(e,r){return e===r||t(e,r)}}};g.fromEquals=bc;var _c=function(t){return g.fromEquals(function(e,r){for(var n in t)if(!t[n].equals(e[n],r[n]))return!1;return!0})};g.struct=_c;var Rc=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.ordDate=p.ordNumber=p.ordString=p.ordBoolean=p.ord=p.getDualOrd=p.getTupleOrd=p.between=p.clamp=p.max=p.min=p.geq=p.leq=p.gt=p.lt=p.equals=p.trivial=p.Contravariant=p.getMonoid=p.getSemigroup=p.URI=p.contramap=p.reverse=p.tuple=p.fromCompare=p.equalsDefault=void 0;var Mc=an(),oe=U(),xc=function(t){return function(e,r){return e===r||t(e,r)===0}};p.equalsDefault=xc;var Uc=function(t){return{equals:p.equalsDefault(t),compare:function(e,r){return e===r?0:t(e,r)}}};p.fromCompare=Uc;var Pc=function(){for(var t=[],e=0;e-1?e:r}};p.max=$c;var Vc=function(t){var e=p.min(t),r=p.max(t);return function(n,u){return function(c){return r(e(c,u),n)}}};p.clamp=Vc;var zc=function(t){var e=p.lt(t),r=p.gt(t);return function(n,u){return function(c){return!(e(c,n)||r(c,u))}}};p.between=zc;p.getTupleOrd=p.tuple;p.getDualOrd=p.reverse;p.ord=p.Contravariant;function Jc(t,e){return te?1:0}var je={equals:Mc.eqStrict.equals,compare:Jc};p.ordBoolean=je;p.ordString=je;p.ordNumber=je;p.ordDate=oe.pipe(p.ordNumber,p.contramap(function(t){return t.valueOf()}))});var fn=m(d=>{"use strict";var Xc=d&&d.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hc=d&&d.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ke=d&&d.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xc(e,t,r);return Hc(e,t),e};Object.defineProperty(d,"__esModule",{value:!0});d.semigroupProduct=d.semigroupSum=d.semigroupString=d.getFunctionSemigroup=d.semigroupAny=d.semigroupAll=d.fold=d.getIntercalateSemigroup=d.getMeetSemigroup=d.getJoinSemigroup=d.getDualSemigroup=d.getStructSemigroup=d.getTupleSemigroup=d.getFirstSemigroup=d.getLastSemigroup=d.getObjectSemigroup=d.semigroupVoid=d.concatAll=d.last=d.first=d.intercalate=d.tuple=d.struct=d.reverse=d.constant=d.max=d.min=void 0;var un=U(),Zc=ke(it()),cn=ke(nn()),sn=ke(on()),Yc=function(t){return{concat:sn.min(t)}};d.min=Yc;var Qc=function(t){return{concat:sn.max(t)}};d.max=Qc;var ts=function(t){return{concat:function(){return t}}};d.constant=ts;d.reverse=cn.reverse;var es=function(t){return{concat:function(e,r){var n={};for(var u in t)Zc.has.call(t,u)&&(n[u]=t[u].concat(e[u],r[u]));return n}}};d.struct=es;var rs=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.guard=void 0;function cs(t,e){return function(r){return r?e.of(void 0):t.zero()}}ue.guard=cs});var He=m(o=>{"use strict";var ss=o&&o.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fs=o&&o.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ls=o&&o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ss(e,t,r);return fs(e,t),e};Object.defineProperty(o,"__esModule",{value:!0});o.fromEither=o.MonadThrow=o.throwError=o.Witherable=o.wilt=o.wither=o.Traversable=o.sequence=o.traverse=o.Filterable=o.partitionMap=o.partition=o.filterMap=o.filter=o.Compactable=o.separate=o.compact=o.Extend=o.extend=o.Alternative=o.guard=o.Zero=o.zero=o.Alt=o.alt=o.altW=o.Foldable=o.reduceRight=o.foldMap=o.reduce=o.Monad=o.Chain=o.chain=o.Applicative=o.Apply=o.ap=o.Pointed=o.of=o.Functor=o.map=o.getMonoid=o.getOrd=o.getEq=o.getShow=o.URI=o.getRight=o.getLeft=o.fromPredicate=o.some=o.none=void 0;o.getLastMonoid=o.getFirstMonoid=o.getApplyMonoid=o.getApplySemigroup=o.option=o.mapNullable=o.getRefinement=o.sequenceArray=o.traverseArray=o.traverseArrayWithIndex=o.traverseReadonlyArrayWithIndex=o.traverseReadonlyNonEmptyArrayWithIndex=o.ApT=o.apS=o.bind=o.bindTo=o.Do=o.exists=o.elem=o.toUndefined=o.toNullable=o.chainNullableK=o.fromNullableK=o.tryCatchK=o.tryCatch=o.fromNullable=o.chainEitherK=o.fromEitherK=o.duplicate=o.chainFirst=o.flatten=o.apSecond=o.apFirst=o.flap=o.getOrElse=o.getOrElseW=o.fold=o.match=o.foldW=o.matchW=o.isNone=o.isSome=o.FromEither=void 0;var ps=kt(),ce=lt(),pn=pt(),dn=ne(),M=U(),mn=Y(),ht=ls(it()),ds=Ke(),hn=fn(),De=Dt(),vn=Fe(),ms=ln();o.none=ht.none;o.some=ht.some;function hs(t){return function(e){return t(e)?o.some(e):o.none}}o.fromPredicate=hs;var vs=function(t){return t._tag==="Right"?o.none:o.some(t.left)};o.getLeft=vs;var gs=function(t){return t._tag==="Left"?o.none:o.some(t.right)};o.getRight=gs;var D=function(t,e){return M.pipe(t,o.map(e))},vt=function(t,e){return M.pipe(t,o.ap(e))},se=function(t,e){return M.pipe(t,o.chain(e))},fe=function(t,e,r){return M.pipe(t,o.reduce(e,r))},le=function(t){var e=o.foldMap(t);return function(r,n){return M.pipe(r,e(n))}},pe=function(t,e,r){return M.pipe(t,o.reduceRight(e,r))},Be=function(t){var e=o.traverse(t);return function(r,n){return M.pipe(r,e(n))}},Ge=function(t,e){return M.pipe(t,o.alt(e))},Jt=function(t,e){return M.pipe(t,o.filter(e))},$e=function(t,e){return M.pipe(t,o.filterMap(e))},gn=function(t,e){return M.pipe(t,o.extend(e))},Ve=function(t,e){return M.pipe(t,o.partition(e))},ze=function(t,e){return M.pipe(t,o.partitionMap(e))};o.URI="Option";var ys=function(t){return{show:function(e){return o.isNone(e)?"none":"some("+t.show(e.value)+")"}}};o.getShow=ys;var Is=function(t){return{equals:function(e,r){return e===r||(o.isNone(e)?o.isNone(r):o.isNone(r)?!1:t.equals(e.value,r.value))}}};o.getEq=Is;var Ss=function(t){return{equals:o.getEq(t).equals,compare:function(e,r){return e===r?0:o.isSome(e)?o.isSome(r)?t.compare(e.value,r.value):1:-1}}};o.getOrd=Ss;var Es=function(t){return{concat:function(e,r){return o.isNone(e)?r:o.isNone(r)?e:o.some(t.concat(e.value,r.value))},empty:o.none}};o.getMonoid=Es;var bs=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e.value))}};o.map=bs;o.Functor={URI:o.URI,map:D};o.of=o.some;o.Pointed={URI:o.URI,of:o.of};var _s=function(t){return function(e){return o.isNone(e)||o.isNone(t)?o.none:o.some(e.value(t.value))}};o.ap=_s;o.Apply={URI:o.URI,map:D,ap:vt};o.Applicative={URI:o.URI,map:D,ap:vt,of:o.of};var Rs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.chain=Rs;o.Chain={URI:o.URI,map:D,ap:vt,chain:se};o.Monad={URI:o.URI,map:D,ap:vt,of:o.of,chain:se};var Os=function(t,e){return function(r){return o.isNone(r)?t:e(t,r.value)}};o.reduce=Os;var As=function(t){return function(e){return function(r){return o.isNone(r)?t.empty:e(r.value)}}};o.foldMap=As;var qs=function(t,e){return function(r){return o.isNone(r)?t:e(r.value,t)}};o.reduceRight=qs;o.Foldable={URI:o.URI,reduce:fe,foldMap:le,reduceRight:pe};var ws=function(t){return function(e){return o.isNone(e)?t():e}};o.altW=ws;o.alt=o.altW;o.Alt={URI:o.URI,map:D,alt:Ge};var Ts=function(){return o.none};o.zero=Ts;o.Zero={URI:o.URI,zero:o.zero};o.guard=ms.guard(o.Zero,o.Pointed);o.Alternative={URI:o.URI,map:D,ap:vt,of:o.of,alt:Ge,zero:o.zero};var Ms=function(t){return function(e){return o.isNone(e)?o.none:o.some(t(e))}};o.extend=Ms;o.Extend={URI:o.URI,map:D,extend:gn};o.compact=o.chain(M.identity);var xs=De.separated(o.none,o.none),Us=function(t){return o.isNone(t)?xs:De.separated(o.getLeft(t.value),o.getRight(t.value))};o.separate=Us;o.Compactable={URI:o.URI,compact:o.compact,separate:o.separate};var Ps=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)?e:o.none}};o.filter=Ps;var Fs=function(t){return function(e){return o.isNone(e)?o.none:t(e.value)}};o.filterMap=Fs;var Cs=function(t){return function(e){return De.separated(Jt(e,ds.not(t)),Jt(e,t))}};o.partition=Cs;var Ns=function(t){return M.flow(o.map(t),o.separate)};o.partitionMap=Ns;o.Filterable={URI:o.URI,map:D,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze};var Ws=function(t){return function(e){return function(r){return o.isNone(r)?t.of(o.none):t.map(e(r.value),o.some)}}};o.traverse=Ws;var Ls=function(t){return function(e){return o.isNone(e)?t.of(o.none):t.map(e.value,o.some)}};o.sequence=Ls;o.Traversable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence};var Je=vn.witherDefault(o.Traversable,o.Compactable),Xe=vn.wiltDefault(o.Traversable,o.Compactable),Ks=function(t){var e=Je(t);return function(r){return function(n){return e(n,r)}}};o.wither=Ks;var js=function(t){var e=Xe(t);return function(r){return function(n){return e(n,r)}}};o.wilt=js;o.Witherable={URI:o.URI,map:D,reduce:fe,foldMap:le,reduceRight:pe,traverse:Be,sequence:o.sequence,compact:o.compact,separate:o.separate,filter:Jt,filterMap:$e,partition:Ve,partitionMap:ze,wither:Je,wilt:Xe};var ks=function(){return o.none};o.throwError=ks;o.MonadThrow={URI:o.URI,map:D,ap:vt,of:o.of,chain:se,throwError:o.throwError};o.fromEither=o.getRight;o.FromEither={URI:o.URI,fromEither:o.fromEither};o.isSome=ht.isSome;var Ds=function(t){return t._tag==="None"};o.isNone=Ds;var Bs=function(t,e){return function(r){return o.isNone(r)?t():e(r.value)}};o.matchW=Bs;o.foldW=o.matchW;o.match=o.matchW;o.fold=o.match;var Gs=function(t){return function(e){return o.isNone(e)?t():e.value}};o.getOrElseW=Gs;o.getOrElse=o.getOrElseW;o.flap=mn.flap(o.Functor);o.apFirst=ce.apFirst(o.Apply);o.apSecond=ce.apSecond(o.Apply);o.flatten=o.compact;o.chainFirst=pn.chainFirst(o.Chain);o.duplicate=o.extend(M.identity);o.fromEitherK=dn.fromEitherK(o.FromEither);o.chainEitherK=dn.chainEitherK(o.FromEither,o.Chain);var $s=function(t){return t==null?o.none:o.some(t)};o.fromNullable=$s;var Vs=function(t){try{return o.some(t())}catch{return o.none}};o.tryCatch=Vs;var zs=function(t){return function(){for(var e=[],r=0;r{"use strict";var nf=k&&k.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),af=k&&k.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),of=k&&k.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nf(e,t,r);return af(e,t),e};Object.defineProperty(k,"__esModule",{value:!0});k.getCompactableComposition=k.separate=k.compact=void 0;var In=U(),En=Y(),Sn=He(),uf=of(Dt());function Ze(t,e){return function(r){return t.map(r,e.compact)}}k.compact=Ze;function bn(t,e,r){var n=Ze(t,e),u=En.map(t,r);return function(c){return uf.separated(n(In.pipe(c,u(Sn.getLeft))),n(In.pipe(c,u(Sn.getRight))))}}k.separate=bn;function cf(t,e){var r=En.getFunctorComposition(t,e).map;return{map:r,compact:Ze(t,e),separate:bn(t,e,e)}}k.getCompactableComposition=cf});var Cn=m(S=>{"use strict";var sf=S&&S.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ff=S&&S.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),lf=S&&S.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sf(e,t,r);return ff(e,t),e};Object.defineProperty(S,"__esModule",{value:!0});S.getEitherM=S.toUnion=S.swap=S.orLeft=S.orElseFirst=S.orElse=S.getOrElse=S.matchE=S.match=S.altValidation=S.mapLeft=S.bimap=S.alt=S.chain=S.ap=S.map=S.leftF=S.rightF=S.left=S.right=void 0;var pf=lt(),w=lf(ae()),X=U(),df=Y();function Qe(t){return X.flow(w.right,t.of)}S.right=Qe;function _n(t){return X.flow(w.left,t.of)}S.left=_n;function Rn(t){return function(e){return t.map(e,w.right)}}S.rightF=Rn;function On(t){return function(e){return t.map(e,w.left)}}S.leftF=On;function An(t){return df.map(t,w.Functor)}S.map=An;function qn(t){return pf.ap(t,w.Apply)}S.ap=qn;function wn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?t.of(n):e(n.right)})}}}S.chain=wn;function Tn(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e():t.of(n)})}}}S.alt=Tn;function Mn(t){return function(e,r){return function(n){return t.map(n,w.bimap(e,r))}}}S.bimap=Mn;function xn(t){return function(e){return function(r){return t.map(r,w.mapLeft(e))}}}S.mapLeft=xn;function mf(t,e){return function(r){return function(n){return t.chain(n,w.match(function(u){return t.map(r(),w.mapLeft(function(c){return e.concat(u,c)}))},Qe(t)))}}}S.altValidation=mf;function hf(t){return function(e,r){return function(n){return t.map(n,w.match(e,r))}}}S.match=hf;function Un(t){return function(e,r){return function(n){return t.chain(n,w.match(e,r))}}}S.matchE=Un;function Pn(t){return function(e){return function(r){return t.chain(r,w.match(e,t.of))}}}S.getOrElse=Pn;function tr(t){return function(e){return function(r){return t.chain(r,function(n){return w.isLeft(n)?e(n.left):t.of(n)})}}}S.orElse=tr;function vf(t){var e=tr(t);return function(r){return e(function(n){return t.map(r(n),function(u){return w.isLeft(u)?u:w.left(n)})})}}S.orElseFirst=vf;function gf(t){return function(e){return function(r){return t.chain(r,w.match(function(n){return t.map(e(n),w.left)},function(n){return t.of(w.right(n))}))}}}S.orLeft=gf;function Fn(t){return function(e){return t.map(e,w.swap)}}S.swap=Fn;function yf(t){return function(e){return t.map(e,w.toUnion)}}S.toUnion=yf;function If(t){var e=qn(t),r=An(t),n=wn(t),u=Tn(t),c=Mn(t),f=xn(t),l=Un(t),v=Pn(t),y=tr(t);return{map:function(I,R){return X.pipe(I,r(R))},ap:function(I,R){return X.pipe(I,e(R))},of:Qe(t),chain:function(I,R){return X.pipe(I,n(R))},alt:function(I,R){return X.pipe(I,u(R))},bimap:function(I,R,x){return X.pipe(I,c(R,x))},mapLeft:function(I,R){return X.pipe(I,f(R))},fold:function(I,R,x){return X.pipe(I,l(R,x))},getOrElse:function(I,R){return X.pipe(I,v(R))},orElse:function(I,R){return X.pipe(I,y(R))},swap:Fn(t),rightM:Rn(t),leftM:On(t),left:_n(t)}}S.getEitherM=If});var kn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getFilterableComposition=z.partitionMap=z.partition=z.filterMap=z.filter=void 0;var Nn=Ye(),At=U(),Sf=Y(),Wn=He(),Ef=Ke(),Ln=Dt();function er(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filter(u,r)})}}}z.filter=er;function rr(t,e){return function(r){return function(n){return t.map(n,function(u){return e.filterMap(u,r)})}}}z.filterMap=rr;function Kn(t,e){var r=er(t,e);return function(n){var u=r(Ef.not(n)),c=r(n);return function(f){return Ln.separated(u(f),c(f))}}}z.partition=Kn;function jn(t,e){var r=rr(t,e);return function(n){return function(u){return Ln.separated(At.pipe(u,r(function(c){return Wn.getLeft(n(c))})),At.pipe(u,r(function(c){return Wn.getRight(n(c))})))}}}z.partitionMap=jn;function bf(t,e){var r=Sf.getFunctorComposition(t,e).map,n=Nn.compact(t,e),u=Nn.separate(t,e,e),c=er(t,e),f=rr(t,e),l=Kn(t,e),v=jn(t,e);return{map:r,compact:n,separate:u,filter:function(y,I){return At.pipe(y,c(I))},filterMap:function(y,I){return At.pipe(y,f(I))},partition:function(y,I){return At.pipe(y,l(I))},partitionMap:function(y,I){return At.pipe(y,v(I))}}}z.getFilterableComposition=bf});var ir=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.chainFirstIOK=ot.chainIOK=ot.fromIOK=void 0;var _f=pt(),nr=U();function Rf(t){return function(e){return nr.flow(e,t.fromIO)}}ot.fromIOK=Rf;function Of(t,e){return function(r){var n=nr.flow(r,t.fromIO);return function(u){return e.chain(u,n)}}}ot.chainIOK=Of;function Af(t,e){var r=_f.chainFirst(e);return function(n){return r(nr.flow(n,t.fromIO))}}ot.chainFirstIOK=Af});var Dn=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.chainFirstTaskK=ut.chainTaskK=ut.fromTaskK=void 0;var qf=pt(),ar=U();function wf(t){return function(e){return ar.flow(e,t.fromTask)}}ut.fromTaskK=wf;function Tf(t,e){return function(r){var n=ar.flow(r,t.fromTask);return function(u){return e.chain(u,n)}}}ut.chainTaskK=Tf;function Mf(t,e){var r=qf.chainFirst(e);return function(n){return r(ar.flow(n,t.fromTask))}}ut.chainFirstTaskK=Mf});var $n=m(s=>{"use strict";var xf=s&&s.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Uf=s&&s.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Pf=s&&s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xf(e,t,r);return Uf(e,t),e};Object.defineProperty(s,"__esModule",{value:!0});s.getMonoid=s.getSemigroup=s.taskSeq=s.task=s.sequenceSeqArray=s.traverseSeqArray=s.traverseSeqArrayWithIndex=s.sequenceArray=s.traverseArray=s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq=s.traverseReadonlyNonEmptyArrayWithIndexSeq=s.traverseReadonlyArrayWithIndex=s.traverseReadonlyNonEmptyArrayWithIndex=s.ApT=s.apS=s.bind=s.bindTo=s.Do=s.never=s.FromTask=s.chainFirstIOK=s.chainIOK=s.fromIOK=s.FromIO=s.chainFirst=s.MonadTask=s.fromTask=s.MonadIO=s.Monad=s.Chain=s.ApplicativeSeq=s.ApplySeq=s.ApplicativePar=s.apSecond=s.apFirst=s.ApplyPar=s.Pointed=s.flap=s.Functor=s.getRaceMonoid=s.URI=s.flatten=s.chain=s.of=s.ap=s.map=s.delay=s.fromIO=void 0;var Ff=kt(),de=lt(),Bn=pt(),or=ir(),nt=U(),Gn=Y(),gt=Pf(it()),Cf=function(t){return function(){return Promise.resolve().then(t)}};s.fromIO=Cf;function Nf(t){return function(e){return function(){return new Promise(function(r){setTimeout(function(){Promise.resolve().then(e).then(r)},t)})}}}s.delay=Nf;var H=function(t,e){return nt.pipe(t,s.map(e))},yt=function(t,e){return nt.pipe(t,s.ap(e))},ur=function(t,e){return nt.pipe(t,s.chain(function(r){return nt.pipe(e,s.map(r))}))},qt=function(t,e){return nt.pipe(t,s.chain(e))},Wf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(t)}}};s.map=Wf;var Lf=function(t){return function(e){return function(){return Promise.all([Promise.resolve().then(e),Promise.resolve().then(t)]).then(function(r){var n=r[0],u=r[1];return n(u)})}}};s.ap=Lf;var Kf=function(t){return function(){return Promise.resolve(t)}};s.of=Kf;var jf=function(t){return function(e){return function(){return Promise.resolve().then(e).then(function(r){return t(r)()})}}};s.chain=jf;s.flatten=s.chain(nt.identity);s.URI="Task";function kf(){return{concat:function(t,e){return function(){return Promise.race([Promise.resolve().then(t),Promise.resolve().then(e)])}},empty:s.never}}s.getRaceMonoid=kf;s.Functor={URI:s.URI,map:H};s.flap=Gn.flap(s.Functor);s.Pointed={URI:s.URI,of:s.of};s.ApplyPar={URI:s.URI,map:H,ap:yt};s.apFirst=de.apFirst(s.ApplyPar);s.apSecond=de.apSecond(s.ApplyPar);s.ApplicativePar={URI:s.URI,map:H,ap:yt,of:s.of};s.ApplySeq={URI:s.URI,map:H,ap:ur};s.ApplicativeSeq={URI:s.URI,map:H,ap:ur,of:s.of};s.Chain={URI:s.URI,map:H,ap:yt,chain:qt};s.Monad={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt};s.MonadIO={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO};s.fromTask=nt.identity;s.MonadTask={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.chainFirst=Bn.chainFirst(s.Chain);s.FromIO={URI:s.URI,fromIO:s.fromIO};s.fromIOK=or.fromIOK(s.FromIO);s.chainIOK=or.chainIOK(s.FromIO,s.Chain);s.chainFirstIOK=or.chainFirstIOK(s.FromIO,s.Chain);s.FromTask={URI:s.URI,fromIO:s.fromIO,fromTask:s.fromTask};var Df=function(){return new Promise(function(t){})};s.never=Df;s.Do=s.of(gt.emptyRecord);s.bindTo=Gn.bindTo(s.Functor);s.bind=Bn.bind(s.Chain);s.apS=de.apS(s.ApplyPar);s.ApT=s.of(gt.emptyReadonlyArray);var Bf=function(t){return function(e){return function(){return Promise.all(e.map(function(r,n){return Promise.resolve().then(function(){return t(n,r)()})}))}}};s.traverseReadonlyNonEmptyArrayWithIndex=Bf;var Gf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndex(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndex=Gf;var $f=function(t){return function(e){return function(){return gt.tail(e).reduce(function(r,n,u){return r.then(function(c){return Promise.resolve().then(t(u+1,n)).then(function(f){return c.push(f),c})})},Promise.resolve().then(t(0,gt.head(e))).then(gt.singleton))}}};s.traverseReadonlyNonEmptyArrayWithIndexSeq=$f;var Vf=function(t){var e=s.traverseReadonlyNonEmptyArrayWithIndexSeq(t);return function(r){return gt.isNonEmpty(r)?e(r):s.ApT}};s.traverseReadonlyArrayWithIndexSeq=Vf;s.traverseArrayWithIndex=s.traverseReadonlyArrayWithIndex;var zf=function(t){return s.traverseReadonlyArrayWithIndex(function(e,r){return t(r)})};s.traverseArray=zf;s.sequenceArray=s.traverseArray(nt.identity);s.traverseSeqArrayWithIndex=s.traverseReadonlyArrayWithIndexSeq;var Jf=function(t){return s.traverseReadonlyArrayWithIndexSeq(function(e,r){return t(r)})};s.traverseSeqArray=Jf;s.sequenceSeqArray=s.traverseSeqArray(nt.identity);s.task={URI:s.URI,map:H,of:s.of,ap:yt,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.taskSeq={URI:s.URI,map:H,of:s.of,ap:ur,chain:qt,fromIO:s.fromIO,fromTask:s.fromTask};s.getSemigroup=de.getApplySemigroup(s.ApplySeq);s.getMonoid=Ff.getApplicativeMonoid(s.ApplicativeSeq)});var Zn=m(a=>{"use strict";var Xf=a&&a.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hf=a&&a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),he=a&&a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xf(e,t,r);return Hf(e,t),e};Object.defineProperty(a,"__esModule",{value:!0});a.getCompactable=a.getAltTaskValidation=a.getApplicativeTaskValidation=a.URI=a.throwError=a.of=a.altW=a.alt=a.flatten=a.flattenW=a.chainW=a.chain=a.apW=a.ap=a.mapLeft=a.bimap=a.map=a.chainIOEitherK=a.chainIOEitherKW=a.fromIOEitherK=a.chainTaskOptionK=a.fromTaskOptionK=a.swap=a.orLeft=a.orElseFirstW=a.orElseFirst=a.orElseW=a.orElse=a.toUnion=a.tryCatchK=a.tryCatch=a.getOrElseW=a.getOrElse=a.foldW=a.matchEW=a.fold=a.matchE=a.matchW=a.match=a.fromTaskOption=a.fromIOEither=a.fromEither=a.fromTask=a.fromIO=a.leftIO=a.rightIO=a.leftTask=a.rightTask=a.right=a.left=void 0;a.traverseReadonlyArrayWithIndexSeq=a.traverseReadonlyNonEmptyArrayWithIndexSeq=a.traverseReadonlyArrayWithIndex=a.traverseReadonlyNonEmptyArrayWithIndex=a.ApT=a.apSW=a.apS=a.bindW=a.bind=a.bindTo=a.Do=a.bracket=a.taskify=a.chainFirstTaskK=a.chainTaskK=a.fromTaskK=a.FromTask=a.chainFirstIOK=a.chainIOK=a.fromIOK=a.FromIO=a.fromEitherK=a.filterOrElseW=a.filterOrElse=a.fromPredicate=a.chainEitherKW=a.chainEitherK=a.chainOptionK=a.fromOptionK=a.fromOption=a.FromEither=a.Alt=a.Bifunctor=a.chainFirstW=a.chainFirst=a.MonadThrow=a.MonadTask=a.MonadIO=a.Monad=a.Chain=a.ApplicativeSeq=a.ApplySeq=a.ApplicativePar=a.apSecond=a.apFirst=a.ApplyPar=a.Pointed=a.flap=a.Functor=a.getFilterable=void 0;a.getTaskValidation=a.getSemigroup=a.getApplyMonoid=a.getApplySemigroup=a.taskEitherSeq=a.taskEither=a.sequenceSeqArray=a.traverseSeqArray=a.traverseSeqArrayWithIndex=a.sequenceArray=a.traverseArray=a.traverseArrayWithIndex=void 0;var Zf=kt(),wt=lt(),zn=pt(),Vn=Ye(),ct=he(ae()),F=he(Cn()),me=kn(),It=ne(),cr=ir(),sr=Dn(),q=U(),Jn=Y(),B=he(it()),_=he($n());a.left=F.left(_.Pointed);a.right=F.right(_.Pointed);a.rightTask=F.rightF(_.Functor);a.leftTask=F.leftF(_.Functor);a.rightIO=q.flow(_.fromIO,a.rightTask);a.leftIO=q.flow(_.fromIO,a.leftTask);a.fromIO=a.rightIO;a.fromTask=a.rightTask;a.fromEither=_.of;a.fromIOEither=_.fromIO;var Yf=function(t){return _.map(ct.fromOption(t))};a.fromTaskOption=Yf;a.match=F.match(_.Functor);a.matchW=a.match;a.matchE=F.matchE(_.Monad);a.fold=a.matchE;a.matchEW=a.matchE;a.foldW=a.matchEW;a.getOrElse=F.getOrElse(_.Monad);a.getOrElseW=a.getOrElse;var Qf=function(t,e){return function(){return t().then(B.right,function(r){return B.left(e(r))})}};a.tryCatch=Qf;var tl=function(t,e){return function(){for(var r=[],n=0;n{ei.exports=ti;ti.sync=yl;var Yn=require("fs");function gl(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{oi.exports=ii;ii.sync=Il;var ni=require("fs");function ii(t,e,r){ni.stat(t,function(n,u){r(n,n?!1:ai(u,e))})}function Il(t,e){return ai(ni.statSync(t),e)}function ai(t,e){return t.isFile()&&Sl(t,e)}function Sl(t,e){var r=t.mode,n=t.uid,u=t.gid,c=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),f=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),l=parseInt("100",8),v=parseInt("010",8),y=parseInt("001",8),I=l|v,R=r&y||r&v&&u===f||r&l&&n===c||r&I&&c===0;return R}});var si=m((Dd,ci)=>{var kd=require("fs"),ye;process.platform==="win32"||global.TESTING_WINDOWS?ye=ri():ye=ui();ci.exports=pr;pr.sync=El;function pr(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,u){pr(t,e||{},function(c,f){c?u(c):n(f)})})}ye(t,e||{},function(n,u){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,u=!1),r(n,u)})}function El(t,e){try{return ye.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var vi=m((Bd,hi)=>{var Tt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",fi=require("path"),bl=Tt?";":":",li=si(),pi=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),di=(t,e)=>{let r=e.colon||bl,n=t.match(/\//)||Tt&&t.match(/\\/)?[""]:[...Tt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],u=Tt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Tt?u.split(r):[""];return Tt&&t.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:u}},mi=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:u,pathExtExe:c}=di(t,e),f=[],l=y=>new Promise((I,R)=>{if(y===n.length)return e.all&&f.length?I(f):R(pi(t));let x=n[y],G=/^".*"$/.test(x)?x.slice(1,-1):x,$=fi.join(G,t),J=!G&&/^\.[\\\/]/.test(t)?t.slice(0,2)+$:$;I(v(J,y,0))}),v=(y,I,R)=>new Promise((x,G)=>{if(R===u.length)return x(l(I+1));let $=u[R];li(y+$,{pathExt:c},(J,Et)=>{if(!J&&Et)if(e.all)f.push(y+$);else return x(y+$);return x(v(y,I,R+1))})});return r?l(0).then(y=>r(null,y),r):l(0)},_l=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:u}=di(t,e),c=[];for(let f=0;f{"use strict";var gi=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};dr.exports=gi;dr.exports.default=gi});var Ei=m(($d,Si)=>{"use strict";var yi=require("path"),Rl=vi(),Ol=mr();function Ii(t,e){let r=t.options.env||process.env,n=process.cwd(),u=t.options.cwd!=null,c=u&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(t.options.cwd)}catch{}let f;try{f=Rl.sync(t.command,{path:r[Ol({env:r})],pathExt:e?yi.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return f&&(f=yi.resolve(u?t.options.cwd:"",f)),f}function Al(t){return Ii(t)||Ii(t,!0)}Si.exports=Al});var bi=m((Vd,vr)=>{"use strict";var hr=/([()\][%!^"`<>&|;, *?])/g;function ql(t){return t=t.replace(hr,"^$1"),t}function wl(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hr,"^$1"),e&&(t=t.replace(hr,"^$1")),t}vr.exports.command=ql;vr.exports.argument=wl});var Ri=m((zd,_i)=>{"use strict";_i.exports=/^#!(.*)/});var Ai=m((Jd,Oi)=>{"use strict";var Tl=Ri();Oi.exports=(t="")=>{let e=t.match(Tl);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),u=r.split("/").pop();return u==="env"?n:n?`${u} ${n}`:u}});var wi=m((Xd,qi)=>{"use strict";var gr=require("fs"),Ml=Ai();function xl(t){let r=Buffer.alloc(150),n;try{n=gr.openSync(t,"r"),gr.readSync(n,r,0,150,0),gr.closeSync(n)}catch{}return Ml(r.toString())}qi.exports=xl});var Ui=m((Hd,xi)=>{"use strict";var Ul=require("path"),Ti=Ei(),Mi=bi(),Pl=wi(),Fl=process.platform==="win32",Cl=/\.(?:com|exe)$/i,Nl=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Wl(t){t.file=Ti(t);let e=t.file&&Pl(t.file);return e?(t.args.unshift(t.file),t.command=e,Ti(t)):t.file}function Ll(t){if(!Fl)return t;let e=Wl(t),r=!Cl.test(e);if(t.options.forceShell||r){let n=Nl.test(e);t.command=Ul.normalize(t.command),t.command=Mi.command(t.command),t.args=t.args.map(c=>Mi.argument(c,n));let u=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${u}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Kl(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:Ll(n)}xi.exports=Kl});var Ci=m((Zd,Fi)=>{"use strict";var yr=process.platform==="win32";function Ir(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function jl(t,e){if(!yr)return;let r=t.emit;t.emit=function(n,u){if(n==="exit"){let c=Pi(u,e,"spawn");if(c)return r.call(t,"error",c)}return r.apply(t,arguments)}}function Pi(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawn"):null}function kl(t,e){return yr&&t===1&&!e.file?Ir(e.original,"spawnSync"):null}Fi.exports={hookChildProcess:jl,verifyENOENT:Pi,verifyENOENTSync:kl,notFoundError:Ir}});var Li=m((Yd,Mt)=>{"use strict";var Ni=require("child_process"),Sr=Ui(),Er=Ci();function Wi(t,e,r){let n=Sr(t,e,r),u=Ni.spawn(n.command,n.args,n.options);return Er.hookChildProcess(u,n),u}function Dl(t,e,r){let n=Sr(t,e,r),u=Ni.spawnSync(n.command,n.args,n.options);return u.error=u.error||Er.verifyENOENTSync(u.status,n),u}Mt.exports=Wi;Mt.exports.spawn=Wi;Mt.exports.sync=Dl;Mt.exports._parse=Sr;Mt.exports._enoent=Er});var ji=m((Qd,Ki)=>{"use strict";Ki.exports=t=>{let e=typeof t=="string"?` +`:` +`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Bi=m((tm,Ht)=>{"use strict";var Xt=require("path"),ki=mr(),Di=t=>{t=P({cwd:process.cwd(),path:process.env[ki()],execPath:process.execPath},t);let e,r=Xt.resolve(t.cwd),n=[];for(;e!==r;)n.push(Xt.join(r,"node_modules/.bin")),e=r,r=Xt.resolve(r,"..");let u=Xt.resolve(t.cwd,t.execPath,"..");return n.push(u),n.concat(t.path).join(Xt.delimiter)};Ht.exports=Di;Ht.exports.default=Di;Ht.exports.env=t=>{t=P({env:process.env},t);let e=P({},t.env),r=ki({env:e});return t.path=e[r],e[r]=Ht.exports(t),e}});var $i=m((em,br)=>{"use strict";var Gi=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};br.exports=Gi;br.exports.default=Gi});var zi=m((rm,Se)=>{"use strict";var Bl=$i(),Ie=new WeakMap,Vi=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,u=t.displayName||t.name||"",c=function(...f){if(Ie.set(c,++n),n===1)r=t.apply(this,f),t=null;else if(e.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r};return Bl(c,t),Ie.set(c,n),c};Se.exports=Vi;Se.exports.default=Vi;Se.exports.callCount=t=>{if(!Ie.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ie.get(t)}});var Ji=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.SIGNALS=void 0;var Gl=[{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:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Ee.SIGNALS=Gl});var _r=m(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.SIGRTMAX=xt.getRealtimeSignals=void 0;var $l=function(){let t=Hi-Xi+1;return Array.from({length:t},Vl)};xt.getRealtimeSignals=$l;var Vl=function(t,e){return{name:`SIGRT${e+1}`,number:Xi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Xi=34,Hi=64;xt.SIGRTMAX=Hi});var Zi=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getSignals=void 0;var zl=require("os"),Jl=Ji(),Xl=_r(),Hl=function(){let t=(0,Xl.getRealtimeSignals)();return[...Jl.SIGNALS,...t].map(Zl)};be.getSignals=Hl;var Zl=function({name:t,number:e,description:r,action:n,forced:u=!1,standard:c}){let{signals:{[t]:f}}=zl.constants,l=f!==void 0;return{name:t,number:l?f:e,description:r,supported:l,action:n,forced:u,standard:c}}});var Qi=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.signalsByNumber=Ut.signalsByName=void 0;var Yl=require("os"),Yi=Zi(),Ql=_r(),tp=function(){return(0,Yi.getSignals)().reduce(ep,{})},ep=function(t,{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}){return et(P({},t),{[e]:{name:e,number:r,description:n,supported:u,action:c,forced:f,standard:l}})},rp=tp();Ut.signalsByName=rp;var np=function(){let t=(0,Yi.getSignals)(),e=Ql.SIGRTMAX+1,r=Array.from({length:e},(n,u)=>ip(u,t));return Object.assign({},...r)},ip=function(t,e){let r=ap(t,e);if(r===void 0)return{};let{name:n,description:u,supported:c,action:f,forced:l,standard:v}=r;return{[t]:{name:n,number:t,description:u,supported:c,action:f,forced:l,standard:v}}},ap=function(t,e){let r=e.find(({name:n})=>Yl.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},op=np();Ut.signalsByNumber=op});var ea=m((um,ta)=>{"use strict";var{signalsByName:up}=Qi(),cp=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:u,exitCode:c,isCanceled:f})=>t?`timed out after ${e} milliseconds`:f?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${u})`:c!==void 0?`failed with exit code ${c}`:"failed",sp=({stdout:t,stderr:e,all:r,error:n,signal:u,exitCode:c,command:f,escapedCommand:l,timedOut:v,isCanceled:y,killed:I,parsed:{options:{timeout:R}}})=>{c=c===null?void 0:c,u=u===null?void 0:u;let x=u===void 0?void 0:up[u].description,G=n&&n.code,J=`Command ${cp({timedOut:v,timeout:R,errorCode:G,signal:u,signalDescription:x,exitCode:c,isCanceled:y})}: ${f}`,Et=Object.prototype.toString.call(n)==="[object Error]",te=Et?`${J} +${n.message}`:J,ee=[te,e,t].filter(Boolean).join(` +`);return Et?(n.originalMessage=n.message,n.message=ee):n=new Error(ee),n.shortMessage=te,n.command=f,n.escapedCommand=l,n.exitCode=c,n.signal=u,n.signalDescription=x,n.stdout=t,n.stderr=e,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};ta.exports=sp});var na=m((cm,Rr)=>{"use strict";var _e=["stdin","stdout","stderr"],fp=t=>_e.some(e=>t[e]!==void 0),ra=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return _e.map(n=>t[n]);if(fp(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_e.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,_e.length);return Array.from({length:r},(n,u)=>e[u])};Rr.exports=ra;Rr.exports.node=t=>{let e=ra(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ia=m((sm,Re)=>{Re.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Re.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Re.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sa=m((fm,Ct)=>{var O=global.process;typeof O!="object"||!O?Ct.exports=function(){}:(aa=require("assert"),Pt=ia(),oa=/^win/i.test(O.platform),Zt=require("events"),typeof Zt!="function"&&(Zt=Zt.EventEmitter),O.__signal_exit_emitter__?N=O.__signal_exit_emitter__:(N=O.__signal_exit_emitter__=new Zt,N.count=0,N.emitted={}),N.infinite||(N.setMaxListeners(1/0),N.infinite=!0),Ct.exports=function(t,e){if(global.process===O){aa.equal(typeof t,"function","a callback must be provided for exit handler"),Ft===!1&&Or();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){N.removeListener(r,t),N.listeners("exit").length===0&&N.listeners("afterexit").length===0&&Oe()};return N.on(r,t),n}},Oe=function(){!Ft||global.process!==O||(Ft=!1,Pt.forEach(function(e){try{O.removeListener(e,Ae[e])}catch{}}),O.emit=qe,O.reallyExit=Ar,N.count-=1)},Ct.exports.unload=Oe,St=function(e,r,n){N.emitted[e]||(N.emitted[e]=!0,N.emit(e,r,n))},Ae={},Pt.forEach(function(t){Ae[t]=function(){if(O===global.process){var r=O.listeners(t);r.length===N.count&&(Oe(),St("exit",null,t),St("afterexit",null,t),oa&&t==="SIGHUP"&&(t="SIGINT"),O.kill(O.pid,t))}}}),Ct.exports.signals=function(){return Pt},Ft=!1,Or=function(){Ft||O!==global.process||(Ft=!0,N.count+=1,Pt=Pt.filter(function(e){try{return O.on(e,Ae[e]),!0}catch{return!1}}),O.emit=ca,O.reallyExit=ua)},Ct.exports.load=Or,Ar=O.reallyExit,ua=function(e){O===global.process&&(O.exitCode=e||0,St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),Ar.call(O,O.exitCode))},qe=O.emit,ca=function(e,r){if(e==="exit"&&O===global.process){r!==void 0&&(O.exitCode=r);var n=qe.apply(this,arguments);return St("exit",O.exitCode,null),St("afterexit",O.exitCode,null),n}else return qe.apply(this,arguments)});var aa,Pt,oa,Zt,N,Oe,St,Ae,Ft,Or,Ar,ua,qe,ca});var la=m((lm,fa)=>{"use strict";var lp=require("os"),pp=sa(),dp=1e3*5,mp=(t,e="SIGTERM",r={})=>{let n=t(e);return hp(t,e,r,n),n},hp=(t,e,r,n)=>{if(!vp(e,r,n))return;let u=yp(r),c=setTimeout(()=>{t("SIGKILL")},u);c.unref&&c.unref()},vp=(t,{forceKillAfterTimeout:e},r)=>gp(t)&&e!==!1&&r,gp=t=>t===lp.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",yp=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return dp;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},Ip=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Sp=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Ep=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let u,c=new Promise((l,v)=>{u=setTimeout(()=>{Sp(t,r,v)},e)}),f=n.finally(()=>{clearTimeout(u)});return Promise.race([c,f])},bp=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},_p=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let u=pp(()=>{t.kill()});return n.finally(()=>{u()})};fa.exports={spawnedKill:mp,spawnedCancel:Ip,setupTimeout:Ep,validateTimeout:bp,setExitHandler:_p}});var da=m((pm,pa)=>{"use strict";var Q=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Q.writable=t=>Q(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Q.readable=t=>Q(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Q.duplex=t=>Q.writable(t)&&Q.readable(t);Q.transform=t=>Q.duplex(t)&&typeof t._transform=="function";pa.exports=Q});var ha=m((dm,ma)=>{"use strict";var{PassThrough:Rp}=require("stream");ma.exports=t=>{t=P({},t);let{array:e}=t,{encoding:r}=t,n=r==="buffer",u=!1;e?u=!(r||n):r=r||"utf8",n&&(r=null);let c=new Rp({objectMode:u});r&&c.setEncoding(r);let f=0,l=[];return c.on("data",v=>{l.push(v),u?f=l.length:f+=v.length}),c.getBufferedValue=()=>e?l:n?Buffer.concat(l,f):l.join(""),c.getBufferedLength=()=>f,c}});var va=m((mm,Yt)=>{"use strict";var{constants:Op}=require("buffer"),Ap=require("stream"),{promisify:qp}=require("util"),wp=ha(),Tp=qp(Ap.pipeline),qr=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function wr(t,e){if(!t)throw new Error("Expected a stream");e=P({maxBuffer:1/0},e);let{maxBuffer:r}=e,n=wp(e);return await new Promise((u,c)=>{let f=l=>{l&&n.getBufferedLength()<=Op.MAX_LENGTH&&(l.bufferedData=n.getBufferedValue()),c(l)};(async()=>{try{await Tp(t,n),u()}catch(l){f(l)}})(),n.on("data",()=>{n.getBufferedLength()>r&&f(new qr)})}),n.getBufferedValue()}Yt.exports=wr;Yt.exports.buffer=(t,e)=>wr(t,et(P({},e),{encoding:"buffer"}));Yt.exports.array=(t,e)=>wr(t,et(P({},e),{array:!0}));Yt.exports.MaxBufferError=qr});var ya=m((hm,ga)=>{"use strict";var{PassThrough:Mp}=require("stream");ga.exports=function(){var t=[],e=new Mp({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",u),Array.prototype.slice.call(arguments).forEach(r),e;function r(c){return Array.isArray(c)?(c.forEach(r),this):(t.push(c),c.once("end",u.bind(null,c)),c.once("error",e.emit.bind(e,"error")),c.pipe(e,{end:!1}),this)}function n(){return t.length==0}function u(c){t=t.filter(function(f){return f!==c}),!t.length&&e.readable&&e.end()}}});var ba=m((vm,Ea)=>{"use strict";var Sa=da(),Ia=va(),xp=ya(),Up=(t,e)=>{e===void 0||t.stdin===void 0||(Sa(e)?e.pipe(t.stdin):t.stdin.end(e))},Pp=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=xp();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Tr=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Mr=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Ia(t,{encoding:e,maxBuffer:n}):Ia.buffer(t,{maxBuffer:n})},Fp=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:u,maxBuffer:c},f)=>{let l=Mr(t,{encoding:n,buffer:u,maxBuffer:c}),v=Mr(e,{encoding:n,buffer:u,maxBuffer:c}),y=Mr(r,{encoding:n,buffer:u,maxBuffer:c*2});try{return await Promise.all([f,l,v,y])}catch(I){return Promise.all([{error:I,signal:I.signal,timedOut:I.timedOut},Tr(t,l),Tr(e,v),Tr(r,y)])}},Cp=({input:t})=>{if(Sa(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ea.exports={handleInput:Up,makeAllStream:Pp,getSpawnedResult:Fp,validateInputSync:Cp}});var Ra=m((gm,_a)=>{"use strict";var Np=(async()=>{})().constructor.prototype,Wp=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Np,t)]),Lp=(t,e)=>{for(let[r,n]of Wp){let u=typeof e=="function"?(...c)=>Reflect.apply(n.value,e(),c):n.value.bind(e);Reflect.defineProperty(t,r,et(P({},n),{value:u}))}return t},Kp=t=>new Promise((e,r)=>{t.on("exit",(n,u)=>{e({exitCode:n,signal:u})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});_a.exports={mergePromise:Lp,getSpawnedPromise:Kp}});var qa=m((ym,Aa)=>{"use strict";var Oa=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],jp=/^[\w.-]+$/,kp=/"/g,Dp=t=>typeof t!="string"||jp.test(t)?t:`"${t.replace(kp,'\\"')}"`,Bp=(t,e)=>Oa(t,e).join(" "),Gp=(t,e)=>Oa(t,e).map(r=>Dp(r)).join(" "),$p=/ +/g,Vp=t=>{let e=[];for(let r of t.trim().split($p)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Aa.exports={joinCommand:Bp,getEscapedCommand:Gp,parseCommand:Vp}});var Fa=m((Im,Nt)=>{"use strict";var zp=require("path"),xr=require("child_process"),Jp=Li(),Xp=ji(),Hp=Bi(),Zp=zi(),we=ea(),Ta=na(),{spawnedKill:Yp,spawnedCancel:Qp,setupTimeout:td,validateTimeout:ed,setExitHandler:rd}=la(),{handleInput:nd,getSpawnedResult:id,makeAllStream:ad,validateInputSync:od}=ba(),{mergePromise:wa,getSpawnedPromise:ud}=Ra(),{joinCommand:Ma,parseCommand:xa,getEscapedCommand:Ua}=qa(),cd=1e3*1e3*100,sd=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:u})=>{let c=e?P(P({},process.env),t):t;return r?Hp.env({env:c,cwd:n,execPath:u}):c},Pa=(t,e,r={})=>{let n=Jp._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r=P({maxBuffer:cd,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=sd(r),r.stdio=Ta(r),process.platform==="win32"&&zp.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qt=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Xp(e):e,Te=(t,e,r)=>{let n=Pa(t,e,r),u=Ma(t,e),c=Ua(t,e);ed(n.options);let f;try{f=xr.spawn(n.file,n.args,n.options)}catch(G){let $=new xr.ChildProcess,J=Promise.reject(we({error:G,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return wa($,J)}let l=ud(f),v=td(f,n.options,l),y=rd(f,n.options,v),I={isCanceled:!1};f.kill=Yp.bind(null,f.kill.bind(f)),f.cancel=Qp.bind(null,f,I);let x=Zp(async()=>{let[{error:G,exitCode:$,signal:J,timedOut:Et},te,ee,Da]=await id(f,n.options,y),Ur=Qt(n.options,te),Pr=Qt(n.options,ee),Fr=Qt(n.options,Da);if(G||$!==0||J!==null){let Cr=we({error:G,exitCode:$,signal:J,stdout:Ur,stderr:Pr,all:Fr,command:u,escapedCommand:c,parsed:n,timedOut:Et,isCanceled:I.isCanceled,killed:f.killed});if(!n.options.reject)return Cr;throw Cr}return{command:u,escapedCommand:c,exitCode:0,stdout:Ur,stderr:Pr,all:Fr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return nd(f,n.options.input),f.all=ad(f,n.options),wa(f,x)};Nt.exports=Te;Nt.exports.sync=(t,e,r)=>{let n=Pa(t,e,r),u=Ma(t,e),c=Ua(t,e);od(n.options);let f;try{f=xr.spawnSync(n.file,n.args,n.options)}catch(y){throw we({error:y,stdout:"",stderr:"",all:"",command:u,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qt(n.options,f.stdout,f.error),v=Qt(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let y=we({stdout:l,stderr:v,error:f.error,signal:f.signal,exitCode:f.status,command:u,escapedCommand:c,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return y;throw y}return{command:u,escapedCommand:c,exitCode:0,stdout:l,stderr:v,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Nt.exports.command=(t,e)=>{let[r,...n]=xa(t);return Te(r,n,e)};Nt.exports.commandSync=(t,e)=>{let[r,...n]=xa(t);return Te.sync(r,n,e)};Nt.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=Ta.node(r),u=process.execArgv.filter(l=>!l.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:f=u}=r;return Te(c,[...f,t,...Array.isArray(e)?e:[]],et(P({},r),{stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1}))}});var pd={};Ha(pd,{default:()=>ld});var ka=require("@raycast/api");var La=Kt(ae()),Ka=Kt(U()),Wt=Kt(Zn());var Ca=Kt(require("node:process"),1),Na=Kt(Fa(),1);async function Wa(t){if(Ca.default.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await(0,Na.default)("osascript",["-e",t]);return e}var tt=(t,e)=>Wt.tryCatch(()=>Wa(`tell application "${t}" to ${e}`),La.toError);var bm=tt("Music","pause"),_m=tt("Music","play"),Rm=tt("Music","stop"),Om=tt("Music","next track"),Am=tt("Music","previous track"),ja=tt("Music","playpause"),qm=(0,Ka.pipe)(tt("Music","player state"),Wt.map(t=>t)),wm=tt("Music","set loved of current track to true"),Tm=tt("Music","set disliked of current track to true"),Mm=tt("Music",'duplicate current track to source "Library"');var ld=async()=>{await(0,ka.closeMainWindow)(),await ja()};module.exports=Za(pd);0&&(module.exports={});