add-vulnerabilities-to-bom
Version:
Adds known vulnerabilities to BOM
1 lines • 528 kB
JavaScript
var qv=Object.create;var L1=Object.defineProperty,Wv=Object.defineProperties,Uv=Object.getOwnPropertyDescriptor,Pv=Object.getOwnPropertyDescriptors,Tv=Object.getOwnPropertyNames,Ai=Object.getOwnPropertySymbols,Nv=Object.getPrototypeOf,ma=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable;var Xf=(r,e,t)=>e in r?L1(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ie=(r,e)=>{for(var t in e||(e={}))ma.call(e,t)&&Xf(r,t,e[t]);if(Ai)for(var t of Ai(e))Qf.call(e,t)&&Xf(r,t,e[t]);return r},Ke=(r,e)=>Wv(r,Pv(e));var Aa=r=>typeof r=="symbol"?r:r+"",ga=(r,e)=>{var t={};for(var n in r)ma.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&Ai)for(var n of Ai(r))e.indexOf(n)<0&&Qf.call(r,n)&&(t[n]=r[n]);return t};var fr=(r,e)=>()=>(r&&(e=r(r=0)),e);var m=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),lt=(r,e)=>{for(var t in e)L1(r,t,{get:e[t],enumerable:!0})},Yf=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of Tv(e))!ma.call(r,u)&&u!==t&&L1(r,u,{get:()=>e[u],enumerable:!(n=Uv(e,u))||n.enumerable});return r};var xr=(r,e,t)=>(t=r!=null?qv(Nv(r)):{},Yf(e||!r||!r.__esModule?L1(t,"default",{value:r,enumerable:!0}):t,r)),Sr=r=>Yf(L1({},"__esModule",{value:!0}),r);var Y=m(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.getEndomorphismMonoid=O.not=O.SK=O.hole=O.pipe=O.untupled=O.tupled=O.absurd=O.decrement=O.increment=O.tuple=O.flow=O.flip=O.constVoid=O.constUndefined=O.constNull=O.constFalse=O.constTrue=O.constant=O.unsafeCoerce=O.identity=O.apply=O.getRing=O.getSemiring=O.getMonoid=O.getSemigroup=O.getBooleanAlgebra=void 0;var Lv=function(r){return function(){return{meet:function(e,t){return function(n){return r.meet(e(n),t(n))}},join:function(e,t){return function(n){return r.join(e(n),t(n))}},zero:function(){return r.zero},one:function(){return r.one},implies:function(e,t){return function(n){return r.implies(e(n),t(n))}},not:function(e){return function(t){return r.not(e(t))}}}}};O.getBooleanAlgebra=Lv;var jv=function(r){return function(){return{concat:function(e,t){return function(n){return r.concat(e(n),t(n))}}}}};O.getSemigroup=jv;var Kv=function(r){var e=O.getSemigroup(r);return function(){return{concat:e().concat,empty:function(){return r.empty}}}};O.getMonoid=Kv;var zv=function(r){return{add:function(e,t){return function(n){return r.add(e(n),t(n))}},zero:function(){return r.zero},mul:function(e,t){return function(n){return r.mul(e(n),t(n))}},one:function(){return r.one}}};O.getSemiring=zv;var $v=function(r){var e=O.getSemiring(r);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(t,n){return function(u){return r.sub(t(u),n(u))}}}};O.getRing=$v;var Vv=function(r){return function(e){return e(r)}};O.apply=Vv;function Ea(r){return r}O.identity=Ea;O.unsafeCoerce=Ea;function j1(r){return function(){return r}}O.constant=j1;O.constTrue=j1(!0);O.constFalse=j1(!1);O.constNull=j1(null);O.constUndefined=j1(void 0);O.constVoid=O.constUndefined;function Hv(r){return function(e,t){return r(t,e)}}O.flip=Hv;function rs(r,e,t,n,u,i,a,d,v){switch(arguments.length){case 1:return r;case 2:return function(){return e(r.apply(this,arguments))};case 3:return function(){return t(e(r.apply(this,arguments)))};case 4:return function(){return n(t(e(r.apply(this,arguments))))};case 5:return function(){return u(n(t(e(r.apply(this,arguments)))))};case 6:return function(){return i(u(n(t(e(r.apply(this,arguments))))))};case 7:return function(){return a(i(u(n(t(e(r.apply(this,arguments)))))))};case 8:return function(){return d(a(i(u(n(t(e(r.apply(this,arguments))))))))};case 9:return function(){return v(d(a(i(u(n(t(e(r.apply(this,arguments)))))))))}}}O.flow=rs;function Gv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r}O.tuple=Gv;function kv(r){return r+1}O.increment=kv;function Jv(r){return r-1}O.decrement=Jv;function es(r){throw new Error("Called `absurd` function which should be uncallable")}O.absurd=es;function Zv(r){return function(e){return r.apply(void 0,e)}}O.tupled=Zv;function Xv(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}}O.untupled=Xv;function Qv(r,e,t,n,u,i,a,d,v){switch(arguments.length){case 1:return r;case 2:return e(r);case 3:return t(e(r));case 4:return n(t(e(r)));case 5:return u(n(t(e(r))));case 6:return i(u(n(t(e(r)))));case 7:return a(i(u(n(t(e(r))))));case 8:return d(a(i(u(n(t(e(r)))))));case 9:return v(d(a(i(u(n(t(e(r))))))));default:for(var h=arguments[0],E=1;E<arguments.length;E++)h=arguments[E](h);return h}}O.pipe=Qv;O.hole=es;var Yv=function(r,e){return e};O.SK=Yv;function rm(r){return function(e){return!r(e)}}O.not=rm;var em=function(){return{concat:function(r,e){return rs(r,e)},empty:Ea}};O.getEndomorphismMonoid=em});var dt=m(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.sequenceS=kr.sequenceT=kr.getApplySemigroup=kr.apS=kr.apSecond=kr.apFirst=kr.ap=void 0;var tm=Y();function nm(r,e){return function(t){return function(n){return r.ap(r.map(n,function(u){return function(i){return e.ap(u,i)}}),t)}}}kr.ap=nm;function um(r){return function(e){return function(t){return r.ap(r.map(t,function(n){return function(){return n}}),e)}}}kr.apFirst=um;function im(r){return function(e){return function(t){return r.ap(r.map(t,function(){return function(n){return n}}),e)}}}kr.apSecond=im;function om(r){return function(e,t){return function(n){return r.ap(r.map(n,function(u){return function(i){var a;return Object.assign({},u,(a={},a[e]=i,a))}}),t)}}}kr.apS=om;function am(r){return function(e){return{concat:function(t,n){return r.ap(r.map(t,function(u){return function(i){return e.concat(u,i)}}),n)}}}}kr.getApplySemigroup=am;function xa(r,e,t){return function(n){for(var u=Array(t.length+1),i=0;i<t.length;i++)u[i]=t[i];return u[t.length]=n,e===0?r.apply(null,u):xa(r,e-1,u)}}var Fa={1:function(r){return[r]},2:function(r){return function(e){return[r,e]}},3:function(r){return function(e){return function(t){return[r,e,t]}}},4:function(r){return function(e){return function(t){return function(n){return[r,e,t,n]}}}},5:function(r){return function(e){return function(t){return function(n){return function(u){return[r,e,t,n,u]}}}}}};function cm(r){return Fa.hasOwnProperty(r)||(Fa[r]=xa(tm.tuple,r-1,[])),Fa[r]}function fm(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.length,u=cm(n),i=r.map(e[0],u),a=1;a<n;a++)i=r.ap(i,e[a]);return i}}kr.sequenceT=fm;function sm(r){var e=r.length;switch(e){case 1:return function(t){var n;return n={},n[r[0]]=t,n};case 2:return function(t){return function(n){var u;return u={},u[r[0]]=t,u[r[1]]=n,u}};case 3:return function(t){return function(n){return function(u){var i;return i={},i[r[0]]=t,i[r[1]]=n,i[r[2]]=u,i}}};case 4:return function(t){return function(n){return function(u){return function(i){var a;return a={},a[r[0]]=t,a[r[1]]=n,a[r[2]]=u,a[r[3]]=i,a}}}};case 5:return function(t){return function(n){return function(u){return function(i){return function(a){var d;return d={},d[r[0]]=t,d[r[1]]=n,d[r[2]]=u,d[r[3]]=i,d[r[4]]=a,d}}}}};default:return xa(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var u={},i=0;i<e;i++)u[r[i]]=t[i];return u},e-1,[])}}function pm(r){return function(e){for(var t=Object.keys(e),n=t.length,u=sm(t),i=r.map(e[t[0]],u),a=1;a<n;a++)i=r.ap(i,e[t[a]]);return i}}kr.sequenceS=pm});var oe=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.getFunctorComposition=ze.bindTo=ze.flap=ze.map=void 0;var lm=Y();function ts(r,e){return function(t){return function(n){return r.map(n,function(u){return e.map(u,t)})}}}ze.map=ts;function dm(r){return function(e){return function(t){return r.map(t,function(n){return n(e)})}}}ze.flap=dm;function hm(r){return function(e){return function(t){return r.map(t,function(n){var u;return u={},u[e]=n,u})}}}ze.bindTo=hm;function vm(r,e){var t=ts(r,e);return{map:function(n,u){return lm.pipe(n,t(u))}}}ze.getFunctorComposition=vm});var K1=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getApplicativeComposition=Tn.getApplicativeMonoid=void 0;var ns=dt(),mm=Y(),Am=oe();function gm(r){var e=ns.getApplySemigroup(r);return function(t){return{concat:e(t).concat,empty:r.of(t.empty)}}}Tn.getApplicativeMonoid=gm;function Em(r,e){var t=Am.getFunctorComposition(r,e).map,n=ns.ap(r,e);return{map:t,of:function(u){return r.of(e.of(u))},ap:function(u,i){return mm.pipe(u,n(i))}}}Tn.getApplicativeComposition=Em});var $e=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.bind=Nn.chainFirst=void 0;function Fm(r){return function(e){return function(t){return r.chain(t,function(n){return r.map(e(n),function(){return n})})}}}Nn.chainFirst=Fm;function xm(r){return function(e,t){return function(n){return r.chain(n,function(u){return r.map(t(u),function(i){var a;return Object.assign({},u,(a={},a[e]=i,a))})})}}}Nn.bind=xm});var us=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.tailRec=void 0;var ym=function(r,e){for(var t=e(r);t._tag==="Left";)t=e(t.left);return t.right};gi.tailRec=ym});var qe=m($=>{"use strict";var Bm=$&&$.__spreadArray||function(r,e){for(var t=0,n=e.length,u=r.length;t<n;t++,u++)r[u]=e[t];return r};Object.defineProperty($,"__esModule",{value:!0});$.fromReadonlyNonEmptyArray=$.has=$.emptyRecord=$.emptyReadonlyArray=$.tail=$.head=$.isNonEmpty=$.singleton=$.right=$.left=$.isRight=$.isLeft=$.some=$.none=$.isSome=$.isNone=void 0;var Cm=function(r){return r._tag==="None"};$.isNone=Cm;var Dm=function(r){return r._tag==="Some"};$.isSome=Dm;$.none={_tag:"None"};var _m=function(r){return{_tag:"Some",value:r}};$.some=_m;var bm=function(r){return r._tag==="Left"};$.isLeft=bm;var Rm=function(r){return r._tag==="Right"};$.isRight=Rm;var Im=function(r){return{_tag:"Left",left:r}};$.left=Im;var Om=function(r){return{_tag:"Right",right:r}};$.right=Om;var Sm=function(r){return[r]};$.singleton=Sm;var wm=function(r){return r.length>0};$.isNonEmpty=wm;var Mm=function(r){return r[0]};$.head=Mm;var qm=function(r){return r.slice(1)};$.tail=qm;$.emptyReadonlyArray=[];$.emptyRecord={};$.has=Object.prototype.hasOwnProperty;var Wm=function(r){return Bm([r[0]],r.slice(1))};$.fromReadonlyNonEmptyArray=Wm});var z1=m(mr=>{"use strict";var Um=mr&&mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Pm=mr&&mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Tm=mr&&mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Um(e,r,t);return Pm(e,r),e};Object.defineProperty(mr,"__esModule",{value:!0});mr.filterOrElse=mr.chainFirstEitherK=mr.chainEitherK=mr.fromEitherK=mr.chainOptionK=mr.fromOptionK=mr.fromPredicate=mr.fromOption=void 0;var Nm=$e(),ya=Y(),hn=Tm(qe());function is(r){return function(e){return function(t){return r.fromEither(hn.isNone(t)?hn.left(e()):hn.right(t.value))}}}mr.fromOption=is;function Lm(r){return function(e,t){return function(n){return r.fromEither(e(n)?hn.right(n):hn.left(t(n)))}}}mr.fromPredicate=Lm;function os(r){var e=is(r);return function(t){var n=e(t);return function(u){return ya.flow(u,n)}}}mr.fromOptionK=os;function jm(r,e){var t=os(r);return function(n){var u=t(n);return function(i){return function(a){return e.chain(a,u(i))}}}}mr.chainOptionK=jm;function Ba(r){return function(e){return ya.flow(e,r.fromEither)}}mr.fromEitherK=Ba;function Km(r,e){var t=Ba(r);return function(n){return function(u){return e.chain(u,t(n))}}}mr.chainEitherK=Km;function zm(r,e){return ya.flow(Ba(r),Nm.chainFirst(e))}mr.chainFirstEitherK=zm;function $m(r,e){return function(t,n){return function(u){return e.chain(u,function(i){return r.fromEither(t(i)?hn.right(i):hn.left(n(i)))})}}}mr.filterOrElse=$m});var vn=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.right=z.left=z.flap=z.Functor=z.Bifunctor=z.URI=z.bimap=z.mapLeft=z.map=z.separated=void 0;var Ca=Y(),Vm=oe(),Hm=function(r,e){return{left:r,right:e}};z.separated=Hm;var Gm=function(r,e){return Ca.pipe(r,z.map(e))},km=function(r,e){return Ca.pipe(r,z.mapLeft(e))},Jm=function(r,e,t){return Ca.pipe(r,z.bimap(e,t))},Zm=function(r){return function(e){return z.separated(z.left(e),r(z.right(e)))}};z.map=Zm;var Xm=function(r){return function(e){return z.separated(r(z.left(e)),z.right(e))}};z.mapLeft=Xm;var Qm=function(r,e){return function(t){return z.separated(r(z.left(t)),e(z.right(t)))}};z.bimap=Qm;z.URI="Separated";z.Bifunctor={URI:z.URI,mapLeft:km,bimap:Jm};z.Functor={URI:z.URI,map:Gm};z.flap=Vm.flap(z.Functor);var Ym=function(r){return r.left};z.left=Ym;var rA=function(r){return r.right};z.right=rA});var $1=m(ae=>{"use strict";var eA=ae&&ae.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),tA=ae&&ae.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),nA=ae&&ae.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&eA(e,r,t);return tA(e,r),e};Object.defineProperty(ae,"__esModule",{value:!0});ae.filterE=ae.witherDefault=ae.wiltDefault=void 0;var as=nA(qe());function uA(r,e){return function(t){var n=r.traverse(t);return function(u,i){return t.map(n(u,i),e.separate)}}}ae.wiltDefault=uA;function iA(r,e){return function(t){var n=r.traverse(t);return function(u,i){return t.map(n(u,i),e.compact)}}}ae.witherDefault=iA;function oA(r){return function(e){var t=r.wither(e);return function(n){return function(u){return t(u,function(i){return e.map(n(i),function(a){return a?as.some(i):as.none})})}}}}ae.filterE=oA});var jn=m(f=>{"use strict";var aA=f&&f.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),cA=f&&f.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),fA=f&&f.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&aA(e,r,t);return cA(e,r),e};Object.defineProperty(f,"__esModule",{value:!0});f.fold=f.match=f.foldW=f.matchW=f.isRight=f.isLeft=f.fromOption=f.fromPredicate=f.FromEither=f.MonadThrow=f.throwError=f.ChainRec=f.Extend=f.extend=f.Alt=f.alt=f.altW=f.Bifunctor=f.mapLeft=f.bimap=f.Traversable=f.sequence=f.traverse=f.Foldable=f.reduceRight=f.foldMap=f.reduce=f.Monad=f.Chain=f.chain=f.chainW=f.Applicative=f.Apply=f.ap=f.apW=f.Pointed=f.of=f.Functor=f.map=f.getAltValidation=f.getApplicativeValidation=f.getWitherable=f.getFilterable=f.getCompactable=f.getSemigroup=f.getEq=f.getShow=f.URI=f.right=f.left=void 0;f.getValidation=f.getValidationMonoid=f.getValidationSemigroup=f.getApplyMonoid=f.getApplySemigroup=f.either=f.stringifyJSON=f.parseJSON=f.sequenceArray=f.traverseArray=f.traverseArrayWithIndex=f.traverseReadonlyArrayWithIndex=f.traverseReadonlyNonEmptyArrayWithIndex=f.ApT=f.apSW=f.apS=f.bindW=f.bind=f.bindTo=f.Do=f.exists=f.elem=f.toError=f.toUnion=f.chainNullableK=f.fromNullableK=f.tryCatchK=f.tryCatch=f.fromNullable=f.orElse=f.orElseW=f.swap=f.filterOrElseW=f.filterOrElse=f.chainOptionK=f.fromOptionK=f.duplicate=f.flatten=f.flattenW=f.chainFirstW=f.chainFirst=f.apSecondW=f.apSecond=f.apFirstW=f.apFirst=f.flap=f.getOrElse=f.getOrElseW=void 0;var fs=K1(),V1=dt(),ss=$e(),sA=us(),H1=z1(),Ur=Y(),ps=oe(),Wt=fA(qe()),ht=vn(),cs=$1();f.left=Wt.left;f.right=Wt.right;var Jr=function(r,e){return Ur.pipe(r,f.map(e))},mn=function(r,e){return Ur.pipe(r,f.ap(e))},Ln=function(r,e){return Ur.pipe(r,f.chain(e))},G1=function(r,e,t){return Ur.pipe(r,f.reduce(e,t))},k1=function(r){return function(e,t){var n=f.foldMap(r);return Ur.pipe(e,n(t))}},J1=function(r,e,t){return Ur.pipe(r,f.reduceRight(e,t))},Ei=function(r){var e=f.traverse(r);return function(t,n){return Ur.pipe(t,e(n))}},Da=function(r,e,t){return Ur.pipe(r,f.bimap(e,t))},_a=function(r,e){return Ur.pipe(r,f.mapLeft(e))},ls=function(r,e){return Ur.pipe(r,f.alt(e))},ba=function(r,e){return Ur.pipe(r,f.extend(e))},Ra=function(r,e){return sA.tailRec(e(r),function(t){return f.isLeft(t)?f.right(f.left(t.left)):f.isLeft(t.right)?f.left(e(t.right.left)):f.right(f.right(t.right.right))})};f.URI="Either";var pA=function(r,e){return{show:function(t){return f.isLeft(t)?"left("+r.show(t.left)+")":"right("+e.show(t.right)+")"}}};f.getShow=pA;var lA=function(r,e){return{equals:function(t,n){return t===n||(f.isLeft(t)?f.isLeft(n)&&r.equals(t.left,n.left):f.isRight(n)&&e.equals(t.right,n.right))}}};f.getEq=lA;var dA=function(r){return{concat:function(e,t){return f.isLeft(t)?e:f.isLeft(e)?t:f.right(r.concat(e.right,t.right))}}};f.getSemigroup=dA;var hA=function(r){var e=f.left(r.empty);return{URI:f.URI,_E:void 0,compact:function(t){return f.isLeft(t)?t:t.right._tag==="None"?e:f.right(t.right.value)},separate:function(t){return f.isLeft(t)?ht.separated(t,t):f.isLeft(t.right)?ht.separated(f.right(t.right.left),e):ht.separated(e,f.right(t.right.right))}}};f.getCompactable=hA;var vA=function(r){var e=f.left(r.empty),t=f.getCompactable(r),n=t.compact,u=t.separate,i=function(d,v){return f.isLeft(d)||v(d.right)?d:e},a=function(d,v){return f.isLeft(d)?ht.separated(d,d):v(d.right)?ht.separated(e,f.right(d.right)):ht.separated(f.right(d.right),e)};return{URI:f.URI,_E:void 0,map:Jr,compact:n,separate:u,filter:i,filterMap:function(d,v){if(f.isLeft(d))return d;var h=v(d.right);return h._tag==="None"?e:f.right(h.value)},partition:a,partitionMap:function(d,v){if(f.isLeft(d))return ht.separated(d,d);var h=v(d.right);return f.isLeft(h)?ht.separated(f.right(h.left),e):ht.separated(e,f.right(h.right))}}};f.getFilterable=vA;var mA=function(r){var e=f.getFilterable(r),t=f.getCompactable(r);return{URI:f.URI,_E:void 0,map:Jr,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:Ei,sequence:f.sequence,reduce:G1,foldMap:k1,reduceRight:J1,wither:cs.witherDefault(f.Traversable,t),wilt:cs.wiltDefault(f.Traversable,t)}};f.getWitherable=mA;var AA=function(r){return{URI:f.URI,_E:void 0,map:Jr,ap:function(e,t){return f.isLeft(e)?f.isLeft(t)?f.left(r.concat(e.left,t.left)):e:f.isLeft(t)?t:f.right(e.right(t.right))},of:f.of}};f.getApplicativeValidation=AA;var gA=function(r){return{URI:f.URI,_E:void 0,map:Jr,alt:function(e,t){if(f.isRight(e))return e;var n=t();return f.isLeft(n)?f.left(r.concat(e.left,n.left)):n}}};f.getAltValidation=gA;var EA=function(r){return function(e){return f.isLeft(e)?e:f.right(r(e.right))}};f.map=EA;f.Functor={URI:f.URI,map:Jr};f.of=f.right;f.Pointed={URI:f.URI,of:f.of};var FA=function(r){return function(e){return f.isLeft(e)?e:f.isLeft(r)?r:f.right(e.right(r.right))}};f.apW=FA;f.ap=f.apW;f.Apply={URI:f.URI,map:Jr,ap:mn};f.Applicative={URI:f.URI,map:Jr,ap:mn,of:f.of};var xA=function(r){return function(e){return f.isLeft(e)?e:r(e.right)}};f.chainW=xA;f.chain=f.chainW;f.Chain={URI:f.URI,map:Jr,ap:mn,chain:Ln};f.Monad={URI:f.URI,map:Jr,ap:mn,of:f.of,chain:Ln};var yA=function(r,e){return function(t){return f.isLeft(t)?r:e(r,t.right)}};f.reduce=yA;var BA=function(r){return function(e){return function(t){return f.isLeft(t)?r.empty:e(t.right)}}};f.foldMap=BA;var CA=function(r,e){return function(t){return f.isLeft(t)?r:e(t.right,r)}};f.reduceRight=CA;f.Foldable={URI:f.URI,reduce:G1,foldMap:k1,reduceRight:J1};var DA=function(r){return function(e){return function(t){return f.isLeft(t)?r.of(f.left(t.left)):r.map(e(t.right),f.right)}}};f.traverse=DA;var _A=function(r){return function(e){return f.isLeft(e)?r.of(f.left(e.left)):r.map(e.right,f.right)}};f.sequence=_A;f.Traversable={URI:f.URI,map:Jr,reduce:G1,foldMap:k1,reduceRight:J1,traverse:Ei,sequence:f.sequence};var bA=function(r,e){return function(t){return f.isLeft(t)?f.left(r(t.left)):f.right(e(t.right))}};f.bimap=bA;var RA=function(r){return function(e){return f.isLeft(e)?f.left(r(e.left)):e}};f.mapLeft=RA;f.Bifunctor={URI:f.URI,bimap:Da,mapLeft:_a};var IA=function(r){return function(e){return f.isLeft(e)?r():e}};f.altW=IA;f.alt=f.altW;f.Alt={URI:f.URI,map:Jr,alt:ls};var OA=function(r){return function(e){return f.isLeft(e)?e:f.right(r(e))}};f.extend=OA;f.Extend={URI:f.URI,map:Jr,extend:ba};f.ChainRec={URI:f.URI,map:Jr,ap:mn,chain:Ln,chainRec:Ra};f.throwError=f.left;f.MonadThrow={URI:f.URI,map:Jr,ap:mn,of:f.of,chain:Ln,throwError:f.throwError};f.FromEither={URI:f.URI,fromEither:Ur.identity};f.fromPredicate=H1.fromPredicate(f.FromEither);f.fromOption=H1.fromOption(f.FromEither);f.isLeft=Wt.isLeft;f.isRight=Wt.isRight;var SA=function(r,e){return function(t){return f.isLeft(t)?r(t.left):e(t.right)}};f.matchW=SA;f.foldW=f.matchW;f.match=f.matchW;f.fold=f.match;var wA=function(r){return function(e){return f.isLeft(e)?r(e.left):e.right}};f.getOrElseW=wA;f.getOrElse=f.getOrElseW;f.flap=ps.flap(f.Functor);f.apFirst=V1.apFirst(f.Apply);f.apFirstW=f.apFirst;f.apSecond=V1.apSecond(f.Apply);f.apSecondW=f.apSecond;f.chainFirst=ss.chainFirst(f.Chain);f.chainFirstW=f.chainFirst;f.flattenW=f.chainW(Ur.identity);f.flatten=f.flattenW;f.duplicate=f.extend(Ur.identity);f.fromOptionK=H1.fromOptionK(f.FromEither);f.chainOptionK=H1.chainOptionK(f.FromEither,f.Chain);f.filterOrElse=H1.filterOrElse(f.FromEither,f.Chain);f.filterOrElseW=f.filterOrElse;var MA=function(r){return f.isLeft(r)?f.right(r.left):f.left(r.right)};f.swap=MA;var qA=function(r){return function(e){return f.isLeft(e)?r(e.left):e}};f.orElseW=qA;f.orElse=f.orElseW;var WA=function(r){return function(e){return e==null?f.left(r):f.right(e)}};f.fromNullable=WA;var UA=function(r,e){try{return f.right(r())}catch(t){return f.left(e(t))}};f.tryCatch=UA;var PA=function(r,e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return f.tryCatch(function(){return r.apply(void 0,t)},e)}};f.tryCatchK=PA;var TA=function(r){var e=f.fromNullable(r);return function(t){return Ur.flow(t,e)}};f.fromNullableK=TA;var NA=function(r){var e=f.fromNullableK(r);return function(t){return f.chain(e(t))}};f.chainNullableK=NA;f.toUnion=f.foldW(Ur.identity,Ur.identity);function LA(r){return r instanceof Error?r:new Error(String(r))}f.toError=LA;function ds(r){return function(e,t){if(t===void 0){var n=ds(r);return function(u){return n(e,u)}}return f.isLeft(t)?!1:r.equals(e,t.right)}}f.elem=ds;var jA=function(r){return function(e){return f.isLeft(e)?!1:r(e.right)}};f.exists=jA;f.Do=f.of(Wt.emptyRecord);f.bindTo=ps.bindTo(f.Functor);f.bind=ss.bind(f.Chain);f.bindW=f.bind;f.apS=V1.apS(f.Apply);f.apSW=f.apS;f.ApT=f.of(Wt.emptyReadonlyArray);var KA=function(r){return function(e){var t=r(0,Wt.head(e));if(f.isLeft(t))return t;for(var n=[t.right],u=1;u<e.length;u++){var i=r(u,e[u]);if(f.isLeft(i))return i;n.push(i.right)}return f.right(n)}};f.traverseReadonlyNonEmptyArrayWithIndex=KA;var zA=function(r){var e=f.traverseReadonlyNonEmptyArrayWithIndex(r);return function(t){return Wt.isNonEmpty(t)?e(t):f.ApT}};f.traverseReadonlyArrayWithIndex=zA;f.traverseArrayWithIndex=f.traverseReadonlyArrayWithIndex;var $A=function(r){return f.traverseReadonlyArrayWithIndex(function(e,t){return r(t)})};f.traverseArray=$A;f.sequenceArray=f.traverseArray(Ur.identity);function VA(r,e){return f.tryCatch(function(){return JSON.parse(r)},e)}f.parseJSON=VA;var HA=function(r,e){return f.tryCatch(function(){var t=JSON.stringify(r);if(typeof t!="string")throw new Error("Converting unsupported structure to JSON");return t},e)};f.stringifyJSON=HA;f.either={URI:f.URI,map:Jr,of:f.of,ap:mn,chain:Ln,reduce:G1,foldMap:k1,reduceRight:J1,traverse:Ei,sequence:f.sequence,bimap:Da,mapLeft:_a,alt:ls,extend:ba,chainRec:Ra,throwError:f.throwError};f.getApplySemigroup=V1.getApplySemigroup(f.Apply);f.getApplyMonoid=fs.getApplicativeMonoid(f.Applicative);var GA=function(r,e){return V1.getApplySemigroup(f.getApplicativeValidation(r))(e)};f.getValidationSemigroup=GA;var kA=function(r,e){return fs.getApplicativeMonoid(f.getApplicativeValidation(r))(e)};f.getValidationMonoid=kA;function JA(r){var e=f.getApplicativeValidation(r).ap,t=f.getAltValidation(r).alt;return{URI:f.URI,_E:void 0,map:Jr,of:f.of,chain:Ln,bimap:Da,mapLeft:_a,reduce:G1,foldMap:k1,reduceRight:J1,extend:ba,traverse:Ei,sequence:f.sequence,chainRec:Ra,throwError:f.throwError,ap:e,alt:t}}f.getValidation=JA});var Ia=m(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.and=or.or=or.not=or.Contravariant=or.getMonoidAll=or.getSemigroupAll=or.getMonoidAny=or.getSemigroupAny=or.URI=or.contramap=void 0;var Kn=Y(),ZA=function(r,e){return Kn.pipe(r,or.contramap(e))},XA=function(r){return function(e){return Kn.flow(r,e)}};or.contramap=XA;or.URI="Predicate";var QA=function(){return{concat:function(r,e){return Kn.pipe(r,or.or(e))}}};or.getSemigroupAny=QA;var YA=function(){return{concat:or.getSemigroupAny().concat,empty:Kn.constFalse}};or.getMonoidAny=YA;var rg=function(){return{concat:function(r,e){return Kn.pipe(r,or.and(e))}}};or.getSemigroupAll=rg;var eg=function(){return{concat:or.getSemigroupAll().concat,empty:Kn.constTrue}};or.getMonoidAll=eg;or.Contravariant={URI:or.URI,contramap:ZA};var tg=function(r){return function(e){return!r(e)}};or.not=tg;var ng=function(r){return function(e){return function(t){return e(t)||r(t)}}};or.or=ng;var ug=function(r){return function(e){return function(t){return e(t)&&r(t)}}};or.and=ug});var hs=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.concatAll=Ee.endo=Ee.filterSecond=Ee.filterFirst=Ee.reverse=void 0;var ig=function(r){return{concat:function(e,t){return r.concat(t,e)}}};Ee.reverse=ig;var og=function(r){return function(e){return{concat:function(t,n){return r(t)?e.concat(t,n):n}}}};Ee.filterFirst=og;var ag=function(r){return function(e){return{concat:function(t,n){return r(n)?e.concat(t,n):t}}}};Ee.filterSecond=ag;var cg=function(r){return function(e){return{concat:function(t,n){return e.concat(r(t),r(n))}}}};Ee.endo=cg;var fg=function(r){return function(e){return function(t){return t.reduce(function(n,u){return r.concat(n,u)},e)}}};Ee.concatAll=fg});var Z1=m(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.eqDate=w.eqNumber=w.eqString=w.eqBoolean=w.eq=w.strictEqual=w.getStructEq=w.getTupleEq=w.Contravariant=w.getMonoid=w.getSemigroup=w.eqStrict=w.URI=w.contramap=w.tuple=w.struct=w.fromEquals=void 0;var sg=Y(),pg=function(r){return{equals:function(e,t){return e===t||r(e,t)}}};w.fromEquals=pg;var lg=function(r){return w.fromEquals(function(e,t){for(var n in r)if(!r[n].equals(e[n],t[n]))return!1;return!0})};w.struct=lg;var dg=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return w.fromEquals(function(t,n){return r.every(function(u,i){return u.equals(t[i],n[i])})})};w.tuple=dg;var hg=function(r,e){return sg.pipe(r,w.contramap(e))},vg=function(r){return function(e){return w.fromEquals(function(t,n){return e.equals(r(t),r(n))})}};w.contramap=vg;w.URI="Eq";w.eqStrict={equals:function(r,e){return r===e}};var mg={equals:function(){return!0}},Ag=function(){return{concat:function(r,e){return w.fromEquals(function(t,n){return r.equals(t,n)&&e.equals(t,n)})}}};w.getSemigroup=Ag;var gg=function(){return{concat:w.getSemigroup().concat,empty:mg}};w.getMonoid=gg;w.Contravariant={URI:w.URI,contramap:hg};w.getTupleEq=w.tuple;w.getStructEq=w.struct;w.strictEqual=w.eqStrict.equals;w.eq=w.Contravariant;w.eqBoolean=w.eqStrict;w.eqString=w.eqStrict;w.eqNumber=w.eqStrict;w.eqDate={equals:function(r,e){return r.valueOf()===e.valueOf()}}});var xi=m(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.ordDate=B.ordNumber=B.ordString=B.ordBoolean=B.ord=B.getDualOrd=B.getTupleOrd=B.between=B.clamp=B.max=B.min=B.geq=B.leq=B.gt=B.lt=B.equals=B.trivial=B.Contravariant=B.getMonoid=B.getSemigroup=B.URI=B.contramap=B.reverse=B.tuple=B.fromCompare=B.equalsDefault=void 0;var Eg=Z1(),Fi=Y(),Fg=function(r){return function(e,t){return e===t||r(e,t)===0}};B.equalsDefault=Fg;var xg=function(r){return{equals:B.equalsDefault(r),compare:function(e,t){return e===t?0:r(e,t)}}};B.fromCompare=xg;var yg=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return B.fromCompare(function(t,n){for(var u=0;u<r.length-1;u++){var i=r[u].compare(t[u],n[u]);if(i!==0)return i}return r[u].compare(t[u],n[u])})};B.tuple=yg;var Bg=function(r){return B.fromCompare(function(e,t){return r.compare(t,e)})};B.reverse=Bg;var Cg=function(r,e){return Fi.pipe(r,B.contramap(e))},Dg=function(r){return function(e){return B.fromCompare(function(t,n){return e.compare(r(t),r(n))})}};B.contramap=Dg;B.URI="Ord";var _g=function(){return{concat:function(r,e){return B.fromCompare(function(t,n){var u=r.compare(t,n);return u!==0?u:e.compare(t,n)})}}};B.getSemigroup=_g;var bg=function(){return{concat:B.getSemigroup().concat,empty:B.fromCompare(function(){return 0})}};B.getMonoid=bg;B.Contravariant={URI:B.URI,contramap:Cg};B.trivial={equals:Fi.constTrue,compare:Fi.constant(0)};var Rg=function(r){return function(e){return function(t){return t===e||r.compare(t,e)===0}}};B.equals=Rg;var Ig=function(r){return function(e,t){return r.compare(e,t)===-1}};B.lt=Ig;var Og=function(r){return function(e,t){return r.compare(e,t)===1}};B.gt=Og;var Sg=function(r){return function(e,t){return r.compare(e,t)!==1}};B.leq=Sg;var wg=function(r){return function(e,t){return r.compare(e,t)!==-1}};B.geq=wg;var Mg=function(r){return function(e,t){return e===t||r.compare(e,t)<1?e:t}};B.min=Mg;var qg=function(r){return function(e,t){return e===t||r.compare(e,t)>-1?e:t}};B.max=qg;var Wg=function(r){var e=B.min(r),t=B.max(r);return function(n,u){return function(i){return t(e(i,u),n)}}};B.clamp=Wg;var Ug=function(r){var e=B.lt(r),t=B.gt(r);return function(n,u){return function(i){return!(e(i,n)||t(i,u))}}};B.between=Ug;B.getTupleOrd=B.tuple;B.getDualOrd=B.reverse;B.ord=B.Contravariant;function Pg(r,e){return r<e?-1:r>e?1:0}var Oa={equals:Eg.eqStrict.equals,compare:Pg};B.ordBoolean=Oa;B.ordString=Oa;B.ordNumber=Oa;B.ordDate=Fi.pipe(B.ordNumber,B.contramap(function(r){return r.valueOf()}))});var wa=m(C=>{"use strict";var Tg=C&&C.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Ng=C&&C.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Sa=C&&C.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Tg(e,r,t);return Ng(e,r),e};Object.defineProperty(C,"__esModule",{value:!0});C.semigroupProduct=C.semigroupSum=C.semigroupString=C.getFunctionSemigroup=C.semigroupAny=C.semigroupAll=C.fold=C.getIntercalateSemigroup=C.getMeetSemigroup=C.getJoinSemigroup=C.getDualSemigroup=C.getStructSemigroup=C.getTupleSemigroup=C.getFirstSemigroup=C.getLastSemigroup=C.getObjectSemigroup=C.semigroupVoid=C.concatAll=C.last=C.first=C.intercalate=C.tuple=C.struct=C.reverse=C.constant=C.max=C.min=void 0;var vs=Y(),Lg=Sa(qe()),ms=Sa(hs()),As=Sa(xi()),jg=function(r){return{concat:As.min(r)}};C.min=jg;var Kg=function(r){return{concat:As.max(r)}};C.max=Kg;var zg=function(r){return{concat:function(){return r}}};C.constant=zg;C.reverse=ms.reverse;var $g=function(r){return{concat:function(e,t){var n={};for(var u in r)Lg.has.call(r,u)&&(n[u]=r[u].concat(e[u],t[u]));return n}}};C.struct=$g;var Vg=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return{concat:function(t,n){return r.map(function(u,i){return u.concat(t[i],n[i])})}}};C.tuple=Vg;var Hg=function(r){return function(e){return{concat:function(t,n){return e.concat(t,e.concat(r,n))}}}};C.intercalate=Hg;var Gg=function(){return{concat:vs.identity}};C.first=Gg;var kg=function(){return{concat:function(r,e){return e}}};C.last=kg;C.concatAll=ms.concatAll;C.semigroupVoid=C.constant(void 0);var Jg=function(){return{concat:function(r,e){return Object.assign({},r,e)}}};C.getObjectSemigroup=Jg;C.getLastSemigroup=C.last;C.getFirstSemigroup=C.first;C.getTupleSemigroup=C.tuple;C.getStructSemigroup=C.struct;C.getDualSemigroup=C.reverse;C.getJoinSemigroup=C.max;C.getMeetSemigroup=C.min;C.getIntercalateSemigroup=C.intercalate;function Zg(r){var e=C.concatAll(r);return function(t,n){return n===void 0?e(t):e(t)(n)}}C.fold=Zg;C.semigroupAll={concat:function(r,e){return r&&e}};C.semigroupAny={concat:function(r,e){return r||e}};C.getFunctionSemigroup=vs.getSemigroup;C.semigroupString={concat:function(r,e){return r+e}};C.semigroupSum={concat:function(r,e){return r+e}};C.semigroupProduct={concat:function(r,e){return r*e}}});var Ma=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.guard=void 0;function Xg(r,e){return function(t){return t?e.of(void 0):r.zero()}}yi.guard=Xg});var En=m(p=>{"use strict";var Qg=p&&p.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Yg=p&&p.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),rE=p&&p.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Qg(e,r,t);return Yg(e,r),e};Object.defineProperty(p,"__esModule",{value:!0});p.fromEither=p.MonadThrow=p.throwError=p.Witherable=p.wilt=p.wither=p.Traversable=p.sequence=p.traverse=p.Filterable=p.partitionMap=p.partition=p.filterMap=p.filter=p.Compactable=p.separate=p.compact=p.Extend=p.extend=p.Alternative=p.guard=p.Zero=p.zero=p.Alt=p.alt=p.altW=p.Foldable=p.reduceRight=p.foldMap=p.reduce=p.Monad=p.Chain=p.chain=p.Applicative=p.Apply=p.ap=p.Pointed=p.of=p.Functor=p.map=p.getMonoid=p.getOrd=p.getEq=p.getShow=p.URI=p.getRight=p.getLeft=p.fromPredicate=p.some=p.none=void 0;p.getLastMonoid=p.getFirstMonoid=p.getApplyMonoid=p.getApplySemigroup=p.option=p.mapNullable=p.getRefinement=p.sequenceArray=p.traverseArray=p.traverseArrayWithIndex=p.traverseReadonlyArrayWithIndex=p.traverseReadonlyNonEmptyArrayWithIndex=p.ApT=p.apS=p.bind=p.bindTo=p.Do=p.exists=p.elem=p.toUndefined=p.toNullable=p.chainNullableK=p.fromNullableK=p.tryCatchK=p.tryCatch=p.fromNullable=p.chainFirstEitherK=p.chainEitherK=p.fromEitherK=p.duplicate=p.chainFirst=p.flatten=p.apSecond=p.apFirst=p.flap=p.getOrElse=p.getOrElseW=p.fold=p.match=p.foldW=p.matchW=p.isNone=p.isSome=p.FromEither=void 0;var eE=K1(),Bi=dt(),gs=$e(),qa=z1(),Cr=Y(),Es=oe(),An=rE(qe()),tE=Ia(),Fs=wa(),Wa=vn(),xs=$1(),nE=Ma();p.none=An.none;p.some=An.some;function uE(r){return function(e){return r(e)?p.some(e):p.none}}p.fromPredicate=uE;var iE=function(r){return r._tag==="Right"?p.none:p.some(r.left)};p.getLeft=iE;var oE=function(r){return r._tag==="Left"?p.none:p.some(r.right)};p.getRight=oE;var pe=function(r,e){return Cr.pipe(r,p.map(e))},gn=function(r,e){return Cr.pipe(r,p.ap(e))},Ci=function(r,e){return Cr.pipe(r,p.chain(e))},Di=function(r,e,t){return Cr.pipe(r,p.reduce(e,t))},_i=function(r){var e=p.foldMap(r);return function(t,n){return Cr.pipe(t,e(n))}},bi=function(r,e,t){return Cr.pipe(r,p.reduceRight(e,t))},Ua=function(r){var e=p.traverse(r);return function(t,n){return Cr.pipe(t,e(n))}},Pa=function(r,e){return Cr.pipe(r,p.alt(e))},X1=function(r,e){return Cr.pipe(r,p.filter(e))},Ta=function(r,e){return Cr.pipe(r,p.filterMap(e))},ys=function(r,e){return Cr.pipe(r,p.extend(e))},Na=function(r,e){return Cr.pipe(r,p.partition(e))},La=function(r,e){return Cr.pipe(r,p.partitionMap(e))};p.URI="Option";var aE=function(r){return{show:function(e){return p.isNone(e)?"none":"some("+r.show(e.value)+")"}}};p.getShow=aE;var cE=function(r){return{equals:function(e,t){return e===t||(p.isNone(e)?p.isNone(t):p.isNone(t)?!1:r.equals(e.value,t.value))}}};p.getEq=cE;var fE=function(r){return{equals:p.getEq(r).equals,compare:function(e,t){return e===t?0:p.isSome(e)?p.isSome(t)?r.compare(e.value,t.value):1:-1}}};p.getOrd=fE;var sE=function(r){return{concat:function(e,t){return p.isNone(e)?t:p.isNone(t)?e:p.some(r.concat(e.value,t.value))},empty:p.none}};p.getMonoid=sE;var pE=function(r){return function(e){return p.isNone(e)?p.none:p.some(r(e.value))}};p.map=pE;p.Functor={URI:p.URI,map:pe};p.of=p.some;p.Pointed={URI:p.URI,of:p.of};var lE=function(r){return function(e){return p.isNone(e)||p.isNone(r)?p.none:p.some(e.value(r.value))}};p.ap=lE;p.Apply={URI:p.URI,map:pe,ap:gn};p.Applicative={URI:p.URI,map:pe,ap:gn,of:p.of};var dE=function(r){return function(e){return p.isNone(e)?p.none:r(e.value)}};p.chain=dE;p.Chain={URI:p.URI,map:pe,ap:gn,chain:Ci};p.Monad={URI:p.URI,map:pe,ap:gn,of:p.of,chain:Ci};var hE=function(r,e){return function(t){return p.isNone(t)?r:e(r,t.value)}};p.reduce=hE;var vE=function(r){return function(e){return function(t){return p.isNone(t)?r.empty:e(t.value)}}};p.foldMap=vE;var mE=function(r,e){return function(t){return p.isNone(t)?r:e(t.value,r)}};p.reduceRight=mE;p.Foldable={URI:p.URI,reduce:Di,foldMap:_i,reduceRight:bi};var AE=function(r){return function(e){return p.isNone(e)?r():e}};p.altW=AE;p.alt=p.altW;p.Alt={URI:p.URI,map:pe,alt:Pa};var gE=function(){return p.none};p.zero=gE;p.Zero={URI:p.URI,zero:p.zero};p.guard=nE.guard(p.Zero,p.Pointed);p.Alternative={URI:p.URI,map:pe,ap:gn,of:p.of,alt:Pa,zero:p.zero};var EE=function(r){return function(e){return p.isNone(e)?p.none:p.some(r(e))}};p.extend=EE;p.Extend={URI:p.URI,map:pe,extend:ys};p.compact=p.chain(Cr.identity);var FE=Wa.separated(p.none,p.none),xE=function(r){return p.isNone(r)?FE:Wa.separated(p.getLeft(r.value),p.getRight(r.value))};p.separate=xE;p.Compactable={URI:p.URI,compact:p.compact,separate:p.separate};var yE=function(r){return function(e){return p.isNone(e)?p.none:r(e.value)?e:p.none}};p.filter=yE;var BE=function(r){return function(e){return p.isNone(e)?p.none:r(e.value)}};p.filterMap=BE;var CE=function(r){return function(e){return Wa.separated(X1(e,tE.not(r)),X1(e,r))}};p.partition=CE;var DE=function(r){return Cr.flow(p.map(r),p.separate)};p.partitionMap=DE;p.Filterable={URI:p.URI,map:pe,compact:p.compact,separate:p.separate,filter:X1,filterMap:Ta,partition:Na,partitionMap:La};var _E=function(r){return function(e){return function(t){return p.isNone(t)?r.of(p.none):r.map(e(t.value),p.some)}}};p.traverse=_E;var bE=function(r){return function(e){return p.isNone(e)?r.of(p.none):r.map(e.value,p.some)}};p.sequence=bE;p.Traversable={URI:p.URI,map:pe,reduce:Di,foldMap:_i,reduceRight:bi,traverse:Ua,sequence:p.sequence};var ja=xs.witherDefault(p.Traversable,p.Compactable),Ka=xs.wiltDefault(p.Traversable,p.Compactable),RE=function(r){var e=ja(r);return function(t){return function(n){return e(n,t)}}};p.wither=RE;var IE=function(r){var e=Ka(r);return function(t){return function(n){return e(n,t)}}};p.wilt=IE;p.Witherable={URI:p.URI,map:pe,reduce:Di,foldMap:_i,reduceRight:bi,traverse:Ua,sequence:p.sequence,compact:p.compact,separate:p.separate,filter:X1,filterMap:Ta,partition:Na,partitionMap:La,wither:ja,wilt:Ka};var OE=function(){return p.none};p.throwError=OE;p.MonadThrow={URI:p.URI,map:pe,ap:gn,of:p.of,chain:Ci,throwError:p.throwError};p.fromEither=p.getRight;p.FromEither={URI:p.URI,fromEither:p.fromEither};p.isSome=An.isSome;var SE=function(r){return r._tag==="None"};p.isNone=SE;var wE=function(r,e){return function(t){return p.isNone(t)?r():e(t.value)}};p.matchW=wE;p.foldW=p.matchW;p.match=p.matchW;p.fold=p.match;var ME=function(r){return function(e){return p.isNone(e)?r():e.value}};p.getOrElseW=ME;p.getOrElse=p.getOrElseW;p.flap=Es.flap(p.Functor);p.apFirst=Bi.apFirst(p.Apply);p.apSecond=Bi.apSecond(p.Apply);p.flatten=p.compact;p.chainFirst=gs.chainFirst(p.Chain);p.duplicate=p.extend(Cr.identity);p.fromEitherK=qa.fromEitherK(p.FromEither);p.chainEitherK=qa.chainEitherK(p.FromEither,p.Chain);p.chainFirstEitherK=qa.chainFirstEitherK(p.FromEither,p.Chain);var qE=function(r){return r==null?p.none:p.some(r)};p.fromNullable=qE;var WE=function(r){try{return p.some(r())}catch{return p.none}};p.tryCatch=WE;var UE=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return p.tryCatch(function(){return r.apply(void 0,e)})}};p.tryCatchK=UE;var PE=function(r){return Cr.flow(r,p.fromNullable)};p.fromNullableK=PE;var TE=function(r){return function(e){return p.isNone(e)?p.none:p.fromNullable(r(e.value))}};p.chainNullableK=TE;p.toNullable=p.match(Cr.constNull,Cr.identity);p.toUndefined=p.match(Cr.constUndefined,Cr.identity);function Bs(r){return function(e,t){if(t===void 0){var n=Bs(r);return function(u){return n(e,u)}}return p.isNone(t)?!1:r.equals(e,t.value)}}p.elem=Bs;var NE=function(r){return function(e){return p.isNone(e)?!1:r(e.value)}};p.exists=NE;p.Do=p.of(An.emptyRecord);p.bindTo=Es.bindTo(p.Functor);p.bind=gs.bind(p.Chain);p.apS=Bi.apS(p.Apply);p.ApT=p.of(An.emptyReadonlyArray);var LE=function(r){return function(e){var t=r(0,An.head(e));if(p.isNone(t))return p.none;for(var n=[t.value],u=1;u<e.length;u++){var i=r(u,e[u]);if(p.isNone(i))return p.none;n.push(i.value)}return p.some(n)}};p.traverseReadonlyNonEmptyArrayWithIndex=LE;var jE=function(r){var e=p.traverseReadonlyNonEmptyArrayWithIndex(r);return function(t){return An.isNonEmpty(t)?e(t):p.ApT}};p.traverseReadonlyArrayWithIndex=jE;p.traverseArrayWithIndex=p.traverseReadonlyArrayWithIndex;var KE=function(r){return p.traverseReadonlyArrayWithIndex(function(e,t){return r(t)})};p.traverseArray=KE;p.sequenceArray=p.traverseArray(Cr.identity);function zE(r){return function(e){return p.isSome(r(e))}}p.getRefinement=zE;p.mapNullable=p.chainNullableK;p.option={URI:p.URI,map:pe,of:p.of,ap:gn,chain:Ci,reduce:Di,foldMap:_i,reduceRight:bi,traverse:Ua,sequence:p.sequence,zero:p.zero,alt:Pa,extend:ys,compact:p.compact,separate:p.separate,filter:X1,filterMap:Ta,partition:Na,partitionMap:La,wither:ja,wilt:Ka,throwError:p.throwError};p.getApplySemigroup=Bi.getApplySemigroup(p.Apply);p.getApplyMonoid=eE.getApplicativeMonoid(p.Applicative);var $E=function(){return p.getMonoid(Fs.first())};p.getFirstMonoid=$E;var VE=function(){return p.getMonoid(Fs.last())};p.getLastMonoid=VE});var $a=m(ce=>{"use strict";var HE=ce&&ce.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),GE=ce&&ce.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),kE=ce&&ce.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&HE(e,r,t);return GE(e,r),e};Object.defineProperty(ce,"__esModule",{value:!0});ce.getCompactableComposition=ce.separate=ce.compact=void 0;var Cs=Y(),_s=oe(),Ds=En(),JE=kE(vn());function za(r,e){return function(t){return r.map(t,e.compact)}}ce.compact=za;function bs(r,e,t){var n=za(r,e),u=_s.map(r,t);return function(i){return JE.separated(n(Cs.pipe(i,u(Ds.getLeft))),n(Cs.pipe(i,u(Ds.getRight))))}}ce.separate=bs;function ZE(r,e){var t=_s.getFunctorComposition(r,e).map;return{map:t,compact:za(r,e),separate:bs(r,e,e)}}ce.getCompactableComposition=ZE});var js=m(S=>{"use strict";var XE=S&&S.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),QE=S&&S.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),YE=S&&S.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&XE(e,r,t);return QE(e,r),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.chainNullableK=S.fromNullableK=S.fromNullable=S.leftF=S.rightF=S.left=S.right=void 0;var rF=dt(),Ar=YE(jn()),le=Y(),eF=oe();function Va(r){return le.flow(Ar.right,r.of)}S.right=Va;function Rs(r){return le.flow(Ar.left,r.of)}S.left=Rs;function Is(r){return function(e){return r.map(e,Ar.right)}}S.rightF=Is;function Os(r){return function(e){return r.map(e,Ar.left)}}S.leftF=Os;function Ss(r){return function(e){return le.flow(Ar.fromNullable(e),r.of)}}S.fromNullable=Ss;function ws(r){var e=Ss(r);return function(t){var n=e(t);return function(u){return le.flow(u,n)}}}S.fromNullableK=ws;function tF(r){var e=Ha(r),t=ws(r);return function(n){var u=t(n);return function(i){return e(u(i))}}}S.chainNullableK=tF;function Ms(r){return eF.map(r,Ar.Functor)}S.map=Ms;function qs(r){return rF.ap(r,Ar.Apply)}S.ap=qs;function Ha(r){return function(e){return function(t){return r.chain(t,function(n){return Ar.isLeft(n)?r.of(n):e(n.right)})}}}S.chain=Ha;function Ws(r){return function(e){return function(t){return r.chain(t,function(n){return Ar.isLeft(n)?e():r.of(n)})}}}S.alt=Ws;function Us(r){return function(e,t){return function(n){return r.map(n,Ar.bimap(e,t))}}}S.bimap=Us;function Ps(r){return function(e){return function(t){return r.map(t,Ar.mapLeft(e))}}}S.mapLeft=Ps;function nF(r,e){return function(t){return function(n){return r.chain(n,Ar.match(function(u){return r.map(t(),Ar.mapLeft(function(i){return e.concat(u,i)}))},Va(r)))}}}S.altValidation=nF;function uF(r){return function(e,t){return function(n){return r.map(n,Ar.match(e,t))}}}S.match=uF;function Ts(r){return function(e,t){return function(n){return r.chain(n,Ar.match(e,t))}}}S.matchE=Ts;function Ns(r){return function(e){return function(t){return r.chain(t,Ar.match(e,r.of))}}}S.getOrElse=Ns;function Ga(r){return function(e){return function(t){return r.chain(t,function(n){return Ar.isLeft(n)?e(n.left):r.of(n)})}}}S.orElse=Ga;function iF(r){var e=Ga(r);return function(t){return e(function(n){return r.map(t(n),function(u){return Ar.isLeft(u)?u:Ar.left(n)})})}}S.orElseFirst=iF;function oF(r){return function(e){return function(t){return r.chain(t,Ar.match(function(n){return r.map(e(n),Ar.left)},function(n){return r.of(Ar.right(n))}))}}}S.orLeft=oF;function Ls(r){return function(e){return r.map(e,Ar.swap)}}S.swap=Ls;function aF(r){return function(e){return r.map(e,Ar.toUnion)}}S.toUnion=aF;function cF(r){var e=qs(r),t=Ms(r),n=Ha(r),u=Ws(r),i=Us(r),a=Ps(r),d=Ts(r),v=Ns(r),h=Ga(r);return{map:function(E,b){return le.pipe(E,t(b))},ap:function(E,b){return le.pipe(E,e(b))},of:Va(r),chain:function(E,b){return le.pipe(E,n(b))},alt:function(E,b){return le.pipe(E,u(b))},bimap:function(E,b,V){return le.pipe(E,i(b,V))},mapLeft:function(E,b){return le.pipe(E,a(b))},fold:function(E,b,V){return le.pipe(E,d(b,V))},getOrElse:function(E,b){return le.pipe(E,v(b))},orElse:function(E,b){return le.pipe(E,h(b))},swap:Ls(r),rightM:Is(r),leftM:Os(r),left:Rs(r)}}S.getEitherM=cF});var Gs=m(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getFilterableComposition=Fe.partitionMap=Fe.partition=Fe.filterMap=Fe.filter=void 0;var Ks=$a(),zn=Y(),fF=oe(),zs=En(),sF=Ia(),$s=vn();function ka(r,e){return function(t){return function(n){return r.map(n,function(u){return e.filter(u,t)})}}}Fe.filter=ka;function Ja(r,e){return function(t){return function(n){return r.map(n,function(u){return e.filterMap(u,t)})}}}Fe.filterMap=Ja;function Vs(r,e){var t=ka(r,e);return function(n){var u=t(sF.not(n)),i=t(n);return function(a){return $s.separated(u(a),i(a))}}}Fe.partition=Vs;function Hs(r,e){var t=Ja(r,e);return function(n){return function(u){return $s.separated(zn.pipe(u,t(function(i){return zs.getLeft(n(i))})),zn.pipe(u,t(function(i){return zs.getRight(n(i))})))}}}Fe.partitionMap=Hs;function pF(r,e){var t=fF.getFunctorComposition(r,e).map,n=Ks.compact(r,e),u=Ks.separate(r,e,e),i=ka(r,e),a=Ja(r,e),d=Vs(r,e),v=Hs(r,e);return{map:t,compact:n,separate:u,filter:function(h,E){return zn.pipe(h,i(E))},filterMap:function(h,E){return zn.pipe(h,a(E))},partition:function(h,E){return zn.pipe(h,d(E))},partitionMap:function(h,E){return zn.pipe(h,v(E))}}}Fe.getFilterableComposition=pF});var Xa=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.chainFirstIOK=Ut.chainIOK=Ut.fromIOK=void 0;var lF=$e(),Za=Y();function dF(r){return function(e){return Za.flow(e,r.fromIO)}}Ut.fromIOK=dF;function hF(r,e){return function(t){var n=Za.flow(t,r.fromIO);return function(u){return e.chain(u,n)}}}Ut.chainIOK=hF;function vF(r,e){var t=lF.chainFirst(e);return function(n){return t(Za.flow(n,r.fromIO))}}Ut.chainFirstIOK=vF});var ks=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.chainFirstTaskK=Pt.chainTaskK=Pt.fromTaskK=void 0;var mF=$e(),Qa=Y();function AF(r){return function(e){return Qa.flow(e,r.fromTask)}}Pt.fromTaskK=AF;function gF(r,e){return function(t){var n=Qa.flow(t,r.fromTask);return function(u){return e.chain(u,n)}}}Pt.chainTaskK=gF;function EF(r,e){var t=mF.chainFirst(e);return function(n){return t(Qa.flow(n,r.fromTask))}}Pt.chainFirstTaskK=EF});var Xs=m(A=>{"use strict";var FF=A&&A.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),xF=A&&A.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),yF=A&&A.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&FF(e,r,t);return xF(e,r),e};Object.defineProperty(A,"__esModu