slice-machine-ui 2.16.2-alpha.jp-cr-ui-legacy-and-new-picker.3 → 2.16.2-alpha.jp-cr-ui-types-internal-version.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/{SCvtrCISRxCnbzgSweXaT → D2HaNBRmqpwrvztn78FNp}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{183-4ea255b867ff171b.js → 183-85de38d65a85dc2c.js} +1 -1
- package/out/_next/static/chunks/493-455020ccdddebf32.js +5 -0
- package/out/_next/static/chunks/{630-8b61616320ec01f5.js → 630-db2634510e265e9a.js} +1 -1
- package/out/_next/static/chunks/{721-03cc30bfca172443.js → 867-bb2db4d365ee7e40.js} +1 -1
- package/out/_next/static/chunks/882-636039ab926dbc22.js +1 -0
- package/out/_next/static/chunks/895-e5bf82a4d5d7c3e1.js +1 -0
- package/out/_next/static/chunks/pages/{_app-0cbce46360e6a451.js → _app-f7875dc5387317e5.js} +60 -60
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-640dac1303370d01.js → [customTypeId]-389d1b7a492fb3e7.js} +1 -1
- package/out/_next/static/chunks/pages/{custom-types-e170066a58cc3e32.js → custom-types-2a5fd94ee42ba593.js} +1 -1
- package/out/_next/static/chunks/pages/{index-c191cf09e51bab2f.js → index-02dd147957c8b40f.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-752f9388f18c19b8.js → [pageTypeId]-3589bd1f9138a97b.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-5008e29008aa04f4.js → simulator-e78d6a6078714a03.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-85ab73c10f8322e1.js +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +8 -8
- package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +1 -3
- package/src/features/customTypes/customTypesTable/useCustomTypes.ts +4 -15
- package/src/features/customTypes/fields/ContentRelationshipFieldPicker.tsx +18 -12
- package/out/_next/static/chunks/157-54b8336d20b41933.js +0 -3
- package/out/_next/static/chunks/395-03eecd862e6ae694.js +0 -1
- package/out/_next/static/chunks/882-5982c7c198bf4c39.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ea369adbab9f9b47.js +0 -1
- /package/out/_next/static/{SCvtrCISRxCnbzgSweXaT → D2HaNBRmqpwrvztn78FNp}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[493],{15952:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=e(96742),o=e(73985),c=e(79687),a=e(81542),f=r.__importDefault(e(3758)),l=/(\w+)\[\d+]/;function p(n){let t={id:n.id,type:n.typ,lang:n.language};return n.uid?{...t,uid:n.uid}:t}function d(n){return(t,e)=>{if(!(0,u.isEmptyContent)(t))return(0,u.isUIDContent)(t)?a.UIDRenderer.renderV1(t):((0,u.isGroupContent)(t)||(0,u.isRepeatableContent)(t)||(0,u.isNestableContent)(t))&&!u.EmptyContent.is(t)?(0,a.StaticWidgetRenderer)(n).renderV1(t,o.Fetch.extractGroupOrFieldIfAny(e)):(0,f.default)(n).renderV1(t,o.Fetch.extractSliceFetchIfAny(e))}}function s(n){return(t,e,r)=>(0,u.isSlicesContent)(e)&&"Slices"===t.type?(0,f.default)(n).renderV2(t,e,o.Fetch.extractSliceFetchIfAny(r)):(0,u.isGroupContent)(e)&&"Group"===t.type?(0,a.StaticWidgetRenderer)(n).renderV2(t,e,o.Fetch.extractGroupOrFieldIfAny(r)):(0,u.isUIDContent)(e)&&"UID"===t.type?a.UIDRenderer.renderV2(t,e):(0,u.isNestableContent)(e)&&i.NestableWidget.is(t)?(0,a.StaticWidgetRenderer)(n).renderV2(t,e,o.Fetch.extractGroupOrFieldIfAny(r)):h(n)(t)}function h(n){return t=>{switch(t.type){case"Choice":case"Slices":return(0,f.default)(n).renderDefault(t);case"UID":return;default:return(0,a.StaticWidgetRenderer)(n).renderDefault(t)}}}t.default=n=>({renderV1:(t,e,r,i,o,a,f,s,h)=>{var m,v;let g=(o[t.groupLangId]||[]).filter(n=>n.id!==t.id).map(n=>p(n)),y=((t,e,r)=>{let i={};for(let[t,o]of e)if(!(0,u.isUIDContent)(o)){let e=t.match(l),u=e&&e[1],c=u?e[1]:t,a=u?i[c]:void 0;if(void 0!==r){let e=r.fields[t];void 0!==e&&(u?i[c]=Array.isArray(a)?[...a,d(n)(o,e)]:[d(n)(o,e)]:i[c]=d(n)(o,e))}else u?i[c]=Array.isArray(a)?[...a,d(n)(o,void 0)]:[d(n)(o,void 0)]:i[c]=d(n)(o,void 0)}return{[t.type]:i}})(t,e,h);return{id:t.id,uid:null!==(m=t.data.uid)&&void 0!==m?m:null,url:null!==(v=n.LinkResolver.buildUrl({linkResolver:s,pageType:t.type,masterLang:r,brokenRoute:f,doc:t}))&&void 0!==v?v:null,type:t.type,href:n.urlRewriter.enforceCDN(i),tags:t.tags,first_publication_date:t.first_publication_date?(0,c.formatDateTime)(t.first_publication_date):null,last_publication_date:t.last_publication_date?(0,c.formatDateTime)(t.last_publication_date):null,slugs:t.data.slugs,linked_documents:[],lang:t.language,alternate_languages:g,data:y,...a?t.metadata:{}}},renderWidgetV1:d(n),renderWidgetV2:s(n),renderV2:(t,e,r,i,o,a,f,d,m,v)=>{var g,y;let b=Object.entries(t.fields).map(([t,e])=>{if("UID"===e.type)return;let r=i.find(([n])=>n===t),o=null==v?void 0:v.fields[t],c=t.match(l),a=!!(c&&c[1]),f=a?c[1]:t;if(r){let[,t]=r;return(0,u.isUIDContent)(t)?void 0:void 0===v||void 0!==o?[f,s(n)(e,t,o),a]:void 0}return void 0===v||void 0!==o?[f,h(n)(e),a]:void 0}).reduce((n,t)=>{if(t){let[e,r,u]=t;if(u){let t=n[e];if(t){if(Array.isArray(t))return{...n,[e]:[...t,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(t)} should be an Array`)}return{...n,[e]:[r]}}return{...n,[e]:r}}return n},{}),_=(a[e.groupLangId]||[]).filter(n=>n.id!==e.id).map(n=>p(n));return{id:e.id,uid:null!==(g=e.data.uid)&&void 0!==g?g:null,url:null!==(y=n.LinkResolver.buildUrl({linkResolver:m,pageType:e.type,masterLang:r,brokenRoute:d,doc:e}))&&void 0!==y?y:null,type:e.type,href:n.urlRewriter.enforceCDN(o),tags:e.tags,first_publication_date:e.first_publication_date?(0,c.formatDateTime)(e.first_publication_date):null,last_publication_date:e.last_publication_date?(0,c.formatDateTime)(e.last_publication_date):null,slugs:e.data.slugs,linked_documents:[],lang:e.language,alternate_languages:_,data:b,...f?e.metadata:{}}},renderMocks:(t,e)=>{let r=e.reduce((n,[,t])=>{if(u.UIDContent.is(t))return t.value},void 0),o=Object.entries(t.fields).map(([t,r])=>{var o;if("UID"===r.type)return;let c=e.find(([n])=>n===t),p=t.match(l),d=!!(p&&p[1]),s=d?p[1]:t;return c?[s,"SliceContentType"===(o=c[1]).__TYPE__&&"Slices"===r.type?(0,f.default)(n).renderMocks(r,o):(0,u.isGroupContent)(o)&&"Group"===r.type?(0,a.StaticWidgetRenderer)(n).renderMocks(r,o):(0,u.isNestableContent)(o)&&i.NestableWidget.is(r)?(0,a.StaticWidgetRenderer)(n).renderMocks(r,o):h(n)(r),d]:[s,h(n)(r),d]}).reduce((n,t)=>{if(t){let[e,r,u]=t;if(u){let t=n[e];if(t){if(Array.isArray(t))return{...n,[e]:[...t,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(t)} should be an Array`)}return{...n,[e]:[r]}}return{...n,[e]:r}}return n},{});return{id:"mock-doc-id",uid:r,url:r?`/${r}`:null,type:t.customTypeId,href:null,tags:[],first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T00:00:01+0000",slugs:[],linked_documents:[],lang:"en-us",alternate_languages:[],data:o}},renderDefaultWidget:h(n)})},88985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=e(22970);var u=e(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}}),t.Models=r.__importStar(e(73985)),t.Utils=r.__importStar(e(79687)),r.__exportStar(e(81542),t)},59527:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=e(16211),u=e(16211),i=e(96742),o=e(87412);class c{constructor(n,t){Object.defineProperty(this,"fieldTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"slugs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"customType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parsed",{enumerable:!0,configurable:!0,writable:!0,value:{}});let{widgets:e,types:r,slugs:i,uid:o}=u.DocumentLegacy.extractMetadata(n);this.fieldTypes=r,this.slugs=i,this.uid=o,this.widgets=e,this.customType=t}getWidget(n){let t=this.parsed[n];if(t)return t;let e=this.widgets[n],u=(()=>{let t=(0,r.WidgetLegacy)((0,r.defaultCtx)(n,this.fieldTypes)).decode(e);if(!t||(0,o.isLeft)(t))return;if(!this.customType)return t.right;let u=this.customType.fields[n];return(0,r.isSlicesContent)(t.right)&&i.StaticSlices.is(u)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:n,type:"Widget"}],key:n,model:u,content:t.right})({transformSlice:r.migrateSliceItem}):t.right})();if(u)return this.parsed[n]=u,u}parseAll(){let n=u.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),t=(0,o.isRight)(n)?n.right:{},e=this.customType?(0,r.migrateDocument)(t,this.customType):t;return this.parsed=e,e}}t.DocumentContent=c},53264:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=e(22970),u=e(47320),i=r.__importStar(e(87830)),o=i.exact(i.intersection([i.type({title:i.string,description:i.string}),i.partial({imageURL:(0,u.nullable)(i.string)})]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:o}},72375:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=e(22970).__importStar(e(87830));t.RelatedDocument=r.exact(r.intersection([r.type({typ:r.string,id:r.string,language:r.string,groupLangId:r.string}),r.partial({uid:r.union([r.string,r.null,r.undefined])})]))},27380:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=e(22970),u=e(37581),i=e(9554),o=e(42275),c=r.__importStar(e(87830)),a=e(23284),f=e(2932),l=e(59527),p=e(53264);t.GroupLangId=c.string;let d=c.exact(c.intersection([c.type({id:c.string,version:c.string,type:c.string,groupLangId:t.GroupLangId,tags:c.array(c.string),data:c.UnknownRecord,language:c.string}),c.partial({first_publication_date:u.Function.nullable(u.DateFromStringOrNumber),last_publication_date:u.Function.nullable(u.DateFromStringOrNumber),metadata:(0,a.withFallback)(u.Function.nullable(p.DocumentMetadata.codec),p.DocumentMetadata.empty)})])),s=n=>(0,f.mapOutput)(d,t=>({id:t.id,version:t.version,type:t.type,groupLangId:t.groupLangId,tags:t.tags,data:new l.DocumentContent(t.data,n),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata}));t.ApiDocumentCodec=n=>new c.Type("DocCodec",n=>s().is(n),(t,e)=>(0,o.pipe)(d.validate(t,e),i.either.chain(t=>{let e=n&&n.find(n=>n.customTypeId===t.type);return c.success(s(e).encode(t))})),n=>n);var h=e(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return h.DocumentContent}});var m=e(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return m.DocumentMetadata}});var v=e(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return v.RelatedDocument}})},15087:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(e=t.ApiVersion||(t.ApiVersion={})).v1="v1",e.v2="v2",e.mocks="mocks"},43134:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=e(22970).__importStar(e(87830)),u=r.type({isOptional:r.boolean,name:r.string,type:r.literal("custom")}),i=r.type({isOptional:r.boolean,type:r.literal("uid")}),o=r.type({isOptional:r.boolean,type:r.literal("lang")}),c=r.union([u,i,o]),a=r.type({value:r.string,type:r.literal("static")}),f=r.union([a,c]),l=r.type({trailingSlash:r.boolean,params:r.array(f)}),p=r.type({customTypeID:r.string,relationName:r.string,targetCustomTypeID:r.string}),d=r.record(r.string,r.array(p));t.Rule=r.type({pattern:l,resolvers:d}),t.LinkResolver=r.record(r.string,r.record(r.string,r.record(r.string,t.Rule))),t.staticParam=function(n){return{value:n,type:"static"}},t.uidParam=function(n){return{isOptional:n,type:"uid"}},t.langParam=function(n){return{isOptional:n,type:"lang"}},t.customParam=function(n,t){return{name:n,isOptional:t,type:"custom"}}},44273:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTypeDef=void 0;let r=e(22970),u=e(9554),i=e(14632),o=r.__importStar(e(87830)),c=e(78771),a=o.strict({id:o.string,definitions:o.array(c.WidgetDef)});t.CustomTypeDef=new o.Type("CustomTypeDef",n=>"object"==typeof n&&null!==n&&"customTypeId"in n,n=>(0,i.pipe)(a.decode(n),u.either.map(({id:n,definitions:t})=>({customTypeId:n,fields:t.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{})}))),n=>n)},52908:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupDef=t.NestedGroupDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=e(66106);function l(n,t){return new c.Type("GroupDef",t=>(0,a.isFieldDef)(t)&&n.is(t.def),n=>{let e=c.strict({name:c.string,fields:c.array(t)});return(0,o.pipe)(e.decode(n),i.either.map(({name:n,fields:t})=>({key:n,def:{type:"Group",config:{fields:t.reduce((n,t)=>({...n,[t.key]:t.def}),{})}}})))},n=>n)}t.NestedGroupDef=l(u.NestedGroup,f.NestableDef),t.GroupDef=l(u.Group,c.union([f.NestableDef,t.NestedGroupDef]))},52144:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({uid:c.string});t.UIDDef=new c.Type("UID",n=>(0,a.isFieldDef)(n)&&u.UID.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({uid:n})=>({key:n,def:{type:"UID"}}))),n=>n)},78771:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDef=void 0;let r=e(22970).__importStar(e(87830)),u=e(52908),i=e(40646),o=e(68126),c=e(52144);t.WidgetDef=r.union([o.SlicesDef,u.GroupDef,c.UIDDef,i.NestableDef])},88476:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(52908),t),r.__exportStar(e(40646),t),r.__exportStar(e(68126),t),r.__exportStar(e(52144),t),r.__exportStar(e(78771),t)},63868:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({booleanField:c.string,config:c.strict({default_value:c.boolean})});t.BooleanDef=new c.Type("BooleanDef",n=>(0,a.isFieldDef)(n)&&u.BooleanField.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({booleanField:n,config:t})=>({key:n,def:{type:"Boolean",config:t}}))),n=>n)},68294:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({color:c.string});t.ColorDef=new c.Type("ColorDef",n=>(0,a.isFieldDef)(n)&&u.Color.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({color:n})=>({key:n,def:{type:"Color"}}))),n=>n)},43499:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({date:c.string});t.DateDef=new c.Type("DateDef",n=>(0,a.isFieldDef)(n)&&u.Date.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({date:n})=>({key:n,def:{type:"Date"}}))),n=>n)},56301:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({embed:c.string});t.EmbedDef=new c.Type("EmbedDef",n=>(0,a.isFieldDef)(n)&&u.Embed.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({embed:n})=>({key:n,def:{type:"Embed"}}))),n=>n)},24256:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({geopoint:c.string});t.GeoPointDef=new c.Type("GeoPointDef",n=>(0,a.isFieldDef)(n)&&u.GeoPoint.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({geopoint:n})=>({key:n,def:{type:"GeoPoint"}}))),n=>n)},30245:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({image:c.string,config:c.strict({thumbnails:c.array(c.string)})});t.ImageDef=new c.Type("ImageDef",n=>(0,a.isFieldDef)(n)&&u.Image.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({image:n,config:t})=>({key:n,def:{type:"Image",config:{thumbnails:t.thumbnails.map(n=>({name:n}))}}}))),n=>n)},30923:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({integrationFields:c.string});t.IntegrationFieldDef=new c.Type("IntegrationFieldDef",n=>(0,a.isFieldDef)(n)&&u.IntegrationField.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({integrationFields:n})=>({key:n,def:{type:"IntegrationFields"}}))),n=>n)},17914:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAnyLinkDef=t.AnyLinkDef=void 0;let r=e(22970),u=e(9554),i=e(14632),o=r.__importStar(e(87830)),c=o.partial({select:o.union([o.literal("any"),o.null,o.undefined]),allowText:o.boolean,repeat:o.boolean,variants:o.array(o.string)});t.AnyLinkDef=new o.Type("AnyLinkDef",n=>"any"===n.select,n=>(0,i.pipe)(c.decode(n),u.either.map(n=>({...n,select:null}))),n=>n),t.defaultAnyLinkDef=function(n){return{select:null,allowText:!0,...n}}},64049:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.DocumentLinkDef=void 0;let r=e(22970).__importStar(e(87830));t.DocumentLinkDef=r.intersection([r.strict({select:r.literal("document"),customtypes:r.readonlyArray(r.string)}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),t.defaultDocumentLinkDef=function(n){return{select:"document",customtypes:[],allowText:!0,...n}}},10599:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.MediaLinkDef=void 0;let r=e(22970).__importStar(e(87830));t.MediaLinkDef=r.intersection([r.strict({select:r.literal("media")}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),t.defaultMediaLinkDef=function(n){return{select:"media",allowText:!0,...n}}},49612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.WebLinkDef=void 0;let r=e(22970).__importStar(e(87830));t.WebLinkDef=r.intersection([r.strict({select:r.literal("web")}),r.partial({allowText:r.boolean,repeat:r.boolean,variants:r.array(r.string)})]),t.defaultWebLinkDef=function(n){return{select:"web",allowText:!0,...n}}},38207:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLink=t.LinkDef=void 0;let r=e(22970),u=e(46239),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=e(17914),l=e(64049),p=e(10599),d=e(49612),s=c.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),h=c.strict({link:c.string,config:s});t.LinkDef=new c.Type("LinkDef",n=>(0,a.isFieldDef)(n)&&u.Link.is(n.def),n=>(0,o.pipe)(h.decode(n),i.either.map(({link:n,config:t})=>({key:n,def:{type:"Link",config:t}}))),n=>n),t.defaultLink=function(n,t){return{type:"Link",config:(()=>{switch(n){case"document":return(0,l.defaultDocumentLinkDef)(t);case"media":return(0,p.defaultMediaLinkDef)(t);case"web":return(0,d.defaultWebLinkDef)(t);case null:return(0,f.defaultAnyLinkDef)(t)}})()}},t.isMediaLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)==="media"},t.isAnyLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)===null},t.isDocumentLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)==="document"},t.isWebLinkDef=function(n){var t;return"Link"===n.type&&(null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.select)==="web"},r.__exportStar(e(17914),t),r.__exportStar(e(64049),t),r.__exportStar(e(10599),t),r.__exportStar(e(49612),t)},66106:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableDef=void 0;let r=e(22970).__importStar(e(87830)),u=e(63868),i=e(68294),o=e(43499),c=e(56301),a=e(24256),f=e(30245),l=e(30923),p=e(38207),d=e(56156),s=e(44135),h=e(36116),m=e(53335),v=e(8871),g=e(76128),y=e(58912),b=e(49437);t.NestableDef=r.union([u.BooleanDef,i.ColorDef,o.DateDef,c.EmbedDef,a.GeoPointDef,f.ImageDef,l.IntegrationFieldDef,d.NumberDef,s.RangeDef,h.RichTextDef,m.SelectDef,v.SeparatorDef,y.TextDef,b.TimestampDef,p.LinkDef,g.TableDef])},56156:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({number:c.string});t.NumberDef=new c.Type("NumberDef",n=>(0,a.isFieldDef)(n)&&u.Number.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({number:n})=>({key:n,def:{type:"Number"}}))),n=>n)},44135:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({range:c.string});t.RangeDef=new c.Type("RangeDef",n=>(0,a.isFieldDef)(n)&&u.Range.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({range:n})=>({key:n,def:{type:"Range"}}))),n=>n)},36116:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({structuredtext:c.string});t.RichTextDef=new c.Type("RichTextDef",n=>(0,a.isFieldDef)(n)&&u.RichText.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({structuredtext:n})=>({key:n,def:{type:"StructuredText"}}))),n=>n)},53335:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({select:c.string,config:c.strict({options:c.readonlyArray(c.string)})});t.SelectDef=new c.Type("SelectDef",n=>(0,a.isFieldDef)(n)&&u.Select.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({select:n,config:t})=>({key:n,def:{type:"Select",config:t}}))),n=>n)},8871:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({separator:c.string});t.SeparatorDef=new c.Type("SeparatorDef",n=>(0,a.isFieldDef)(n)&&u.Separator.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({separator:n})=>({key:n,def:{type:"Separator"}}))),n=>n)},76128:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({table:c.string});t.TableDef=new c.Type("TableDef",n=>(0,a.isFieldDef)(n)&&u.Table.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({table:n})=>({key:n,def:{type:"Table"}}))),n=>n)},58912:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({text:c.string});t.TextDef=new c.Type("TextDef",n=>(0,a.isFieldDef)(n)&&u.Text.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({text:n})=>({key:n,def:{type:"Text"}}))),n=>n)},49437:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=c.strict({timestamp:c.string});t.TimestampDef=new c.Type("TimestampDef",n=>(0,a.isFieldDef)(n)&&u.Timestamp.is(n.def),n=>(0,o.pipe)(f.decode(n),i.either.map(({timestamp:n})=>({key:n,def:{type:"Timestamp"}}))),n=>n)},40646:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(63868),t),r.__exportStar(e(68294),t),r.__exportStar(e(43499),t),r.__exportStar(e(56301),t),r.__exportStar(e(24256),t),r.__exportStar(e(30245),t),r.__exportStar(e(30923),t),r.__exportStar(e(38207),t),r.__exportStar(e(66106),t),r.__exportStar(e(56156),t),r.__exportStar(e(44135),t),r.__exportStar(e(36116),t),r.__exportStar(e(53335),t),r.__exportStar(e(8871),t),r.__exportStar(e(76128),t),r.__exportStar(e(58912),t),r.__exportStar(e(49437),t)},3094:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=e(52908),l=e(66106),p=c.strict({name:c.string,primary:c.array(l.NestableDef),items:f.NestedGroupDef});t.CompositeSliceDef=new c.Type("CompositeSliceDef",n=>(0,a.isFieldDef)(n)&&u.CompositeSlice.is(n.def),n=>(0,o.pipe)(p.decode(n),i.either.map(({name:n,primary:t,items:e})=>{var r;return{key:n,def:{type:"Slice","non-repeat":t.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{}),repeat:null===(r=e.def.config)||void 0===r?void 0:r.fields}}})),n=>n)},58294:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySliceDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=e(52908),l=e(40646),p=c.type({name:c.string,widget:c.union([f.NestedGroupDef,l.NestableDef])});t.LegacySliceDef=new c.Type("LegacySliceDef",n=>(0,a.isFieldDef)(n)&&u.LegacySlice.is(n.def),n=>(0,o.pipe)(p.decode(n),i.either.map(({name:n,widget:t})=>({key:n,def:t.def}))),n=>n)},26669:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceDef=t.VariationDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=e(52908),l=e(66106),p=c.strict({id:c.string,primary:c.array(c.union([f.GroupDef,l.NestableDef])),items:c.array(l.NestableDef),version:c.string});t.VariationDef=new c.Type("VariationDef",n=>(0,a.hasType)(n)&&u.Variation.is(n),n=>(0,o.pipe)(p.decode(n),i.either.map(n=>({id:n.id,name:n.id,description:n.id,imageUrl:"",docURL:"",version:n.version,primary:n.primary.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{}),items:n.items.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{})}))),n=>n);let d=c.string,s=c.string,h=c.intersection([c.strict({name:c.string,variations:c.array(t.VariationDef)}),c.partial({legacyPaths:c.record(d,s)})]);t.SharedSliceDef=new c.Type("SharedSliceDef",n=>(0,a.isFieldDef)(n)&&u.SharedSlice.is(n.def),n=>(0,o.pipe)(h.decode(n),i.either.map(({name:n,variations:t,legacyPaths:e})=>({key:n,def:{id:n,name:n,type:"SharedSlice",variations:t,...e?{legacyPaths:e}:{}}}))),n=>n)},53531:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceDef=void 0;let r=e(22970).__importStar(e(87830)),u=e(3094),i=e(58294),o=e(26669);t.SliceDef=r.union([o.SharedSliceDef,u.CompositeSliceDef,i.LegacySliceDef])},19183:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesDef=void 0;let r=e(22970),u=e(96742),i=e(9554),o=e(14632),c=r.__importStar(e(87830)),a=e(87956),f=e(53531),l=c.strict({name:c.string,slices:c.array(f.SliceDef)});t.SlicesDef=new c.Type("SlicesDef",n=>(0,a.isFieldDef)(n)&&u.StaticSlices.is(n.def),n=>(0,o.pipe)(l.decode(n),i.either.map(({name:n,slices:t})=>({key:n,def:{type:"Slices",config:{choices:t.reduce((n,{key:t,def:e})=>({...n,[t]:e}),{})}}}))),n=>n)},68126:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(3094),t),r.__exportStar(e(58294),t),r.__exportStar(e(26669),t),r.__exportStar(e(53531),t),r.__exportStar(e(19183),t)},32548:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);r.__exportStar(e(44273),t),r.__exportStar(e(88476),t),r.__exportStar(e(87956),t)},87956:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasType=t.isFieldDef=void 0,t.isFieldDef=function(n){return"object"==typeof n&&null!==n&&"key"in n&&"def"in n},t.hasType=function(n){return"object"==typeof n&&null!==n&&"type"in n}},35280:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},71659:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.extractSliceFetchIfAny=t.extractGroupOrFieldIfAny=t.DocRelationType=t.Docs=t.Doc=t.DocType=t.Simple=t.DocRelationC=t.GroupType=t.Slice=t.SharedSlice=t.SharedSliceType=t.CompositeSlice=t.CompositeSliceType=t.VariationC=t.SliceZone=t.SliceZoneType=t.FieldC=t.GroupOrFieldC=t.Group=t.SimpleField=t.SimpleFieldType=void 0;let r=e(22970).__importStar(e(87830));t.SimpleFieldType="SimpleField",t.SimpleField=r.strict({TYPE:r.literal(t.SimpleFieldType),name:r.string,legacy:r.boolean}),t.Group=r.recursion("Group",()=>r.strict({TYPE:r.literal(t.GroupType),name:r.string,fields:r.record(r.string,t.GroupOrFieldC)})),t.GroupOrFieldC=r.recursion("GroupOrField",()=>r.union([t.Simple,t.Group])),t.FieldC=r.recursion("Field",()=>r.union([t.GroupOrFieldC,t.SliceZone])),t.SliceZoneType="SliceZone",t.SliceZone=r.recursion("SliceZone",()=>r.strict({TYPE:r.literal(t.SliceZoneType),name:r.string,slices:r.record(r.string,r.union([t.GroupOrFieldC,t.Slice]))})),t.VariationC=r.recursion("Variation",()=>r.strict({TYPE:r.literal("Variation"),nonRepeat:r.strict({fields:r.record(r.string,t.GroupOrFieldC)}),repeat:r.strict({fields:r.record(r.string,t.FieldC)})})),t.CompositeSliceType="CompositeSlice",t.CompositeSlice=r.strict({TYPE:r.literal(t.CompositeSliceType),nonRepeat:r.strict({fields:r.record(r.string,t.GroupOrFieldC),TYPE:r.literal("NonRepeat")}),repeat:r.strict({fields:r.record(r.string,t.GroupOrFieldC),TYPE:r.literal("Repeat")})}),t.SharedSliceType="SharedSlice",t.SharedSlice=r.strict({TYPE:r.literal(t.SharedSliceType),variations:r.record(r.string,t.VariationC)}),t.Slice=r.union([t.SharedSlice,t.CompositeSlice]),t.GroupType="Group",t.DocRelationC=r.recursion("DocRelation",()=>r.strict({TYPE:r.literal(t.DocRelationType),name:r.string,uuid:r.string,fields:r.record(r.string,r.record(r.string,t.FieldC))})),t.Simple=r.union([t.DocRelationC,t.SimpleField]),t.DocType="Doc",t.Doc=r.recursion("Field",()=>r.strict({TYPE:r.literal("Doc"),typ:r.string,fields:r.record(r.string,t.FieldC)})),t.Docs=r.recursion("Field",()=>r.strict({docs:r.record(r.string,r.union([t.DocRelationC,t.SimpleField,t.Group,t.SliceZone])),docRelationsMap:r.record(r.string,t.DocRelationC)})),t.DocRelationType="DocRelation",t.extractGroupOrFieldIfAny=function(n){return void 0!==n&&(n.TYPE===t.SimpleFieldType||n.TYPE===t.DocRelationType||n.TYPE===t.GroupType)?n:void 0},t.extractSliceFetchIfAny=function(n){if(void 0!==n&&n.TYPE===t.SliceZoneType)return n}},73985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=e(22970);r.__exportStar(e(27380),t);var u=e(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return u.ApiVersion}}),r.__exportStar(e(32548),t),t.Extensions=r.__importStar(e(35280)),t.Fetch=r.__importStar(e(71659));var i=e(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return i.LinkResolver}})},621:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withObjectRenderers=void 0;let r=e(22970),u=e(16211),i=e(92425),o=r.__importStar(e(72720)),c=e(79687);t.withObjectRenderers=function(n){return{...n,renderV1Object(t,e){let r=t instanceof Array?t:Object.entries(t);return Object.fromEntries((0,i.compact)(r.map(([t,r])=>u.EmptyContent.is(r)?o.none:(0,c.renderIfNoFetchOrFetchDefined)(e,t,e=>o.some([t,n.renderV1(r,e)])))))},renderV2Object(t,e,r,i,a){let f=t instanceof Array?Object.fromEntries(t):t,l={};return Object.entries(r).forEach(([t,r])=>{let p=f[t];if(void 0===p)e&&t in e||!e?l[t]=n.renderDefault(r):e&&"default"===i.withFetch&&(l[t]=n.renderDefault(r));else if(u.EmptyContent.is(p))e&&t in e?"default"===a.withFetchField?l[t]=n.renderDefault(r):"render"===a.withFetchField&&(l[t]=n.renderV2(r,p,e[t])):e?"default"===a.withFetch&&(l[t]=n.renderDefault(r)):"default"===a.default?l[t]=n.renderDefault(r):"render"===a.default&&(l[t]=n.renderV2(r,p));else{let u=(0,c.renderIfNoFetchOrFetchDefined)(e,t,t=>o.some(n.renderV2(r,p,t)));o.isSome(u)&&(l[t]=u.value)}}),l},renderMocksObject(t,e){let r=t instanceof Array?Object.fromEntries(t):t,i={};return Object.entries(e).forEach(([t,e])=>{let a=r[t];if(void 0===a)i[t]=n.renderDefault(e);else if(u.EmptyContent.is(a))i[t]=n.renderDefault(e);else{let r=(0,c.renderIfNoFetchOrFetchDefined)(void 0,t,()=>o.some(n.renderMocks(e,a)));o.isSome(r)&&(i[t]=r.value)}}),i}}}},79687:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=e(22970).__importStar(e(72720));t.renderIfNoFetchOrFetchDefined=function(n,t,e){if(void 0===n)return e(void 0);{let u=n[t];return void 0===u?r.none:e(u)}},t.writeEmptyStringOrNull=function(n,t){return null==n?t?"":null:n},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.isEmpty=function(n){for(let t in n)return!1;return!0}},937:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));t.default=n=>({renderV1:(t,e)=>({type:"Group",value:t.value.map(t=>(0,r.default)(n).renderV1Object(t.value,null==e?void 0:e.fields))}),renderV2:(t,e,u)=>e.value.map(e=>{var i;return(0,r.default)(n).renderV2Object(e.value,null==u?void 0:u.fields,(null===(i=t.config)||void 0===i?void 0:i.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:()=>[],renderMocks:(t,e)=>e.value.map(e=>{var u,i;return(null===(u=t.config)||void 0===u?void 0:u.fields)?(0,r.default)(n).renderMocksObject(e.value,null===(i=t.config)||void 0===i?void 0:i.fields):{}})})},56016:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));t.default=n=>({renderV1:(t,e)=>t.value.map(t=>(0,r.default)(n).renderV1(t,e)),renderV2:(t,e,u)=>e.value.map(e=>(0,r.default)(n).renderV2({...t,config:{...t.config,repeat:!1}},e,u)),renderDefault:()=>[],renderMocks:(t,e)=>e.value.map(e=>(0,r.default)(n).renderMocks({...t,config:{...t.config,repeat:!1}},e))})},65082:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=e(71659),o=e(621),c=e(26041),a=r.__importDefault(e(32955));function f(n){return void 0!==n&&n.TYPE===i.SimpleFieldType?n:void 0}function l(n){return void 0!==n&&n.TYPE===i.DocRelationType?n:void 0}t.default=n=>(0,o.withObjectRenderers)({renderV1(t,e){if((0,u.isRichTextContent)(t))return(0,c.StructuredTextRenderer)(n).renderV1(t,f(e));if((0,u.isImageContent)(t))return(0,c.ImageRenderer)(n).renderV1(t);if((0,u.isRangeContent)(t)||(0,u.isNumberContent)(t)||(0,u.isTimestampContent)(t)||(0,u.isDateContent)(t)||(0,u.isTextContent)(t)||(0,u.isColorContent)(t)||(0,u.isSelectContent)(t))return c.FieldRenderer.renderV1(t);if((0,u.isLinkContent)(t))return(0,c.LinkRenderer)(n).renderV1(t,l(e));if((0,u.isEmbedContent)(t))return c.EmbedRenderer.renderV1(t);if((0,u.isGeoPointContent)(t))return c.GeoPointRenderer.renderV1(t);if((0,u.isUIDContent)(t))return a.default.renderV1(t);else if((0,u.isIntegrationFieldContent)(t))return(0,c.IntegrationFieldsRenderer)(n).renderV1(t);else if((0,u.isSeparatorContent)(t))return c.SeparatorRenderer.renderV1(t);else if((0,u.isBooleanContent)(t))return c.BooleanRenderer.renderV1(t);else if((0,u.isTableContent)(t))return(0,c.TableRenderer)(n).renderV1(t,f(e));else return null},renderV2(t,e,r){if("StructuredText"===t.type&&(0,u.isRichTextContent)(e))return(0,c.StructuredTextRenderer)(n).renderV2(t,e,f(r));if("Image"===t.type&&(0,u.isImageContent)(e))return(0,c.ImageRenderer)(n).renderV2(t,e);if("Link"===t.type&&(0,u.isLinkContent)(e))return(0,c.LinkRenderer)(n).renderV2(t,e,l(r));if("Embed"===t.type&&(0,u.isEmbedContent)(e))return c.EmbedRenderer.renderV2(t,e);if("GeoPoint"===t.type&&(0,u.isGeoPointContent)(e))return c.GeoPointRenderer.renderV2(t,e);if("IntegrationFields"===t.type&&(0,u.isIntegrationFieldContent)(e))return(0,c.IntegrationFieldsRenderer)(n).renderV2(t,e);if("Separator"===t.type&&(0,u.isSeparatorContent)(e))return c.SeparatorRenderer.renderV2(t,e);else if("Boolean"===t.type&&(0,u.isBooleanContent)(e))return c.BooleanRenderer.renderV2(t,e);else if((0,u.isRangeContent)(e)||(0,u.isNumberContent)(e)||(0,u.isTimestampContent)(e)||(0,u.isDateContent)(e)||(0,u.isTextContent)(e)||(0,u.isColorContent)(e)||(0,u.isSelectContent)(e))return c.FieldRenderer.renderV2(t,e);else if("Table"===t.type&&(0,u.isTableContent)(e))return(0,c.TableRenderer)(n).renderV2(t,e,f(r));else return null},renderDefault(t){if("Link"===t.type)return(0,c.LinkRenderer)(n).renderDefault(t);if("Embed"===t.type)return c.EmbedRenderer.renderDefault(t);if("GeoPoint"===t.type)return c.GeoPointRenderer.renderDefault(t);if("StructuredText"===t.type)return(0,c.StructuredTextRenderer)(n).renderDefault(t);if("Image"===t.type)return(0,c.ImageRenderer)(n).renderDefault(t);if("Separator"===t.type)return c.SeparatorRenderer.renderDefault(t);if("Boolean"===t.type)return c.BooleanRenderer.renderDefault(t);else if("IntegrationFields"===t.type)return(0,c.IntegrationFieldsRenderer)(n).renderDefault(t);else if("Table"===t.type)return(0,c.TableRenderer)(n).renderDefault(t);else return c.FieldRenderer.renderDefault(t)},renderMocks(t,e){if("StructuredText"===t.type&&(0,u.isRichTextContent)(e))return(0,c.StructuredTextRenderer)(n).renderMocks(t,e);if("Image"===t.type&&(0,u.isImageContent)(e))return(0,c.ImageRenderer)(n).renderMocks(t,e);if("Link"===t.type&&(0,u.isLinkContent)(e))return(0,c.LinkRenderer)(n).renderMocks(t,e);if("Embed"===t.type&&(0,u.isEmbedContent)(e))return c.EmbedRenderer.renderMocks(t,e);if("GeoPoint"===t.type&&(0,u.isGeoPointContent)(e))return c.GeoPointRenderer.renderMocks(t,e);if("IntegrationFields"===t.type&&(0,u.isIntegrationFieldContent)(e))return(0,c.IntegrationFieldsRenderer)(n).renderMocks(t,e);if("Separator"===t.type&&(0,u.isSeparatorContent)(e))return c.SeparatorRenderer.renderMocks(t,e);else if("Boolean"===t.type&&(0,u.isBooleanContent)(e))return c.BooleanRenderer.renderMocks(t,e);else if((0,u.isRangeContent)(e)&&"Range"===t.type||(0,u.isNumberContent)(e)&&"Number"===t.type||(0,u.isTimestampContent)(e)&&"Timestamp"===t.type||(0,u.isDateContent)(e)&&"Date"===t.type||(0,u.isTextContent)(e)&&"Text"===t.type||(0,u.isColorContent)(e)&&"Color"===t.type||(0,u.isSelectContent)(e)&&"Select"===t.type)return c.FieldRenderer.renderMocks(t,e);else if("Table"===t.type&&(0,u.isTableContent)(e))return(0,c.TableRenderer)(n).renderMocks(t,e);else return null}})},12706:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=e(71659),o=e(621),c=r.__importDefault(e(937)),a=r.__importDefault(e(56016)),f=r.__importDefault(e(65082));function l(n){return void 0!==n&&n.TYPE===i.GroupType?n:void 0}function p(n){return void 0!==n&&n.TYPE!==i.GroupType?n:void 0}function d(n){return void 0!==n&&("SimpleField"===n.TYPE||"DocRelation"===n.TYPE)?n:void 0}function s(n,t,e,r){var i,o,c,a;if("Link"===n.type){if((null===(i=n.config)||void 0===i?void 0:i.repeat)&&(0,u.isRepeatableContent)(t))return r.repeatable(n,t,d(e));if((null===(o=n.config)||void 0===o?void 0:o.repeat)&&(0,u.isLinkContent)(t))return r.repeatable(n,{__TYPE__:"RepeatableContent",type:n.type,value:[t]},d(e));if(!(null===(c=n.config)||void 0===c?void 0:c.repeat)&&(0,u.isRepeatableContent)(t)&&t.value[0])return r.simple(n,t.value[0],p(e));if(!(null===(a=n.config)||void 0===a?void 0:a.repeat)&&(0,u.isRepeatableContent)(t))return r.default(n)}return"Group"!==n.type&&(0,u.isNestableContent)(t)?r.simple(n,t,p(e)):"Group"===n.type&&(0,u.isGroupContent)(t)?r.group(n,t,l(e)):r.default(n)}t.default=n=>(0,o.withObjectRenderers)({renderV1:(t,e)=>(0,u.isGroupContent)(t)?(0,c.default)(n).renderV1(t,l(e)):(0,u.isRepeatableContent)(t)?(0,a.default)(n).renderV1(t,d(e)):(0,f.default)(n).renderV1(t,p(e)),renderV2(t,e,r){return s(t,e,r,{group:(t,e,r)=>(0,c.default)(n).renderV2(t,e,r),repeatable:(t,e,r)=>(0,a.default)(n).renderV2(t,e,r),simple:(t,e,r)=>(0,f.default)(n).renderV2(t,e,r),default:n=>this.renderDefault(n)})},renderDefault(t){var e;return"Link"===t.type&&(null===(e=t.config)||void 0===e?void 0:e.repeat)?(0,a.default)(n).renderDefault(t):"Group"===t.type?(0,c.default)(n).renderDefault(t):(0,f.default)(n).renderDefault(t)},renderMocks(t,e){return s(t,e,void 0,{group:(t,e)=>(0,c.default)(n).renderMocks(t,e),repeatable:(t,e)=>(0,a.default)(n).renderMocks(t,e),simple:(t,e)=>(0,f.default)(n).renderMocks(t,e),default:n=>this.renderDefault(n)})}})},32955:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({value:n.value}),renderV2:(n,t)=>t.value,renderDefault:n=>null,renderMocks:(n,t)=>t.value}},81542:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=e(22970);var u=e(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}}),r.__exportStar(e(26041),t);var i=e(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(e(94814),t);var o=e(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var c=e(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(c).default}})},7796:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Boolean",value:n.value}),renderV2:(n,t)=>t.value,renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}}},89591:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Embed",value:{oembed:n.all}}),renderV2:(n,t)=>t.all,renderDefault:n=>({}),renderMocks(n,t){return this.renderV2(n,t)}}},49357:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(79687),u=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:(?:[+-]{1}[0-9]{2}:?[0-9]{2})|Z)$/,i=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function o(n){let[t,e,r]=[n[1],n[2],n[3]];return`${t.padStart(4,"0")}-${e.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(n){let t={type:n.type,value:null};switch(n.type){case"Number":{let e=(0,r.filterDouble)(n.value);return{...t,value:e}}case"Date":try{let e=i.exec(n.value);if(e){let n=new Date(o(e));return{...t,value:(0,r.formatDate)(n)}}return t}catch(e){return console.warn(`Unable to render Date value with ${n.value}: ${e.toString()}`),t}case"Timestamp":try{if(u.test(n.value)){let e=new Date(n.value);return{...t,value:(0,r.formatDateTime)(e)}}return t}catch(e){return console.warn(`Unable to render Timestamp value with ${n.value}: ${e.toString()}`),t}default:return{...t,value:n.value}}},renderV2(n,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let n=i.exec(t.value);if(n){let t=new Date(o(n));return(0,r.formatDate)(t)}return null}catch(n){return console.warn(`Unable to render Date value with ${t.value}: ${n.toString()}`),null}case"Timestamp":try{if(u.test(t.value)){let n=new Date(t.value);return(0,r.formatDateTime)(n)}return null}catch(n){return console.warn(`Unable to render Timestamp value with ${t.value}: ${n.toString()}`),null}default:return t.value}},renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}}},42715:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"GeoPoint",value:{latitude:n.position.lat,longitude:n.position.lng}}),renderV2:(n,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:n=>({}),renderMocks(n,t){return this.renderV2(n,t)}}},6637:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(73985),u=e(79687);function i(n,t,e){let r="v2"===e?{id:n.origin.id,edit:{x:n.edit.crop.x,y:n.edit.crop.y,zoom:n.edit.zoom,background:n.edit.background}}:{};return{dimensions:{width:n.width,height:n.height},alt:(0,u.writeEmptyStringOrNull)(n.alt,t.emptyStringInsteadOfNull),copyright:(0,u.writeEmptyStringOrNull)(n.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(n),...r}}t.default=n=>({renderV1(t){if(t.thumbnails){let e=Object.entries(t.thumbnails).reduce((t,[e,u])=>({...t,[e.toLowerCase()]:i(u,n,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:i(t,n,r.ApiVersion.v1),views:e}}}return{type:"Image",value:{main:i(t,n,r.ApiVersion.v1),views:{}}}},renderV2(t,e){let u=i(e,n,r.ApiVersion.v2);return e.thumbnails?Object.assign(u,Object.entries(e.thumbnails).reduce((t,[e,u])=>Object.assign(t,{[e]:i(u,n,r.ApiVersion.v2)}),{})):u},renderDefault(n){var t;return((null===(t=n.config)||void 0===t?void 0:t.thumbnails)||[]).reduce((n,{name:t})=>({...n,[t]:{}}),{})},renderMocks(n,t){return this.renderV2(n,t)}})},6413:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n=>{var t;let e=null===(t=n.Extension)||void 0===t?void 0:t.encoders.integrationFields;return{renderV1(n){if(!e)return{value:{}};try{return{type:"IntegrationFields",value:e.encode(n.value)}}catch(n){return{value:{}}}},renderV2(n,t){if(!e)return{};try{return e.encode(t.value)}catch(n){return{}}},renderDefault:n=>null,renderMocks(n){return this.renderDefault(n)}}}},8092:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:(n,t,e)=>({type:"Link.any",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}),renderV2(n,t,e,r){let u=n.variants||[],i=t.value.variant&&u.includes(t.value.variant)?t.value.variant:u[0];return{link_type:"Any",...!(null==r?void 0:r.omitKey)&&{key:t.key},...n.allowText&&t.value.text&&{text:t.value.text},...i&&{variant:i}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}}},50335:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BROKEN_CUSTOM_TYPE=void 0;let r=e(16211),u=e(73985);function i(n,e){return{type:"Link.document",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...r.FilledDocumentLinkContent.is(n.value)&&{id:n.value.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}}function o(n,e,u){let i=e.variants||[],o=n.value.variant&&i.includes(n.value.variant)?n.value.variant:i[0];return{...!(null==u?void 0:u.omitKey)&&{key:n.key},...r.FilledDocumentLinkContent.is(n.value)&&{id:n.value.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...e.allowText&&n.value.text&&{text:n.value.text},...o&&{variant:o}}}t.BROKEN_CUSTOM_TYPE="broken_type",t.default=n=>{let t=n.Extension;return{renderV1(n,e,u){if(!t)return i(n,u);try{if(r.FilledDocumentLinkContent.is(n.value)){let r=(null==u?void 0:u.omitKey)?void 0:n.key,i=t.DocEncoder.encodeDocId(n.value.id,null==e?void 0:e.uuid,[r,n.value.text,n.value.variant]);return{type:"Link.document",value:t.encoders.documentLinks.encode(i)}}return{type:"Link.document",value:{...!(null==u?void 0:u.omitKey)&&{key:n.key},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}}catch(t){return i(n,u)}},renderV2(n,e,u,i){if(!t)return o(e,n,i);try{let o=n.allowText?e.value.text:void 0,c=n.variants||[],a=e.value.variant&&c.includes(e.value.variant)?e.value.variant:c[0];if(r.FilledDocumentLinkContent.is(e.value)){let n=(null==i?void 0:i.omitKey)?void 0:e.key,r=t.DocEncoder.encodeDocId(e.value.id,null==u?void 0:u.uuid,[n,o,a]);return t.encoders.documentLinks.encode(r)}return{link_type:"Document",...!(null==i?void 0:i.omitKey)&&{key:e.key},...o&&{text:o},...a&&{variant:a}}}catch(t){return o(e,n,i)}},renderMocks(n,t,e){if(r.FilledDocumentLinkContent.is(t.value)){let r=u.DocumentLinkDef.is(n)&&n.customtypes[0]||"mock",i=n.variants||[],o=t.value.variant&&i.includes(t.value.variant)?t.value.variant:i[0];return{id:t.value.id,...n.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o},link_type:"Document",...!(null==e?void 0:e.omitKey)&&{key:t.key},type:r,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}return o(t,n,e)}}}},15802:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(16211);t.default={renderV1:(n,t,e)=>({type:"Link.web",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...r.FilledExternalLinkContent.is(n.value)&&{url:n.value.url,..."string"==typeof n.value.target&&{target:n.value.target}},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}),renderV2(n,t,e,u){let i=n.variants||[],o=t.value.variant&&i.includes(t.value.variant)?t.value.variant:i[0];return{link_type:"Web",...!(null==u?void 0:u.omitKey)&&{key:t.key},...r.FilledExternalLinkContent.is(t.value)&&{url:t.value.url,..."string"==typeof t.value.target&&{target:t.value.target}},...n.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}}},50632:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(16211);t.default=n=>({renderV1:(t,e,u)=>({type:"Link.file",value:{...!(null==u?void 0:u.omitKey)&&{key:t.key},file:{kind:t.value.kind,...r.FilledFileLinkContent.is(t.value)&&{url:n.urlRewriter.rewriteFileUrl(t.value.url),name:t.value.name,size:t.value.size},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}}),renderV2(t,e,u,i){let o=t.variants||[],c=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{link_type:"Media",...!(null==i?void 0:i.omitKey)&&{key:e.key},kind:e.value.kind,...r.FilledFileLinkContent.is(e.value)&&{id:e.value.id,url:n.urlRewriter.rewriteFileUrl(e.value.url),name:e.value.name,size:e.value.size},...t.allowText&&e.value.text&&{text:e.value.text},...c&&{variant:c}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}})},83434:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(16211);t.default=n=>({renderV1:(t,e,u)=>({type:"Link.image",value:{...!(null==u?void 0:u.omitKey)&&{key:t.key},image:{kind:t.value.kind,...r.FilledImageLinkContent.is(t.value)&&{id:t.value.id,url:n.urlRewriter.optimizeImageUrl(t.value.url),name:t.value.name,size:t.value.size,width:t.value.width,height:t.value.height},...t.value.text&&{text:t.value.text},...t.value.variant&&{variant:t.value.variant}}}}),renderV2(t,e,u,i){let o=t.variants||[],c=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{link_type:"Media",...!(null==i?void 0:i.omitKey)&&{key:e.key},kind:e.value.kind,...r.FilledImageLinkContent.is(e.value)&&{id:e.value.id,url:n.urlRewriter.optimizeImageUrl(e.value.url),name:e.value.name,size:e.value.size,width:e.value.width,height:e.value.height},...t.allowText&&e.value.text&&{text:e.value.text},...c&&{variant:c}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}})},1666:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:(n,t,e)=>({type:"Link.media",value:{...!(null==e?void 0:e.omitKey)&&{key:n.key},...n.value.text&&{text:n.value.text},...n.value.variant&&{variant:n.value.variant}}}),renderV2(n,t,e,r){let u=n.variants||[],i=t.value.variant&&u.includes(t.value.variant)?t.value.variant:u[0];return{link_type:"Media",...!(null==r?void 0:r.omitKey)&&{key:t.key},...n.allowText&&t.value.text&&{text:t.value.text},...i&&{variant:i}}},renderMocks(n,t,e){return this.renderV2(n,t,void 0,e)}}},57777:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=e(22970),u=e(73985),i=r.__importDefault(e(8092)),o=r.__importDefault(e(50335));t.DocumentLinkRenderer=o.default;let c=r.__importDefault(e(15802));t.ExternalLinkRenderer=c.default;let a=r.__importDefault(e(50632));t.FileLinkRenderer=a.default;let f=r.__importDefault(e(83434));t.ImageLinkRenderer=f.default;let l=r.__importDefault(e(1666));t.default=n=>({renderV1(t,e,r){if("ImageLink"===t.value.__TYPE__)return(0,f.default)(n).renderV1({...t,value:t.value},void 0,r);if("DocumentLink"===t.value.__TYPE__)return(0,o.default)(n).renderV1({...t,value:t.value},e,r);if("FileLink"===t.value.__TYPE__)return(0,a.default)(n).renderV1({...t,value:t.value},void 0,r);if("ExternalLink"===t.value.__TYPE__)return c.default.renderV1({...t,value:t.value},void 0,r);if("MediaLink"===t.value.__TYPE__)return l.default.renderV1({...t,value:t.value},void 0,r);if("AnyLink"===t.value.__TYPE__)return i.default.renderV1({...t,value:t.value},void 0,r);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,e,r,p){return((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"ImageLink"===e.value.__TYPE__?(0,f.default)(n).renderV2(t.config,{...e,value:e.value},void 0,p):((0,u.isDocumentLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"DocumentLink"===e.value.__TYPE__?(0,o.default)(n).renderV2(t.config,{...e,value:e.value},r,p):((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"FileLink"===e.value.__TYPE__?(0,a.default)(n).renderV2(t.config,{...e,value:e.value},void 0,p):((0,u.isWebLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"ExternalLink"===e.value.__TYPE__?c.default.renderV2(t.config,{...e,value:e.value},void 0,p):((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"MediaLink"===e.value.__TYPE__?l.default.renderV2(t.config,{...e,value:e.value},void 0,p):(0,u.isAnyLinkDef)(t)&&"AnyLink"===e.value.__TYPE__?i.default.renderV2(t.config,{...e,value:e.value},void 0,p):this.renderDefault(t)},renderDefault(n){var t;switch(null===(t=n.config)||void 0===t?void 0:t.select){case"media":return{link_type:"Media"};case"document":return{link_type:"Document"};case"web":return{link_type:"Web"};default:return{link_type:"Any"}}},renderMocks(t,e,r){return((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"ImageLink"===e.value.__TYPE__?(0,f.default)(n).renderMocks(t.config,{...e,value:e.value},r):((0,u.isDocumentLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"DocumentLink"===e.value.__TYPE__?(0,o.default)(n).renderMocks(t.config,{...e,value:e.value},r):((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"FileLink"===e.value.__TYPE__?(0,a.default)(n).renderMocks(t.config,{...e,value:e.value},r):((0,u.isWebLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"ExternalLink"===e.value.__TYPE__?c.default.renderMocks(t.config,{...e,value:e.value},r):((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"MediaLink"===e.value.__TYPE__?l.default.renderMocks(t.config,{...e,value:e.value},r):(0,u.isAnyLinkDef)(t)&&"AnyLink"===e.value.__TYPE__?i.default.renderMocks(t.config,{...e,value:e.value},r):this.renderDefault(t)}})},97562:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Separator"}),renderV2:(n,t)=>!0,renderDefault:n=>!0,renderMocks(n,t){return this.renderV2(n,t)}}},83775:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=r.__importStar(e(87412)),o=e(73985),c=e(73985),a=e(79687),f=r.__importDefault(e(57777));function l(n){if((0,u.isLinkContent)(n))switch(n.value.__TYPE__){case"DocumentLink":return"document";case"ExternalLink":return"web";case"FileLink":case"ImageLink":return"media";default:return null}throw Error(`[UNREACHABLE] unknown Link type for ${JSON.stringify(n)}`)}function p(n,t,e){return t===o.ApiVersion.v1?(0,f.default)(e).renderV1(n,void 0,{omitKey:!0}):t===o.ApiVersion.v2?(0,f.default)(e).renderV2((0,c.defaultLink)(l(n)),n,void 0,{omitKey:!0}):t===o.ApiVersion.mocks?(0,f.default)(e).renderMocks((0,c.defaultLink)(l(n)),n,{omitKey:!0}):void 0}t.default=n=>({renderBlock:t=>e=>{if((0,u.checkImageBlock)(t)){let r=t.data.linkTo?{linkTo:p({__TYPE__:"LinkContent",key:"",value:t.data.linkTo},e,n)}:{},u=t.label?{label:t.label}:{},i=t.direction?{direction:t.direction}:{},c=e===o.ApiVersion.v2?{id:t.data.origin.id,edit:{x:t.data.edit.crop.x,y:t.data.edit.crop.y,zoom:t.data.edit.zoom,background:t.data.edit.background}}:{};return{type:"image",url:n.urlRewriter.rewriteImageUrl(t.data),alt:(0,a.writeEmptyStringOrNull)(t.data.alt,n.emptyStringInsteadOfNull),copyright:(0,a.writeEmptyStringOrNull)(t.data.credits,n.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...c,...r,...u,...i}}if((0,u.checkEmbedBlock)(t)){let n=t.label?{label:t.label}:{},e=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...n,...e}}{let r=t.label?{label:t.label}:{},o=t.direction?{direction:t.direction}:{},c=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let o=u.Link.decode(t.data),c=i.isRight(o)?p({__TYPE__:"LinkContent",value:o.right},e,n):{};return{...r,data:c}}return"label"===t.type?{...r,data:{label:"string"==typeof t.data?t.data:""}}:r});return{type:t.type,text:t.content.text,...r,spans:c,...o}}}})},558:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(14632),i=r.__importStar(e(72720)),o=e(73985),c=r.__importDefault(e(83775));function a(n,t){return t({__TYPE__:"StructuredTextContent",value:(0,u.pipe)(i.fromNullable(n.value.find(n=>n.type.startsWith("heading"))),i.alt(()=>i.fromNullable(n.value.find(n=>"embed"!==n.type&&"image"!==n.type))),i.map(n=>[n]),i.getOrElse(()=>[]))})}t.default=n=>({renderV1(t,e){let r=t.value.map(t=>(0,c.default)(n).renderBlock(t)(o.ApiVersion.v1));return void 0!==e&&e.legacy?a(t,t=>t.value.map(t=>(0,c.default)(n).renderBlock(t)(o.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,e,r){return void 0!=r&&r.legacy?a(e,n=>this.renderV2(t,n,void 0)):e.value.map(t=>(0,c.default)(n).renderBlock(t)(o.ApiVersion.v2))},renderDefault:n=>[],renderMocks:(t,e)=>e.value.map(t=>(0,c.default)(n).renderBlock(t)(o.ApiVersion.mocks))})},11873:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(96742),i=r.__importDefault(e(558));function o(n,t){return{key:n.key,cells:n.content.map(n=>({key:n.key,type:c[n.type],content:t(n.content)}))}}let c={tableHeader:"header",tableCell:"data"};t.default=n=>({renderV1:(n,t)=>null,renderV2:(t,e,r)=>(function(n,t){let e=n.content[0];if(!e)return null;let r=e.content.every(n=>"tableHeader"===n.type),u=r?e:void 0,i=r?n.content.slice(1):n.content;return{...u?{head:function(n,t){if(n)return{rows:[o(n,t)]}}(u,t)}:{},body:{rows:i.map(n=>o(n,t))}}})(e,t=>(0,i.default)(n).renderV2(u.TableCell,t,r)),renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}})},26041:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.TableRenderer=t.StructuredTextRenderer=t.SeparatorRenderer=t.LinkRenderer=t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=t.IntegrationFieldsRenderer=t.ImageRenderer=t.GeoPointRenderer=t.FieldRenderer=t.EmbedRenderer=t.BooleanRenderer=void 0;var u=e(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(u).default}});var i=e(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=e(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(o).default}});var c=e(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(c).default}});var a=e(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(a).default}});var f=e(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=e(57777);Object.defineProperty(t,"DocumentLinkRenderer",{enumerable:!0,get:function(){return l.DocumentLinkRenderer}}),Object.defineProperty(t,"ExternalLinkRenderer",{enumerable:!0,get:function(){return l.ExternalLinkRenderer}}),Object.defineProperty(t,"FileLinkRenderer",{enumerable:!0,get:function(){return l.FileLinkRenderer}}),Object.defineProperty(t,"ImageLinkRenderer",{enumerable:!0,get:function(){return l.ImageLinkRenderer}}),Object.defineProperty(t,"LinkRenderer",{enumerable:!0,get:function(){return r(l).default}});var p=e(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=e(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}});var s=e(11873);Object.defineProperty(t,"TableRenderer",{enumerable:!0,get:function(){return r(s).default}})},24485:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(71659),i=e(79687),o=r.__importDefault(e(12706));t.default=n=>({renderV1(t,e){var r,u;let c=null===(r=null==e?void 0:e.repeat)||void 0===r?void 0:r.fields,a=null===(u=null==e?void 0:e.nonRepeat)||void 0===u?void 0:u.fields,f=t.repeat.flatMap(t=>{let e=(0,o.default)(n).renderV1Object(t.value,c);return(0,i.isEmpty)(e)?[]:[e]});return{"non-repeat":(0,o.default)(n).renderV1Object(t.nonRepeat,a),repeat:f}},renderV2(t,e,r){var i;let c=void 0===r?void 0:{TYPE:u.GroupType,name:t.type,fields:r.repeat.fields},a=null===(i=null==r?void 0:r.nonRepeat)||void 0===i?void 0:i.fields,f=e.repeat.map(e=>(0,o.default)(n).renderV2Object(e.value,null==c?void 0:c.fields,t.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}));return{primary:(0,o.default)(n).renderV2Object(e.nonRepeat,a,t["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}),items:f}},renderDefault:n=>({}),renderMocks(t,e){let r=e.repeat.map(e=>(0,o.default)(n).renderMocksObject(e.value,t.repeat||{}));return{primary:(0,o.default)(n).renderMocksObject(e.nonRepeat,t["non-repeat"]||{}),items:r}}})},68422:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970).__importDefault(e(12706));function u(n,t,e){var r,u,i;return null===(i=null===(u=null===(r=null==e?void 0:e.variations)||void 0===r?void 0:r[n])||void 0===u?void 0:u[t])||void 0===i?void 0:i.fields}t.default=n=>({renderV1(t,e){let i=t.items.map(i=>(0,r.default)(n).renderV1Object(i.value,u(t.variation,"repeat",e))),o=(0,r.default)(n).renderV1Object(t.primary,u(t.variation,"nonRepeat",e));return{variation:t.variation,items:i,primary:o}},renderV2(t,e,i){let o=t.variations.find(n=>n.id===e.variation);if(void 0===o)return this.renderDefault(t);let c=e.items.map(t=>(0,r.default)(n).renderV2Object(t.value,u(e.variation,"repeat",i),o.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),a=(0,r.default)(n).renderV2Object(e.primary,u(e.variation,"nonRepeat",i),o.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:e.variation,version:o.version,items:c,primary:a}},renderDefault:n=>({}),renderMocks(t,e){let u=t.variations.find(n=>n.id===e.variation);if(void 0===u)return this.renderDefault(t);let i=e.items.map(t=>(0,r.default)(n).renderMocksObject(t.value,u.items||{})),o=(0,r.default)(n).renderMocksObject(e.primary,u.primary||{});return{variation:e.variation,version:u.version,items:i,primary:o}}})},57962:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=r.__importStar(e(72720)),o=r.__importDefault(e(12706));t.default=n=>({renderV1:(t,e)=>t.__TYPE__===u.EmptyContentType?i.none:i.some({value:(0,o.default)(n).renderV1(t,e)}),renderV2:(t,e,r)=>e.__TYPE__===u.EmptyContentType?i.none:i.some({value:(0,o.default)(n).renderV2(t,e,r)}),renderDefault:n=>({}),renderMocks:(t,e)=>e.__TYPE__===u.EmptyContentType?i.none:i.some({value:(0,o.default)(n).renderMocks(t,e)})})},6324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=e(96742),o=r.__importStar(e(72720)),c=e(71659),a=r.__importDefault(e(24485)),f=r.__importDefault(e(68422)),l=r.__importDefault(e(57962)),p={extractCompositeSlice(n){if(void 0!==n&&n.TYPE===c.CompositeSliceType)return n},extractSharedSlice(n){if(void 0!==n&&n.TYPE===c.SharedSliceType)return n},extractGroupOrField(n){if(void 0!==n&&n.TYPE!==c.CompositeSliceType&&n.TYPE!==c.SharedSliceType)return n}};t.default=n=>({renderV1:(t,e)=>(0,u.isCompositeSliceContent)(t)?o.some((0,a.default)(n).renderV1(t,p.extractCompositeSlice(e))):(0,u.isSharedSliceContent)(t)?o.some((0,f.default)(n).renderV1(t,p.extractSharedSlice(e))):(0,l.default)(n).renderV1(t,p.extractGroupOrField(e)),renderV2(t,e,r){return(0,u.isCompositeSliceContent)(e)&&i.CompositeSlice.is(t)?o.some((0,a.default)(n).renderV2(t,e,p.extractCompositeSlice(r))):(0,u.isSharedSliceContent)(e)&&i.SharedSlice.is(t)?o.some((0,f.default)(n).renderV2(t,e,p.extractSharedSlice(r))):(0,u.isSimpleSliceContent)(e)&&i.LegacySlice.is(t)?(0,l.default)(n).renderV2(t,e,p.extractGroupOrField(r)):o.some(this.renderDefault(t))},renderDefault:n=>({}),renderMocks(t,e){return(0,u.isCompositeSliceContent)(e)&&i.CompositeSlice.is(t)?o.some((0,a.default)(n).renderMocks(t,e)):(0,u.isSharedSliceContent)(e)&&i.SharedSlice.is(t)?o.some((0,f.default)(n).renderMocks(t,e)):(0,u.isSimpleSliceContent)(e)&&i.LegacySlice.is(t)?(0,l.default)(n).renderMocks(t,e):o.some(this.renderDefault(t))}})},3758:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(16211),i=e(42275),o=e(92425),c=r.__importStar(e(20492)),a=e(60130),f=e(79687),l=r.__importDefault(e(6324));function p(n,t){let e=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return n.match(e)?n:`${t}$${(0,a.v4)()}`}t.default=n=>({renderV1:(t,e)=>({type:"SliceZone",value:(function(n,t,e){let r=null==t?void 0:t.slices;return(0,o.compact)(n.value.map(n=>(0,i.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,n.key,t=>(0,l.default)(e).renderV1(n.widget,t)),c.map(t=>[n,t]))))})(t,e,n).map(([n,t])=>{var e;return{...t,id:p(n.key,n.name),slice_type:n.name,slice_label:null!==(e=n.maybeLabel)&&void 0!==e?e:null,type:"Slice"}})}),renderV2(t,e,r){var a;let d=Object.fromEntries(Object.entries((null===(a=t.config)||void 0===a?void 0:a.choices)||{}).map(([n,t])=>[n,t])),s=null==r?void 0:r.slices;return(0,o.compact)(e.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(s,t.name,e=>(function(n,t,e,r){if("__TYPE__"in n.widget&&n.widget.__TYPE__===u.EmptyContentType||!(n.name in r))return c.none;{let u=r[n.name];return u?(0,i.pipe)((0,l.default)(e).renderV2(u,n.widget,t),c.map(t=>{var e;return{...t,id:p(n.key,n.name),slice_type:n.name,slice_label:null!==(e=n.maybeLabel)&&void 0!==e?e:null}})):c.none}})(t,e,n,d))))},renderDefault:n=>[],renderMocks(n,t){return this.renderV2(n,t)}})},94814:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var u=e(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var i=e(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=e(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var c=e(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(c).default}});var a=e(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(a).default}})},53953:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:n=>n.map(n=>n.key).join("::"),current:n=>n[n.length-1],append:(n,t)=>n+"::"+t,make:n=>n.reduce((n,{key:t,type:e})=>t?n.concat({key:t,type:e}):n,[])}},59146:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0,t.getAssetOrThrow=n=>t=>{let e=n[t];if(!e)throw Error(`Missing asset with id '${t}'!`);return e}},23234:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0,t.getEmbedOrThrow=n=>t=>{let e=n[t];if(!e)throw Error(`Missing embed with url '${t}'`);return e}},62754:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:n=>e.test(n)}},18573:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(47320),i=RegExp("^[^<>]+$");t.WidgetKey=(0,u.refineType)(r.string,"WidgetKey",n=>0===n.length||i.test(n))},11697:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(59146),t),(0,r.__exportStar)(e(23234),t),(0,r.__exportStar)(e(18573),t)},48925:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(53953),f=e(11697),l=e(96742),p=e(1645),d=e(35264);t.Document=c.record(f.WidgetKey,p.WidgetContent);let s=c.record(f.WidgetKey,c.unknown),h=n=>new c.Type("Document",n=>!!n&&"object"==typeof n,t=>(0,o.pipe)(s.decode(t),u.either.map(t=>Object.entries(t).reduce((t,[e,r])=>{let u=(0,d.defaultCtx)(e,n),o=(0,p.WidgetLegacy)(u).decode(r);return!o||(0,i.isLeft)(o)?t:{...t,[e]:o.right}},{}))),t=>Object.entries(t).reduce((t,[e,r])=>{let u=(0,d.defaultCtx)(e,n),i=(0,p.WidgetLegacy)(u).encode(r);return i?{content:{...t.content,[e]:i.content},types:{...t.types,...i.types}}:t},{content:{},types:{}}));function m(n){let{types:t,widgets:e}=Object.entries(n).reduce((n,[t,e])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(e);if((0,i.isRight)(r))return{...n,types:n.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?n:{...n,widgets:{...n.widgets,[t]:e}}},{types:new Map,widgets:{}}),r=n.slugs_INTERNAL||[];return{widgets:e,types:t,uid:n.uid,slugs:r}}function v(n){return{customTypeId:null==n?void 0:n.id,fields:Object.fromEntries((0,l.flattenSections)(n))}}function g({document:n,customType:t}){let e=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:n})=>n,transformSlice:r=({content:n})=>n})=>{let u=e&&Object.entries(e.fields).reduce((n,[t,e])=>({...n,[t]:e}),{});return Object.entries(n).reduce((n,[i,o])=>{let c=u&&u[i],f=a.ContentPath.make([{key:null==e?void 0:e.customTypeId,type:"CustomType"},{key:i,type:"Widget"}]),l=(()=>{switch(o.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:i,model:(null==c?void 0:c.type)==="Slices"||(null==c?void 0:c.type)==="Choice"?c:void 0,content:o})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)==="Group"?c:void 0,content:o})(t);case"RepeatableContent":return(0,p.traverseRepeatableContent)({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)==="Link"?c:void 0,content:o})(t);case"TableContent":return(0,p.traverseTableContent)({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)==="Table"?c:void 0,content:o})(t);default:return t({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)!=="Group"&&(null==c?void 0:c.type)!=="Slices"&&(null==c?void 0:c.type)!=="Choice"?c:void 0,content:o})}})();return{...n,...l?{[i]:l}:{}}},{})}}function y(n,t){let e=l.StaticCustomType.is(t)?v(t):t;return Object.values((0,l.collectSharedSlices)(e)).some(n=>!!n.legacyPaths)?g({document:n,customType:t})({transformSlice:p.migrateSliceItem}):n}t.DocumentLegacy={_codec:h,extractMetadata:m,parse:function(n,t){let e=(0,o.pipe)(c.record(f.WidgetKey,c.unknown).decode(n),u.either.chain(n=>{let{types:t,widgets:e}=m(n);return h(t).decode(e)}));return(0,i.isLeft)(e)?void 0:y(e.right,t)},encode:function(n){let t=h().encode(n);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(n,t){let{fields:e}=n&&l.StaticCustomType.is(n)?v(n):n;return Object.entries(e).reduce((n,[e,r])=>{let u=t[e],i=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(u)?(0,p.groupContentWithDefaultValues)(r,u):u;case"Choice":case"Slices":return(0,p.isSlicesContent)(u)?(0,p.slicesContentWithDefaultValues)(r,u):u;default:return void 0===u&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):u}})();return i?{...n,[e]:i}:n},t)},t.traverseDocument=g,t.collectWidgets=function(n,t){let e={};return g({document:n})({transformWidget:({content:n,path:r})=>{let u=a.ContentPath.serialize(r);return t(n,r)&&(e[u]=n),n}}),e},t.migrateDocument=y},35264:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(54249);t.FieldOrSliceType=r.union([r.union([u.FieldType,u.SlicesTypes]),r.literal("Repeatable.Link")]);class i{constructor(n,t,e){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=n,this.fieldPath=t||[],this.allTypes=e||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}t.LegacyContentCtx=i,t.getFieldCtx=function(n,t,e){return new i(n,[...t.fieldPath,t.fieldKey,...e||[]],t.allTypes)},t.defaultCtx=function(n,t=new Map){return new i(n,[],t)}},34039:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(72186);t.EmptyContentType="EmptyContent",t.isEmptyContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.EmptyContentType;let a=o.union([o.null,o.type({value:o.null})]);t.EmptyLegacy=n=>new o.Type("EmptyLegacy",t.isEmptyContent,e=>(0,i.pipe)(a.decode(e),u.either.map(()=>({type:n,__TYPE__:t.EmptyContentType}))),()=>null),t.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(t.EmptyContentType)})},31952:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroupItemsContent=t.traverseGroupContent=t.groupContentWithDefaultValues=t.GroupLegacy=t.GroupItemLegacy=t.GroupContentDefaultValue=t.isGroupContent=t.GroupContent=t.GroupItemContent=t.GroupContentType=t.GroupItemContentType=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(96742),f=e(35264),l=e(72186),p=e(12750),d=e(77184);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupItemContent=c.recursion("GroupItemContent",()=>c.strict({__TYPE__:c.literal(t.GroupItemContentType),value:c.array(c.tuple([c.string,c.union([p.NestableContent,t.GroupContent])]))})),t.GroupContent=c.recursion("GroupContent",()=>c.strict({__TYPE__:c.literal(t.GroupContentType),value:c.array(t.GroupItemContent)})),t.isGroupContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.GroupContentType,t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]};let s=c.record(c.string,c.unknown);function h({path:n,key:t,apiId:e,model:r,content:u}){return i=>{var o;let c=m({path:n,model:null===(o=null==r?void 0:r.config)||void 0===o?void 0:o.fields,content:u.value})(i);return i({path:n,key:t,apiId:e,model:r,content:{__TYPE__:u.__TYPE__,value:c}})}}function m({path:n,model:e,content:r}){return u=>r.map((r,i)=>{let o=n.concat([{key:i.toString(),type:"GroupItem"}]),c=r.value.reduce((n,[r,i])=>{let c;let a=null==e?void 0:e[r];return(c=(0,t.isGroupContent)(i)?h({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:i})(u):(0,p.isRepeatableContent)(i)?(0,p.traverseRepeatableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:i})(u):(0,p.isTableContent)(i)?(0,p.traverseTableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:i})(u):u({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:i}))&&((0,p.isNestableContent)(c)||(0,t.isGroupContent)(c))?n.concat([[r,c]]):n},[]);return{__TYPE__:r.__TYPE__,value:c}})}t.GroupItemLegacy=n=>new c.Type("GroupItemLegacy",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.GroupItemContentType,e=>(0,o.pipe)(s.decode(e),u.either.map(e=>({value:Object.entries(e).reduce((e,[r,u])=>{let o=(0,f.getFieldCtx)(r,n),c=o.fieldType===a.GroupFieldType?(0,t.GroupLegacy)(o).decode(u):(0,p.NestableLegacy)(o).decode(u);return!c||(0,i.isLeft)(c)?e:[...e,[r,c.right]]},[]),__TYPE__:t.GroupItemContentType}))),e=>e.value.reduce((e,[r,u])=>{let i=(0,f.getFieldCtx)(r,n),o=(0,t.isGroupContent)(u)?(0,t.GroupLegacy)(i).encode(u):(0,p.NestableLegacy)(i).encode(u);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}})),t.GroupLegacy=n=>{let e=c.array(c.union([c.null,(0,t.GroupItemLegacy)(n)])),r=c.array((0,t.GroupItemLegacy)(n));return new c.Type("GroupLegacy",t.isGroupContent,n=>(0,o.pipe)(e.decode(n),u.either.map(n=>({value:n.map(n=>null===n?{__TYPE__:t.GroupItemContentType,value:[]}:n),__TYPE__:t.GroupContentType}))),t=>{let e=r.encode(t.value);return{content:e.map(n=>n.content),types:e.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:a.GroupFieldType})}})},t.groupContentWithDefaultValues=function(n,t){var e;let r=null===(e=n.config)||void 0===e?void 0:e.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=h,t.traverseGroupItemsContent=m},17320:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(72186);t.UIDContentType="UIDContent",t.isUIDContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.UIDContentType,t.UIDLegacy=n=>new o.Type("UIDLegacy",t.isUIDContent,n=>(0,i.pipe)(o.string.decode(n),u.either.map(n=>t.UIDContent.encode({value:n,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"UID"}})),t.UIDContent=o.type({__TYPE__:o.literal(t.UIDContentType),value:o.string})},40098:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(31952),i=e(12750),o=e(91167),c=e(17320);t.WidgetContent=r.union([u.GroupContent,i.NestableContent,c.UIDContent,o.SlicesContent]),t.isWidgetContent=n=>(0,u.isGroupContent)(n)||(0,i.isNestableContent)(n)||(0,c.isUIDContent)(n)||(0,o.isSlicesContent)(n),t.WidgetLegacy=n=>({decode(t){if(!n.fieldType)return;let e=(()=>{switch(n.fieldType){case"UID":return(0,c.UIDLegacy)(n);case"Group":return(0,u.GroupLegacy)(n);case"Choice":case"Slices":return(0,o.SlicesLegacy)(n);default:return(0,i.NestableLegacy)(n)}})();if(e)return e.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(n).encode(t);case u.GroupContentType:return(0,u.GroupLegacy)(n).encode(t);case o.SlicesContentType:return(0,o.SlicesLegacy)(n).encode(t);default:return(0,i.NestableLegacy)(n).encode(t)}}})},1645:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(34039),t),(0,r.__exportStar)(e(31952),t),(0,r.__exportStar)(e(12750),t),(0,r.__exportStar)(e(91167),t),(0,r.__exportStar)(e(17320),t),(0,r.__exportStar)(e(40098),t)},3136:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(72186);t.BooleanContentType="BooleanContent",t.isBooleanContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.BooleanContentType,t.BooleanLegacy=n=>new o.Type("BooleanLegacy",t.isBooleanContent,n=>(0,i.pipe)(o.boolean.decode(n),u.either.map(n=>t.BooleanContent.encode({value:n,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"Boolean"}})),t.BooleanContent=o.strict({__TYPE__:o.literal(t.BooleanContentType),value:o.boolean}),t.BooleanContentDefaultValue=n=>{var e;return(null===(e=n.config)||void 0===e?void 0:e.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:n.config.default_value||!1}:void 0}},11893:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(37581),a=e(72186);t.EmbedContentType="EmbedContent",t.isEmbedContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.EmbedContentType,t.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:c.StringOrNull,author_name:c.StringOrNull,author_url:c.StringOrNull,provider_name:c.StringOrNull,provider_url:c.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:c.StringOrNull,thumbnail_width:c.NumberOrNull,thumbnail_height:c.NumberOrNull,html:c.StringOrNull})])),t.EmbedLegacy=n=>new o.Type("EmbedLegacy",t.isEmbedContent,n=>(0,i.pipe)(t.EmbedContentLegacy.decode(n),u.either.map(e=>({...e,all:n,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[n.keyOfType]:"Embed"}})),t.EmbedContent=o.intersection([t.EmbedContentLegacy,o.strict({__TYPE__:o.literal(t.EmbedContentType),all:o.unknown})])},26377:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isColorContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Color"===n.type,t.ColorLegacy=n=>new o.Type("ColorLegacy",t.isColorContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.ColorContent.encode({value:n,type:c.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.ColorFieldType}})),t.ColorContent=o.strict({type:o.literal(c.ColorFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},30626:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isDateContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Date"===n.type,t.DateLegacy=n=>new o.Type("DateLegacy",t.isDateContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.DateContent.encode({value:n,type:c.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.DateFieldType}})),t.DateContent=o.strict({type:o.literal(c.DateFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},82341:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isNumberContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Number"===n.type,t.NumberLegacy=n=>new o.Type("NumberLegacy",t.isNumberContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.NumberContent.encode({value:n,type:c.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.NumberFieldType}})),t.NumberContent=o.strict({type:o.literal(c.NumberFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},15908:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isRangeContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Range"===n.type,t.RangeLegacy=n=>new o.Type("RangeLegacy",t.isRangeContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.RangeContent.encode({value:n,type:c.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.RangeFieldType}})),t.RangeContent=o.strict({type:o.literal(c.RangeFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},27876:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isSelectContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Select"===n.type,t.SelectLegacy=n=>new o.Type("SelectLegacy",t.isSelectContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.SelectContent.encode({value:n,type:c.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.SelectFieldType}})),t.SelectContent=o.strict({type:o.literal(c.SelectFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)}),t.SelectContentDefaultValue=n=>{var t;return(null===(t=n.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:c.SelectFieldType,value:n.config.default_value||""}:void 0}},74474:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isTextContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Text"===n.type,t.TextLegacy=n=>new o.Type("TextLegacy",t.isTextContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.TextContent.encode({value:n,type:c.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.TextFieldType}})),t.TextContent=o.strict({type:o.literal(c.TextFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},57780:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(54249),a=(0,r.__importDefault)(e(38417)),f=e(72186),l=e(33111);t.isTimestampContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Timestamp"===n.type,t.TimestampLegacy=n=>new o.Type("TimestampLegacy",t.isTimestampContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.TimestampContent.encode({value:n,type:c.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.TimestampFieldType}})),t.TimestampContent=o.strict({type:o.literal(c.TimestampFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},33111:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},48930:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=e(22970),u=(0,r.__importStar)(e(87830)),i=e(26377),o=e(30626),c=e(82341),a=e(15908),f=e(27876),l=e(74474),p=e(57780);t.FieldType=u.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=u.union([o.DateContent,i.ColorContent,c.NumberContent,a.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent]),(0,r.__exportStar)(e(26377),t),(0,r.__exportStar)(e(33111),t),(0,r.__exportStar)(e(30626),t),(0,r.__exportStar)(e(82341),t),(0,r.__exportStar)(e(15908),t),(0,r.__exportStar)(e(27876),t),(0,r.__exportStar)(e(74474),t),(0,r.__exportStar)(e(57780),t)},33065:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=e(22970),u=e(9554),i=e(42275),o=(0,r.__importStar)(e(87830)),c=e(72186);t.GeoPointContentType="GeoPointContent",t.isGeoPointContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.GeoPointContentType;let a=o.strict({position:o.strict({lat:o.number,lng:o.number})});t.GeoPointLegacy=n=>new o.Type("GeoPointLegacy",t.isGeoPointContent,n=>(0,i.pipe)(a.decode(n),u.either.map(n=>t.GeoPointContent.encode({...n,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[n.keyOfType]:"GeoPoint"}})),t.GeoPointContent=o.intersection([a,o.strict({__TYPE__:o.literal(t.GeoPointContentType)})])},73089:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(77454),a=e(37581),f=e(72186);t.ImageContentType="ImageContent",t.isImageContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.ImageContentType;let l=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));t.ImageContentView=o.exact(o.intersection([o.type({origin:l,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:a.NonEmptyStringOrNull,alt:a.NonEmptyStringOrNull,provider:a.StringOrNull})]));let p=o.intersection([t.ImageContentView,o.partial({thumbnails:o.record(o.string,t.ImageContentView)})]);t.ImageLegacy=n=>new o.Type("ImageLegacy",t.isImageContent,n=>(0,i.pipe)(p.decode(n),u.either.map(n=>t.ImageContent.encode({...n,__TYPE__:t.ImageContentType}))),t=>({content:(0,c.withOptionals)({edit:t.edit,height:t.height,origin:t.origin,width:t.width},[["alt",t.alt],["credits",t.credits],["provider",t.provider],["thumbnails",t.thumbnails],["url",t.url]]),types:{[n.keyOfType]:"Image"}})),t.ImageContent=o.intersection([p,o.strict({__TYPE__:o.literal(t.ImageContentType)})])},32732:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(72186);t.IntegrationFieldContentType="IntegrationFieldsContent",t.isIntegrationFieldContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.IntegrationFieldContentType,t.IntegrationFieldLegacy=n=>new o.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,n=>(0,i.pipe)(o.string.decode(n),u.either.map(n=>t.IntegrationFieldContent.encode({value:n,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"IntegrationFields"}})),t.IntegrationFieldContent=o.strict({__TYPE__:o.literal(t.IntegrationFieldContentType),value:o.string})},17665:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FilledLinkContent=t.FilledLink=t.FilledLinkContentLegacy=t.FilledLinkLegacy=t.isFilledLinkContent=t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.AnyLinkContent=t.AnyLinkType=t.ExternalLinkContent=t.FilledExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.FilledDocumentLinkContent=t.DocumentLinkType=t.MediaLinkContent=t.MediaLinkType=t.FileLinkContent=t.FilledFileLinkContent=t.FileLinkType=t.ImageLinkContent=t.FilledImageLinkContent=t.ImageLinkType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(23284),a=e(37581),f=e(47320),l=e(72186);t.ImageLinkType="ImageLink";let p=n=>"string"==typeof n,d=new o.Type("ImageLinkKind",n=>p(n),(n,t)=>p(n)?o.success("image"):o.failure(n,t),()=>"image"),s=o.intersection([o.strict({kind:d,id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string}),o.exact(o.partial({date:a.StringOrNull}))]),h=new o.Type("FilledImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,i.pipe)(s.decode(n),u.either.map(n=>t.FilledImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>s.encode(n));t.FilledImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),s]);let m=o.intersection([o.union([s,o.strict({kind:o.literal("image")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),v=new o.Type("ImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,i.pipe)(m.decode(n),u.either.map(n=>t.ImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>m.encode(n));t.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),m]),t.FileLinkType="FileLink";let g=n=>"string"==typeof n,y=new o.Type("FileLinkKind",n=>g(n),(n,t)=>g(n)?o.success("file"):o.failure(n,t),()=>"file"),b=o.exact(o.intersection([o.type({kind:y,id:o.string,url:o.string,name:o.string,size:(0,c.withFallback)(o.string,"0")}),o.partial({date:a.StringOrNull})])),_=new o.Type("FilledFileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,i.pipe)(b.decode(n),u.either.map(n=>t.FilledFileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>b.encode(n));t.FilledFileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),b]);let I=o.intersection([o.union([b,o.strict({kind:o.literal("file")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),R=new o.Type("FileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,i.pipe)(I.decode(n),u.either.map(n=>t.FileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>I.encode(n));t.FileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),I]),t.MediaLinkType="MediaLink";let S=o.intersection([o.strict({kind:o.literal("media")}),o.exact(o.partial({text:o.string,variant:o.string}))]),T=new o.Type("MediaLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.MediaLinkType,n=>(0,i.pipe)(S.decode(n),u.either.map(n=>t.MediaLinkContent.encode({...n,__TYPE__:t.MediaLinkType}))),n=>S.encode(n));t.MediaLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.MediaLinkType)}),S]),t.DocumentLinkType="DocumentLink";let x=o.strict({id:a.NonEmptyString}),M=new o.Type("FilledDocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,i.pipe)(x.decode(n),u.either.map(n=>t.FilledDocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>x.encode(n));t.FilledDocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),x]);let O=o.intersection([o.union([x,o.strict({kind:o.literal("document")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),w=new o.Type("DocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,i.pipe)(O.decode(n),u.either.map(n=>t.DocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>O.encode(n));t.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),O]),t.ExternalLinkType="ExternalLink";let C=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:a.StringOrNull,preview:(0,f.nullable)(o.partial({title:o.string}))})])),E=new o.Type("FilledExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,i.pipe)(C.decode(n),u.either.map(n=>t.FilledExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>C.encode(n));t.FilledExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),C]);let k=o.intersection([o.union([C,o.strict({kind:o.literal("web")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),W=new o.Type("ExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,i.pipe)(k.decode(n),u.either.map(n=>t.ExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>k.encode(n));t.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),k]),t.AnyLinkType="AnyLink";let F=o.exact(o.intersection([o.type({kind:(0,c.withFallback)(o.literal("any"),"any")}),o.partial({text:o.string,variant:o.string})])),U=new o.Type("AnyLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.AnyLinkType,n=>(0,i.pipe)(F.decode(n),u.either.map(n=>t.AnyLinkContent.encode({...n,__TYPE__:t.AnyLinkType}))),n=>F.encode(n));t.AnyLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.AnyLinkType)}),F]),t.LinkContentType="LinkContent",t.isLinkContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.LinkLegacy=(0,l.withKey)(o.union([v,R,w,W,T,U])),t.LinkContentLegacy=n=>new o.Type("LinkLegacy",t.isLinkContent,n=>(0,i.pipe)(t.LinkLegacy.decode(n),u.either.map(({key:n,...e})=>t.LinkContent.encode({__TYPE__:"LinkContent",key:n,value:e}))),({key:e,value:r})=>({content:t.LinkLegacy.encode({...r,key:e}),types:{[n.keyOfType]:"Link"}})),t.Link=o.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=o.union([h,_,M,E]),t.FilledLinkContentLegacy=n=>{let e=(0,l.withKey)(t.FilledLinkLegacy);return new o.Type("FilledLinkLegacy",t.isFilledLinkContent,n=>(0,i.pipe)(e.decode(n),u.either.map(({key:n,...e})=>t.FilledLinkContent.encode({__TYPE__:"LinkContent",key:n,value:e}))),({key:t,value:r})=>({content:e.encode({...r,key:t}),types:{[n.keyOfType]:"Link"}}))},t.FilledLink=o.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.FilledLink}))},22577:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830)),o=e(34039),c=e(3136),a=e(11893),f=e(48930),l=e(33111),p=e(33065),d=e(73089),s=e(32732),h=e(17665),m=e(59530),v=e(29474),g=e(93783),y=e(81299);t.NestableContent=i.union([o.EmptyContent,c.BooleanContent,a.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,h.LinkContent,v.RichTextContent,g.SeparatorContent,y.TableContent,m.RepeatableContent]),t.NestableContentDefaultValue=n=>{switch(n.type){case"Boolean":return(0,c.BooleanContentDefaultValue)(n);case"Select":return(0,f.SelectContentDefaultValue)(n);default:return}},t.isNestableContent=n=>(0,f.isTextContent)(n)||(0,f.isColorContent)(n)||(0,f.isDateContent)(n)||(0,f.isTimestampContent)(n)||(0,f.isNumberContent)(n)||(0,f.isRangeContent)(n)||(0,f.isSelectContent)(n)||(0,p.isGeoPointContent)(n)||(0,v.isRichTextContent)(n)||(0,c.isBooleanContent)(n)||(0,a.isEmbedContent)(n)||(0,d.isImageContent)(n)||(0,s.isIntegrationFieldContent)(n)||(0,h.isLinkContent)(n)||(0,g.isSeparatorContent)(n)||(0,y.isTableContent)(n)||(0,o.isEmptyContent)(n)||(0,m.isRepeatableContent)(n),t.NestableLegacy=n=>({decode(t){if(!n.fieldType)return;let e=(0,o.EmptyLegacy)(n.fieldType).decode(t);if((0,u.isRight)(e))return e;let r=(()=>{switch(n.fieldType){case"Text":return(0,f.TextLegacy)(n);case"Color":return(0,f.ColorLegacy)(n);case"Date":return(0,f.DateLegacy)(n);case"Timestamp":return(0,f.TimestampLegacy)(n);case"Number":return(0,f.NumberLegacy)(n);case"Range":return(0,f.RangeLegacy)(n);case"Select":return(0,f.SelectLegacy)(n);case"GeoPoint":return(0,p.GeoPointLegacy)(n);case"StructuredText":return(0,v.RichTextLegacy)(n);case"Boolean":return(0,c.BooleanLegacy)(n);case"Embed":return(0,a.EmbedLegacy)(n);case"Image":return(0,d.ImageLegacy)(n);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(n);case"Link":return(0,h.LinkContentLegacy)(n);case"Separator":return(0,g.SeparatorLegacy)(n);case"Table":return(0,y.TableLegacy)(n);case"Repeatable.Link":return(0,m.RepeatableLegacy)(n,"Link");default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(n).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(n).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(n).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(n).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(n).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(n).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(n).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(n).encode(t);case v.RichTextContentType:return(0,v.RichTextLegacy)(n).encode(t);case a.EmbedContentType:return(0,a.EmbedLegacy)(n).encode(t);case c.BooleanContentType:return(0,c.BooleanLegacy)(n).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(n).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(n).encode(t);case h.LinkContentType:return(0,h.LinkContentLegacy)(n).encode(t);case g.SeparatorContentType:return(0,g.SeparatorLegacy)(n).encode(t);case y.TableContentType:return(0,y.TableLegacy)(n).encode(t);case"RepeatableContent":return(0,m.RepeatableLegacy)(n,t.type).encode(t);default:return}}})},59530:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseRepeatableContent=t.RepeatableLegacy=t.isRepeatableContent=t.RepeatableContent=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(72186),f=e(17665),l="RepeatableContent";t.RepeatableContent=c.strict({__TYPE__:c.literal(l),type:c.literal("Link"),value:c.array(f.LinkContent)}),t.isRepeatableContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===l,t.RepeatableLegacy=(n,e)=>new c.Type("RepeatableLegacy",t.isRepeatableContent,t=>(0,o.pipe)(c.array(c.unknown).decode(t),u.either.map(t=>({value:t.reduce((t,r)=>{let u;return"Link"===e&&(u=(0,f.LinkContentLegacy)(n).decode(r)),!u||(0,i.isLeft)(u)?t:[...t,u.right]},[]),type:e,__TYPE__:"RepeatableContent"}))),t=>({content:c.array(f.LinkContent).encode(t.value).reduce((t,e)=>{let r;return e.__TYPE__===f.LinkContentType&&(r=(0,f.LinkContentLegacy)(n).encode(e)),r?[...t,r]:t},[]).map(n=>n.content),types:{[n.keyOfType]:`Repeatable.${e}`}})),t.traverseRepeatableContent=function({path:n,key:t,apiId:e,model:r,content:u}){return i=>{let o=u.value.reduce((u,o,c)=>{let a=i({path:n.concat([{key:c.toString(),type:"Widget"}]),key:t,apiId:e,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:o});return a&&(0,f.isLinkContent)(a)?u.concat(a):u},[]);return i({path:n,key:t,apiId:e,model:r,content:{__TYPE__:u.__TYPE__,type:u.type,value:o}})}}},3110:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(23284),f=e(46239),l=e(37581),p=e(47320),d=e(11893),s=e(73089),h=e(17665),m=n=>c.strict({data:n,start:c.number,end:c.number,type:c.literal(f.RichTextNodeType.hyperlink)}),v=c.strict({data:(0,a.withFallback)(c.string,""),start:c.number,end:c.number,type:c.literal("label")}),g=c.strict({start:c.number,end:c.number,type:c.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=c.union([m(h.FilledLink),v,g]),t.SpanLegacy=c.union([m(h.FilledLinkLegacy),v,g]),t.ValidatedSpans=n=>new c.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(n.is),(t,e)=>{if(!Array.isArray(t))return c.failure(t,e);{let e=t.reduce((t,e)=>{let r=n.decode(e);return(0,i.isLeft)(r)?t:[...t,r.right]},[]).sort((n,t)=>n.start-t.start);return c.success(e)}},t=>t.reduce((t,e)=>[...t,n.encode(e)],[]));let y=n=>c.exact(c.intersection([c.type({type:c.literal(f.RichTextNodeType.image),data:c.intersection([s.ImageContentView,c.partial({linkTo:(0,p.nullable)(n)})])}),c.partial({label:l.StringOrNull,direction:l.StringOrNull})]));t.ImageBlock=y(h.FilledLink);let b=y(h.FilledLinkLegacy);t.checkImageBlock=function(n){return n.type===f.RichTextNodeType.image};let _=c.exact(c.intersection([c.type({type:c.literal(f.RichTextNodeType.embed),data:c.unknown}),c.partial({label:l.StringOrNull,direction:l.StringOrNull})])),I=new c.Type("EmbedBlockLegacy",n=>"embed"===n.type,n=>(0,o.pipe)(_.decode(n),u.either.chain(n=>u.either.map(t=>[n,t])(d.EmbedContentLegacy.decode(n.data))),u.either.map(([n,e])=>t.EmbedBlock.encode({...n,data:{...e,__TYPE__:d.EmbedContentType,all:n.data}}))),n=>({..._.encode(n),data:d.EmbedContentLegacy.encode(n.data)}));t.EmbedBlock=c.exact(c.intersection([c.type({type:c.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),c.partial({label:l.StringOrNull,direction:l.StringOrNull})])),t.checkEmbedBlock=function(n){return n.type===f.RichTextNodeType.embed};let R=n=>c.exact(c.intersection([c.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,n=>n!==f.RichTextNodeType.image&&n!==f.RichTextNodeType.embed),content:c.intersection([c.type({text:c.string}),c.partial({spans:(0,t.ValidatedSpans)(n)})])}),c.partial({label:c.string,direction:c.string})]));t.TextBlock=R(t.Span),t.TextBlockLegacy=R(t.SpanLegacy);let S=c.union([I,b,t.TextBlockLegacy]);t.BlockLegacy=new c.Type("BlockLegacy",n=>I.is(n)||b.is(n)||t.TextBlockLegacy.is(n),n=>S.decode(n),n=>t.ImageBlock.is(n)?b.encode(n):t.EmbedBlock.is(n)?I.encode(n):t.TextBlockLegacy.encode(n)),t.Block=c.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},29474:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.RichTextLegacyContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(72186),a=e(3110);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.RichTextContentType,t.RichTextLegacyContent=o.array(a.BlockLegacy),t.RichTextContent=o.strict({__TYPE__:o.literal(t.RichTextContentType),value:o.array(a.Block)}),(0,r.__exportStar)(e(3110),t),t.RichTextLegacy=n=>new o.Type("RichTextLegacy",t.isRichTextContent,n=>(0,i.pipe)(t.RichTextLegacyContent.decode(n),u.either.map(n=>({value:n,__TYPE__:t.RichTextContentType}))),e=>({content:t.RichTextLegacyContent.encode(e.value),types:{[n.keyOfType]:"StructuredText"}}))},93783:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(72186);t.SeparatorContentType="SeparatorContent",t.isSeparatorContent=n=>(0,u.hasContentType)(n)&&n.__TYPE__===t.SeparatorContentType,t.SeparatorLegacy=n=>new r.Type("SeparatorLegacy",t.isSeparatorContent,()=>r.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[n.keyOfType]:"Separator"}})),t.SeparatorContent=r.strict({__TYPE__:r.literal(t.SeparatorContentType)})},81299:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseTableContent=t.TableLegacy=t.TableContent=t.isTableContent=t.TableContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(96742),a=e(72186),f=e(29474);t.TableContentType="TableContent",t.isTableContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.TableContentType;let l=(0,a.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextContent}),o.exact(o.partial({columnWidth:o.number}))])),p=(0,a.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(l)}));t.TableContent=o.strict({__TYPE__:o.literal(t.TableContentType),content:o.array(p)});let d=(0,a.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextLegacyContent}),o.exact(o.partial({columnWidth:o.number}))])),s=(0,a.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(d)})),h=o.strict({content:o.array(s)});t.TableLegacy=n=>new o.Type("TableLegacy",t.isTableContent,n=>(0,i.pipe)(h.decode(n),u.either.map(n=>({__TYPE__:"TableContent",content:n.content.map(n=>({...n,content:n.content.map(n=>({...n,content:{__TYPE__:"StructuredTextContent",value:n.content}}))}))}))),t=>({content:h.encode({content:t.content.map(n=>({...n,content:n.content.map(n=>({...n,content:n.content.value}))}))}),types:{[n.keyOfType]:"Table"}})),t.traverseTableContent=function({path:n,key:t,apiId:e,model:r,content:u}){return i=>{let o=u.content.map((r,u)=>({...r,content:r.content.map((r,o)=>{let a=i({path:n.concat([{key:[u.toString(),o.toString()].join(","),type:"Widget"}]),key:t,apiId:e,model:c.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:a}})}));return i({path:n,key:t,apiId:e,model:r,content:{__TYPE__:u.__TYPE__,content:o}})}}},12750:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(3136),t),(0,r.__exportStar)(e(11893),t),(0,r.__exportStar)(e(48930),t),(0,r.__exportStar)(e(33065),t),(0,r.__exportStar)(e(73089),t),(0,r.__exportStar)(e(32732),t),(0,r.__exportStar)(e(17665),t),(0,r.__exportStar)(e(22577),t),(0,r.__exportStar)(e(59530),t),(0,r.__exportStar)(e(29474),t),(0,r.__exportStar)(e(93783),t),(0,r.__exportStar)(e(81299),t)},96865:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(35264),f=e(72186),l=e(31952),p=e(12750),d=e(77184),s=e(68413);t.CompositeSliceContentType="CompositeSliceContent",t.isCompositeSliceContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.CompositeSliceContentType;let h=c.exact(c.partial({repeat:c.array(c.unknown),"non-repeat":c.UnknownRecord}));t.CompositeSliceLegacy=n=>new c.Type("CompositeSliceLegacy",t.isCompositeSliceContent,e=>(0,o.pipe)(h.decode(e),u.either.map(e=>{let r=(()=>{let t=(0,a.getFieldCtx)("repeat",n),r=(0,s.RepeatableWidgetsLegacy)(t).decode(e.repeat);if(!(!r||(0,i.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(e["non-repeat"]||{}).reduce((t,[e,r])=>{let u=(0,a.getFieldCtx)(e,n,["non-repeat"]);if(!u)return t;let o=(0,p.NestableLegacy)(u).decode(r);return!o||(0,i.isLeft)(o)?t:{...t,[e]:o.right}},{}),repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let e=Object.entries(t.nonRepeat).reduce((t,[e,r])=>{let u=(0,a.getFieldCtx)(e,n,["non-repeat"]),i=(0,p.NestableLegacy)(u).encode(r);return i?{content:{...t.content,[e]:i.content},types:{...t.types,...i.types}}:t},{content:{},types:{}}),r=(()=>{let e=(0,a.getFieldCtx)("repeat",n);return(0,s.RepeatableWidgetsLegacy)(e).encode(t.repeat)})()||[];return{content:{"non-repeat":e.content,repeat:r.map(n=>n.content)},types:{[n.keyOfType]:"Slice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})}}}),t.CompositeSliceContent=c.strict({__TYPE__:c.literal(t.CompositeSliceContentType),nonRepeat:c.record(c.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(n,t){var e,r;let u=(0,d.withDefaultNestableContentValues)(null!==(e=n["non-repeat"])&&void 0!==e?e:{},t.nonRepeat),i=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=n.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:u,repeat:i}},t.traverseCompositeSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:u}){return(i,o)=>{let c=Object.entries(u.widget.nonRepeat).reduce((u,[o,c])=>{var a,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(a=null==r?void 0:r.fields)||void 0===a?void 0:a.primary)||void 0===f?void 0:f[o]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[o],s=i({path:n.concat([{key:"non-repeat",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:e,model:d,content:c});return s?(0,p.isNestableContent)(s)?{...u,[o]:s}:(console.warn(`Warn: Non nestable content with key [${o}] detected in a composite slice [${e}] with key [${t}]`),u):u},{}),a=(0,l.traverseGroupItemsContent)({path:n.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:u.widget.repeat})(i);return o({key:t,apiId:e,path:n,model:r,content:{...u,widget:{__TYPE__:"CompositeSliceContent",repeat:a,nonRepeat:c}}})}},t.migrateCompositeSlice=function(n,t){let[,e]=t.key.split("$");return{key:`${n.sliceName}$${e}`,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((e,[r,u])=>{var i;return(null===(i=n.fields.primary)||void 0===i?void 0:i[r])?{...e,[r]:u}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${n.sliceName}] with key [${t.key}] doesn't exist in the model.`),e)},{}),items:t.widget.repeat.map(e=>({__TYPE__:"GroupItemContent",value:e.value.reduce((e,[r,u])=>{var i;return(null===(i=n.fields.items)||void 0===i?void 0:i[r])?e.concat([[r,u]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${n.sliceName}] with key [${t.key}] doesn't exist in the model.`),e)},[])}),[])}}}},68413:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(31952),i=e(12750);t.RepeatableWidgetsLegacy=n=>r.array((0,u.GroupItemLegacy)(n));let o=r.tuple([r.string,r.union([i.NestableContent,u.GroupContent])]),c=r.strict({__TYPE__:r.literal(u.GroupItemContentType),value:r.array(o)});t.RepeatableWidgets=r.array(c)},914:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(23284),f=e(96742),l=e(35264),p=e(72186),d=e(31952),s=e(12750),h=e(77184),m=e(68413),v=e(55076);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.SharedSliceContentType;let g=c.exact(c.type({variation:c.string,items:(0,a.withFallback)(c.array(c.unknown),[]),primary:(0,a.withFallback)(c.UnknownRecord,{})}));t.SharedSliceLegacy=n=>new c.Type("SharedSliceLegacy",t.isSharedSliceContent,e=>(0,o.pipe)(g.decode(e),u.either.map(e=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",n,["variations",e.variation]),r=(0,m.RepeatableWidgetsLegacy)(t).decode(e.items);if(!(!r||(0,i.isLeft)(r)))return r.right})()||[],u=Object.entries(e.primary).reduce((t,[r,u])=>{let o=(0,l.getFieldCtx)(r,n,["variations",e.variation,"primary"]),c=(0,v.SlicePrimaryLegacy)(o).decode(u);return!c||(0,i.isLeft)(c)?t:{...t,[r]:c.right}},{});return{variation:e.variation,primary:u,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let e=Object.entries(t.primary).reduce((e,[r,u])=>{let i=(0,l.getFieldCtx)(r,n,["variations",t.variation,"primary"]),o=(0,v.SlicePrimaryLegacy)(i).encode(u);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}}),r=(()=>{let e=(0,l.getFieldCtx)("items",n,["variations",t.variation]);return(0,m.RepeatableWidgetsLegacy)(e).encode(t.items)})()||[];return{content:{primary:e.content,items:r.map(n=>n.content),variation:t.variation},types:{[n.keyOfType]:"SharedSlice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})}}}),t.SharedSliceContent=c.strict({__TYPE__:c.literal(t.SharedSliceContentType),variation:c.string,primary:c.record(c.string,v.SlicePrimaryContent),items:m.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(n,t){var e,r;let u=n.variations.find(n=>n.id===t.variation),i=null!==(e=null==u?void 0:u.primary)&&void 0!==e?e:{},o=null!==(r=null==u?void 0:u.items)&&void 0!==r?r:{},c=(0,h.withDefaultSlicePrimaryContentValues)(i,t.primary),a=(0,h.repeatableContentWithDefaultNestableContentValues)(o,t.items);return{...t,primary:c,items:a}},t.traverseSharedSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:u}){return(i,o)=>{let c=Object.entries(u.widget.primary).reduce((u,[o,c])=>{var a,l;let p=null===(l=null===(a=null==r?void 0:r.fields)||void 0===a?void 0:a.primary)||void 0===l?void 0:l[o],h=(0,d.isGroupContent)(c)?(0,d.traverseGroupContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:c,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(i):(0,s.isRepeatableContent)(c)?(0,s.traverseRepeatableContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:c,model:(null==p?void 0:p.type)==="Link"?p:void 0})(i):(0,s.isTableContent)(c)?(0,s.traverseTableContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:c,model:(null==p?void 0:p.type)==="Table"?p:void 0})(i):(0,s.isNestableContent)(c)?i({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,model:p,content:c}):void 0;return h?((0,v.isSlicePrimaryContent)(h)||console.warn(`Warn: Non nestable or group content with key [${o}] detected in a shared slice [${e}] with key [${t}]`),{...u,[o]:h}):u},{}),a=(0,d.traverseGroupItemsContent)({path:n.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:u.widget.items})(i);return o({key:t,apiId:e,path:n,model:r,content:{...u,widget:{__TYPE__:"SharedSliceContent",variation:u.widget.variation,primary:c,items:a}}})}}},463:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(31952),i=e(12750);t.SimpleSliceContent=r.union([i.NestableContent,u.GroupContent]),t.isSimpleSliceContent=n=>(0,i.isNestableContent)(n)||(0,u.isGroupContent)(n),t.SimpleSliceLegacy=n=>({decode:"Group"===n.fieldType?(0,u.GroupLegacy)(n).decode.bind(null):(0,i.NestableLegacy)(n).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.GroupLegacy)(n).encode(t):(0,i.NestableLegacy)(n).encode(t)}),t.traverseSimpleSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:i}){return(o,c)=>{var a;if((0,u.isGroupContent)(i.widget)){let t=(0,u.traverseGroupContent)({path:n,key:i.key,apiId:i.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:i.widget})(o);return t&&c({key:i.key,apiId:i.name,path:n,model:r,content:{...i,widget:t}})}let f=o({key:i.key,apiId:i.name,path:n,model:(null==r?void 0:r.type)==="SharedSlice"?null===(a=r.fields.primary)||void 0===a?void 0:a[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return f&&c({key:t,apiId:e,path:n,model:r,content:{...i,widget:f}})}},t.migrateSimpleSlice=function(n,t){var e;let[,r]=t.key.split("$"),u=`${n.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:u,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[e,r])=>{var u;return(null===(u=n.fields.items)||void 0===u?void 0:u[e])?t.concat([[e,r]]):t},[])}),[])}}:{key:u,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:(null===(e=n.fields.primary)||void 0===e?void 0:e[t.name])?{[t.name]:t.widget}:{},items:[]}}}},55076:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(96742),i=e(31952),o=e(12750);t.SlicePrimaryContent=r.union([o.NestableContent,i.GroupContent]),t.SlicePrimaryLegacy=n=>{let t=(0,i.GroupLegacy)(n),e=(0,o.NestableLegacy)(n);return{decode:r=>n.fieldType===u.GroupFieldType?t.decode(r):e.decode(r),encode:n=>(0,i.isGroupContent)(n)?t.encode(n):e.encode(n)}},t.isSlicePrimaryContent=n=>(0,o.isNestableContent)(n)||(0,i.isGroupContent)(n)},77822:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=e(22970),u=(0,r.__importStar)(e(87830)),i=e(96865),o=e(914),c=e(463);t.SliceLegacy=n=>({decode:t=>(()=>{switch(n.fieldType){case"Slice":return(0,i.CompositeSliceLegacy)(n);case"SharedSlice":return(0,o.SharedSliceLegacy)(n);default:return(0,c.SimpleSliceLegacy)(n)}})().decode(t),encode:t=>{switch(t.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(n).encode(t);case"CompositeSliceContent":return(0,i.CompositeSliceLegacy)(n).encode(t);default:return(0,c.SimpleSliceLegacy)(n).encode(t)}}}),t.SliceContent=u.union([i.CompositeSliceContent,o.SharedSliceContent,c.SimpleSliceContent]),(0,r.__exportStar)(e(96865),t),(0,r.__exportStar)(e(914),t),(0,r.__exportStar)(e(463),t),(0,r.__exportStar)(e(55076),t)},26226:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(47320),f=e(35264),l=e(31952),p=e(12750),d=e(77184),s=e(77822),h=e(96865),m=e(914),v=e(463);function g(n){return(0,h.isCompositeSliceContent)(n.widget)}function y(n){return(0,l.isGroupContent)(n.widget)||(0,p.isNestableContent)(n.widget)}t.SliceItemContent=c.type({key:c.string,name:c.string,maybeLabel:c.union([c.string,c.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(n){return(0,m.isSharedSliceContent)(n.widget)},t.isCompositeSliceItemContent=g,t.isSimpleSliceItemContent=y,t.sliceItemContentWithDefaultValues=function(n,t){var e;if("SharedSlice"===n.type&&(0,m.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(n,t);if("Slice"===n.type&&(0,h.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(n,t);if("Group"===n.type&&(0,l.isGroupContent)(t)&&(null===(e=n.config)||void 0===e?void 0:e.fields)){let e=(0,d.repeatableContentWithDefaultNestableContentValues)(n.config.fields,t.value);return{...t,value:e}}return t};let b=c.exact(c.intersection([c.type({key:c.string,value:c.unknown}),c.partial({label:(0,a.nullable)(c.string)})]));t.SlicesItemLegacy=n=>new c.Type("SlicesItemLegacy",n=>((0,m.isSharedSliceContent)(n.widget),(0,h.isCompositeSliceContent)(n.widget),(0,v.isSimpleSliceContent)(n.widget)),(t,e)=>(0,o.pipe)(b.decode(t),u.either.chain(r=>{var u;let o=r.key.indexOf("$"),a=r.key.substring(0,o>0?o:void 0),l=(0,f.getFieldCtx)(a,n),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,i.isLeft)(p)?c.failure(t,e):c.success({key:r.key,name:a,maybeLabel:null!==(u=r.label)&&void 0!==u?u:void 0,widget:p.right})})),t=>{let e=(0,f.getFieldCtx)(t.name,n),r=(0,s.SliceLegacy)(e).encode(t.widget);return{content:{key:t.key,label:t.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}}),t.migrateSliceItem=({model:n,content:t})=>g(t)&&(null==n?void 0:n.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(n,t):y(t)&&(null==n?void 0:n.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(n,t):t},19436:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(53953),a=e(96742),f=e(72186),l=e(96865),p=e(914),d=e(463),s=e(26226);t.SlicesContentType="SliceContentType",t.isSlicesContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.SlicesContentType,t.SlicesLegacy=n=>{let e=o.array((0,s.SlicesItemLegacy)(n));return new o.Type("SlicesLegacy",t.isSlicesContent,n=>(0,i.pipe)(e.decode(n),u.either.map(n=>({__TYPE__:t.SlicesContentType,value:n}))),t=>{let r=e.encode(t.value);return{content:r.map(n=>n.content),types:r.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:"Slices"})}})},t.SlicesContent=o.type({__TYPE__:o.literal(t.SlicesContentType),value:o.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(n,t){var e;let r=null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.choices;if(void 0===r)return t;let u=t.value.map(n=>{let t=r[n.name];if(t){let e=(0,s.sliceItemContentWithDefaultValues)(t,n.widget);return{...n,widget:e}}return n});return{...t,value:u}},t.traverseSlices=function({path:n,key:t,model:e,content:r}){return({transformWidget:u=({content:n})=>n,transformSlice:i=({content:n})=>n})=>{let o=r.value.reduce((t,r)=>{let o=e&&function(n,t,e){var r,u;let i=null===(u=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===u?void 0:u[e.name];return(()=>{if((0,s.isSharedSliceItemContent)(e)&&i&&(0,a.isStaticSharedSlice)(i)){let n=i.variations.find(n=>n.id===e.widget.variation);return n?{type:"SharedSlice",sliceName:i.id,variationId:n.id,fields:{primary:n.primary||{},items:n.items||{}}}:void 0}})()||(()=>{var r;let u=c.ContentPath.append(c.ContentPath.serialize(n),e.name),i=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(n=>{var t;return!!(0,a.isStaticSharedSlice)(n)&&!!(null===(t=n.legacyPaths)||void 0===t?void 0:t[u])});if(!i)return;let o=null==i?void 0:i.variations.find(n=>{var t;return n.id===(null===(t=i.legacyPaths)||void 0===t?void 0:t[u])});if(o)return{type:"SharedSlice",sliceName:i.id,variationId:o.id,fields:{primary:o.primary||{},items:o.items||{}}}})()||(()=>{if(i){if((0,a.isCompositeSlice)(i))return{type:"Slice","non-repeat":i["non-repeat"]||{},repeat:i.repeat||{}};if((0,a.isLegacySlice)(i))return i}})()}(n,e,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:n.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(u,i):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:n.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="Slice"||(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(u,i):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:n.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:o&&(null==o?void 0:o.type)!=="Slice"?o:void 0,content:r})(u,i):void 0;return f?t.concat(f):t},[]);return u({path:n,key:t,apiId:t,model:e,content:{__TYPE__:r.__TYPE__,value:o}})}}},91167:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(77822),t),(0,r.__exportStar)(e(26226),t),(0,r.__exportStar)(e(19436),t)},77184:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=e(96742),u=e(31952),i=e(12750);t.withDefaultSlicePrimaryContentValues=function(n,t){for(let[e,o]of Object.entries(n)){let n=t[e];if(void 0===n){if(o.type===r.GroupFieldType)t[e]=(0,u.groupContentWithDefaultValues)(o,u.GroupContentDefaultValue);else{let n=(0,i.NestableContentDefaultValue)(o);n&&(t[e]=n)}continue}o.type===r.GroupFieldType&&(0,u.isGroupContent)(n)&&(t[e]=(0,u.groupContentWithDefaultValues)(o,n))}return t},t.withDefaultNestableContentValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>{if(void 0===t[e]){let t=(0,i.NestableContentDefaultValue)(r);return void 0!==t?{...n,[e]:t}:n}return n},t)},t.repeatableContentWithDefaultNestableContentValues=function(n,t){let e=Object.entries(n);return t.map(n=>e.reduce((t,[e,r])=>{var o;let c=n.value.find(([n])=>n===e);if("Group"===r.type){let n=(0,u.groupContentWithDefaultValues)(r,null!==(o=null==c?void 0:c[1])&&void 0!==o?o:{__TYPE__:u.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([n])=>n!==e),...n?[[e,n]]:[]]}}if(!c){let n=(0,i.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...n?[[e,n]]:[]]}}return t},n))}},16211:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(48925),t),(0,r.__exportStar)(e(1645),t),(0,r.__exportStar)(e(35264),t)},72186:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withKey=t.hasContentType=t.hasFieldContentType=void 0;let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830)),o=e(60130),c=e(1645);function a(n){return"object"==typeof n&&null!==n&&"__TYPE__"in n}t.hasFieldContentType=function(n){return a(n)&&n.__TYPE__===c.FieldContentType&&(null==n?void 0:n.type)!==void 0&&"string"==typeof n.type&&(0,u.isRight)(c.FieldType.decode(n.type))},t.hasContentType=a;let f=n=>"string"==typeof n&&(0,o.validate)(n),l=new i.Type("UUID",f,(n,t)=>void 0===n?i.success((0,o.v4)()):f(n)?i.success(n):i.failure(n,t),i.identity);t.withKey=function(n){return i.intersection([i.strict({key:l}),n])}},32141:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCustomType=t.collectSharedSlices=t.flattenCustomTypeFields=t.filterMissingSharedSlices=t.collectWidgets=t.validateSlices=t.toStatic=t.flattenSections=t.flattenWidgets=t.CustomType=t.StaticCustomType=t.CustomTypeFormat=void 0;let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830)),o=e(69624),c=e(37581),a=e(69879);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(n){super(),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.slices=n,this.message=this._formatError(n)}_formatError(n){let t=n.map(n=>` - ${n}`);return`The following slices doesn't exists in your Prismic repository:
|
|
2
|
+
${t.join("\n")}
|
|
3
|
+
`}}function l(n){return i.exact(i.intersection([i.type({id:i.string,label:c.StringOrNull,repeatable:(0,o.withFallback)(i.boolean,!0),json:i.record(i.string,n),status:(0,o.withFallback)(i.boolean,!0)}),i.partial({format:(0,o.withFallback)(i.keyof(t.CustomTypeFormat),"custom")})]))}function p(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])}function d(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>{let u=Object.entries(r).reduce((n,[e,r])=>{let u=t(e,r);return u?{...n,[e]:u}:n},{});return{...n,[e]:u}},{});return{...n,json:e}}t.StaticCustomType=l(a.StaticSection),t.CustomType=l(a.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])},t.toStatic=function(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>({...n,[e]:a.Sections.toStatic(r,t)}),{});return{...n,json:e}},t.validateSlices=function(n,t){let e=(function(n){let t=p(n).filter(([,n])=>"Slices"===n.type).reduce((n,[,t])=>{let e=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,n])=>"SharedSlice"===n.type).map(([n])=>n);return n.concat(e)},[]);return function(n){return t.map(n)}})(n)(n=>{if(!t.get(n))return n}).filter(Boolean);return e.length>0?(0,u.left)(new f(e)):(0,u.right)(n)},t.collectWidgets=d,t.filterMissingSharedSlices=function(n,t){return d(n,(n,e)=>{if("Slices"===e.type){if(!e.config||!e.config.choices)return e;let n=Object.entries(e.config.choices).reduce((n,[e,r])=>"SharedSlice"!==r.type||t.get(e)?{...n,[e]:r}:n,{}),r={...e.config,choices:n};return{...e,config:r}}return e})},t.flattenCustomTypeFields=function(n){return Object.values(n.json).reduce((n,t)=>({...n,...t}),{})},t.collectSharedSlices=function(n){return Object.entries(n.fields).reduce((n,[,t])=>{var e;return"Slices"===t.type||"Choice"===t.type?{...n,...Object.entries((null===(e=t.config)||void 0===e?void 0:e.choices)||{}).reduce((n,[t,e])=>"SharedSlice"===e.type?{...n,[t]:e}:n,{})}:n},{})},t.traverseCustomType=function(n){let t;let{customType:e,onField:r}=n;for(let[n,u]of Object.entries(e.json)){let i=(0,a.traverseSection)({path:[n],section:u,onField:r});i!==u&&(t||(t={...e.json}),t[n]=i)}return t?{...e,json:t}:e}},69879:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSection=t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(11697),i=e(54249),o=e(34716);function c(n){return r.record(u.WidgetKey,n)}t.sectionReader=c,t.StaticSection=c(o.StaticWidget),t.DynamicSection=c(o.DynamicWidget),t.Sections={toStatic:(n,t)=>Object.entries(n).reduce((n,[e,r])=>({...n,[e]:o.Widgets.toStatic(r,t)}),{})},t.traverseSection=function(n){let t;let{path:e,section:r,onField:u}=n;for(let[n,o]of Object.entries(r)){let c;let a=[...e,n];switch(o.type){case"Choice":case"Slices":c=(0,i.traverseSlices)({path:a,slices:o,onField:u});break;case"Group":c=u({path:a,key:n,field:(0,i.traverseGroup)({path:a,group:o,onField:u})});break;default:c=u({path:a,key:n,field:o})}c!==o&&(t||(t={...r}),t[n]=c)}return null!=t?t:r}},10505:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(e=t.DiffOperation||(t.DiffOperation={})).Added="added",e.Removed="removed",e.Updated="updated"},14881:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=e(68845),u=e(10505),i=e(67068);t.SliceComparator={compare(n,t){if(!n&&t)return{op:u.DiffOperation.Added,value:t};if(n&&!t)return{op:u.DiffOperation.Removed};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"variations"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),o=Object.entries(r.Objects.zipObjects(n&&r.Arrays.toRecord(n.variations,n=>n.id),t&&r.Arrays.toRecord(t.variations,n=>n.id))).reduce((n,[t,e])=>{if(!e)return n;let r=i.VariationComparator.compare(e.left,e.right);return r?{...n,[t]:r}:n},{}),c={...e,...r.Objects.isNotEmpty(o)?{variations:o}:{}};if(r.Objects.isNotEmpty(c))return{op:u.DiffOperation.Updated,value:c}}}},67068:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=e(68845),u=e(73045),i=e(10505);function o(n,t){let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>{if(JSON.stringify(null==e?void 0:e.left)===JSON.stringify(null==e?void 0:e.right))return n;let r=(()=>{var n,t,r,c,a,f,l;if((null==e?void 0:e.left)||(null==e?void 0:e.right)){if((null==e?void 0:e.left)&&!e.right)return{op:i.DiffOperation.Removed};if(!(null==e?void 0:e.left)&&(null==e?void 0:e.right)){if((null===(n=e.right)||void 0===n?void 0:n.type)===u.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o(void 0,null===(t=e.right.config)||void 0===t?void 0:t.fields)||{},{op:i.DiffOperation.Added,value:n}}return{op:i.DiffOperation.Added,value:e.right}}if((null===(r=e.right)||void 0===r?void 0:r.type)===u.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o((null===(c=e.left)||void 0===c?void 0:c.type)===u.GroupFieldType?null===(f=null===(a=e.left)||void 0===a?void 0:a.config)||void 0===f?void 0:f.fields:void 0,null===(l=e.right.config)||void 0===l?void 0:l.fields)||{},{op:i.DiffOperation.Updated,value:n}}return{op:i.DiffOperation.Updated,value:e.right}}})();return r?{...n,[t]:r}:n},{});return r.Objects.isNotEmpty(e)?e:void 0}t.VariationComparator={compare(n,t){if(n&&!t)return{op:i.DiffOperation.Removed};if(!n&&t)return{op:i.DiffOperation.Added,value:t};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"primary"===t||"items"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),u=o(null==n?void 0:n.primary,null==t?void 0:t.primary),c=o(null==n?void 0:n.items,null==t?void 0:t.items),a={...e,...u?{primary:u}:{},...c?{items:c}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},29294:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},81566:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(10505),t),(0,r.__exportStar)(e(14881),t),(0,r.__exportStar)(e(67068),t),(0,r.__exportStar)(e(29294),t)},96742:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(32141),t),(0,r.__exportStar)(e(81566),t),(0,r.__exportStar)(e(69879),t),(0,r.__exportStar)(e(54249),t)},73045:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroup=t.traverseNestedGroup=t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(11697),i=e(37581),o=e(97662);t.GroupFieldType="Group";let c=n=>r.exact(r.partial({label:i.StringOrNull,repeat:r.boolean,fields:r.record(u.WidgetKey,n)})),a=n=>r.exact(r.intersection([r.type({type:r.literal(t.GroupFieldType)}),r.partial({fieldset:i.StringOrNull,icon:r.string,description:r.string,config:c(n)})]));function f(n){var t;let e;let{path:r,group:u,onField:i}=n;if(!(null===(t=u.config)||void 0===t?void 0:t.fields))return u;for(let[n,t]of Object.entries(u.config.fields)){let o=i({path:[...r,n],key:n,field:t});t!==o&&(e||(e={...u.config.fields}),e[n]=o)}return e?{...u,config:{...u.config,fields:e}}:u}t.NestedGroupConfig=c(o.NestableWidget),t.NestedGroup=a(o.NestableWidget),t.GroupConfig=c(r.union([o.NestableWidget,t.NestedGroup])),t.Group=a(r.union([o.NestableWidget,t.NestedGroup])),t.traverseNestedGroup=f,t.traverseGroup=function(n){var t;let e;let{path:r,group:u,onField:i}=n;if(!(null===(t=u.config)||void 0===t?void 0:t.fields))return u;for(let[n,t]of Object.entries(u.config.fields)){let o;let c=[...r,n];o="Group"===t.type?f({path:c,group:t,onField:i}):t;let a=i({path:c,key:n,field:o});o!==a&&(e||(e={...u.config.fields}),e[n]=a)}return e?{...u,config:{...u.config,fields:e}}:u}},80260:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.UIDFieldType="UID",t.UIDConfig=r.exact(r.partial({label:u.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.UID=r.exact(r.intersection([r.type({type:r.literal(t.UIDFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.UIDConfig})]))},34716:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(73045),i=e(46239),o=e(97662),c=e(8972),a=e(80260);function f(n){return r.union([a.UID,o.NestableWidget,u.Group,n])}t.widgetReader=f,t.StaticWidget=f(c.StaticSlices),t.DynamicWidget=f(c.DynamicSlices),t.FieldType=r.keyof({[i.ColorFieldType]:null,[i.BooleanFieldType]:null,[i.NumberFieldType]:null,[i.EmbedFieldType]:null,[i.GeoPointFieldType]:null,[i.DateFieldType]:null,[i.RangeFieldType]:null,[i.RichTextFieldType]:null,[i.SelectFieldType]:null,[i.SeparatorFieldType]:null,[i.TableFieldType]:null,[i.TextFieldType]:null,[i.TimestampFieldType]:null,[i.LinkFieldType]:null,[i.ImageFieldType]:null,[i.IntegrationFieldType]:null,[a.UIDFieldType]:null,[u.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(n,t){switch(n.type){case"Choice":case"Slices":return c.Slices.toStatic(n,t);default:return n}}}},54249:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(73045),t),(0,r.__exportStar)(e(46239),t),(0,r.__exportStar)(e(94631),t),(0,r.__exportStar)(e(66903),t),(0,r.__exportStar)(e(80260),t),(0,r.__exportStar)(e(34716),t)},13071:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.BooleanFieldType="Boolean",t.BooleanConfig=r.exact(r.partial({label:u.StringOrNull,default_value:r.boolean,placeholder_true:r.string,placeholder_false:r.string})),t.BooleanField=r.exact(r.intersection([r.type({type:r.literal(t.BooleanFieldType)}),r.partial({config:t.BooleanConfig})]))},98871:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.ColorFieldType="Color",t.ColorConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string})),t.Color=r.exact(r.intersection([r.type({type:r.literal(t.ColorFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.ColorConfig})]))},68829:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.DateFieldType="Date",t.DateConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,default:r.string})),t.Date=r.exact(r.intersection([r.type({type:r.literal(t.DateFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.DateConfig})]))},82427:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.EmbedFieldType="Embed",t.EmbedConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),t.Embed=r.exact(r.intersection([r.type({type:r.literal(t.EmbedFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.EmbedConfig})]))},56477:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=r.exact(r.partial({label:u.StringOrNull})),t.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(t.GeoPointFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.GeoPointConfig})]))},4813:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=e(22970),u=(0,r.__importStar)(e(87830)),i=e(37581),o=(0,r.__importDefault)(e(62291));t.ImageFieldType="Image",t.Thumbnail=u.exact(u.intersection([u.type({name:u.string}),o.default])),t.ImageConfig=u.exact(u.partial({label:i.StringOrNull,placeholder:u.string,constraint:o.default,thumbnails:u.readonlyArray(t.Thumbnail)})),t.Image=u.exact(u.intersection([u.type({type:u.literal(t.ImageFieldType)}),u.partial({fieldset:i.StringOrNull,config:t.ImageConfig})]))},25272:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,catalog:r.string})),t.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(t.IntegrationFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.IntegrationFieldConfig})]))},68751:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=t.CustomTypes=void 0;let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830)),o=e(69624),c=e(37581),a=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return i.success(n)},f=n=>{if("string"==typeof n)return i.success([n])},l=new i.Type("MasksArrayString",n=>n instanceof Array,(n,t)=>u.either.chain(i.union([i.array(i.string),i.string]).validate(n,t),e=>a(e)||f(e)||i.failure(n,t)),n=>n),p=new i.Type("CustomTypeLevel2FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>"string"==typeof n),(n,t)=>u.either.chain(i.array(i.string).validate(n,t),e=>new Set(e).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),d=i.union([i.strict({id:i.string,fields:p}),i.string]),s=new i.Type("CustomTypeLevel2Fields",n=>Array.isArray(n)&&n.every(n=>d.is(n)),(n,t)=>u.either.chain(i.array(d).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),h=i.union([i.string,i.strict({id:i.string,fields:s})]),m=new i.Type("CustomTypesLevel2",n=>Array.isArray(n)&&n.every(n=>h.is(n)),(n,t)=>u.either.chain(i.array(h).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Custom types have duplicates.")),n=>n),v=i.strict({id:i.string,customtypes:m}),g=i.union([v,i.string]),y=new i.Type("CustomTypeLevel1FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>g.is(n)),(n,t)=>u.either.chain(i.array(g).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),b=i.union([i.strict({id:i.string,fields:y}),v,i.string]),_=new i.Type("CustomTypeLevel1Fields",n=>Array.isArray(n)&&n.every(n=>b.is(n)),(n,t)=>u.either.chain(i.array(b).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),I=i.union([i.string,i.strict({id:i.string,fields:_})]);t.CustomTypes=new i.Type("CustomTypes",n=>Array.isArray(n)&&n.every(n=>I.is(n)),(n,t)=>u.either.chain(i.array(I).validate(n,t),e=>{let r=new Set,u=new Set;for(let o of e){let e=!1;if("string"==typeof o)e=u.has(o),r.add(o);else{let{id:n}=o;e=r.has(n)||u.has(n),u.add(n)}if(e)return i.failure(n,t,"Custom types have duplicates.")}return i.success(e)}),n=>n),t.LinkFieldType="Link",t.LinkConfig=i.exact(i.partial({label:c.StringOrNull,useAsTitle:i.boolean,placeholder:i.string,select:(0,o.withFallback)(i.union([i.literal("media"),i.literal("document"),i.literal("web"),i.null]),null),customtypes:t.CustomTypes,masks:l,tags:l,allowTargetBlank:i.boolean,allowText:i.boolean,repeat:i.boolean,variants:i.array(i.string)})),t.Link=i.exact(i.intersection([i.type({type:i.literal(t.LinkFieldType)}),i.partial({fieldset:c.StringOrNull,config:t.LinkConfig})]))},97662:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(13071),i=e(98871),o=e(68829),c=e(82427),a=e(56477),f=e(4813),l=e(25272),p=e(68751),d=e(25286),s=e(35600),h=e(17685),m=e(99187),v=e(57225),g=e(2428),y=e(4575),b=e(37842);t.NestableWidget=r.union([i.Color,u.BooleanField,c.Embed,a.GeoPoint,o.Date,d.Number,s.Range,h.RichText,m.Select,v.Separator,g.Table,y.Text,b.Timestamp,p.Link,f.Image,l.IntegrationField])},25286:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(59054),i=e(37581);t.NumberFieldType="Number",t.NumberConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,min:r.union([r.number,u.NumberFromString]),max:r.union([r.number,u.NumberFromString]),step:r.union([r.number,u.NumberFromString])})),t.Number=r.exact(r.intersection([r.type({type:r.literal(t.NumberFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.NumberConfig})]))},35600:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(59054),i=e(37581);t.RangeFieldType="Range",t.RangeConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,min:r.union([r.number,u.NumberFromString]),max:r.union([r.number,u.NumberFromString]),step:r.union([r.number,u.NumberFromString])})),t.Range=r.exact(r.intersection([r.type({type:r.literal(t.RangeFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.RangeConfig})]))},17685:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=e(22970),u=e(9554),i=e(87412),o=e(14632),c=(0,r.__importStar)(e(87830)),a=e(37581),f=(0,r.__importDefault)(e(62291));t.RichTextFieldType="StructuredText",t.DEFAULT_OPTION="paragraph",t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},t.RichTextNodeTypeCodec=c.keyof({[t.RichTextNodeType.heading1]:null,[t.RichTextNodeType.heading2]:null,[t.RichTextNodeType.heading3]:null,[t.RichTextNodeType.heading4]:null,[t.RichTextNodeType.heading5]:null,[t.RichTextNodeType.heading6]:null,[t.RichTextNodeType.paragraph]:null,[t.RichTextNodeType.strong]:null,[t.RichTextNodeType.em]:null,[t.RichTextNodeType.preformatted]:null,[t.RichTextNodeType.hyperlink]:null,[t.RichTextNodeType.image]:null,[t.RichTextNodeType.embed]:null,[t.RichTextNodeType.list]:null,[t.RichTextNodeType.orderedList]:null,[t.RichTextNodeType.rtl]:null});let l=new c.Type("RichTextOptions",n=>"string"==typeof n,n=>(0,o.pipe)(c.union([c.string,c.null]).decode(n),u.either.map(n=>{if(!n)return t.DEFAULT_OPTION;let e=n.split(",").map(n=>n.trim()).filter(n=>(0,i.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(n)));return e.length?e.join(","):t.DEFAULT_OPTION})),n=>n),p=n=>{if(!n)return c.success([])},d=n=>{if(n instanceof Object){if(!Object.entries(n).length)return c.success([]);if(n[""])return c.success(n[""].map(n=>n.name));let t=Object.entries(n).reduce((n,[,t])=>n.concat(t.map(n=>n.name)),[]).filter(Boolean);return c.success(t)}},s=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return c.success(n)},h=n=>{if("string"==typeof n)return c.success([n])},m=new c.Type("RichTextLabels",n=>n instanceof Array,(n,t)=>{let e=c.record(c.string,c.readonlyArray(c.record(c.literal("name"),c.string))),r=c.readonlyArray(c.string);return(0,o.pipe)(c.union([e,r,c.string,c.null]).decode(n),u.either.chain(e=>p(e)||s(e)||d(e)||h(e)||c.failure(n,t)))},n=>n);t.RichTextConfig=c.exact(c.partial({label:a.StringOrNull,placeholder:c.string,useAsTitle:c.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:c.boolean})),t.RichText=c.exact(c.intersection([c.type({type:c.literal(t.RichTextFieldType)}),c.partial({fieldset:a.StringOrNull,config:t.RichTextConfig})]))},99187:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.SelectFieldType="Select",t.SelectConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,u.StringFromNumber,u.StringFromBoolean]))})),t.Select=r.exact(r.intersection([r.type({type:r.literal(t.SelectFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.SelectConfig})]))},57225:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.SeparatorFieldType="Separator",t.SeparatorConfig=r.exact(r.partial({label:u.StringOrNull})),t.Separator=r.exact(r.intersection([r.type({type:r.literal(t.SeparatorFieldType)}),r.partial({config:t.SeparatorConfig})]))},2428:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.Table=t.TableFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581),i=e(17685);t.TableFieldType="Table";let o=r.exact(r.partial({label:u.StringOrNull}));t.Table=r.exact(r.intersection([r.type({type:r.literal(t.TableFieldType)}),r.partial({config:o})])),t.TableCell={type:"StructuredText",config:{multi:[i.RichTextNodeType.paragraph,i.RichTextNodeType.strong,i.RichTextNodeType.em,i.RichTextNodeType.hyperlink].join(",")}}},4575:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.TextFieldType="Text",t.TextConfig=r.exact(r.partial({label:u.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.Text=r.exact(r.intersection([r.type({type:r.literal(t.TextFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.TextConfig})]))},37842:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(37581);t.TimestampFieldType="Timestamp",t.TimestampConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,default:r.string})),t.Timestamp=r.exact(r.intersection([r.type({type:r.literal(t.TimestampFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.TimestampConfig})]))},46239:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(13071),t),(0,r.__exportStar)(e(98871),t),(0,r.__exportStar)(e(68829),t),(0,r.__exportStar)(e(82427),t),(0,r.__exportStar)(e(56477),t),(0,r.__exportStar)(e(4813),t),(0,r.__exportStar)(e(25272),t),(0,r.__exportStar)(e(68751),t),(0,r.__exportStar)(e(97662),t),(0,r.__exportStar)(e(25286),t),(0,r.__exportStar)(e(35600),t),(0,r.__exportStar)(e(17685),t),(0,r.__exportStar)(e(99187),t),(0,r.__exportStar)(e(57225),t),(0,r.__exportStar)(e(2428),t),(0,r.__exportStar)(e(4575),t),(0,r.__exportStar)(e(37842),t)},62291:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830)),o=e(11621),c=e(37581),a=new i.Type("SideConstraints",n=>!n||"number"==typeof n,(n,t)=>u.either.chain(i.union([i.literal("auto"),i.literal(""),i.Int,o.IntFromString,c.IntFromNumber,c.IntFromPixels,i.null]).validate(n,t),n=>"auto"===n||""===n?i.success(null):i.success(n)),n=>n),f=i.partial({width:a,height:a});t.default=f},94631:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var u=e(62291);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(u).default}})},57191:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCompositeSlice=t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(11697),i=e(37581),o=e(97662);t.CompositeSliceType="Slice",t.CompositeSliceConfig=r.exact(r.partial({label:i.StringOrNull})),t.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(t.CompositeSliceType)}),r.partial({fieldset:i.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(u.WidgetKey,o.NestableWidget),repeat:r.record(u.WidgetKey,o.NestableWidget),config:t.CompositeSliceConfig})])),t.isCompositeSlice=function(n){return"Slice"===n.type},t.traverseCompositeSlice=function(n){var t,e;let r,u;let{path:i,slice:o,onField:c}=n;for(let[n,e]of Object.entries(null!==(t=o["non-repeat"])&&void 0!==t?t:{})){let t=c({path:[...i,"non-repeat",n],key:n,field:e});e!==t&&(r||(r={...o["non-repeat"]}),r[n]=t)}for(let[n,t]of Object.entries(null!==(e=o.repeat)&&void 0!==e?e:{})){let e=c({path:[...i,"repeat",n],key:n,field:t});t!==e&&(u||(u={...o.repeat}),u[n]=e)}return u||r?{...o,...r&&{"non-repeat":r},...u&&{repeat:u}}:o}},7816:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(73045),i=e(97662);t.LegacySlice=r.union([i.NestableWidget,u.NestedGroup]),t.isLegacySlice=function(n){return"Slice"!==n.type&&"SharedSlice"!==n.type}},78716:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSlice=t.traverseVariation=t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(69624),i=e(11697),o=e(73045),c=e(97662),a=e(23084);t.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,u.withFallback)(r.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:r.string,version:r.string}),r.partial({display:r.string,primary:r.record(i.WidgetKey,a.SlicePrimaryWidget),items:r.record(i.WidgetKey,c.NestableWidget)})])),t.SharedSliceType="SharedSlice";let f=r.string,l=r.string;function p(n){var t,e;let r,u;let{path:i,variation:c,onField:a}=n;for(let[n,e]of Object.entries(null!==(t=c.primary)&&void 0!==t?t:{})){let t;let u=[...i,"primary",n];t="Group"===e.type?(0,o.traverseGroup)({path:u,group:e,onField:a}):e;let f=a({path:u,key:n,field:t});t!==f&&(r||(r={...c.primary}),r[n]=f)}for(let[n,t]of Object.entries(null!==(e=c.items)&&void 0!==e?e:{})){let e=a({path:[...i,"items",n],key:n,field:t});t!==e&&(u||(u={...c.items}),u[n]=e)}return r||u?{...c,...r&&{primary:r},...u&&{items:u}}:c}t.SharedSlice=r.exact(r.intersection([r.type({id:r.string,type:r.literal(t.SharedSliceType),name:r.string,variations:r.readonlyArray(t.Variation)}),r.partial({description:r.string,legacyPaths:r.record(f,l)})])),t.isStaticSharedSlice=function(n){return"SharedSlice"===n.type},t.isDynamicSharedSlice=function(n){return"SharedSlice"===n.type},t.traverseVariation=p,t.traverseSharedSlice=function(n){let t;let{path:e,slice:r,onField:u}=n;for(let n=0;n<r.variations.length;n++){let i=r.variations[n];if(!i)continue;let o=p({path:[...e,i.id],variation:i,onField:u});o!==i&&(t||(t=[...r.variations]),t[n]=o)}return t?{...r,variations:t}:r}},29377:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(78716);t.SharedSliceRef=r.exact(r.type({type:r.literal(u.SharedSliceType)}))},76098:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},23084:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(73045),i=e(46239);t.SlicePrimaryWidget=r.union([i.NestableWidget,u.Group]),t.isSlicePrimaryWidget=n=>i.NestableWidget.is(n)||u.Group.is(n)},8972:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=t.SlicesFieldType=t.LegacySlicesFieldType=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(11697),i=e(37581),o=e(73045),c=e(57191),a=e(7816),f=e(78716),l=e(29377);function p(n){return r.exact(r.partial({label:i.StringOrNull,labels:t.SlicesLabels,choices:r.record(u.WidgetKey,r.union([a.LegacySlice,c.CompositeSlice,n]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=r.union([r.record(r.string,r.readonlyArray(r.exact(r.intersection([r.type({name:r.string}),r.partial({display:r.string})])))),r.null]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(n,t){let e=Object.entries(n.choices||{}).reduce((n,[e,r])=>{if("SharedSlice"!==r.type)return{...n,[e]:r};{let r=t.get(e);return r?{...n,[e]:r}:n}},{});return{...n,choices:e}}};function s(n){return r.exact(r.intersection([r.type({type:r.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),r.partial({fieldset:i.StringOrNull,config:n})]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:d.toStatic(n.config,t)}:n},t.traverseSlices=function(n){var t;let e;let{path:r,slices:u,onField:i}=n;if(!(null===(t=u.config)||void 0===t?void 0:t.choices))return u;for(let[n,t]of Object.entries(u.config.choices)){let a;let l=[...r,n];switch(t.type){case"Slice":a=(0,c.traverseCompositeSlice)({path:l,slice:t,onField:i});break;case"SharedSlice":a="variations"in t?(0,f.traverseSharedSlice)({path:l,slice:t,onField:i}):t;break;case"Group":a=i({path:l,key:n,field:(0,o.traverseNestedGroup)({path:l,group:t,onField:i})});break;default:a=i({path:l,key:n,field:t})}a!==t&&(e||(e={...u.config.choices}),e[n]=a)}return e?{...u,config:{...u.config,choices:e}}:u}},37182:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,e(22970).__importStar)(e(87830)),u=e(57191),i=e(78716);t.SlicesTypes=r.keyof({[u.CompositeSliceType]:null,[i.SharedSliceType]:null})},66903:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(57191),t),(0,r.__exportStar)(e(7816),t),(0,r.__exportStar)(e(78716),t),(0,r.__exportStar)(e(29377),t),(0,r.__exportStar)(e(76098),t),(0,r.__exportStar)(e(23084),t),(0,r.__exportStar)(e(8972),t),(0,r.__exportStar)(e(37182),t)},72941:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(n,t){return n.reduce((n,e)=>{let r=t(e);return{...n,[r]:e}},{})}},77454:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830));t.zipObjects=function(n,t){return[...new Set(Object.keys(n||{}).concat(Object.keys(t||{})))].reduce((e,r)=>{let u=null==n?void 0:n[r],i=null==t?void 0:t[r];return{...e,[r]:{left:u,right:i}}},{})},t.isNotEmpty=function(n){return!!Object.keys(n).length},t.withOptionals=function(n,t){return{...n,...t.reduce((n,[t,e])=>e?{...n,[t]:e}:n,{})}};let o=i.record(i.string,i.unknown);t.isObject=function(n){return(0,u.isRight)(o.decode(n))},t.mapValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>({...n,[e]:t(r,e)}),{})}},68845:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=e(22970);t.HexaColorCode=(0,r.__importStar)(e(62754)),t.Arrays=(0,r.__importStar)(e(72941)),t.Objects=(0,r.__importStar)(e(77454))},42080:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=e(22970),u=e(9554),i=e(14632),o=(0,r.__importStar)(e(87830)),c=e(47320);t.String=(0,c.withCustomError)(o.string,()=>"The value must be a string"),t.StringOrNull=(0,c.withCustomError)(o.union([o.string,o.null]),()=>"The value must be a string or null"),t.Number=(0,c.withCustomError)(o.number,()=>"The value must be a number"),t.NumberOrNull=(0,c.withCustomError)(o.union([o.number,o.null]),()=>"The value must be a number or null"),t.Boolean=(0,c.withCustomError)(o.boolean,()=>"The value must be a boolean"),t.EmptyObject=o.UnknownRecord.pipe(new o.Type("emptyObject",n=>o.UnknownRecord.is(n),(n,t)=>Object.keys(n).length>0?o.failure(n,t,"The object is not empty."):o.success({}),o.identity)),t.EmptyArray=new o.Type("emptyArray",n=>o.UnknownArray.is(n)&&0===n.length,(n,t)=>(0,i.pipe)(o.UnknownArray.decode(n),u.either.chain(e=>e.length>0?o.failure(n,t,"The array is not empty."):o.success([]))),()=>[])},63323:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830)),c=e(37581);t.default=new o.Type("dateFromString",n=>n instanceof Date,(n,t)=>(0,i.pipe)(c.String.validate(n,t),(0,u.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.toISOString())},16905:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromStringOrNumber",n=>n instanceof Date,(n,t)=>(0,i.pipe)(o.union([o.number,o.string]).validate(n,t),(0,u.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n)},82175:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromTsMs",n=>n instanceof Date,(n,t)=>(0,i.pipe)(o.number.validate(n,t),(0,u.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.getTime())},9141:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=e(22970),u=e(87412),i=(0,r.__importStar)(e(87830)),o=e(42080);t.DefaultOrElse=n=>t=>new i.Type(`DefaultOrElse<${n.name}, ${t.name}>`,n=>null===n||t.is(n),(e,r)=>(0,u.isRight)(n.validate(e,r))?i.success(null):t.validate(e,r),n=>n?t.encode(n):void 0),t.NullOrElse=n=>(0,t.DefaultOrElse)(i.null)(n),t.EmptyObjectOrElse=n=>(0,t.DefaultOrElse)(o.EmptyObject)(n),t.EmptyArrayOrElse=n=>(0,t.DefaultOrElse)(o.EmptyArray)(n)},79312:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("IntFromNumber",o.Int.is,(n,t)=>(0,i.pipe)(o.number.validate(n,t),(0,u.chain)(n=>o.Int.is(n)?o.success(n):o.success(Math.round(n)))),o.Int.encode)},57288:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830)),c=/^([0-9]+)px$/;t.default=new o.Type("IntFromPixels",o.Int.is,(n,t)=>(0,i.pipe)(o.string.validate(n,t),(0,u.chain)(e=>{try{let r=e.match(c);if(!r)return o.failure(n,t);let u=parseInt(r[1]);return o.success(u)}catch{return o.failure(n,t)}})),String)},30487:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),u=e(47320);t.default=(0,u.withCustomError)((0,u.refineType)(r.string,"nonEmptyString",n=>n.trim().length>0),()=>"The value must be a non-empty string")},32514:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=e(87830),c=(0,r.__importDefault)(e(59941));t.default=new o.Type("nonEmptyStringOrNull",n=>"string"==typeof n||null===n,(n,t)=>(0,i.pipe)(c.default.validate(n,t),(0,u.chain)(n=>"string"==typeof n&&n.length>0?(0,o.success)(n):(0,o.success)(null))),n=>n)},63205:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),u=e(47320);t.default=(0,u.nullable)(r.number)},91776:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),u=e(42080);t.default=(n,t,e)=>u.Number.pipe(new r.Type("numberInRange",n=>u.Number.is(n),(u,i)=>u>t||u<n?r.failure(u,i,`${e} must be a number between ${n} and ${t}`):r.success(u),r.identity))},70453:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,i.pipe)(o.boolean.validate(n,t),(0,u.chain)(n=>o.success(n.toString()))),n=>n)},62161:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,i.pipe)(o.number.validate(n,t),(0,u.chain)(n=>o.success(n.toString()))),n=>n)},59941:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(87830)),u=e(47320);t.default=(0,u.nullable)(r.string)},38417:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(81878),i=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("TrimmedString",o.string.is,(n,t)=>(0,i.pipe)(o.string.validate(n,t),(0,u.chain)(n=>o.success(function(n){let t=0;for(;t<n.length&&n[t]<=" ";)t++;let e=n.length;for(;t<e&&n[e-1]<=" ";)e--;return n.substring(t,e)}(n)))),n=>n)},47320:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withCustomError=t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=e(22970),u=e(9554),i=e(42275),o=(0,r.__importStar)(e(87830)),c=e(23284),a=e(47361);t.nullable=function(n){return o.union([n,o.null,o.undefined])},t.refineType=function(n,t,e){return new o.Type(t,n.is,(t,r)=>(0,i.pipe)(n.validate(t,r),u.either.chain(n=>e(n)?o.success(n):o.failure(t,r))),n.encode)},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.grouped=function(n,t){return n.reduce((n,e,r)=>(r%t==0?n.push([e]):n[Math.floor(r/t)].push(e),n),[])},t.objectToMap=function(n){return new Map(Object.entries(n))},t.isEmpty=function(n){for(let t in n)return!1;return!0},t.addType=function(n,t){return(0,a.mapOutput)(n,n=>({...n,__TYPE__:t}))},t.withCustomError=function(n,t){return(0,c.withValidate)(n,(e,r)=>u.either.mapLeft(n=>n.find(n=>n.message)?n:[{value:e,context:r,message:t(e,r),actual:e}])(n.validate(e,r)))}},37581:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberRange=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=e(22970);(0,r.__exportStar)(e(42080),t);var u=e(63323);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var i=e(16905);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=e(82175);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),(0,r.__exportStar)(e(9141),t),t.Function=(0,r.__importStar)(e(47320));var c=e(79312);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var a=e(57288);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var f=e(30487);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(32514);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(63205);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(91776);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(70453);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=e(62161);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=e(59941);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},46111:function(n,t,e){e.r(t),e.d(t,{getApplicativeComposition:function(){return c},getApplicativeMonoid:function(){return o}});var r=e(42925),u=e(42275),i=e(67560);function o(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}}function c(n,t){var e=(0,i.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,u.pipe)(n,o(t))}}}},42925:function(n,t,e){e.r(t),e.d(t,{ap:function(){return i},apFirst:function(){return o},apS:function(){return a},apSecond:function(){return c},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=e(42275),u=e(97963);function i(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}}function o(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}}function c(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}}function a(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}}function f(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}}function l(n,t,e){return function(r){for(var u=Array(e.length+1),i=0;i<e.length;i++)u[i]=e[i];return u[e.length]=r,0===t?n.apply(null,u):l(n,t-1,u)}}var p={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(u){return[n,t,e,r,u]}}}}}};function d(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t.length,o=(u.e$.call(p,i)||(p[i]=l(r.tuple,i-1,[])),p[i]),c=n.map(t[0],o),a=1;a<i;a++)c=n.ap(c,t[a]);return c}}function s(n){return function(t){for(var e=Object.keys(t),r=e.length,u=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u}}};case 4:return function(t){return function(e){return function(r){return function(u){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i[n[3]]=u,i}}}};case 5:return function(t){return function(e){return function(r){return function(u){return function(i){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=u,o[n[4]]=i,o}}}}};default:return l(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var u={},i=0;i<t;i++)u[n[i]]=e[i];return u},t-1,[])}}(e),i=n.map(t[e[0]],u),o=1;o<r;o++)i=n.ap(i,t[e[o]]);return i}}},1358:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tY},Alternative:function(){return tz},Applicative:function(){return tN},Apply:function(){return tA},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t4},ChainRecDepthFirst:function(){return t3},Compactable:function(){return t$},Do:function(){return ef},Extend:function(){return tH},Filterable:function(){return tX},FilterableWithIndex:function(){return tJ},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return en},Functor:function(){return tW},FunctorWithIndex:function(){return tP},Monad:function(){return tK},Pointed:function(){return tU},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tR},Unfoldable:function(){return tG},Witherable:function(){return t7},Zero:function(){return tB},alt:function(){return to},altW:function(){return ti},ap:function(){return n2},apFirst:function(){return tL},apS:function(){return es},apSecond:function(){return tD},append:function(){return y},appendW:function(){return b},array:function(){return e_},bind:function(){return ed},bindTo:function(){return el},chain:function(){return eh},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t9},chainRecDepthFirst:function(){return t8},chainWithIndex:function(){return F},chop:function(){return n_},chunksOf:function(){return nR},compact:function(){return n4},comprehension:function(){return nT},concat:function(){return nM},concatW:function(){return nx},cons:function(){return eg},copy:function(){return nr},deleteAt:function(){return no},difference:function(){return nC},dropLeft:function(){return H},dropLeftWhile:function(){return X},dropRight:function(){return $},duplicate:function(){return tf},elem:function(){return ng},empty:function(){return ev},every:function(){return ei},exists:function(){return ec},extend:function(){return ta},filter:function(){return tn},filterE:function(){return t6},filterMap:function(){return n9},filterMapWithIndex:function(){return n3},filterWithIndex:function(){return tc},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return J},findLast:function(){return nn},findLastIndex:function(){return ne},findLastMap:function(){return nt},flap:function(){return tF},flatMap:function(){return n5},flatten:function(){return n7},foldLeft:function(){return C},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return W},fromEither:function(){return T},fromEitherK:function(){return et},fromOption:function(){return S},fromOptionK:function(){return nS},fromPredicate:function(){return R},getDifferenceMagma:function(){return tk},getEq:function(){return tM},getIntersectionSemigroup:function(){return tE},getMonoid:function(){return tx},getOrd:function(){return tO},getSemigroup:function(){return tT},getShow:function(){return tS},getUnionMonoid:function(){return tC},getUnionSemigroup:function(){return tw},guard:function(){return tV},head:function(){return N},init:function(){return K},insertAt:function(){return nu},intercalate:function(){return ea},intersection:function(){return nw},intersperse:function(){return nm},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return L},last:function(){return j},lefts:function(){return nl},let:function(){return ep},lookup:function(){return D},makeBy:function(){return _},map:function(){return n1},mapWithIndex:function(){return n8},match:function(){return M},matchLeft:function(){return w},matchLeftW:function(){return O},matchRight:function(){return k},matchRightW:function(){return E},matchW:function(){return x},modifyAt:function(){return nc},of:function(){return nQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return tu},partitionWithIndex:function(){return te},prepend:function(){return v},prependAll:function(){return nh},prependToAll:function(){return eb},prependW:function(){return g},range:function(){return em},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return tm},reduceWithIndex:function(){return ts},replicate:function(){return I},reverse:function(){return na},rights:function(){return nf},rotate:function(){return nv},scanLeft:function(){return U},scanRight:function(){return P},separate:function(){return n6},sequence:function(){return tg},size:function(){return A},snoc:function(){return ey},some:function(){return eo},sort:function(){return np},sortBy:function(){return nb},spanLeft:function(){return z},splitAt:function(){return nI},tail:function(){return q},takeLeft:function(){return G},takeLeftWhile:function(){return B},takeRight:function(){return Y},traverse:function(){return tv},traverseWithIndex:function(){return ty},unfold:function(){return tI},union:function(){return nO},uniq:function(){return ny},unsafeDeleteAt:function(){return eu},unsafeInsertAt:function(){return ee},unsafeUpdateAt:function(){return er},unzip:function(){return ns},updateAt:function(){return ni},wilt:function(){return t_},wither:function(){return tb},zero:function(){return n0},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:nd(t,e,function(n,t){return[n,t]})}},zipWith:function(){return nd}});var r=e(42925),u=e(88543),i=e(25162),o=e(42275),c=e(67560),a=e(97963),f=e(43586),l=e(31583),p=e(34219),d=e(76511),s=e(28957),h=function(n){return 0===n.length},m=f.isNonEmpty,v=f.prepend,g=f.prependW,y=f.append,b=f.appendW,_=function(n,t){return n<=0?[]:f.makeBy(t)(n)},I=function(n,t){return _(n,function(){return t})};function R(n){return function(t){return n(t)?[t]:[]}}var S=function(n){return a.Wi(n)?[]:[n.value]},T=function(n){return a.nM(n)?[]:[n.right]},x=function(n,t){return function(e){return m(e)?t(e):n()}},M=x,O=function(n,t){return function(e){return m(e)?t(f.head(e),f.tail(e)):n()}},w=O,C=w,E=function(n,t){return function(e){return m(e)?t(f.init(e),f.last(e)):n()}},k=E,W=k,F=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},U=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[0]=n;for(var i=0;i<r;i++)u[i+1]=t(u[i],e[i]);return u}},P=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[r]=n;for(var i=r-1;i>=0;i--)u[i]=t(e[i],u[i+1]);return u}},A=function(n){return n.length},L=f.isOutOfBound,D=l.lookup,N=l.head,j=l.last,q=function(n){return m(n)?a.G(f.tail(n)):a.YP},K=function(n){return m(n)?a.G(f.init(n)):a.YP},G=function(n){return function(t){return L(n,t)?nr(t):t.slice(0,n)}},Y=function(n){return function(t){return L(n,t)?nr(t):0===n?[]:t.slice(-n)}};function B(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=t[r];if(!n(u))break;e.push(u)}return e}}var V=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function z(n){return function(t){var e=nI(V(t,n))(t);return{init:e[0],rest:e[1]}}}var H=function(n){return function(t){return n<=0||h(t)?nr(t):n>=t.length?[]:t.slice(n,t.length)}},$=function(n){return function(t){return n<=0||h(t)?nr(t):n>=t.length?[]:t.slice(0,t.length-n)}};function X(n){return function(t){return t.slice(V(t,n))}}var J=l.findIndex;function Z(n){return l.findFirst(n)}var Q=l.findFirstMap;function nn(n){return l.findLast(n)}var nt=l.findLastMap,ne=l.findLastIndex,nr=function(n){return n.slice()},nu=function(n,t){return function(e){return n<0||n>e.length?a.YP:a.G(ee(n,t,e))}},ni=function(n,t){return nc(n,function(){return t})},no=function(n){return function(t){return L(n,t)?a.YP:a.G(eu(n,t))}},nc=function(n,t){return function(e){return L(n,e)?a.YP:a.G(er(n,t(e[n]),e))}},na=function(n){return h(n)?[]:n.slice().reverse()},nf=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},np=function(n){return function(t){return t.length<=1?nr(t):t.slice().sort(n.compare)}},nd=function(n,t,e){for(var r=[],u=Math.min(n.length,t.length),i=0;i<u;i++)r[i]=e(n[i],t[i]);return r},ns=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nh=function(n){var t=f.prependAll(n);return function(n){return m(n)?t(n):[]}},nm=function(n){var t=f.intersperse(n);return function(n){return m(n)?t(n):nr(n)}},nv=function(n){var t=f.rotate(n);return function(n){return m(n)?t(n):nr(n)}},ng=l.elem,ny=function(n){var t=f.uniq(n);return function(n){return m(n)?t(n):nr(n)}},nb=function(n){var t=f.sortBy(n);return function(n){return m(n)?t(n):nr(n)}},n_=function(n){var t=f.chop(n);return function(n){return m(n)?t(n):[]}},nI=function(n){return function(t){return n>=1&&m(t)?f.splitAt(n)(t):h(t)?[nr(t),[]]:[[],nr(t)]}},nR=function(n){var t=f.chunksOf(n);return function(n){return m(n)?t(n):[]}},nS=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(n.apply(void 0,t))}};function nT(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,u){return m(u)?n5(f.head(u),function(t){return r((0,o.pipe)(n,y(t)),f.tail(u))}):e.apply(void 0,n)?[t.apply(void 0,n)]:[]};return r([],n)}var nx=function(n){return function(t){return h(t)?nr(n):h(n)?nr(t):t.concat(n)}},nM=nx;function nO(n){var t=f.union(n);return function(e,r){if(void 0===r){var u=nO(n);return function(n){return u(n,e)}}return m(e)&&m(r)?t(r)(e):m(e)?nr(e):nr(r)}}function nw(n){var t=ng(n);return function(e,r){if(void 0===r){var u=nw(n);return function(n){return u(n,e)}}return e.filter(function(n){return t(n,r)})}}function nC(n){var t=ng(n);return function(e,r){if(void 0===r){var u=nC(n);return function(n){return u(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nE=function(n,t){return(0,o.pipe)(n,n1(t))},nk=function(n,t){return(0,o.pipe)(n,n8(t))},nW=function(n,t){return(0,o.pipe)(n,n2(t))},nF=function(n,t){return(0,o.pipe)(n,tn(t))},nU=function(n,t){return(0,o.pipe)(n,n9(t))},nP=function(n,t){return(0,o.pipe)(n,tt(t))},nA=function(n,t){return(0,o.pipe)(n,tr(t))},nL=function(n,t){return(0,o.pipe)(n,te(t))},nD=function(n,t){return(0,o.pipe)(n,tu(t))},nN=function(n,t){return(0,o.pipe)(n,to(t))},nj=function(n,t,e){return(0,o.pipe)(n,td(t,e))},nq=function(n){var t=tl(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nK=function(n,t,e){return(0,o.pipe)(n,th(t,e))},nG=function(n,t,e){return(0,o.pipe)(n,ts(t,e))},nY=function(n){var t=tp(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nB=function(n,t,e){return(0,o.pipe)(n,tm(t,e))},nV=function(n,t){return(0,o.pipe)(n,n3(t))},nz=function(n,t){return(0,o.pipe)(n,tc(t))},nH=function(n,t){return(0,o.pipe)(n,ta(t))},n$=function(n){var t=tv(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nX=function(n){var t=ty(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nJ=l._chainRecDepthFirst,nZ=l._chainRecBreadthFirst,nQ=f.of,n0=function(){return[]},n1=function(n){return function(t){return t.map(function(t){return n(t)})}},n2=function(n){return n5(function(t){return(0,o.pipe)(n,n1(t))})},n5=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,F(function(n,e){return t(e,n)}))}),n7=n5(o.identity),n8=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n3=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=n(r,t[r]);a.pC(u)&&e.push(u.value)}return e}},n9=function(n){return n3(function(t,e){return n(e)})},n4=n9(o.identity),n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var u=n[r];"Left"===u._tag?t.push(u.left):e.push(u.right)}return(0,p.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return te(function(t,e){return n(e)})},te=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=t[u];n(u,i)?r.push(i):e.push(i)}return(0,p.separated)(e,r)}},tr=function(n){return tu(function(t,e){return n(e)})},tu=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=n(u,t[u]);"Left"===i._tag?e.push(i.left):r.push(i.right)}return(0,p.separated)(e,r)}},ti=function(n){return function(t){return t.concat(n())}},to=ti,tc=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},ta=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tf=ta(o.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,th=l.reduceRight,tm=l.reduceRightWithIndex,tv=function(n){var t=ty(n);return function(n){return t(function(t,e){return n(e)})}},tg=function(n){return function(t){return nj(t,n.of(n0()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),e)})}},ty=function(n){return function(t){return ts(n.of(n0()),function(e,r,u){return n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(e,u))})}},tb=function(n){var t=t2(n);return function(n){return function(e){return t(e,n)}}},t_=function(n){var t=t5(n);return function(n){return function(e){return t(e,n)}}},tI=function(n,t){for(var e=[],r=n;;){var u=t(r);if(a.pC(u)){var i=u.value,o=i[0],c=i[1];e.push(o),r=c}else break}return e},tR="Array",tS=l.getShow,tT=function(){return{concat:function(n,t){return n.concat(t)}}},tx=function(){return{concat:tT().concat,empty:[]}},tM=l.getEq,tO=l.getOrd,tw=function(n){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}},tC=function(n){return{concat:tw(n).concat,empty:[]}},tE=function(n){var t=nw(n);return{concat:function(n,e){return t(e)(n)}}},tk=function(n){var t=nC(n);return{concat:function(n,e){return t(e)(n)}}},tW={URI:tR,map:nE},tF=(0,c.flap)(tW),tU={URI:tR,of:nQ},tP={URI:tR,map:nE,mapWithIndex:nk},tA={URI:tR,map:nE,ap:nW},tL=(0,r.apFirst)(tA),tD=(0,r.apSecond)(tA),tN={URI:tR,map:nE,ap:nW,of:nQ},tj={URI:tR,map:nE,ap:nW,chain:n5},tq=(0,u.chainFirst)(tj),tK={URI:tR,map:nE,ap:nW,of:nQ,chain:n5},tG={URI:tR,unfold:tI},tY={URI:tR,map:nE,alt:nN},tB={URI:tR,zero:n0},tV=(0,s.guard)(tB,tU),tz={URI:tR,map:nE,ap:nW,of:nQ,alt:nN,zero:n0},tH={URI:tR,map:nE,extend:nH},t$={URI:tR,compact:n4,separate:n6},tX={URI:tR,map:nE,compact:n4,separate:n6,filter:nF,filterMap:nU,partition:nP,partitionMap:nA},tJ={URI:tR,map:nE,mapWithIndex:nk,compact:n4,separate:n6,filter:nF,filterMap:nU,partition:nP,partitionMap:nA,partitionMapWithIndex:nD,partitionWithIndex:nL,filterMapWithIndex:nV,filterWithIndex:nz},tZ={URI:tR,reduce:nj,foldMap:nq,reduceRight:nK},tQ={URI:tR,reduce:nj,foldMap:nq,reduceRight:nK,reduceWithIndex:nG,foldMapWithIndex:nY,reduceRightWithIndex:nB},t0={URI:tR,map:nE,reduce:nj,foldMap:nq,reduceRight:nK,traverse:n$,sequence:tg},t1={URI:tR,map:nE,mapWithIndex:nk,reduce:nj,foldMap:nq,reduceRight:nK,reduceWithIndex:nG,foldMapWithIndex:nY,reduceRightWithIndex:nB,traverse:n$,sequence:tg,traverseWithIndex:nX},t2=(0,d.witherDefault)(t0,t$),t5=(0,d.wiltDefault)(t0,t$),t7={URI:tR,map:nE,compact:n4,separate:n6,filter:nF,filterMap:nU,partition:nP,partitionMap:nA,reduce:nj,foldMap:nq,reduceRight:nK,traverse:n$,sequence:tg,wither:t2,wilt:t5},t8=l.chainRecDepthFirst,t3={URI:tR,map:nE,ap:nW,chain:n5,chainRec:nJ},t9=l.chainRecBreadthFirst,t4={URI:tR,map:nE,ap:nW,chain:n5,chainRec:nZ},t6=(0,d.filterE)(t7),en={URI:tR,fromEither:T},et=(0,i.fromEitherK)(en),ee=f.unsafeInsertAt,er=function(n,t,e){return m(e)?f.unsafeUpdateAt(n,t,e):[]},eu=function(n,t){var e=t.slice();return e.splice(n,1),e},ei=l.every,eo=function(n){return function(t){return t.some(n)}},ec=eo,ea=l.intercalate,ef=nQ(a.F4),el=(0,c.bindTo)(tW),ep=(0,c.let)(tW),ed=(0,u.bind)(tj),es=(0,r.apS)(tA),eh=n5,em=f.range,ev=[],eg=f.cons,ey=f.snoc,eb=nh,e_={URI:tR,compact:n4,separate:n6,map:nE,ap:nW,of:nQ,chain:n5,filter:nF,filterMap:nU,partition:nP,partitionMap:nA,mapWithIndex:nk,partitionMapWithIndex:nD,partitionWithIndex:nL,filterMapWithIndex:nV,filterWithIndex:nz,alt:nN,zero:n0,unfold:tI,reduce:nj,foldMap:nq,reduceRight:nK,traverse:n$,sequence:tg,reduceWithIndex:nG,foldMapWithIndex:nY,reduceRightWithIndex:nB,traverseWithIndex:nX,extend:nH,wither:t2,wilt:t5}},88543:function(n,t,e){function r(n){var t=u(n);return function(n){return function(e){return t(e,n)}}}function u(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}function i(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}e.r(t),e.d(t,{bind:function(){return i},chainFirst:function(){return r},tap:function(){return u}})},56661:function(n,t,e){e.r(t),e.d(t,{tailRec:function(){return r}});var r=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},90817:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return E},Contravariant:function(){return C},Functor:function(){return O},URI:function(){return M},bimap:function(){return T},const_:function(){return k},contramap:function(){return R},flap:function(){return w},getApplicative:function(){return g},getApply:function(){return v},getBooleanAlgebra:function(){return m},getBounded:function(){return f},getEq:function(){return c},getHeytingAlgebra:function(){return h},getMonoid:function(){return p},getOrd:function(){return a},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return o},make:function(){return i},map:function(){return S},mapLeft:function(){return x}});var r=e(42275),u=e(67560),i=r.unsafeCoerce;function o(n){return{show:function(t){return"make(".concat(n.show(t),")")}}}var c=r.identity,a=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,h=r.identity,m=r.identity;function v(n){return{URI:M,_E:void 0,map:b,ap:function(t,e){return i(n.concat(t,e))}}}function g(n){var t=v(n);return{URI:M,_E:void 0,map:t.map,ap:t.ap,of:function(){return i(n.empty)}}}var y=function(n,t){return(0,r.pipe)(n,R(t))},b=function(n,t){return(0,r.pipe)(n,S(t))},_=function(n,t,e){return(0,r.pipe)(n,T(t,e))},I=function(n,t){return(0,r.pipe)(n,x(t))},R=function(){return r.unsafeCoerce},S=function(){return r.unsafeCoerce},T=function(n){return function(t){return i(n(t))}},x=function(n){return function(t){return i(n(t))}},M="Const",O={URI:M,map:b},w=(0,u.flap)(O),C={URI:M,contramap:y},E={URI:M,bimap:_,mapLeft:I},k={URI:M,map:b,contramap:y,bimap:_,mapLeft:I}},81878:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return no},ApT:function(){return n9},Applicative:function(){return B},Apply:function(){return Y},Bifunctor:function(){return nr},Chain:function(){return V},ChainRec:function(){return nf},Do:function(){return n0},Extend:function(){return na},Foldable:function(){return J},FromEither:function(){return nd},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return np},Pointed:function(){return q},Traversable:function(){return nn},URI:function(){return O},alt:function(){return ni},altW:function(){return nu},ap:function(){return G},apFirst:function(){return nT},apFirstW:function(){return nx},apS:function(){return n8},apSW:function(){return n3},apSecond:function(){return nM},apSecondW:function(){return nO},apW:function(){return K},as:function(){return D},asUnit:function(){return N},bimap:function(){return nt},bind:function(){return n5},bindTo:function(){return n1},bindW:function(){return n7},chain:function(){return tu},chainFirst:function(){return ti},chainFirstW:function(){return to},chainNullableK:function(){return nX},chainOptionK:function(){return nF},chainOptionKW:function(){return nU},chainW:function(){return tr},duplicate:function(){return nk},either:function(){return tf},elem:function(){return function n(t){return function(e,r){if(void 0===r){var u=n(t);return function(n){return u(e,n)}}return!nm(r)&&t.equals(e,r.right)}}},exists:function(){return nQ},extend:function(){return nc},filterOrElse:function(){return nq},filterOrElseW:function(){return nK},flap:function(){return nS},flatMap:function(){return m},flatMapNullable:function(){return nN},flatMapOption:function(){return nj},flatten:function(){return nE},flattenW:function(){return nC},fold:function(){return n_},foldMap:function(){return $},foldW:function(){return ny},fromNullable:function(){return nV},fromNullableK:function(){return n$},fromOption:function(){return nh},fromOptionK:function(){return nW},fromPredicate:function(){return ns},getAltValidation:function(){return P},getApplicativeValidation:function(){return U},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return k},getEq:function(){return C},getFilterable:function(){return W},getOrElse:function(){return nR},getOrElseW:function(){return nI},getSemigroup:function(){return E},getShow:function(){return w},getValidation:function(){return th},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return F},isLeft:function(){return nm},isRight:function(){return nv},left:function(){return s},let:function(){return n2},liftNullable:function(){return nA},liftOption:function(){return nL},map:function(){return A},mapLeft:function(){return ne},match:function(){return nb},matchW:function(){return ng},of:function(){return j},orElse:function(){return nB},orElseW:function(){return nY},parseJSON:function(){return tc},reduce:function(){return H},reduceRight:function(){return X},right:function(){return h},sequence:function(){return Q},sequenceArray:function(){return te},stringifyJSON:function(){return ta},swap:function(){return nG},tap:function(){return nw},throwError:function(){return nl},toError:function(){return nZ},toUnion:function(){return nJ},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n4},tryCatch:function(){return nz},tryCatchK:function(){return nH}});var r=e(46111),u=e(42925),i=e(88543),o=e(56661),c=e(25162),a=e(42275),f=e(67560),l=e(97963),p=e(34219),d=e(76511),s=l.t$,h=l.F2,m=(0,a.dual)(2,function(n,t){return nm(n)?n:t(n.right)}),v=function(n,t){return(0,a.pipe)(n,A(t))},g=function(n,t){return(0,a.pipe)(n,G(t))},y=function(n,t,e){return(0,a.pipe)(n,H(t,e))},b=function(n){return function(t,e){var r=$(n);return(0,a.pipe)(t,r(e))}},_=function(n,t,e){return(0,a.pipe)(n,X(t,e))},I=function(n){var t=Z(n);return function(n,e){return(0,a.pipe)(n,t(e))}},R=function(n,t,e){return(0,a.pipe)(n,nt(t,e))},S=function(n,t){return(0,a.pipe)(n,ne(t))},T=function(n,t){return(0,a.pipe)(n,ni(t))},x=function(n,t){return(0,a.pipe)(n,nc(t))},M=function(n,t){return(0,o.tailRec)(t(n),function(n){return nm(n)?h(s(n.left)):nm(n.right)?s(t(n.right.left)):h(h(n.right.right))})},O="Either",w=function(n,t){return{show:function(e){return nm(e)?"left(".concat(n.show(e.left),")"):"right(".concat(t.show(e.right),")")}}},C=function(n,t){return{equals:function(e,r){return e===r||(nm(e)?nm(r)&&n.equals(e.left,r.left):nv(r)&&t.equals(e.right,r.right))}}},E=function(n){return{concat:function(t,e){return nm(e)?t:nm(t)?e:h(n.concat(t.right,e.right))}}},k=function(n){var t=s(n.empty);return{URI:O,_E:void 0,compact:function(n){return nm(n)?n:"None"===n.right._tag?t:h(n.right.value)},separate:function(n){return nm(n)?(0,p.separated)(n,n):nm(n.right)?(0,p.separated)(h(n.right.left),t):(0,p.separated)(t,h(n.right.right))}}},W=function(n){var t=s(n.empty),e=k(n);return{URI:O,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:function(n,e){return nm(n)?n:e(n.right)?n:t},filterMap:function(n,e){if(nm(n))return n;var r=e(n.right);return"None"===r._tag?t:h(r.value)},partition:function(n,e){return nm(n)?(0,p.separated)(n,n):e(n.right)?(0,p.separated)(t,h(n.right)):(0,p.separated)(h(n.right),t)},partitionMap:function(n,e){if(nm(n))return(0,p.separated)(n,n);var r=e(n.right);return nm(r)?(0,p.separated)(h(r.left),t):(0,p.separated)(t,h(r.right))}}},F=function(n){var t=W(n),e=k(n);return{URI:O,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:I,sequence:Q,reduce:y,foldMap:b,reduceRight:_,wither:(0,d.witherDefault)(nn,e),wilt:(0,d.wiltDefault)(nn,e)}},U=function(n){return{URI:O,_E:void 0,map:v,ap:function(t,e){return nm(t)?nm(e)?s(n.concat(t.left,e.left)):t:nm(e)?e:h(t.right(e.right))},of:j}},P=function(n){return{URI:O,_E:void 0,map:v,alt:function(t,e){if(nv(t))return t;var r=e();return nm(r)?s(n.concat(t.left,r.left)):r}}},A=function(n){return function(t){return nm(t)?t:h(n(t.right))}},L={URI:O,map:v},D=(0,a.dual)(2,(0,f.as)(L)),N=(0,f.asUnit)(L),j=h,q={URI:O,of:j},K=function(n){return function(t){return nm(t)?t:nm(n)?n:h(t.right(n.right))}},G=K,Y={URI:O,map:v,ap:g},B={URI:O,map:v,ap:g,of:j},V={URI:O,map:v,ap:g,chain:m},z={URI:O,map:v,ap:g,of:j,chain:m},H=function(n,t){return function(e){return nm(e)?n:t(n,e.right)}},$=function(n){return function(t){return function(e){return nm(e)?n.empty:t(e.right)}}},X=function(n,t){return function(e){return nm(e)?n:t(e.right,n)}},J={URI:O,reduce:y,foldMap:b,reduceRight:_},Z=function(n){return function(t){return function(e){return nm(e)?n.of(s(e.left)):n.map(t(e.right),h)}}},Q=function(n){return function(t){return nm(t)?n.of(s(t.left)):n.map(t.right,h)}},nn={URI:O,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q},nt=function(n,t){return function(e){return nm(e)?s(n(e.left)):h(t(e.right))}},ne=function(n){return function(t){return nm(t)?s(n(t.left)):t}},nr={URI:O,bimap:R,mapLeft:S},nu=function(n){return function(t){return nm(t)?n():t}},ni=nu,no={URI:O,map:v,alt:T},nc=function(n){return function(t){return nm(t)?t:h(n(t))}},na={URI:O,map:v,extend:x},nf={URI:O,map:v,ap:g,chain:m,chainRec:M},nl=s,np={URI:O,map:v,ap:g,of:j,chain:m,throwError:nl},nd={URI:O,fromEither:a.identity},ns=(0,c.fromPredicate)(nd),nh=(0,c.fromOption)(nd),nm=l.nM,nv=l.tO,ng=function(n,t){return function(e){return nm(e)?n(e.left):t(e.right)}},ny=ng,nb=ng,n_=nb,nI=function(n){return function(t){return nm(t)?n(t.left):t.right}},nR=nI,nS=(0,f.flap)(L),nT=(0,u.apFirst)(Y),nx=nT,nM=(0,u.apSecond)(Y),nO=nM,nw=(0,a.dual)(2,i.tap(V)),nC=m(a.identity),nE=nC,nk=nc(a.identity),nW=(0,c.fromOptionK)(nd),nF=(0,c.chainOptionK)(nd,V),nU=nF,nP={fromEither:nd.fromEither},nA=l.uL(nP),nL=l.WE(nP),nD={flatMap:m},nN=l.ny(nP,nD),nj=l.hU(nP,nD),nq=(0,c.filterOrElse)(nd,V),nK=nq,nG=function(n){return nm(n)?h(n.left):s(n.right)},nY=function(n){return function(t){return nm(t)?n(t.left):t}},nB=nY,nV=function(n){return function(t){return null==t?s(n):h(t)}},nz=function(n,t){try{return h(n())}catch(n){return s(t(n))}},nH=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return nz(function(){return n.apply(void 0,e)},t)}},n$=function(n){var t=nV(n);return function(n){return(0,a.flow)(n,t)}},nX=function(n){var t=n$(n);return function(n){return m(t(n))}},nJ=ny(a.identity,a.identity);function nZ(n){return n instanceof Error?n:Error(String(n))}var nQ=function(n){return function(t){return!nm(t)&&n(t.right)}},n0=j(l.F4),n1=(0,f.bindTo)(L),n2=(0,f.let)(L),n5=i.bind(V),n7=n5,n8=(0,u.apS)(Y),n3=n8,n9=j(l.Xl),n4=function(n){return function(t){var e=n(0,l.YM(t));if(nm(e))return e;for(var r=[e.right],u=1;u<t.length;u++){var i=n(u,t[u]);if(nm(i))return i;r.push(i.right)}return h(r)}},n6=function(n){var t=n4(n);return function(n){return l.Od(n)?t(n):n9}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(a.identity),tr=m,tu=m,ti=nw,to=nw;function tc(n,t){return nz(function(){return JSON.parse(n)},t)}var ta=function(n,t){return nz(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:O,map:v,of:j,ap:g,chain:m,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:M,throwError:nl},tl=(0,u.getApplySemigroup)(Y),tp=(0,r.getApplicativeMonoid)(B),td=function(n,t){return(0,u.getApplySemigroup)(U(n))(t)},ts=function(n,t){return(0,r.getApplicativeMonoid)(U(n))(t)};function th(n){return{URI:O,_E:void 0,map:v,of:j,chain:m,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:Q,chainRec:M,throwError:nl,ap:U(n).ap,alt:P(n).alt}}},47797:function(n,t,e){e.r(t),e.d(t,{URI:function(){return u},getMonoid:function(){return o},getSemigroup:function(){return i}});var r=e(42275),u="Endomorphism",i=function(){return{concat:function(n,t){return(0,r.flow)(n,t)}}},o=function(){return{concat:i().concat,empty:r.identity}}},65191:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return a},contramap:function(){return c},eq:function(){return g},eqBoolean:function(){return y},eqDate:function(){return I},eqNumber:function(){return _},eqStrict:function(){return f},eqString:function(){return b},fromEquals:function(){return u},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return m},getTupleEq:function(){return h},strictEqual:function(){return v},struct:function(){return i},tuple:function(){return o}});var r=e(42275),u=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},i=function(n){return u(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},o=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return u(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},c=function(n){return function(t){return u(function(e,r){return t.equals(n(e),n(r))})}},a="Eq",f={equals:function(n,t){return n===t}},l={equals:function(){return!0}},p=function(){return{concat:function(n,t){return u(function(e,r){return n.equals(e,r)&&t.equals(e,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:a,contramap:function(n,t){return(0,r.pipe)(n,c(t))}},h=o,m=i,v=f.equals,g=s,y=f,b=f,_=f,I={equals:function(n,t){return n.valueOf()===t.valueOf()}}},25162:function(n,t,e){e.r(t),e.d(t,{chainEitherK:function(){return p},chainFirstEitherK:function(){return d},chainOptionK:function(){return f},filterOrElse:function(){return s},fromEitherK:function(){return l},fromOption:function(){return o},fromOptionK:function(){return a},fromPredicate:function(){return c},tapEither:function(){return h}});var r=e(88543),u=e(42275),i=e(97963);function o(n){return function(t){return function(e){return n.fromEither(i.Wi(e)?i.t$(t()):i.F2(e.value))}}}function c(n){return function(t,e){return function(r){return n.fromEither(t(r)?i.F2(r):i.t$(e(r)))}}}function a(n){var t=o(n);return function(n){var e=t(n);return function(n){return(0,u.flow)(n,e)}}}function f(n,t){var e=a(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}}function l(n){return function(t){return(0,u.flow)(t,n.fromEither)}}function p(n,t){var e=l(n);return function(n){return function(r){return t.chain(r,e(n))}}}function d(n,t){var e=h(n,t);return function(n){return function(t){return e(t,n)}}}function s(n,t){return function(e,r){return function(u){return t.chain(u,function(t){return n.fromEither(e(t)?i.F2(t):i.t$(r(t)))})}}}function h(n,t){var e=l(n),u=(0,r.tap)(t);return function(n,t){return u(n,e(t))}}},67560:function(n,t,e){e.r(t),e.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return i},getFunctorComposition:function(){return a},let:function(){return c},map:function(){return u}});var r=e(42275);function u(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function i(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}}function o(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}}function c(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}}function a(n,t){var e=u(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}}function f(n){return function(t,e){return n.map(t,function(){return e})}}function l(n){var t=f(n);return function(n){return t(n,void 0)}}},76113:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return c},endo:function(){return o},filterFirst:function(){return u},filterSecond:function(){return i},reverse:function(){return r}});var r=function(n){return{concat:function(t,e){return n.concat(e,t)}}},u=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},i=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},o=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},c=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},55116:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nb},Filterable:function(){return n_},Functor:function(){return ng},URI:function(){return nt},collect:function(){return y},compact:function(){return z},deleteAt:function(){return R},difference:function(){return nT},elem:function(){return m},empty:function(){return nx},filter:function(){return H},filterMap:function(){return $},filterMapWithIndex:function(){return A},filterWithIndex:function(){return L},flap:function(){return ny},foldMap:function(){return nf},foldMapWithIndex:function(){return ns},fromFoldable:function(){return W},getDifferenceMagma:function(){return ni},getEq:function(){return C},getFilterableWithIndex:function(){return no},getFoldable:function(){return np},getFoldableWithIndex:function(){return nm},getIntersectionSemigroup:function(){return nu},getMonoid:function(){return E},getShow:function(){return p},getTraversableWithIndex:function(){return nv},getUnionMonoid:function(){return nr},getUnionSemigroup:function(){return ne},getWitherable:function(){return nc},insertAt:function(){return nM},intersection:function(){return nS},isEmpty:function(){return s},isSubmap:function(){return w},keys:function(){return v},lookup:function(){return O},lookupWithKey:function(){return M},map:function(){return X},mapWithIndex:function(){return J},map_:function(){return nO},member:function(){return h},modifyAt:function(){return T},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return U},partitionWithIndex:function(){return P},pop:function(){return x},reduce:function(){return na},reduceRight:function(){return nl},reduceRightWithIndex:function(){return nh},reduceWithIndex:function(){return nd},separate:function(){return nn},singleton:function(){return k},size:function(){return d},toArray:function(){return b},toUnfoldable:function(){return _},union:function(){return nR},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(42275),u=e(67560),i=e(97963),o=e(20492),c=e(13512),a=e(34219),f=e(76511),l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},p=c.getShow,d=c.size,s=c.isEmpty,h=c.member,m=c.elem,v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],u=t(e),i=0;i<u.length;i++){var o=u[i];r.push(n(o,e.get(o)))}return r}}}function b(n){return y(n)(function(n,t){return[n,t]})}function _(n,t){var e=b(n);return function(n){var r=e(n),u=r.length;return t.unfold(0,function(n){return n<u?i.G([r[n],n+1]):i.YP})}}var I=function(n){var t=M(n);return function(n,e){var r=t(n);return function(t){var u=r(t);if(i.Wi(u)){var o=new Map(t);return o.set(n,e),o}if(u.value[1]!==e){var o=new Map(t);return o.set(u.value[0],e),o}return t}}},R=function(n){var t=M(n);return function(n){return function(e){var r=t(n,e);if(i.pC(r)){var u=new Map(e);return u.delete(r.value[0]),u}return e}}},S=function(n){var t=T(n);return function(n,e){return t(n,function(){return e})}},T=function(n){var t=M(n);return function(n,e){return function(r){var u=t(n,r);if(i.Wi(u))return i.YP;var o=new Map(r);return o.set(u.value[0],e(u.value[1])),i.G(o)}}};function x(n){var t=O(n),e=R(n);return function(n){var u=e(n);return function(e){return(0,r.pipe)(t(n,e),o.map(function(n){return[n,u(e)]}))}}}function M(n){return function(t,e){if(void 0===e){var r,u=M(n);return function(n){return u(t,n)}}for(var o=e.entries();!(r=o.next()).done;){var c=r.value,a=c[0],f=c[1];if(n.equals(a,t))return i.G([a,f])}return i.YP}}var O=c.lookup,w=c.isSubmap,C=c.getEq;function E(n,t){var e=M(n);return{concat:function(n,r){if(s(n))return r;if(s(r))return n;for(var u,o=new Map(n),c=r.entries();!(u=c.next()).done;){var a=u.value,f=a[0],l=a[1],p=e(f,n);i.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:new Map}}var k=function(n,t){return new Map([[n,t]])};function W(n,t,e){return function(r){var u=M(n);return e.reduce(r,new Map,function(n,e){var r=e[0],o=e[1],c=u(r,n);return i.pC(c)?n.set(c.value[0],t.concat(c.value[1],o)):n.set(r,o),n})}}var F=function(n,t){for(var e,r=new Map,u=n.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];r.set(o,t(o,c))}return r},U=function(n){return function(t){for(var e,r=new Map,u=new Map,o=t.entries();!(e=o.next()).done;){var c=e.value,f=c[0],l=n(f,c[1]);i.nM(l)?r.set(f,l.left):u.set(f,l.right)}return(0,a.separated)(r,u)}};function P(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,c=o[0],f=o[1];n(c,f)?u.set(c,f):r.set(c,f)}return(0,a.separated)(r,u)}}var A=function(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,c=o[0],a=n(c,o[1]);i.pC(a)&&r.set(c,a.value)}return r}};function L(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];n(o,c)&&r.set(o,c)}return r}}var D=function(n,t){return F(n,function(n,e){return t(e)})},N=function(n,t){return G(n,function(n,e){return t(e)})},j=function(n,t){return Y(n,function(n,e){return t(e)})},q=function(n,t){return B(n,function(n,e){return t(e)})},K=function(n,t){return V(n,function(n,e){return t(e)})},G=function(n,t){return(0,r.pipe)(n,L(t))},Y=function(n,t){return(0,r.pipe)(n,A(t))},B=function(n,t){return(0,r.pipe)(n,P(t))},V=function(n,t){return(0,r.pipe)(n,U(t))},z=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var u=t.value,o=u[0],c=u[1];i.pC(c)&&e.set(o,c.value)}return e},H=function(n){return function(t){return N(t,n)}},$=function(n){return function(t){return j(t,n)}},X=function(n){return function(t){return D(t,n)}},J=function(n){return function(t){return F(t,n)}},Z=function(n){return function(t){return q(t,n)}},Q=function(n){return function(t){return K(t,n)}},nn=function(n){for(var t,e=new Map,r=new Map,u=n.entries();!(t=u.next()).done;){var o=t.value,c=o[0],f=o[1];i.nM(f)?e.set(c,f.left):r.set(c,f.right)}return(0,a.separated)(e,r)},nt="Map",ne=function(n,t){var e=nR(n,t);return{concat:function(n,t){return e(t)(n)}}},nr=function(n,t){return{concat:ne(n,t).concat,empty:new Map}},nu=function(n,t){var e=nS(n,t);return{concat:function(n,t){return e(t)(n)}}},ni=function(n){return function(){var t=nT(n);return{concat:function(n,e){return t(e)(n)}}}};function no(){return{URI:nt,_E:void 0,map:D,mapWithIndex:F,compact:z,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:K,partitionMapWithIndex:V,partitionWithIndex:B,filterMapWithIndex:Y,filterWithIndex:G}}function nc(n){var t=nv(n);return{URI:nt,_E:void 0,map:D,compact:z,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:K,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:F,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,nb),wither:(0,f.witherDefault)(t,nb)}}var na=c.reduce,nf=c.foldMap,nl=c.reduceRight,np=function(n){return l(l({},c.getFoldable(n)),{URI:nt})},nd=c.reduceWithIndex,ns=c.foldMapWithIndex,nh=c.reduceRightWithIndex,nm=function(n){return l(l({},c.getFoldableWithIndex(n)),{URI:nt})},nv=function(n){var t=nm(n),e=v(n),r=function(n){return function(t,r){for(var u=n.of(new Map),i=e(t),o=i.length,c=0;c<o;c++)!function(e){var o=i[e],c=t.get(o);u=n.ap(n.map(u,function(n){return function(t){return n.set(o,t)}}),r(o,c))}(c);return u}};return{URI:nt,_E:void 0,map:D,mapWithIndex:F,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,function(n,t){return t})}},traverseWithIndex:r}},ng={URI:nt,map:D},ny=(0,u.flap)(ng),nb={URI:nt,compact:z,separate:nn},n_={URI:nt,map:D,compact:z,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:K},nI=function(n){return new Map(n)},nR=function(n,t){var e=c.union(n,t);return function(n){return function(t){return s(t)?nI(n):s(n)?nI(t):e(n)(t)}}},nS=function(n,t){var e=c.intersection(n,t);return function(n){return function(t){return s(t)||s(n)?new Map:e(n)(t)}}},nT=function(n){var t=c.difference(n);return function(n){return function(e){return s(e)?nI(n):s(n)?nI(e):t(n)(e)}}},nx=new Map,nM=I,nO=n_},96576:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return d},fold:function(){return b},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return S},getFunctionMonoid:function(){return R},getJoinMonoid:function(){return g},getMeetMonoid:function(){return y},getStructMonoid:function(){return m},getTupleMonoid:function(){return h},max:function(){return a},min:function(){return c},monoidAll:function(){return _},monoidAny:function(){return I},monoidProduct:function(){return M},monoidString:function(){return T},monoidSum:function(){return x},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=e(47797),u=e(42275),i=e(97963),o=e(3291),c=function(n){return{concat:o.min(n).concat,empty:n.top}},a=function(n){return{concat:o.max(n).concat,empty:n.bottom}},f=function(n){return{concat:o.reverse(n).concat,empty:n.empty}},l=function(n){var t={};for(var e in n)i.e$.call(n,e)&&(t[e]=n[e].empty);return{concat:o.struct(n).concat,empty:t}},p=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:o.tuple.apply(o,n).concat,empty:n.map(function(n){return n.empty})}},d=function(n){return o.concatAll(n)(n.empty)},s={concat:o.semigroupVoid.concat,empty:void 0},h=p,m=l,v=f,g=a,y=c,b=d,_={concat:o.semigroupAll.concat,empty:!0},I={concat:o.semigroupAny.concat,empty:!1},R=u.getMonoid,S=function(){return f((0,r.getMonoid)())},T={concat:o.semigroupString.concat,empty:""},x={concat:o.semigroupSum.concat,empty:0},M={concat:o.semigroupProduct.concat,empty:1}},43586:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nz},Applicative:function(){return nN},Apply:function(){return nA},Chain:function(){return nj},Comonad:function(){return nH},Do:function(){return n$},Foldable:function(){return nG},FoldableWithIndex:function(){return nY},Functor:function(){return nW},FunctorWithIndex:function(){return nP},Monad:function(){return nK},Pointed:function(){return nU},Traversable:function(){return nB},TraversableWithIndex:function(){return nV},URI:function(){return nO},alt:function(){return np},altW:function(){return nl},ap:function(){return nd},apFirst:function(){return nL},apS:function(){return nQ},apSecond:function(){return nD},append:function(){return v},appendW:function(){return m},bind:function(){return nZ},bindTo:function(){return nX},chain:function(){return tu},chainFirst:function(){return nq},chainWithIndex:function(){return z},chop:function(){return H},chunksOf:function(){return X},concat:function(){return k},concatAll:function(){return n3},concatW:function(){return E},cons:function(){return tl},copy:function(){return N},duplicate:function(){return nm},extend:function(){return nh},extract:function(){return nM},filter:function(){return to},filterWithIndex:function(){return tc},flap:function(){return nF},flatMap:function(){return ns},flatten:function(){return nv},fold:function(){return ts},foldMap:function(){return V},foldMapWithIndex:function(){return B},fromArray:function(){return T},fromReadonlyNonEmptyArray:function(){return S},getEq:function(){return nE},getSemigroup:function(){return nC},getShow:function(){return nw},getUnionSemigroup:function(){return nk},group:function(){return F},groupBy:function(){return U},groupSort:function(){return ti},head:function(){return n0},init:function(){return n5},insertAt:function(){return A},intercalate:function(){return tr},intersperse:function(){return Y},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return n2},let:function(){return nJ},makeBy:function(){return x},map:function(){return ng},mapWithIndex:function(){return ny},matchLeft:function(){return n9},matchRight:function(){return n4},max:function(){return n8},min:function(){return n7},modifyAt:function(){return D},modifyHead:function(){return n6},modifyLast:function(){return tt},nonEmptyArray:function(){return th},of:function(){return j},prepend:function(){return h},prependAll:function(){return G},prependToAll:function(){return td},prependW:function(){return s},range:function(){return O},reduce:function(){return nb},reduceRight:function(){return nI},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return M},reverse:function(){return W},rotate:function(){return R},sequence:function(){return nT},snoc:function(){return tp},sort:function(){return P},sortBy:function(){return _},splitAt:function(){return $},tail:function(){return n1},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return C},uncons:function(){return ta},union:function(){return I},uniq:function(){return b},unprepend:function(){return w},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return y},unsnoc:function(){return tf},unzip:function(){return K},updateAt:function(){return L},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:q(t,e,function(n,t){return[n,t]})}},zipWith:function(){return q}});var r=e(42925),u=e(88543),i=e(42275),o=e(67560),c=e(97963),a=e(5586),f=e(28350),l=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},p=function(n){return n.length>0},d=function(n,t){return n<0||n>=t.length},s=function(n){return function(t){return l([n],t,!0)}},h=s,m=function(n){return function(t){return l(l([],t,!0),[n],!1)}},v=m,g=function(n,t,e){if(p(e)){var r=S(e);return r.splice(n,0,t),r}return[t]},y=function(n,t,e){var r=S(e);return r[n]=t,r},b=function(n){return function(t){if(1===t.length)return N(t);for(var e=[n0(t)],r=n1(t),u=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},i=0;i<r.length;i++)u(r[i]);return e}},_=function(n){if(p(n)){var t=(0,a.getMonoid)();return P(n.reduce(t.concat,t.empty))}return N},I=function(n){var t=b(n);return function(n){return function(e){return t((0,i.pipe)(e,k(n)))}}},R=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(d(Math.abs(r),t)||0===r)return N(t);if(!(r<0))return R(r-e)(t);var u=$(-r)(t),o=u[0],c=u[1];return(0,i.pipe)(c,k(o))}},S=c.r1,T=function(n){return p(n)?c.G(n):c.YP},x=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],u=1;u<e;u++)r.push(n(u));return r}},M=function(n){return x(function(){return n})},O=function(n,t){return n<=t?x(function(t){return n+t})(t-n+1):[n]},w=function(n){return[n0(n),n1(n)]},C=function(n){return[n5(n),n2(n)]};function E(n){return function(t){return t.concat(n)}}function k(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var W=function(n){return l([n2(n)],n.slice(0,-1).reverse(),!0)};function F(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],u=t[0],i=[u],o=1;o<e;o++){var c=t[o];n.equals(c,u)?i.push(c):(r.push(i),i=[u=c])}return r.push(i),r}}var U=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var u=t[r],i=n(u);c.e$.call(e,i)?e[i].push(u):e[i]=[u]}return e}},P=function(n){return function(t){return t.slice().sort(n.compare)}},A=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(g(n,t,e))}},L=function(n,t){return D(n,function(){return t})},D=function(n,t){return function(e){return d(n,e)?c.YP:c.G(y(n,t(e[n]),e))}},N=S,j=function(n){return[n]},q=function(n,t,e){for(var r=[e(n[0],t[0])],u=Math.min(n.length,t.length),i=1;i<u;i++)r[i]=e(n[i],t[i]);return r},K=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},G=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},Y=function(n){return function(t){var e=n1(t);return p(e)?(0,i.pipe)(e,G(n),h(n0(t))):N(t)}},B=f.foldMapWithIndex,V=f.foldMap,z=function(n){return function(t){for(var e=S(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},H=function(n){return function(t){for(var e=n(t),r=e[0],u=e[1],i=[r],o=u;p(o);){var c=n(o),a=c[0],f=c[1];i.push(a),o=f}return i}},$=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[N(t),[]]:[(0,i.pipe)(t.slice(1,e),h(n0(t))),t.slice(e)]}},X=function(n){return H($(n))},J=function(n,t){return(0,i.pipe)(n,ng(t))},Z=function(n,t){return(0,i.pipe)(n,ny(t))},Q=function(n,t){return(0,i.pipe)(n,nd(t))},nn=function(n,t){return(0,i.pipe)(n,nh(t))},nt=function(n,t,e){return(0,i.pipe)(n,nb(t,e))},ne=function(n){var t=V(n);return function(n,e){return(0,i.pipe)(n,t(e))}},nr=function(n,t,e){return(0,i.pipe)(n,nI(t,e))},nu=function(n){var t=nS(n);return function(n,e){return(0,i.pipe)(n,t(e))}},ni=function(n,t){return(0,i.pipe)(n,np(t))},no=function(n,t,e){return(0,i.pipe)(n,n_(t,e))},nc=function(n){var t=B(n);return function(n,e){return(0,i.pipe)(n,t(e))}},na=function(n,t,e){return(0,i.pipe)(n,nR(t,e))},nf=function(n){var t=nx(n);return function(n,e){return(0,i.pipe)(n,t(e))}},nl=function(n){return function(t){return(0,i.pipe)(t,E(n()))}},np=nl,nd=function(n){return ns(function(t){return(0,i.pipe)(n,ng(t))})},ns=(0,i.dual)(2,function(n,t){return(0,i.pipe)(n,z(function(n,e){return t(e,n)}))}),nh=function(n){return function(t){for(var e=n1(t),r=[n(t)];p(e);)r.push(n(e)),e=n1(e);return r}},nm=nh(i.identity),nv=ns(i.identity),ng=function(n){return ny(function(t,e){return n(e)})},ny=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},nb=f.reduce,n_=f.reduceWithIndex,nI=f.reduceRight,nR=f.reduceRightWithIndex,nS=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nT=function(n){return nx(n)(function(n,t){return t})},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),j),u=1;u<e.length;u++)r=n.ap(n.map(r,function(n){return function(t){return(0,i.pipe)(n,v(t))}}),t(u,e[u]));return r}}},nM=f.head,nO="NonEmptyArray",nw=f.getShow,nC=function(){return{concat:k}},nE=f.getEq,nk=function(n){var t=I(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nO,map:J},nF=(0,o.flap)(nW),nU={URI:nO,of:j},nP={URI:nO,map:J,mapWithIndex:Z},nA={URI:nO,map:J,ap:Q},nL=(0,r.apFirst)(nA),nD=(0,r.apSecond)(nA),nN={URI:nO,map:J,ap:Q,of:j},nj={URI:nO,map:J,ap:Q,chain:ns},nq=(0,u.chainFirst)(nj),nK={URI:nO,map:J,ap:Q,of:j,chain:ns},nG={URI:nO,reduce:nt,foldMap:ne,reduceRight:nr},nY={URI:nO,reduce:nt,foldMap:ne,reduceRight:nr,reduceWithIndex:no,foldMapWithIndex:nc,reduceRightWithIndex:na},nB={URI:nO,map:J,reduce:nt,foldMap:ne,reduceRight:nr,traverse:nu,sequence:nT},nV={URI:nO,map:J,mapWithIndex:Z,reduce:nt,foldMap:ne,reduceRight:nr,traverse:nu,sequence:nT,reduceWithIndex:no,foldMapWithIndex:nc,reduceRightWithIndex:na,traverseWithIndex:nf},nz={URI:nO,map:J,alt:ni},nH={URI:nO,map:J,extend:nn,extract:nM},n$=j(c.F4),nX=(0,o.bindTo)(nW),nJ=(0,o.let)(nW),nZ=(0,u.bind)(nj),nQ=(0,r.apS)(nA),n0=f.head,n1=function(n){return n.slice(1)},n2=f.last,n5=function(n){return n.slice(0,-1)},n7=f.min,n8=f.max,n3=function(n){return function(t){return t.reduce(n.concat)}},n9=function(n){return function(t){return n(n0(t),n1(t))}},n4=function(n){return function(t){return n(n5(t),n2(t))}},n6=function(n){return function(t){return l([n(n0(t))],n1(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,i.pipe)(n5(t),v(n(n2(t))))}},te=function(n){return tt(function(){return n})},tr=f.intercalate,tu=ns;function ti(n){var t=P(n),e=F(n);return function(n){return p(n)?e(t(n)):[]}}function to(n){return tc(function(t,e){return n(e)})}var tc=function(n){return function(t){return T(t.filter(function(t,e){return n(e,t)}))}},ta=w,tf=C;function tl(n,t){return void 0===t?h(n):(0,i.pipe)(t,h(n))}var tp=function(n,t){return(0,i.pipe)(n,v(t))},td=G,ts=f.concatAll,th={URI:nO,of:j,map:J,mapWithIndex:Z,ap:Q,chain:ns,extend:nn,extract:nM,reduce:nt,foldMap:ne,reduceRight:nr,traverse:nu,sequence:nT,reduceWithIndex:no,foldMapWithIndex:nc,reduceRightWithIndex:na,traverseWithIndex:nf,alt:ni}},20492:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return ne},Alternative:function(){return no},ApT:function(){return n9},Applicative:function(){return B},Apply:function(){return Y},Chain:function(){return z},Compactable:function(){return nd},Do:function(){return n2},Extend:function(){return na},Filterable:function(){return ng},Foldable:function(){return Z},FromEither:function(){return nC},Functor:function(){return D},Monad:function(){return H},MonadThrow:function(){return nO},Pointed:function(){return K},Traversable:function(){return n_},URI:function(){return W},Witherable:function(){return nx},Zero:function(){return nu},alt:function(){return nt},altW:function(){return nn},ap:function(){return G},apFirst:function(){return nN},apS:function(){return n3},apSecond:function(){return nj},as:function(){return N},asUnit:function(){return j},bind:function(){return n8},bindTo:function(){return n5},chain:function(){return tr},chainEitherK:function(){return nV},chainFirst:function(){return tu},chainFirstEitherK:function(){return nz},chainNullableK:function(){return nZ},compact:function(){return nf},duplicate:function(){return nY},elem:function(){return function n(t){return function(e,r){if(void 0===r){var u=n(t);return function(n){return u(e,n)}}return!nk(r)&&t.equals(e,r.value)}}},exists:function(){return n1},extend:function(){return nc},filter:function(){return ns},filterMap:function(){return nh},flap:function(){return nD},flatMap:function(){return V},flatten:function(){return nq},fold:function(){return nP},foldMap:function(){return X},foldW:function(){return nF},fromEither:function(){return nw},fromEitherK:function(){return nB},fromNullable:function(){return nH},fromNullableK:function(){return nJ},fromPredicate:function(){return g},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return ta},getEq:function(){return U},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return y},getMonoid:function(){return A},getOrElse:function(){return nL},getOrElseW:function(){return nA},getOrd:function(){return P},getRefinement:function(){return ti},getRight:function(){return b},getShow:function(){return F},guard:function(){return ni},isNone:function(){return nk},isSome:function(){return nE},let:function(){return n7},map:function(){return L},mapNullable:function(){return to},match:function(){return nU},matchW:function(){return nW},none:function(){return m},of:function(){return q},option:function(){return tc},orElse:function(){return Q},partition:function(){return nm},partitionMap:function(){return nv},reduce:function(){return $},reduceRight:function(){return J},separate:function(){return np},sequence:function(){return nb},sequenceArray:function(){return te},some:function(){return v},tap:function(){return nK},tapEither:function(){return nG},throwError:function(){return nM},toNullable:function(){return nQ},toUndefined:function(){return n0},traverse:function(){return ny},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n4},tryCatch:function(){return n$},tryCatchK:function(){return nX},wilt:function(){return nT},wither:function(){return nS},zero:function(){return nr}});var r=e(46111),u=e(42925),i=e(88543),o=e(25162),c=e(42275),a=e(67560),f=e(97963),l=e(88491),p=e(3291),d=e(34219),s=e(76511),h=e(28957),m=f.YP,v=f.G;function g(n){return function(t){return n(t)?v(t):m}}var y=function(n){return"Right"===n._tag?m:v(n.left)},b=function(n){return"Left"===n._tag?m:v(n.right)},_=function(n,t){return(0,c.pipe)(n,L(t))},I=function(n,t){return(0,c.pipe)(n,G(t))},R=function(n,t,e){return(0,c.pipe)(n,$(t,e))},S=function(n){var t=X(n);return function(n,e){return(0,c.pipe)(n,t(e))}},T=function(n,t,e){return(0,c.pipe)(n,J(t,e))},x=function(n){var t=ny(n);return function(n,e){return(0,c.pipe)(n,t(e))}},M=function(n,t){return(0,c.pipe)(n,nt(t))},O=function(n,t){return(0,c.pipe)(n,ns(t))},w=function(n,t){return(0,c.pipe)(n,nh(t))},C=function(n,t){return(0,c.pipe)(n,nc(t))},E=function(n,t){return(0,c.pipe)(n,nm(t))},k=function(n,t){return(0,c.pipe)(n,nv(t))},W="Option",F=function(n){return{show:function(t){return nk(t)?"none":"some(".concat(n.show(t.value),")")}}},U=function(n){return{equals:function(t,e){return t===e||(nk(t)?nk(e):!nk(e)&&n.equals(t.value,e.value))}}},P=function(n){return{equals:U(n).equals,compare:function(t,e){return t===e?0:nE(t)?nE(e)?n.compare(t.value,e.value):1:-1}}},A=function(n){return{concat:function(t,e){return nk(t)?e:nk(e)?t:v(n.concat(t.value,e.value))},empty:m}},L=function(n){return function(t){return nk(t)?m:v(n(t.value))}},D={URI:W,map:_},N=(0,c.dual)(2,(0,a.as)(D)),j=(0,a.asUnit)(D),q=v,K={URI:W,of:q},G=function(n){return function(t){return nk(t)?m:nk(n)?m:v(t.value(n.value))}},Y={URI:W,map:_,ap:I},B={URI:W,map:_,ap:I,of:q},V=(0,c.dual)(2,function(n,t){return nk(n)?m:t(n.value)}),z={URI:W,map:_,ap:I,chain:V},H={URI:W,map:_,ap:I,of:q,chain:V},$=function(n,t){return function(e){return nk(e)?n:t(n,e.value)}},X=function(n){return function(t){return function(e){return nk(e)?n.empty:t(e.value)}}},J=function(n,t){return function(e){return nk(e)?n:t(e.value,n)}},Z={URI:W,reduce:R,foldMap:S,reduceRight:T},Q=(0,c.dual)(2,function(n,t){return nk(n)?t():n}),nn=Q,nt=Q,ne={URI:W,map:_,alt:M},nr=function(){return m},nu={URI:W,zero:nr},ni=(0,h.guard)(nu,K),no={URI:W,map:_,ap:I,of:q,alt:M,zero:nr},nc=function(n){return function(t){return nk(t)?m:v(n(t))}},na={URI:W,map:_,extend:C},nf=V(c.identity),nl=(0,d.separated)(m,m),np=function(n){return nk(n)?nl:(0,d.separated)(y(n.value),b(n.value))},nd={URI:W,compact:nf,separate:np},ns=function(n){return function(t){return nk(t)?m:n(t.value)?t:m}},nh=function(n){return function(t){return nk(t)?m:n(t.value)}},nm=function(n){return function(t){return(0,d.separated)(O(t,(0,l.not)(n)),O(t,n))}},nv=function(n){return(0,c.flow)(L(n),np)},ng={URI:W,map:_,compact:nf,separate:np,filter:O,filterMap:w,partition:E,partitionMap:k},ny=function(n){return function(t){return function(e){return nk(e)?n.of(m):n.map(t(e.value),v)}}},nb=function(n){return function(t){return nk(t)?n.of(m):n.map(t.value,v)}},n_={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb},nI=(0,s.witherDefault)(n_,nd),nR=(0,s.wiltDefault)(n_,nd),nS=function(n){var t=nI(n);return function(n){return function(e){return t(e,n)}}},nT=function(n){var t=nR(n);return function(n){return function(e){return t(e,n)}}},nx={URI:W,map:_,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb,compact:nf,separate:np,filter:O,filterMap:w,partition:E,partitionMap:k,wither:nI,wilt:nR},nM=function(){return m},nO={URI:W,map:_,ap:I,of:q,chain:V,throwError:nM},nw=b,nC={URI:W,fromEither:nw},nE=f.pC,nk=function(n){return"None"===n._tag},nW=function(n,t){return function(e){return nk(e)?n():t(e.value)}},nF=nW,nU=nW,nP=nU,nA=function(n){return function(t){return nk(t)?n():t.value}},nL=nA,nD=(0,a.flap)(D),nN=(0,u.apFirst)(Y),nj=(0,u.apSecond)(Y),nq=nf,nK=(0,c.dual)(2,i.tap(z)),nG=(0,c.dual)(2,(0,o.tapEither)(nC,z)),nY=nc(c.identity),nB=(0,o.fromEitherK)(nC),nV=(0,o.chainEitherK)(nC,z),nz=nG,nH=function(n){return null==n?m:v(n)},n$=function(n){try{return v(n())}catch(n){return m}},nX=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n$(function(){return n.apply(void 0,t)})}},nJ=function(n){return(0,c.flow)(n,nH)},nZ=function(n){return function(t){return nk(t)?m:nH(n(t.value))}},nQ=nU(c.constNull,c.identity),n0=nU(c.constUndefined,c.identity),n1=function(n){return function(t){return!nk(t)&&n(t.value)}},n2=q(f.F4),n5=(0,a.bindTo)(D),n7=(0,a.let)(D),n8=i.bind(z),n3=(0,u.apS)(Y),n9=q(f.Xl),n4=function(n){return function(t){var e=n(0,f.YM(t));if(nk(e))return m;for(var r=[e.value],u=1;u<t.length;u++){var i=n(u,t[u]);if(nk(i))return m;r.push(i.value)}return v(r)}},n6=function(n){var t=n4(n);return function(n){return f.Od(n)?t(n):n9}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(c.identity),tr=V,tu=nK;function ti(n){return function(t){return nE(n(t))}}var to=nZ,tc={URI:W,map:_,of:q,ap:I,chain:V,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:nb,zero:nr,alt:M,extend:C,compact:nf,separate:np,filter:O,filterMap:w,partition:E,partitionMap:k,wither:nI,wilt:nR,throwError:nM},ta=(0,u.getApplySemigroup)(Y),tf=(0,r.getApplicativeMonoid)(B),tl=function(){return A((0,p.first)())},tp=function(){return A((0,p.last)())}},5586:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return S},clamp:function(){return R},contramap:function(){return f},equals:function(){return m},equalsDefault:function(){return i},fromCompare:function(){return o},geq:function(){return b},getDualOrd:function(){return x},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return T},gt:function(){return g},leq:function(){return y},lt:function(){return v},max:function(){return I},min:function(){return _},ord:function(){return M},ordBoolean:function(){return w},ordDate:function(){return k},ordNumber:function(){return E},ordString:function(){return C},reverse:function(){return a},trivial:function(){return h},tuple:function(){return c}});var r=e(65191),u=e(42275),i=function(n){return function(t,e){return t===e||0===n(t,e)}},o=function(n){return{equals:i(n),compare:function(t,e){return t===e?0:n(t,e)}}},c=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return o(function(t,e){for(var r=0;r<n.length-1;r++){var u=n[r].compare(t[r],e[r]);if(0!==u)return u}return n[r].compare(t[r],e[r])})},a=function(n){return o(function(t,e){return n.compare(e,t)})},f=function(n){return function(t){return o(function(e,r){return t.compare(n(e),n(r))})}},l="Ord",p=function(){return{concat:function(n,t){return o(function(e,r){var u=n.compare(e,r);return 0!==u?u:t.compare(e,r)})}}},d=function(){return{concat:p().concat,empty:o(function(){return 0})}},s={URI:l,contramap:function(n,t){return(0,u.pipe)(n,f(t))}},h={equals:u.constTrue,compare:(0,u.constant)(0)},m=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},v=function(n){return function(t,e){return -1===n.compare(t,e)}},g=function(n){return function(t,e){return 1===n.compare(t,e)}},y=function(n){return function(t,e){return 1!==n.compare(t,e)}},b=function(n){return function(t,e){return -1!==n.compare(t,e)}},_=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},I=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},R=function(n){var t=_(n),e=I(n);return function(n,r){return function(u){return e(t(u,r),n)}}},S=function(n){var t=v(n),e=g(n);return function(n,r){return function(u){return!(t(u,n)||e(u,r))}}},T=c,x=a,M=s,O={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},w=O,C=O,E=O,k=(0,u.pipe)(E,f(function(n){return n.valueOf()}))},88491:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return l},URI:function(){return i},and:function(){return s},contramap:function(){return u},getMonoidAll:function(){return f},getMonoidAny:function(){return c},getSemigroupAll:function(){return a},getSemigroupAny:function(){return o},not:function(){return p},or:function(){return d}});var r=e(42275),u=function(n){return function(t){return(0,r.flow)(n,t)}},i="Predicate",o=function(){return{concat:function(n,t){return(0,r.pipe)(n,d(t))}}},c=function(){return{concat:o().concat,empty:r.constFalse}},a=function(){return{concat:function(n,t){return(0,r.pipe)(n,s(t))}}},f=function(){return{concat:a().concat,empty:r.constTrue}},l={URI:i,contramap:function(n,t){return(0,r.pipe)(n,u(t))}},p=function(n){return function(t){return!n(t)}},d=function(n){return function(t){return function(e){return t(e)||n(e)}}},s=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},31583:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tB},Alternative:function(){return tH},Applicative:function(){return tj},Apply:function(){return tL},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t3},ChainRecDepthFirst:function(){return t7},Compactable:function(){return tX},Do:function(){return es},Extend:function(){return t$},Filterable:function(){return tJ},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return et},Functor:function(){return tF},FunctorWithIndex:function(){return tA},Monad:function(){return tK},Pointed:function(){return tP},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tS},Unfoldable:function(){return tY},Witherable:function(){return t6},Zero:function(){return tV},_chainRecBreadthFirst:function(){return nQ},_chainRecDepthFirst:function(){return nZ},alt:function(){return n5},altW:function(){return n2},ap:function(){return n7},apFirst:function(){return tD},apS:function(){return eg},apSecond:function(){return tN},append:function(){return I},appendW:function(){return R},bind:function(){return ev},bindTo:function(){return eh},chain:function(){return ey},chainFirst:function(){return tG},chainRecBreadthFirst:function(){return t8},chainRecDepthFirst:function(){return t5},chainWithIndex:function(){return A},chop:function(){return nI},chunksOf:function(){return nS},compact:function(){return tr},comprehension:function(){return nx},concat:function(){return nO},concatW:function(){return nM},cons:function(){return e_},deleteAt:function(){return nc},difference:function(){return nE},dropLeft:function(){return X},dropLeftWhile:function(){return Z},dropRight:function(){return J},duplicate:function(){return tl},elem:function(){return ny},empty:function(){return ea},every:function(){return ef},exists:function(){return ep},extend:function(){return tf},filter:function(){return tn},filterE:function(){return en},filterMap:function(){return te},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return ta},findFirst:function(){return nn},findFirstMap:function(){return nt},findIndex:function(){return Q},findLast:function(){return ne},findLastIndex:function(){return nu},findLastMap:function(){return nr},flap:function(){return tU},flatMap:function(){return n8},flatten:function(){return n3},foldLeft:function(){return W},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return P},fromArray:function(){return ec},fromEither:function(){return O},fromEitherK:function(){return ee},fromOption:function(){return M},fromOptionK:function(){return nT},fromPredicate:function(){return x},getDifferenceMagma:function(){return tW},getEq:function(){return tO},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tM},getOrd:function(){return tw},getSemigroup:function(){return tx},getShow:function(){return tT},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tC},guard:function(){return tz},head:function(){return q},init:function(){return Y},insertAt:function(){return ni},intercalate:function(){return ed},intersection:function(){return nC},intersperse:function(){return nv},isEmpty:function(){return g},isNonEmpty:function(){return y},isOutOfBound:function(){return j},last:function(){return K},lefts:function(){return np},let:function(){return em},lookup:function(){return function n(t,e){return void 0===e?function(e){return n(t,e)}:j(t,e)?f.YP:f.G(e[t])}},makeBy:function(){return S},map:function(){return n9},mapWithIndex:function(){return n4},match:function(){return C},matchLeft:function(){return k},matchLeftW:function(){return E},matchRight:function(){return U},matchRightW:function(){return F},matchW:function(){return w},modifyAt:function(){return na},of:function(){return n0},partition:function(){return tu},partitionMap:function(){return to},partitionMapWithIndex:function(){return tc},partitionWithIndex:function(){return ti},prepend:function(){return b},prependAll:function(){return nm},prependToAll:function(){return eR},prependW:function(){return _},range:function(){return eb},readonlyArray:function(){return eS},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return th},replicate:function(){return T},reverse:function(){return nf},rights:function(){return nl},rotate:function(){return ng},scanLeft:function(){return L},scanRight:function(){return D},separate:function(){return n6},sequence:function(){return ty},size:function(){return N},snoc:function(){return eI},some:function(){return el},sort:function(){return nd},sortBy:function(){return n_},spanLeft:function(){return $},splitAt:function(){return nR},tail:function(){return G},takeLeft:function(){return B},takeLeftWhile:function(){return z},takeRight:function(){return V},toArray:function(){return eo},traverse:function(){return tg},traverseWithIndex:function(){return tb},unfold:function(){return tR},union:function(){return nw},uniq:function(){return nb},unsafeDeleteAt:function(){return ei},unsafeInsertAt:function(){return er},unsafeUpdateAt:function(){return eu},unzip:function(){return nh},updateAt:function(){return no},wilt:function(){return tI},wither:function(){return t_},zero:function(){return n1},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:ns(t,e,function(n,t){return[n,t]})}},zipWith:function(){return ns}});var r=e(42925),u=e(88543),i=e(65191),o=e(25162),c=e(42275),a=e(67560),f=e(97963),l=e(76627),p=e(5586),d=e(28350),s=e(34219),h=e(76511),m=e(28957),v=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},g=function(n){return 0===n.length},y=d.isNonEmpty,b=d.prepend,_=d.prependW,I=d.append,R=d.appendW,S=function(n,t){return n<=0?ea:d.makeBy(t)(n)},T=function(n,t){return S(n,function(){return t})};function x(n){return function(t){return n(t)?[t]:ea}}var M=function(n){return f.Wi(n)?ea:[n.value]},O=function(n){return f.nM(n)?ea:[n.right]},w=function(n,t){return function(e){return y(e)?t(e):n()}},C=w,E=function(n,t){return function(e){return y(e)?t(d.head(e),d.tail(e)):n()}},k=E,W=k,F=function(n,t){return function(e){return y(e)?t(d.init(e),d.last(e)):n()}},U=F,P=U,A=function(n){return function(t){if(g(t))return ea;for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},L=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[0]=n;for(var i=0;i<r;i++)u[i+1]=t(u[i],e[i]);return u}},D=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[r]=n;for(var i=r-1;i>=0;i--)u[i]=t(e[i],u[i+1]);return u}},N=function(n){return n.length},j=d.isOutOfBound,q=function(n){return y(n)?f.G(d.head(n)):f.YP},K=function(n){return y(n)?f.G(d.last(n)):f.YP},G=function(n){return y(n)?f.G(d.tail(n)):f.YP},Y=function(n){return y(n)?f.G(d.init(n)):f.YP},B=function(n){return function(t){return j(n,t)?t:0===n?ea:t.slice(0,n)}},V=function(n){return function(t){return j(n,t)?t:0===n?ea:t.slice(-n)}};function z(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=t[r];if(!n(u))break;e.push(u)}var i=e.length;return i===t.length?t:0===i?ea:e}}var H=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function $(n){return function(t){var e=nR(H(t,n))(t);return{init:e[0],rest:e[1]}}}var X=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ea:t.slice(n,t.length)}},J=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ea:t.slice(0,t.length-n)}};function Z(n){return function(t){var e=H(t,n);return 0===e?t:e===t.length?ea:t.slice(e)}}var Q=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(e);return f.YP}};function nn(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(t[e]);return f.YP}}var nt=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(f.pC(r))return r}return f.YP}};function ne(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(t[e]);return f.YP}}var nr=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(f.pC(r))return r}return f.YP}},nu=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(e);return f.YP}},ni=function(n,t){return function(e){return n<0||n>e.length?f.YP:f.G(d.unsafeInsertAt(n,t,e))}},no=function(n,t){return na(n,function(){return t})},nc=function(n){return function(t){return j(n,t)?f.YP:f.G(ei(n,t))}},na=function(n,t){return function(e){return j(n,e)?f.YP:f.G(eu(n,t(e[n]),e))}},nf=function(n){return n.length<=1?n:n.slice().reverse()},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},np=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},nd=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},ns=function(n,t,e){for(var r=[],u=Math.min(n.length,t.length),i=0;i<u;i++)r[i]=e(n[i],t[i]);return r},nh=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nm=function(n){var t=d.prependAll(n);return function(n){return y(n)?t(n):n}},nv=function(n){var t=d.intersperse(n);return function(n){return y(n)?t(n):n}},ng=function(n){var t=d.rotate(n);return function(n){return y(n)?t(n):n}};function ny(n){return function(t,e){if(void 0===e){var r,u=ny(n);return function(n){return u(t,n)}}for(var i=0;i<e.length;i++)if(r=e[i],n.equals(r,t))return!0;return!1}}var nb=function(n){var t=d.uniq(n);return function(n){return y(n)?t(n):n}},n_=function(n){var t=d.sortBy(n);return function(n){return y(n)?t(n):n}},nI=function(n){var t=d.chop(n);return function(n){return y(n)?t(n):ea}},nR=function(n){return function(t){return n>=1&&y(t)?d.splitAt(n)(t):g(t)?[t,ea]:[ea,t]}},nS=function(n){var t=d.chunksOf(n);return function(n){return y(n)?t(n):ea}},nT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return M(n.apply(void 0,t))}};function nx(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,u){return y(u)?n8(d.head(u),function(t){return r((0,c.pipe)(n,I(t)),d.tail(u))}):e.apply(void 0,n)?[t.apply(void 0,n)]:ea};return r(ea,n)}var nM=function(n){return function(t){return g(t)?n:g(n)?t:t.concat(n)}},nO=nM;function nw(n){var t=d.union(n);return function(e,r){if(void 0===r){var u=nw(n);return function(n){return u(n,e)}}return y(e)&&y(r)?t(r)(e):y(e)?e:r}}function nC(n){var t=ny(n);return function(e,r){if(void 0===r){var u=nC(n);return function(n){return u(n,e)}}return e.filter(function(n){return t(n,r)})}}function nE(n){var t=ny(n);return function(e,r){if(void 0===r){var u=nE(n);return function(n){return u(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nk=function(n,t){return(0,c.pipe)(n,n9(t))},nW=function(n,t){return(0,c.pipe)(n,n4(t))},nF=function(n,t){return(0,c.pipe)(n,n7(t))},nU=function(n,t){return(0,c.pipe)(n,tn(t))},nP=function(n,t){return(0,c.pipe)(n,te(t))},nA=function(n,t){return(0,c.pipe)(n,tu(t))},nL=function(n,t){return(0,c.pipe)(n,to(t))},nD=function(n,t){return(0,c.pipe)(n,ti(t))},nN=function(n,t){return(0,c.pipe)(n,tc(t))},nj=function(n,t){return(0,c.pipe)(n,n5(t))},nq=function(n,t,e){return(0,c.pipe)(n,td(t,e))},nK=function(n){var t=ts(n);return function(n,e){return(0,c.pipe)(n,t(e))}},nG=function(n,t,e){return(0,c.pipe)(n,tm(t,e))},nY=function(n,t,e){return(0,c.pipe)(n,th(t,e))},nB=function(n){var t=tp(n);return function(n,e){return(0,c.pipe)(n,t(e))}},nV=function(n,t,e){return(0,c.pipe)(n,tv(t,e))},nz=function(n,t){return(0,c.pipe)(n,tt(t))},nH=function(n,t){return(0,c.pipe)(n,ta(t))},n$=function(n,t){return(0,c.pipe)(n,tf(t))},nX=function(n){var t=tg(n);return function(n,e){return(0,c.pipe)(n,t(e))}},nJ=function(n){var t=tb(n);return function(n,e){return(0,c.pipe)(n,t(e))}},nZ=function(n,t){return(0,c.pipe)(n,t5(t))},nQ=function(n,t){return(0,c.pipe)(n,t8(t))},n0=d.of,n1=function(){return ea},n2=function(n){return function(t){return t.concat(n())}},n5=n2,n7=function(n){return n8(function(t){return(0,c.pipe)(n,n9(t))})},n8=(0,c.dual)(2,function(n,t){return(0,c.pipe)(n,A(function(n,e){return t(e,n)}))}),n3=n8(c.identity),n9=function(n){return function(t){return t.map(function(t){return n(t)})}},n4=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var u=n[r];"Left"===u._tag?t.push(u.left):e.push(u.right)}return(0,s.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=n(r,t[r]);f.pC(u)&&e.push(u.value)}return e}},te=function(n){return tt(function(t,e){return n(e)})},tr=te(c.identity),tu=function(n){return ti(function(t,e){return n(e)})},ti=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=t[u];n(u,i)?r.push(i):e.push(i)}return(0,s.separated)(e,r)}},to=function(n){return tc(function(t,e){return n(e)})},tc=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=n(u,t[u]);"Left"===i._tag?e.push(i.left):r.push(i.right)}return(0,s.separated)(e,r)}},ta=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tf=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tl=tf(c.identity),tp=function(n){return function(t){return function(e){return e.reduce(function(e,r,u){return n.concat(e,t(u,r))},n.empty)}}},td=function(n,t){return th(n,function(n,e,r){return t(e,r)})},ts=function(n){var t=tp(n);return function(n){return t(function(t,e){return n(e)})}},th=function(n,t){return function(e){for(var r=e.length,u=n,i=0;i<r;i++)u=t(i,u,e[i]);return u}},tm=function(n,t){return tv(n,function(n,e,r){return t(e,r)})},tv=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},tg=function(n){var t=tb(n);return function(n){return t(function(t,e){return n(e)})}},ty=function(n){return function(t){return nq(t,n.of(n1()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,c.pipe)(n,I(t))}}),e)})}},tb=function(n){return function(t){return th(n.of(n1()),function(e,r,u){return n.ap(n.map(r,function(n){return function(t){return(0,c.pipe)(n,I(t))}}),t(e,u))})}},t_=function(n){var t=t9(n);return function(n){return function(e){return t(e,n)}}},tI=function(n){var t=t4(n);return function(n){return function(e){return t(e,n)}}},tR=function(n,t){for(var e=[],r=n;;){var u=t(r);if(f.pC(u)){var i=u.value,o=i[0],c=i[1];e.push(o),r=c}else break}return e},tS="ReadonlyArray",tT=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},tx=function(){return{concat:function(n,t){return g(n)?t:g(t)?n:n.concat(t)}}},tM=function(){return{concat:tx().concat,empty:ea}},tO=function(n){return(0,i.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},tw=function(n){return(0,p.fromCompare)(function(t,e){for(var r=t.length,u=e.length,i=Math.min(r,u),o=0;o<i;o++){var c=n.compare(t[o],e[o]);if(0!==c)return c}return l.Ord.compare(r,u)})},tC=function(n){var t=nw(n);return{concat:function(n,e){return t(e)(n)}}},tE=function(n){return{concat:tC(n).concat,empty:ea}},tk=function(n){var t=nC(n);return{concat:function(n,e){return t(e)(n)}}},tW=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tF={URI:tS,map:nk},tU=(0,a.flap)(tF),tP={URI:tS,of:n0},tA={URI:tS,map:nk,mapWithIndex:nW},tL={URI:tS,map:nk,ap:nF},tD=(0,r.apFirst)(tL),tN=(0,r.apSecond)(tL),tj={URI:tS,map:nk,ap:nF,of:n0},tq={URI:tS,map:nk,ap:nF,chain:n8},tK={URI:tS,map:nk,ap:nF,of:n0,chain:n8},tG=(0,u.chainFirst)(tq),tY={URI:tS,unfold:tR},tB={URI:tS,map:nk,alt:nj},tV={URI:tS,zero:n1},tz=(0,m.guard)(tV,tP),tH={URI:tS,map:nk,ap:nF,of:n0,alt:nj,zero:n1},t$={URI:tS,map:nk,extend:n$},tX={URI:tS,compact:tr,separate:n6},tJ={URI:tS,map:nk,compact:tr,separate:n6,filter:nU,filterMap:nP,partition:nA,partitionMap:nL},tZ={URI:tS,map:nk,mapWithIndex:nW,compact:tr,separate:n6,filter:nU,filterMap:nP,partition:nA,partitionMap:nL,partitionMapWithIndex:nN,partitionWithIndex:nD,filterMapWithIndex:nz,filterWithIndex:nH},tQ={URI:tS,reduce:nq,foldMap:nK,reduceRight:nG},t0={URI:tS,reduce:nq,foldMap:nK,reduceRight:nG,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV},t1={URI:tS,map:nk,reduce:nq,foldMap:nK,reduceRight:nG,traverse:nX,sequence:ty},t2={URI:tS,map:nk,mapWithIndex:nW,reduce:nq,foldMap:nK,reduceRight:nG,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV,traverse:nX,sequence:ty,traverseWithIndex:nJ},t5=function(n){return function(t){for(var e=v([],n(t),!0),r=[];e.length>0;){var u=e.shift();f.nM(u)?e.unshift.apply(e,n(u.left)):r.push(u.right)}return r}},t7={URI:tS,map:nk,ap:nF,chain:n8,chainRec:nZ},t8=function(n){return function(t){var e=n(t),r=[],u=[];function i(t){f.nM(t)?n(t.left).forEach(function(n){return r.push(n)}):u.push(t.right)}for(var o=0;o<e.length;o++)i(e[o]);for(;r.length>0;)i(r.shift());return u}},t3={URI:tS,map:nk,ap:nF,chain:n8,chainRec:nQ},t9=(0,h.witherDefault)(t1,tX),t4=(0,h.wiltDefault)(t1,tX),t6={URI:tS,map:nk,compact:tr,separate:n6,filter:nU,filterMap:nP,partition:nA,partitionMap:nL,reduce:nq,foldMap:nK,reduceRight:nG,traverse:nX,sequence:ty,wither:t9,wilt:t4},en=(0,h.filterE)(t6),et={URI:tS,fromEither:O},ee=(0,o.fromEitherK)(et),er=d.unsafeInsertAt,eu=function(n,t,e){return y(e)?d.unsafeUpdateAt(n,t,e):e},ei=function(n,t){var e=t.slice();return e.splice(n,1),e},eo=function(n){return n.slice()},ec=function(n){return g(n)?ea:n.slice()},ea=d.empty;function ef(n){return function(t){return t.every(n)}}var el=function(n){return function(t){return t.some(n)}},ep=el,ed=function(n){var t=d.intercalate(n);return function(e){return C(function(){return n.empty},t(e))}},es=n0(f.F4),eh=(0,a.bindTo)(tF),em=(0,a.let)(tF),ev=(0,u.bind)(tq),eg=(0,r.apS)(tL),ey=n8,eb=d.range,e_=d.cons,eI=d.snoc,eR=nm,eS={URI:tS,compact:tr,separate:n6,map:nk,ap:nF,of:n0,chain:n8,filter:nU,filterMap:nP,partition:nA,partitionMap:nL,mapWithIndex:nW,partitionMapWithIndex:nN,partitionWithIndex:nD,filterMapWithIndex:nz,filterWithIndex:nH,alt:nj,zero:n1,unfold:tR,reduce:nq,foldMap:nK,reduceRight:nG,traverse:nX,sequence:ty,reduceWithIndex:nY,foldMapWithIndex:nB,reduceRightWithIndex:nV,traverseWithIndex:nJ,extend:n$,wither:t9,wilt:t4}},13512:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return np},Filterable:function(){return nd},Functor:function(){return na},URI:function(){return ne},collect:function(){return y},compact:function(){return H},deleteAt:function(){return R},difference:function(){return nM},elem:function(){return function n(t){return function(e,r){if(void 0===r){var u,i=n(t);return function(n){return i(e,n)}}for(var o=r.values();!(u=o.next()).done;){var c=u.value;if(t.equals(e,c))return!0}return!1}}},empty:function(){return C},filter:function(){return $},filterMap:function(){return X},filterMapWithIndex:function(){return L},filterWithIndex:function(){return D},flap:function(){return nf},foldMap:function(){return nh},foldMapWithIndex:function(){return ny},fromFoldable:function(){return F},fromMap:function(){return l},getDifferenceMagma:function(){return no},getEq:function(){return E},getFilterableWithIndex:function(){return nc},getFoldable:function(){return nv},getFoldableWithIndex:function(){return n_},getFunctorWithIndex:function(){return nl},getIntersectionSemigroup:function(){return ni},getMonoid:function(){return k},getShow:function(){return d},getTraversable:function(){return nI},getTraversableWithIndex:function(){return nR},getUnionMonoid:function(){return nu},getUnionSemigroup:function(){return nr},getWitherable:function(){return nS},insertAt:function(){return nO},intersection:function(){return nx},isEmpty:function(){return h},isSubmap:function(){return w},keys:function(){return v},lookup:function(){return O},lookupWithKey:function(){return M},map:function(){return J},mapWithIndex:function(){return Z},member:function(){return m},modifyAt:function(){return T},partition:function(){return Q},partitionMap:function(){return nn},partitionMapWithIndex:function(){return P},partitionWithIndex:function(){return A},pop:function(){return x},readonlyMap:function(){return nw},reduce:function(){return ns},reduceRight:function(){return nm},reduceRightWithIndex:function(){return nb},reduceWithIndex:function(){return ng},separate:function(){return nt},singleton:function(){return W},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return b},toUnfoldable:function(){return _},union:function(){return nT},updateAt:function(){return S},upsertAt:function(){return I},values:function(){return g}});var r=e(65191),u=e(42275),i=e(67560),o=e(97963),c=e(20492),a=e(34219),f=e(76511),l=function(n){return new Map(n)};function p(n){return new Map(n)}function d(n,t){return{show:function(e){var r=[];return e.forEach(function(e,u){r.push("[".concat(n.show(u),", ").concat(t.show(e),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(n){return n.size},h=function(n){return 0===n.size};function m(n){var t=O(n);return function(e,r){if(void 0===r){var u=m(n);return function(n){return u(e,n)}}return o.pC(t(e,r))}}var v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],u=t(e),i=0;i<u.length;i++){var o=u[i];r.push(n(o,e.get(o)))}return r}}}var b=function(n){return y(n)(function(n,t){return[n,t]})};function _(n,t){var e=b(n);return function(n){var r=e(n),u=r.length;return t.unfold(0,function(n){return n<u?o.G([r[n],n+1]):o.YP})}}var I=function(n){var t=M(n);return function(n,e){var r=t(n);return function(t){var u=r(t);if(o.Wi(u)){var i=new Map(t);return i.set(n,e),i}if(u.value[1]!==e){var i=new Map(t);return i.set(u.value[0],e),i}return t}}},R=function(n){var t=M(n);return function(n){return function(e){var r=t(n,e);if(o.pC(r)){var u=new Map(e);return u.delete(r.value[0]),u}return e}}},S=function(n){var t=T(n);return function(n,e){return t(n,function(){return e})}},T=function(n){var t=M(n);return function(n,e){return function(r){var u=t(n,r);if(o.Wi(u))return o.YP;var i=u.value,c=i[0],a=i[1],f=e(a);if(f===a)return o.G(r);var l=new Map(r);return l.set(c,f),o.G(l)}}};function x(n){var t=O(n),e=R(n);return function(n){var r=e(n);return function(e){return(0,u.pipe)(t(n,e),c.map(function(n){return[n,r(e)]}))}}}function M(n){return function(t,e){if(void 0===e){var r,u=M(n);return function(n){return u(t,n)}}for(var i=e.entries();!(r=i.next()).done;){var c=r.value,a=c[0],f=c[1];if(n.equals(a,t))return o.G([a,f])}return o.YP}}function O(n){var t=M(n);return function(e,r){if(void 0===r){var i=O(n);return function(n){return i(e,n)}}return(0,u.pipe)(t(e,r),c.map(function(n){return n[0],n[1]}))}}function w(n,t){var e=M(n);return function(r,u){if(void 0===u){var i,c=w(n,t);return function(n){return c(n,r)}}for(var a=r.entries();!(i=a.next()).done;){var f=i.value,l=f[0],p=f[1],d=e(l,u);if(o.Wi(d)||!n.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var C=new Map;function E(n,t){var e=w(n,t);return(0,r.fromEquals)(function(n,t){return e(n,t)&&e(t,n)})}function k(n,t){var e=M(n);return{concat:function(n,r){if(h(n))return r;if(h(r))return n;for(var u,i=new Map(n),c=r.entries();!(u=c.next()).done;){var a=u.value,f=a[0],l=a[1],p=e(f,n);o.pC(p)?i.set(p.value[0],t.concat(p.value[1],l)):i.set(f,l)}return i},empty:C}}var W=function(n,t){return new Map([[n,t]])};function F(n,t,e){return function(r){var u=M(n);return e.reduce(r,new Map,function(n,e){var r=e[0],i=e[1],c=u(r,n);return o.pC(c)?n.set(c.value[0],t.concat(c.value[1],i)):n.set(r,i),n})}}var U=function(n,t){for(var e,r=new Map,u=n.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];r.set(o,t(o,c))}return r},P=function(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var c=e.value,f=c[0],l=n(f,c[1]);o.nM(l)?r.set(f,l.left):u.set(f,l.right)}return(0,a.separated)(r,u)}};function A(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,c=o[0],f=o[1];n(c,f)?u.set(c,f):r.set(c,f)}return(0,a.separated)(r,u)}}var L=function(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,c=i[0],a=n(c,i[1]);o.pC(a)&&r.set(c,a.value)}return r}};function D(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];n(o,c)&&r.set(o,c)}return r}}var N=function(n,t){return U(n,function(n,e){return t(e)})},j=function(n,t){return Y(n,function(n,e){return t(e)})},q=function(n,t){return B(n,function(n,e){return t(e)})},K=function(n,t){return V(n,function(n,e){return t(e)})},G=function(n,t){return z(n,function(n,e){return t(e)})},Y=function(n,t){return(0,u.pipe)(n,D(t))},B=function(n,t){return(0,u.pipe)(n,L(t))},V=function(n,t){return(0,u.pipe)(n,A(t))},z=function(n,t){return(0,u.pipe)(n,P(t))},H=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var u=t.value,i=u[0],c=u[1];o.pC(c)&&e.set(i,c.value)}return e},$=function(n){return function(t){return j(t,n)}},X=function(n){return function(t){return q(t,n)}},J=function(n){return function(t){return N(t,n)}},Z=function(n){return function(t){return U(t,n)}},Q=function(n){return function(t){return K(t,n)}},nn=function(n){return function(t){return G(t,n)}},nt=function(n){for(var t,e=new Map,r=new Map,u=n.entries();!(t=u.next()).done;){var i=t.value,c=i[0],f=i[1];o.nM(f)?e.set(c,f.left):r.set(c,f.right)}return(0,a.separated)(e,r)},ne="ReadonlyMap",nr=function(n,t){var e=nT(n,t);return{concat:function(n,t){return e(t)(n)}}},nu=function(n,t){return{concat:nr(n,t).concat,empty:C}},ni=function(n,t){var e=nx(n,t);return{concat:function(n,t){return e(t)(n)}}},no=function(n){return function(){var t=nM(n);return{concat:function(n,e){return t(e)(n)}}}};function nc(){return{URI:ne,_E:void 0,map:N,mapWithIndex:U,compact:H,separate:nt,filter:j,filterMap:q,partition:K,partitionMap:G,partitionMapWithIndex:z,partitionWithIndex:V,filterMapWithIndex:B,filterWithIndex:Y}}var na={URI:ne,map:N},nf=(0,i.flap)(na),nl=function(){return{URI:ne,_E:void 0,map:N,mapWithIndex:U}},np={URI:ne,compact:H,separate:nt},nd={URI:ne,map:N,compact:H,separate:nt,filter:j,filterMap:q,partition:K,partitionMap:G},ns=function(n){var t=ng(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nh=function(n){var t=ny(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}},nm=function(n){var t=nb(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nv=function(n){var t=ns(n),e=nh(n),r=nm(n);return{URI:ne,_E:void 0,reduce:function(n,e,r){return(0,u.pipe)(n,t(e,r))},foldMap:function(n){var t=e(n);return function(n,e){return(0,u.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,u.pipe)(n,r(t,e))}}},ng=function(n){var t=v(n);return function(n,e){return function(r){for(var u=n,i=0,o=t(r);i<o.length;i++){var c=o[i];u=e(c,u,r.get(c))}return u}}},ny=function(n){var t=v(n);return function(n){return function(e){return function(r){for(var u=n.empty,i=0,o=t(r);i<o.length;i++){var c=o[i];u=n.concat(u,e(c,r.get(c)))}return u}}}},nb=function(n){var t=v(n);return function(n,e){return function(r){for(var u=n,i=t(r),o=i.length,c=o-1;c>=0;c--){var a=i[c];u=e(a,r.get(a),u)}return u}}},n_=function(n){var t=nv(n),e=ng(n),r=ny(n),i=nb(n);return{URI:ne,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(n,t,r){return(0,u.pipe)(n,e(t,r))},foldMapWithIndex:function(n){var t=r(n);return function(n,e){return(0,u.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,u.pipe)(n,i(t,e))}}},nI=function(n){var t=nR(n),e=nv(n);return{URI:ne,_E:void 0,map:N,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:t.traverse,sequence:t.sequence}},nR=function(n){var t=n_(n),e=v(n),r=function(n){return function(t,r){for(var u=n.of(new Map),i=e(t),o=i.length,c=0;c<o;c++)!function(e){var o=i[e],c=t.get(o);u=n.ap(n.map(u,function(n){return function(t){return n.set(o,t)}}),r(o,c))}(c);return u}};return{URI:ne,_E:void 0,map:N,mapWithIndex:U,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,u.SK)}},traverseWithIndex:r}};function nS(n){var t=nR(n);return{URI:ne,_E:void 0,map:N,compact:H,separate:nt,filter:j,filterMap:q,partition:K,partitionMap:G,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:U,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,np),wither:(0,f.witherDefault)(t,np)}}var nT=function(n,t){var e=O(n);return function(n){return function(r){if(h(r))return n;if(h(n))return r;for(var u,i=new Map,c=r.entries();!(u=c.next()).done;){var a=u.value,f=a[0],l=a[1],p=e(f)(n);o.pC(p)?i.set(f,t.concat(l,p.value)):i.set(f,l)}for(var d=n.entries();!(u=d.next()).done;){var s=u.value,f=s[0],l=s[1],p=e(f)(i);o.Wi(p)&&i.set(f,l)}return i}}},nx=function(n,t){var e=O(n);return function(n){return function(r){if(h(r)||h(n))return C;for(var u,i=new Map,c=r.entries();!(u=c.next()).done;){var a=u.value,f=a[0],l=a[1],p=e(f)(n);o.pC(p)&&i.set(f,t.concat(l,p.value))}return i}}},nM=function(n){var t=m(n);return function(n){return function(e){if(h(e))return n;if(h(n))return e;for(var r,u=new Map,i=e.entries();!(r=i.next()).done;){var o=r.value,c=o[0],a=o[1];t(c)(n)||u.set(c,a)}for(var f=n.entries();!(r=f.next()).done;){var l=r.value,c=l[0],a=l[1];t(c)(e)||u.set(c,a)}return u}}},nO=I,nw={URI:ne,map:N,compact:H,separate:nt,filter:j,filterMap:q,partition:K,partitionMap:G}},28350:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nz},Applicative:function(){return nN},Apply:function(){return nA},Chain:function(){return nj},Comonad:function(){return nH},Do:function(){return n$},Foldable:function(){return nG},FoldableWithIndex:function(){return nY},Functor:function(){return nW},FunctorWithIndex:function(){return nP},Monad:function(){return nK},Pointed:function(){return nU},Traversable:function(){return nB},TraversableWithIndex:function(){return nV},URI:function(){return nO},alt:function(){return nf},altW:function(){return na},ap:function(){return nl},apFirst:function(){return nL},apS:function(){return nQ},apSecond:function(){return nD},append:function(){return y},appendW:function(){return g},bind:function(){return nZ},bindTo:function(){return nX},chain:function(){return tu},chainFirst:function(){return nq},chainWithIndex:function(){return Y},chop:function(){return B},chunksOf:function(){return z},concat:function(){return F},concatAll:function(){return n3},concatW:function(){return W},cons:function(){return tl},duplicate:function(){return ns},empty:function(){return d},extend:function(){return nd},extract:function(){return nM},filter:function(){return to},filterWithIndex:function(){return tc},flap:function(){return nF},flatMap:function(){return np},flatten:function(){return nh},fold:function(){return th},foldMap:function(){return ny},foldMapWithIndex:function(){return nI},fromArray:function(){return k},fromReadonlyArray:function(){return x},getEq:function(){return nE},getSemigroup:function(){return nC},getShow:function(){return nw},getUnionSemigroup:function(){return nk},group:function(){return P},groupBy:function(){return A},groupSort:function(){return ti},head:function(){return n0},init:function(){return n5},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return G},isNonEmpty:function(){return s},isOutOfBound:function(){return h},last:function(){return n2},let:function(){return nJ},makeBy:function(){return M},map:function(){return nm},mapWithIndex:function(){return nv},matchLeft:function(){return n9},matchRight:function(){return n4},max:function(){return n8},min:function(){return n7},modifyAt:function(){return N},modifyHead:function(){return n6},modifyLast:function(){return tt},of:function(){return nc},prepend:function(){return v},prependAll:function(){return K},prependToAll:function(){return ts},prependW:function(){return m},range:function(){return w},readonlyNonEmptyArray:function(){return tm},reduce:function(){return ng},reduceRight:function(){return nb},reduceRightWithIndex:function(){return nR},reduceWithIndex:function(){return n_},replicate:function(){return O},reverse:function(){return U},rotate:function(){return T},sequence:function(){return nT},snoc:function(){return tp},sort:function(){return L},sortBy:function(){return R},splitAt:function(){return V},tail:function(){return n1},traverse:function(){return nS},traverseWithIndex:function(){return nx},unappend:function(){return E},uncons:function(){return ta},union:function(){return S},uniq:function(){return I},unprepend:function(){return C},unsafeInsertAt:function(){return b},unsafeUpdateAt:function(){return _},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return D},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:j(t,e,function(n,t){return[n,t]})}},zipWith:function(){return j}});var r=e(42925),u=e(88543),i=e(65191),o=e(42275),c=e(67560),a=e(97963),f=e(5586),l=e(3291),p=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},d=a.Xl,s=a.Od,h=function(n,t){return n<0||n>=t.length},m=function(n){return function(t){return p([n],t,!0)}},v=m,g=function(n){return function(t){return p(p([],t,!0),[n],!1)}},y=g,b=function(n,t,e){if(s(e)){var r=a.r1(e);return r.splice(n,0,t),r}return[t]},_=function(n,t,e){if(e[n]===t)return e;var r=a.r1(e);return r[n]=t,r},I=function(n){return function(t){if(1===t.length)return t;for(var e=[n0(t)],r=n1(t),u=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},i=0;i<r.length;i++)u(r[i]);return e}},R=function(n){if(s(n)){var t=(0,f.getMonoid)();return L(n.reduce(t.concat,t.empty))}return o.identity},S=function(n){var t=I(n);return function(n){return function(e){return t((0,o.pipe)(e,F(n)))}}},T=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(h(Math.abs(r),t)||0===r)return t;if(!(r<0))return T(r-e)(t);var u=V(-r)(t),i=u[0],c=u[1];return(0,o.pipe)(c,F(i))}},x=function(n){return s(n)?a.G(n):a.YP},M=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],u=1;u<e;u++)r.push(n(u));return r}},O=function(n){return M(function(){return n})},w=function(n,t){return n<=t?M(function(t){return n+t})(t-n+1):[n]},C=function(n){return[n0(n),n1(n)]},E=function(n){return[n5(n),n2(n)]},k=function(n){return x(n.slice())};function W(n){return function(t){return t.concat(n)}}function F(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var U=function(n){return 1===n.length?n:p([n2(n)],n.slice(0,-1).reverse(),!0)};function P(n){return function(t){var e=t.length;if(0===e)return d;for(var r=[],u=t[0],i=[u],o=1;o<e;o++){var c=t[o];n.equals(c,u)?i.push(c):(r.push(i),i=[u=c])}return r.push(i),r}}var A=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var u=t[r],i=n(u);a.e$.call(e,i)?e[i].push(u):e[i]=[u]}return e}},L=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},D=function(n,t){return N(n,function(){return t})},N=function(n,t){return function(e){return h(n,e)?a.YP:a.G(_(n,t(e[n]),e))}},j=function(n,t,e){for(var r=[e(n[0],t[0])],u=Math.min(n.length,t.length),i=1;i<u;i++)r[i]=e(n[i],t[i]);return r},q=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},K=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},G=function(n){return function(t){var e=n1(t);return s(e)?(0,o.pipe)(e,K(n),v(n0(t))):t}},Y=function(n){return function(t){for(var e=a.r1(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},B=function(n){return function(t){for(var e=n(t),r=e[0],u=e[1],i=[r],o=u;s(o);){var c=n(o),a=c[0],f=c[1];i.push(a),o=f}return i}},V=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[t,d]:[(0,o.pipe)(t.slice(1,e),v(n0(t))),t.slice(e)]}},z=function(n){return B(V(n))},H=function(n,t){return(0,o.pipe)(n,nm(t))},$=function(n,t){return(0,o.pipe)(n,nv(t))},X=function(n,t){return(0,o.pipe)(n,nl(t))},J=function(n,t){return(0,o.pipe)(n,nd(t))},Z=function(n,t,e){return(0,o.pipe)(n,ng(t,e))},Q=function(n){var t=ny(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nn=function(n,t,e){return(0,o.pipe)(n,nb(t,e))},nt=function(n){var t=nS(n);return function(n,e){return(0,o.pipe)(n,t(e))}},ne=function(n,t){return(0,o.pipe)(n,nf(t))},nr=function(n,t,e){return(0,o.pipe)(n,n_(t,e))},nu=function(n){var t=nI(n);return function(n,e){return(0,o.pipe)(n,t(e))}},ni=function(n,t,e){return(0,o.pipe)(n,nR(t,e))},no=function(n){var t=nx(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nc=a.ri,na=function(n){return function(t){return(0,o.pipe)(t,W(n()))}},nf=na,nl=function(n){return np(function(t){return(0,o.pipe)(n,nm(t))})},np=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,Y(function(n,e){return t(e,n)}))}),nd=function(n){return function(t){for(var e=n1(t),r=[n(t)];s(e);)r.push(n(e)),e=n1(e);return r}},ns=nd(o.identity),nh=np(o.identity),nm=function(n){return nv(function(t,e){return n(e)})},nv=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},ng=function(n,t){return n_(n,function(n,e,r){return t(e,r)})},ny=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},nb=function(n,t){return nR(n,function(n,e,r){return t(e,r)})},n_=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},nI=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,u){return n.concat(e,t(u+1,r))},t(0,e[0]))}}},nR=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},nS=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nT=function(n){return nx(n)(o.SK)},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),nc),u=1;u<e.length;u++)r=n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(u,e[u]));return r}}},nM=a.YM,nO="ReadonlyNonEmptyArray",nw=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},nC=function(){return{concat:F}},nE=function(n){return(0,i.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},nk=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},nW={URI:nO,map:H},nF=(0,c.flap)(nW),nU={URI:nO,of:nc},nP={URI:nO,map:H,mapWithIndex:$},nA={URI:nO,map:H,ap:X},nL=(0,r.apFirst)(nA),nD=(0,r.apSecond)(nA),nN={URI:nO,map:H,ap:X,of:nc},nj={URI:nO,map:H,ap:X,chain:np},nq=(0,u.chainFirst)(nj),nK={URI:nO,map:H,ap:X,of:nc,chain:np},nG={URI:nO,reduce:Z,foldMap:Q,reduceRight:nn},nY={URI:nO,reduce:Z,foldMap:Q,reduceRight:nn,reduceWithIndex:nr,foldMapWithIndex:nu,reduceRightWithIndex:ni},nB={URI:nO,map:H,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT},nV={URI:nO,map:H,mapWithIndex:$,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT,reduceWithIndex:nr,foldMapWithIndex:nu,reduceRightWithIndex:ni,traverseWithIndex:no},nz={URI:nO,map:H,alt:ne},nH={URI:nO,map:H,extend:J,extract:nM},n$=nc(a.F4),nX=(0,c.bindTo)(nW),nJ=(0,c.let)(nW),nZ=(0,u.bind)(nj),nQ=(0,r.apS)(nA),n0=nM,n1=a.Gb,n2=function(n){return n[n.length-1]},n5=function(n){return n.slice(0,-1)},n7=function(n){var t=l.min(n);return function(n){return n.reduce(t.concat)}},n8=function(n){var t=l.max(n);return function(n){return n.reduce(t.concat)}},n3=function(n){return function(t){return t.reduce(n.concat)}},n9=function(n){return function(t){return n(n0(t),n1(t))}},n4=function(n){return function(t){return n(n5(t),n2(t))}},n6=function(n){return function(t){return p([n(n0(t))],n1(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,o.pipe)(n5(t),y(n(n2(t))))}},te=function(n){return tt(function(){return n})},tr=function(n){var t=n3(n);return function(n){return(0,o.flow)(G(n),t)}},tu=np;function ti(n){var t=L(n),e=P(n);return function(n){return s(n)?e(t(n)):d}}function to(n){return tc(function(t,e){return n(e)})}var tc=function(n){return function(t){return x(t.filter(function(t,e){return n(e,t)}))}},ta=C,tf=E;function tl(n,t){return void 0===t?v(n):(0,o.pipe)(t,v(n))}var tp=function(n,t){return(0,o.pipe)(n,F([t]))},td=function(n,t){return function(e){return n<0||n>e.length?a.YP:a.G(b(n,t,e))}},ts=K,th=n3,tm={URI:nO,of:nc,map:H,mapWithIndex:$,ap:X,chain:np,extend:J,extract:nM,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nT,reduceWithIndex:nr,foldMapWithIndex:nu,reduceRightWithIndex:ni,traverseWithIndex:no,alt:ne}},97054:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nU},Filterable:function(){return nP},FilterableWithIndex:function(){return nA},Foldable:function(){return nY},FoldableWithIndex:function(){return nB},Functor:function(){return nC},FunctorWithIndex:function(){return nk},Traversable:function(){return nV},TraversableWithIndex:function(){return nz},URI:function(){return nM},Witherable:function(){return nX},_filter:function(){return nr},_filterMap:function(){return nu},_filterMapWithIndex:function(){return nd},_filterWithIndex:function(){return ns},_foldMap:function(){return nt},_foldMapWithIndex:function(){return na},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return ni},_partitionMap:function(){return no},_partitionMapWithIndex:function(){return nl},_partitionWithIndex:function(){return np},_reduce:function(){return nn},_reduceRight:function(){return ne},_reduceRightWithIndex:function(){return nf},_reduceWithIndex:function(){return nc},_sequence:function(){return nm},_traverse:function(){return nh},collect:function(){return v},compact:function(){return nT},deleteAt:function(){return I},difference:function(){return J},elem:function(){return function n(t){return function(e,r){if(void 0===r){var u=n(t);return function(n){return u(e,n)}}for(var i in r)if(t.equals(r[i],e))return!0;return!1}}},empty:function(){return O},every:function(){return z},filter:function(){return ng},filterMap:function(){return ny},filterMapWithIndex:function(){return q},filterWithIndex:function(){return K},flap:function(){return nE},foldMap:function(){return nR},foldMapWithIndex:function(){return k},fromEntries:function(){return V},fromFoldable:function(){return G},fromFoldableMap:function(){return Y},fromRecord:function(){return l},getDifferenceMagma:function(){return nG},getEq:function(){return nO},getFoldable:function(){return nW},getFoldableWithIndex:function(){return nF},getIntersectionSemigroup:function(){return nK},getMonoid:function(){return nw},getShow:function(){return function n(t){return"compare"in t?function(n){return{show:function(e){var r=v(t)(function(t,e){return"".concat(JSON.stringify(t),": ").concat(n.show(e))})(e).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:n(a.Ord)(t)}},getTraversable:function(){return nL},getTraversableWithIndex:function(){return nD},getUnionMonoid:function(){return nq},getUnionSemigroup:function(){return nj},getWitherable:function(){return nN},has:function(){return _},hasOwnProperty:function(){return nZ},insertAt:function(){return nJ},intersection:function(){return X},isEmpty:function(){return s},isSubrecord:function(){return x},keys:function(){return m},lookup:function(){return M},map:function(){return C},mapWithIndex:function(){return w},modifyAt:function(){return S},partition:function(){return nb},partitionMap:function(){return n_},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return j},pop:function(){return T},readonlyRecord:function(){return nQ},reduce:function(){return nI},reduceRight:function(){return nS},reduceRightWithIndex:function(){return W},reduceWithIndex:function(){return E},separate:function(){return nx},sequence:function(){return A},singleton:function(){return F},size:function(){return d},some:function(){return H},toEntries:function(){return B},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return y},traverse:function(){return P},traverseWithIndex:function(){return U},union:function(){return $},updateAt:function(){return R},upsertAt:function(){return b},wilt:function(){return D},wither:function(){return L}});var r=e(65191),u=e(42275),i=e(67560),o=e(97963),c=e(34219),a=e(57029),f=e(76511),l=function(n){return Object.assign({},n)},p=function(n){return Object.assign({},n)},d=function(n){return Object.keys(n).length},s=function(n){for(var t in n)if(o.e$.call(n,t))return!1;return!0},h=function(n){return function(t){return Object.keys(t).sort(n.compare)}},m=h(a.Ord);function v(n){if("function"==typeof n)return v(a.Ord)(n);var t=h(n);return function(n){return function(e){for(var r=[],u=0,i=t(e);u<i.length;u++){var o=i[u];r.push(n(o,e[o]))}return r}}}var g=v(a.Ord)(function(n,t){return[n,t]});function y(n){return function(t){var e=g(t),r=e.length;return n.unfold(0,function(n){return n<r?o.G([e[n],n+1]):o.YP})}}var b=function(n,t){return function(e){if(o.e$.call(e,n)&&e[n]===t)return e;var r=Object.assign({},e);return r[n]=t,r}},_=function(n,t){return o.e$.call(t,n)};function I(n){return function(t){if(!o.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var R=function(n,t){return function(e){if(!_(n,e))return o.YP;if(e[n]===t)return o.G(e);var r=Object.assign({},e);return r[n]=t,o.G(r)}},S=function(n,t){return function(e){if(!_(n,e))return o.YP;var r=t(e[n]);if(r===e[n])return o.G(e);var u=Object.assign({},e);return u[n]=r,o.G(u)}};function T(n){var t=I(n);return function(e){var r=M(n,e);return o.Wi(r)?o.YP:o.G([r.value,t(e)])}}function x(n){return function(t,e){if(void 0===e){var r=x(n);return function(n){return r(n,t)}}for(var u in t)if(!o.e$.call(e,u)||!n.equals(t[u],e[u]))return!1;return!0}}function M(n,t){return void 0===t?function(t){return M(n,t)}:o.e$.call(t,n)?o.G(t[n]):o.YP}var O={};function w(n){return function(t){var e={};for(var r in t)o.e$.call(t,r)&&(e[r]=n(r,t[r]));return e}}function C(n){return w(function(t,e){return n(e)})}function E(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return E(a.Ord).apply(void 0,n);var e=h(n[0]);return function(n,t){return function(r){for(var u=n,i=e(r),o=i.length,c=0;c<o;c++){var a=i[c];u=t(a,u,r[a])}return u}}}function k(n){if("compare"in n){var t=h(n);return function(n){return function(e){return function(r){for(var u=n.empty,i=t(r),o=i.length,c=0;c<o;c++){var a=i[c];u=n.concat(u,e(a,r[a]))}return u}}}}return k(a.Ord)(n)}function W(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return W(a.Ord).apply(void 0,n);var e=h(n[0]);return function(n,t){return function(r){for(var u=n,i=e(r),o=i.length,c=o-1;c>=0;c--){var a=i[c];u=t(a,r[a],u)}return u}}}var F=function(n,t){var e;return(e={})[n]=t,e};function U(n){var t=nv(a.Ord)(n);return function(n){return function(e){return t(e,n)}}}function P(n){var t=nh(a.Ord)(n);return function(n){return function(e){return t(e,n)}}}function A(n){return nm(a.Ord)(n)}var L=function(n){var t=P(n);return function(e){return function(r){return n.map((0,u.pipe)(r,t(e)),nT)}}},D=function(n){var t=P(n);return function(e){return function(r){return n.map((0,u.pipe)(r,t(e)),nx)}}};function N(n){return function(t){var e={},r={};for(var u in t)if(o.e$.call(t,u)){var i=n(u,t[u]);switch(i._tag){case"Left":e[u]=i.left;break;case"Right":r[u]=i.right}}return(0,c.separated)(e,r)}}function j(n){return function(t){var e={},r={};for(var u in t)if(o.e$.call(t,u)){var i=t[u];n(u,i)?r[u]=i:e[u]=i}return(0,c.separated)(e,r)}}function q(n){return function(t){var e={};for(var r in t)if(o.e$.call(t,r)){var u=n(r,t[r]);o.pC(u)&&(e[r]=u.value)}return e}}function K(n){return function(t){var e={},r=!1;for(var u in t)if(o.e$.call(t,u)){var i=t[u];n(u,i)?e[u]=i:r=!0}return r?e:t}}function G(n,t){var e=Y(n,t);return function(n){return e(n,u.identity)}}function Y(n,t){return function(e,r){return t.reduce(e,{},function(t,e){var u=r(e),i=u[0],c=u[1];return t[i]=o.e$.call(t,i)?n.concat(t[i],c):c,t})}}var B=g,V=function(n){for(var t={},e=0;e<n.length;e++){var r=n[e];t[r[0]]=r[1]}return t};function z(n){return function(t){for(var e in t)if(!n(t[e]))return!1;return!0}}function H(n){return function(t){for(var e in t)if(n(t[e]))return!0;return!1}}var $=function(n){return function(t){return function(e){if(s(e))return t;if(s(t))return e;var r={};for(var u in e)_(u,t)?r[u]=n.concat(e[u],t[u]):r[u]=e[u];for(var u in t)_(u,r)||(r[u]=t[u]);return r}}},X=function(n){return function(t){return function(e){if(s(e)||s(t))return O;var r={};for(var u in e)_(u,t)&&(r[u]=n.concat(e[u],t[u]));return r}}},J=function(n){return function(t){if(s(t))return n;if(s(n))return t;var e={};for(var r in t)_(r,n)||(e[r]=t[r]);for(var r in n)_(r,t)||(e[r]=n[r]);return e}},Z=function(n,t){return(0,u.pipe)(n,C(t))},Q=function(n,t){return(0,u.pipe)(n,w(t))},nn=function(n){var t=nI(n);return function(n,e,r){return(0,u.pipe)(n,t(e,r))}},nt=function(n){return function(t){var e=nR(n)(t);return function(n,t){return(0,u.pipe)(n,e(t))}}},ne=function(n){var t=nS(n);return function(n,e,r){return(0,u.pipe)(n,t(e,r))}},nr=function(n,t){return(0,u.pipe)(n,ng(t))},nu=function(n,t){return(0,u.pipe)(n,ny(t))},ni=function(n,t){return(0,u.pipe)(n,nb(t))},no=function(n,t){return(0,u.pipe)(n,n_(t))},nc=function(n){var t=E(n);return function(n,e,r){return(0,u.pipe)(n,t(e,r))}},na=function(n){var t=k(n);return function(n){var e=t(n);return function(n,t){return(0,u.pipe)(n,e(t))}}},nf=function(n){var t=W(n);return function(n,e,r){return(0,u.pipe)(n,t(e,r))}},nl=function(n,t){return(0,u.pipe)(n,N(t))},np=function(n,t){return(0,u.pipe)(n,j(t))},nd=function(n,t){return(0,u.pipe)(n,q(t))},ns=function(n,t){return(0,u.pipe)(n,K(t))},nh=function(n){var t=nv(n);return function(n){var e=t(n);return function(n,t){return e(n,(0,u.flow)(u.SK,t))}}},nm=function(n){var t=nh(n);return function(n){var e=t(n);return function(n){return e(n,u.identity)}}},nv=function(n){return function(t){var e=h(n);return function(n,r){var u=e(n);if(0===u.length)return t.of(O);for(var i=t.of({}),o=function(e){i=t.ap(t.map(i,function(n){return function(t){var r;return Object.assign({},n,((r={})[e]=t,r))}}),r(e,n[e]))},c=0;c<u.length;c++)o(u[c]);return i}}},ng=function(n){return K(function(t,e){return n(e)})},ny=function(n){return q(function(t,e){return n(e)})},nb=function(n){return j(function(t,e){return n(e)})},n_=function(n){return N(function(t,e){return n(e)})};function nI(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=E(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nI(a.Ord).apply(void 0,n)}function nR(n){if("compare"in n){var t=k(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}}return nR(a.Ord)(n)}function nS(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=W(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nS(a.Ord).apply(void 0,n)}var nT=function(n){var t={};for(var e in n)if(o.e$.call(n,e)){var r=n[e];o.pC(r)&&(t[e]=r.value)}return t},nx=function(n){var t={},e={};for(var r in n)if(o.e$.call(n,r)){var u=n[r];o.nM(u)?t[r]=u.left:e[r]=u.right}return(0,c.separated)(t,e)},nM="ReadonlyRecord";function nO(n){var t=x(n);return(0,r.fromEquals)(function(n,e){return t(n)(e)&&t(e)(n)})}function nw(n){return{concat:function(t,e){if(s(t))return e;if(s(e))return t;var r=Object.assign({},t);for(var u in e)o.e$.call(e,u)&&(r[u]=o.e$.call(t,u)?n.concat(t[u],e[u]):e[u]);return r},empty:O}}var nC={URI:nM,map:Z},nE=(0,i.flap)(nC),nk={URI:nM,map:Z,mapWithIndex:Q},nW=function(n){return{URI:nM,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n)}},nF=function(n){return{URI:nM,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:nc(n),foldMapWithIndex:na(n),reduceRightWithIndex:nf(n)}},nU={URI:nM,compact:nT,separate:nx},nP={URI:nM,map:Z,compact:nT,separate:nx,filter:nr,filterMap:nu,partition:ni,partitionMap:no},nA={URI:nM,map:Z,mapWithIndex:Q,compact:nT,separate:nx,filter:nr,filterMap:nu,partition:ni,partitionMap:no,filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np},nL=function(n){return{URI:nM,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:nh(n),sequence:nm(n)}},nD=function(n){return{URI:nM,map:Z,mapWithIndex:Q,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:nc(n),foldMapWithIndex:na(n),reduceRightWithIndex:nf(n),traverse:nh(n),sequence:nm(n),traverseWithIndex:nv(n)}},nN=function(n){var t=nL(n);return{URI:nM,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:t.traverse,sequence:t.sequence,compact:nT,separate:nx,filter:nr,filterMap:nu,partition:ni,partitionMap:no,wither:(0,f.witherDefault)(t,nU),wilt:(0,f.wiltDefault)(t,nU)}},nj=function(n){var t=$(n);return{concat:function(n,e){return t(e)(n)}}},nq=function(n){return{concat:nj(n).concat,empty:O}},nK=function(n){var t=X(n);return{concat:function(n,e){return t(e)(n)}}},nG=function(){return{concat:function(n,t){return J(t)(n)}}},nY={URI:nM,reduce:nn(a.Ord),foldMap:nt(a.Ord),reduceRight:ne(a.Ord)},nB={URI:nM,reduce:nn(a.Ord),foldMap:nt(a.Ord),reduceRight:ne(a.Ord),reduceWithIndex:nc(a.Ord),foldMapWithIndex:na(a.Ord),reduceRightWithIndex:nf(a.Ord)},nV={URI:nM,map:Z,reduce:nn(a.Ord),foldMap:nt(a.Ord),reduceRight:ne(a.Ord),traverse:nh(a.Ord),sequence:A},nz={URI:nM,map:Z,mapWithIndex:Q,reduce:nn(a.Ord),foldMap:nt(a.Ord),reduceRight:ne(a.Ord),reduceWithIndex:nc(a.Ord),foldMapWithIndex:na(a.Ord),reduceRightWithIndex:nf(a.Ord),traverse:nh(a.Ord),sequence:A,traverseWithIndex:nv(a.Ord)},nH=(0,f.witherDefault)(nV,nU),n$=(0,f.wiltDefault)(nV,nU),nX={URI:nM,map:Z,reduce:nn(a.Ord),foldMap:nt(a.Ord),reduceRight:ne(a.Ord),traverse:nh(a.Ord),sequence:A,compact:nT,separate:nx,filter:nr,filterMap:nu,partition:ni,partitionMap:no,wither:nH,wilt:n$},nJ=b;function nZ(n,t){return o.e$.call(void 0===t?this:t,n)}var nQ={URI:nM,map:Z,reduce:nn(a.Ord),foldMap:nt(a.Ord),reduceRight:ne(a.Ord),traverse:nh(a.Ord),sequence:A,compact:nT,separate:nx,filter:nr,filterMap:nu,partition:ni,partitionMap:no,mapWithIndex:Q,reduceWithIndex:nc(a.Ord),foldMapWithIndex:na(a.Ord),reduceRightWithIndex:nf(a.Ord),filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np,traverseWithIndex:nv(a.Ord),wither:nH,wilt:n$}},99156:function(n,t,e){e.r(t),e.d(t,{URI:function(){return A},chain:function(){return d},compact:function(){return x},difference:function(){return y},elem:function(){return U},empty:function(){return w},every:function(){return W},filter:function(){return s},filterMap:function(){return O},foldMap:function(){return _},fromArray:function(){return G},fromReadonlyArray:function(){return f},fromSet:function(){return c},getDifferenceMagma:function(){return K},getEq:function(){return D},getIntersectionSemigroup:function(){return q},getShow:function(){return L},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return N},insert:function(){return R},intersection:function(){return v},isEmpty:function(){return C},isSubset:function(){return F},map:function(){return p},partition:function(){return h},partitionMap:function(){return g},reduce:function(){return b},reduceRight:function(){return I},remove:function(){return S},separate:function(){return M},singleton:function(){return a},size:function(){return E},some:function(){return k},toReadonlyArray:function(){return P},toSet:function(){return l},toggle:function(){return T},union:function(){return m}});var r=e(65191),u=e(42275),i=e(88491),o=e(34219),c=function(n){return new Set(n)},a=function(n){return new Set([n])},f=function(n){return function(t){for(var e=t.length,r=new Set,u=U(n),i=0;i<e;i++){var o=t[i];u(o,r)||r.add(o)}return r}};function l(n){return new Set(n)}function p(n){var t=U(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);t(u,r)||r.add(u)}),r}}}function d(n){var t=U(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function s(n){return function(t){for(var e,r=t.values(),u=new Set;!(e=r.next()).done;){var i=e.value;n(i)&&u.add(i)}return u}}function h(n){return function(t){for(var e,r=t.values(),u=new Set,i=new Set;!(e=r.next()).done;){var c=e.value;n(c)?u.add(c):i.add(c)}return(0,o.separated)(i,u)}}function m(n){var t=U(n);return function(e,r){if(void 0===r){var u=m(n);return function(n){return u(e,n)}}if(C(e))return r;if(C(r))return e;var i=new Set(e);return r.forEach(function(n){t(n,i)||i.add(n)}),i}}function v(n){var t=U(n);return function(e,r){if(void 0===r){var u=v(n);return function(n){return u(n,e)}}if(C(e)||C(r))return w;var i=new Set;return e.forEach(function(n){t(n,r)&&i.add(n)}),i}}function g(n,t){return function(e){return function(r){for(var u,i=r.values(),c=new Set,a=new Set,f=U(n),l=U(t);!(u=i.next()).done;){var p=e(u.value);switch(p._tag){case"Left":f(p.left,c)||c.add(p.left);break;case"Right":l(p.right,a)||a.add(p.right)}}return(0,o.separated)(c,a)}}}function y(n){var t=U(n);return function(e,r){if(void 0===r){var u=y(n);return function(n){return u(n,e)}}return s(function(n){return!t(n,r)})(e)}}function b(n){var t=P(n);return function(n,e){return function(r){return t(r).reduce(e,n)}}}function _(n,t){var e=P(n);return function(n){return function(r){return e(r).reduce(function(e,r){return t.concat(e,n(r))},t.empty)}}}var I=function(n){var t=P(n);return function(n,e){return function(r){return t(r).reduceRight(function(n,t){return e(t,n)},n)}}};function R(n){var t=U(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var S=function(n){return function(t){return function(e){return s(function(e){return!n.equals(t,e)})(e)}}},T=function(n){var t=U(n),e=S(n),r=R(n);return function(n){return function(u){return(t(n,u)?e:r)(n)(u)}}},x=function(n){return O(n)(u.identity)};function M(n,t){return function(e){var r=U(n),u=U(t),i=new Set,c=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,i)||i.add(n.left);break;case"Right":u(n.right,c)||c.add(n.right)}}),(0,o.separated)(i,c)}}function O(n){var t=U(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);"Some"!==u._tag||t(u.value,r)||r.add(u.value)}),r}}}var w=new Set,C=function(n){return 0===n.size},E=function(n){return n.size},k=function(n){return function(t){for(var e,r=t.values(),u=!1;!u&&!(e=r.next()).done;)u=n(e.value);return u}};function W(n){return(0,i.not)(k((0,i.not)(n)))}function F(n){var t=U(n);return function(e,r){if(void 0===r){var u=F(n);return function(n){return u(n,e)}}return W(function(n){return t(n,r)})(e)}}function U(n){return function(t,e){if(void 0===e){var r,u=U(n);return function(n){return u(t,n)}}for(var i=e.values(),o=!1;!o&&!(r=i.next()).done;)o=n.equals(t,r.value);return o}}var P=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},A="ReadonlySet";function L(n){return{show:function(t){var e=[];return t.forEach(function(t){e.push(n.show(t))}),"new Set([".concat(e.sort().join(", "),"])")}}}function D(n){var t=F(n);return(0,r.fromEquals)(function(n,e){return t(n,e)&&t(e,n)})}var N=function(n){return{concat:m(n)}},j=function(n){return{concat:N(n).concat,empty:w}},q=function(n){return{concat:v(n)}},K=function(n){return{concat:y(n)}},G=f},3291:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return h},fold:function(){return O},getDualSemigroup:function(){return S},getFirstSemigroup:function(){return _},getFunctionSemigroup:function(){return E},getIntercalateSemigroup:function(){return M},getJoinSemigroup:function(){return T},getLastSemigroup:function(){return b},getMeetSemigroup:function(){return x},getObjectSemigroup:function(){return y},getStructSemigroup:function(){return R},getTupleSemigroup:function(){return I},intercalate:function(){return s},last:function(){return m},max:function(){return a},min:function(){return c},reverse:function(){return l},semigroupAll:function(){return w},semigroupAny:function(){return C},semigroupProduct:function(){return F},semigroupString:function(){return k},semigroupSum:function(){return W},semigroupVoid:function(){return g},struct:function(){return p},tuple:function(){return d}});var r=e(42275),u=e(97963),i=e(76113),o=e(5586),c=function(n){return{concat:o.min(n)}},a=function(n){return{concat:o.max(n)}},f=function(n){return{concat:function(){return n}}},l=i.reverse,p=function(n){return{concat:function(t,e){var r={};for(var i in n)u.e$.call(n,i)&&(r[i]=n[i].concat(t[i],e[i]));return r}}},d=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},s=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},h=function(){return{concat:r.identity}},m=function(){return{concat:function(n,t){return t}}},v=i.concatAll,g=f(void 0),y=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},b=m,_=h,I=d,R=p,S=l,T=a,x=c,M=s;function O(n){var t=v(n);return function(n,e){return void 0===e?t(n):t(n)(e)}}var w={concat:function(n,t){return n&&t}},C={concat:function(n,t){return n||t}},E=r.getSemigroup,k={concat:function(n,t){return n+t}},W={concat:function(n,t){return n+t}},F={concat:function(n,t){return n*t}}},34219:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return a},flap:function(){return d},left:function(){return s},map:function(){return o},mapLeft:function(){return c},right:function(){return h},separated:function(){return i}});var r=e(42275),u=e(67560),i=function(n,t){return{left:n,right:t}},o=function(n){return function(t){return i(s(t),n(h(t)))}},c=function(n){return function(t){return i(n(s(t)),h(t))}},a=function(n,t){return function(e){return i(n(s(e)),t(h(e)))}},f="Separated",l={URI:f,mapLeft:function(n,t){return(0,r.pipe)(n,c(t))},bimap:function(n,t,e){return(0,r.pipe)(n,a(t,e))}},p={URI:f,map:function(n,t){return(0,r.pipe)(n,o(t))}},d=(0,u.flap)(p),s=function(n){return n.left},h=function(n){return n.right}},1214:function(n,t,e){e.r(t),e.d(t,{chain:function(){return f},compact:function(){return w},difference:function(){return m},elem:function(){return L},empty:function(){return k},every:function(){return P},filter:function(){return l},filterMap:function(){return E},foldMap:function(){return I},fromArray:function(){return O},getDifferenceMagma:function(){return b},getEq:function(){return c},getIntersectionSemigroup:function(){return y},getShow:function(){return o},getUnionMonoid:function(){return g},getUnionSemigroup:function(){return v},insert:function(){return T},intersection:function(){return s},isEmpty:function(){return W},isSubset:function(){return A},map:function(){return a},partition:function(){return p},partitionMap:function(){return h},reduce:function(){return _},reduceRight:function(){return R},remove:function(){return x},separate:function(){return C},singleton:function(){return S},size:function(){return F},some:function(){return U},subset:function(){return N},toArray:function(){return D},toggle:function(){return M},union:function(){return d}});var r=e(42275),u=e(99156),i=e(34219),o=u.getShow,c=u.getEq;function a(n){var t=L(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);t(u,r)||r.add(u)}),r}}}function f(n){var t=L(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function l(n){return function(t){for(var e,r=t.values(),u=new Set;!(e=r.next()).done;){var i=e.value;n(i)&&u.add(i)}return u}}function p(n){return function(t){for(var e,r=t.values(),u=new Set,o=new Set;!(e=r.next()).done;){var c=e.value;n(c)?u.add(c):o.add(c)}return(0,i.separated)(o,u)}}function d(n){var t=L(n);return function(e,r){if(void 0===r){var u=d(n);return function(n){return u(e,n)}}if(W(e))return r;if(W(r))return e;var i=new Set(e);return r.forEach(function(n){t(n,i)||i.add(n)}),i}}function s(n){var t=L(n);return function(e,r){if(void 0===r){var u=s(n);return function(n){return u(n,e)}}if(W(e)||W(r))return new Set;var i=new Set;return e.forEach(function(n){t(n,r)&&i.add(n)}),i}}function h(n,t){return function(e){return function(r){for(var u,o=r.values(),c=new Set,a=new Set,f=L(n),l=L(t);!(u=o.next()).done;){var p=e(u.value);switch(p._tag){case"Left":f(p.left,c)||c.add(p.left);break;case"Right":l(p.right,a)||a.add(p.right)}}return(0,i.separated)(c,a)}}}function m(n){var t=L(n);return function(e,r){if(void 0===r){var u=m(n);return function(n){return u(n,e)}}return l(function(n){return!t(n,r)})(e)}}var v=function(n){return{concat:d(n)}},g=function(n){return{concat:v(n).concat,empty:new Set}},y=function(n){return{concat:s(n)}},b=function(n){return{concat:m(n)}},_=u.reduce,I=u.foldMap,R=u.reduceRight,S=function(n){return new Set([n])};function T(n){var t=L(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var x=function(n){return function(t){return function(e){return l(function(e){return!n.equals(t,e)})(e)}}},M=function(n){var t=L(n),e=x(n),r=T(n);return function(n){return function(u){return(t(n,u)?e:r)(n)(u)}}},O=function(n){return function(t){for(var e=t.length,r=new Set,u=L(n),i=0;i<e;i++){var o=t[i];u(o,r)||r.add(o)}return r}},w=function(n){return E(n)(r.identity)};function C(n,t){return function(e){var r=L(n),u=L(t),o=new Set,c=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,o)||o.add(n.left);break;case"Right":u(n.right,c)||c.add(n.right)}}),(0,i.separated)(o,c)}}function E(n){var t=L(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);"Some"!==u._tag||t(u.value,r)||r.add(u.value)}),r}}}var k=new Set,W=function(n){return 0===n.size},F=function(n){return n.size},U=u.some,P=u.every,A=u.isSubset,L=u.elem,D=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},N=u.isSubset},76511:function(n,t,e){e.r(t),e.d(t,{filterE:function(){return o},wiltDefault:function(){return u},witherDefault:function(){return i}});var r=e(97963);function u(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.separate)}}}function i(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.compact)}}}function o(n){return function(t){var e=n.wither(t);return function(n){return function(u){return e(u,function(e){return t.map(n(e),function(n){return n?r.G(e):r.YP})})}}}}},28957:function(n,t,e){function r(n,t){return function(e){return e?t.of(void 0):n.zero()}}e.r(t),e.d(t,{guard:function(){return r}})},42275:function(n,t,e){e.r(t),e.d(t,{SK:function(){return w},absurd:function(){return S},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return g},constant:function(){return d},decrement:function(){return R},dual:function(){return k},flip:function(){return y},flow:function(){return b},getBooleanAlgebra:function(){return u},getEndomorphismMonoid:function(){return E},getMonoid:function(){return o},getRing:function(){return a},getSemigroup:function(){return i},getSemiring:function(){return c},hole:function(){return O},identity:function(){return l},increment:function(){return I},not:function(){return C},pipe:function(){return M},tuple:function(){return _},tupled:function(){return T},unsafeCoerce:function(){return p},untupled:function(){return x}});var r=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},u=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},i=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},o=function(n){var t=i(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},c=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},a=function(n){var t=c(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},f=function(n){return function(t){return t(n)}};function l(n){return n}var p=l;function d(n){return function(){return n}}var s=d(!0),h=d(!1),m=d(null),v=d(void 0),g=v;function y(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}}function b(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return c(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return a(c(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}}function _(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n}function I(n){return n+1}function R(n){return n-1}function S(n){throw Error("Called `absurd` function which should be uncallable")}function T(n){return function(t){return n.apply(void 0,t)}}function x(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}}function M(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return c(o(i(u(r(e(t(n)))))));case 9:return a(c(o(i(u(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var O=S,w=function(n,t){return t};function C(n){return function(t){return!n(t)}}var E=function(){return{concat:function(n,t){return b(n,t)},empty:l}},k=function(n,t){var e="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return e(arguments)?t.apply(this,n):function(e){return t.apply(void 0,r([e],n,!1))}}}},9554:function(n,t,e){e.r(t),e.d(t,{alt:function(){return r},alternative:function(){return u},applicative:function(){return nK},apply:function(){return nN},array:function(){return nG},bifunctor:function(){return i},boolean:function(){return o},booleanAlgebra:function(){return c},bounded:function(){return a},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return p},boundedLattice:function(){return d},boundedMeetSemilattice:function(){return s},category:function(){return h},chain:function(){return ti},chainRec:function(){return to},choice:function(){return m},comonad:function(){return v},compactable:function(){return g},console:function(){return y},const:function(){return tI},contravariant:function(){return b},date:function(){return _},distributiveLattice:function(){return f},either:function(){return tE},eitherT:function(){return I},endomorphism:function(){return t7},eq:function(){return t8},extend:function(){return R},field:function(){return S},filterable:function(){return T},filterableWithIndex:function(){return x},foldable:function(){return M},foldableWithIndex:function(){return O},fromEither:function(){return eb},fromIO:function(){return w},fromReader:function(){return E},fromState:function(){return W},fromTask:function(){return F},fromThese:function(){return U},function:function(){return n5},functor:function(){return tp},functorWithIndex:function(){return P},group:function(){return A},heytingAlgebra:function(){return L},hkt:function(){return D},identity:function(){return N},invariant:function(){return j},io:function(){return q},ioEither:function(){return K},ioOption:function(){return Y},ioRef:function(){return B},joinSemilattice:function(){return V},json:function(){return z},lattice:function(){return H},magma:function(){return fy},map:function(){return fb},meetSemilattice:function(){return $},monad:function(){return X},monadIO:function(){return J},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return f_},naturalTransformation:function(){return nn},nonEmptyArray:function(){return fI},number:function(){return tR},option:function(){return td},optionT:function(){return G},ord:function(){return n6},ordering:function(){return nt},pipeable:function(){return fF},pointed:function(){return ne},predicate:function(){return t6},profunctor:function(){return nr},random:function(){return nu},reader:function(){return C},readerEither:function(){return ni},readerIO:function(){return nc},readerT:function(){return no},readerTask:function(){return nf},readerTaskEither:function(){return np},readonlyArray:function(){return _b},readonlyMap:function(){return __},readonlyNonEmptyArray:function(){return _I},readonlyRecord:function(){return _R},readonlySet:function(){return _S},readonlyTuple:function(){return nd},record:function(){return ns},refinement:function(){return nh},ring:function(){return nm},semigroup:function(){return It},semigroupoid:function(){return nv},semiring:function(){return ng},separated:function(){return ts},set:function(){return RZ},show:function(){return ny},state:function(){return k},stateReaderTaskEither:function(){return n_},stateT:function(){return nb},store:function(){return nI},string:function(){return Ie},strong:function(){return nR},struct:function(){return nS},task:function(){return na},taskEither:function(){return nl},taskOption:function(){return nT},taskThese:function(){return nO},these:function(){return nx},theseT:function(){return nM},traced:function(){return nw},traversable:function(){return nC},traversableWithIndex:function(){return nE},tree:function(){return nk},tuple:function(){return nW},unfoldable:function(){return nF},validationT:function(){return nU},void:function(){return nP},witherable:function(){return Ir},writer:function(){return nA},writerT:function(){return nL},zero:function(){return c5}});var r={};e.r(r),e.d(r,{altAll:function(){return nD}});var u={};e.r(u),e.d(u,{altAll:function(){return nj},getAlternativeMonoid:function(){return nq}});var i={};e.r(i);var o={};e.r(o),e.d(o,{BooleanAlgebra:function(){return nX},Eq:function(){return n$},MonoidAll:function(){return nQ},MonoidAny:function(){return n0},Ord:function(){return n1},SemigroupAll:function(){return nJ},SemigroupAny:function(){return nZ},Show:function(){return n2},fold:function(){return nH},foldW:function(){return nV},isBoolean:function(){return nY},match:function(){return nz},matchW:function(){return nB}});var c={};e.r(c),e.d(c,{booleanAlgebraBoolean:function(){return n9},booleanAlgebraVoid:function(){return n8},getDualBooleanAlgebra:function(){return n3},getFunctionBooleanAlgebra:function(){return n4},reverse:function(){return n7}});var a={};e.r(a),e.d(a,{boundedNumber:function(){return te},clamp:function(){return tn},reverse:function(){return tt}});var f={};e.r(f),e.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};e.r(l),e.d(l,{getMinMaxBoundedDistributiveLattice:function(){return tu}});var p={};e.r(p);var d={};e.r(d);var s={};e.r(s);var h={};e.r(h);var m={};e.r(m),e.d(m,{fanIn:function(){return ta},fanin:function(){return tl},split:function(){return tc},splitChoice:function(){return tf}});var v={};e.r(v);var g={};e.r(g),e.d(g,{compact:function(){return th},getCompactableComposition:function(){return tv},separate:function(){return tm}});var y={};e.r(y),e.d(y,{error:function(){return tb},info:function(){return t_},log:function(){return tg},warn:function(){return ty}});var b={};e.r(b);var _={};e.r(_),e.d(_,{Eq:function(){return tS},Ord:function(){return tO},create:function(){return tw},eqDate:function(){return tT},eqMonth:function(){return tx},eqYear:function(){return tM},now:function(){return tC}});var I={};e.r(I),e.d(I,{alt:function(){return tK},altValidation:function(){return tz},ap:function(){return tN},bimap:function(){return tG},chain:function(){return tj},chainNullableK:function(){return tL},flatMap:function(){return tq},fromNullable:function(){return tP},fromNullableK:function(){return tA},getEitherM:function(){return t5},getOrElse:function(){return tX},left:function(){return tW},leftF:function(){return tU},map:function(){return tD},mapBoth:function(){return tY},mapError:function(){return tV},mapLeft:function(){return tB},match:function(){return tH},matchE:function(){return t$},orElse:function(){return tJ},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tk},rightF:function(){return tF},swap:function(){return t1},tapError:function(){return tQ},toUnion:function(){return t2}});var R={};e.r(R);var S={};e.r(S),e.d(S,{fieldNumber:function(){return t4},gcd:function(){return t3},lcm:function(){return t9}});var T={};e.r(T),e.d(T,{filter:function(){return en},filterMap:function(){return et},getFilterableComposition:function(){return eu},partition:function(){return ee},partitionMap:function(){return er}});var x={};e.r(x);var M={};e.r(M),e.d(M,{foldM:function(){return ed},foldMap:function(){return eo},getFoldableComposition:function(){return eh},intercalate:function(){return ef},reduce:function(){return ei},reduceM:function(){return ea},reduceRight:function(){return ec},toArray:function(){return es},toReadonlyArray:function(){return el},traverse_:function(){return ep}});var O={};e.r(O),e.d(O,{foldMapWithIndex:function(){return ev},getFoldableWithIndexComposition:function(){return ey},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return em}});var w={};e.r(w),e.d(w,{chainFirstIOK:function(){return eR},chainIOK:function(){return eI},fromIOK:function(){return e_},tapIO:function(){return eS}});var C={};e.r(C),e.d(C,{ApT:function(){return ra},Applicative:function(){return e5},Apply:function(){return eZ},Category:function(){return e4},Chain:function(){return e7},Choice:function(){return rn},Do:function(){return ri},Functor:function(){return e$},Monad:function(){return e8},Pointed:function(){return eJ},Profunctor:function(){return e9},Strong:function(){return e6},URI:function(){return eH},ap:function(){return eA},apFirst:function(){return eQ},apFirstW:function(){return e0},apS:function(){return ro},apSW:function(){return rc},apSecond:function(){return e1},apSecondW:function(){return e2},apW:function(){return eP},ask:function(){return ex},asks:function(){return eM},asksReader:function(){return eC},asksReaderW:function(){return ew},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ru},chain:function(){return rm},chainFirst:function(){return rv},chainFirstW:function(){return rg},chainW:function(){return rh},compose:function(){return eq},first:function(){return eY},flap:function(){return eX},flatMap:function(){return eD},flatten:function(){return ej},flattenW:function(){return eN},getMonoid:function(){return r_},getSemigroup:function(){return rb},id:function(){return eG},left:function(){return eV},let:function(){return re},local:function(){return eO},map:function(){return eU},of:function(){return eL},promap:function(){return eK},reader:function(){return ry},right:function(){return ez},second:function(){return eB},sequenceArray:function(){return rs},tap:function(){return e3},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var E={};e.r(E),e.d(E,{ask:function(){return rI},asks:function(){return rR},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rT},fromReaderK:function(){return rS},tapReader:function(){return rM}});var k={};e.r(k),e.d(k,{Applicative:function(){return rB},Apply:function(){return rK},Chain:function(){return rV},FromState:function(){return r$},Functor:function(){return rN},Monad:function(){return rz},Pointed:function(){return rq},URI:function(){return rD},ap:function(){return rU},apFirst:function(){return rG},apS:function(){return r1},apSecond:function(){return rY},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r9},chainFirst:function(){return r4},evalState:function(){return r6},evaluate:function(){return rX},execState:function(){return un},execute:function(){return rJ},flap:function(){return rj},flatMap:function(){return rA},flatten:function(){return rL},get:function(){return rO},gets:function(){return rE},let:function(){return rQ},map:function(){return rF},modify:function(){return rC},of:function(){return rP},put:function(){return rw},sequenceArray:function(){return r3},state:function(){return ut},tap:function(){return rH},traverseArray:function(){return r8},traverseArrayWithIndex:function(){return r7},traverseReadonlyArrayWithIndex:function(){return r5},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var W={};e.r(W),e.d(W,{chainStateK:function(){return uc},fromStateK:function(){return uo},get:function(){return ue},gets:function(){return ui},modify:function(){return uu},put:function(){return ur}});var F={};e.r(F),e.d(F,{chainFirstTaskK:function(){return ul},chainTaskK:function(){return uf},fromTaskK:function(){return ua},tapTask:function(){return up}});var U={};e.r(U),e.d(U,{fromTheseK:function(){return ud}});var P={};e.r(P),e.d(P,{getFunctorWithIndexComposition:function(){return uh},mapWithIndex:function(){return us}});var A={};e.r(A);var L={};e.r(L);var D={};e.r(D);var N={};e.r(N),e.d(N,{Alt:function(){return u0},Applicative:function(){return uH},Apply:function(){return uB},Chain:function(){return u$},ChainRec:function(){return u2},Comonad:function(){return u1},Do:function(){return u5},Foldable:function(){return uZ},Functor:function(){return uK},Monad:function(){return uX},Pointed:function(){return uY},Traversable:function(){return uQ},URI:function(){return uN},alt:function(){return uD},altW:function(){return uL},ap:function(){return ux},apFirst:function(){return uV},apS:function(){return u9},apSecond:function(){return uz},bind:function(){return u3},bindTo:function(){return u7},chain:function(){return u4},chainFirst:function(){return uJ},duplicate:function(){return uE},extend:function(){return uw},extract:function(){return uC},flap:function(){return uG},flatMap:function(){return uO},flatten:function(){return uk},foldMap:function(){return uF},getEq:function(){return uq},getShow:function(){return uj},identity:function(){return u6},let:function(){return u8},map:function(){return uT},of:function(){return uM},reduce:function(){return uW},reduceRight:function(){return uU},sequence:function(){return uA},traverse:function(){return uP}});var j={};e.r(j);var q={};e.r(q),e.d(q,{ApT:function(){return iW},Applicative:function(){return ib},Apply:function(){return iv},Chain:function(){return i_},ChainRec:function(){return ix},Do:function(){return iO},FromIO:function(){return iM},Functor:function(){return ip},Monad:function(){return iI},MonadIO:function(){return iT},Pointed:function(){return im},URI:function(){return il},ap:function(){return ii},apFirst:function(){return ig},apS:function(){return ik},apSecond:function(){return iy},as:function(){return id},asUnit:function(){return is},bind:function(){return iE},bindTo:function(){return iw},chain:function(){return iD},chainFirst:function(){return iN},flap:function(){return ih},flatMap:function(){return ic},flatten:function(){return ia},fromIO:function(){return iS},getMonoid:function(){return iK},getSemigroup:function(){return iq},io:function(){return ij},let:function(){return iC},map:function(){return iu},of:function(){return io},sequenceArray:function(){return iL},tap:function(){return iR},traverseArray:function(){return iA},traverseArrayWithIndex:function(){return iP},traverseReadonlyArrayWithIndex:function(){return iU},traverseReadonlyNonEmptyArrayWithIndex:function(){return iF}});var K={};e.r(K),e.d(K,{Alt:function(){return oY},ApT:function(){return cm},Applicative:function(){return cM},ApplicativePar:function(){return oP},ApplicativeSeq:function(){return oA},ApplyPar:function(){return oE},Bifunctor:function(){return oC},Chain:function(){return oL},Do:function(){return ca},FromEither:function(){return oN},FromIO:function(){return oj},Functor:function(){return oT},Monad:function(){return oD},MonadIO:function(){return oB},MonadThrow:function(){return oV},Pointed:function(){return ow},URI:function(){return ob},alt:function(){return ov},altW:function(){return og},ap:function(){return ol},apFirst:function(){return ok},apFirstW:function(){return oW},apS:function(){return cs},apSW:function(){return ch},apSecond:function(){return oF},apSecondW:function(){return oU},apW:function(){return op},as:function(){return ox},asUnit:function(){return oM},bimap:function(){return oc},bind:function(){return cp},bindTo:function(){return cf},bindW:function(){return cd},bracket:function(){return co},bracketW:function(){return cc},chain:function(){return cO},chainEitherK:function(){return o4},chainEitherKW:function(){return o6},chainFirst:function(){return cC},chainFirstEitherK:function(){return cn},chainFirstEitherKW:function(){return ct},chainFirstIOK:function(){return oH},chainFirstW:function(){return cE},chainIOK:function(){return o9},chainOptionK:function(){return oJ},chainOptionKW:function(){return oZ},chainW:function(){return cw},filterOrElse:function(){return cr},filterOrElseW:function(){return cu},flap:function(){return oO},flatMap:function(){return os},flatMapEither:function(){return o8},flatMapIO:function(){return o3},flatMapNullable:function(){return o5},flatMapOption:function(){return o7},flatten:function(){return om},flattenW:function(){return oh},fold:function(){return iZ},foldW:function(){return i0},fromEither:function(){return iz},fromEitherK:function(){return ci},fromIO:function(){return iH},fromIOK:function(){return oz},fromOption:function(){return o$},fromOptionK:function(){return oX},fromPredicate:function(){return ce},getAltIOValidation:function(){return oI},getApplicativeIOValidation:function(){return o_},getApplyMonoid:function(){return cP},getApplySemigroup:function(){return cU},getCompactable:function(){return oR},getFilterable:function(){return oS},getIOValidation:function(){return cL},getOrElse:function(){return i1},getOrElseW:function(){return i2},getSemigroup:function(){return cA},ioEither:function(){return cF},left:function(){return iG},leftIO:function(){return iV},let:function(){return cl},liftNullable:function(){return o0},liftOption:function(){return o1},map:function(){return oi},mapBoth:function(){return oo},mapError:function(){return oa},mapLeft:function(){return of},match:function(){return i$},matchE:function(){return iJ},matchEW:function(){return iQ},matchW:function(){return iX},of:function(){return od},orElse:function(){return i3},orElseFirst:function(){return ck},orElseFirstIOK:function(){return i6},orElseFirstW:function(){return cW},orElseW:function(){return i9},orLeft:function(){return on},right:function(){return iY},rightIO:function(){return iB},sequenceArray:function(){return cR},sequenceSeqArray:function(){return cx},swap:function(){return ot},tap:function(){return oq},tapEither:function(){return oK},tapError:function(){return i4},tapIO:function(){return oG},throwError:function(){return oy},toUnion:function(){return i8},traverseArray:function(){return cI},traverseArrayWithIndex:function(){return c_},traverseReadonlyArrayWithIndex:function(){return cg},traverseReadonlyArrayWithIndexSeq:function(){return cb},traverseReadonlyNonEmptyArrayWithIndex:function(){return cv},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return cy},traverseSeqArray:function(){return cT},traverseSeqArrayWithIndex:function(){return cS},tryCatch:function(){return i5},tryCatchK:function(){return i7}});var G={};e.r(G),e.d(G,{alt:function(){return c1},ap:function(){return cZ},chain:function(){return cQ},chainNullableK:function(){return cG},chainOptionK:function(){return cB},flatMap:function(){return c0},fromEither:function(){return cz},fromF:function(){return cj},fromNullable:function(){return cq},fromNullableK:function(){return cK},fromOptionK:function(){return cY},fromPredicate:function(){return cV},getOptionM:function(){return c2},getOrElse:function(){return cX},map:function(){return cJ},match:function(){return cH},matchE:function(){return c$},some:function(){return cD},zero:function(){return cN}});var Y={};e.r(Y),e.d(Y,{Alt:function(){return az},Alternative:function(){return aX},ApT:function(){return ff},Applicative:function(){return aj},Apply:function(){return aL},Chain:function(){return aq},Compactable:function(){return aQ},Do:function(){return fu},Filterable:function(){return a0},FromEither:function(){return aK},FromIO:function(){return aG},Functor:function(){return aW},Monad:function(){return aJ},MonadIO:function(){return aZ},Pointed:function(){return aA},URI:function(){return ak},Zero:function(){return aH},alt:function(){return ay},altW:function(){return ab},ap:function(){return ah},apFirst:function(){return aD},apS:function(){return fa},apSecond:function(){return aN},as:function(){return aF},asUnit:function(){return aU},bind:function(){return fc},bindTo:function(){return fi},chain:function(){return fd},chainEitherK:function(){return ft},chainFirst:function(){return fs},chainFirstEitherK:function(){return fe},chainFirstIOK:function(){return a6},chainIOK:function(){return a4},chainNullableK:function(){return ap},chainOptionK:function(){return fr},compact:function(){return aR},filter:function(){return aT},filterMap:function(){return ax},flap:function(){return aP},flatMap:function(){return av},flatMapEither:function(){return a8},flatMapIO:function(){return a5},flatMapNullable:function(){return a3},flatMapOption:function(){return a7},flatten:function(){return ag},fold:function(){return ar},fromEither:function(){return c9},fromEitherK:function(){return fn},fromIO:function(){return c4},fromIOEither:function(){return c6},fromIOK:function(){return a9},fromNullable:function(){return af},fromNullableK:function(){return al},fromOption:function(){return c3},fromOptionK:function(){return ad},fromPredicate:function(){return c8},getOrElse:function(){return ai},getOrElseW:function(){return ao},guard:function(){return a$},let:function(){return fo},map:function(){return as},match:function(){return an},matchE:function(){return ae},matchEW:function(){return au},matchW:function(){return at},none:function(){return aI},of:function(){return am},partition:function(){return aM},partitionMap:function(){return aO},separate:function(){return aS},some:function(){return c7},tap:function(){return aY},tapEither:function(){return aB},tapIO:function(){return aV},toNullable:function(){return aa},toUndefined:function(){return ac},traverseReadonlyArrayWithIndex:function(){return fp},traverseReadonlyNonEmptyArrayWithIndex:function(){return fl},zero:function(){return a_}});var B={};e.r(B),e.d(B,{IORef:function(){return fh},newIORef:function(){return fm}});var V={};e.r(V);var z={};e.r(z),e.d(z,{parse:function(){return fv},stringify:function(){return fg}});var H={};e.r(H);var $={};e.r($);var X={};e.r(X);var J={};e.r(J);var Z={};e.r(Z);var Q={};e.r(Q);var nn={};e.r(nn);var nt={};e.r(nt),e.d(nt,{Eq:function(){return fx},Monoid:function(){return fO},Semigroup:function(){return fM},eqOrdering:function(){return fk},invert:function(){return fC},match:function(){return fS},matchW:function(){return fR},monoidOrdering:function(){return fW},reverse:function(){return fT},semigroupOrdering:function(){return fE},sign:function(){return fw}});var ne={};e.r(ne);var nr={};e.r(nr);var nu={};e.r(nu),e.d(nu,{random:function(){return fU},randomBool:function(){return fL},randomElem:function(){return fD},randomInt:function(){return fP},randomRange:function(){return fA}});var ni={};e.r(ni),e.d(ni,{Alt:function(){return lN},ApT:function(){return pd},Applicative:function(){return lE},Apply:function(){return lx},Bifunctor:function(){return lD},Chain:function(){return lk},Do:function(){return pi},FromEither:function(){return lF},FromReader:function(){return lU},Functor:function(){return l_},Monad:function(){return lW},MonadThrow:function(){return lB},Pointed:function(){return lT},URI:function(){return lm},alt:function(){return ld},altW:function(){return ls},ap:function(){return lo},apFirst:function(){return lM},apFirstW:function(){return lO},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lw},apSecondW:function(){return lC},apW:function(){return lc},as:function(){return lI},asUnit:function(){return lR},ask:function(){return lj},asks:function(){return lq},asksReaderEither:function(){return f2},asksReaderEitherW:function(){return f1},bimap:function(){return lr},bind:function(){return pa},bindTo:function(){return po},bindW:function(){return pf},chain:function(){return py},chainEitherK:function(){return l8},chainEitherKW:function(){return l3},chainFirst:function(){return p_},chainFirstEitherK:function(){return l9},chainFirstEitherKW:function(){return l4},chainFirstReaderK:function(){return lG},chainFirstReaderKW:function(){return lY},chainFirstW:function(){return pI},chainOptionK:function(){return lH},chainOptionKW:function(){return l$},chainReaderK:function(){return l6},chainReaderKW:function(){return pn},chainW:function(){return pb},filterOrElse:function(){return pe},filterOrElseW:function(){return pr},flap:function(){return lS},flatMap:function(){return lf},flatMapEither:function(){return l5},flatMapNullable:function(){return l1},flatMapOption:function(){return l2},flatMapReader:function(){return l7},flatten:function(){return lp},flattenW:function(){return ll},fold:function(){return fH},foldW:function(){return fX},fromEither:function(){return fG},fromEitherK:function(){return pu},fromOption:function(){return lV},fromOptionK:function(){return lz},fromPredicate:function(){return pt},fromReader:function(){return fY},fromReaderK:function(){return lK},getAltReaderValidation:function(){return lb},getApplicativeReaderValidation:function(){return ly},getApplyMonoid:function(){return pM},getApplySemigroup:function(){return px},getCompactable:function(){return lv},getFilterable:function(){return lg},getOrElse:function(){return fJ},getOrElseW:function(){return fZ},getReaderValidation:function(){return pw},getSemigroup:function(){return pO},left:function(){return fN},leftReader:function(){return fK},let:function(){return pc},liftNullable:function(){return lZ},liftOption:function(){return lQ},local:function(){return f0},map:function(){return lt},mapBoth:function(){return le},mapError:function(){return lu},mapLeft:function(){return li},match:function(){return fB},matchE:function(){return fz},matchEW:function(){return f$},matchW:function(){return fV},of:function(){return la},orElse:function(){return f5},orElseFirst:function(){return pR},orElseFirstW:function(){return pS},orElseW:function(){return f7},orLeft:function(){return f3},readerEither:function(){return pT},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pg},swap:function(){return f9},tap:function(){return lP},tapEither:function(){return lA},tapError:function(){return f8},tapReader:function(){return lL},throwError:function(){return lh},toUnion:function(){return fQ},traverseArray:function(){return pv},traverseArrayWithIndex:function(){return pm},traverseReadonlyArrayWithIndex:function(){return ph},traverseReadonlyNonEmptyArrayWithIndex:function(){return ps}});var no={};e.r(no),e.d(no,{ap:function(){return pk},chain:function(){return pW},flatMap:function(){return pF},fromNaturalTransformation:function(){return pP},fromReader:function(){return pU},getReaderM:function(){return pA},map:function(){return pE},of:function(){return pC}});var nc={};e.r(nc),e.d(nc,{ApT:function(){return dM},Applicative:function(){return p3},Apply:function(){return p5},Chain:function(){return p9},Do:function(){return d_},FromIO:function(){return dn},FromReader:function(){return dt},Functor:function(){return pZ},Monad:function(){return p4},MonadIO:function(){return p6},Pointed:function(){return p2},URI:function(){return pJ},ap:function(){return pB},apFirst:function(){return p7},apS:function(){return dT},apSW:function(){return dx},apSecond:function(){return p8},apW:function(){return pV},as:function(){return pQ},asUnit:function(){return p0},ask:function(){return ds},asks:function(){return dh},asksReaderIO:function(){return pq},asksReaderIOW:function(){return pj},bind:function(){return dR},bindTo:function(){return dI},bindW:function(){return dS},chain:function(){return dW},chainFirst:function(){return dU},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dy},chainFirstReaderKW:function(){return db},chainFirstW:function(){return dP},chainIOK:function(){return dp},chainReaderK:function(){return dv},chainReaderKW:function(){return dg},chainW:function(){return dF},flap:function(){return p1},flatMap:function(){return pH},flatMapIO:function(){return du},flatMapReader:function(){return di},flatten:function(){return pX},flattenW:function(){return p$},fromIO:function(){return pD},fromIOK:function(){return dl},fromReader:function(){return pL},fromReaderK:function(){return dm},local:function(){return pN},map:function(){return pY},of:function(){return pz},sequenceArray:function(){return dk},tap:function(){return dc},tapIO:function(){return da},tapReader:function(){return df},traverseArray:function(){return dE},traverseArrayWithIndex:function(){return dC},traverseReadonlyArrayWithIndex:function(){return dw},traverseReadonlyNonEmptyArrayWithIndex:function(){return dO}});var na={};e.r(na),e.d(na,{ApT:function(){return sm},ApplicativePar:function(){return d2},ApplicativeSeq:function(){return d7},ApplyPar:function(){return dQ},ApplySeq:function(){return d5},Chain:function(){return d8},Do:function(){return sl},FromIO:function(){return sn},FromTask:function(){return sa},Functor:function(){return dH},Monad:function(){return d3},MonadIO:function(){return d9},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dV},ap:function(){return dK},apFirst:function(){return d0},apS:function(){return sh},apSecond:function(){return d1},as:function(){return d$},asUnit:function(){return dX},bind:function(){return ss},bindTo:function(){return sp},chain:function(){return sM},chainFirst:function(){return sO},chainFirstIOK:function(){return sc},chainIOK:function(){return so},delay:function(){return dL},flap:function(){return dJ},flatMap:function(){return dY},flatMapIO:function(){return se},flatten:function(){return dB},fromIO:function(){return dA},fromIOK:function(){return si},fromTask:function(){return d4},getMonoid:function(){return sk},getRaceMonoid:function(){return dz},getSemigroup:function(){return sE},let:function(){return sd},map:function(){return dq},never:function(){return sf},of:function(){return dG},sequenceArray:function(){return sR},sequenceSeqArray:function(){return sx},tap:function(){return sr},tapIO:function(){return su},task:function(){return sw},taskSeq:function(){return sC},traverseArray:function(){return sI},traverseArrayWithIndex:function(){return s_},traverseReadonlyArrayWithIndex:function(){return sg},traverseReadonlyArrayWithIndexSeq:function(){return sb},traverseReadonlyNonEmptyArrayWithIndex:function(){return sv},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sy},traverseSeqArray:function(){return sT},traverseSeqArrayWithIndex:function(){return sS}});var nf={};e.r(nf),e.d(nf,{ApT:function(){return hj},ApplicativePar:function(){return s7},ApplicativeSeq:function(){return s3},ApplyPar:function(){return s1},ApplySeq:function(){return s8},Chain:function(){return s9},Do:function(){return hF},FromIO:function(){return ht},FromReader:function(){return hr},FromTask:function(){return he},Functor:function(){return sX},Monad:function(){return s4},MonadIO:function(){return s6},MonadTask:function(){return hn},Pointed:function(){return s0},URI:function(){return s$},ap:function(){return sG},apFirst:function(){return s2},apS:function(){return hD},apSW:function(){return hN},apSecond:function(){return s5},apW:function(){return sY},as:function(){return sJ},asUnit:function(){return sZ},ask:function(){return hy},asks:function(){return hb},asksReaderTask:function(){return sD},asksReaderTaskW:function(){return sL},bind:function(){return hA},bindTo:function(){return hU},bindW:function(){return hL},chain:function(){return hX},chainFirst:function(){return hZ},chainFirstIOK:function(){return hg},chainFirstReaderIOK:function(){return hC},chainFirstReaderIOKW:function(){return hw},chainFirstReaderK:function(){return hS},chainFirstReaderKW:function(){return hT},chainFirstTaskK:function(){return hW},chainFirstW:function(){return hQ},chainIOK:function(){return hv},chainReaderIOK:function(){return hO},chainReaderIOKW:function(){return hM},chainReaderK:function(){return hI},chainReaderKW:function(){return hR},chainTaskK:function(){return hk},chainW:function(){return hJ},flap:function(){return sQ},flatMap:function(){return sV},flatMapIO:function(){return ho},flatMapReader:function(){return ha},flatMapReaderIO:function(){return hf},flatMapTask:function(){return hc},flatten:function(){return sH},flattenW:function(){return sz},fromIO:function(){return sU},fromIOK:function(){return hm},fromReader:function(){return sW},fromReaderIO:function(){return sP},fromReaderIOK:function(){return hx},fromReaderK:function(){return h_},fromTask:function(){return sF},fromTaskK:function(){return hE},getMonoid:function(){return h7},getSemigroup:function(){return h5},let:function(){return hP},local:function(){return sA},map:function(){return sK},of:function(){return sB},readerTask:function(){return h1},readerTaskSeq:function(){return h2},run:function(){return h8},sequenceArray:function(){return hz},sequenceSeqArray:function(){return h0},tap:function(){return hl},tapIO:function(){return hp},tapReader:function(){return hd},tapReaderIO:function(){return hh},tapTask:function(){return hs},traverseArray:function(){return hV},traverseArrayWithIndex:function(){return hB},traverseReadonlyArrayWithIndex:function(){return hK},traverseReadonlyArrayWithIndexSeq:function(){return hY},traverseReadonlyNonEmptyArrayWithIndex:function(){return hq},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return hG},traverseSeqArray:function(){return h$},traverseSeqArrayWithIndex:function(){return hH}});var nl={};e.r(nl),e.d(nl,{Alt:function(){return vy},ApT:function(){return v9},ApplicativePar:function(){return ve},ApplicativeSeq:function(){return vu},ApplyPar:function(){return m9},ApplySeq:function(){return vr},Bifunctor:function(){return vg},Chain:function(){return vi},Do:function(){return v0},FromEither:function(){return vl},FromIO:function(){return vp},FromTask:function(){return vd},Functor:function(){return m2},Monad:function(){return vo},MonadIO:function(){return vc},MonadTask:function(){return va},MonadThrow:function(){return vf},Pointed:function(){return m3},URI:function(){return mJ},alt:function(){return mz},altW:function(){return mH},ap:function(){return mK},apFirst:function(){return m4},apFirstW:function(){return m6},apS:function(){return v8},apSW:function(){return v3},apSecond:function(){return vn},apSecondW:function(){return vt},apW:function(){return mG},as:function(){return m5},asUnit:function(){return m7},bimap:function(){return mN},bind:function(){return v5},bindTo:function(){return v1},bindW:function(){return v7},bracket:function(){return vZ},bracketW:function(){return vQ},chain:function(){return ga},chainEitherK:function(){return vP},chainEitherKW:function(){return vA},chainFirst:function(){return gl},chainFirstEitherK:function(){return vL},chainFirstEitherKW:function(){return vD},chainFirstIOK:function(){return vB},chainFirstTaskK:function(){return vH},chainFirstW:function(){return gp},chainIOEitherK:function(){return vX},chainIOEitherKW:function(){return v$},chainIOK:function(){return vY},chainNullableK:function(){return mI},chainOptionK:function(){return vI},chainOptionKW:function(){return vR},chainTaskK:function(){return vz},chainTaskOptionK:function(){return mk},chainTaskOptionKW:function(){return mE},chainW:function(){return gf},filterOrElse:function(){return vj},filterOrElseW:function(){return vq},flap:function(){return m8},flatMap:function(){return mY},flatMapEither:function(){return vE},flatMapIO:function(){return vk},flatMapIOEither:function(){return vF},flatMapNullable:function(){return vw},flatMapOption:function(){return vC},flatMapTask:function(){return vW},flatMapTaskOption:function(){return vU},flatten:function(){return mV},flattenW:function(){return mB},fold:function(){return mp},foldW:function(){return ms},fromEither:function(){return mi},fromEitherK:function(){return vK},fromIO:function(){return mr},fromIOEither:function(){return mo},fromIOEitherK:function(){return mW},fromIOK:function(){return vG},fromNullable:function(){return mb},fromNullableK:function(){return m_},fromOption:function(){return vb},fromOptionK:function(){return v_},fromPredicate:function(){return vN},fromTask:function(){return mu},fromTaskK:function(){return vV},fromTaskOption:function(){return mc},fromTaskOptionK:function(){return mC},getAltTaskValidation:function(){return mQ},getApplicativeTaskValidation:function(){return mZ},getApplyMonoid:function(){return gg},getApplySemigroup:function(){return gv},getCompactable:function(){return m0},getFilterable:function(){return m1},getOrElse:function(){return mh},getOrElseW:function(){return mm},getSemigroup:function(){return gy},getTaskValidation:function(){return gb},left:function(){return h9},leftIO:function(){return me},leftTask:function(){return mn},let:function(){return v2},liftNullable:function(){return vT},liftOption:function(){return vx},map:function(){return mL},mapBoth:function(){return mD},mapError:function(){return mj},mapLeft:function(){return mq},match:function(){return ma},matchE:function(){return ml},matchEW:function(){return md},matchW:function(){return mf},of:function(){return m$},orElse:function(){return mR},orElseFirst:function(){return gd},orElseFirstIOK:function(){return mx},orElseFirstTaskK:function(){return mM},orElseFirstW:function(){return gs},orElseW:function(){return mS},orLeft:function(){return mO},right:function(){return h4},rightIO:function(){return mt},rightTask:function(){return h6},sequenceArray:function(){return gu},sequenceSeqArray:function(){return gc},swap:function(){return mw},tap:function(){return vs},tapEither:function(){return vh},tapError:function(){return mT},tapIO:function(){return vm},tapTask:function(){return vv},taskEither:function(){return gh},taskEitherSeq:function(){return gm},taskify:function(){return vJ},throwError:function(){return mX},toUnion:function(){return my},traverseArray:function(){return gr},traverseArrayWithIndex:function(){return ge},traverseReadonlyArrayWithIndex:function(){return v6},traverseReadonlyArrayWithIndexSeq:function(){return gt},traverseReadonlyNonEmptyArrayWithIndex:function(){return v4},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return gn},traverseSeqArray:function(){return go},traverseSeqArrayWithIndex:function(){return gi},tryCatch:function(){return mv},tryCatchK:function(){return mg}});var np={};e.r(np),e.d(np,{Alt:function(){return yQ},ApT:function(){return b8},ApplicativePar:function(){return yk},ApplicativeSeq:function(){return yF},ApplyPar:function(){return yM},ApplySeq:function(){return yW},Bifunctor:function(){return yZ},Chain:function(){return yU},Do:function(){return bZ},FromEither:function(){return yN},FromIO:function(){return yj},FromReader:function(){return yK},FromTask:function(){return yq},Functor:function(){return yI},Monad:function(){return yP},MonadIO:function(){return yA},MonadTask:function(){return yL},MonadThrow:function(){return yD},Pointed:function(){return yx},URI:function(){return yv},alt:function(){return ys},altW:function(){return yh},ap:function(){return yc},apFirst:function(){return yO},apFirstW:function(){return yw},apS:function(){return b5},apSW:function(){return b7},apSecond:function(){return yC},apSecondW:function(){return yE},apW:function(){return ya},as:function(){return yR},asUnit:function(){return yS},ask:function(){return y0},asks:function(){return y1},asksReaderTaskEither:function(){return gQ},asksReaderTaskEitherW:function(){return gZ},bimap:function(){return yu},bind:function(){return b1},bindTo:function(){return bQ},bindW:function(){return b2},bracket:function(){return bX},bracketW:function(){return bJ},chain:function(){return _o},chainEitherK:function(){return bT},chainEitherKW:function(){return bx},chainFirst:function(){return _a},chainFirstEitherK:function(){return bM},chainFirstEitherKW:function(){return bO},chainFirstIOK:function(){return bD},chainFirstReaderEitherK:function(){return y3},chainFirstReaderEitherKW:function(){return y8},chainFirstReaderIOK:function(){return bu},chainFirstReaderIOKW:function(){return br},chainFirstReaderK:function(){return y5},chainFirstReaderKW:function(){return y7},chainFirstReaderTaskK:function(){return bt},chainFirstReaderTaskKW:function(){return bn},chainFirstTaskEitherK:function(){return y4},chainFirstTaskEitherKW:function(){return y9},chainFirstTaskK:function(){return bq},chainFirstW:function(){return _f},chainIOEitherK:function(){return bz},chainIOEitherKW:function(){return bV},chainIOK:function(){return bL},chainNullableK:function(){return gX},chainOptionK:function(){return bc},chainOptionKW:function(){return ba},chainReaderEitherK:function(){return b$},chainReaderEitherKW:function(){return bH},chainReaderIOK:function(){return bB},chainReaderIOKW:function(){return bY},chainReaderK:function(){return bK},chainReaderKW:function(){return bG},chainReaderTaskK:function(){return bk},chainReaderTaskKW:function(){return bE},chainTaskEitherK:function(){return bC},chainTaskEitherKW:function(){return bw},chainTaskK:function(){return bj},chainW:function(){return _c},filterOrElse:function(){return bF},filterOrElseW:function(){return bU},flap:function(){return yT},flatMap:function(){return yl},flatMapEither:function(){return bm},flatMapIO:function(){return by},flatMapIOEither:function(){return bR},flatMapNullable:function(){return bs},flatMapOption:function(){return bh},flatMapReader:function(){return b_},flatMapReaderEither:function(){return bS},flatMapReaderIO:function(){return bI},flatMapReaderTask:function(){return bg},flatMapTask:function(){return bb},flatMapTaskEither:function(){return bv},flatten:function(){return yd},flattenW:function(){return yp},fold:function(){return gK},foldW:function(){return gY},fromEither:function(){return gF},fromEitherK:function(){return bP},fromIO:function(){return gP},fromIOEither:function(){return gL},fromIOEitherK:function(){return g8},fromIOK:function(){return bA},fromNullable:function(){return gH},fromNullableK:function(){return g$},fromOption:function(){return bi},fromOptionK:function(){return bo},fromPredicate:function(){return bW},fromReader:function(){return gU},fromReaderEither:function(){return gD},fromReaderEitherK:function(){return g9},fromReaderIOK:function(){return be},fromReaderK:function(){return y2},fromReaderTaskK:function(){return y6},fromTask:function(){return gA},fromTaskEither:function(){return g_},fromTaskEitherK:function(){return g3},fromTaskK:function(){return bN},getAltReaderTaskValidation:function(){return y_},getApplicativeReaderTaskValidation:function(){return yb},getApplyMonoid:function(){return _m},getApplySemigroup:function(){return _h},getCompactable:function(){return yg},getFilterable:function(){return yy},getOrElse:function(){return gB},getOrElseW:function(){return gV},getReaderTaskValidation:function(){return _g},getSemigroup:function(){return _v},left:function(){return gI},leftIO:function(){return gE},leftReader:function(){return gM},leftReaderIO:function(){return gW},leftReaderTask:function(){return gw},leftTask:function(){return gT},let:function(){return b0},liftNullable:function(){return bl},liftOption:function(){return bp},local:function(){return gJ},map:function(){return ye},mapBoth:function(){return yr},mapError:function(){return yi},mapLeft:function(){return yo},match:function(){return gN},matchE:function(){return gq},matchEW:function(){return gG},matchW:function(){return gj},of:function(){return yf},orElse:function(){return g0},orElseFirst:function(){return _l},orElseFirstW:function(){return _p},orElseW:function(){return g1},orLeft:function(){return g5},readerTaskEither:function(){return _d},readerTaskEitherSeq:function(){return _s},right:function(){return gR},rightIO:function(){return gC},rightReader:function(){return gx},rightReaderIO:function(){return gk},rightReaderTask:function(){return gO},rightTask:function(){return gS},run:function(){return _y},sequenceArray:function(){return _e},sequenceSeqArray:function(){return _i},swap:function(){return g7},tap:function(){return yG},tapEither:function(){return yY},tapError:function(){return g2},tapIO:function(){return yB},tapReader:function(){return yz},tapReaderEither:function(){return yH},tapReaderIO:function(){return yJ},tapReaderTask:function(){return yX},tapTask:function(){return yV},tapTaskEither:function(){return y$},throwError:function(){return ym},toUnion:function(){return gz},traverseArray:function(){return _t},traverseArrayWithIndex:function(){return _n},traverseReadonlyArrayWithIndex:function(){return b9},traverseReadonlyArrayWithIndexSeq:function(){return b6},traverseReadonlyNonEmptyArrayWithIndex:function(){return b3},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return b4},traverseSeqArray:function(){return _u},traverseSeqArrayWithIndex:function(){return _r}});var nd={};e.r(nd),e.d(nd,{Bifunctor:function(){return _8},Comonad:function(){return _9},Foldable:function(){return _4},Functor:function(){return _1},Semigroupoid:function(){return _3},Traversable:function(){return _6},URI:function(){return _0},bimap:function(){return _K},compose:function(){return _B},duplicate:function(){return _H},extend:function(){return _V},extract:function(){return _z},flap:function(){return _2},foldMap:function(){return _X},fst:function(){return _T},getApplicative:function(){return _C},getApply:function(){return _O},getChain:function(){return _E},getChainRec:function(){return _W},getMonad:function(){return _k},map:function(){return _5},mapFst:function(){return _G},mapLeft:function(){return _7},mapSnd:function(){return _Y},readonlyTuple:function(){return In},reduce:function(){return _$},reduceRight:function(){return _J},sequence:function(){return _Q},snd:function(){return _x},swap:function(){return _M},traverse:function(){return _Z}});var ns={};e.r(ns),e.d(ns,{Compactable:function(){return Ry},Filterable:function(){return Rb},FilterableWithIndex:function(){return R_},Foldable:function(){return Rw},FoldableWithIndex:function(){return RC},Functor:function(){return Rs},FunctorWithIndex:function(){return Rm},Traversable:function(){return RE},TraversableWithIndex:function(){return Rk},URI:function(){return Rf},Witherable:function(){return RU},collect:function(){return If},compact:function(){return Rc},deleteAt:function(){return Ih},difference:function(){return IY},elem:function(){return Iq},empty:function(){return RP},every:function(){return IN},filter:function(){return Rn},filterMap:function(){return Rt},filterMapWithIndex:function(){return IF},filterWithIndex:function(){return IU},flap:function(){return Rh},foldMap:function(){return Ri},foldMapWithIndex:function(){return IS},fromEntries:function(){return IL},fromFoldable:function(){return IP},fromFoldableMap:function(){return ID},getDifferenceMagma:function(){return RO},getEq:function(){return Rp},getFoldable:function(){return Rv},getFoldableWithIndex:function(){return Rg},getIntersectionSemigroup:function(){return RM},getMonoid:function(){return Rd},getShow:function(){return Rl},getTraversable:function(){return RI},getTraversableWithIndex:function(){return RR},getUnionMonoid:function(){return Rx},getUnionSemigroup:function(){return RT},getWitherable:function(){return RS},has:function(){return Is},hasOwnProperty:function(){return RL},insertAt:function(){return RA},intersection:function(){return IG},isEmpty:function(){return Io},isSubrecord:function(){return Iy},keys:function(){return Ia},lookup:function(){return Ib},map:function(){return II},mapWithIndex:function(){return I_},modifyAt:function(){return Iv},partition:function(){return Re},partitionMap:function(){return Rr},partitionMapWithIndex:function(){return Ik},partitionWithIndex:function(){return IW},pop:function(){return Ig},record:function(){return RD},reduce:function(){return Ru},reduceRight:function(){return Ro},reduceRightWithIndex:function(){return IT},reduceWithIndex:function(){return IR},separate:function(){return Ra},sequence:function(){return Iw},singleton:function(){return Ix},size:function(){return Ii},some:function(){return Ij},toArray:function(){return Il},toEntries:function(){return IA},toUnfoldable:function(){return Ip},traverse:function(){return IO},traverseWithIndex:function(){return IM},union:function(){return IK},updateAt:function(){return Im},upsertAt:function(){return Id},wilt:function(){return IE},wither:function(){return IC}});var nh={};e.r(nh),e.d(nh,{and:function(){return RY},compose:function(){return RV},fromEitherK:function(){return Rj},fromOptionK:function(){return RN},id:function(){return Rq},not:function(){return RK},or:function(){return RG},zero:function(){return RB}});var nm={};e.r(nm),e.d(nm,{getFunctionRing:function(){return RX},getTupleRing:function(){return R$},negate:function(){return RH},tuple:function(){return Rz}});var nv={};e.r(nv);var ng={};e.r(ng),e.d(ng,{getFunctionSemiring:function(){return RJ}});var ny={};e.r(ny),e.d(ny,{getStructShow:function(){return R2},getTupleShow:function(){return R1},showBoolean:function(){return R5},showNumber:function(){return R8},showString:function(){return R7},struct:function(){return RQ},tuple:function(){return R0}});var nb={};e.r(nb),e.d(nb,{ap:function(){return R4},chain:function(){return R6},evaluate:function(){return Sr},execute:function(){return Su},flatMap:function(){return Sn},fromF:function(){return Se},fromState:function(){return St},getStateM:function(){return Si},map:function(){return R9},of:function(){return R3}});var n_={};e.r(n_),e.d(n_,{Alt:function(){return Tk},Applicative:function(){return Ta},Apply:function(){return Tr},Bifunctor:function(){return TE},Chain:function(){return Tf},FromEither:function(){return TI},FromIO:function(){return TR},FromReader:function(){return TT},FromState:function(){return Tl},FromTask:function(){return TS},Functor:function(){return S4},Monad:function(){return Tg},MonadIO:function(){return Ty},MonadTask:function(){return Tb},MonadThrow:function(){return T_},Pointed:function(){return Te},URI:function(){return S9},alt:function(){return S8},altW:function(){return S7},ap:function(){return Sq},apFirst:function(){return Tu},apFirstW:function(){return Ti},apS:function(){return xr},apSW:function(){return xu},apSecond:function(){return To},apSecondW:function(){return Tc},apW:function(){return SK},as:function(){return S6},asUnit:function(){return Tn},ask:function(){return TW},asks:function(){return TF},asksStateReaderTaskEither:function(){return SO},asksStateReaderTaskEitherW:function(){return SM},bimap:function(){return SN},bind:function(){return xt},bindTo:function(){return T6},bindW:function(){return xe},chain:function(){return xl},chainEitherK:function(){return TG},chainEitherKW:function(){return TY},chainFirst:function(){return xd},chainFirstEitherK:function(){return TB},chainFirstEitherKW:function(){return TV},chainFirstIOK:function(){return TQ},chainFirstReaderK:function(){return TL},chainFirstReaderKW:function(){return TD},chainFirstTaskK:function(){return T3},chainFirstW:function(){return xs},chainIOEitherK:function(){return T5},chainIOEitherKW:function(){return T2},chainIOK:function(){return TZ},chainOptionK:function(){return Tq},chainOptionKW:function(){return TK},chainReaderK:function(){return TP},chainReaderKW:function(){return TA},chainReaderTaskEitherK:function(){return SW},chainReaderTaskEitherKW:function(){return Sk},chainStateK:function(){return Tv},chainTaskEitherK:function(){return T1},chainTaskEitherKW:function(){return T0},chainTaskK:function(){return T8},chainW:function(){return xp},evalState:function(){return xv},evaluate:function(){return T9},execState:function(){return xg},execute:function(){return T4},filterOrElse:function(){return TH},filterOrElseW:function(){return T$},flap:function(){return Tt},flatMap:function(){return SB},flatMapEither:function(){return SZ},flatMapIO:function(){return SH},flatMapIOEither:function(){return SJ},flatMapOption:function(){return SQ},flatMapReader:function(){return SX},flatMapReaderTaskEither:function(){return S0},flatMapState:function(){return S1},flatMapTask:function(){return S$},flatMapTaskEither:function(){return Sz},flatten:function(){return S5},flattenW:function(){return S2},fromEither:function(){return Sv},fromEitherK:function(){return TX},fromIO:function(){return Sy},fromIOEither:function(){return SR},fromIOEitherK:function(){return Sw},fromIOK:function(){return TJ},fromOption:function(){return TN},fromOptionK:function(){return Tj},fromPredicate:function(){return Tz},fromReader:function(){return Sg},fromReaderEither:function(){return SS},fromReaderK:function(){return TU},fromReaderTaskEither:function(){return ST},fromReaderTaskEitherK:function(){return SE},fromState:function(){return S_},fromStateK:function(){return Tm},fromTask:function(){return Sb},fromTaskEither:function(){return SI},fromTaskEitherK:function(){return SC},fromTaskK:function(){return T7},get:function(){return Tp},gets:function(){return Th},left:function(){return So},leftIO:function(){return Ss},leftReader:function(){return Sp},leftState:function(){return Sm},leftTask:function(){return Sf},let:function(){return xn},local:function(){return Sx},map:function(){return SD},mapLeft:function(){return Sj},modify:function(){return Ts},of:function(){return SG},put:function(){return Td},right:function(){return Sc},rightIO:function(){return Sd},rightReader:function(){return Sl},rightState:function(){return Sh},rightTask:function(){return Sa},run:function(){return xy},sequenceArray:function(){return xf},stateReaderTaskEither:function(){return xh},stateReaderTaskEitherSeq:function(){return xm},tap:function(){return Tx},tapEither:function(){return TM},tapIO:function(){return TO},tapReader:function(){return TC},tapTask:function(){return Tw},throwError:function(){return S3},traverseArray:function(){return xa},traverseArrayWithIndex:function(){return xc},traverseReadonlyArrayWithIndex:function(){return xo},traverseReadonlyNonEmptyArrayWithIndex:function(){return xi}});var nI={};e.r(nI),e.d(nI,{Comonad:function(){return xk},Functor:function(){return xC},URI:function(){return xw},duplicate:function(){return xM},experiment:function(){return xR},extend:function(){return xT},extract:function(){return xx},flap:function(){return xE},map:function(){return xO},peeks:function(){return xI},seek:function(){return xb},seeks:function(){return x_},store:function(){return xW}});var nR={};e.r(nR),e.d(nR,{fanOut:function(){return xU},fanout:function(){return xA},split:function(){return xF},splitStrong:function(){return xP}});var nS={};e.r(nS),e.d(nS,{evolve:function(){return xD},getAssignSemigroup:function(){return xL}});var nT={};e.r(nT),e.d(nT,{Alt:function(){return Mj},Alternative:function(){return MG},ApT:function(){return M6},ApplicativePar:function(){return Mw},ApplicativeSeq:function(){return Mk},ApplyPar:function(){return Mx},ApplySeq:function(){return ME},Chain:function(){return MW},Compactable:function(){return Mz},Do:function(){return M7},Filterable:function(){return MH},FromEither:function(){return MF},FromIO:function(){return MU},FromTask:function(){return MP},Functor:function(){return M_},Monad:function(){return MY},MonadIO:function(){return MB},MonadTask:function(){return MV},Pointed:function(){return MT},URI:function(){return Mb},Zero:function(){return Mq},alt:function(){return Mo},altW:function(){return Mc},ap:function(){return x6},apFirst:function(){return MM},apS:function(){return M4},apSecond:function(){return MO},as:function(){return MI},asUnit:function(){return MR},bind:function(){return M9},bindTo:function(){return M8},chain:function(){return Ol},chainEitherK:function(){return MQ},chainFirst:function(){return Op},chainFirstEitherK:function(){return M0},chainFirstIOK:function(){return MJ},chainFirstTaskK:function(){return M5},chainIOK:function(){return MX},chainNullableK:function(){return x8},chainOptionK:function(){return x9},chainTaskK:function(){return M2},compact:function(){return Ml},filter:function(){return Md},filterMap:function(){return Ms},flap:function(){return MS},flatMap:function(){return Mt},flatMapIO:function(){return Mr},flatMapTask:function(){return Mu},flatten:function(){return Mi},fold:function(){return xX},foldW:function(){return xZ},fromEither:function(){return xG},fromEitherK:function(){return MZ},fromIO:function(){return xY},fromIOK:function(){return M$},fromNullable:function(){return x1},fromNullableK:function(){return x7},fromOption:function(){return xK},fromOptionK:function(){return x3},fromPredicate:function(){return xq},fromTask:function(){return xB},fromTaskEither:function(){return xV},fromTaskK:function(){return M1},getOrElse:function(){return xQ},getOrElseW:function(){return x0},guard:function(){return MK},let:function(){return M3},map:function(){return x4},match:function(){return xz},matchE:function(){return x$},matchEW:function(){return xJ},matchW:function(){return xH},none:function(){return Mf},of:function(){return Mn},partition:function(){return Mh},partitionMap:function(){return Mm},separate:function(){return Mp},sequenceArray:function(){return Oo},sequenceSeqArray:function(){return Of},some:function(){return xj},tap:function(){return MA},tapEither:function(){return ML},tapIO:function(){return MD},tapTask:function(){return MN},traverseArray:function(){return Oi},traverseArrayWithIndex:function(){return Ou},traverseReadonlyArrayWithIndex:function(){return Ot},traverseReadonlyArrayWithIndexSeq:function(){return Or},traverseReadonlyNonEmptyArrayWithIndex:function(){return On},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Oe},traverseSeqArray:function(){return Oa},traverseSeqArrayWithIndex:function(){return Oc},tryCatch:function(){return x2},tryCatchK:function(){return x5},zero:function(){return Ma}});var nx={};e.r(nx),e.d(nx,{ApT:function(){return wi},Bifunctor:function(){return O5},Foldable:function(){return O8},FromEither:function(){return O9},FromThese:function(){return O7},Functor:function(){return O0},Pointed:function(){return O2},Traversable:function(){return O3},URI:function(){return OQ},bimap:function(){return OY},both:function(){return Og},elem:function(){return wt},exists:function(){return we},flap:function(){return O1},fold:function(){return OI},foldMap:function(){return OH},foldW:function(){return Ob},fromOption:function(){return O6},fromOptionK:function(){return wn},fromOptions:function(){return OA},fromPredicate:function(){return O4},getApplicative:function(){return OO},getApply:function(){return OM},getChain:function(){return Ow},getEq:function(){return OT},getLeft:function(){return OE},getLeftOnly:function(){return OU},getMonad:function(){return OC},getRight:function(){return Ok},getRightOnly:function(){return OP},getSemigroup:function(){return Ox},getShow:function(){return OS},isBoth:function(){return Oh},isLeft:function(){return Od},isRight:function(){return Os},left:function(){return Om},leftOrBoth:function(){return OW},map:function(){return OV},mapLeft:function(){return OB},match:function(){return O_},matchW:function(){return Oy},of:function(){return OZ},reduce:function(){return Oz},reduceRight:function(){return O$},right:function(){return Ov},rightOrBoth:function(){return OF},sequence:function(){return OJ},swap:function(){return OR},these:function(){return wa},toTuple:function(){return wu},toTuple2:function(){return wr},traverse:function(){return OX},traverseReadonlyArrayWithIndex:function(){return wc},traverseReadonlyNonEmptyArrayWithIndex:function(){return wo}});var nM={};e.r(nM),e.d(nM,{ap:function(){return wm},bimap:function(){return wg},both:function(){return wp},chain:function(){return wv},getTheseM:function(){return wS},left:function(){return wl},leftF:function(){return ws},map:function(){return wh},mapLeft:function(){return wy},match:function(){return wb},matchE:function(){return w_},right:function(){return wf},rightF:function(){return wd},swap:function(){return wI},toTuple2:function(){return wR}});var nO={};e.r(nO),e.d(nO,{ApT:function(){return Co},Bifunctor:function(){return w7},FromEither:function(){return w8},FromIO:function(){return Ct},FromTask:function(){return Cr},FromThese:function(){return w6},Functor:function(){return w1},Pointed:function(){return w5},URI:function(){return wX},bifunctorTaskThese:function(){return Cd},bimap:function(){return wz},both:function(){return wM},flap:function(){return w2},fold:function(){return wN},foldW:function(){return wq},fromEither:function(){return wk},fromIO:function(){return wF},fromIOEither:function(){return wU},fromIOK:function(){return Ce},fromOption:function(){return w3},fromOptionK:function(){return w9},fromPredicate:function(){return w4},fromTask:function(){return wP},fromTaskK:function(){return Cu},fromThese:function(){return wW},fromTheseK:function(){return Cn},functorTaskThese:function(){return Cp},getApplicative:function(){return wZ},getApply:function(){return wJ},getChain:function(){return wQ},getMonad:function(){return w0},getSemigroup:function(){return Cm},left:function(){return wT},leftIO:function(){return wE},leftTask:function(){return ww},map:function(){return wV},mapLeft:function(){return wH},match:function(){return wA},matchE:function(){return wD},matchEW:function(){return wj},matchW:function(){return wL},of:function(){return w$},right:function(){return wx},rightIO:function(){return wC},rightTask:function(){return wO},swap:function(){return wK},taskThese:function(){return Ch},toTuple:function(){return Cs},toTuple2:function(){return Ci},traverseReadonlyArrayWithIndex:function(){return Ca},traverseReadonlyArrayWithIndexSeq:function(){return Cl},traverseReadonlyNonEmptyArrayWithIndex:function(){return Cc},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Cf}});var nw={};e.r(nw),e.d(nw,{Functor:function(){return CT},URI:function(){return CS},censor:function(){return Cb},flap:function(){return Cx},getComonad:function(){return C_},listen:function(){return Cg},listens:function(){return Cy},map:function(){return CR},traced:function(){return CM},tracks:function(){return Cv}});var nC={};e.r(nC),e.d(nC,{getTraversableComposition:function(){return CC},sequence:function(){return Cw},traverse:function(){return CO}});var nE={};e.r(nE);var nk={};e.r(nk),e.d(nk,{Applicative:function(){return Eu},Apply:function(){return Et},Chain:function(){return Ei},Comonad:function(){return El},Do:function(){return Ep},Foldable:function(){return Ea},Functor:function(){return C4},Monad:function(){return Eo},Pointed:function(){return En},Traversable:function(){return Ef},URI:function(){return C9},ap:function(){return CH},apFirst:function(){return Ee},apS:function(){return Em},apSecond:function(){return Er},bind:function(){return Eh},bindTo:function(){return Ed},chain:function(){return Ey},chainFirst:function(){return Ec},drawForest:function(){return CU},drawTree:function(){return CP},duplicate:function(){return CJ},elem:function(){return Ev},exists:function(){return Eg},extend:function(){return CX},extract:function(){return C5},flap:function(){return C6},flatMap:function(){return C$},flatten:function(){return CZ},fold:function(){return Cj},foldMap:function(){return C1},getEq:function(){return CW},getShow:function(){return Ck},let:function(){return Es},make:function(){return CE},map:function(){return CQ},of:function(){return C3},reduce:function(){return C0},reduceRight:function(){return C2},sequence:function(){return C8},traverse:function(){return C7},tree:function(){return Eb},unfoldForest:function(){return CL},unfoldForestM:function(){return CN},unfoldTree:function(){return CA},unfoldTreeM:function(){return CD}});var nW={};e.r(nW),e.d(nW,{Bifunctor:function(){return EQ},Comonad:function(){return E1},Foldable:function(){return E2},Functor:function(){return EJ},Semigroupoid:function(){return E0},Traversable:function(){return E5},URI:function(){return EX},bimap:function(){return ED},compose:function(){return Eq},duplicate:function(){return EG},extend:function(){return EK},extract:function(){return EY},flap:function(){return EZ},foldMap:function(){return EB},fst:function(){return E_},getApplicative:function(){return Ex},getApply:function(){return ES},getChain:function(){return EM},getChainRec:function(){return Ew},getMonad:function(){return EO},map:function(){return E7},mapFst:function(){return EN},mapLeft:function(){return E8},mapSnd:function(){return Ej},reduce:function(){return EV},reduceRight:function(){return Ez},sequence:function(){return E$},snd:function(){return EI},swap:function(){return ER},traverse:function(){return EH},tuple:function(){return E3}});var nF={};e.r(nF);var nU={};e.r(nU),e.d(nU,{getValidationM:function(){return E9}});var nP={};e.r(nP),e.d(nP,{Monoid:function(){return E6},Semigroup:function(){return E4}});var nA={};e.r(nA),e.d(nA,{Functor:function(){return ks},URI:function(){return kc},censor:function(){return ku},evalWriter:function(){return kg},evaluate:function(){return km},execWriter:function(){return ky},execute:function(){return kv},flap:function(){return kh},getApplicative:function(){return kl},getApply:function(){return kf},getChain:function(){return kp},getMonad:function(){return kd},getPointed:function(){return ka},listen:function(){return kt},listens:function(){return kr},map:function(){return ko},pass:function(){return ke},tell:function(){return kn},writer:function(){return kb}});var nL={};function nD(n){return function(t){return function(e){return e.reduce(function(t,e){return n.alt(t,function(){return e})},t)}}}e.r(nL),e.d(nL,{getWriterM:function(){return k_}});var nN=e(42925);function nj(n){return nD(n)(n.zero())}function nq(n){var t=(0,nN.getApplySemigroup)(n);return function(e){var r=t(e);return{concat:function(t,e){return n.alt(r.concat(t,e),function(){return n.alt(t,function(){return e})})},empty:n.zero()}}}var nK=e(46111),nG=e(1358),nY=function(n){return"boolean"==typeof n},nB=function(n,t){return function(e){return e?t():n()}},nV=nB,nz=nV,nH=nz,n$={equals:function(n,t){return n===t}},nX={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},nJ={concat:function(n,t){return n&&t}},nZ={concat:function(n,t){return n||t}},nQ={concat:nJ.concat,empty:!0},n0={concat:nZ.concat,empty:!1},n1={equals:n$.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},n2={show:function(n){return JSON.stringify(n)}},n5=e(42275),n7=function(n){return{meet:function(t,e){return n.join(t,e)},join:function(t,e){return n.meet(t,e)},zero:n.one,one:n.zero,implies:function(t,e){return n.join(n.not(t),e)},not:n.not}},n8={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},n3=n7,n9={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n4=n5.getBooleanAlgebra,n6=e(5586),tn=function(n){return n6.clamp(n)(n.bottom,n.top)},tt=function(n){var t=n6.reverse(n);return{equals:t.equals,compare:t.compare,top:n.bottom,bottom:n.top}},te={equals:n6.ordNumber.equals,compare:n6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(n){return{meet:(0,n6.min)(n),join:(0,n6.max)(n)}}function tu(n){var t=tr(n);return function(n,e){return{join:t.join,meet:t.meet,zero:n,one:e}}}var ti=e(88543),to=e(56661);function tc(n,t){return function(e,r){return t.compose(n.right(r),n.left(e))}}function ta(n,t){var e=tc(n,t);return function(r,u){return t.compose(n.promap(t.id(),function(n){return"Left"===n._tag?n.left:n.right},n5.identity),e(r,u))}}function tf(n){return tc(n,n)}function tl(n){return ta(n,n)}var tp=e(67560),td=e(20492),ts=e(34219);function th(n,t){return function(e){return n.map(e,t.compact)}}function tm(n,t,e){var r=th(n,t),u=(0,tp.map)(n,e);return function(n){return ts.separated(r((0,n5.pipe)(n,u(td.getLeft))),r((0,n5.pipe)(n,u(td.getRight))))}}function tv(n,t){return{map:(0,tp.getFunctorComposition)(n,t).map,compact:th(n,t),separate:tm(n,t,t)}}var tg=function(n){return function(){return console.log(n)}},ty=function(n){return function(){return console.warn(n)}},tb=function(n){return function(){return console.error(n)}},t_=function(n){return function(){return console.info(n)}},tI=e(90817),tR=e(76627),tS={equals:function(n,t){return n.valueOf()===t.valueOf()}},tT={equals:function(n,t){return n.getDate()===t.getDate()}},tx={equals:function(n,t){return n.getMonth()===t.getMonth()}},tM={equals:function(n,t){return n.getFullYear()===t.getFullYear()}},tO=(0,n5.pipe)(tR.Ord,n6.contramap(function(n){return n.valueOf()})),tw=function(){return new Date},tC=function(){return new Date().getTime()},tE=e(81878);function tk(n){return(0,n5.flow)(tE.right,n.of)}function tW(n){return(0,n5.flow)(tE.left,n.of)}function tF(n){return function(t){return n.map(t,tE.right)}}function tU(n){return function(t){return n.map(t,tE.left)}}function tP(n){return function(t){return(0,n5.flow)(tE.fromNullable(t),n.of)}}function tA(n){var t=tP(n);return function(n){var e=t(n);return function(n){return(0,n5.flow)(n,e)}}}function tL(n){var t=tj(n),e=tA(n);return function(n){var r=e(n);return function(n){return t(r(n))}}}function tD(n){return(0,tp.map)(n,tE.Functor)}function tN(n){return(0,nN.ap)(n,tE.Apply)}function tj(n){var t=tq(n);return function(n){return function(e){return t(e,n)}}}function tq(n){return function(t,e){return n.chain(t,function(t){return tE.isLeft(t)?n.of(t):e(t.right)})}}function tK(n){return function(t){return function(e){return n.chain(e,function(e){return tE.isLeft(e)?t():n.of(e)})}}}function tG(n){var t=tY(n);return function(n,e){return function(r){return t(r,n,e)}}}function tY(n){return function(t,e,r){return n.map(t,tE.bimap(e,r))}}function tB(n){var t=tV(n);return function(n){return function(e){return t(e,n)}}}function tV(n){return function(t,e){return n.map(t,tE.mapLeft(e))}}function tz(n,t){return function(e){return function(r){return n.chain(r,tE.match(function(r){return n.map(e(),tE.mapLeft(function(n){return t.concat(r,n)}))},tk(n)))}}}function tH(n){return function(t,e){return function(r){return n.map(r,tE.match(t,e))}}}function t$(n){return function(t,e){return function(r){return n.chain(r,tE.match(t,e))}}}function tX(n){return function(t){return function(e){return n.chain(e,tE.match(t,n.of))}}}function tJ(n){return function(t){return function(e){return n.chain(e,function(e){return tE.isLeft(e)?t(e.left):n.of(e)})}}}function tZ(n){var t=tQ(n);return function(n){return function(e){return t(e,n)}}}function tQ(n){var t=tJ(n);return function(e,r){return(0,n5.pipe)(e,t(function(t){return n.map(r(t),function(n){return tE.isLeft(n)?n:tE.left(t)})}))}}function t0(n){return function(t){return function(e){return n.chain(e,tE.match(function(e){return n.map(t(e),tE.left)},function(t){return n.of(tE.right(t))}))}}}function t1(n){return function(t){return n.map(t,tE.swap)}}function t2(n){return function(t){return n.map(t,tE.toUnion)}}function t5(n){var t=tN(n),e=tD(n),r=tj(n),u=tK(n),i=tG(n),o=tB(n),c=t$(n),a=tX(n),f=tJ(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:tk(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},alt:function(n,t){return(0,n5.pipe)(n,u(t))},bimap:function(n,t,e){return(0,n5.pipe)(n,i(t,e))},mapLeft:function(n,t){return(0,n5.pipe)(n,o(t))},fold:function(n,t,e){return(0,n5.pipe)(n,c(t,e))},getOrElse:function(n,t){return(0,n5.pipe)(n,a(t))},orElse:function(n,t){return(0,n5.pipe)(n,f(t))},swap:t1(n),rightM:tF(n),leftM:tU(n),left:tW(n)}}var t7=e(47797),t8=e(65191);function t3(n,t){var e=t.zero,r=function(u,i){return n.equals(i,e)?u:r(i,t.mod(u,i))};return r}function t9(n,t){var e=t.zero,r=t3(n,t);return function(u,i){return n.equals(u,e)||n.equals(i,e)?e:t.div(t.mul(u,i),r(u,i))}}var t4={add:function(n,t){return n+t},zero:0,mul:function(n,t){return n*t},one:1,sub:function(n,t){return n-t},degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}},t6=e(88491);function en(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filter(n,e)})}}}function et(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filterMap(n,e)})}}}function ee(n,t){var e=en(n,t);return function(n){var t=e((0,t6.not)(n)),r=e(n);return function(n){return(0,ts.separated)(t(n),r(n))}}}function er(n,t){var e=et(n,t);return function(n){return function(t){return(0,ts.separated)((0,n5.pipe)(t,e(function(t){return(0,td.getLeft)(n(t))})),(0,n5.pipe)(t,e(function(t){return(0,td.getRight)(n(t))})))}}}function eu(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=th(n,t),u=tm(n,t,t),i=en(n,t),o=et(n,t),c=ee(n,t),a=er(n,t);return{map:e,compact:r,separate:u,filter:function(n,t){return(0,n5.pipe)(n,i(t))},filterMap:function(n,t){return(0,n5.pipe)(n,o(t))},partition:function(n,t){return(0,n5.pipe)(n,c(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,a(t))}}}function ei(n,t){return function(e,r){return function(u){return n.reduce(u,e,function(n,e){return t.reduce(e,n,r)})}}}function eo(n,t){return function(e){var r=n.foldMap(e),u=t.foldMap(e);return function(n){return function(t){return r(t,function(t){return u(t,n)})}}}}function ec(n,t){return function(e,r){return function(u){return n.reduceRight(u,e,function(n,e){return t.reduceRight(n,e,r)})}}}function ea(n,t){return function(e,r){return function(u){return t.reduce(u,n.of(e),function(t,e){return n.chain(t,function(n){return r(n,e)})})}}}function ef(n,t){return function(e,r){return t.reduce(r,{init:!0,acc:n.empty},function(t,r){var u=t.init,i=t.acc;return u?{init:!1,acc:r}:{init:!1,acc:n.concat(n.concat(i,e),r)}}).acc}}function el(n){return function(t){return n.reduce(t,[],function(n,t){return n.push(t),n})}}function ep(n,t){var e=n.of(void 0);return function(r,u){return t.reduce(r,e,function(t,e){var r;return r=u(e),n.ap(n.map(t,n5.constant),r)})}}function ed(n,t){return function(e,r,u){return t.reduce(e,n.of(r),function(t,e){return n.chain(t,function(n){return u(n,e)})})}}var es=el;function eh(n,t){var e=ei(n,t),r=eo(n,t),u=ec(n,t);return{reduce:function(n,t,r){return(0,n5.pipe)(n,e(t,r))},foldMap:function(n){var t=r(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,n5.pipe)(n,u(t,e))}}}function em(n,t){return function(e,r){return function(u){return n.reduceWithIndex(u,e,function(n,e,u){return t.reduceWithIndex(u,e,function(t,e,u){return r([n,t],e,u)})})}}}function ev(n,t){return function(e){var r=n.foldMapWithIndex(e),u=t.foldMapWithIndex(e);return function(n){return function(t){return r(t,function(t,e){return u(e,function(e,r){return n([t,e],r)})})}}}}function eg(n,t){return function(e,r){return function(u){return n.reduceRightWithIndex(u,e,function(n,e,u){return t.reduceRightWithIndex(e,u,function(t,e,u){return r([n,t],e,u)})})}}}function ey(n,t){var e=eh(n,t),r=em(n,t),u=ev(n,t),i=eg(n,t);return{reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(n,t,e){return(0,n5.pipe)(n,r(t,e))},foldMapWithIndex:function(n){var t=u(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,n5.pipe)(n,i(t,e))}}}var eb=e(25162);function e_(n){return function(t){return(0,n5.flow)(t,n.fromIO)}}function eI(n,t){return function(e){var r=(0,n5.flow)(e,n.fromIO);return function(n){return t.chain(n,r)}}}function eR(n,t){var e=eS(n,t);return function(n){return function(t){return e(t,n)}}}function eS(n,t){var e=(0,ti.tap)(t);return function(t,r){return e(t,(0,n5.flow)(r,n.fromIO))}}var eT=e(97963),ex=function(){return n5.identity},eM=n5.identity,eO=function(n){return function(t){return function(e){return t(n(e))}}},ew=function(n){return function(t){return n(t)(t)}},eC=ew,eE=function(n,t){return(0,n5.pipe)(n,eU(t))},ek=function(n,t){return(0,n5.pipe)(n,eA(t))},eW=function(n,t){return(0,n5.pipe)(n,eq(t))},eF=function(n,t,e){return(0,n5.pipe)(n,eK(t,e))},eU=function(n){return function(t){return function(e){return n(t(e))}}},eP=function(n){return function(t){return function(e){return t(e)(n(e))}}},eA=eP,eL=n5.constant,eD=(0,n5.dual)(2,function(n,t){return function(e){return t(n(e))(e)}}),eN=eD(n5.identity),ej=eN,eq=function(n){return function(t){return(0,n5.flow)(n,t)}},eK=function(n,t){return function(e){return function(r){return t(e(n(r)))}}},eG=function(){return n5.identity},eY=function(n){return function(t){var e=t[0],r=t[1];return[n(e),r]}},eB=function(n){return function(t){return[t[0],n(t[1])]}},eV=function(n){return tE.fold(function(t){return eT.t$(n(t))},tE.right)},ez=function(n){return tE.fold(tE.left,function(t){return eT.F2(n(t))})},eH="Reader",e$={URI:eH,map:eE},eX=(0,tp.flap)(e$),eJ={URI:eH,of:eL},eZ={URI:eH,map:eE,ap:ek},eQ=(0,nN.apFirst)(eZ),e0=eQ,e1=(0,nN.apSecond)(eZ),e2=e1,e5={URI:eH,map:eE,ap:ek,of:eL},e7={URI:eH,map:eE,ap:ek,chain:eD},e8={URI:eH,map:eE,of:eL,ap:ek,chain:eD},e3=(0,n5.dual)(2,ti.tap(e7)),e9={URI:eH,map:eE,promap:eF},e4={URI:eH,compose:eW,id:eG},e6={URI:eH,map:eE,promap:eF,first:eY,second:eB},rn={URI:eH,map:eE,promap:eF,left:eV,right:ez},rt=(0,tp.bindTo)(e$),re=(0,tp.let)(e$),rr=ti.bind(e7),ru=rr,ri=eL(eT.F4),ro=(0,nN.apS)(eZ),rc=ro,ra=eL(eT.Xl),rf=function(n){return function(t){return function(e){for(var r=[n(0,eT.YM(t))(e)],u=1;u<t.length;u++)r.push(n(u,t[u])(e));return r}}},rl=function(n){var t=rf(n);return function(n){return eT.Od(n)?t(n):ra}},rp=rl,rd=function(n){return rl(function(t,e){return n(e)})},rs=rd(n5.identity),rh=eD,rm=eD,rv=e3,rg=e3,ry={URI:eH,map:eE,of:eL,ap:ek,chain:eD,promap:eF,compose:eW,id:eG,first:eY,second:eB,left:eV,right:ez},rb=(0,nN.getApplySemigroup)(eZ),r_=(0,nK.getApplicativeMonoid)(e5);function rI(n){return function(){return n.fromReader(ex())}}function rR(n){return n.fromReader}function rS(n){return function(t){return(0,n5.flow)(t,n.fromReader)}}function rT(n,t){var e=rS(n);return function(n){return function(r){return t.chain(r,e(n))}}}function rx(n,t){var e=rM(n,t);return function(n){return function(t){return e(t,n)}}}function rM(n,t){var e=(0,ti.tap)(t);return function(t,r){return e(t,(0,n5.flow)(r,n.fromReader))}}var rO=function(){return function(n){return[n,n]}},rw=function(n){return function(){return[void 0,n]}},rC=function(n){return function(t){return[void 0,n(t)]}},rE=function(n){return function(t){return[n(t),t]}},rk=function(n,t){return(0,n5.pipe)(n,rF(t))},rW=function(n,t){return(0,n5.pipe)(n,rU(t))},rF=function(n){return function(t){return function(e){var r=t(e),u=r[0],i=r[1];return[n(u),i]}}},rU=function(n){return function(t){return function(e){var r=t(e),u=r[0],i=n(r[1]),o=i[0],c=i[1];return[u(o),c]}}},rP=function(n){return function(t){return[n,t]}},rA=(0,n5.dual)(2,function(n,t){return function(e){var r=n(e),u=r[0],i=r[1];return t(u)(i)}}),rL=rA(n5.identity),rD="State",rN={URI:rD,map:rk},rj=(0,tp.flap)(rN),rq={URI:rD,of:rP},rK={URI:rD,map:rk,ap:rW},rG=(0,nN.apFirst)(rK),rY=(0,nN.apSecond)(rK),rB={URI:rD,map:rk,ap:rW,of:rP},rV={URI:rD,map:rk,ap:rW,chain:rA},rz={URI:rD,map:rk,ap:rW,of:rP,chain:rA},rH=(0,n5.dual)(2,ti.tap(rV)),r$={URI:rD,fromState:n5.identity},rX=function(n){return function(t){return t(n)[0]}},rJ=function(n){return function(t){return t(n)[1]}},rZ=(0,tp.bindTo)(rN),rQ=(0,tp.let)(rN),r0=ti.bind(rV),r1=(0,nN.apS)(rK),r2=function(n){return function(t){return function(e){for(var r=n(0,eT.YM(t))(e),u=r[0],i=r[1],o=[u],c=i,a=1;a<t.length;a++){var f=n(a,t[a])(c),l=f[0],p=f[1];o.push(l),c=p}return[o,c]}}},r5=function(n){var t=r2(n);return function(n){return eT.Od(n)?t(n):rP(eT.Xl)}},r7=r5,r8=function(n){return r5(function(t,e){return n(e)})},r3=r8(n5.identity),r9=rA,r4=rH,r6=function(n,t){return n(t)[0]},un=function(n,t){return n(t)[1]},ut=rz;function ue(n){return function(){return n.fromState(rO())}}function ur(n){return function(t){return n.fromState(rw(t))}}function uu(n){return(0,n5.flow)(rC,n.fromState)}function ui(n){return(0,n5.flow)(rE,n.fromState)}function uo(n){return function(t){return(0,n5.flow)(t,n.fromState)}}function uc(n,t){var e=uo(n);return function(n){return function(r){return t.chain(r,e(n))}}}function ua(n){return function(t){return(0,n5.flow)(t,n.fromTask)}}function uf(n,t){return function(e){var r=(0,n5.flow)(e,n.fromTask);return function(n){return t.chain(n,r)}}}function ul(n,t){var e=up(n,t);return function(n){return function(t){return e(t,n)}}}function up(n,t){var e=(0,ti.tap)(t);return function(t,r){return e(t,(0,n5.flow)(r,n.fromTask))}}function ud(n){return function(t){return(0,n5.flow)(t,n.fromThese)}}function us(n,t){return function(e){return function(r){return n.mapWithIndex(r,function(n,r){return t.mapWithIndex(r,function(t,r){return e([n,t],r)})})}}}function uh(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=us(n,t);return{map:e,mapWithIndex:function(n,t){return(0,n5.pipe)(n,r(t))}}}var um=function(n,t){return(0,n5.pipe)(n,uT(t))},uv=function(n,t){return(0,n5.pipe)(n,ux(t))},ug=function(n,t,e){return(0,n5.pipe)(n,uW(t,e))},uy=function(n){return function(t,e){return(0,n5.pipe)(t,uF(n)(e))}},ub=function(n,t,e){return(0,n5.pipe)(n,uU(t,e))},u_=function(n,t){return(0,n5.pipe)(n,uD(t))},uI=function(n,t){return(0,n5.pipe)(n,uw(t))},uR=function(n){var t=uP(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},uS=to.tailRec,uT=function(n){return function(t){return n(t)}},ux=function(n){return function(t){return t(n)}},uM=n5.identity,uO=(0,n5.dual)(2,function(n,t){return t(n)}),uw=function(n){return function(t){return n(t)}},uC=n5.identity,uE=uw(n5.identity),uk=uO(n5.identity),uW=function(n,t){return function(e){return t(n,e)}},uF=function(){return function(n){return function(t){return n(t)}}},uU=function(n,t){return function(e){return t(e,n)}},uP=function(n){return function(t){return function(e){return n.map(t(e),n5.identity)}}},uA=function(n){return function(t){return n.map(t,n5.identity)}},uL=function(){return n5.identity},uD=uL,uN="Identity",uj=n5.identity,uq=n5.identity,uK={URI:uN,map:um},uG=(0,tp.flap)(uK),uY={URI:uN,of:uM},uB={URI:uN,map:um,ap:uv},uV=(0,nN.apFirst)(uB),uz=(0,nN.apSecond)(uB),uH={URI:uN,map:um,ap:uv,of:uM},u$={URI:uN,map:um,ap:uv,chain:uO},uX={URI:uN,map:um,ap:uv,of:uM,chain:uO},uJ=(0,ti.chainFirst)(u$),uZ={URI:uN,reduce:ug,foldMap:uy,reduceRight:ub},uQ={URI:uN,map:um,reduce:ug,foldMap:uy,reduceRight:ub,traverse:uR,sequence:uA},u0={URI:uN,map:um,alt:u_},u1={URI:uN,map:um,extend:uI,extract:uC},u2={URI:uN,map:um,ap:uv,chain:uO,chainRec:uS},u5=uM(eT.F4),u7=(0,tp.bindTo)(uK),u8=(0,tp.let)(uK),u3=(0,ti.bind)(u$),u9=(0,nN.apS)(uB),u4=uO,u6={URI:uN,map:um,ap:uv,of:uM,chain:uO,reduce:ug,foldMap:uy,reduceRight:ub,traverse:uR,sequence:uA,alt:u_,extract:uC,extend:uI,chainRec:uS},it=function(n,t){return function(){return t(n())}},ie=function(n,t){return function(){return n()(t())}},ir=function(n,t){return function(){for(var e=t(n)();"Left"===e._tag;)e=t(e.left)();return e.right}},iu=function(n){return function(t){return it(t,n)}},ii=function(n){return function(t){return ie(t,n)}},io=n5.constant,ic=(0,n5.dual)(2,function(n,t){return function(){return t(n())()}}),ia=ic(n5.identity),il="IO",ip={URI:il,map:it},id=(0,n5.dual)(2,(0,tp.as)(ip)),is=(0,tp.asUnit)(ip),ih=(0,tp.flap)(ip),im={URI:il,of:io},iv={URI:il,map:it,ap:ie},ig=(0,nN.apFirst)(iv),iy=(0,nN.apSecond)(iv),ib={URI:il,map:it,ap:ie,of:io},i_={URI:il,map:it,ap:ie,chain:ic},iI={URI:il,map:it,ap:ie,of:io,chain:ic},iR=(0,n5.dual)(2,ti.tap(i_)),iS=n5.identity,iT={URI:il,map:it,ap:ie,of:io,chain:ic,fromIO:iS},ix={URI:il,map:it,ap:ie,chain:ic,chainRec:ir},iM={URI:il,fromIO:n5.identity},iO=io(eT.F4),iw=(0,tp.bindTo)(ip),iC=(0,tp.let)(ip),iE=ti.bind(i_),ik=(0,nN.apS)(iv),iW=io(eT.Xl),iF=function(n){return function(t){return function(){for(var e=[n(0,eT.YM(t))()],r=1;r<t.length;r++)e.push(n(r,t[r])());return e}}},iU=function(n){var t=iF(n);return function(n){return eT.Od(n)?t(n):iW}},iP=iU,iA=function(n){return iU(function(t,e){return n(e)})},iL=iA(n5.identity),iD=ic,iN=iR,ij={URI:il,map:it,of:io,ap:ie,chain:ic,fromIO:iS,chainRec:ir},iq=(0,nN.getApplySemigroup)(iv),iK=(0,nK.getApplicativeMonoid)(ib),iG=tW(im),iY=tk(im),iB=tF(ip),iV=tU(ip),iz=io,iH=iB,i$=tH(ip),iX=i$,iJ=t$(iI),iZ=iJ,iQ=iJ,i0=iQ,i1=tX(iI),i2=i1,i5=function(n,t){return function(){return tE.tryCatch(n,t)}},i7=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return i5(function(){return n.apply(void 0,e)},t)}},i8=t2(ip),i3=tJ(iI),i9=i3,i4=(0,n5.dual)(2,tQ(iI)),i6=function(n){return i4(oz(n))},on=t0(iI),ot=t1(ip),oe=function(n,t){return(0,n5.pipe)(n,oi(t))},or=function(n,t){return(0,n5.pipe)(n,ol(t))},ou=function(n,t){return(0,n5.pipe)(n,ov(t))},oi=tD(ip),oo=(0,n5.dual)(3,tY(ip)),oc=oo,oa=(0,n5.dual)(2,tV(ip)),of=oa,ol=tN(iv),op=ol,od=iY,os=(0,n5.dual)(2,tq(iI)),oh=os(n5.identity),om=oh,ov=tK(iI),og=ov,oy=iG,ob="IOEither";function o_(n){var t=(0,nN.ap)(iv,tE.getApplicativeValidation(n));return{URI:ob,_E:void 0,map:oe,ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:od}}function oI(n){var t=tz(iI,n);return{URI:ob,_E:void 0,map:oe,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var oR=function(n){var t=tE.getCompactable(n);return{URI:ob,_E:void 0,compact:th(ip,t),separate:tm(ip,t,tE.Functor)}};function oS(n){var t=tE.getFilterable(n),e=oR(n),r=en(ip,t),u=et(ip,t),i=ee(ip,t),o=er(ip,t);return{URI:ob,_E:void 0,map:oe,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,u(t))},partition:function(n,t){return(0,n5.pipe)(n,i(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}var oT={URI:ob,map:oe},ox=(0,n5.dual)(2,(0,tp.as)(oT)),oM=(0,tp.asUnit)(oT),oO=(0,tp.flap)(oT),ow={URI:ob,of:od},oC={URI:ob,bimap:oo,mapLeft:oa},oE={URI:ob,map:oe,ap:or},ok=(0,nN.apFirst)(oE),oW=ok,oF=(0,nN.apSecond)(oE),oU=oF,oP={URI:ob,map:oe,ap:or,of:od},oA={URI:ob,map:oe,ap:function(n,t){return os(n,function(n){return(0,n5.pipe)(t,oi(n))})},of:od},oL={URI:ob,map:oe,ap:or,chain:os},oD={URI:ob,map:oe,ap:or,of:od,chain:os},oN={URI:ob,fromEither:iz},oj={URI:ob,fromIO:iH},oq=(0,n5.dual)(2,ti.tap(oL)),oK=(0,n5.dual)(2,(0,eb.tapEither)(oN,oL)),oG=(0,n5.dual)(2,eS(oj,oL)),oY={URI:ob,map:oe,alt:ou},oB={URI:ob,map:oe,ap:or,of:od,chain:os,fromIO:iH},oV={URI:ob,map:oe,ap:or,of:od,chain:os,throwError:oy},oz=e_(oj),oH=oG,o$=(0,eb.fromOption)(oN),oX=(0,eb.fromOptionK)(oN),oJ=(0,eb.chainOptionK)(oN,oL),oZ=oJ,oQ={fromEither:oN.fromEither},o0=eT.uL(oQ),o1=eT.WE(oQ),o2={flatMap:os},o5=eT.ny(oQ,o2),o7=eT.hU(oQ,o2),o8=eT.iu(oQ,o2),o3=eT.we({fromIO:iH},o2),o9=o3,o4=o8,o6=o8,cn=oK,ct=oK,ce=(0,eb.fromPredicate)(oN),cr=(0,eb.filterOrElse)(oN,oL),cu=cr,ci=(0,eb.fromEitherK)(oN),co=function(n,t,e){return cc(n,t,e)},cc=function(n,t,e){return os(n,function(n){return ic(t(n),function(t){return os(e(n,t),function(){return io(t)})})})},ca=od(eT.F4),cf=(0,tp.bindTo)(oT),cl=(0,tp.let)(oT),cp=ti.bind(oL),cd=cp,cs=(0,nN.apS)(oE),ch=cs,cm=od(eT.Xl),cv=function(n){return(0,n5.flow)(iF(n),iu(tE.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},cg=function(n){var t=cv(n);return function(n){return eT.Od(n)?t(n):cm}},cy=function(n){return function(t){return function(){var e=n(0,eT.YM(t))();if(eT.nM(e))return e;for(var r=[e.right],u=1;u<t.length;u++){var i=n(u,t[u])();if(eT.nM(i))return i;r.push(i.right)}return eT.F2(r)}}},cb=function(n){var t=cy(n);return function(n){return eT.Od(n)?t(n):cm}},c_=cg,cI=function(n){return cg(function(t,e){return n(e)})},cR=cI(n5.identity),cS=cb,cT=function(n){return cb(function(t,e){return n(e)})},cx=cT(n5.identity),cM=oP,cO=os,cw=os,cC=oq,cE=oq,ck=i4,cW=i4,cF={URI:ob,bimap:oo,mapLeft:oa,map:oe,of:od,ap:or,chain:os,alt:ou,fromIO:iH,throwError:oy},cU=(0,nN.getApplySemigroup)(oE),cP=(0,nK.getApplicativeMonoid)(oP),cA=function(n){return(0,nN.getApplySemigroup)(iv)(tE.getSemigroup(n))};function cL(n){var t=o_(n),e=oI(n);return{URI:ob,_E:void 0,map:oe,ap:t.ap,of:od,chain:os,bimap:oo,mapLeft:oa,alt:e.alt,fromIO:iH,throwError:oy}}function cD(n){return(0,n5.flow)(td.some,n.of)}function cN(n){return(0,n5.constant)(n.of(td.none))}function cj(n){return function(t){return n.map(t,td.some)}}function cq(n){return(0,n5.flow)(td.fromNullable,n.of)}function cK(n){var t=cq(n);return function(n){return(0,n5.flow)(n,t)}}function cG(n){var t=cQ(n),e=cK(n);return function(n){return t(e(n))}}function cY(n){return function(t){return(0,n5.flow)(t,n.of)}}function cB(n){var t=cQ(n),e=cY(n);return function(n){return t(e(n))}}function cV(n){return function(t){return function(e){return n.of(td.fromPredicate(t)(e))}}}function cz(n){return(0,n5.flow)(td.fromEither,n.of)}function cH(n){return function(t,e){return function(r){return n.map(r,td.match(t,e))}}}function c$(n){return function(t,e){return function(r){return n.chain(r,td.match(t,e))}}}function cX(n){return function(t){return function(e){return n.chain(e,td.match(t,n.of))}}}function cJ(n){return(0,tp.map)(n,td.Functor)}function cZ(n){return(0,nN.ap)(n,td.Apply)}function cQ(n){var t=c0(n);return function(n){return function(e){return t(e,n)}}}function c0(n){var t=cN(n);return function(e,r){return n.chain(e,td.match(function(){return t()},r))}}function c1(n){var t=cD(n);return function(e){return function(r){return n.chain(r,td.match(e,t))}}}function c2(n){var t=cZ(n),e=cJ(n),r=cQ(n),u=c1(n),i=c$(n),o=cX(n),c=cN(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:cD(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},alt:function(n,t){return(0,n5.pipe)(n,u(t))},fold:function(n,t,e){return(0,n5.pipe)(n,i(t,e))},getOrElse:function(n,t){return(0,n5.pipe)(n,o(t))},fromM:cj(n),none:function(){return c()}}}var c5=e(28957),c7=cD(im),c8=cV(im),c3=io,c9=cz(im),c4=cj(ip),c6=iu(td.fromEither),an=cH(ip),at=an,ae=c$(i_),ar=ae,au=ae,ai=cX(iI),ao=ai,ac=iu(td.toUndefined),aa=iu(td.toNullable),af=cq(im),al=cK(im),ap=cG(iI),ad=cY(im),as=cJ(ip),ah=cZ(iv),am=c7,av=(0,n5.dual)(2,c0(iI)),ag=av(n5.identity),ay=c1(iI),ab=ay,a_=cN(im),aI=a_(),aR=th(ip,td.Compactable),aS=tm(ip,td.Compactable,td.Functor),aT=en(ip,td.Filterable),ax=et(ip,td.Filterable),aM=ee(ip,td.Filterable),aO=er(ip,td.Filterable),aw=function(n,t){return(0,n5.pipe)(n,as(t))},aC=function(n,t){return(0,n5.pipe)(n,ah(t))},aE=function(n,t){return(0,n5.pipe)(n,ay(t))},ak="IOOption",aW={URI:ak,map:aw},aF=(0,n5.dual)(2,(0,tp.as)(aW)),aU=(0,tp.asUnit)(aW),aP=(0,tp.flap)(aW),aA={URI:ak,of:am},aL={URI:ak,map:aw,ap:aC},aD=(0,nN.apFirst)(aL),aN=(0,nN.apSecond)(aL),aj={URI:ak,map:aw,ap:aC,of:am},aq={URI:ak,map:aw,ap:aC,chain:av},aK={URI:ak,fromEither:c9},aG={URI:ak,fromIO:c4},aY=(0,n5.dual)(2,ti.tap(aq)),aB=(0,n5.dual)(2,(0,eb.tapEither)(aK,aq)),aV=(0,n5.dual)(2,eS(aG,aq)),az={URI:ak,map:aw,alt:aE},aH={URI:ak,zero:a_},a$=(0,c5.guard)(aH,aA),aX={URI:ak,map:aw,ap:aC,of:am,alt:aE,zero:a_},aJ={URI:ak,map:aw,ap:aC,of:am,chain:av},aZ={URI:ak,map:aw,ap:aC,of:am,chain:av,fromIO:c4},aQ={URI:ak,compact:aR,separate:aS},a0={URI:ak,map:aw,compact:aR,separate:aS,filter:function(n,t){return(0,n5.pipe)(n,aT(t))},filterMap:function(n,t){return(0,n5.pipe)(n,ax(t))},partition:function(n,t){return(0,n5.pipe)(n,aM(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,aO(t))}},a1={flatMap:av},a2={fromIO:aG.fromIO},a5=eT.we(a2,a1),a7=(0,n5.dual)(2,function(n,t){return av(n,ad(t))}),a8=eT.iu({fromEither:c9},a1),a3=(0,n5.dual)(2,function(n,t){return av(n,al(t))}),a9=e_(aG),a4=a5,a6=aV,fn=(0,eb.fromEitherK)(aK),ft=a8,fe=aB,fr=a7,fu=am(eT.F4),fi=(0,tp.bindTo)(aW),fo=(0,tp.let)(aW),fc=ti.bind(aq),fa=(0,nN.apS)(aL),ff=am(eT.Xl),fl=function(n){return(0,n5.flow)(iF(n),iu(td.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},fp=function(n){var t=fl(n);return function(n){return eT.Od(n)?t(n):ff}},fd=av,fs=aY,fh=function(){function n(n){var t=this;this.value=n,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return n.prototype.write=function(n){var t=this;return function(){t.value=n}},n.prototype.modify=function(n){var t=this;return function(){t.value=n(t.value)}},n}();function fm(n){return function(){return new fh(n)}}var fv=function(n){return(0,tE.tryCatch)(function(){return JSON.parse(n)},n5.identity)},fg=function(n){return(0,tE.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n5.identity)},fy=e(76113),fb=e(55116),f_=e(96576),fI=e(43586),fR=function(n,t,e){return function(r){return -1===r?n():0===r?t():e()}},fS=fR,fT=function(n){return -1===n?1:1===n?-1:0},fx={equals:function(n,t){return n===t}},fM={concat:function(n,t){return 0!==n?n:t}},fO={concat:fM.concat,empty:0},fw=function(n){return n<=-1?-1:n>=1?1:0},fC=fT,fE=fM,fk=fx,fW=fO,fF=e(18896),fU=function(){return Math.random()};function fP(n,t){return(0,n5.pipe)(fU,iu(function(e){return Math.floor((t-n+1)*e+n)}))}function fA(n,t){return(0,n5.pipe)(fU,iu(function(e){return(t-n)*e+n}))}var fL=(0,n5.pipe)(fU,iu(function(n){return n<.5})),fD=function(n){return(0,n5.pipe)(fP(0,n.length-1),iu(function(t){return n[t]}))},fN=tW(eJ),fj=tk(eJ),fq=tF(e$),fK=tU(e$),fG=eL,fY=fq,fB=tH(e$),fV=fB,fz=t$(e8),fH=fz,f$=fz,fX=f$,fJ=tX(e8),fZ=fJ,fQ=t2(e$),f0=eO,f1=ew,f2=f1,f5=tJ(e8),f7=f5,f8=(0,n5.dual)(2,tQ(e8)),f3=t0(e8),f9=t1(e$),f4=function(n,t){return(0,n5.pipe)(n,lt(t))},f6=function(n,t){return(0,n5.pipe)(n,lo(t))},ln=function(n,t){return(0,n5.pipe)(n,ld(t))},lt=tD(e$),le=(0,n5.dual)(3,tY(e$)),lr=le,lu=(0,n5.dual)(2,tV(e$)),li=lu,lo=tN(eZ),lc=lo,la=fj,lf=(0,n5.dual)(2,tq(e8)),ll=lf(n5.identity),lp=ll,ld=tK(e8),ls=ld,lh=fN,lm="ReaderEither",lv=function(n){var t=tE.getCompactable(n);return{URI:lm,_E:void 0,compact:th(e$,t),separate:tm(e$,t,tE.Functor)}};function lg(n){var t=tE.getFilterable(n),e=lv(n),r=en(e$,t),u=et(e$,t),i=ee(e$,t),o=er(e$,t);return{URI:lm,_E:void 0,map:f4,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,u(t))},partition:function(n,t){return(0,n5.pipe)(n,i(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}function ly(n){var t=(0,nN.ap)(eZ,tE.getApplicativeValidation(n));return{URI:lm,_E:void 0,map:f4,ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:la}}function lb(n){var t=tz(e8,n);return{URI:lm,_E:void 0,map:f4,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var l_={URI:lm,map:f4},lI=(0,n5.dual)(2,(0,tp.as)(l_)),lR=(0,tp.asUnit)(l_),lS=(0,tp.flap)(l_),lT={URI:lm,of:la},lx={URI:lm,map:f4,ap:f6},lM=(0,nN.apFirst)(lx),lO=lM,lw=(0,nN.apSecond)(lx),lC=lw,lE={URI:lm,map:f4,ap:f6,of:la},lk={URI:lm,map:f4,ap:f6,chain:lf},lW={URI:lm,map:f4,ap:f6,of:la,chain:lf},lF={URI:lm,fromEither:fG},lU={URI:lm,fromReader:fY},lP=(0,n5.dual)(2,ti.tap(lk)),lA=(0,n5.dual)(2,(0,eb.tapEither)(lF,lk)),lL=(0,n5.dual)(2,rM(lU,lk)),lD={URI:lm,bimap:le,mapLeft:lu},lN={URI:lm,map:f4,alt:ln},lj=rI(lU),lq=rR(lU),lK=rS(lU),lG=lL,lY=lL,lB={URI:lm,map:f4,ap:f6,of:la,chain:lf,throwError:lh},lV=(0,eb.fromOption)(lF),lz=(0,eb.fromOptionK)(lF),lH=(0,eb.chainOptionK)(lF,lk),l$=lH,lX={fromEither:lF.fromEither},lJ={fromReader:lU.fromReader},lZ=eT.uL(lX),lQ=eT.WE(lX),l0={flatMap:lf},l1=eT.ny(lX,l0),l2=eT.hU(lX,l0),l5=eT.iu(lX,l0),l7=eT.on(lJ,l0),l8=l5,l3=l5,l9=lA,l4=lA,l6=l7,pn=l7,pt=(0,eb.fromPredicate)(lF),pe=(0,eb.filterOrElse)(lF,lk),pr=pe,pu=(0,eb.fromEitherK)(lF),pi=la(eT.F4),po=(0,tp.bindTo)(l_),pc=(0,tp.let)(l_),pa=ti.bind(lk),pf=pa,pl=(0,nN.apS)(lx),pp=pl,pd=la(eT.Xl),ps=function(n){return(0,n5.flow)(rf(n),eU(tE.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},ph=function(n){var t=ps(n);return function(n){return eT.Od(n)?t(n):pd}},pm=ph,pv=function(n){return ph(function(t,e){return n(e)})},pg=pv(n5.identity),py=lf,pb=lf,p_=lP,pI=lP,pR=f8,pS=f8,pT={URI:lm,bimap:le,mapLeft:lu,map:f4,of:la,ap:f6,chain:lf,alt:ln,throwError:fN},px=(0,nN.getApplySemigroup)(lx),pM=(0,nK.getApplicativeMonoid)(lE),pO=function(n){return(0,nN.getApplySemigroup)(eZ)(tE.getSemigroup(n))};function pw(n){var t=ly(n),e=lb(n);return{URI:lm,_E:void 0,map:f4,ap:t.ap,of:la,chain:lf,bimap:le,mapLeft:lu,alt:e.alt,throwError:lh}}function pC(n){return function(t){return function(){return n.of(t)}}}function pE(n){return function(t){return function(e){return function(r){return n.map(e(r),t)}}}}function pk(n){return function(t){return function(e){return function(r){return n.ap(e(r),t(r))}}}}function pW(n){var t=pF(n);return function(n){return function(e){return t(e,n)}}}function pF(n){return function(t,e){return function(r){return n.chain(t(r),function(n){return e(n)(r)})}}}function pU(n){return function(t){return(0,n5.flow)(t,n.of)}}function pP(n){return function(t){return(0,n5.flow)(t,n)}}function pA(n){var t=pk(n),e=pE(n),r=pW(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:pC(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},ask:function(){return n.of},asks:function(t){return(0,n5.flow)(t,n.of)},local:function(n,t){return function(e){return n(t(e))}},fromReader:pU(n),fromM:function(n){return function(){return n}}}}var pL=pU(im),pD=eL,pN=eO,pj=ew,pq=pj,pK=function(n,t){return(0,n5.pipe)(n,pY(t))},pG=function(n,t){return(0,n5.pipe)(n,pB(t))},pY=pE(ip),pB=pk(iv),pV=pB,pz=pC(im),pH=(0,n5.dual)(2,pF(iI)),p$=pH(n5.identity),pX=p$,pJ="ReaderIO",pZ={URI:pJ,map:pK},pQ=(0,n5.dual)(2,(0,tp.as)(pZ)),p0=(0,tp.asUnit)(pZ),p1=(0,tp.flap)(pZ),p2={URI:pJ,of:pz},p5={URI:pJ,map:pK,ap:pG},p7=(0,nN.apFirst)(p5),p8=(0,nN.apSecond)(p5),p3={URI:pJ,map:pK,ap:pG,of:pz},p9={URI:pJ,map:pK,ap:pG,chain:pH},p4={URI:pJ,map:pK,of:pz,ap:pG,chain:pH},p6={URI:pJ,map:pK,of:pz,ap:pG,chain:pH,fromIO:pD},dn={URI:pJ,fromIO:pD},dt={URI:pJ,fromReader:pL},de={flatMap:pH},dr={fromIO:dn.fromIO},du=eT.we(dr,de),di=eT.on({fromReader:pL},de),dc=(0,n5.dual)(2,ti.tap(p9)),da=(0,n5.dual)(2,eS(dn,p9)),df=(0,n5.dual)(2,rM(dt,p9)),dl=e_(dn),dp=du,dd=da,ds=rI(dt),dh=rR(dt),dm=rS(dt),dv=di,dg=di,dy=df,db=df,d_=pz(eT.F4),dI=(0,tp.bindTo)(pZ),dR=ti.bind(p9),dS=dR,dT=(0,nN.apS)(p5),dx=dT,dM=pz(eT.Xl),dO=function(n){return(0,n5.flow)(rf(n),eU(iF(n5.SK)))},dw=function(n){var t=dO(n);return function(n){return eT.Od(n)?t(n):dM}},dC=dw,dE=function(n){return dw(function(t,e){return n(e)})},dk=dE(n5.identity),dW=pH,dF=pH,dU=dc,dP=dc,dA=function(n){return function(){return Promise.resolve().then(n)}};function dL(n){return function(t){return function(){return new Promise(function(e){setTimeout(function(){Promise.resolve().then(t).then(e)},n)})}}}var dD=function(n,t){return(0,n5.pipe)(n,dq(t))},dN=function(n,t){return(0,n5.pipe)(n,dK(t))},dj=function(n,t){return dY(n,function(n){return(0,n5.pipe)(t,dq(n))})},dq=function(n){return function(t){return function(){return Promise.resolve().then(t).then(n)}}},dK=function(n){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(n)]).then(function(n){return(0,n[0])(n[1])})}}},dG=function(n){return function(){return Promise.resolve(n)}},dY=(0,n5.dual)(2,function(n,t){return function(){return Promise.resolve().then(n).then(function(n){return t(n)()})}}),dB=dY(n5.identity),dV="Task";function dz(){return{concat:function(n,t){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(t)])}},empty:sf}}var dH={URI:dV,map:dD},d$=(0,n5.dual)(2,(0,tp.as)(dH)),dX=(0,tp.asUnit)(dH),dJ=(0,tp.flap)(dH),dZ={URI:dV,of:dG},dQ={URI:dV,map:dD,ap:dN},d0=(0,nN.apFirst)(dQ),d1=(0,nN.apSecond)(dQ),d2={URI:dV,map:dD,ap:dN,of:dG},d5={URI:dV,map:dD,ap:dj},d7={URI:dV,map:dD,ap:dj,of:dG},d8={URI:dV,map:dD,ap:dN,chain:dY},d3={URI:dV,map:dD,of:dG,ap:dN,chain:dY},d9={URI:dV,map:dD,of:dG,ap:dN,chain:dY,fromIO:dA},d4=n5.identity,d6={URI:dV,map:dD,of:dG,ap:dN,chain:dY,fromIO:dA,fromTask:d4},sn={URI:dV,fromIO:dA},st={fromIO:sn.fromIO},se=eT.we(st,{flatMap:dY}),sr=(0,n5.dual)(2,ti.tap(d8)),su=(0,n5.dual)(2,eS(sn,d8)),si=e_(sn),so=se,sc=su,sa={URI:dV,fromIO:dA,fromTask:d4},sf=function(){return new Promise(function(n){})},sl=dG(eT.F4),sp=(0,tp.bindTo)(dH),sd=(0,tp.let)(dH),ss=ti.bind(d8),sh=(0,nN.apS)(dQ),sm=dG(eT.Xl),sv=function(n){return function(t){return function(){return Promise.all(t.map(function(t,e){return Promise.resolve().then(function(){return n(e,t)()})}))}}},sg=function(n){var t=sv(n);return function(n){return eT.Od(n)?t(n):sm}},sy=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(t){return Promise.resolve().then(n(r+1,e)).then(function(n){return t.push(n),t})})},Promise.resolve().then(n(0,eT.YM(t))).then(eT.ri))}}},sb=function(n){var t=sy(n);return function(n){return eT.Od(n)?t(n):sm}},s_=sg,sI=function(n){return sg(function(t,e){return n(e)})},sR=sI(n5.identity),sS=sb,sT=function(n){return sb(function(t,e){return n(e)})},sx=sT(n5.identity),sM=dY,sO=sr,sw={URI:dV,map:dD,of:dG,ap:dN,chain:dY,fromIO:dA,fromTask:d4},sC={URI:dV,map:dD,of:dG,ap:dj,chain:dY,fromIO:dA,fromTask:d4},sE=(0,nN.getApplySemigroup)(d5),sk=(0,nK.getApplicativeMonoid)(d7),sW=pU(dZ),sF=eL,sU=(0,n5.flow)(dA,sF),sP=eU(dA),sA=eO,sL=ew,sD=sL,sN=function(n,t){return(0,n5.pipe)(n,sK(t))},sj=function(n,t){return(0,n5.pipe)(n,sG(t))},sq=function(n,t){return sV(n,function(n){return(0,n5.pipe)(t,sK(n))})},sK=pE(dH),sG=pk(dQ),sY=sG,sB=pC(dZ),sV=(0,n5.dual)(2,pF(d3)),sz=sV(n5.identity),sH=sz,s$="ReaderTask",sX={URI:s$,map:sN},sJ=(0,n5.dual)(2,(0,tp.as)(sX)),sZ=(0,tp.asUnit)(sX),sQ=(0,tp.flap)(sX),s0={URI:s$,of:sB},s1={URI:s$,map:sN,ap:sj},s2=(0,nN.apFirst)(s1),s5=(0,nN.apSecond)(s1),s7={URI:s$,map:sN,ap:sj,of:sB},s8={URI:s$,map:sN,ap:sq},s3={URI:s$,map:sN,ap:sq,of:sB},s9={URI:s$,map:sN,ap:sj,chain:sV},s4={URI:s$,map:sN,of:sB,ap:sj,chain:sV},s6={URI:s$,map:sN,of:sB,ap:sj,chain:sV,fromIO:sU},hn={URI:s$,map:sN,of:sB,ap:sj,chain:sV,fromIO:sU,fromTask:sF},ht={URI:s$,fromIO:sU},he={URI:s$,fromIO:sU,fromTask:sF},hr={URI:s$,fromReader:sW},hu={flatMap:sV},hi={fromIO:ht.fromIO},ho=eT.we(hi,hu),hc=eT.D9({fromTask:sF},hu),ha=eT.on({fromReader:sW},hu),hf=(0,n5.dual)(2,function(n,t){return sV(n,hx(t))}),hl=(0,n5.dual)(2,ti.tap(s9)),hp=(0,n5.dual)(2,eS(ht,s9)),hd=(0,n5.dual)(2,rM(hr,s9)),hs=(0,n5.dual)(2,up(he,s9)),hh=(0,n5.dual)(2,function(n,t){return hl(n,hx(t))}),hm=e_(ht),hv=ho,hg=hp,hy=rI(hr),hb=rR(hr),h_=rS(hr),hI=ha,hR=ha,hS=hd,hT=hd,hx=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sP(n.apply(void 0,t))}},hM=hf,hO=hf,hw=hh,hC=hh,hE=ua(he),hk=hc,hW=hs,hF=sB(eT.F4),hU=(0,tp.bindTo)(sX),hP=(0,tp.let)(sX),hA=ti.bind(s9),hL=hA,hD=(0,nN.apS)(s1),hN=hD,hj=sB(eT.Xl),hq=function(n){return(0,n5.flow)(rf(n),eU(sv(n5.SK)))},hK=function(n){var t=hq(n);return function(n){return eT.Od(n)?t(n):hj}},hG=function(n){return(0,n5.flow)(rf(n),eU(sy(n5.SK)))},hY=function(n){var t=hG(n);return function(n){return eT.Od(n)?t(n):hj}},hB=hK,hV=function(n){return hK(function(t,e){return n(e)})},hz=hV(n5.identity),hH=hY,h$=function(n){return hY(function(t,e){return n(e)})},hX=sV,hJ=sV,hZ=hl,hQ=hl,h0=h$(n5.identity),h1={URI:s$,map:sN,of:sB,ap:sj,chain:sV,fromIO:sU,fromTask:sF},h2={URI:s$,map:sN,of:sB,ap:sq,chain:sV,fromIO:sU,fromTask:sF},h5=(0,nN.getApplySemigroup)(s8),h7=(0,nK.getApplicativeMonoid)(s3);function h8(n,t){return n(t)()}var h3=function(n,t){var e,r,u,i,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(e=1,r&&(u=2&c[0]?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[2&c[0],u.value]),c[0]){case 0:case 1:u=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!u||c[1]>u[0]&&c[1]<u[3])){o.label=c[1];break}if(6===c[0]&&o.label<u[1]){o.label=u[1],u=c;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(c);break}u[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(n,o)}catch(n){c=[6,n],r=0}finally{e=u=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}},h9=tW(dZ),h4=tk(dZ),h6=tF(dH),mn=tU(dH),mt=(0,n5.flow)(dA,h6),me=(0,n5.flow)(dA,mn),mr=mt,mu=h6,mi=dG,mo=dA,mc=function(n){return dq(tE.fromOption(n))},ma=tH(dH),mf=ma,ml=t$(d3),mp=ml,md=ml,ms=md,mh=tX(d3),mm=mh,mv=function(n,t){return function(){var e,r,u,i;return e=void 0,r=void 0,u=void 0,i=function(){var e;return h3(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n().then(eT.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,eT.t$(t(e))];case 3:return[2]}})},new(u||(u=Promise))(function(n,t){function o(n){try{a(i.next(n))}catch(n){t(n)}}function c(n){try{a(i.throw(n))}catch(n){t(n)}}function a(t){var e;t.done?n(t.value):((e=t.value)instanceof u?e:new u(function(n){n(e)})).then(o,c)}a((i=i.apply(e,r||[])).next())})}},mg=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return mv(function(){return n.apply(void 0,e)},t)}},my=t2(dH),mb=tP(dZ),m_=tA(dZ),mI=tL(d3),mR=tJ(d3),mS=mR,mT=(0,n5.dual)(2,tQ(d3)),mx=function(n){return mT(vG(n))},mM=function(n){return mT(vV(n))},mO=t0(d3),mw=t1(dH),mC=function(n){var t=mc(n);return function(n){return(0,n5.flow)(n,t)}},mE=function(n){return function(t){return function(e){return mY(e,mC(n)(t))}}},mk=mE,mW=function(n){return(0,n5.flow)(n,mo)},mF=function(n,t){return(0,n5.pipe)(n,mL(t))},mU=function(n,t){return(0,n5.pipe)(n,mK(t))},mP=function(n,t){return mY(n,function(n){return(0,n5.pipe)(t,mL(n))})},mA=function(n,t){return(0,n5.pipe)(n,mz(t))},mL=tD(dH),mD=(0,n5.dual)(3,tY(dH)),mN=mD,mj=(0,n5.dual)(2,tV(dH)),mq=mj,mK=tN(dQ),mG=mK,mY=(0,n5.dual)(2,tq(d3)),mB=mY(n5.identity),mV=mB,mz=tK(d3),mH=mz,m$=h4,mX=h9,mJ="TaskEither";function mZ(n,t){var e=(0,nN.ap)(n,tE.getApplicativeValidation(t));return{URI:mJ,_E:void 0,map:mF,ap:function(n,t){return(0,n5.pipe)(n,e(t))},of:m$}}function mQ(n){var t=tz(d3,n);return{URI:mJ,_E:void 0,map:mF,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var m0=function(n){var t=tE.getCompactable(n);return{URI:mJ,_E:void 0,compact:th(dH,t),separate:tm(dH,t,tE.Functor)}};function m1(n){var t=tE.getFilterable(n),e=m0(n),r=en(dH,t),u=et(dH,t),i=ee(dH,t),o=er(dH,t);return{URI:mJ,_E:void 0,map:mF,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,u(t))},partition:function(n,t){return(0,n5.pipe)(n,i(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}var m2={URI:mJ,map:mF},m5=(0,n5.dual)(2,(0,tp.as)(m2)),m7=(0,tp.asUnit)(m2),m8=(0,tp.flap)(m2),m3={URI:mJ,of:m$},m9={URI:mJ,map:mF,ap:mU},m4=(0,nN.apFirst)(m9),m6=m4,vn=(0,nN.apSecond)(m9),vt=vn,ve={URI:mJ,map:mF,ap:mU,of:m$},vr={URI:mJ,map:mF,ap:mP},vu={URI:mJ,map:mF,ap:mP,of:m$},vi={URI:mJ,map:mF,ap:mU,chain:mY},vo={URI:mJ,map:mF,ap:mU,chain:mY,of:m$},vc={URI:mJ,map:mF,ap:mU,chain:mY,of:m$,fromIO:mr},va={URI:mJ,map:mF,ap:mU,chain:mY,of:m$,fromIO:mr,fromTask:mu},vf={URI:mJ,map:mF,ap:mU,chain:mY,of:m$,throwError:mX},vl={URI:mJ,fromEither:mi},vp={URI:mJ,fromIO:mr},vd={URI:mJ,fromIO:mr,fromTask:mu},vs=(0,n5.dual)(2,ti.tap(vi)),vh=(0,n5.dual)(2,(0,eb.tapEither)(vl,vi)),vm=(0,n5.dual)(2,eS(vp,vi)),vv=(0,n5.dual)(2,up(vd,vi)),vg={URI:mJ,bimap:mD,mapLeft:mj},vy={URI:mJ,map:mF,alt:mA},vb=(0,eb.fromOption)(vl),v_=(0,eb.fromOptionK)(vl),vI=(0,eb.chainOptionK)(vl,vi),vR=vI,vS={fromEither:vl.fromEither},vT=eT.uL(vS),vx=eT.WE(vS),vM={flatMap:mY},vO={fromIO:vp.fromIO},vw=eT.ny(vS,vM),vC=eT.hU(vS,vM),vE=eT.iu(vS,vM),vk=eT.we(vO,vM),vW=eT.D9({fromTask:mu},vM),vF=(0,n5.dual)(2,function(n,t){return mY(n,mW(t))}),vU=(0,n5.dual)(3,function(n,t,e){return mY(n,function(n){return mc(function(){return e(n)})(t(n))})}),vP=vE,vA=vE,vL=vh,vD=vh,vN=(0,eb.fromPredicate)(vl),vj=(0,eb.filterOrElse)(vl,vi),vq=vj,vK=(0,eb.fromEitherK)(vl),vG=e_(vp),vY=vk,vB=vm,vV=ua(vd),vz=vW,vH=vv,v$=vF,vX=vF;function vJ(n){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(e){n.apply(null,t.concat(function(n,t){return null!=n?e(eT.t$(n)):e(eT.F2(t))}))})}}}var vZ=function(n,t,e){return vQ(n,t,e)},vQ=function(n,t,e){return mY(n,function(n){return dY(t(n),function(t){return mY(e(n,t),function(){return dG(t)})})})},v0=m$(eT.F4),v1=(0,tp.bindTo)(m2),v2=(0,tp.let)(m2),v5=ti.bind(vi),v7=v5,v8=(0,nN.apS)(m9),v3=v8,v9=m$(eT.Xl),v4=function(n){return(0,n5.flow)(sv(n),dq(tE.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},v6=function(n){var t=v4(n);return function(n){return eT.Od(n)?t(n):v9}},gn=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(u){return eT.nM(u)?t:n(r+1,e)().then(function(n){return eT.nM(n)?n:(u.right.push(n.right),u)})})},n(0,eT.YM(t))().then(tE.map(eT.ri)))}}},gt=function(n){var t=gn(n);return function(n){return eT.Od(n)?t(n):v9}},ge=v6,gr=function(n){return v6(function(t,e){return n(e)})},gu=gr(n5.identity),gi=gt,go=function(n){return gt(function(t,e){return n(e)})},gc=go(n5.identity),ga=mY,gf=mY,gl=vs,gp=vs,gd=mT,gs=mT,gh={URI:mJ,bimap:mD,mapLeft:mj,map:mF,of:m$,ap:mU,chain:mY,alt:mA,fromIO:mr,fromTask:mu,throwError:mX},gm={URI:mJ,bimap:mD,mapLeft:mj,map:mF,of:m$,ap:mP,chain:mY,alt:mA,fromIO:mr,fromTask:mu,throwError:mX},gv=(0,nN.getApplySemigroup)(vr),gg=(0,nK.getApplicativeMonoid)(vu),gy=function(n){return(0,nN.getApplySemigroup)(d5)(tE.getSemigroup(n))};function gb(n){var t=mZ(d2,n),e=mQ(n);return{URI:mJ,_E:void 0,map:mF,ap:t.ap,of:m$,chain:mY,bimap:mD,mapLeft:mj,alt:e.alt,fromIO:mr,fromTask:mu,throwError:mX}}var g_=eL,gI=tW(s0),gR=tk(s0),gS=(0,n5.flow)(h6,g_),gT=(0,n5.flow)(mn,g_),gx=function(n){return(0,n5.flow)(n,h4)},gM=function(n){return(0,n5.flow)(n,h9)},gO=tF(sX),gw=tU(sX),gC=(0,n5.flow)(mt,g_),gE=(0,n5.flow)(me,g_),gk=function(n){return(0,n5.flow)(n,mt)},gW=function(n){return(0,n5.flow)(n,me)},gF=sB,gU=gx,gP=gC,gA=gS,gL=(0,n5.flow)(mo,g_),gD=function(n){return(0,n5.flow)(n,mi)},gN=tH(sX),gj=gN,gq=t$(s9),gK=gq,gG=gq,gY=gG,gB=tX(s4),gV=gB,gz=t2(sX),gH=tP(s0),g$=tA(s0),gX=tL(s4),gJ=eO,gZ=ew,gQ=gZ,g0=tJ(s4),g1=g0,g2=(0,n5.dual)(2,tQ(s4)),g5=t0(s4),g7=t1(sX),g8=function(n){return(0,n5.flow)(n,gL)},g3=function(n){return(0,n5.flow)(n,g_)},g9=function(n){return(0,n5.flow)(n,gD)},g4=function(n,t){return(0,n5.pipe)(n,ye(t))},g6=function(n,t){return(0,n5.pipe)(n,yc(t))},yn=function(n,t){return yl(n,function(n){return(0,n5.pipe)(t,ye(n))})},yt=function(n,t){return(0,n5.pipe)(n,ys(t))},ye=tD(sX),yr=(0,n5.dual)(3,tY(sX)),yu=yr,yi=(0,n5.dual)(2,tV(sX)),yo=yi,yc=tN(s1),ya=yc,yf=gR,yl=(0,n5.dual)(2,tq(s4)),yp=yl(n5.identity),yd=yp,ys=tK(s4),yh=ys,ym=gI,yv="ReaderTaskEither",yg=function(n){var t=tE.getCompactable(n);return{URI:yv,_E:void 0,compact:th(sX,t),separate:tm(sX,t,tE.Functor)}};function yy(n){var t=tE.getFilterable(n),e=yg(n),r=en(sX,t),u=et(sX,t),i=ee(sX,t),o=er(sX,t);return{URI:yv,_E:void 0,map:g4,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n5.pipe)(n,r(t))},filterMap:function(n,t){return(0,n5.pipe)(n,u(t))},partition:function(n,t){return(0,n5.pipe)(n,i(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,o(t))}}}function yb(n,t){var e=(0,nN.ap)(eZ,mZ(n,t));return{URI:yv,_E:void 0,map:g4,ap:function(n,t){return(0,n5.pipe)(n,e(t))},of:yf}}function y_(n){var t=tz(s4,n);return{URI:yv,_E:void 0,map:g4,alt:function(n,e){return(0,n5.pipe)(n,t(e))}}}var yI={URI:yv,map:g4},yR=(0,n5.dual)(2,(0,tp.as)(yI)),yS=(0,tp.asUnit)(yI),yT=(0,tp.flap)(yI),yx={URI:yv,of:yf},yM={URI:yv,map:g4,ap:g6},yO=(0,nN.apFirst)(yM),yw=yO,yC=(0,nN.apSecond)(yM),yE=yC,yk={URI:yv,map:g4,ap:g6,of:yf},yW={URI:yv,map:g4,ap:yn},yF={URI:yv,map:g4,ap:yn,of:yf},yU={URI:yv,map:g4,ap:g6,chain:yl},yP={URI:yv,map:g4,ap:g6,chain:yl,of:yf},yA={URI:yv,map:g4,ap:g6,chain:yl,of:yf,fromIO:gP},yL={URI:yv,map:g4,ap:g6,chain:yl,of:yf,fromIO:gP,fromTask:gA},yD={URI:yv,map:g4,ap:g6,chain:yl,of:yf,throwError:ym},yN={URI:yv,fromEither:gF},yj={URI:yv,fromIO:gP},yq={URI:yv,fromIO:gP,fromTask:gA},yK={URI:yv,fromReader:gU},yG=(0,n5.dual)(2,ti.tap(yU)),yY=(0,n5.dual)(2,(0,eb.tapEither)(yN,yU)),yB=(0,n5.dual)(2,eS(yj,yU)),yV=(0,n5.dual)(2,up(yq,yU)),yz=(0,n5.dual)(2,rM(yK,yU)),yH=(0,n5.dual)(2,function(n,t){return yG(n,g9(t))}),y$=(0,n5.dual)(2,function(n,t){return yG(n,g3(t))}),yX=(0,n5.dual)(2,function(n,t){return yG(n,y6(t))}),yJ=(0,n5.dual)(2,function(n,t){return yG(n,be(t))}),yZ={URI:yv,bimap:yr,mapLeft:yi},yQ={URI:yv,map:g4,alt:yt},y0=rI(yK),y1=rR(yK),y2=rS(yK),y5=yz,y7=yz,y8=yH,y3=yH,y9=y$,y4=y$,y6=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gO(n.apply(void 0,t))}},bn=yX,bt=yX,be=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gk(n.apply(void 0,t))}},br=yJ,bu=yJ,bi=(0,eb.fromOption)(yN),bo=(0,eb.fromOptionK)(yN),bc=(0,eb.chainOptionK)(yN,yU),ba=bc,bf={fromEither:yN.fromEither},bl=eT.uL(bf),bp=eT.WE(bf),bd={flatMap:yl},bs=eT.ny(bf,bd),bh=eT.hU(bf,bd),bm=eT.iu(bf,bd),bv=(0,n5.dual)(2,function(n,t){return yl(n,g3(t))}),bg=(0,n5.dual)(2,function(n,t){return yl(n,y6(t))}),by=eT.we({fromIO:gP},bd),bb=eT.D9({fromTask:gA},bd),b_=eT.on({fromReader:gU},bd),bI=(0,n5.dual)(2,function(n,t){return yl(n,be(t))}),bR=(0,n5.dual)(2,function(n,t){return yl(n,g8(t))}),bS=(0,n5.dual)(2,function(n,t){return yl(n,g9(t))}),bT=bm,bx=bm,bM=yY,bO=yY,bw=bv,bC=bv,bE=bg,bk=bg,bW=(0,eb.fromPredicate)(yN),bF=(0,eb.filterOrElse)(yN,yU),bU=bF,bP=(0,eb.fromEitherK)(yN),bA=e_(yj),bL=by,bD=yB,bN=ua(yq),bj=bb,bq=yV,bK=b_,bG=b_,bY=bI,bB=bI,bV=bR,bz=bR,bH=bS,b$=bS;function bX(n,t,e){return bJ(n,t,e)}function bJ(n,t,e){return function(r){return vQ(n(r),function(n){return t(n)(r)},function(n,t){return e(n,t)(r)})}}var bZ=yf(eT.F4),bQ=(0,tp.bindTo)(yI),b0=(0,tp.let)(yI),b1=ti.bind(yU),b2=b1,b5=(0,nN.apS)(yM),b7=b5,b8=yf(eT.Xl),b3=function(n){return(0,n5.flow)(rf(n),eU(v4(n5.SK)))},b9=function(n){var t=b3(n);return function(n){return eT.Od(n)?t(n):b8}},b4=function(n){return(0,n5.flow)(rf(n),eU(gn(n5.SK)))},b6=function(n){var t=b4(n);return function(n){return eT.Od(n)?t(n):b8}},_n=b9,_t=function(n){return b9(function(t,e){return n(e)})},_e=_t(n5.identity),_r=b6,_u=function(n){return b6(function(t,e){return n(e)})},_i=_u(n5.identity),_o=yl,_c=yl,_a=yG,_f=yG,_l=g2,_p=g2,_d={URI:yv,map:g4,of:yf,ap:g6,chain:yl,alt:yt,bimap:yr,mapLeft:yi,fromIO:gP,fromTask:gA,throwError:ym},_s={URI:yv,map:g4,of:yf,ap:yn,chain:yl,alt:yt,bimap:yr,mapLeft:yi,fromIO:gP,fromTask:gA,throwError:ym},_h=(0,nN.getApplySemigroup)(yW),_m=(0,nK.getApplicativeMonoid)(yF),_v=function(n){return(0,nN.getApplySemigroup)(s8)(tE.getSemigroup(n))};function _g(n){var t=yb(d2,n),e=y_(n);return{URI:yv,_E:void 0,map:g4,of:yf,chain:yl,bimap:yr,mapLeft:yi,ap:t.ap,alt:e.alt,fromIO:gP,fromTask:gA,throwError:ym}}function _y(n,t){return n(t)()}var _b=e(31583),__=e(13512),_I=e(28350),_R=e(97054),_S=e(99156);function _T(n){return n[0]}function _x(n){return n[1]}var _M=function(n){return[_x(n),n[0]]};function _O(n){return{URI:_0,_E:void 0,map:_U,ap:function(t,e){return[t[0](e[0]),n.concat(_x(t),_x(e))]}}}var _w=function(n){return function(t){return[t,n.empty]}};function _C(n){return{URI:_0,_E:void 0,map:_U,ap:_O(n).ap,of:_w(n)}}function _E(n){return{URI:_0,_E:void 0,map:_U,ap:_O(n).ap,chain:function(t,e){var r=e(t[0]),u=r[0],i=r[1];return[u,n.concat(_x(t),i)]}}}function _k(n){var t=_E(n);return{URI:_0,_E:void 0,map:_U,ap:t.ap,chain:t.chain,of:_w(n)}}function _W(n){var t=_E(n);return{URI:_0,_E:void 0,map:_U,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),u=n.empty,i=r[0];"Left"===i._tag;)u=n.concat(u,_x(r)),i=(r=e(i.left))[0];return[i.right,n.concat(u,_x(r))]}}}var _F=function(n,t){return(0,n5.pipe)(n,_B(t))},_U=function(n,t){return(0,n5.pipe)(n,_G(t))},_P=function(n,t,e){return(0,n5.pipe)(n,_K(t,e))},_A=function(n,t){return(0,n5.pipe)(n,_Y(t))},_L=function(n,t){return(0,n5.pipe)(n,_V(t))},_D=function(n,t,e){return(0,n5.pipe)(n,_$(t,e))},_N=function(n){var t=_X(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},_j=function(n,t,e){return(0,n5.pipe)(n,_J(t,e))},_q=function(n){var t=_Z(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},_K=function(n,t){return function(e){return[t(e[0]),n(_x(e))]}},_G=function(n){return function(t){return[n(t[0]),_x(t)]}},_Y=function(n){return function(t){return[t[0],n(_x(t))]}},_B=function(n){return function(t){return[t[0],_x(n)]}},_V=function(n){return function(t){return[n(t),_x(t)]}},_z=_T,_H=_V(n5.identity),_$=function(n,t){return function(e){return t(n,e[0])}},_X=function(){return function(n){return function(t){return n(t[0])}}},_J=function(n,t){return function(e){return t(e[0],n)}},_Z=function(n){return function(t){return function(e){return n.map(t(e[0]),function(n){return[n,_x(e)]})}}},_Q=function(n){return function(t){return n.map(t[0],function(n){return[n,_x(t)]})}},_0="ReadonlyTuple",_1={URI:_0,map:_U},_2=(0,tp.flap)(_1),_5=_G,_7=_Y,_8={URI:_0,bimap:_P,mapLeft:_A},_3={URI:_0,compose:_F},_9={URI:_0,map:_U,extend:_L,extract:_z},_4={URI:_0,reduce:_D,foldMap:_N,reduceRight:_j},_6={URI:_0,map:_U,reduce:_D,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},In={URI:_0,compose:_F,map:_U,bimap:_P,mapLeft:_A,extract:_z,extend:_L,reduce:_D,foldMap:_N,reduceRight:_j,traverse:_q,sequence:_Q},It=e(3291),Ie=e(57029),Ir=e(76511),Iu=function(){return(Iu=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},Ii=_R.size,Io=_R.isEmpty,Ic=function(n){return function(t){return Object.keys(t).sort(n.compare)}},Ia=Ic(Ie.Ord);function If(n){if("function"==typeof n)return If(Ie.Ord)(n);var t=Ic(n);return function(n){return function(e){for(var r=[],u=0,i=t(e);u<i.length;u++){var o=i[u];r.push(n(o,e[o]))}return r}}}var Il=If(Ie.Ord)(function(n,t){return[n,t]});function Ip(n){return function(t){var e=Il(t),r=e.length;return n.unfold(0,function(n){return n<r?eT.G([e[n],n+1]):eT.YP})}}var Id=_R.upsertAt,Is=_R.has;function Ih(n){return function(t){if(!eT.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var Im=function(n,t){return Iv(n,function(){return t})},Iv=function(n,t){return function(e){if(!Is(n,e))return eT.YP;var r=Object.assign({},e);return r[n]=t(e[n]),eT.G(r)}};function Ig(n){var t=Ih(n);return function(e){var r=Ib(n,e);return eT.Wi(r)?eT.YP:eT.G([r.value,t(e)])}}var Iy=_R.isSubrecord,Ib=_R.lookup,I_=_R.mapWithIndex,II=_R.map;function IR(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceWithIndex(n[0]):_R.reduceWithIndex(Ie.Ord).apply(void 0,n)}function IS(n){return"compare"in n?_R.foldMapWithIndex(n):_R.foldMapWithIndex(Ie.Ord)(n)}function IT(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceRightWithIndex(n[0]):_R.reduceRightWithIndex(Ie.Ord).apply(void 0,n)}var Ix=_R.singleton;function IM(n){return _R.traverseWithIndex(n)}function IO(n){return _R.traverse(n)}function Iw(n){return _R.sequence(n)}var IC=function(n){var t=IO(n);return function(e){return function(r){return n.map((0,n5.pipe)(r,t(e)),Rc)}}},IE=function(n){var t=IO(n);return function(e){return function(r){return n.map((0,n5.pipe)(r,t(e)),Ra)}}},Ik=_R.partitionMapWithIndex;function IW(n){return _R.partitionWithIndex(n)}var IF=_R.filterMapWithIndex;function IU(n){return _R.filterWithIndex(n)}function IP(n,t){return _R.fromFoldable(n,t)}var IA=Il,IL=function(n){return IP(It.last(),nG.Foldable)(n)};function ID(n,t){return _R.fromFoldableMap(n,t)}var IN=_R.every,Ij=_R.some,Iq=_R.elem,IK=function(n){var t=_R.union(n);return function(n){return function(e){return Io(e)?Iu({},n):Io(n)?Iu({},e):t(n)(e)}}},IG=function(n){return function(t){return function(e){return Io(e)||Io(t)?{}:_R.intersection(n)(t)(e)}}},IY=function(n){return function(t){return Io(t)?Iu({},n):Io(n)?Iu({},t):_R.difference(n)(t)}},IB=_R._map,IV=_R._mapWithIndex,Iz=_R._reduce,IH=_R._foldMap,I$=_R._reduceRight,IX=_R._filter,IJ=_R._filterMap,IZ=_R._partition,IQ=_R._partitionMap,I0=_R._reduceWithIndex,I1=_R._foldMapWithIndex,I2=_R._reduceRightWithIndex,I5=_R._partitionMapWithIndex,I7=_R._partitionWithIndex,I8=_R._filterMapWithIndex,I3=_R._filterWithIndex,I9=_R._traverse,I4=_R._sequence,I6=function(n){return function(t){var e=Ic(n);return function(n,r){var u=e(n);if(0===u.length)return t.of({});for(var i=t.of({}),o=function(e){i=t.ap(t.map(i,function(n){return function(t){return n[e]=t,n}}),r(e,n[e]))},c=0;c<u.length;c++)o(u[c]);return i}}},Rn=_R.filter,Rt=_R.filterMap,Re=_R.partition,Rr=_R.partitionMap;function Ru(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduce(n[0]):_R.reduce(Ie.Ord).apply(void 0,n)}function Ri(n){return"compare"in n?_R.foldMap(n):_R.foldMap(Ie.Ord)(n)}function Ro(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?_R.reduceRight(n[0]):_R.reduceRight(Ie.Ord).apply(void 0,n)}var Rc=_R.compact,Ra=_R.separate,Rf="Record";function Rl(n){return"compare"in n?_R.getShow(n):_R.getShow(Ie.Ord)(n)}var Rp=_R.getEq,Rd=_R.getMonoid,Rs={URI:Rf,map:IB},Rh=(0,tp.flap)(Rs),Rm={URI:Rf,map:IB,mapWithIndex:IV},Rv=function(n){return{URI:Rf,reduce:Iz(n),foldMap:IH(n),reduceRight:I$(n)}},Rg=function(n){return{URI:Rf,reduce:Iz(n),foldMap:IH(n),reduceRight:I$(n),reduceWithIndex:I0(n),foldMapWithIndex:I1(n),reduceRightWithIndex:I2(n)}},Ry={URI:Rf,compact:Rc,separate:Ra},Rb={URI:Rf,map:IB,compact:Rc,separate:Ra,filter:IX,filterMap:IJ,partition:IZ,partitionMap:IQ},R_={URI:Rf,map:IB,mapWithIndex:IV,compact:Rc,separate:Ra,filter:IX,filterMap:IJ,partition:IZ,partitionMap:IQ,filterMapWithIndex:I8,filterWithIndex:I3,partitionMapWithIndex:I5,partitionWithIndex:I7},RI=function(n){return{URI:Rf,map:IB,reduce:Iz(n),foldMap:IH(n),reduceRight:I$(n),traverse:I9(n),sequence:I4(n)}},RR=function(n){return{URI:Rf,map:IB,mapWithIndex:IV,reduce:Iz(n),foldMap:IH(n),reduceRight:I$(n),reduceWithIndex:I0(n),foldMapWithIndex:I1(n),reduceRightWithIndex:I2(n),traverse:I9(n),sequence:I4(n),traverseWithIndex:I6(n)}},RS=function(n){var t=RI(n);return{URI:Rf,map:IB,reduce:Iz(n),foldMap:IH(n),reduceRight:I$(n),traverse:t.traverse,sequence:t.sequence,compact:Rc,separate:Ra,filter:IX,filterMap:IJ,partition:IZ,partitionMap:IQ,wither:(0,Ir.witherDefault)(t,Ry),wilt:(0,Ir.wiltDefault)(t,Ry)}},RT=function(n){var t=IK(n);return{concat:function(n,e){return t(e)(n)}}},Rx=function(n){return{concat:RT(n).concat,empty:{}}},RM=function(n){var t=IG(n);return{concat:function(n,e){return t(e)(n)}}},RO=function(){return{concat:function(n,t){return IY(t)(n)}}},Rw={URI:Rf,reduce:Iz(Ie.Ord),foldMap:IH(Ie.Ord),reduceRight:I$(Ie.Ord)},RC={URI:Rf,reduce:Iz(Ie.Ord),foldMap:IH(Ie.Ord),reduceRight:I$(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord)},RE={URI:Rf,map:IB,reduce:Iz(Ie.Ord),foldMap:IH(Ie.Ord),reduceRight:I$(Ie.Ord),traverse:I9(Ie.Ord),sequence:Iw},Rk={URI:Rf,map:IB,mapWithIndex:IV,reduce:Iz(Ie.Ord),foldMap:IH(Ie.Ord),reduceRight:I$(Ie.Ord),reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),traverse:I9(Ie.Ord),sequence:Iw,traverseWithIndex:I6(Ie.Ord)},RW=(0,Ir.witherDefault)(RE,Ry),RF=(0,Ir.wiltDefault)(RE,Ry),RU={URI:Rf,map:IB,reduce:Iz(Ie.Ord),foldMap:IH(Ie.Ord),reduceRight:I$(Ie.Ord),traverse:I9(Ie.Ord),sequence:Iw,compact:Rc,separate:Ra,filter:IX,filterMap:IJ,partition:IZ,partitionMap:IQ,wither:RW,wilt:RF},RP={},RA=Id,RL=_R.hasOwnProperty,RD={URI:Rf,map:IB,reduce:Iz(Ie.Ord),foldMap:IH(Ie.Ord),reduceRight:I$(Ie.Ord),traverse:I9(Ie.Ord),sequence:Iw,compact:Rc,separate:Ra,filter:IX,filterMap:IJ,partition:IZ,partitionMap:IQ,mapWithIndex:IV,reduceWithIndex:I0(Ie.Ord),foldMapWithIndex:I1(Ie.Ord),reduceRightWithIndex:I2(Ie.Ord),filterMapWithIndex:I8,filterWithIndex:I3,partitionMapWithIndex:I5,partitionWithIndex:I7,traverseWithIndex:I6(Ie.Ord),wither:RW,wilt:RF},RN=function(n){return function(t){return eT.pC(n(t))}},Rj=function(n){return function(t){return eT.tO(n(t))}},Rq=function(){return function(n){return!0}},RK=function(n){return function(t){return!n(t)}},RG=function(n){return function(t){return function(e){return t(e)||n(e)}}},RY=function(n){return function(t){return function(e){return t(e)&&n(e)}}},RB=function(){return function(n){return!1}},RV=function(n){return function(t){return function(e){return t(e)&&n(e)}}},Rz=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{add:function(t,e){return n.map(function(n,r){return n.add(t[r],e[r])})},zero:n.map(function(n){return n.zero}),mul:function(t,e){return n.map(function(n,r){return n.mul(t[r],e[r])})},one:n.map(function(n){return n.one}),sub:function(t,e){return n.map(function(n,r){return n.sub(t[r],e[r])})}}},RH=function(n){return function(t){return n.sub(n.zero,t)}},R$=Rz,RX=n5.getRing,RJ=n5.getSemiring,RZ=e(1214),RQ=function(n){return{show:function(t){var e="{";for(var r in n)eT.e$.call(n,r)&&(e+=" ".concat(r,": ").concat(n[r].show(t[r]),","));return e.length>1&&(e=e.slice(0,-1)+" "),e+="}"}}},R0=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,e){return n[e].show(t)}).join(", "),"]")}}},R1=R0,R2=RQ,R5={show:function(n){return JSON.stringify(n)}},R7={show:function(n){return JSON.stringify(n)}},R8={show:function(n){return JSON.stringify(n)}};function R3(n){return function(t){return function(e){return n.of([t,e])}}}function R9(n){return function(t){return function(e){return function(r){return n.map(e(r),function(n){var e=n[0],r=n[1];return[t(e),r]})}}}}function R4(n){return function(t){return function(e){return function(r){return n.chain(e(r),function(e){var r=e[0],u=e[1];return n.map(t(u),function(n){var t=n[0],e=n[1];return[r(t),e]})})}}}}function R6(n){var t=Sn(n);return function(n){return function(e){return t(e,n)}}}function Sn(n){return function(t,e){return function(r){return n.chain(t(r),function(n){var t=n[0],r=n[1];return e(t)(r)})}}}function St(n){return function(t){return function(e){return n.of(t(e))}}}function Se(n){return function(t){return function(e){return n.map(t,function(n){return[n,e]})}}}function Sr(n){return function(t){return function(e){return n.map(e(t),function(n){return n[0]})}}}function Su(n){return function(t){return function(e){return n.map(e(t),_x)}}}function Si(n){var t=R4(n),e=R9(n),r=R6(n),u=Sr(n),i=Su(n);return{map:function(n,t){return(0,n5.pipe)(n,e(t))},ap:function(n,e){return(0,n5.pipe)(n,t(e))},of:R3(n),chain:function(n,t){return(0,n5.pipe)(n,r(t))},get:function(){return function(t){return n.of([t,t])}},put:function(t){return function(){return n.of([void 0,t])}},modify:function(t){return function(e){return n.of([void 0,t(e)])}},gets:function(t){return function(e){return n.of([t(e),e])}},fromState:St(n),fromM:Se(n),evalState:function(n,t){return(0,n5.pipe)(n,u(t))},execState:function(n,t){return(0,n5.pipe)(n,i(t))}}}var So=function(n){return function(){return gI(n)}},Sc=R3(yx);function Sa(n){return ST(gS(n))}function Sf(n){return ST(gT(n))}function Sl(n){return ST(gx(n))}function Sp(n){return ST(gM(n))}function Sd(n){return ST(gC(n))}function Ss(n){return ST(gE(n))}var Sh=function(n){return(0,n5.flow)(n,gR)},Sm=function(n){return function(t){return gI(n(t)[0])}},Sv=tE.match(function(n){return So(n)},Sc),Sg=Sl,Sy=Sd,Sb=Sa,S_=St(yx),SI=function(n){return ST(g_(n))},SR=function(n){return ST(gL(n))},SS=function(n){return ST(gD(n))},ST=Se(yI),Sx=function(n){return function(t){return(0,n5.flow)(t,eO(n))}},SM=function(n){return function(t){return function(e){return n(e)(t)(e)}}},SO=SM,Sw=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return SR(n.apply(void 0,t))}},SC=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return SI(n.apply(void 0,t))}},SE=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ST(n.apply(void 0,t))}},Sk=function(n){return function(t){return SB(t,SE(n))}},SW=Sk,SF=function(n,t){return(0,n5.pipe)(n,SD(t))},SU=function(n,t){return(0,n5.pipe)(n,Sq(t))},SP=function(n,t){return function(e){return(0,n5.pipe)(n(e),ys(function(){return t()(e)}))}},SA=function(n,t,e){return function(r){return(0,n5.pipe)(n(r),yu(t,function(n){var t=n[0],r=n[1];return[e(t),r]}))}},SL=function(n,t){return function(e){return(0,n5.pipe)(n(e),yo(t))}},SD=R9(yI),SN=function(n,t){return function(e){return SA(e,n,t)}},Sj=function(n){return function(t){return SL(t,n)}},Sq=R4(yU),SK=Sq,SG=Sc,SY={fromEither:Sv},SB=(0,n5.dual)(2,Sn(yP)),SV={flatMap:SB},Sz=(0,n5.dual)(2,function(n,t){return SB(n,function(n){return SC(t)(n)})}),SH=eT.we({fromIO:Sy},SV),S$=eT.D9({fromTask:Sb},SV),SX=eT.on({fromReader:Sg},SV),SJ=(0,n5.dual)(2,function(n,t){return SB(n,function(n){return Sw(t)(n)})}),SZ=(0,n5.dual)(2,eT.iu(SY,SV)),SQ=eT.hU(SY,SV),S0=(0,n5.dual)(2,function(n,t){return SB(n,function(n){return SE(t)(n)})}),S1=(0,n5.dual)(2,function(n,t){return SB(n,Tm(t))}),S2=SB(n5.identity),S5=S2,S7=function(n){return function(t){return function(e){return(0,n5.pipe)(t(e),yh(function(){return n()(e)}))}}},S8=S7,S3=So,S9="StateReaderTaskEither",S4={URI:S9,map:SF},S6=(0,n5.dual)(2,(0,tp.as)(S4)),Tn=(0,tp.asUnit)(S4),Tt=(0,tp.flap)(S4),Te={URI:S9,of:SG},Tr={URI:S9,map:SF,ap:SU},Tu=(0,nN.apFirst)(Tr),Ti=Tu,To=(0,nN.apSecond)(Tr),Tc=To,Ta={URI:S9,map:SF,ap:SU,of:SG},Tf={URI:S9,map:SF,ap:SU,chain:SB},Tl={URI:S9,fromState:S_},Tp=ue(Tl),Td=ur(Tl),Ts=uu(Tl),Th=ui(Tl),Tm=uo(Tl),Tv=uc(Tl,Tf),Tg={URI:S9,map:SF,ap:SU,of:SG,chain:SB},Ty={URI:S9,map:SF,ap:SU,of:SG,chain:SB,fromIO:Sy},Tb={URI:S9,map:SF,ap:SU,of:SG,chain:SB,fromIO:Sy,fromTask:Sb},T_={URI:S9,map:SF,ap:SU,of:SG,chain:SB,throwError:S3},TI={URI:S9,fromEither:Sv},TR={URI:S9,fromIO:Sy},TS={URI:S9,fromIO:Sy,fromTask:Sb},TT={URI:S9,fromReader:Sg},Tx=(0,n5.dual)(2,ti.tap(Tf)),TM=(0,n5.dual)(2,(0,eb.tapEither)(TI,Tf)),TO=(0,n5.dual)(2,eS(TR,Tf)),Tw=(0,n5.dual)(2,up(TS,Tf)),TC=(0,n5.dual)(2,rM(TT,Tf)),TE={URI:S9,bimap:SA,mapLeft:SL},Tk={URI:S9,map:SF,alt:SP},TW=rI(TT),TF=rR(TT),TU=rS(TT),TP=SX,TA=SX,TL=TC,TD=TC,TN=(0,eb.fromOption)(TI),Tj=(0,eb.fromOptionK)(TI),Tq=(0,eb.chainOptionK)(TI,Tf),TK=Tq,TG=SZ,TY=SZ,TB=TM,TV=TM,Tz=(0,eb.fromPredicate)(TI),TH=(0,eb.filterOrElse)(TI,Tf),T$=TH,TX=(0,eb.fromEitherK)(TI),TJ=e_(TR),TZ=SH,TQ=TO,T0=Sz,T1=Sz,T2=SJ,T5=SJ,T7=ua(TS),T8=S$,T3=Tw,T9=Sr(yI),T4=Su(yI),T6=(0,tp.bindTo)(S4),xn=(0,tp.let)(S4),xt=ti.bind(Tf),xe=xt,xr=(0,nN.apS)(Tr),xu=xr,xi=function(n){return function(t){return function(e){return function(r){return function(){return eT.Gb(t).reduce(function(t,e,u){return t.then(function(i){return eT.nM(i)?t:n(u+1,e)(i.right[1])(r)().then(function(n){if(eT.nM(n))return n;var t=n.right,e=t[0],r=t[1];return i.right[0].push(e),i.right[1]=r,i})})},n(0,eT.YM(t))(e)(r)().then(tE.map(function(n){return[[n[0]],n[1]]})))}}}}},xo=function(n){var t=xi(n);return function(n){return eT.Od(n)?t(n):SG(eT.Xl)}},xc=xo,xa=function(n){return xo(function(t,e){return n(e)})},xf=xa(n5.identity),xl=SB,xp=SB,xd=Tx,xs=Tx,xh={URI:S9,map:SF,of:SG,ap:SU,chain:SB,bimap:SA,mapLeft:SL,alt:SP,fromIO:Sy,fromTask:Sb,throwError:S3},xm={URI:S9,map:SF,of:SG,ap:SU,chain:SB,bimap:SA,mapLeft:SL,alt:SP,fromIO:Sy,fromTask:Sb,throwError:S3},xv=function(n,t){return(0,n5.pipe)(n(t),ye(function(n){return n[0]}))},xg=function(n,t){return(0,n5.pipe)(n(t),ye(function(n){return n[0],n[1]}))};function xy(n,t,e){return n(t)(e)()}function xb(n){return function(t){return{peek:t.peek,pos:n}}}function x_(n){return function(t){return{peek:t.peek,pos:n(t.pos)}}}function xI(n){return function(t){return t.peek(n(t.pos))}}function xR(n){return function(t){return function(e){return n.map(t(e.pos),function(n){return e.peek(n)})}}}var xS=function(n,t){return(0,n5.pipe)(n,xO(t))},xT=function(n){return function(t){return{peek:function(e){return n({peek:t.peek,pos:e})},pos:t.pos}}},xx=function(n){return n.peek(n.pos)},xM=xT(n5.identity),xO=function(n){return function(t){return{peek:function(e){return n(t.peek(e))},pos:t.pos}}},xw="Store",xC={URI:xw,map:xS},xE=(0,tp.flap)(xC),xk={URI:xw,map:xS,extend:function(n,t){return(0,n5.pipe)(n,xT(t))},extract:xx},xW=xk;function xF(n,t){return function(e,r){return t.compose(n.second(r),n.first(e))}}function xU(n,t){var e=xF(n,t);return function(r,u){return t.compose(e(r,u),n.promap(t.id(),n5.identity,function(n){return[n,n]}))}}function xP(n){return xF(n,n)}function xA(n){return xU(n,n)}var xL=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},xD=function(n){return function(t){var e={};for(var r in t)eT.e$.call(t,r)&&(e[r]=n[r](t[r]));return e}},xN=function(n,t){var e,r,u,i,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(e=1,r&&(u=2&c[0]?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[2&c[0],u.value]),c[0]){case 0:case 1:u=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!u||c[1]>u[0]&&c[1]<u[3])){o.label=c[1];break}if(6===c[0]&&o.label<u[1]){o.label=u[1],u=c;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(c);break}u[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(n,o)}catch(n){c=[6,n],r=0}finally{e=u=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}},xj=cD(dZ),xq=cV(dZ),xK=dG,xG=cz(dZ),xY=function(n){return xB(dA(n))},xB=cj(dH),xV=dq(td.fromEither),xz=cH(dH),xH=xz,x$=c$(d8),xX=x$,xJ=x$,xZ=xJ,xQ=cX(d3),x0=xQ,x1=cq(dZ),x2=function(n){return function(){var t,e,r,u;return t=void 0,e=void 0,r=void 0,u=function(){return xN(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n().then(eT.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,eT.YP];case 3:return[2]}})},new(r||(r=Promise))(function(n,i){function o(n){try{a(u.next(n))}catch(n){i(n)}}function c(n){try{a(u.throw(n))}catch(n){i(n)}}function a(t){var e;t.done?n(t.value):((e=t.value)instanceof r?e:new r(function(n){n(e)})).then(o,c)}a((u=u.apply(t,e||[])).next())})}},x5=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return x2(function(){return n.apply(void 0,t)})}},x7=cK(dZ),x8=cG(d3),x3=cY(dZ),x9=cB(d3),x4=cJ(dH),x6=cZ(dQ),Mn=xj,Mt=(0,n5.dual)(2,c0(d3)),Me={flatMap:Mt},Mr=eT.we({fromIO:xY},Me),Mu=eT.D9({fromTask:xB},Me),Mi=Mt(n5.identity),Mo=c1(d3),Mc=Mo,Ma=cN(dZ),Mf=Ma(),Ml=th(dH,td.Compactable),Mp=tm(dH,td.Compactable,td.Functor),Md=en(dH,td.Filterable),Ms=et(dH,td.Filterable),Mh=ee(dH,td.Filterable),Mm=er(dH,td.Filterable),Mv=function(n,t){return(0,n5.pipe)(n,x4(t))},Mg=function(n,t){return(0,n5.pipe)(n,x6(t))},My=function(n,t){return(0,n5.pipe)(n,Mo(t))},Mb="TaskOption",M_={URI:Mb,map:Mv},MI=(0,n5.dual)(2,(0,tp.as)(M_)),MR=(0,tp.asUnit)(M_),MS=(0,tp.flap)(M_),MT={URI:Mb,of:Mn},Mx={URI:Mb,map:Mv,ap:Mg},MM=(0,nN.apFirst)(Mx),MO=(0,nN.apSecond)(Mx),Mw={URI:Mb,map:Mv,ap:Mg,of:Mn},MC=function(n,t){return Mt(n,function(n){return(0,n5.pipe)(t,x4(n))})},ME={URI:Mb,map:Mv,ap:MC},Mk={URI:Mb,map:Mv,ap:MC,of:Mn},MW={URI:Mb,map:Mv,ap:Mg,chain:Mt},MF={URI:Mb,fromEither:xG},MU={URI:Mb,fromIO:xY},MP={URI:Mb,fromIO:xY,fromTask:xB},MA=(0,n5.dual)(2,ti.tap(MW)),ML=(0,n5.dual)(2,(0,eb.tapEither)(MF,MW)),MD=(0,n5.dual)(2,eS(MU,MW)),MN=(0,n5.dual)(2,up(MP,MW)),Mj={URI:Mb,map:Mv,alt:My},Mq={URI:Mb,zero:Ma},MK=(0,c5.guard)(Mq,MT),MG={URI:Mb,map:Mv,ap:Mg,of:Mn,alt:My,zero:Ma},MY={URI:Mb,map:Mv,ap:Mg,of:Mn,chain:Mt},MB={URI:Mb,map:Mv,ap:Mg,of:Mn,chain:Mt,fromIO:xY},MV={URI:Mb,map:Mv,ap:Mg,of:Mn,chain:Mt,fromIO:xY,fromTask:xB},Mz={URI:Mb,compact:Ml,separate:Mp},MH={URI:Mb,map:Mv,compact:Ml,separate:Mp,filter:function(n,t){return(0,n5.pipe)(n,Md(t))},filterMap:function(n,t){return(0,n5.pipe)(n,Ms(t))},partition:function(n,t){return(0,n5.pipe)(n,Mh(t))},partitionMap:function(n,t){return(0,n5.pipe)(n,Mm(t))}},M$=e_(MU),MX=Mr,MJ=MD,MZ=(0,eb.fromEitherK)(MF),MQ=(0,eb.chainEitherK)(MF,MW),M0=ML,M1=ua(MP),M2=Mu,M5=MN,M7=Mn(eT.F4),M8=(0,tp.bindTo)(M_),M3=(0,tp.let)(M_),M9=ti.bind(MW),M4=(0,nN.apS)(Mx),M6=Mn(eT.Xl),On=function(n){return(0,n5.flow)(sv(n),dq(td.traverseReadonlyNonEmptyArrayWithIndex(n5.SK)))},Ot=function(n){var t=On(n);return function(n){return eT.Od(n)?t(n):M6}},Oe=function(n){return function(t){return function(){return eT.Gb(t).reduce(function(t,e,r){return t.then(function(u){return eT.Wi(u)?t:n(r+1,e)().then(function(n){return eT.Wi(n)?n:(u.value.push(n.value),u)})})},n(0,eT.YM(t))().then(td.map(eT.ri)))}}},Or=function(n){var t=Oe(n);return function(n){return eT.Od(n)?t(n):M6}},Ou=Ot,Oi=function(n){return Ot(function(t,e){return n(e)})},Oo=Oi(n5.identity),Oc=Or,Oa=function(n){return Or(function(t,e){return n(e)})},Of=Oa(n5.identity),Ol=Mt,Op=MA,Od=function(n){return"Left"===n._tag},Os=function(n){return"Right"===n._tag};function Oh(n){return"Both"===n._tag}function Om(n){return{_tag:"Left",left:n}}function Ov(n){return{_tag:"Right",right:n}}function Og(n,t){return{_tag:"Both",left:n,right:t}}var Oy=function(n,t,e){return function(r){switch(r._tag){case"Left":return n(r.left);case"Right":return t(r.right);case"Both":return e(r.left,r.right)}}},Ob=Oy,O_=Oy,OI=O_,OR=O_(Ov,Om,function(n,t){return Og(t,n)});function OS(n,t){return{show:O_(function(t){return"left(".concat(n.show(t),")")},function(n){return"right(".concat(t.show(n),")")},function(e,r){return"both(".concat(n.show(e),", ").concat(t.show(r),")")})}}function OT(n,t){return(0,t8.fromEquals)(function(e,r){return Od(e)?Od(r)&&n.equals(e.left,r.left):Os(e)?Os(r)&&t.equals(e.right,r.right):Oh(r)&&n.equals(e.left,r.left)&&t.equals(e.right,r.right)})}function Ox(n,t){return{concat:function(e,r){return Od(e)?Od(r)?Om(n.concat(e.left,r.left)):Os(r)?Og(e.left,r.right):Og(n.concat(e.left,r.left),r.right):Os(e)?Od(r)?Og(r.left,e.right):Os(r)?Ov(t.concat(e.right,r.right)):Og(r.left,t.concat(e.right,r.right)):Od(r)?Og(n.concat(e.left,r.left),e.right):Os(r)?Og(e.left,t.concat(e.right,r.right)):Og(n.concat(e.left,r.left),t.concat(e.right,r.right))}}}var OM=function(n){return{URI:OQ,_E:void 0,map:OL,ap:function(t,e){return Od(t)?Od(e)?Om(n.concat(t.left,e.left)):Os(e)?Om(t.left):Om(n.concat(t.left,e.left)):Os(t)?Od(e)?Om(e.left):Os(e)?Ov(t.right(e.right)):Og(e.left,t.right(e.right)):Od(e)?Om(n.concat(t.left,e.left)):Os(e)?Og(t.left,t.right(e.right)):Og(n.concat(t.left,e.left),t.right(e.right))}}};function OO(n){return{URI:OQ,_E:void 0,map:OL,ap:OM(n).ap,of:OZ}}function Ow(n){return{URI:OQ,_E:void 0,map:OL,ap:OM(n).ap,chain:function(t,e){if(Od(t))return t;if(Os(t))return e(t.right);var r=e(t.right);return Od(r)?Om(n.concat(t.left,r.left)):Os(r)?Og(t.left,r.right):Og(n.concat(t.left,r.left),r.right)}}}function OC(n){var t=Ow(n);return{URI:OQ,_E:void 0,map:OL,of:OZ,ap:t.ap,chain:t.chain,throwError:Om}}function OE(n){return Od(n)?eT.G(n.left):Os(n)?eT.YP:eT.G(n.left)}function Ok(n){return Od(n)?eT.YP:(Os(n),eT.G(n.right))}function OW(n){return function(t){return eT.Wi(t)?Om(n):Og(n,t.value)}}function OF(n){return function(t){return eT.Wi(t)?Ov(n):Og(t.value,n)}}function OU(n){return Od(n)?eT.G(n.left):eT.YP}function OP(n){return Os(n)?eT.G(n.right):eT.YP}var OA=function(n,t){return eT.Wi(n)?eT.Wi(t)?eT.YP:eT.G(Ov(t.value)):eT.Wi(t)?eT.G(Om(n.value)):eT.G(Og(n.value,t.value))},OL=function(n,t){return(0,n5.pipe)(n,OV(t))},OD=function(n,t,e){return(0,n5.pipe)(n,OY(t,e))},ON=function(n,t){return(0,n5.pipe)(n,OB(t))},Oj=function(n,t,e){return(0,n5.pipe)(n,Oz(t,e))},Oq=function(n){var t=OH(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},OK=function(n,t,e){return(0,n5.pipe)(n,O$(t,e))},OG=function(n){var t=OX(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},OY=function(n,t){return function(e){return Od(e)?Om(n(e.left)):Os(e)?Ov(t(e.right)):Og(n(e.left),t(e.right))}},OB=function(n){return function(t){return Od(t)?Om(n(t.left)):Oh(t)?Og(n(t.left),t.right):t}},OV=function(n){return function(t){return Od(t)?t:Os(t)?Ov(n(t.right)):Og(t.left,n(t.right))}},Oz=function(n,t){return function(e){return Od(e)?n:t(n,e.right)}},OH=function(n){return function(t){return function(e){return Od(e)?n.empty:t(e.right)}}},O$=function(n,t){return function(e){return Od(e)?n:t(e.right,n)}},OX=function(n){return function(t){return function(e){return Od(e)?n.of(e):Os(e)?n.map(t(e.right),Ov):n.map(t(e.right),function(n){return Og(e.left,n)})}}},OJ=function(n){return function(t){return Od(t)?n.of(t):Os(t)?n.map(t.right,Ov):n.map(t.right,function(n){return Og(t.left,n)})}},OZ=Ov,OQ="These",O0={URI:OQ,map:OL},O1=(0,tp.flap)(O0),O2={URI:OQ,of:OZ},O5={URI:OQ,bimap:OD,mapLeft:ON},O7={URI:OQ,fromThese:n5.identity},O8={URI:OQ,reduce:Oj,foldMap:Oq,reduceRight:OK},O3={URI:OQ,map:OL,reduce:Oj,foldMap:Oq,reduceRight:OK,traverse:OG,sequence:OJ},O9={URI:OQ,fromEither:n5.identity},O4=(0,eb.fromPredicate)(O9),O6=(0,eb.fromOption)(O9),wn=(0,eb.fromOptionK)(O9),wt=function(n){return function(t){return function(e){return!Od(e)&&n.equals(t,e.right)}}},we=function(n){return function(t){return!Od(t)&&n(t.right)}},wr=function(n,t){return function(e){return Od(e)?[e.left,t()]:Os(e)?[n(),e.right]:[e.left,e.right]}},wu=function(n,t){return wr(function(){return n},function(){return t})},wi=OZ(eT.Xl),wo=function(n){return function(t){return function(e){var r=eT.YP,u=t(0,eT.YM(e));if(Od(u))return u;Oh(u)&&(r=eT.G(u.left));for(var i=[u.right],o=1;o<e.length;o++){var c=t(o,e[o]);if(Od(c))return c;Oh(c)&&(r=eT.Wi(r)?eT.G(c.left):eT.G(n.concat(r.value,c.left))),i.push(c.right)}return eT.Wi(r)?Ov(i):Og(r.value,i)}}},wc=function(n){return function(t){var e=wo(n)(t);return function(n){return eT.Od(n)?e(n):wi}}},wa={URI:OQ,map:OL,bimap:OD,mapLeft:ON,reduce:Oj,foldMap:Oq,reduceRight:OK,traverse:OG,sequence:OJ};function wf(n){return(0,n5.flow)(Ov,n.of)}function wl(n){return(0,n5.flow)(Om,n.of)}function wp(n){return(0,n5.flow)(Og,n.of)}function wd(n){return function(t){return n.map(t,Ov)}}function ws(n){return function(t){return n.map(t,Om)}}function wh(n){return(0,tp.map)(n,O0)}function wm(n,t){return(0,nN.ap)(n,OM(t))}function wv(n,t){var e=wl(n);return function(r){return function(u){return n.chain(u,O_(e,r,function(e,u){return n.map(r(u),O_(function(n){return Om(t.concat(e,n))},function(n){return Og(e,n)},function(n,r){return Og(t.concat(e,n),r)}))}))}}}function wg(n){return function(t,e){return function(r){return n.map(r,OY(t,e))}}}function wy(n){return function(t){return function(e){return n.map(e,OB(t))}}}function wb(n){return function(t,e,r){return function(u){return n.map(u,O_(t,e,r))}}}function w_(n){return function(t,e,r){return function(u){return n.chain(u,O_(t,e,r))}}}function wI(n){return function(t){return n.map(t,OR)}}function wR(n){return function(t,e){return function(r){return n.map(r,wr(t,e))}}}function wS(n){var t=wh(n),e=wg(n),r=wy(n),u=w_(n),i=wR(n),o=wf(n),c=function(n,e){return(0,n5.pipe)(n,t(e))};return{map:c,bimap:function(n,t,r){return(0,n5.pipe)(n,e(t,r))},mapLeft:function(n,t){return(0,n5.pipe)(n,r(t))},fold:function(n,t,e,r){return(0,n5.pipe)(n,u(t,e,r))},swap:wI(n),rightM:wd(n),leftM:ws(n),left:wl(n),right:wf(n),both:wp(n),toTuple:function(n,t,e){return(0,n5.pipe)(n,i(function(){return t},function(){return e}))},getMonad:function(t){var e=wm(n,t),r=wv(n,t);return{_E:void 0,map:c,of:o,ap:function(n,t){return(0,n5.pipe)(n,e(t))},chain:function(n,t){return(0,n5.pipe)(n,r(t))}}}}}var wT=wl(dZ),wx=wf(dZ),wM=wp(dZ),wO=wd(dH),ww=ws(dH),wC=(0,n5.flow)(dA,wO),wE=(0,n5.flow)(dA,ww),wk=dG,wW=dG,wF=wC,wU=dA,wP=wO,wA=wb(dH),wL=wA,wD=w_(d3),wN=wD,wj=wN,wq=wj,wK=wI(dH),wG=function(n,t){return(0,n5.pipe)(n,wV(t))},wY=function(n,t,e){return(0,n5.pipe)(n,wz(t,e))},wB=function(n,t){return(0,n5.pipe)(n,wH(t))},wV=wh(dH),wz=wg(dH),wH=wy(dH),w$=wx,wX="TaskThese",wJ=function(n,t){var e=wm(n,t);return{URI:wX,_E:void 0,map:wG,ap:function(n,t){return(0,n5.pipe)(n,e(t))}}};function wZ(n,t){return{URI:wX,_E:void 0,map:wG,ap:wJ(n,t).ap,of:w$}}function wQ(n){var t=wJ(d2,n),e=wv(d3,n);return{URI:wX,_E:void 0,map:wG,ap:t.ap,chain:function(n,t){return(0,n5.pipe)(n,e(t))}}}function w0(n){var t=wZ(d2,n),e=wQ(n);return{URI:wX,_E:void 0,map:wG,ap:t.ap,of:w$,chain:e.chain,fromIO:wF,fromTask:wP}}var w1={URI:wX,map:wG},w2=(0,tp.flap)(w1),w5={URI:wX,of:w$},w7={URI:wX,bimap:wY,mapLeft:wB},w8={URI:wX,fromEither:wk},w3=(0,eb.fromOption)(w8),w9=(0,eb.fromOptionK)(w8),w4=(0,eb.fromPredicate)(w8),w6={URI:wX,fromThese:wW},Cn=ud(w6),Ct={URI:wX,fromIO:wF},Ce=e_(Ct),Cr={URI:wX,fromIO:wF,fromTask:wP},Cu=ua(Cr),Ci=wR(dH),Co=w$(eT.Xl),Cc=function(n){var t=wo(n);return function(n){return(0,n5.flow)(sv(n),dq(t(n5.SK)))}},Ca=function(n){return function(t){var e=Cc(n)(t);return function(n){return eT.Od(n)?e(n):Co}}},Cf=function(n){return function(t){return function(e){return function(){return eT.Gb(e).reduce(function(e,r,u){return e.then(function(i){return Od(i)?e:t(u+1,r)().then(function(t){if(Od(t))return t;if(Oh(t)){var e=i.right;return e.push(t.right),Oh(i)?Og(n.concat(i.left,t.left),e):Og(t.left,e)}return i.right.push(t.right),i})})},t(0,eT.YM(e))().then(OV(eT.ri)))}}}},Cl=function(n){return function(t){var e=Cf(n)(t);return function(n){return eT.Od(n)?e(n):Co}}},Cp={URI:wX,map:wG},Cd={URI:wX,bimap:wY,mapLeft:wB},Cs=function(n,t){return Ci(function(){return n},function(){return t})},Ch={URI:wX,map:wG,bimap:wY,mapLeft:wB},Cm=function(n,t){return(0,nN.getApplySemigroup)(d5)(Ox(n,t))};function Cv(n,t){return function(e){return e(t(e(n.empty)))}}function Cg(n){return function(t){return[n(t),t]}}function Cy(n){return function(t){return function(e){return[t(e),n(e)]}}}function Cb(n){return function(t){return function(e){return t(n(e))}}}function C_(n){return{URI:CS,_E:void 0,map:CI,extend:function(t,e){return function(r){return e(function(e){return t(n.concat(r,e))})}},extract:function(t){return t(n.empty)}}}var CI=function(n,t){return(0,n5.pipe)(n,CR(t))},CR=function(n){return function(t){return function(e){return n(t(e))}}},CS="Traced",CT={URI:CS,map:CI},Cx=(0,tp.flap)(CT),CM=CT;function CO(n,t){return function(e){var r=n.traverse(e),u=t.traverse(e);return function(n){return function(t){return r(t,function(t){return u(t,n)})}}}}function Cw(n,t){return function(e){var r=n.sequence(e),u=t.sequence(e);return function(t){return r(n.map(t,u))}}}function CC(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=eh(n,t),u=CO(n,t),i=Cw(n,t);return{map:e,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(n){var t=u(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},sequence:function(n){var t=i(n);return function(n){return(0,n5.pipe)(n,t)}}}}function CE(n,t){return void 0===t&&(t=[]),{value:n,forest:t}}function Ck(n){var t=function(e){return nG.isEmpty(e.forest)?"make(".concat(n.show(e.value),")"):"make(".concat(n.show(e.value),", [").concat(e.forest.map(t).join(", "),"])")};return{show:t}}function CW(n){var t,e=(0,t8.fromEquals)(function(e,r){return n.equals(e.value,r.value)&&t.equals(e.forest,r.forest)});return t=nG.getEq(e),e}var CF=function(n,t){for(var e,r="",u=t.length,i=0;i<u;i++){e=t[i];var o=i===u-1;r+=n+(o?"└":"├")+"─ "+e.value+CF(n+(u>1&&!o?"│ ":" "),e.forest)}return r};function CU(n){return CF("\n",n)}function CP(n){return n.value+CU(n.forest)}function CA(n,t){var e=t(n);return{value:e[0],forest:CL(e[1],t)}}function CL(n,t){return n.map(function(n){return CA(n,t)})}function CD(n){var t=CN(n);return function(e,r){return n.chain(r(e),function(e){var u=e[0],i=e[1];return n.map(t(i,r),function(n){return{value:u,forest:n}})})}}function CN(n){var t=nG.traverse(n);return function(e,r){return(0,n5.pipe)(e,t(function(t){return CD(n)(t,r)}))}}function Cj(n){var t=function(e){return n(e.value,e.forest.map(t))};return t}var Cq=function(n,t){return(0,n5.pipe)(n,CQ(t))},CK=function(n,t){return C$(n,function(n){return(0,n5.pipe)(t,CQ(n))})},CG=function(n,t,e){return(0,n5.pipe)(n,C0(t,e))},CY=function(n){var t=C1(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},CB=function(n,t,e){return(0,n5.pipe)(n,C2(t,e))},CV=function(n,t){return(0,n5.pipe)(n,CX(t))},Cz=function(n){var t=C7(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},CH=function(n){return function(t){return CK(t,n)}},C$=(0,n5.dual)(2,function(n,t){var e=t(n.value),r=e.value,u=e.forest;return{value:r,forest:(0,nG.getMonoid().concat)(u,n.forest.map(C$(t)))}}),CX=function(n){return function(t){return{value:n(t),forest:t.forest.map(CX(n))}}},CJ=CX(n5.identity),CZ=C$(n5.identity),CQ=function(n){return function(t){return{value:n(t.value),forest:t.forest.map(CQ(n))}}},C0=function(n,t){return function(e){for(var r=t(n,e.value),u=e.forest.length,i=0;i<u;i++)r=(0,n5.pipe)(e.forest[i],C0(r,t));return r}},C1=function(n){return function(t){return C0(n.empty,function(e,r){return n.concat(e,t(r))})}},C2=function(n,t){return function(e){for(var r=n,u=e.forest.length,i=u-1;i>=0;i--)r=(0,n5.pipe)(e.forest[i],C2(r,t));return t(e.value,r)}},C5=function(n){return n.value},C7=function(n){var t=nG.traverse(n),e=function(r){return function(u){return n.ap(n.map(r(u.value),function(n){return function(t){return{value:n,forest:t}}}),(0,n5.pipe)(u.forest,t(e(r))))}};return e},C8=function(n){return C7(n)(n5.identity)},C3=function(n){return CE(n)},C9="Tree",C4={URI:C9,map:Cq},C6=(0,tp.flap)(C4),En={URI:C9,of:C3},Et={URI:C9,map:Cq,ap:CK},Ee=(0,nN.apFirst)(Et),Er=(0,nN.apSecond)(Et),Eu={URI:C9,map:Cq,ap:CK,of:C3},Ei={URI:C9,map:Cq,ap:CK,chain:C$},Eo={URI:C9,map:Cq,ap:CK,of:C3,chain:C$},Ec=(0,ti.chainFirst)(Ei),Ea={URI:C9,reduce:CG,foldMap:CY,reduceRight:CB},Ef={URI:C9,map:Cq,reduce:CG,foldMap:CY,reduceRight:CB,traverse:Cz,sequence:C8},El={URI:C9,map:Cq,extend:CV,extract:C5},Ep=C3(eT.F4),Ed=(0,tp.bindTo)(C4),Es=(0,tp.let)(C4),Eh=(0,ti.bind)(Ei),Em=(0,nN.apS)(Et);function Ev(n){var t=function(e,r){return n.equals(e,r.value)||r.forest.some(function(n){return t(e,n)})};return t}var Eg=function(n){return function(t){return n(t.value)||t.forest.some(Eg(n))}},Ey=C$,Eb={URI:C9,map:Cq,of:C3,ap:CK,chain:C$,reduce:CG,foldMap:CY,reduceRight:CB,traverse:Cz,sequence:C8,extract:C5,extend:CV},E_=_T,EI=_x,ER=function(n){return[EI(n),E_(n)]};function ES(n){return{URI:EX,_E:void 0,map:EE,ap:function(t,e){return[E_(t)(E_(e)),n.concat(EI(t),EI(e))]}}}var ET=function(n){return function(t){return[t,n.empty]}};function Ex(n){var t=ES(n);return{URI:EX,_E:void 0,map:t.map,ap:t.ap,of:ET(n)}}function EM(n){var t=ES(n);return{URI:EX,_E:void 0,map:t.map,ap:t.ap,chain:function(t,e){var r=e(E_(t)),u=r[0],i=r[1];return[u,n.concat(EI(t),i)]}}}function EO(n){var t=EM(n);return{URI:EX,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:ET(n)}}function Ew(n){var t=EM(n);return{URI:EX,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),u=n.empty,i=E_(r);"Left"===i._tag;)u=n.concat(u,EI(r)),i=E_(r=e(i.left));return[i.right,n.concat(u,EI(r))]}}}var EC=function(n,t){return(0,n5.pipe)(n,Eq(t))},EE=function(n,t){return(0,n5.pipe)(n,EN(t))},Ek=function(n,t,e){return(0,n5.pipe)(n,ED(t,e))},EW=function(n,t){return(0,n5.pipe)(n,Ej(t))},EF=function(n,t){return(0,n5.pipe)(n,EK(t))},EU=function(n,t,e){return(0,n5.pipe)(n,EV(t,e))},EP=function(n){var t=EB(n);return function(n,e){return(0,n5.pipe)(n,t(e))}},EA=function(n,t,e){return(0,n5.pipe)(n,Ez(t,e))};function EL(n){var t=EH(n);return function(n,e){return(0,n5.pipe)(n,t(e))}}var ED=function(n,t){return function(e){return[t(E_(e)),n(EI(e))]}},EN=function(n){return function(t){return[n(E_(t)),EI(t)]}},Ej=function(n){return function(t){return[E_(t),n(EI(t))]}},Eq=function(n){return function(t){return[E_(t),EI(n)]}},EK=function(n){return function(t){return[n(t),EI(t)]}},EG=EK(n5.identity),EY=_z,EB=_X,EV=_$,Ez=_J,EH=function(n){return function(t){return function(e){return n.map(t(E_(e)),function(n){return[n,EI(e)]})}}},E$=function(n){return function(t){return n.map(E_(t),function(n){return[n,EI(t)]})}},EX="Tuple",EJ={URI:EX,map:EE},EZ=(0,tp.flap)(EJ),EQ={URI:EX,bimap:Ek,mapLeft:EW},E0={URI:EX,compose:EC},E1={URI:EX,map:EE,extend:EF,extract:EY},E2={URI:EX,reduce:EU,foldMap:EP,reduceRight:EA},E5={URI:EX,map:EE,reduce:EU,foldMap:EP,reduceRight:EA,traverse:EL,sequence:E$},E7=EN,E8=Ej,E3={URI:EX,compose:EC,map:EE,bimap:Ek,mapLeft:EW,extract:EY,extend:EF,reduce:EU,foldMap:EP,reduceRight:EA,traverse:EL,sequence:E$};function E9(n,t){var e=(0,nK.getApplicativeComposition)(t,tE.getApplicativeValidation(n));return{map:e.map,ap:e.ap,of:e.of,chain:function(n,e){return t.chain(n,function(n){return eT.nM(n)?t.of(eT.t$(n.left)):e(n.right)})},alt:function(e,r){return t.chain(e,function(e){return eT.tO(e)?t.of(e):t.map(r(),function(t){return eT.nM(t)?eT.t$(n.concat(e.left,t.left)):t})})}}}var E4=It.constant(void 0),E6={concat:E4.concat,empty:void 0},kn=function(n){return function(){return[void 0,n]}},kt=function(n){return function(){var t=n(),e=t[0],r=t[1];return[[e,r],r]}},ke=function(n){return function(){var t=n(),e=t[0];return[e[0],(0,e[1])(t[1])]}},kr=function(n){return function(t){return function(){var e=t(),r=e[0],u=e[1];return[[r,n(u)],u]}}},ku=function(n){return function(t){return function(){var e=t();return[e[0],n(e[1])]}}},ki=function(n,t){return(0,n5.pipe)(n,ko(t))},ko=function(n){return function(t){return function(){var e=t(),r=e[0],u=e[1];return[n(r),u]}}},kc="Writer",ka=function(n){return{URI:kc,_E:void 0,of:function(t){return function(){return[t,n.empty]}}}},kf=function(n){return{URI:kc,_E:void 0,map:ki,ap:function(t,e){return function(){var r=t(),u=r[0],i=r[1],o=e(),c=o[0],a=o[1];return[u(c),n.concat(i,a)]}}}},kl=function(n){var t=kf(n),e=ka(n);return{URI:kc,_E:void 0,map:ki,ap:t.ap,of:e.of}};function kp(n){return{URI:kc,_E:void 0,map:ki,ap:kf(n).ap,chain:function(t,e){return function(){var r=t(),u=r[0],i=r[1],o=e(u)(),c=o[0],a=o[1];return[c,n.concat(i,a)]}}}}function kd(n){var t=kl(n),e=kp(n);return{URI:kc,_E:void 0,map:ki,ap:t.ap,of:t.of,chain:e.chain}}var ks={URI:kc,map:ki},kh=(0,tp.flap)(ks),km=function(n){return n()[0]},kv=function(n){return n()[1]},kg=function(n){return n()[0]},ky=function(n){return n()[1]},kb=ks;function k_(n){var t=function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[e(t),r]})}};return{map:t,evalWriter:function(t){return n.map(t(),function(n){return n[0]})},execWriter:function(t){return n.map(t(),function(n){return n[0],n[1]})},tell:function(t){return function(){return n.of([void 0,t])}},listen:function(t){return function(){return n.map(t(),function(n){var t=n[0],e=n[1];return[[t,e],e]})}},pass:function(t){return function(){return n.map(t(),function(n){var t=n[0];return[t[0],(0,t[1])(n[1])]})}},listens:function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[[t,e(r)],r]})}},censor:function(t,e){return function(){return n.map(t(),function(n){return[n[0],e(n[1])]})}},getMonad:function(e){return{_E:void 0,map:t,of:function(t){return function(){return n.of([t,e.empty])}},ap:function(t,r){return function(){return n.chain(t(),function(t){var u=t[0],i=t[1];return n.map(r(),function(n){var t=n[0],r=n[1];return[u(t),e.concat(i,r)]})})}},chain:function(t,r){return function(){return n.chain(t(),function(t){var u=t[0],i=t[1];return n.map(r(u)(),function(n){var t=n[0],r=n[1];return[t,e.concat(i,r)]})})}}}}}}},97963:function(n,t,e){e.d(t,{D9:function(){return O},F2:function(){return d},F4:function(){return y},G:function(){return a},Gb:function(){return v},Od:function(){return h},WE:function(){return R},Wi:function(){return i},Xl:function(){return g},YM:function(){return m},YP:function(){return c},e$:function(){return b},hU:function(){return T},iu:function(){return x},nM:function(){return f},ny:function(){return S},on:function(){return w},pC:function(){return o},r1:function(){return _},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return I},we:function(){return M}});var r=e(42275),u=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},i=function(n){return"None"===n._tag},o=function(n){return"Some"===n._tag},c={_tag:"None"},a=function(n){return{_tag:"Some",value:n}},f=function(n){return"Left"===n._tag},l=function(n){return"Right"===n._tag},p=function(n){return{_tag:"Left",left:n}},d=function(n){return{_tag:"Right",right:n}},s=function(n){return[n]},h=function(n){return n.length>0},m=function(n){return n[0]},v=function(n){return n.slice(1)},g=[],y={},b=Object.prototype.hasOwnProperty,_=function(n){return u([n[0]],n.slice(1),!0)},I=function(n){return function(t,e){return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var i=t.apply(void 0,r);return n.fromEither(null==i?p(e.apply(void 0,r)):d(i))}}},R=function(n){return function(t,e){return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var o=t.apply(void 0,r);return n.fromEither(i(o)?p(e.apply(void 0,r)):d(o.value))}}},S=function(n,t){return(0,r.dual)(3,function(e,r,u){return t.flatMap(e,I(n)(r,u))})},T=function(n,t){return(0,r.dual)(3,function(e,r,u){return t.flatMap(e,R(n)(r,u))})},x=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},M=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},O=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},w=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},76627:function(n,t,e){e.r(t),e.d(t,{Bounded:function(){return o},Eq:function(){return u},Field:function(){return s},MagmaSub:function(){return a},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return i},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return c},isNumber:function(){return r}});var r=function(n){return"number"==typeof n},u={equals:function(n,t){return n===t}},i={equals:u.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},o={equals:u.equals,compare:i.compare,top:1/0,bottom:-1/0},c={show:function(n){return JSON.stringify(n)}},a={concat:function(n,t){return n-t}},f={concat:function(n,t){return n+t}},l={concat:function(n,t){return n*t}},p={concat:f.concat,empty:0},d={concat:l.concat,empty:1},s={add:f.concat,zero:0,mul:l.concat,one:1,sub:a.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},18896:function(n,t,e){e.r(t),e.d(t,{alt:function(){return _},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return E},contramap:function(){return c},extend:function(){return s},filter:function(){return I},filterMap:function(){return R},filterMapWithIndex:function(){return M},filterWithIndex:function(){return x},foldMap:function(){return m},foldMapWithIndex:function(){return y},map:function(){return o},mapLeft:function(){return d},mapWithIndex:function(){return a},partition:function(){return S},partitionMap:function(){return T},partitionMapWithIndex:function(){return w},partitionWithIndex:function(){return O},pipe:function(){return W},pipeable:function(){return k},promap:function(){return C},reduce:function(){return h},reduceRight:function(){return v},reduceRightWithIndex:function(){return b},reduceWithIndex:function(){return g}});var r=e(42925),u=e(88543),i=e(42275);function o(n){return function(t){return function(e){return n.map(e,t)}}}function c(n){return function(t){return function(e){return n.contramap(e,t)}}}function a(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function h(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function m(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function b(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function _(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function R(n){return function(t){return function(e){return n.filterMap(e,t)}}}function S(n){return function(t){return function(e){return n.partition(e,t)}}}function T(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function C(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function E(n){return function(t){return function(e){return n.compose(e,t)}}}function k(n){var t={};return"function"==typeof n.map&&(t.map=o(n)),"function"==typeof n.contramap&&(t.contramap=c(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=a(n)),"function"==typeof n.ap&&(t.ap=f(n),t.apFirst=(0,r.apFirst)(n),t.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(t.chain=l(n),t.chainFirst=(0,u.chainFirst)(n),t.flatten=t.chain(i.identity)),"function"==typeof n.bimap&&(t.bimap=p(n),t.mapLeft=d(n)),"function"==typeof n.extend&&(t.extend=s(n),t.duplicate=t.extend(i.identity)),"function"==typeof n.reduce&&(t.reduce=h(n),t.foldMap=m(n),t.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=g(n),t.foldMapWithIndex=y(n),t.reduceRightWithIndex=b(n)),"function"==typeof n.alt&&(t.alt=_(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=I(n),t.filterMap=R(n),t.partition=S(n),t.partitionMap=T(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=M(n),t.partitionWithIndex=O(n),t.partitionMapWithIndex=w(n)),"function"==typeof n.promap&&(t.promap=C(n)),"function"==typeof n.compose&&(t.compose=E(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t}var W=i.pipe},57029:function(n,t,e){e.r(t),e.d(t,{Eq:function(){return u},Monoid:function(){return c},Ord:function(){return a},Semigroup:function(){return i},Show:function(){return f},empty:function(){return o},endsWith:function(){return S},includes:function(){return I},isEmpty:function(){return y},isString:function(){return l},replace:function(){return s},size:function(){return b},slice:function(){return g},split:function(){return _},startsWith:function(){return R},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return h},trimLeft:function(){return m},trimRight:function(){return v}});var r=e(28350),u={equals:function(n,t){return n===t}},i={concat:function(n,t){return n+t}},o="",c={concat:i.concat,empty:o},a={equals:u.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},f={show:function(n){return JSON.stringify(n)}},l=function(n){return"string"==typeof n},p=function(n){return n.toUpperCase()},d=function(n){return n.toLowerCase()},s=function(n,t){return function(e){return e.replace(n,t)}},h=function(n){return n.trim()},m=function(n){return n.trimLeft()},v=function(n){return n.trimRight()},g=function(n,t){return function(e){return e.slice(n,t)}},y=function(n){return 0===n.length},b=function(n){return n.length},_=function(n){return function(t){var e=t.split(n);return(0,r.isNonEmpty)(e)?e:[t]}},I=function(n,t){return function(e){return e.includes(n,t)}},R=function(n,t){return function(e){return e.startsWith(n,t)}},S=function(n,t){return function(e){return e.endsWith(n,t)}}},91756:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=e(93145),u=e(14632),i=e(8762);t.getApplicativeMonoid=function(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}},t.getApplicativeComposition=function(n,t){var e=(0,i.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,u.pipe)(n,o(t))}}}},93145:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var o=e(14632),c=i(e(5309));function a(n,t,e){return function(r){for(var u=Array(e.length+1),i=0;i<e.length;i++)u[i]=e[i];return u[e.length]=r,0===t?n.apply(null,u):a(n,t-1,u)}}t.ap=function(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}},t.apFirst=function(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}},t.apSecond=function(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}},t.apS=function(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}},t.getApplySemigroup=function(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}};var f={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(u){return[n,t,e,r,u]}}}}}};t.sequenceT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length,u=(c.has.call(f,r)||(f[r]=a(o.tuple,r-1,[])),f[r]),i=n.map(t[0],u),l=1;l<r;l++)i=n.ap(i,t[l]);return i}},t.sequenceS=function(n){return function(t){for(var e=Object.keys(t),r=e.length,u=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u}}};case 4:return function(t){return function(e){return function(r){return function(u){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i[n[3]]=u,i}}}};case 5:return function(t){return function(e){return function(r){return function(u){return function(i){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=u,o[n[4]]=i,o}}}}};default:return a(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var u={},i=0;i<t;i++)u[n[i]]=e[i];return u},t-1,[])}}(e),i=n.map(t[e[0]],u),o=1;o<r;o++)i=n.ap(i,t[e[o]]);return i}}},92425:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.copy=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=t.foldMapWithIndex=t.foldMap=t.duplicate=t.extend=t.filterWithIndex=t.alt=t.altW=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.filter=t.separate=t.compact=t.filterMap=t.filterMapWithIndex=t.mapWithIndex=t.flatten=t.flatMap=t.ap=t.map=t.zero=t.of=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.sort=void 0,t.some=t.every=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.Witherable=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=void 0,t.array=t.prependToAll=t.snoc=t.cons=t.empty=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=void 0;var o=e(93145),c=e(18222),a=e(57756),f=e(14632),l=e(8762),p=i(e(5309)),d=i(e(7219)),s=i(e(78703)),h=e(4773),m=e(69706),v=e(3899);t.isEmpty=function(n){return 0===n.length},t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW,t.makeBy=function(n,t){return n<=0?[]:d.makeBy(t)(n)},t.replicate=function(n,e){return(0,t.makeBy)(n,function(){return e})},t.fromPredicate=function(n){return function(t){return n(t)?[t]:[]}},t.fromOption=function(n){return p.isNone(n)?[]:[n.value]},t.fromEither=function(n){return p.isLeft(n)?[]:[n.right]},t.matchW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}},t.match=t.matchW,t.matchLeftW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.head(r),d.tail(r)):n()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.init(r),d.last(r)):n()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},t.scanLeft=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[0]=n;for(var i=0;i<r;i++)u[i+1]=t(u[i],e[i]);return u}},t.scanRight=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[r]=n;for(var i=r-1;i>=0;i--)u[i]=t(e[i],u[i+1]);return u}},t.size=function(n){return n.length},t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last,t.tail=function(n){return(0,t.isNonEmpty)(n)?p.some(d.tail(n)):p.none},t.init=function(n){return(0,t.isNonEmpty)(n)?p.some(d.init(n)):p.none},t.takeLeft=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):e.slice(0,n)}},t.takeRight=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):0===n?[]:e.slice(-n)}},t.takeLeftWhile=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=t[r];if(!n(u))break;e.push(u)}return e}};var g=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function y(n){var e=d.union(n);return function(r,u){if(void 0===u){var i=y(n);return function(n){return i(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(u)?e(u)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(u)}}function b(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var u=b(n);return function(n){return u(n,t)}}return t.filter(function(n){return e(n,r)})}}function _(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var u=_(n);return function(n){return u(n,t)}}return t.filter(function(n){return!e(n,r)})}}t.spanLeft=function(n){return function(e){var r=(0,t.splitAt)(g(e,n))(e);return{init:r[0],rest:r[1]}}},t.dropLeft=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(n,e.length)}},t.dropRight=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(0,e.length-n)}},t.dropLeftWhile=function(n){return function(t){return t.slice(g(t,n))}},t.findIndex=s.findIndex,t.findFirst=function(n){return s.findFirst(n)},t.findFirstMap=s.findFirstMap,t.findLast=function(n){return s.findLast(n)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex,t.copy=function(n){return n.slice()},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.deleteAt=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?p.none:p.some((0,t.unsafeDeleteAt)(n,e))}},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.reverse=function(n){return(0,t.isEmpty)(n)?[]:n.slice().reverse()},t.rights=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(n){return function(e){return e.length<=1?(0,t.copy)(e):e.slice().sort(n.compare)}},t.zipWith=function(n,t,e){for(var r=[],u=Math.min(n.length,t.length),i=0;i<u;i++)r[i]=e(n[i],t[i]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){var e=d.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.intersperse=function(n){var e=d.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.rotate=function(n){var e=d.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.elem=s.elem,t.uniq=function(n){var e=d.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.sortBy=function(n){var e=d.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}},t.chop=function(n){var e=d.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.splitAt=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?d.splitAt(n)(e):(0,t.isEmpty)(e)?[(0,t.copy)(e),[]]:[[],(0,t.copy)(e)]}},t.chunksOf=function(n){var e=d.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}},t.fromOptionK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}},t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var u=function(n,i){return(0,t.isNonEmpty)(i)?(0,t.flatMap)(d.head(i),function(e){return u((0,f.pipe)(n,(0,t.append)(e)),d.tail(i))}):r.apply(void 0,n)?[e.apply(void 0,n)]:[]};return u([],n)},t.concatW=function(n){return function(e){return(0,t.isEmpty)(e)?(0,t.copy)(n):(0,t.isEmpty)(n)?(0,t.copy)(e):e.concat(n)}},t.concat=t.concatW,t.union=y,t.intersection=b,t.difference=_;var I=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},R=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},S=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},T=function(n,e){return(0,f.pipe)(n,(0,t.filter)(e))},x=function(n,e){return(0,f.pipe)(n,(0,t.filterMap)(e))},M=function(n,e){return(0,f.pipe)(n,(0,t.partition)(e))},O=function(n,e){return(0,f.pipe)(n,(0,t.partitionMap)(e))},w=function(n,e){return(0,f.pipe)(n,(0,t.partitionWithIndex)(e))},C=function(n,e){return(0,f.pipe)(n,(0,t.partitionMapWithIndex)(e))},E=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},k=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},W=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},F=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},U=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},P=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},A=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},L=function(n,e){return(0,f.pipe)(n,(0,t.filterMapWithIndex)(e))},D=function(n,e){return(0,f.pipe)(n,(0,t.filterWithIndex)(e))},N=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},j=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},q=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},K=s._chainRecDepthFirst,G=s._chainRecBreadthFirst;t.of=d.of,t.zero=function(){return[]},t.map=function(n){return function(t){return t.map(function(t){return n(t)})}},t.ap=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(f.identity),t.mapWithIndex=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},t.filterMapWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=n(r,t[r]);p.isSome(u)&&e.push(u.value)}return e}},t.filterMap=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})},t.compact=(0,t.filterMap)(f.identity),t.separate=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var u=n[r];"Left"===u._tag?t.push(u.left):e.push(u.right)}return(0,h.separated)(t,e)},t.filter=function(n){return function(t){return t.filter(n)}},t.partition=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})},t.partitionWithIndex=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=t[u];n(u,i)?r.push(i):e.push(i)}return(0,h.separated)(e,r)}},t.partitionMap=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})},t.partitionMapWithIndex=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=n(u,t[u]);"Left"===i._tag?e.push(i.left):r.push(i.right)}return(0,h.separated)(e,r)}},t.altW=function(n){return function(t){return t.concat(n())}},t.alt=t.altW,t.filterWithIndex=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},t.extend=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},t.duplicate=(0,t.extend)(f.identity),t.foldMap=s.foldMap,t.foldMapWithIndex=s.foldMapWithIndex,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return function(e){return k(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),r)})}},t.traverseWithIndex=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,u,i){return n.ap(n.map(u,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(r,i))})}},t.wither=function(n){var t=Y(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=B(n);return function(n){return function(e){return t(e,n)}}},t.unfold=function(n,t){for(var e=[],r=n;;){var u=t(r);if(p.isSome(u)){var i=u.value,o=i[0],c=i[1];e.push(o),r=c}else break}return e},t.URI="Array",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:function(n,t){return n.concat(t)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}},t.getEq=s.getEq,t.getOrd=s.getOrd,t.getUnionSemigroup=function(n){var t=y(n);return{concat:function(n,e){return t(e)(n)}}},t.getUnionMonoid=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:[]}},t.getIntersectionSemigroup=function(n){var t=b(n);return{concat:function(n,e){return t(e)(n)}}},t.getDifferenceMagma=function(n){var t=_(n);return{concat:function(n,e){return t(e)(n)}}},t.Functor={URI:t.URI,map:I},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:I,mapWithIndex:R},t.Apply={URI:t.URI,map:I,ap:S},t.apFirst=(0,o.apFirst)(t.Apply),t.apSecond=(0,o.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:I,ap:S,of:t.of},t.Chain={URI:t.URI,map:I,ap:S,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:I,ap:S,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:I,alt:E},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:I,ap:S,of:t.of,alt:E,zero:t.zero},t.Extend={URI:t.URI,map:I,extend:N},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:M,partitionMap:O},t.FilterableWithIndex={URI:t.URI,map:I,mapWithIndex:R,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:M,partitionMap:O,partitionMapWithIndex:C,partitionWithIndex:w,filterMapWithIndex:L,filterWithIndex:D},t.Foldable={URI:t.URI,reduce:k,foldMap:W,reduceRight:F},t.FoldableWithIndex={URI:t.URI,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:U,foldMapWithIndex:P,reduceRightWithIndex:A},t.Traversable={URI:t.URI,map:I,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:I,mapWithIndex:R,reduce:k,foldMap:W,reduceRight:F,reduceWithIndex:U,foldMapWithIndex:P,reduceRightWithIndex:A,traverse:j,sequence:t.sequence,traverseWithIndex:q};var Y=(0,m.witherDefault)(t.Traversable,t.Compactable),B=(0,m.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:I,compact:t.compact,separate:t.separate,filter:T,filterMap:x,partition:M,partitionMap:O,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence,wither:Y,wilt:B},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:I,ap:S,chain:t.flatMap,chainRec:K},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:I,ap:S,chain:t.flatMap,chainRec:G},t.filterE=(0,m.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,a.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt,t.unsafeUpdateAt=function(n,e,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(n,e,r):[]},t.unsafeDeleteAt=function(n,t){var e=t.slice();return e.splice(n,1),e},t.every=s.every,t.some=function(n){return function(t){return t.some(n)}},t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var V=(0,l.let)(t.Functor);t.let=V,t.bind=(0,c.bind)(t.Chain),t.apS=(0,o.apS)(t.Apply),t.chain=t.flatMap,t.range=d.range,t.empty=[],t.cons=d.cons,t.snoc=d.snoc,t.prependToAll=t.prependAll,t.array={URI:t.URI,compact:t.compact,separate:t.separate,map:I,ap:S,of:t.of,chain:t.flatMap,filter:T,filterMap:x,partition:M,partitionMap:O,mapWithIndex:R,partitionMapWithIndex:C,partitionWithIndex:w,filterMapWithIndex:L,filterWithIndex:D,alt:E,zero:t.zero,unfold:t.unfold,reduce:k,foldMap:W,reduceRight:F,traverse:j,sequence:t.sequence,reduceWithIndex:U,foldMapWithIndex:P,reduceRightWithIndex:A,traverseWithIndex:q,extend:N,wither:Y,wilt:B}},18222:function(n,t){function e(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(n){var t=e(n);return function(n){return function(e){return t(e,n)}}},t.tap=e,t.bind=function(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}},71166:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0,t.tailRec=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},87412:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.match=t.foldW=t.matchW=t.isRight=t.isLeft=t.fromOption=t.fromPredicate=t.FromEither=t.MonadThrow=t.throwError=t.ChainRec=t.Extend=t.extend=t.Alt=t.alt=t.altW=t.Bifunctor=t.mapLeft=t.bimap=t.Traversable=t.sequence=t.traverse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.Applicative=t.Apply=t.ap=t.apW=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getAltValidation=t.getApplicativeValidation=t.getWitherable=t.getFilterable=t.getCompactable=t.getSemigroup=t.getEq=t.getShow=t.URI=t.flatMap=t.right=t.left=void 0,t.chainFirstW=t.chainFirst=t.chain=t.chainW=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apSW=t.apS=t.bindW=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toError=t.toUnion=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.orElse=t.orElseW=t.swap=t.filterOrElseW=t.filterOrElse=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.chainOptionKW=t.chainOptionK=t.fromOptionK=t.duplicate=t.flatten=t.flattenW=t.tap=t.apSecondW=t.apSecond=t.apFirstW=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=void 0,t.getValidation=t.getValidationMonoid=t.getValidationSemigroup=t.getApplyMonoid=t.getApplySemigroup=t.either=t.stringifyJSON=t.parseJSON=void 0;var o=e(91756),c=e(93145),a=i(e(18222)),f=e(71166),l=e(57756),p=e(14632),d=e(8762),s=i(e(5309)),h=e(4773),m=e(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(n,e){return(0,t.isLeft)(n)?n:e(n.right)});var v=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},g=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},y=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},b=function(n){return function(e,r){var u=(0,t.foldMap)(n);return(0,p.pipe)(e,u(r))}},_=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},I=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},R=function(n,e,r){return(0,p.pipe)(n,(0,t.bimap)(e,r))},S=function(n,e){return(0,p.pipe)(n,(0,t.mapLeft)(e))},T=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},M=function(n,e){return(0,f.tailRec)(e(n),function(n){return(0,t.isLeft)(n)?(0,t.right)((0,t.left)(n.left)):(0,t.isLeft)(n.right)?(0,t.left)(e(n.right.left)):(0,t.right)((0,t.right)(n.right.right))})};t.URI="Either",t.getShow=function(n,e){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(n.show(r.left),")"):"right(".concat(e.show(r.right),")")}}},t.getEq=function(n,e){return{equals:function(r,u){return r===u||((0,t.isLeft)(r)?(0,t.isLeft)(u)&&n.equals(r.left,u.left):(0,t.isRight)(u)&&e.equals(r.right,u.right))}}},t.getSemigroup=function(n){return{concat:function(e,r){return(0,t.isLeft)(r)?e:(0,t.isLeft)(e)?r:(0,t.right)(n.concat(e.right,r.right))}}},t.getCompactable=function(n){var e=(0,t.left)(n.empty);return{URI:t.URI,_E:void 0,compact:function(n){return(0,t.isLeft)(n)?n:"None"===n.right._tag?e:(0,t.right)(n.right.value)},separate:function(n){return(0,t.isLeft)(n)?(0,h.separated)(n,n):(0,t.isLeft)(n.right)?(0,h.separated)((0,t.right)(n.right.left),e):(0,h.separated)(e,(0,t.right)(n.right.right))}}},t.getFilterable=function(n){var e=(0,t.left)(n.empty),r=(0,t.getCompactable)(n),u=r.compact,i=r.separate;return{URI:t.URI,_E:void 0,map:v,compact:u,separate:i,filter:function(n,r){return(0,t.isLeft)(n)?n:r(n.right)?n:e},filterMap:function(n,r){if((0,t.isLeft)(n))return n;var u=r(n.right);return"None"===u._tag?e:(0,t.right)(u.value)},partition:function(n,r){return(0,t.isLeft)(n)?(0,h.separated)(n,n):r(n.right)?(0,h.separated)(e,(0,t.right)(n.right)):(0,h.separated)((0,t.right)(n.right),e)},partitionMap:function(n,r){if((0,t.isLeft)(n))return(0,h.separated)(n,n);var u=r(n.right);return(0,t.isLeft)(u)?(0,h.separated)((0,t.right)(u.left),e):(0,h.separated)(e,(0,t.right)(u.right))}}},t.getWitherable=function(n){var e=(0,t.getFilterable)(n),r=(0,t.getCompactable)(n);return{URI:t.URI,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:t.sequence,reduce:y,foldMap:b,reduceRight:_,wither:(0,m.witherDefault)(t.Traversable,r),wilt:(0,m.wiltDefault)(t.Traversable,r)}},t.getApplicativeValidation=function(n){return{URI:t.URI,_E:void 0,map:v,ap:function(e,r){return(0,t.isLeft)(e)?(0,t.isLeft)(r)?(0,t.left)(n.concat(e.left,r.left)):e:(0,t.isLeft)(r)?r:(0,t.right)(e.right(r.right))},of:t.of}},t.getAltValidation=function(n){return{URI:t.URI,_E:void 0,map:v,alt:function(e,r){if((0,t.isRight)(e))return e;var u=r();return(0,t.isLeft)(u)?(0,t.left)(n.concat(e.left,u.left)):u}}},t.map=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e.right))}},t.Functor={URI:t.URI,map:v},t.as=(0,p.dual)(2,(0,d.as)(t.Functor)),t.asUnit=(0,d.asUnit)(t.Functor),t.of=t.right,t.Pointed={URI:t.URI,of:t.of},t.apW=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.isLeft)(n)?n:(0,t.right)(e.right(n.right))}},t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:g},t.Applicative={URI:t.URI,map:v,ap:g,of:t.of},t.Chain={URI:t.URI,map:v,ap:g,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(n,r.right)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.empty:e(r.right)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(r.right,n)}},t.Foldable={URI:t.URI,reduce:y,foldMap:b,reduceRight:_},t.traverse=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.of((0,t.left)(r.left)):n.map(e(r.right),t.right)}}},t.sequence=function(n){return function(e){return(0,t.isLeft)(e)?n.of((0,t.left)(e.left)):n.map(e.right,t.right)}},t.Traversable={URI:t.URI,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence},t.bimap=function(n,e){return function(r){return(0,t.isLeft)(r)?(0,t.left)(n(r.left)):(0,t.right)(e(r.right))}},t.mapLeft=function(n){return function(e){return(0,t.isLeft)(e)?(0,t.left)(n(e.left)):e}},t.Bifunctor={URI:t.URI,bimap:R,mapLeft:S},t.altW=function(n){return function(e){return(0,t.isLeft)(e)?n():e}},t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:T},t.extend=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e))}},t.Extend={URI:t.URI,map:v,extend:x},t.ChainRec={URI:t.URI,map:v,ap:g,chain:t.flatMap,chainRec:M},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap,throwError:t.throwError},t.FromEither={URI:t.URI,fromEither:p.identity},t.fromPredicate=(0,l.fromPredicate)(t.FromEither),t.fromOption=(0,l.fromOption)(t.FromEither),t.isLeft=s.isLeft,t.isRight=s.isRight,t.matchW=function(n,e){return function(r){return(0,t.isLeft)(r)?n(r.left):e(r.right)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e.right}},t.getOrElse=t.getOrElseW,t.flap=(0,d.flap)(t.Functor),t.apFirst=(0,c.apFirst)(t.Apply),t.apFirstW=t.apFirst,t.apSecond=(0,c.apSecond)(t.Apply),t.apSecondW=t.apSecond,t.tap=(0,p.dual)(2,a.tap(t.Chain)),t.flattenW=(0,t.flatMap)(p.identity),t.flatten=t.flattenW,t.duplicate=(0,t.extend)(p.identity),t.fromOptionK=(0,l.fromOptionK)(t.FromEither),t.chainOptionK=(0,l.chainOptionK)(t.FromEither,t.Chain),t.chainOptionKW=t.chainOptionK;var O={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(O),t.liftOption=s.liftOption(O);var w={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(O,w),t.flatMapOption=s.flatMapOption(O,w),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse,t.swap=function(n){return(0,t.isLeft)(n)?(0,t.right)(n.left):(0,t.left)(n.right)},t.orElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e}},t.orElse=t.orElseW,t.fromNullable=function(n){return function(e){return null==e?(0,t.left)(n):(0,t.right)(e)}},t.tryCatch=function(n,e){try{return(0,t.right)(n())}catch(n){return(0,t.left)(e(n))}},t.tryCatchK=function(n,e){return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return(0,t.tryCatch)(function(){return n.apply(void 0,r)},e)}},t.fromNullableK=function(n){var e=(0,t.fromNullable)(n);return function(n){return(0,p.flow)(n,e)}},t.chainNullableK=function(n){var e=(0,t.fromNullableK)(n);return function(n){return(0,t.flatMap)(e(n))}},t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(n){return n instanceof Error?n:Error(String(n))},t.elem=function n(e){return function(r,u){if(void 0===u){var i=n(e);return function(n){return i(r,n)}}return!(0,t.isLeft)(u)&&e.equals(r,u.right)}},t.exists=function(n){return function(e){return!(0,t.isLeft)(e)&&n(e.right)}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var C=(0,d.let)(t.Functor);t.let=C,t.bind=a.bind(t.Chain),t.bindW=t.bind,t.apS=(0,c.apS)(t.Apply),t.apSW=t.apS,t.ApT=(0,t.of)(s.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,s.head(e));if((0,t.isLeft)(r))return r;for(var u=[r.right],i=1;i<e.length;i++){var o=n(i,e[i]);if((0,t.isLeft)(o))return o;u.push(o.right)}return(0,t.right)(u)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return s.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(p.identity),t.chainW=t.flatMap,t.chain=t.flatMap,t.chainFirst=t.tap,t.chainFirstW=t.tap,t.parseJSON=function(n,e){return(0,t.tryCatch)(function(){return JSON.parse(n)},e)},t.stringifyJSON=function(n,e){return(0,t.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e)},t.either={URI:t.URI,map:v,of:t.of,ap:g,chain:t.flatMap,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:M,throwError:t.throwError},t.getApplySemigroup=(0,c.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getValidationSemigroup=function(n,e){return(0,c.getApplySemigroup)((0,t.getApplicativeValidation)(n))(e)},t.getValidationMonoid=function(n,e){return(0,o.getApplicativeMonoid)((0,t.getApplicativeValidation)(n))(e)},t.getValidation=function(n){var e=(0,t.getApplicativeValidation)(n).ap,r=(0,t.getAltValidation)(n).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:t.sequence,chainRec:M,throwError:t.throwError,ap:e,alt:r}}},8190:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.eqDate=t.eqNumber=t.eqString=t.eqBoolean=t.eq=t.strictEqual=t.getStructEq=t.getTupleEq=t.Contravariant=t.getMonoid=t.getSemigroup=t.eqStrict=t.URI=t.contramap=t.tuple=t.struct=t.fromEquals=void 0;var r=e(14632);t.fromEquals=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},t.struct=function(n){return(0,t.fromEquals)(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},t.tuple=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromEquals)(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},t.contramap=function(n){return function(e){return(0,t.fromEquals)(function(t,r){return e.equals(n(t),n(r))})}},t.URI="Eq",t.eqStrict={equals:function(n,t){return n===t}};var u={equals:function(){return!0}};t.getSemigroup=function(){return{concat:function(n,e){return(0,t.fromEquals)(function(t,r){return n.equals(t,r)&&e.equals(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:u}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))}},t.getTupleEq=t.tuple,t.getStructEq=t.struct,t.strictEqual=t.eqStrict.equals,t.eq=t.Contravariant,t.eqBoolean=t.eqStrict,t.eqString=t.eqStrict,t.eqNumber=t.eqStrict,t.eqDate={equals:function(n,t){return n.valueOf()===t.valueOf()}}},57756:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.tapEither=t.filterOrElse=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.chainOptionK=t.fromOptionK=t.fromPredicate=t.fromOption=void 0;var o=e(18222),c=e(14632),a=i(e(5309));function f(n){return function(t){return function(e){return n.fromEither(a.isNone(e)?a.left(t()):a.right(e.value))}}}function l(n){var t=f(n);return function(n){var e=t(n);return function(n){return(0,c.flow)(n,e)}}}function p(n){return function(t){return(0,c.flow)(t,n.fromEither)}}function d(n,t){var e=p(n),r=(0,o.tap)(t);return function(n,t){return r(n,e(t))}}t.fromOption=f,t.fromPredicate=function(n){return function(t,e){return function(r){return n.fromEither(t(r)?a.right(r):a.left(e(r)))}}},t.fromOptionK=l,t.chainOptionK=function(n,t){var e=l(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}},t.fromEitherK=p,t.chainEitherK=function(n,t){var e=p(n);return function(n){return function(r){return t.chain(r,e(n))}}},t.chainFirstEitherK=function(n,t){var e=d(n,t);return function(n){return function(t){return e(t,n)}}},t.filterOrElse=function(n,t){return function(e,r){return function(u){return t.chain(u,function(t){return n.fromEither(e(t)?a.right(t):a.left(r(t)))})}}},t.tapEither=d},8762:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=e(14632);function u(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function i(n){return function(t,e){return n.map(t,function(){return e})}}t.map=u,t.flap=function(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}},t.bindTo=function(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}},t.let=function(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}},t.getFunctorComposition=function(n,t){var e=u(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}},t.as=i,t.asUnit=function(n){var t=i(n);return function(n){return t(n,void 0)}}},73540:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0,t.reverse=function(n){return{concat:function(t,e){return n.concat(e,t)}}},t.filterFirst=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},t.filterSecond=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},t.endo=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},t.concatAll=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},7219:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.foldMap=t.foldMapWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.of=t.copy=t.modifyAt=t.updateAt=t.insertAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromArray=t.fromReadonlyNonEmptyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=void 0,t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=void 0,t.nonEmptyArray=t.fold=t.prependToAll=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=t.groupSort=void 0;var c=e(93145),a=e(18222),f=e(14632),l=e(8762),p=i(e(5309)),d=e(83235),s=i(e(84612));function h(n){return function(t){return t.concat(n)}}function m(n,t){return t?n.concat(t):function(t){return t.concat(n)}}function v(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],u=t[0],i=[u],o=1;o<e;o++){var c=t[o];n.equals(c,u)?i.push(c):(r.push(i),i=[u=c])}return r.push(i),r}}t.isNonEmpty=function(n){return n.length>0},t.isOutOfBound=function(n,t){return n<0||n>=t.length},t.prependW=function(n){return function(t){return o([n],t,!0)}},t.prepend=t.prependW,t.appendW=function(n){return function(t){return o(o([],t,!0),[n],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(n,e,r){if((0,t.isNonEmpty)(r)){var u=(0,t.fromReadonlyNonEmptyArray)(r);return u.splice(n,0,e),u}return[e]},t.unsafeUpdateAt=function(n,e,r){var u=(0,t.fromReadonlyNonEmptyArray)(r);return u[n]=e,u},t.uniq=function(n){return function(e){if(1===e.length)return(0,t.copy)(e);for(var r=[(0,t.head)(e)],u=(0,t.tail)(e),i=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<u.length;o++)i(u[o]);return r}},t.sortBy=function(n){if((0,t.isNonEmpty)(n)){var e=(0,d.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return t.copy},t.union=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,f.pipe)(t,m(n)))}}},t.rotate=function(n){return function(e){var r=e.length,u=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(u),e)||0===u)return(0,t.copy)(e);if(!(u<0))return(0,t.rotate)(u-r)(e);var i=(0,t.splitAt)(-u)(e),o=i[0],c=i[1];return(0,f.pipe)(c,m(o))}},t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray,t.fromArray=function(n){return(0,t.isNonEmpty)(n)?p.some(n):p.none},t.makeBy=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],u=1;u<e;u++)r.push(n(u));return r}},t.replicate=function(n){return(0,t.makeBy)(function(){return n})},t.range=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]},t.unprepend=function(n){return[(0,t.head)(n),(0,t.tail)(n)]},t.unappend=function(n){return[(0,t.init)(n),(0,t.last)(n)]},t.concatW=h,t.concat=m,t.reverse=function(n){return o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)},t.group=v,t.groupBy=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var u=t[r],i=n(u);p.has.call(e,i)?e[i].push(u):e[i]=[u]}return e}},t.sort=function(n){return function(t){return t.slice().sort(n.compare)}},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.copy=t.fromReadonlyNonEmptyArray,t.of=function(n){return[n]},t.zipWith=function(n,t,e){for(var r=[e(n[0],t[0])],u=Math.min(n.length,t.length),i=1;i<u;i++)r[i]=e(n[i],t[i]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},t.intersperse=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):(0,t.copy)(e)}},t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap,t.chainWithIndex=function(n){return function(e){for(var r=(0,t.fromReadonlyNonEmptyArray)(n(0,(0,t.head)(e))),u=1;u<e.length;u++)r.push.apply(r,n(u,e[u]));return r}},t.chop=function(n){return function(e){for(var r=n(e),u=r[0],i=r[1],o=[u],c=i;(0,t.isNonEmpty)(c);){var a=n(c),f=a[0],l=a[1];o.push(f),c=l}return o}},t.splitAt=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[(0,t.copy)(e),[]]:[(0,f.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}},t.chunksOf=function(n){return(0,t.chop)((0,t.splitAt)(n))};var g=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},y=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},b=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},_=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},I=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},R=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},S=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},T=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},x=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},M=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},O=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},w=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},C=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}};t.altW=function(n){return function(t){return(0,f.pipe)(t,h(n()))}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.extend=function(n){return function(e){for(var r=(0,t.tail)(e),u=[n(e)];(0,t.isNonEmpty)(r);)u.push(n(r)),r=(0,t.tail)(r);return u}},t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity),t.map=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})},t.mapWithIndex=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],u=1;u<e.length;u++)r.push(n(u,e[u]));return r}},t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return(0,t.traverseWithIndex)(n)(function(n,t){return t})},t.traverseWithIndex=function(n){return function(e){return function(r){for(var u=n.map(e(0,(0,t.head)(r)),t.of),i=1;i<r.length;i++)u=n.ap(n.map(u,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(i,r[i]));return u}}},t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:m}},t.getEq=s.getEq,t.getUnionSemigroup=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}},t.Functor={URI:t.URI,map:g},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:g,mapWithIndex:y},t.Apply={URI:t.URI,map:g,ap:b},t.apFirst=(0,c.apFirst)(t.Apply),t.apSecond=(0,c.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:g,ap:b,of:t.of},t.Chain={URI:t.URI,map:g,ap:b,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:g,ap:b,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:I,foldMap:R,reduceRight:S},t.FoldableWithIndex={URI:t.URI,reduce:I,foldMap:R,reduceRight:S,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:w},t.Traversable={URI:t.URI,map:g,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:g,mapWithIndex:y,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:w,traverseWithIndex:C},t.Alt={URI:t.URI,map:g,alt:x},t.Comonad={URI:t.URI,map:g,extend:_,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var E=(0,l.let)(t.Functor);t.let=E,t.bind=(0,a.bind)(t.Chain),t.apS=(0,c.apS)(t.Apply),t.head=s.head,t.tail=function(n){return n.slice(1)},t.last=s.last,t.init=function(n){return n.slice(0,-1)},t.min=s.min,t.max=s.max,t.concatAll=function(n){return function(t){return t.reduce(n.concat)}},t.matchLeft=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}},t.matchRight=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}},t.modifyHead=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}},t.updateHead=function(n){return(0,t.modifyHead)(function(){return n})},t.modifyLast=function(n){return function(e){return(0,f.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}},t.updateLast=function(n){return(0,t.modifyLast)(function(){return n})},t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=v(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):[]}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})},t.filterWithIndex=function(n){return function(e){return(0,t.fromArray)(e.filter(function(t,e){return n(e,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,f.pipe)(e,(0,t.prepend)(n))},t.snoc=function(n,e){return(0,f.pipe)(n,(0,t.append)(e))},t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:g,mapWithIndex:y,ap:b,chain:t.flatMap,extend:_,extract:t.extract,reduce:I,foldMap:R,reduceRight:S,traverse:T,sequence:t.sequence,reduceWithIndex:M,foldMapWithIndex:O,reduceRightWithIndex:w,traverseWithIndex:C,alt:x}},72720:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Witherable=t.wilt=t.wither=t.Traversable=t.sequence=t.traverse=t.Filterable=t.partitionMap=t.partition=t.filterMap=t.filter=t.Compactable=t.separate=t.compact=t.Extend=t.extend=t.Alternative=t.guard=t.Zero=t.zero=t.Alt=t.alt=t.altW=t.orElse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.flatMap=t.Applicative=t.Apply=t.ap=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getMonoid=t.getOrd=t.getEq=t.getShow=t.URI=t.getRight=t.getLeft=t.fromPredicate=t.some=t.none=void 0,t.getFirstMonoid=t.getApplyMonoid=t.getApplySemigroup=t.option=t.mapNullable=t.getRefinement=t.chainFirst=t.chain=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apS=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toUndefined=t.toNullable=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.duplicate=t.tapEither=t.tap=t.flatten=t.apSecond=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=t.match=t.foldW=t.matchW=t.isNone=t.isSome=t.FromEither=t.fromEither=t.MonadThrow=t.throwError=void 0,t.getLastMonoid=void 0;var o=e(91756),c=e(93145),a=i(e(18222)),f=e(57756),l=e(14632),p=e(8762),d=i(e(5309)),s=e(87612),h=e(98744),m=e(4773),v=e(69706),g=e(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(n){return function(e){return n(e)?(0,t.some)(e):t.none}},t.getLeft=function(n){return"Right"===n._tag?t.none:(0,t.some)(n.left)},t.getRight=function(n){return"Left"===n._tag?t.none:(0,t.some)(n.right)};var y=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},b=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},_=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},I=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},S=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},T=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,l.pipe)(n,(0,t.filter)(e))},M=function(n,e){return(0,l.pipe)(n,(0,t.filterMap)(e))},O=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},w=function(n,e){return(0,l.pipe)(n,(0,t.partition)(e))},C=function(n,e){return(0,l.pipe)(n,(0,t.partitionMap)(e))};t.URI="Option",t.getShow=function(n){return{show:function(e){return(0,t.isNone)(e)?"none":"some(".concat(n.show(e.value),")")}}},t.getEq=function(n){return{equals:function(e,r){return e===r||((0,t.isNone)(e)?(0,t.isNone)(r):!(0,t.isNone)(r)&&n.equals(e.value,r.value))}}},t.getOrd=function(n){return{equals:(0,t.getEq)(n).equals,compare:function(e,r){return e===r?0:(0,t.isSome)(e)?(0,t.isSome)(r)?n.compare(e.value,r.value):1:-1}}},t.getMonoid=function(n){return{concat:function(e,r){return(0,t.isNone)(e)?r:(0,t.isNone)(r)?e:(0,t.some)(n.concat(e.value,r.value))},empty:t.none}},t.map=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e.value))}},t.Functor={URI:t.URI,map:y},t.as=(0,l.dual)(2,(0,p.as)(t.Functor)),t.asUnit=(0,p.asUnit)(t.Functor),t.of=t.some,t.Pointed={URI:t.URI,of:t.of},t.ap=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.isNone)(n)?t.none:(0,t.some)(e.value(n.value))}},t.Apply={URI:t.URI,map:y,ap:b},t.Applicative={URI:t.URI,map:y,ap:b,of:t.of},t.flatMap=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?t.none:e(n.value)}),t.Chain={URI:t.URI,map:y,ap:b,chain:t.flatMap},t.Monad={URI:t.URI,map:y,ap:b,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(r.value,n)}},t.Foldable={URI:t.URI,reduce:_,foldMap:I,reduceRight:R},t.orElse=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?e():n}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:y,alt:T},t.zero=function(){return t.none},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,g.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:y,ap:b,of:t.of,alt:T,zero:t.zero},t.extend=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e))}},t.Extend={URI:t.URI,map:y,extend:O},t.compact=(0,t.flatMap)(l.identity);var E=(0,m.separated)(t.none,t.none);t.separate=function(n){return(0,t.isNone)(n)?E:(0,m.separated)((0,t.getLeft)(n.value),(0,t.getRight)(n.value))},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.filter=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return(0,m.separated)(x(t,(0,s.not)(n)),x(t,n))}},t.partitionMap=function(n){return(0,l.flow)((0,t.map)(n),t.separate)},t.Filterable={URI:t.URI,map:y,compact:t.compact,separate:t.separate,filter:x,filterMap:M,partition:w,partitionMap:C},t.traverse=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return(0,t.isNone)(e)?n.of(t.none):n.map(e.value,t.some)}},t.Traversable={URI:t.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence};var k=(0,v.witherDefault)(t.Traversable,t.Compactable),W=(0,v.wiltDefault)(t.Traversable,t.Compactable);t.wither=function(n){var t=k(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=W(n);return function(n){return function(e){return t(e,n)}}},t.Witherable={URI:t.URI,map:y,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:x,filterMap:M,partition:w,partitionMap:C,wither:k,wilt:W},t.throwError=function(){return t.none},t.MonadThrow={URI:t.URI,map:y,ap:b,of:t.of,chain:t.flatMap,throwError:t.throwError},t.fromEither=t.getRight,t.FromEither={URI:t.URI,fromEither:t.fromEither},t.isSome=d.isSome,t.isNone=function(n){return"None"===n._tag},t.matchW=function(n,e){return function(r){return(0,t.isNone)(r)?n():e(r.value)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isNone)(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.flap=(0,p.flap)(t.Functor),t.apFirst=(0,c.apFirst)(t.Apply),t.apSecond=(0,c.apSecond)(t.Apply),t.flatten=t.compact,t.tap=(0,l.dual)(2,a.tap(t.Chain)),t.tapEither=(0,l.dual)(2,(0,f.tapEither)(t.FromEither,t.Chain)),t.duplicate=(0,t.extend)(l.identity),t.fromEitherK=(0,f.fromEitherK)(t.FromEither),t.chainEitherK=(0,f.chainEitherK)(t.FromEither,t.Chain),t.chainFirstEitherK=t.tapEither,t.fromNullable=function(n){return null==n?t.none:(0,t.some)(n)},t.tryCatch=function(n){try{return(0,t.some)(n())}catch(n){return t.none}},t.tryCatchK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.tryCatch)(function(){return n.apply(void 0,e)})}},t.fromNullableK=function(n){return(0,l.flow)(n,t.fromNullable)},t.chainNullableK=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.fromNullable)(n(e.value))}},t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function n(e){return function(r,u){if(void 0===u){var i=n(e);return function(n){return i(r,n)}}return!(0,t.isNone)(u)&&e.equals(r,u.value)}},t.exists=function(n){return function(e){return!(0,t.isNone)(e)&&n(e.value)}},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var F=(0,p.let)(t.Functor);t.let=F,t.bind=a.bind(t.Chain),t.apS=(0,c.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,d.head(e));if((0,t.isNone)(r))return t.none;for(var u=[r.value],i=1;i<e.length;i++){var o=n(i,e[i]);if((0,t.isNone)(o))return t.none;u.push(o.value)}return(0,t.some)(u)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return d.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(n){return function(e){return(0,t.isSome)(n(e))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:y,of:t.of,ap:b,chain:t.flatMap,reduce:_,foldMap:I,reduceRight:R,traverse:S,sequence:t.sequence,zero:t.zero,alt:T,extend:O,compact:t.compact,separate:t.separate,filter:x,filterMap:M,partition:w,partitionMap:C,wither:k,wilt:W,throwError:t.throwError},t.getApplySemigroup=(0,c.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getFirstMonoid=function(){return(0,t.getMonoid)((0,h.first)())},t.getLastMonoid=function(){return(0,t.getMonoid)((0,h.last)())}},83235:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ordDate=t.ordNumber=t.ordString=t.ordBoolean=t.ord=t.getDualOrd=t.getTupleOrd=t.between=t.clamp=t.max=t.min=t.geq=t.leq=t.gt=t.lt=t.equals=t.trivial=t.Contravariant=t.getMonoid=t.getSemigroup=t.URI=t.contramap=t.reverse=t.tuple=t.fromCompare=t.equalsDefault=void 0;var r=e(8190),u=e(14632);t.equalsDefault=function(n){return function(t,e){return t===e||0===n(t,e)}},t.fromCompare=function(n){return{equals:(0,t.equalsDefault)(n),compare:function(t,e){return t===e?0:n(t,e)}}},t.tuple=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromCompare)(function(t,e){for(var r=0;r<n.length-1;r++){var u=n[r].compare(t[r],e[r]);if(0!==u)return u}return n[r].compare(t[r],e[r])})},t.reverse=function(n){return(0,t.fromCompare)(function(t,e){return n.compare(e,t)})},t.contramap=function(n){return function(e){return(0,t.fromCompare)(function(t,r){return e.compare(n(t),n(r))})}},t.URI="Ord",t.getSemigroup=function(){return{concat:function(n,e){return(0,t.fromCompare)(function(t,r){var u=n.compare(t,r);return 0!==u?u:e.compare(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,u.pipe)(n,(0,t.contramap)(e))}},t.trivial={equals:u.constTrue,compare:(0,u.constant)(0)},t.equals=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},t.lt=function(n){return function(t,e){return -1===n.compare(t,e)}},t.gt=function(n){return function(t,e){return 1===n.compare(t,e)}},t.leq=function(n){return function(t,e){return 1!==n.compare(t,e)}},t.geq=function(n){return function(t,e){return -1!==n.compare(t,e)}},t.min=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},t.max=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},t.clamp=function(n){var e=(0,t.min)(n),r=(0,t.max)(n);return function(n,t){return function(u){return r(e(u,t),n)}}},t.between=function(n){var e=(0,t.lt)(n),r=(0,t.gt)(n);return function(n,t){return function(u){return!(e(u,n)||r(u,t))}}},t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var i={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}};t.ordBoolean=i,t.ordString=i,t.ordNumber=i,t.ordDate=(0,u.pipe)(t.ordNumber,(0,t.contramap)(function(n){return n.valueOf()}))},87612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.and=t.or=t.not=t.Contravariant=t.getMonoidAll=t.getSemigroupAll=t.getMonoidAny=t.getSemigroupAny=t.URI=t.contramap=void 0;var r=e(14632);t.contramap=function(n){return function(t){return(0,r.flow)(n,t)}},t.URI="Predicate",t.getSemigroupAny=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.or)(e))}}},t.getMonoidAny=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}},t.getSemigroupAll=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.and)(e))}}},t.getMonoidAll=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}},t.Contravariant={URI:t.URI,contramap:function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))}},t.not=function(n){return function(t){return!n(t)}},t.or=function(n){return function(t){return function(e){return t(e)||n(e)}}},t.and=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},78703:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.sort=t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.foldMap=t.reduce=t.foldMapWithIndex=t.duplicate=t.extend=t.filterWithIndex=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.compact=t.filterMap=t.filterMapWithIndex=t.filter=t.separate=t.mapWithIndex=t.map=t.flatten=t.flatMap=t.ap=t.alt=t.altW=t.zero=t.of=t._chainRecBreadthFirst=t._chainRecDepthFirst=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=void 0,t.toArray=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.Witherable=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.chainFirst=t.Monad=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=t.traverseWithIndex=void 0,t.readonlyArray=t.prependToAll=t.snoc=t.cons=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=t.some=t.every=t.empty=t.fromArray=void 0;var c=e(93145),a=e(18222),f=e(8190),l=e(57756),p=e(14632),d=e(8762),s=i(e(5309)),h=i(e(40457)),m=e(83235),v=i(e(84612)),g=e(4773),y=e(69706),b=e(3899);t.isEmpty=function(n){return 0===n.length},t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW,t.makeBy=function(n,e){return n<=0?t.empty:v.makeBy(e)(n)},t.replicate=function(n,e){return(0,t.makeBy)(n,function(){return e})},t.fromPredicate=function(n){return function(e){return n(e)?[e]:t.empty}},t.fromOption=function(n){return s.isNone(n)?t.empty:[n.value]},t.fromEither=function(n){return s.isLeft(n)?t.empty:[n.right]},t.matchW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}},t.match=t.matchW,t.matchLeftW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.head(r),v.tail(r)):n()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.init(r),v.last(r)):n()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(n){return function(e){if((0,t.isEmpty)(e))return t.empty;for(var r=[],u=0;u<e.length;u++)r.push.apply(r,n(u,e[u]));return r}},t.scanLeft=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[0]=n;for(var i=0;i<r;i++)u[i+1]=t(u[i],e[i]);return u}},t.scanRight=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[r]=n;for(var i=r-1;i>=0;i--)u[i]=t(e[i],u[i+1]);return u}},t.size=function(n){return n.length},t.isOutOfBound=v.isOutOfBound,t.lookup=function n(e,r){return void 0===r?function(t){return n(e,t)}:(0,t.isOutOfBound)(e,r)?s.none:s.some(r[e])},t.head=function(n){return(0,t.isNonEmpty)(n)?s.some(v.head(n)):s.none},t.last=function(n){return(0,t.isNonEmpty)(n)?s.some(v.last(n)):s.none},t.tail=function(n){return(0,t.isNonEmpty)(n)?s.some(v.tail(n)):s.none},t.init=function(n){return(0,t.isNonEmpty)(n)?s.some(v.init(n)):s.none},t.takeLeft=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(0,n)}},t.takeRight=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(-n)}},t.takeLeftWhile=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=e[u];if(!n(i))break;r.push(i)}var o=r.length;return o===e.length?e:0===o?t.empty:r}};var _=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function I(n){return function(t,e){if(void 0===e){var r,u=I(n);return function(n){return u(t,n)}}for(var i=0;i<e.length;i++)if(r=e[i],n.equals(r,t))return!0;return!1}}function R(n){var e=v.union(n);return function(r,u){if(void 0===u){var i=R(n);return function(n){return i(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(u)?e(u)(r):(0,t.isNonEmpty)(r)?r:u}}function S(n){var t=I(n);return function(e,r){if(void 0===r){var u=S(n);return function(n){return u(n,e)}}return e.filter(function(n){return t(n,r)})}}function T(n){var t=I(n);return function(e,r){if(void 0===r){var u=T(n);return function(n){return u(n,e)}}return e.filter(function(n){return!t(n,r)})}}t.spanLeft=function(n){return function(e){var r=(0,t.splitAt)(_(e,n))(e);return{init:r[0],rest:r[1]}}},t.dropLeft=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(n,e.length)}},t.dropRight=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(0,e.length-n)}},t.dropLeftWhile=function(n){return function(e){var r=_(e,n);return 0===r?e:r===e.length?t.empty:e.slice(r)}},t.findIndex=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(e);return s.none}},t.findFirst=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(t[e]);return s.none}},t.findFirstMap=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(s.isSome(r))return r}return s.none}},t.findLast=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(t[e]);return s.none}},t.findLastMap=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(s.isSome(r))return r}return s.none}},t.findLastIndex=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(e);return s.none}},t.insertAt=function(n,t){return function(e){return n<0||n>e.length?s.none:s.some(v.unsafeInsertAt(n,t,e))}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.deleteAt=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?s.none:s.some((0,t.unsafeDeleteAt)(n,e))}},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?s.none:s.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.reverse=function(n){return n.length<=1?n:n.slice().reverse()},t.rights=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},t.zipWith=function(n,t,e){for(var r=[],u=Math.min(n.length,t.length),i=0;i<u;i++)r[i]=e(n[i],t[i]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){var e=v.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.intersperse=function(n){var e=v.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.rotate=function(n){var e=v.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.elem=I,t.uniq=function(n){var e=v.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.sortBy=function(n){var e=v.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}},t.chop=function(n){var e=v.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}},t.splitAt=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?v.splitAt(n)(e):(0,t.isEmpty)(e)?[e,t.empty]:[t.empty,e]}},t.chunksOf=function(n){var e=v.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}},t.fromOptionK=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}},t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var u=function(n,i){return(0,t.isNonEmpty)(i)?(0,t.flatMap)(v.head(i),function(e){return u((0,p.pipe)(n,(0,t.append)(e)),v.tail(i))}):r.apply(void 0,n)?[e.apply(void 0,n)]:t.empty};return u(t.empty,n)},t.concatW=function(n){return function(e){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}},t.concat=t.concatW,t.union=R,t.intersection=S,t.difference=T;var x=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},M=function(n,e){return(0,p.pipe)(n,(0,t.mapWithIndex)(e))},O=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},w=function(n,e){return(0,p.pipe)(n,(0,t.filter)(e))},C=function(n,e){return(0,p.pipe)(n,(0,t.filterMap)(e))},E=function(n,e){return(0,p.pipe)(n,(0,t.partition)(e))},k=function(n,e){return(0,p.pipe)(n,(0,t.partitionMap)(e))},W=function(n,e){return(0,p.pipe)(n,(0,t.partitionWithIndex)(e))},F=function(n,e){return(0,p.pipe)(n,(0,t.partitionMapWithIndex)(e))},U=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},P=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},A=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},L=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},D=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceWithIndex)(e,r))},N=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},j=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},q=function(n,e){return(0,p.pipe)(n,(0,t.filterMapWithIndex)(e))},K=function(n,e){return(0,p.pipe)(n,(0,t.filterWithIndex)(e))},G=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},Y=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},B=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}};t._chainRecDepthFirst=function(n,e){return(0,p.pipe)(n,(0,t.chainRecDepthFirst)(e))},t._chainRecBreadthFirst=function(n,e){return(0,p.pipe)(n,(0,t.chainRecBreadthFirst)(e))},t.of=v.of,t.zero=function(){return t.empty},t.altW=function(n){return function(t){return t.concat(n())}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,p.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,p.dual)(2,function(n,e){return(0,p.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(p.identity),t.map=function(n){return function(t){return t.map(function(t){return n(t)})}},t.mapWithIndex=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},t.separate=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var u=n[r];"Left"===u._tag?t.push(u.left):e.push(u.right)}return(0,g.separated)(t,e)},t.filter=function(n){return function(t){return t.filter(n)}},t.filterMapWithIndex=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=n(r,t[r]);s.isSome(u)&&e.push(u.value)}return e}},t.filterMap=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})},t.compact=(0,t.filterMap)(p.identity),t.partition=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})},t.partitionWithIndex=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=t[u];n(u,i)?r.push(i):e.push(i)}return(0,g.separated)(e,r)}},t.partitionMap=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})},t.partitionMapWithIndex=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=n(u,t[u]);"Left"===i._tag?e.push(i.left):r.push(i.right)}return(0,g.separated)(e,r)}},t.filterWithIndex=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},t.extend=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},t.duplicate=(0,t.extend)(p.identity),t.foldMapWithIndex=function(n){return function(t){return function(e){return e.reduce(function(e,r,u){return n.concat(e,t(u,r))},n.empty)}}},t.reduce=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})},t.foldMap=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.reduceWithIndex=function(n,t){return function(e){for(var r=e.length,u=n,i=0;i<r;i++)u=t(i,u,e[i]);return u}},t.reduceRight=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})},t.reduceRightWithIndex=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return function(e){return P(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),r)})}},t.traverseWithIndex=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,u,i){return n.ap(n.map(u,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),e(r,i))})}},t.wither=function(n){var t=V(n);return function(n){return function(e){return t(e,n)}}},t.wilt=function(n){var t=z(n);return function(n){return function(e){return t(e,n)}}},t.unfold=function(n,t){for(var e=[],r=n;;){var u=t(r);if(s.isSome(u)){var i=u.value,o=i[0],c=i[1];e.push(o),r=c}else break}return e},t.URI="ReadonlyArray",t.getShow=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:function(n,e){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}},t.getEq=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},t.getOrd=function(n){return(0,m.fromCompare)(function(t,e){for(var r=t.length,u=e.length,i=Math.min(r,u),o=0;o<i;o++){var c=n.compare(t[o],e[o]);if(0!==c)return c}return h.Ord.compare(r,u)})},t.getUnionSemigroup=function(n){var t=R(n);return{concat:function(n,e){return t(e)(n)}}},t.getUnionMonoid=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:t.empty}},t.getIntersectionSemigroup=function(n){var t=S(n);return{concat:function(n,e){return t(e)(n)}}},t.getDifferenceMagma=function(n){var t=T(n);return{concat:function(n,e){return t(e)(n)}}},t.Functor={URI:t.URI,map:x},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:x,mapWithIndex:M},t.Apply={URI:t.URI,map:x,ap:O},t.apFirst=(0,c.apFirst)(t.Apply),t.apSecond=(0,c.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:x,ap:O,of:t.of},t.Chain={URI:t.URI,map:x,ap:O,chain:t.flatMap},t.Monad={URI:t.URI,map:x,ap:O,of:t.of,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:x,alt:U},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,b.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:x,ap:O,of:t.of,alt:U,zero:t.zero},t.Extend={URI:t.URI,map:x,extend:G},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:w,filterMap:C,partition:E,partitionMap:k},t.FilterableWithIndex={URI:t.URI,map:x,mapWithIndex:M,compact:t.compact,separate:t.separate,filter:w,filterMap:C,partition:E,partitionMap:k,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:K},t.Foldable={URI:t.URI,reduce:P,foldMap:A,reduceRight:L},t.FoldableWithIndex={URI:t.URI,reduce:P,foldMap:A,reduceRight:L,reduceWithIndex:D,foldMapWithIndex:N,reduceRightWithIndex:j},t.Traversable={URI:t.URI,map:x,reduce:P,foldMap:A,reduceRight:L,traverse:Y,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:x,mapWithIndex:M,reduce:P,foldMap:A,reduceRight:L,reduceWithIndex:D,foldMapWithIndex:N,reduceRightWithIndex:j,traverse:Y,sequence:t.sequence,traverseWithIndex:B},t.chainRecDepthFirst=function(n){return function(t){for(var e=o([],n(t),!0),r=[];e.length>0;){var u=e.shift();s.isLeft(u)?e.unshift.apply(e,n(u.left)):r.push(u.right)}return r}},t.ChainRecDepthFirst={URI:t.URI,map:x,ap:O,chain:t.flatMap,chainRec:t._chainRecDepthFirst},t.chainRecBreadthFirst=function(n){return function(t){var e=n(t),r=[],u=[];function i(t){s.isLeft(t)?n(t.left).forEach(function(n){return r.push(n)}):u.push(t.right)}for(var o=0;o<e.length;o++)i(e[o]);for(;r.length>0;)i(r.shift());return u}},t.ChainRecBreadthFirst={URI:t.URI,map:x,ap:O,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var V=(0,y.witherDefault)(t.Traversable,t.Compactable),z=(0,y.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:w,filterMap:C,partition:E,partitionMap:k,reduce:P,foldMap:A,reduceRight:L,traverse:Y,sequence:t.sequence,wither:V,wilt:z},t.filterE=(0,y.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=v.unsafeInsertAt,t.unsafeUpdateAt=function(n,e,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(n,e,r):r},t.unsafeDeleteAt=function(n,t){var e=t.slice();return e.splice(n,1),e},t.toArray=function(n){return n.slice()},t.fromArray=function(n){return(0,t.isEmpty)(n)?t.empty:n.slice()},t.empty=v.empty,t.every=function(n){return function(t){return t.every(n)}},t.some=function(n){return function(t){return t.some(n)}},t.exists=t.some,t.intercalate=function(n){var e=v.intercalate(n);return function(r){return(0,t.match)(function(){return n.empty},e(r))}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var H=(0,d.let)(t.Functor);t.let=H,t.bind=(0,a.bind)(t.Chain),t.apS=(0,c.apS)(t.Apply),t.chain=t.flatMap,t.range=v.range,t.cons=v.cons,t.snoc=v.snoc,t.prependToAll=t.prependAll,t.readonlyArray={URI:t.URI,compact:t.compact,separate:t.separate,map:x,ap:O,of:t.of,chain:t.flatMap,filter:w,filterMap:C,partition:E,partitionMap:k,mapWithIndex:M,partitionMapWithIndex:F,partitionWithIndex:W,filterMapWithIndex:q,filterWithIndex:K,alt:U,zero:t.zero,unfold:t.unfold,reduce:P,foldMap:A,reduceRight:L,traverse:Y,sequence:t.sequence,reduceWithIndex:D,foldMapWithIndex:N,reduceRightWithIndex:j,traverseWithIndex:B,extend:G,wither:V,wilt:z}},84612:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.reduceRight=t.foldMap=t.reduce=t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.of=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.modifyAt=t.updateAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.fromArray=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromReadonlyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=t.empty=void 0,t.groupSort=t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=void 0,t.readonlyNonEmptyArray=t.fold=t.prependToAll=t.insertAt=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=void 0;var c=e(93145),a=e(18222),f=e(8190),l=e(14632),p=e(8762),d=i(e(5309)),s=e(83235),h=i(e(98744));function m(n){return function(t){return t.concat(n)}}function v(n,t){return t?n.concat(t):function(t){return t.concat(n)}}function g(n){return function(e){var r=e.length;if(0===r)return t.empty;for(var u=[],i=e[0],o=[i],c=1;c<r;c++){var a=e[c];n.equals(a,i)?o.push(a):(u.push(o),o=[i=a])}return u.push(o),u}}t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty,t.isOutOfBound=function(n,t){return n<0||n>=t.length},t.prependW=function(n){return function(t){return o([n],t,!0)}},t.prepend=t.prependW,t.appendW=function(n){return function(t){return o(o([],t,!0),[n],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(n,e,r){if((0,t.isNonEmpty)(r)){var u=d.fromReadonlyNonEmptyArray(r);return u.splice(n,0,e),u}return[e]},t.unsafeUpdateAt=function(n,t,e){if(e[n]===t)return e;var r=d.fromReadonlyNonEmptyArray(e);return r[n]=t,r},t.uniq=function(n){return function(e){if(1===e.length)return e;for(var r=[(0,t.head)(e)],u=(0,t.tail)(e),i=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<u.length;o++)i(u[o]);return r}},t.sortBy=function(n){if((0,t.isNonEmpty)(n)){var e=(0,s.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return l.identity},t.union=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,l.pipe)(t,v(n)))}}},t.rotate=function(n){return function(e){var r=e.length,u=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(u),e)||0===u)return e;if(!(u<0))return(0,t.rotate)(u-r)(e);var i=(0,t.splitAt)(-u)(e),o=i[0],c=i[1];return(0,l.pipe)(c,v(o))}},t.fromReadonlyArray=function(n){return(0,t.isNonEmpty)(n)?d.some(n):d.none},t.makeBy=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],u=1;u<e;u++)r.push(n(u));return r}},t.replicate=function(n){return(0,t.makeBy)(function(){return n})},t.range=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]},t.unprepend=function(n){return[(0,t.head)(n),(0,t.tail)(n)]},t.unappend=function(n){return[(0,t.init)(n),(0,t.last)(n)]},t.fromArray=function(n){return(0,t.fromReadonlyArray)(n.slice())},t.concatW=m,t.concat=v,t.reverse=function(n){return 1===n.length?n:o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)},t.group=g,t.groupBy=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var u=t[r],i=n(u);d.has.call(e,i)?e[i].push(u):e[i]=[u]}return e}},t.sort=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},t.updateAt=function(n,e){return(0,t.modifyAt)(n,function(){return e})},t.modifyAt=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?d.none:d.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}},t.zipWith=function(n,t,e){for(var r=[e(n[0],t[0])],u=Math.min(n.length,t.length),i=1;i<u;i++)r[i]=e(n[i],t[i]);return r},t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})},t.unzip=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},t.prependAll=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},t.intersperse=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):e}},t.chainWithIndex=function(n){return function(e){for(var r=d.fromReadonlyNonEmptyArray(n(0,(0,t.head)(e))),u=1;u<e.length;u++)r.push.apply(r,n(u,e[u]));return r}},t.chop=function(n){return function(e){for(var r=n(e),u=r[0],i=r[1],o=[u],c=i;(0,t.isNonEmpty)(c);){var a=n(c),f=a[0],l=a[1];o.push(f),c=l}return o}},t.splitAt=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[e,t.empty]:[(0,l.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}},t.chunksOf=function(n){return(0,t.chop)((0,t.splitAt)(n))};var y=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},b=function(n,e){return(0,l.pipe)(n,(0,t.mapWithIndex)(e))},_=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},I=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},S=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},T=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},x=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},M=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},O=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceWithIndex)(e,r))},w=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},C=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},E=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}};t.of=d.singleton,t.altW=function(n){return function(t){return(0,l.pipe)(t,m(n()))}},t.alt=t.altW,t.ap=function(n){return(0,t.flatMap)(function(e){return(0,l.pipe)(n,(0,t.map)(e))})},t.flatMap=(0,l.dual)(2,function(n,e){return(0,l.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.extend=function(n){return function(e){for(var r=(0,t.tail)(e),u=[n(e)];(0,t.isNonEmpty)(r);)u.push(n(r)),r=(0,t.tail)(r);return u}},t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity),t.map=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})},t.mapWithIndex=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],u=1;u<e.length;u++)r.push(n(u,e[u]));return r}},t.reduce=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})},t.foldMap=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},t.reduceRight=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})},t.reduceWithIndex=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},t.foldMapWithIndex=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,u){return n.concat(e,t(u+1,r))},t(0,e[0]))}}},t.reduceRightWithIndex=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},t.traverse=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}},t.sequence=function(n){return(0,t.traverseWithIndex)(n)(l.SK)},t.traverseWithIndex=function(n){return function(e){return function(r){for(var u=n.map(e(0,(0,t.head)(r)),t.of),i=1;i<r.length;i++)u=n.ap(n.map(u,function(n){return function(e){return(0,l.pipe)(n,(0,t.append)(e))}}),e(i,r[i]));return u}}},t.extract=d.head,t.URI="ReadonlyNonEmptyArray",t.getShow=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:v}},t.getEq=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},t.getUnionSemigroup=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}},t.Functor={URI:t.URI,map:y},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:y,mapWithIndex:b},t.Apply={URI:t.URI,map:y,ap:_},t.apFirst=(0,c.apFirst)(t.Apply),t.apSecond=(0,c.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:y,ap:_,of:t.of},t.Chain={URI:t.URI,map:y,ap:_,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:y,ap:_,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:R,foldMap:S,reduceRight:T},t.FoldableWithIndex={URI:t.URI,reduce:R,foldMap:S,reduceRight:T,reduceWithIndex:O,foldMapWithIndex:w,reduceRightWithIndex:C},t.Traversable={URI:t.URI,map:y,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:y,mapWithIndex:b,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:w,reduceRightWithIndex:C,traverseWithIndex:E},t.Alt={URI:t.URI,map:y,alt:M},t.Comonad={URI:t.URI,map:y,extend:I,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var k=(0,p.let)(t.Functor);t.let=k,t.bind=(0,a.bind)(t.Chain),t.apS=(0,c.apS)(t.Apply),t.head=t.extract,t.tail=d.tail,t.last=function(n){return n[n.length-1]},t.init=function(n){return n.slice(0,-1)},t.min=function(n){var t=h.min(n);return function(n){return n.reduce(t.concat)}},t.max=function(n){var t=h.max(n);return function(n){return n.reduce(t.concat)}},t.concatAll=function(n){return function(t){return t.reduce(n.concat)}},t.matchLeft=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}},t.matchRight=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}},t.modifyHead=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}},t.updateHead=function(n){return(0,t.modifyHead)(function(){return n})},t.modifyLast=function(n){return function(e){return(0,l.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}},t.updateLast=function(n){return(0,t.modifyLast)(function(){return n})},t.intercalate=function(n){var e=(0,t.concatAll)(n);return function(n){return(0,l.flow)((0,t.intersperse)(n),e)}},t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=g(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):t.empty}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})},t.filterWithIndex=function(n){return function(e){return(0,t.fromReadonlyArray)(e.filter(function(t,e){return n(e,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,l.pipe)(e,(0,t.prepend)(n))},t.snoc=function(n,t){return(0,l.pipe)(n,v([t]))},t.insertAt=function(n,e){return function(r){return n<0||n>r.length?d.none:d.some((0,t.unsafeInsertAt)(n,e,r))}},t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:y,mapWithIndex:b,ap:_,chain:t.flatMap,extend:I,extract:t.extract,reduce:R,foldMap:S,reduceRight:T,traverse:x,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:w,reduceRightWithIndex:C,traverseWithIndex:E,alt:M}},98744:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.semigroupProduct=t.semigroupSum=t.semigroupString=t.getFunctionSemigroup=t.semigroupAny=t.semigroupAll=t.fold=t.getIntercalateSemigroup=t.getMeetSemigroup=t.getJoinSemigroup=t.getDualSemigroup=t.getStructSemigroup=t.getTupleSemigroup=t.getFirstSemigroup=t.getLastSemigroup=t.getObjectSemigroup=t.semigroupVoid=t.concatAll=t.last=t.first=t.intercalate=t.tuple=t.struct=t.reverse=t.constant=t.max=t.min=void 0;var o=e(14632),c=i(e(5309)),a=i(e(73540)),f=i(e(83235));t.min=function(n){return{concat:f.min(n)}},t.max=function(n){return{concat:f.max(n)}},t.constant=function(n){return{concat:function(){return n}}},t.reverse=a.reverse,t.struct=function(n){return{concat:function(t,e){var r={};for(var u in n)c.has.call(n,u)&&(r[u]=n[u].concat(t[u],e[u]));return r}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},t.intercalate=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},t.first=function(){return{concat:o.identity}},t.last=function(){return{concat:function(n,t){return t}}},t.concatAll=a.concatAll,t.semigroupVoid=(0,t.constant)(void 0),t.getObjectSemigroup=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},t.getLastSemigroup=t.last,t.getFirstSemigroup=t.first,t.getTupleSemigroup=t.tuple,t.getStructSemigroup=t.struct,t.getDualSemigroup=t.reverse,t.getJoinSemigroup=t.max,t.getMeetSemigroup=t.min,t.getIntercalateSemigroup=t.intercalate,t.fold=function(n){var e=(0,t.concatAll)(n);return function(n,t){return void 0===t?e(n):e(n)(t)}},t.semigroupAll={concat:function(n,t){return n&&t}},t.semigroupAny={concat:function(n,t){return n||t}},t.getFunctionSemigroup=o.getSemigroup,t.semigroupString={concat:function(n,t){return n+t}},t.semigroupSum={concat:function(n,t){return n+t}},t.semigroupProduct={concat:function(n,t){return n*t}}},4773:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.right=t.left=t.flap=t.Functor=t.Bifunctor=t.URI=t.bimap=t.mapLeft=t.map=t.separated=void 0;var r=e(14632),u=e(8762);t.separated=function(n,t){return{left:n,right:t}},t.map=function(n){return function(e){return(0,t.separated)((0,t.left)(e),n((0,t.right)(e)))}},t.mapLeft=function(n){return function(e){return(0,t.separated)(n((0,t.left)(e)),(0,t.right)(e))}},t.bimap=function(n,e){return function(r){return(0,t.separated)(n((0,t.left)(r)),e((0,t.right)(r)))}},t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:function(n,e){return(0,r.pipe)(n,(0,t.mapLeft)(e))},bimap:function(n,e,u){return(0,r.pipe)(n,(0,t.bimap)(e,u))}},t.Functor={URI:t.URI,map:function(n,e){return(0,r.pipe)(n,(0,t.map)(e))}},t.flap=(0,u.flap)(t.Functor),t.left=function(n){return n.left},t.right=function(n){return n.right}},69706:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var o=i(e(5309));t.wiltDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.separate)}}},t.witherDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.compact)}}},t.filterE=function(n){return function(t){var e=n.wither(t);return function(n){return function(r){return e(r,function(e){return t.map(n(e),function(n){return n?o.some(e):o.none})})}}}}},3899:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(n,t){return function(e){return e?t.of(void 0):n.zero()}}},14632:function(n,t){var e=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};function r(n){return n}function u(n){return function(){return n}}function i(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return c(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return a(c(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}}function o(n){throw Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.dual=t.getEndomorphismMonoid=t.not=t.SK=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.unsafeCoerce=t.identity=t.apply=t.getRing=t.getSemiring=t.getMonoid=t.getSemigroup=t.getBooleanAlgebra=void 0,t.getBooleanAlgebra=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},t.getSemigroup=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},t.getMonoid=function(n){var e=(0,t.getSemigroup)(n);return function(){return{concat:e().concat,empty:function(){return n.empty}}}},t.getSemiring=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},t.getRing=function(n){var e=(0,t.getSemiring)(n);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},t.apply=function(n){return function(t){return t(n)}},t.identity=r,t.unsafeCoerce=r,t.constant=u,t.constTrue=u(!0),t.constFalse=u(!1),t.constNull=u(null),t.constUndefined=u(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}},t.flow=i,t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=o,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return c(o(i(u(r(e(t(n)))))));case 9:return a(c(o(i(u(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=o,t.SK=function(n,t){return t},t.not=function(n){return function(t){return!n(t)}},t.getEndomorphismMonoid=function(){return{concat:function(n,t){return i(n,t)},empty:r}},t.dual=function(n,t){var r="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return r(arguments)?t.apply(this,n):function(r){return t.apply(void 0,e([r],n,!1))}}}},5309:function(n,t,e){var r=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flatMapReader=t.flatMapTask=t.flatMapIO=t.flatMapEither=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.fromReadonlyNonEmptyArray=t.has=t.emptyRecord=t.emptyReadonlyArray=t.tail=t.head=t.isNonEmpty=t.singleton=t.right=t.left=t.isRight=t.isLeft=t.some=t.none=t.isSome=t.isNone=void 0;var u=e(14632);t.isNone=function(n){return"None"===n._tag},t.isSome=function(n){return"Some"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.isLeft=function(n){return"Left"===n._tag},t.isRight=function(n){return"Right"===n._tag},t.left=function(n){return{_tag:"Left",left:n}},t.right=function(n){return{_tag:"Right",right:n}},t.singleton=function(n){return[n]},t.isNonEmpty=function(n){return n.length>0},t.head=function(n){return n[0]},t.tail=function(n){return n.slice(1)},t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty,t.fromReadonlyNonEmptyArray=function(n){return r([n[0]],n.slice(1),!0)},t.liftNullable=function(n){return function(e,r){return function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];var o=e.apply(void 0,u);return n.fromEither(null==o?(0,t.left)(r.apply(void 0,u)):(0,t.right)(o))}}},t.liftOption=function(n){return function(e,r){return function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];var o=e.apply(void 0,u);return n.fromEither((0,t.isNone)(o)?(0,t.left)(r.apply(void 0,u)):(0,t.right)(o.value))}}},t.flatMapNullable=function(n,e){return(0,u.dual)(3,function(r,u,i){return e.flatMap(r,(0,t.liftNullable)(n)(u,i))})},t.flatMapOption=function(n,e){return(0,u.dual)(3,function(r,u,i){return e.flatMap(r,(0,t.liftOption)(n)(u,i))})},t.flatMapEither=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},t.flatMapIO=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},t.flatMapTask=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},t.flatMapReader=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},40457:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Field=t.MonoidProduct=t.MonoidSum=t.SemigroupProduct=t.SemigroupSum=t.MagmaSub=t.Show=t.Bounded=t.Ord=t.Eq=t.isNumber=void 0,t.isNumber=function(n){return"number"==typeof n},t.Eq={equals:function(n,t){return n===t}},t.Ord={equals:t.Eq.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(n){return JSON.stringify(n)}},t.MagmaSub={concat:function(n,t){return n-t}},t.SemigroupSum={concat:function(n,t){return n+t}},t.SemigroupProduct={concat:function(n,t){return n*t}},t.MonoidSum={concat:t.SemigroupSum.concat,empty:0},t.MonoidProduct={concat:t.SemigroupProduct.concat,empty:1},t.Field={add:t.SemigroupSum.concat,zero:0,mul:t.SemigroupProduct.concat,one:1,sub:t.MagmaSub.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},67794:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=t.pipeable=t.compose=t.promap=t.partitionMapWithIndex=t.partitionWithIndex=t.filterMapWithIndex=t.filterWithIndex=t.partitionMap=t.partition=t.filterMap=t.filter=t.alt=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=t.reduceRight=t.foldMap=t.reduce=t.extend=t.mapLeft=t.bimap=t.chain=t.ap=t.mapWithIndex=t.contramap=t.map=void 0;var r=e(93145),u=e(18222),i=e(14632);function o(n){return function(t){return function(e){return n.map(e,t)}}}function c(n){return function(t){return function(e){return n.contramap(e,t)}}}function a(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function h(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function m(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function b(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function _(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function R(n){return function(t){return function(e){return n.filterMap(e,t)}}}function S(n){return function(t){return function(e){return n.partition(e,t)}}}function T(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function C(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function E(n){return function(t){return function(e){return n.compose(e,t)}}}t.map=o,t.contramap=c,t.mapWithIndex=a,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=h,t.foldMap=m,t.reduceRight=v,t.reduceWithIndex=g,t.foldMapWithIndex=y,t.reduceRightWithIndex=b,t.alt=_,t.filter=I,t.filterMap=R,t.partition=S,t.partitionMap=T,t.filterWithIndex=x,t.filterMapWithIndex=M,t.partitionWithIndex=O,t.partitionMapWithIndex=w,t.promap=C,t.compose=E,t.pipeable=function(n){var t={};return"function"==typeof n.map&&(t.map=o(n)),"function"==typeof n.contramap&&(t.contramap=c(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=a(n)),"function"==typeof n.ap&&(t.ap=f(n),t.apFirst=(0,r.apFirst)(n),t.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(t.chain=l(n),t.chainFirst=(0,u.chainFirst)(n),t.flatten=t.chain(i.identity)),"function"==typeof n.bimap&&(t.bimap=p(n),t.mapLeft=d(n)),"function"==typeof n.extend&&(t.extend=s(n),t.duplicate=t.extend(i.identity)),"function"==typeof n.reduce&&(t.reduce=h(n),t.foldMap=m(n),t.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=g(n),t.foldMapWithIndex=y(n),t.reduceRightWithIndex=b(n)),"function"==typeof n.alt&&(t.alt=_(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=I(n),t.filterMap=R(n),t.partition=S(n),t.partitionMap=T(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=x(n),t.filterMapWithIndex=M(n),t.partitionWithIndex=O(n),t.partitionMapWithIndex=w(n)),"function"==typeof n.promap&&(t.promap=C(n)),"function"==typeof n.compose&&(t.compose=E(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t},t.pipe=i.pipe},23284:function(n,t,e){e.r(t),e.d(t,{BigIntFromString:function(){return tv},BooleanFromNumber:function(){return ty},BooleanFromString:function(){return tn},DateFromISOString:function(){return n1},DateFromNumber:function(){return n7},DateFromUnixTime:function(){return to},IntFromString:function(){return ta},Json:function(){return tp},JsonArray:function(){return tf},JsonFromString:function(){return td},JsonRecord:function(){return tl},NonEmptyString:function(){return o},NumberFromString:function(){return tc},UUID:function(){return n4},clone:function(){return n5},date:function(){return g},either:function(){return tm},fromNewtype:function(){return nX},fromNullable:function(){return n6},fromRefinement:function(){return v},getLenses:function(){return tu},mapFromEntries:function(){return tI},mapOutput:function(){return u.mapOutput},nonEmptyArray:function(){return d},option:function(){return nQ},optionFromNullable:function(){return n0},readonlyMapFromEntries:function(){return tR},readonlyNonEmptyArray:function(){return n2},readonlySetFromArray:function(){return m},regexp:function(){return ti},setFromArray:function(){return h},withEncode:function(){return tg},withFallback:function(){return n3},withMessage:function(){return tt},withValidate:function(){return n8}});var r={};e.r(r),e.d(r,{Category:function(){return nO},Invariant:function(){return nx},Semigroupoid:function(){return nM},URI:function(){return nT},asOptional:function(){return J},asTraversal:function(){return Z},atKey:function(){return nm},component:function(){return np},compose:function(){return Q},composeIso:function(){return nt},composeLens:function(){return nn},composeOptional:function(){return nr},composePrism:function(){return ne},composeTraversal:function(){return nu},filter:function(){return na},findFirst:function(){return n_},findFirstNonEmpty:function(){return nI},fromNullable:function(){return nc},id:function(){return X},imap:function(){return nR},index:function(){return nd},indexNonEmpty:function(){return ns},key:function(){return nh},left:function(){return ny},lens:function(){return $},modify:function(){return ni},modifyF:function(){return no},prop:function(){return nf},props:function(){return nl},right:function(){return ng},some:function(){return nv},traverse:function(){return nb}});var u=e(47361),i=e(87830),o=i.brand(i.string,function(n){return n.length>0},"NonEmptyString"),c=e(43586),a=e(1358),f=e(18896),l=e(81878),p=e(20492);function d(n,t){void 0===t&&(t="NonEmptyArray<"+n.name+">");var e=i.array(n);return new i.Type(t,function(n){return e.is(n)&&(0,a.isNonEmpty)(n)},function(n,t){return(0,f.pipe)(e.validate(n,t),(0,l.chain)(function(e){var r=(0,c.fromArray)(e);return(0,p.isNone)(r)?i.failure(n,t):i.success(r.value)}))},(0,c.map)(n.encode))}var s=e(1214);function h(n,t,e){void 0===e&&(e="Set<"+n.name+">");var r=i.array(n),u=(0,s.toArray)(t),o=(0,s.fromArray)(t);return new i.Type(e,function(t){return t instanceof Set&&(0,s.every)(n.is)(t)},function(n,t){return(0,f.pipe)(r.validate(n,t),(0,l.chain)(function(e){var r=o(e);return r.size!==e.length?i.failure(n,t):i.success(r)}))},function(n){return r.encode(u(n))})}function m(n,t,e){return void 0===e&&(e="ReadonlySet<"+n.name+">"),h(n,t,e)}function v(n,t){return new i.Type(n,t,function(n,e){return t(n)?i.success(n):i.failure(n,e)},i.identity)}var g=v("Date",function(n){return n instanceof Date}),y=e(42275),b=e(90817),_=e(96576),I=e(31583),R=e(97054),S=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},T=function(n){return M(n.get,(0,y.flow)(n.reverseGet,y.constant))},x=function(n){return A((0,y.flow)(n.get,p.some),(0,y.flow)(n.reverseGet,y.constant))},M=function(n,t){return{get:n,set:t}},O=function(n){return A((0,y.flow)(n.get,p.some),n.set)},w=function(n){return function(t){return M(function(e){return n.get(t.get(e))},function(e){return function(r){return t.set(n.set(e)(t.get(r)))(r)}})}},C=function(n){return function(t){return N(k(n))(O(t))}},E=function(n,t){return{getOption:n,reverseGet:t}},k=function(n){return A(n.getOption,function(t){return F(t)(n)})},W=function(n){return q(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(u){return t.map(e(u),function(t){return F(t)(n)(r)})}))}}})},F=function(n){var t;return t=function(){return n},function(n){return function(e){var r;return(0,f.pipe)((r=e,(0,f.pipe)(n.getOption(r),p.map(function(e){var u=t(e);return u===e?r:n.reverseGet(u)}))),p.getOrElse(function(){return e}))}}},U=function(n){return E(p.fromPredicate(n),y.identity)},P=function(){return E(y.identity,p.some)},A=function(n,t){return{getOption:n,set:t}},L=function(n){return function(t){return function(e){return(0,f.pipe)(t.getOption(e),p.map(function(r){var u=n(r);return u===r?e:t.set(u)(e)}))}}},D=function(n){return function(t){var e=L(n)(t);return function(n){return(0,f.pipe)(e(n),p.getOrElse(function(){return n}))}}},N=function(n){return function(t){return A((0,y.flow)(t.getOption,p.chain(n.getOption)),function(e){return D(n.set(e))(t)})}},j=function(n,t,e){if(e[n]===t)return e;var r=S([e[0]],e.slice(1),!0);return r[n]=t,r},q=function(n){return{modifyF:n}};function K(n){return function(t){return q(function(e){return function(r){return t.modifyF(e)(n.modifyF(e)(r))}})}}var G={URI:"Identity",map:function(n,t){return t(n)},of:y.identity,ap:function(n,t){return n(t)}},Y=function(n){return{index:n}},B=function(n){return{at:n}},V=function(n,t){return{get:n,reverseGet:t}},z=function(n){return E((0,y.flow)(n.get,p.some),n.reverseGet)},H=function(n){return q(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.reverseGet(t)})}}})},$=M,X=function(){return M(y.identity,y.constant)},J=O,Z=function(n){return q(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.set(t)(r)})}}})},Q=w,nn=Q,nt=(0,y.flow)(T,Q),ne=C,nr=function(n){return(0,y.flow)(J,N(n))},nu=function(n){return(0,y.flow)(Z,K(n))},ni=function(n){return function(t){return function(e){var r=t.get(e),u=n(r);return r===u?e:t.set(u)(e)}}};function no(n){return function(t){return function(e){return function(r){return(0,f.pipe)(e.get(r),t,function(t){return n.map(t,function(n){return e.set(n)(r)})})}}}}var nc=function(n){return ne(E(p.fromNullable,y.identity))(n)};function na(n){return ne(U(n))}var nf=function(n){return function(t){return M(function(e){return t.get(e)[n]},function(e){return function(r){var u,i=t.get(r);return e===i[n]?r:t.set(Object.assign({},i,((u={})[n]=e,u)))(r)}})}},nl=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(t){return M(function(e){for(var r=t.get(e),u={},i=0;i<n.length;i++){var o=n[i];u[o]=r[o]}return u},function(e){return function(r){for(var u=t.get(r),i=0;i<n.length;i++){var o=n[i];if(e[o]!==u[o])return t.set(Object.assign({},u,e))(r)}return r}})}},np=function(n){return function(t){return M(function(e){return t.get(e)[n]},function(e){return function(r){var u=t.get(r);if(e===u[n])return r;var i=u.slice();return i[n]=e,t.set(i)(r)}})}},nd=function(n){return(0,y.flow)(J,function(t){return(0,f.pipe)(t,N(Y(function(n){return A(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return I.unsafeUpdateAt(n,t,e)}))}})}).index(n)))})},ns=function(n){return(0,y.flow)(J,function(t){return(0,f.pipe)(t,N(Y(function(n){return A(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return j(n,t,e)}))}})}).index(n)))})},nh=function(n){return(0,y.flow)(J,function(t){return(0,f.pipe)(t,N(Y(function(n){return A(function(t){return R.lookup(n,t)},function(t){return function(e){return e[n]===t||p.isNone(R.lookup(n,e))?e:R.insertAt(n,t)(e)}})}).index(n)))})},nm=function(n){return function(t){return(0,f.pipe)(t,w(B(function(n){return M(function(t){return R.lookup(n,t)},p.fold(function(){return R.deleteAt(n)},function(t){return R.insertAt(n,t)}))}).at(n)))}},nv=ne(P()),ng=ne(E(p.fromEither,l.right)),ny=ne(E(function(n){return l.isLeft(n)?p.some(n.left):p.none},l.left));function nb(n){return(0,y.flow)(Z,K(q(function(t){var e="Identity"===t.URI?n.map:n.traverse(t);return function(n){return function(t){return e(t,n)}}})))}function n_(n){return nr(A(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return I.unsafeUpdateAt(n,t,e)}))}}))}function nI(n){return nr(A(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return j(n,t,e)}))}}))}var nR=function(n,t){return function(e){return nS(e,n,t)}},nS=function(n,t,e){return $((0,y.flow)(n.get,t),(0,y.flow)(e,n.set))},nT="monocle-ts/Lens",nx={URI:nT,imap:nS},nM={URI:nT,compose:function(n,t){return Q(n)(t)}},nO={URI:nT,compose:nM.compose,id:X},nw=function(n){return q(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(u){return t.map(e(u),function(t){return n.set(t)(r)})}))}}})},nC=function(n){return function(t){return E((0,y.flow)(t.getOption,p.chain(n.getOption)),(0,y.flow)(n.reverseGet,t.reverseGet))}},nE=function(n){return function(t){return t.modifyF(G)(n)}},nk=function(n){return new nD(n.get,n.reverseGet)},nW=function(n){return new nN(n.get,n.set)},nF=function(n){return new nj(n.getOption,n.reverseGet)},nU=function(n){return new nK(n.getOption,n.set)},nP=function(n){return new nG(n.modifyF)},nA=function(n){return new nB(function(t){return nU(n.index(t))})},nL=function(n,t,e){var r;return e===n[t]?n:Object.assign({},n,((r={})[t]=e,r))},nD=function(){function n(n,t){this.get=n,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return n.prototype.reverse=function(){return nk(V(this.reverseGet,this.get))},n.prototype.modify=function(n){var t;return t=this,function(e){return t.reverseGet(n(t.get(e)))}},n.prototype.asLens=function(){return nW(T(this))},n.prototype.asPrism=function(){return nF(z(this))},n.prototype.asOptional=function(){return nU(x(this))},n.prototype.asTraversal=function(){return nP(H(this))},n.prototype.asFold=function(){var n=this;return new nz(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.asGetter=function(){var n=this;return new nV(function(t){return n.get(t)})},n.prototype.asSetter=function(){var n=this;return new nH(function(t){return n.modify(t)})},n.prototype.compose=function(n){var t;return nk((t=this,V((0,y.flow)(t.get,n.get),(0,y.flow)(n.reverseGet,t.reverseGet))))},n.prototype.composeIso=function(n){return this.compose(n)},n.prototype.composeLens=function(n){return nW((0,f.pipe)(this,T,Q(n)))},n.prototype.composePrism=function(n){return nF((0,f.pipe)(this,z,nC(n)))},n.prototype.composeOptional=function(n){return nU((0,f.pipe)(this,x,N(n)))},n.prototype.composeTraversal=function(n){return nP((0,f.pipe)(this,H,K(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n}(),nN=function(){function n(n,t){this.get=n,this.set=t,this._tag="Lens"}return n.fromPath=function(){var t=n.fromProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromProp=function(){return function(n){return nW((0,f.pipe)(X(),nf(n)))}},n.fromProps=function(){return function(n){return nW((0,f.pipe)(X(),nl.apply(r,n)))}},n.fromNullableProp=function(){return function(t,e){return new n(function(n){var r=(0,p.fromNullable)(n[t]);return(0,p.isNone)(r)?e:r.value},function(n){return function(e){return nL(e,t,n)}})}},n.prototype.modify=function(n){return ni(n)(this)},n.prototype.asOptional=function(){return nU(J(this))},n.prototype.asTraversal=function(){return nP(Z(this))},n.prototype.asSetter=function(){var n=this;return new nH(function(t){return n.modify(t)})},n.prototype.asGetter=function(){var n=this;return new nV(function(t){return n.get(t)})},n.prototype.asFold=function(){var n=this;return new nz(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(n){return nW(Q(n)(this))},n.prototype.composeLens=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeOptional=function(n){return nU((0,f.pipe)(this,J,N(n)))},n.prototype.composeTraversal=function(n){return nP((0,f.pipe)(this,Z,K(n)))},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nW((0,f.pipe)(this,Q((0,f.pipe)(n,T))))},n.prototype.composePrism=function(n){return nU(ne(n)(this))},n}(),nj=function(){function n(n,t){this.getOption=n,this.reverseGet=t,this._tag="Prism"}return n.fromPredicate=function(n){return nF(U(n))},n.some=function(){return nq},n.prototype.modify=function(n){var t=this;return function(e){var r=t.modifyOption(n)(e);return(0,p.isNone)(r)?e:r.value}},n.prototype.modifyOption=function(n){var t=this;return function(e){return p.option.map(t.getOption(e),function(r){var u=n(r);return u===r?e:t.reverseGet(u)})}},n.prototype.set=function(n){return this.modify(function(){return n})},n.prototype.asOptional=function(){return nU(k(this))},n.prototype.asTraversal=function(){return nP(W(this))},n.prototype.asSetter=function(){var n=this;return new nH(function(t){return n.modify(t)})},n.prototype.asFold=function(){var n=this;return new nz(function(t){return function(e){return function(r){var u=n.getOption(r);return(0,p.isNone)(u)?t.empty:e(u.value)}}})},n.prototype.compose=function(n){return nF(nC(n)(this))},n.prototype.composePrism=function(n){return this.compose(n)},n.prototype.composeOptional=function(n){return nU((0,f.pipe)(this,k,N(n)))},n.prototype.composeTraversal=function(n){return nP((0,f.pipe)(this,W,K(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nF((0,f.pipe)(this,nC((0,f.pipe)(n,z))))},n.prototype.composeLens=function(n){return nU(N(O(n))(k(this)))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nq=new nj(y.identity,p.some),nK=function(){function n(n,t){this.getOption=n,this.set=t,this._tag="Optional"}return n.fromPath=function(){var t=n.fromNullableProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromNullableProp=function(){return function(t){return new n(function(n){return(0,p.fromNullable)(n[t])},function(n){return function(e){return null==e[t]?e:nL(e,t,n)}})}},n.fromOptionProp=function(){var n=nN.fromProp();return function(t){return n(t).composePrism(nq)}},n.prototype.modify=function(n){return D(n)(this)},n.prototype.modifyOption=function(n){return L(n)(this)},n.prototype.asTraversal=function(){return nP(nw(this))},n.prototype.asFold=function(){var n=this;return new nz(function(t){return function(e){return function(r){var u=n.getOption(r);return(0,p.isNone)(u)?t.empty:e(u.value)}}})},n.prototype.asSetter=function(){var n=this;return new nH(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nU(N(n)(this))},n.prototype.composeOptional=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return nP((0,f.pipe)(this,nw,K(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeLens=function(n){return nU((0,f.pipe)(this,N((0,f.pipe)(n,J))))},n.prototype.composePrism=function(n){return nU((0,f.pipe)(this,N((0,f.pipe)(n,k))))},n.prototype.composeIso=function(n){return nU((0,f.pipe)(this,N((0,f.pipe)(n,x))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nG=function(){function n(n){this.modifyF=n,this._tag="Traversal"}return n.prototype.modify=function(n){return nE(n)(this)},n.prototype.set=function(n){return nE(function(){return n})(this)},n.prototype.filter=function(n){return nP(K(W(U(n)))(this))},n.prototype.asFold=function(){var n=this;return new nz(function(t){return function(e){return n.modifyF((0,b.getApplicative)(t))(function(n){return(0,b.make)(e(n))})}})},n.prototype.asSetter=function(){var n=this;return new nH(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nP(K(n)(this))},n.prototype.composeTraversal=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeOptional=function(n){return this.compose(n.asTraversal())},n.prototype.composeLens=function(n){return nP((0,f.pipe)(this,K((0,f.pipe)(n,Z))))},n.prototype.composePrism=function(n){return nP((0,f.pipe)(this,K((0,f.pipe)(n,W))))},n.prototype.composeIso=function(n){return nP((0,f.pipe)(this,K((0,f.pipe)(n,H))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nY=function(){function n(n){this.at=n,this._tag="At"}return n.prototype.fromIso=function(n){var t,e;return e=this,t=B(function(t){return(0,f.pipe)(n,T,w(e.at(t)))}),new nY(function(n){return nW(t.at(n))})},n}(),nB=function(){function n(n){this.index=n,this._tag="Index"}return n.fromAt=function(n){return nA(Y(function(t){return C(P())(n.at(t))}))},n.prototype.fromIso=function(n){var t;return nA((t=this,Y(function(e){return(0,f.pipe)(n,x,N(t.index(e)))})))},n}(),nV=function(){function n(n){this.get=n,this._tag="Getter"}return n.prototype.asFold=function(){var n=this;return new nz(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(t){var e=this;return new n(function(n){return t.get(e.get(n))})},n.prototype.composeGetter=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeLens=function(n){return this.compose(n.asGetter())},n.prototype.composeIso=function(n){return this.compose(n.asGetter())},n.prototype.composeTraversal=function(n){return this.asFold().compose(n.asFold())},n.prototype.composeOptional=function(n){return this.asFold().compose(n.asFold())},n.prototype.composePrism=function(n){return this.asFold().compose(n.asFold())},n}(),nz=function(){function n(n){this.foldMap=n,this._tag="Fold",this.getAll=n(a.getMonoid())(a.of),this.exist=n(_.monoidAny),this.all=n(_.monoidAll),this.foldMapFirst=n((0,p.getFirstMonoid)())}return n.prototype.compose=function(t){var e=this;return new n(function(n){return function(r){return e.foldMap(n)(t.foldMap(n)(r))}})},n.prototype.composeFold=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.compose(n.asFold())},n.prototype.composeTraversal=function(n){return this.compose(n.asFold())},n.prototype.composeOptional=function(n){return this.compose(n.asFold())},n.prototype.composeLens=function(n){return this.compose(n.asFold())},n.prototype.composePrism=function(n){return this.compose(n.asFold())},n.prototype.composeIso=function(n){return this.compose(n.asFold())},n.prototype.find=function(n){return this.foldMapFirst((0,p.fromPredicate)(n))},n.prototype.headOption=function(n){return this.find(function(){return!0})(n)},n}(),nH=function(){function n(n){this.modify=n,this._tag="Setter"}return n.prototype.set=function(n){return this.modify((0,y.constant)(n))},n.prototype.compose=function(t){var e=this;return new n(function(n){return e.modify(t.modify(n))})},n.prototype.composeSetter=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return this.compose(n.asSetter())},n.prototype.composeOptional=function(n){return this.compose(n.asSetter())},n.prototype.composeLens=function(n){return this.compose(n.asSetter())},n.prototype.composePrism=function(n){return this.compose(n.asSetter())},n.prototype.composeIso=function(n){return this.compose(n.asSetter())},n}(),n$=new nD(y.unsafeCoerce,y.unsafeCoerce);function nX(n,t){return void 0===t&&(t="fromNewtype("+n.name+")"),new i.Type(t,function(t){return n.is(t)},function(t,e){return(0,f.pipe)(n.validate(t,e),(0,l.map)(n$.wrap))},function(t){return n.encode(n$.unwrap(t))})}var nJ=i.strict({_tag:i.literal("None")},"None"),nZ=i.literal("Some");function nQ(n,t){return void 0===t&&(t="Option<"+n.name+">"),i.union([nJ,i.strict({_tag:nZ,value:n},"Some<"+n.name+">")],t)}function n0(n,t){return void 0===t&&(t="Option<"+n.name+">"),new i.Type(t,nQ(n).is,function(t,e){return null==t?i.success(p.none):(0,f.pipe)(n.validate(t,e),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(n.encode)))})}var n1=new i.Type("DateFromISOString",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(i.string.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?i.failure(n,t):i.success(r)}))},function(n){return n.toISOString()});function n2(n,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+n.name+">"),d(n,t)}function n5(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}var n7=new i.Type("DateFromNumber",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(i.number.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?i.failure(n,t):i.success(r)}))},function(n){return n.getTime()});function n8(n,t,e){void 0===e&&(e=n.name);var r=n5(n);return r.validate=t,r.decode=function(n){return t(n,i.getDefaultContext(r))},r.name=e,r}function n3(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),n8(n,function(e,r){return(0,l.orElse)(function(){return i.success(t)})(n.validate(e,r))},e)}var n9=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,n4=i.brand(i.string,function(n){return n9.test(n)},"UUID");function n6(n,t,e){return void 0===e&&(e="fromNullable("+n.name+")"),n8(n,function(e,r){return null==e?i.success(t):n.validate(e,r)},e)}var tn=new i.Type("BooleanFromString",i.boolean.is,function(n,t){return(0,f.pipe)(i.string.validate(n,t),(0,l.chain)(function(e){return"true"===e?i.success(!0):"false"===e?i.success(!1):i.failure(n,t)}))},String);function tt(n,t){return n8(n,function(e,r){return(0,l.mapLeft)(function(){return[{value:e,context:r,message:t(e,r),actual:e}]})(n.validate(e,r))})}function te(n){switch(n._tag){case"InterfaceType":return n.props;case"ExactType":return te(n.type)}}var tr=nN.fromProp();function tu(n){var t={};for(var e in te(n))t[e]=tr(e);return t}var ti=v("RegExp",function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}),to=new i.Type("DateFromUnixTime",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(i.Int.validate(n,t),(0,l.chain)(function(e){var r=new Date(1e3*e);return isNaN(r.getTime())?i.failure(n,t):i.success(r)}))},function(n){return Math.floor(n.getTime()/1e3)}),tc=new i.Type("NumberFromString",i.number.is,function(n,t){return(0,f.pipe)(i.string.validate(n,t),(0,l.chain)(function(e){var r=+e;return isNaN(r)||""===e.trim()?i.failure(n,t):i.success(r)}))},String),ta=new i.Type("IntFromString",i.Int.is,function(n,t){return(0,f.pipe)(tc.validate(n,t),(0,l.chain)(function(e){return i.Int.is(e)?i.success(e):i.failure(n,t)}))},tc.encode),tf=i.recursion("JsonArray",function(){return i.readonlyArray(tp)}),tl=i.recursion("JsonRecord",function(){return i.record(i.string,tp)}),tp=i.union([i.boolean,i.number,i.string,i.null,tf,tl],"Json"),td=new i.Type("JsonFromString",tp.is,function(n,t){try{return i.success(JSON.parse(n))}catch(e){return i.failure(n,t)}},function(n){return JSON.stringify(n)}),ts=i.literal("Left"),th=i.literal("Right");function tm(n,t,e){return void 0===e&&(e="Either<"+n.name+", "+t.name+">"),i.union([i.strict({_tag:ts,left:n},"Left<"+n.name+">"),i.strict({_tag:th,right:t},"Right<"+n.name+">")],e)}var tv=new i.Type("BigIntFromString",function(n){return"bigint"==typeof n},function(n,t){return(0,f.pipe)(i.string.validate(n,t),(0,l.chain)(function(e){if(!o.is(e.trim()))return i.failure(n,t);try{return i.success(BigInt(e))}catch(e){return i.failure(n,t)}}))},String);function tg(n,t,e){return void 0===e&&(e=n.name),new i.Type(e,n.is,n.validate,t)}var ty=new i.Type("BooleanFromNumber",i.boolean.is,function(n,t){return(0,f.pipe)(i.number.validate(n,t),(0,l.map)(function(n){return 0!==n}))},Number),tb=e(55116),t_=e(3291);function tI(n,t,e,r){void 0===r&&(r="Map<"+n.name+", "+e.name+">");var u,o,c=i.array(i.tuple([n,e])),f=(0,tb.toArray)(t),p=(0,tb.fromFoldable)(t,(0,t_.getLastSemigroup)(),a.Foldable),d=(u=n.is,o=e.is,function(n){for(var t,e=n.entries();!(t=e.next()).done;)if(!1===u(t.value[0])||!1===o(t.value[1]))return!1;return!0});return new i.Type(r,function(n){return n instanceof Map&&d(n)},function(n,t){return(0,y.pipe)(c.validate(n,t),(0,l.chain)(function(e){var r=p(e);return r.size!==e.length?i.failure(n,t):i.success(r)}))},function(n){return c.encode(f(n))})}function tR(n,t,e,r){return void 0===r&&(r="ReadonlyMap<"+n.name+", "+e.name+">"),tI(n,t,e,r)}},47361:function(n,t,e){e.r(t),e.d(t,{mapOutput:function(){return u}});var r=e(87830);function u(n,t,e){return void 0===e&&(e=n.name),new r.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},11621:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var o=i(e(87830)),c=e(59054),a=e(67794),f=e(87412);t.IntFromString=new o.Type("IntFromString",o.Int.is,function(n,t){return a.pipe(c.NumberFromString.validate(n,t),f.chain(function(e){return o.Int.is(e)?o.success(e):o.failure(n,t)}))},c.NumberFromString.encode)},59054:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var o=i(e(87830)),c=e(67794),a=e(87412);t.NumberFromString=new o.Type("NumberFromString",o.number.is,function(n,t){return c.pipe(o.string.validate(n,t),a.chain(function(e){var r=+e;return isNaN(r)||""===e.trim()?o.failure(n,t):o.success(r)}))},String)},62886:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}},2932:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var o=i(e(87830));t.mapOutput=function(n,t,e){return void 0===e&&(e=n.name),new o.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},69624:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var o=i(e(87830)),c=e(40308),a=e(87412);t.withFallback=function(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),c.withValidate(n,function(e,r){return a.orElse(function(){return o.success(t)})(n.validate(e,r))},e)}},40308:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var o=i(e(87830)),c=e(62886);t.withValidate=function(n,t,e){void 0===e&&(e=n.name);var r=c.clone(n);return r.validate=t,r.decode=function(n){return t(n,o.getDefaultContext(r))},r.name=e,r}},87830:function(n,t,e){e.r(t),e.d(t,{AnyArrayType:function(){return J},AnyDictionaryType:function(){return Q},AnyType:function(){return nP},Array:function(){return Z},ArrayType:function(){return nl},BigIntType:function(){return z},BooleanType:function(){return $},Dictionary:function(){return nG},DictionaryType:function(){return nv},ExactType:function(){return nC},Function:function(){return nW},FunctionType:function(){return nk},Int:function(){return nc},Integer:function(){return nD},InterfaceType:function(){return nd},IntersectionType:function(){return n_},KeyofType:function(){return nr},LiteralType:function(){return nt},NeverType:function(){return nF},NullType:function(){return P},NumberType:function(){return B},ObjectType:function(){return nY},PartialType:function(){return nh},ReadonlyArrayType:function(){return nM},ReadonlyType:function(){return nT},RecursiveType:function(){return na},RefinementType:function(){return ni},StrictType:function(){return nz},StringType:function(){return G},TaggedUnionType:function(){return nN},TupleType:function(){return nR},Type:function(){return p},UndefinedType:function(){return L},UnionType:function(){return ny},UnknownArray:function(){return Z},UnknownRecord:function(){return nn},UnknownType:function(){return q},VoidType:function(){return N},alias:function(){return n$},any:function(){return nA},appendContext:function(){return m},array:function(){return np},bigint:function(){return H},boolean:function(){return X},brand:function(){return no},clean:function(){return nH},dictionary:function(){return nV},emptyTags:function(){return M},exact:function(){return nE},failure:function(){return f},failures:function(){return a},getContextEntry:function(){return h},getDefaultContext:function(){return nK},getDomainKeys:function(){return R},getFunctionName:function(){return s},getIndex:function(){return U},getTags:function(){return F},getValidationError:function(){return nq},identity:function(){return d},interface:function(){return ns},intersection:function(){return nI},keyof:function(){return nu},literal:function(){return ne},mergeAll:function(){return T},never:function(){return nU},null:function(){return A},nullType:function(){return A},number:function(){return V},object:function(){return nB},partial:function(){return nm},readonly:function(){return nx},readonlyArray:function(){return nO},record:function(){return ng},recursion:function(){return nf},refinement:function(){return nL},strict:function(){return nw},string:function(){return Y},success:function(){return l},taggedUnion:function(){return nj},tuple:function(){return nS},type:function(){return ns},undefined:function(){return D},union:function(){return nb},unknown:function(){return K},void:function(){return j},voidType:function(){return j}});var r,u=e(81878),i=(r=function(n,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),o=function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},c=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},a=u.left,f=function(n,t,e){return a([{value:n,context:t,message:e}])},l=u.right,p=function(){function n(n,t,e,r){this.name=n,this.is=t,this.validate=e,this.encode=r,this.decode=this.decode.bind(this)}return n.prototype.pipe=function(t,e){var r=this;return void 0===e&&(e="pipe(".concat(this.name,", ").concat(t.name,")")),new n(e,t.is,function(n,e){var i=r.validate(n,e);return(0,u.isLeft)(i)?i:t.validate(i.right,e)},this.encode===d&&t.encode===d?d:function(n){return r.encode(t.encode(n))})},n.prototype.asDecoder=function(){return this},n.prototype.asEncoder=function(){return this},n.prototype.decode=function(n){return this.validate(n,[{key:"",type:this,actual:n}])},n}(),d=function(n){return n};function s(n){return n.displayName||n.name||"<function".concat(n.length,">")}function h(n,t){return{key:n,type:t}}function m(n,t,e,r){for(var u=n.length,i=Array(u+1),o=0;o<u;o++)i[o]=n[o];return i[u]={key:t,type:e,actual:r},i}function v(n,t){for(var e=t.length,r=0;r<e;r++)n.push(t[r])}var g=Object.prototype.hasOwnProperty;function y(n){return Object.keys(n).map(function(t){return"".concat(t,": ").concat(n[t].name)}).join(", ")}function b(n){for(var t=0;t<n.length;t++)if(n[t].encode!==d)return!1;return!0}function _(n){return"{ ".concat(y(n)," }")}function I(n){return"Partial<".concat(n,">")}function R(n){var t;if(C(n)){var e=n.value;if(Y.is(e))return(t={})[e]=null,t}else{if("KeyofType"===n._tag)return n.keys;if(k(n)){var r=n.types.map(function(n){return R(n)});return r.some(D.is)?void 0:Object.assign.apply(Object,c([{}],r,!1))}}}function S(n){return"("+n.map(function(n){return n.name}).join(" | ")+")"}function T(n,t){for(var e=!0,r=!0,u=!nn.is(n),i=0;i<t.length;i++){var o=t[i];o!==n&&(e=!1),nn.is(o)&&(r=!1)}if(e)return n;if(r)return t[t.length-1];for(var c={},a=0;a<t.length;a++){var o=t[a];for(var f in o)(!g.call(c,f)||u||o[f]!==n[f])&&(c[f]=o[f])}return c}function x(n,t){for(var e=Object.getOwnPropertyNames(n),r=!1,u={},i=0;i<e.length;i++){var o=e[i];g.call(t,o)?u[o]=n[o]:r=!0}return r?u:n}var M={};function O(n,t){for(var e=[],r=0;r<n.length;r++){var u=n[r];-1!==t.indexOf(u)&&e.push(u)}return e}function w(n){return"AnyType"===n._tag}function C(n){return"LiteralType"===n._tag}function E(n){return"InterfaceType"===n._tag}function k(n){return"UnionType"===n._tag}var W=[];function F(n){if(-1!==W.indexOf(n))return M;if(E(n)||"StrictType"===n._tag){var t=M;for(var e in n.props){var r=n.props[e];C(r)&&(t===M&&(t={}),t[e]=[r.value])}return t}if("ExactType"===n._tag||"RefinementType"===n._tag)return F(n.type);if("IntersectionType"===n._tag)return n.types.reduce(function(n,t){return function(n,t){if(n===M)return t;if(t===M)return n;var e=Object.assign({},n);for(var r in t)if(g.call(n,r)){var u=O(n[r],t[r]);if(u.length>0)e[r]=u;else{e=M;break}}else e[r]=t[r];return e}(n,F(t))},M);if(k(n))return n.types.slice(1).reduce(function(n,t){return function(n,t){if(n===M||t===M)return M;var e=M;for(var r in n)g.call(t,r)&&0===O(n[r],t[r]).length&&(e===M&&(e={}),e[r]=n[r].concat(t[r]));return e}(n,F(t))},F(n.types[0]));if("RecursiveType"===n._tag){W.push(n);var u=F(n.type);return W.pop(),u}return M}function U(n){for(var t=F(n[0]),e=Object.keys(t),r=n.length,u=0;u<e.length;u++){var i=function(e){for(var u=t[e].slice(),i=[t[e]],o=1;o<r;o++){var c=F(n[o])[e];if(void 0===c||c.some(function(n){return -1!==u.indexOf(n)}))return"continue-keys";u.push.apply(u,c),i.push(c)}return{value:[e,i]}}(e[u]);if("object"==typeof i)return i.value;if("continue-keys"===i)continue}}var P=function(n){function t(){var t=n.call(this,"null",function(n){return null===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NullType",t}return i(t,n),t}(p),A=new P,L=function(n){function t(){var t=n.call(this,"undefined",function(n){return void 0===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="UndefinedType",t}return i(t,n),t}(p),D=new L,N=function(n){function t(){var t=n.call(this,"void",D.is,D.validate,d)||this;return t._tag="VoidType",t}return i(t,n),t}(p),j=new N,q=function(n){function t(){var t=n.call(this,"unknown",function(n){return!0},l,d)||this;return t._tag="UnknownType",t}return i(t,n),t}(p),K=new q,G=function(n){function t(){var t=n.call(this,"string",function(n){return"string"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="StringType",t}return i(t,n),t}(p),Y=new G,B=function(n){function t(){var t=n.call(this,"number",function(n){return"number"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NumberType",t}return i(t,n),t}(p),V=new B,z=function(n){function t(){var t=n.call(this,"bigint",function(n){return"bigint"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BigIntType",t}return i(t,n),t}(p),H=new z,$=function(n){function t(){var t=n.call(this,"boolean",function(n){return"boolean"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BooleanType",t}return i(t,n),t}(p),X=new $,J=function(n){function t(){var t=n.call(this,"UnknownArray",Array.isArray,function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyArrayType",t}return i(t,n),t}(p),Z=new J,Q=function(n){function t(){var t=n.call(this,"UnknownRecord",function(n){return null!==n&&"object"==typeof n&&!Array.isArray(n)},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyDictionaryType",t}return i(t,n),t}(p),nn=new Q,nt=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.value=i,o._tag="LiteralType",o}return i(t,n),t}(p);function ne(n,t){void 0===t&&(t=JSON.stringify(n));var e=function(t){return t===n};return new nt(t,e,function(t,r){return e(t)?l(n):f(t,r)},d,n)}var nr=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.keys=i,o._tag="KeyofType",o}return i(t,n),t}(p);function nu(n,t){void 0===t&&(t=Object.keys(n).map(function(n){return JSON.stringify(n)}).join(" | "));var e=function(t){return Y.is(t)&&g.call(n,t)};return new nr(t,e,function(n,t){return e(n)?l(n):f(n,t)},d,n)}var ni=function(n){function t(t,e,r,u,i,o){var c=n.call(this,t,e,r,u)||this;return c.type=i,c.predicate=o,c._tag="RefinementType",c}return i(t,n),t}(p);function no(n,t,e){return nL(n,t,e)}var nc=nL(V,function(n){return Number.isInteger(n)},"Int"),na=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.runDefinition=i,o._tag="RecursiveType",o}return i(t,n),t}(p);function nf(n,t){var e,r=function(){return e||((e=t(u)).name=n),e},u=new na(n,function(n){return r().is(n)},function(n,t){return r().validate(n,t)},function(n){return r().encode(n)},r);return u}Object.defineProperty(na.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var nl=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.type=i,o._tag="ArrayType",o}return i(t,n),t}(p);function np(n,t){return void 0===t&&(t="Array<".concat(n.name,">")),new nl(t,function(t){return Z.is(t)&&t.every(n.is)},function(t,e){var r=Z.validate(t,e);if((0,u.isLeft)(r))return r;for(var i=r.right,o=i.length,c=i,f=[],p=0;p<o;p++){var d=i[p],s=n.validate(d,m(e,String(p),n,d));if((0,u.isLeft)(s))v(f,s.left);else{var h=s.right;h!==d&&(c===i&&(c=i.slice()),c[p]=h)}}return f.length>0?a(f):l(c)},n.encode===d?d:function(t){return t.map(n.encode)},n)}var nd=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.props=i,o._tag="InterfaceType",o}return i(t,n),t}(p);function ns(n,t){void 0===t&&(t=_(n));var e=Object.keys(n),r=e.map(function(t){return n[t]}),i=e.length;return new nd(t,function(n){if(nn.is(n)){for(var t=0;t<i;t++){var u=e[t],o=n[u];if(void 0===o&&!g.call(n,u)||!r[t].is(o))return!1}return!0}return!1},function(n,t){var c=nn.validate(n,t);if((0,u.isLeft)(c))return c;for(var f=c.right,p=f,d=[],s=0;s<i;s++){var h=e[s],y=p[h],b=r[s],_=b.validate(y,m(t,h,b,y));if((0,u.isLeft)(_))v(d,_.left);else{var I=_.right;I===y&&(void 0!==I||g.call(p,h))||(p===f&&(p=o({},f)),p[h]=I)}}return d.length>0?a(d):l(p)},b(r)?d:function(n){for(var t=o({},n),u=0;u<i;u++){var c=e[u],a=r[u].encode;a!==d&&(t[c]=a(n[c]))}return t},n)}var nh=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.props=i,o._tag="PartialType",o}return i(t,n),t}(p);function nm(n,t){void 0===t&&(t=I(_(n)));var e=Object.keys(n),r=e.map(function(t){return n[t]}),i=e.length;return new nh(t,function(t){if(nn.is(t)){for(var r=0;r<i;r++){var u=e[r],o=t[u];if(void 0!==o&&!n[u].is(o))return!1}return!0}return!1},function(t,r){var c=nn.validate(t,r);if((0,u.isLeft)(c))return c;for(var f=c.right,p=f,d=[],s=0;s<i;s++){var h=e[s],g=p[h],y=n[h],b=y.validate(g,m(r,h,y,g));if((0,u.isLeft)(b))void 0!==g&&v(d,b.left);else{var _=b.right;_!==g&&(p===f&&(p=o({},f)),p[h]=_)}}return d.length>0?a(d):l(p)},b(r)?d:function(n){for(var t=o({},n),u=0;u<i;u++){var c=e[u],a=n[c];void 0!==a&&(t[c]=r[u].encode(a))}return t},n)}var nv=function(n){function t(t,e,r,u,i,o){var c=n.call(this,t,e,r,u)||this;return c.domain=i,c.codomain=o,c._tag="DictionaryType",c}return i(t,n),t}(p);function ng(n,t,e){var r,i,o,c,p=R(n);return p?(r=Object.keys(p),void 0===(i=e)&&(i="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),o=r.length,new nv(i,function(n){return nn.is(n)&&r.every(function(e){return t.is(n[e])})},function(n,e){var i=nn.validate(n,e);if((0,u.isLeft)(i))return i;for(var c=i.right,f={},p=[],d=!1,s=0;s<o;s++){var h=r[s],g=c[h],y=t.validate(g,m(e,h,t,g));if((0,u.isLeft)(y))v(p,y.left);else{var b=y.right;d=d||b!==g,f[h]=b}}return p.length>0?a(p):l(d||Object.keys(c).length!==o?f:c)},t.encode===d?d:function(n){for(var e={},u=0;u<o;u++){var i=r[u];e[i]=t.encode(n[i])}return e},n,t)):(void 0===(c=e)&&(c="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),new nv(c,function(e){return nn.is(e)?Object.keys(e).every(function(r){return n.is(r)&&t.is(e[r])}):w(t)&&Array.isArray(e)},function(e,r){if(nn.is(e)){for(var i={},o=[],c=Object.keys(e),p=c.length,d=!1,s=0;s<p;s++){var h=c[s],g=e[h],y=n.validate(h,m(r,h,n,h));if((0,u.isLeft)(y))v(o,y.left);else{var b=y.right;d=d||b!==h,h=b;var _=t.validate(g,m(r,h,t,g));if((0,u.isLeft)(_))v(o,_.left);else{var I=_.right;d=d||I!==g,i[h]=I}}}return o.length>0?a(o):l(d?i:e)}return w(t)&&Array.isArray(e)?l(e):f(e,r)},n.encode===d&&t.encode===d?d:function(e){for(var r={},u=Object.keys(e),i=u.length,o=0;o<i;o++){var c=u[o];r[String(n.encode(c))]=t.encode(e[c])}return r},n,t))}var ny=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.types=i,o._tag="UnionType",o}return i(t,n),t}(p);function nb(n,t){void 0===t&&(t=S(n));var e=U(n);if(void 0===e||!(n.length>0))return new ny(t,function(t){return n.some(function(n){return n.is(t)})},function(t,e){for(var r=[],i=0;i<n.length;i++){var o=n[i],c=o.validate(t,m(e,String(i),o,t));if(!(0,u.isLeft)(c))return l(c.right);v(r,c.left)}return a(r)},b(n)?d:function(e){for(var r=0;r<n.length;r++){var u=n[r];if(u.is(e))return u.encode(e)}throw Error("no codec found to encode value in union type ".concat(t))},n);var r=e[0],i=e[1],o=i.length,c=function(n){for(var t=0;t<o;t++)if(-1!==i[t].indexOf(n))return t};return new nN(t,function(t){if(nn.is(t)){var e=c(t[r]);return void 0!==e&&n[e].is(t)}return!1},function(t,e){var i=nn.validate(t,e);if((0,u.isLeft)(i))return i;var o=i.right,a=c(o[r]);if(void 0===a)return f(t,e);var l=n[a];return l.validate(o,m(e,String(a),l,o))},b(n)?d:function(e){var u=c(e[r]);if(void 0!==u)return n[u].encode(e);throw Error("no codec found to encode value in union codec ".concat(t))},n,r)}var n_=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.types=i,o._tag="IntersectionType",o}return i(t,n),t}(p);function nI(n,t){void 0===t&&(t="(".concat(n.map(function(n){return n.name}).join(" & "),")"));var e=n.length;return new n_(t,function(t){return n.every(function(n){return n.is(t)})},0===n.length?l:function(t,r){for(var i=[],o=[],c=0;c<e;c++){var f=n[c],p=f.validate(t,m(r,String(c),f,t));(0,u.isLeft)(p)?v(o,p.left):i.push(p.right)}return o.length>0?a(o):l(T(t,i))},0===n.length?d:function(t){return T(t,n.map(function(n){return n.encode(t)}))},n)}var nR=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.types=i,o._tag="TupleType",o}return i(t,n),t}(p);function nS(n,t){void 0===t&&(t="[".concat(n.map(function(n){return n.name}).join(", "),"]"));var e=n.length;return new nR(t,function(t){return Z.is(t)&&t.length===e&&n.every(function(n,e){return n.is(t[e])})},function(t,r){var i=Z.validate(t,r);if((0,u.isLeft)(i))return i;for(var o=i.right,c=o.length>e?o.slice(0,e):o,f=[],p=0;p<e;p++){var d=o[p],s=n[p],h=s.validate(d,m(r,String(p),s,d));if((0,u.isLeft)(h))v(f,h.left);else{var g=h.right;g!==d&&(c===o&&(c=o.slice()),c[p]=g)}}return f.length>0?a(f):l(c)},b(n)?d:function(t){return n.map(function(n,e){return n.encode(t[e])})},n)}var nT=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.type=i,o._tag="ReadonlyType",o}return i(t,n),t}(p);function nx(n,t){return void 0===t&&(t="Readonly<".concat(n.name,">")),new nT(t,n.is,n.validate,n.encode,n)}var nM=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.type=i,o._tag="ReadonlyArrayType",o}return i(t,n),t}(p);function nO(n,t){void 0===t&&(t="ReadonlyArray<".concat(n.name,">"));var e=np(n);return new nM(t,e.is,e.validate,e.encode,n)}var nw=function(n,t){return nE(ns(n),t)},nC=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.type=i,o._tag="ExactType",o}return i(t,n),t}(p);function nE(n,t){void 0===t&&(t=E(n)?"{| ".concat(y(n.props)," |}"):"PartialType"===n._tag?I("{| ".concat(y(n.props)," |}")):"Exact<".concat(n.name,">"));var e=function n(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return n(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,e){return Object.assign(t,n(e))},{})}}(n);return new nC(t,n.is,function(t,r){var i=nn.validate(t,r);if((0,u.isLeft)(i))return i;var o=n.validate(t,r);return(0,u.isLeft)(o)?o:(0,u.right)(x(o.right,e))},function(t){return n.encode(x(t,e))},n)}var nk=function(n){function t(){var t=n.call(this,"Function",function(n){return"function"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="FunctionType",t}return i(t,n),t}(p),nW=new nk,nF=function(n){function t(){var t=n.call(this,"never",function(n){return!1},function(n,t){return f(n,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return i(t,n),t}(p),nU=new nF,nP=function(n){function t(){var t=n.call(this,"any",function(n){return!0},l,d)||this;return t._tag="AnyType",t}return i(t,n),t}(p),nA=new nP;function nL(n,t,e){return void 0===e&&(e="(".concat(n.name," | ").concat(s(t),")")),new ni(e,function(e){return n.is(e)&&t(e)},function(e,r){var i=n.validate(e,r);if((0,u.isLeft)(i))return i;var o=i.right;return t(o)?l(o):f(o,r)},n.encode,n,t)}var nD=nL(V,Number.isInteger,"Integer"),nN=function(n){function t(t,e,r,u,i,o){var c=n.call(this,t,e,r,u,i)||this;return c.tag=o,c}return i(t,n),t}(ny),nj=function(n,t,e){void 0===e&&(e=S(t));var r=nb(t,e);return r instanceof nN?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(e,", returning a de-optimized union")),new nN(e,r.is,r.validate,r.encode,t,n))},nq=function(n,t){return{value:n,context:t}},nK=function(n){return[{key:"",type:n}]},nG=nn,nY=function(n){function t(){var t=n.call(this,"object",function(n){return null!==n&&"object"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="ObjectType",t}return i(t,n),t}(p),nB=new nY,nV=ng,nz=function(n){function t(t,e,r,u,i){var o=n.call(this,t,e,r,u)||this;return o.props=i,o._tag="StrictType",o}return i(t,n),t}(p);function nH(n){return n}function n$(n){return function(){return n}}},77883:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var e="html";t.FORMAT_HTML=e;var r="plain";t.FORMAT_PLAIN=r;var u=[e,r];t.FORMATS=u},779:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UNIT_WORDS=t.UNIT_WORD=t.UNIT_SENTENCES=t.UNIT_SENTENCE=t.UNIT_PARAGRAPHS=t.UNIT_PARAGRAPH=t.UNITS=void 0;var e="words";t.UNIT_WORDS=e;var r="word";t.UNIT_WORD=r;var u="sentences";t.UNIT_SENTENCES=u;var i="sentence";t.UNIT_SENTENCE=i;var o="paragraphs";t.UNIT_PARAGRAPHS=o;var c="paragraph";t.UNIT_PARAGRAPH=c;var a=[e,r,u,i,o,c];t.UNITS=a},90783:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0,t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},72788:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return c.default}}),t.loremIpsum=void 0;var r,u=e(77883),i=e(29688),o=e(90783),c=(r=e(55548))&&r.__esModule?r:{default:r};t.loremIpsum=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.count,e=void 0===t?1:t,r=n.format,a=void 0===r?u.FORMAT_PLAIN:r,f=n.paragraphLowerBound,l=n.paragraphUpperBound,p=n.random,d=n.sentenceLowerBound,s=n.sentenceUpperBound,h=n.units,m=void 0===h?i.UNIT_SENTENCES:h,v=n.words,g=void 0===v?o.WORDS:v,y=n.suffix,b=new c.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:g,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},a,void 0===y?"":y);switch(m){case i.UNIT_PARAGRAPHS:case i.UNIT_PARAGRAPH:return b.generateParagraphs(e);case i.UNIT_SENTENCES:case i.UNIT_SENTENCE:return b.generateSentences(e);case i.UNIT_WORDS:case i.UNIT_WORD:return b.generateWords(e);default:return""}}},55548:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=e(77883),i=e(779),o=(r=e(40928))&&r.__esModule?r:{default:r},c=e(23749),a=function(){var n;function t(){var n,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.FORMAT_PLAIN,c=arguments.length>2?arguments[2]:void 0;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.format=i,this.suffix=c,e=void 0,(n="generator")in this?Object.defineProperty(this,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[n]=e,-1===u.FORMATS.indexOf(i.toLowerCase()))throw Error("".concat(i," is an invalid format. Please use ").concat(u.FORMATS.join(" or "),"."));this.generator=new o.default(r)}return n=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,c.isReactNative)()&&(0,c.isNode)()&&(0,c.isWindows)()?i.LINE_ENDINGS.WIN32:i.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(n){return this.format===u.FORMAT_HTML?"<p>".concat(n,"</p>"):n}},{key:"formatStrings",value:function(n){var t=this;return n.map(function(n){return t.formatString(n)})}},{key:"generateWords",value:function(n){return this.formatString(this.generator.generateRandomWords(n))}},{key:"generateSentences",value:function(n){return this.formatString(this.generator.generateRandomParagraph(n))}},{key:"generateParagraphs",value:function(n){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,c.makeArrayOfStrings)(n,t)).join(this.getLineEnding())}}],function(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=a},40928:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=e(90783),u=e(23749);function i(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var o=function(){var n;function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.sentencesPerParagraph,u=void 0===e?{max:7,min:3}:e,o=n.wordsPerSentence,c=void 0===o?{max:15,min:5}:o,a=n.random,f=(n.seed,n.words),l=void 0===f?r.WORDS:f;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),i(this,"sentencesPerParagraph",void 0),i(this,"wordsPerSentence",void 0),i(this,"random",void 0),i(this,"words",void 0),u.min>u.max)throw Error("Minimum number of sentences per paragraph (".concat(u.min,") cannot exceed maximum (").concat(u.max,")."));if(c.min>c.max)throw Error("Minimum number of words per sentence (".concat(c.min,") cannot exceed maximum (").concat(c.max,")."));this.sentencesPerParagraph=u,this.words=l,this.wordsPerSentence=c,this.random=a||Math.random}return n=[{key:"generateRandomInteger",value:function(n,t){return Math.floor(this.random()*(t-n+1)+n)}},{key:"generateRandomWords",value:function(n){var t=this,e=this.wordsPerSentence,r=e.min,i=e.max,o=n||this.generateRandomInteger(r,i);return(0,u.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.pluckRandomWord()," ").concat(n)},"").trim()}},{key:"generateRandomSentence",value:function(n){return"".concat((0,u.capitalize)(this.generateRandomWords(n)),".")}},{key:"generateRandomParagraph",value:function(n){var t=this,e=this.sentencesPerParagraph,r=e.min,i=e.max,o=n||this.generateRandomInteger(r,i);return(0,u.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.generateRandomSentence()," ").concat(n)},"").trim()}},{key:"pluckRandomWord",value:function(){var n=this.words.length-1,t=this.generateRandomInteger(0,n);return this.words[t]}}],function(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=o},79998:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){var t=n.trim();return t.charAt(0).toUpperCase()+t.slice(1)}},23749:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return a.default}});var r=f(e(79998)),u=f(e(18077)),i=f(e(66002)),o=f(e(89759)),c=f(e(13385)),a=f(e(74523));function f(n){return n&&n.__esModule?n:{default:n}}},18077:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){return!!n.exports}},66002:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var n=!1;try{n="ReactNative"===navigator.product}catch(t){n=!1}return n}},89759:function(n,t,e){var r=e(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=e(36021);t.default=function(){var n=!1;try{n=r.platform===u.SUPPORTED_PLATFORMS.WIN32}catch(t){n=!1}return n}},13385:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(n)).map(function(n,t){return t})}},74523:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(13385))&&r.__esModule?r:{default:r};t.default=function(n,t){return(0,u.default)(n).map(function(){return t()})}},58831:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var u=e(52322),i=e(2784),o=e(64379);t.ArrowContainer=function(n){var t=n.childRect,e=n.popoverRect,c=n.position,a=n.arrowColor,f=n.arrowSize,l=n.arrowClassName,p=n.arrowStyle,d=n.className,s=n.children,h=n.style,m=o.useArrowContainer({childRect:t,popoverRect:e,position:c,arrowColor:a,arrowSize:f}),v=m.arrowContainerStyle,g=m.arrowStyle,y=i.useMemo(function(){return r(r({},v),h)},[v,h]),b=i.useMemo(function(){return r(r({},g),p)},[g,p]);return u.jsxs("div",r({className:d,style:y},{children:[u.jsx("div",{style:b,className:l},void 0),s]}),void 0)}},19909:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var u=e(52322),i=e(2784),o=e(44635),c=e(27574),a=e(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return a.usePopover}});var f=e(70414),l=e(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=e(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=i.forwardRef(function(n,t){var e=n.isOpen,l=n.children,p=n.content,s=n.positions,h=n.align,m=void 0===h?"center":h,v=n.padding,g=void 0===v?0:v,y=n.reposition,b=void 0===y||y,_=n.parentElement,I=void 0===_?window.document.body:_,R=n.boundaryElement,S=void 0===R?I:R,T=n.containerClassName,x=n.containerStyle,M=n.contentLocation,O=n.boundaryInset,w=void 0===O?0:O,C=n.onClickOutside,E=n.clickOutsideCapture,k=void 0!==E&&E,W=f.useMemoizedArray(void 0===s?d:s),F=i.useRef(!1),U=i.useRef(),P=i.useRef(),A=i.useRef(b),L=i.useRef(),D=i.useState({align:m,nudgedLeft:0,nudgedTop:0,position:W[0],padding:g,childRect:c.EMPTY_CLIENT_RECT,popoverRect:c.EMPTY_CLIENT_RECT,parentRect:c.EMPTY_CLIENT_RECT,boundaryRect:c.EMPTY_CLIENT_RECT,boundaryInset:w,violations:c.EMPTY_CLIENT_RECT,hasViolations:!1}),N=D[0],j=D[1],q=i.useCallback(function(n){return j(n)},[]),K=a.usePopover({isOpen:e,childRef:L,containerClassName:void 0===T?"react-tiny-popover-container":T,parentElement:I,boundaryElement:S,contentLocation:M,positions:W,align:m,padding:g,boundaryInset:w,reposition:b,onPositionPopover:q}),G=K.positionPopover,Y=K.popoverRef,B=K.scoutRef;i.useLayoutEffect(function(){var n=!0,t=function(){var r,u;if(e&&n){var i=null===(r=null==L?void 0:L.current)||void 0===r?void 0:r.getBoundingClientRect(),o=null===(u=null==Y?void 0:Y.current)||void 0===u?void 0:u.getBoundingClientRect();null==i||null==o||c.rectsAreEqual(i,{top:N.childRect.top,left:N.childRect.left,width:N.childRect.width,height:N.childRect.height,bottom:N.childRect.top+N.childRect.height,right:N.childRect.left+N.childRect.width})&&o.width===N.popoverRect.width&&o.height===N.popoverRect.height&&N.padding===g&&N.align===m&&W===U.current&&M===P.current&&b===A.current||G(),W!==U.current&&(U.current=W),M!==P.current&&(P.current=M),b!==A.current&&(A.current=b),n&&window.requestAnimationFrame(t)}F.current=e};return window.requestAnimationFrame(t),function(){n=!1}},[m,M,e,g,Y,N.align,N.childRect.height,N.childRect.left,N.childRect.top,N.childRect.width,N.padding,N.popoverRect.height,N.popoverRect.width,G,W,b]),i.useEffect(function(){var n=Y.current;return Object.assign(n.style,x),function(){Object.keys(null!=x?x:{}).forEach(function(t){return delete n.style[t]})}},[x,e,Y]);var V=i.useCallback(function(n){var t,r;!e||(null===(t=Y.current)||void 0===t?void 0:t.contains(n.target))||(null===(r=L.current)||void 0===r?void 0:r.contains(n.target))||null==C||C(n)},[e,C,Y]),z=i.useCallback(function(){L.current&&window.requestAnimationFrame(function(){return G()})},[G]);i.useEffect(function(){var n=I.ownerDocument.body;return n.addEventListener("click",V,k),n.addEventListener("contextmenu",V,k),n.addEventListener("resize",z),function(){n.removeEventListener("click",V,k),n.removeEventListener("contextmenu",V,k),n.removeEventListener("resize",z)}},[k,V,z,I]);var H=i.useCallback(function(n){L.current=n,null!=t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))},[t]);return u.jsxs(u.Fragment,{children:[i.cloneElement(l,{ref:H}),e?u.jsx(o.PopoverPortal,r({element:Y.current,scoutElement:B.current,container:I},{children:"function"==typeof p?p(N):p}),void 0):null]},void 0)});t.Popover=i.forwardRef(function(n,t){return"undefined"==typeof window?n.children:u.jsx(s,r({},n,{ref:t}),void 0)})},44635:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=e(2784),u=e(28316);t.PopoverPortal=function(n){var t=n.container,e=n.element,i=n.scoutElement,o=n.children;return r.useLayoutEffect(function(){return t.appendChild(e),t.appendChild(i),function(){t.removeChild(e),t.removeChild(i)}},[t,e,i]),u.createPortal(o,e)}},64379:function(n,t,e){var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var u=e(2784);t.useArrowContainer=function(n){var t=n.childRect,e=n.popoverRect,i=n.position,o=n.arrowSize,c=n.arrowColor;return{arrowContainerStyle:u.useMemo(function(){return{padding:o}},[o]),arrowStyle:u.useMemo(function(){return r({position:"absolute"},function(){var n=2*o,r=t.top-e.top+t.height/2-n/2,u=t.left-e.left+t.width/2-n/2,a=e.width-o,f=e.height-o;switch(u=(u=u<o?o:u)+n>a?a-n:u,r=Number.isNaN(r=(r=r<o?o:r)+n>f?f-n:r)?0:r,u=Number.isNaN(u)?0:u,i){case"right":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderRight:o+"px solid "+c,left:0,top:r};case"left":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderLeft:o+"px solid "+c,right:0,top:r};case"bottom":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderBottom:o+"px solid "+c,top:0,left:u};case"top":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderTop:o+"px solid "+c,bottom:0,left:u};default:return{display:"hidden"}}}())},[c,o,t.height,t.left,t.top,t.width,e.height,e.left,e.top,e.width,i])}}},79601:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=e(2784),u=e(27574);t.useElementRef=function(n,t){var e=r.useRef(),i=r.useMemo(function(){return u.createContainer(t,n)},[n,t]);return e.current=i,e}},70414:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=e(2784);t.useMemoizedArray=function(n){var t=r.useRef(n);return r.useMemo(function(){if(t.current===n)return t.current;if(t.current.length!==n.length)return t.current=n,n;for(var e=0;e<n.length;e+=1)if(n[e]!==t.current[e])return t.current=n,n;return t.current},[n])}},61462:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=e(2784),u=e(27574),i=e(79601),o={position:"fixed",overflow:"visible",top:"0px",left:"0px"},c={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};t.usePopover=function(n){var t=n.isOpen,e=n.childRef,a=n.positions,f=n.containerClassName,l=n.parentElement,p=n.contentLocation,d=n.align,s=n.padding,h=n.reposition,m=n.boundaryInset,v=n.boundaryElement,g=n.onPositionPopover,y=i.useElementRef(f,o),b=i.useElementRef("react-tiny-popover-scout",c),_=r.useCallback(function(n){var r,i,o=void 0===n?{}:n,c=o.positionIndex,f=void 0===c?0:c,I=o.parentRect,R=void 0===I?l.getBoundingClientRect():I,S=o.childRect,T=void 0===S?null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.getBoundingClientRect():S,x=o.scoutRect,M=void 0===x?null===(i=null==b?void 0:b.current)||void 0===i?void 0:i.getBoundingClientRect():x,O=o.popoverRect,w=void 0===O?y.current.getBoundingClientRect():O,C=o.boundaryRect,E=void 0===C?v===l?R:v.getBoundingClientRect():C;if(T&&R&&t){if(p){var k="function"==typeof p?p({childRect:T,popoverRect:w,parentRect:R,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:u.EMPTY_CLIENT_RECT,hasViolations:!1}):p,W=k.top,F=k.left,U=Math.round(R.left+F-M.left),P=Math.round(R.top+W-M.top);y.current.style.transform="translate("+U+"px, "+P+"px)",g({childRect:T,popoverRect:w,parentRect:R,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:u.EMPTY_CLIENT_RECT,hasViolations:!1});return}var A=f===a.length,L=A?a[0]:a[f],D=u.getNewPopoverRect({childRect:T,popoverRect:w,boundaryRect:E,position:L,align:d,padding:s,reposition:h},m),N=D.rect;if(D.boundaryViolation&&h&&!A){_({positionIndex:f+1,childRect:T,popoverRect:w,parentRect:R,boundaryRect:E});return}var j=N.top,q=N.left,K=N.width,G=N.height,Y=h&&!A,B=u.getNudgedPopoverRect(N,E,m),V=B.left,z=B.top,H=j,$=q;Y&&(H=z,$=V),H=Math.round(H-M.top),$=Math.round($-M.left),y.current.style.transform="translate("+$+"px, "+H+"px)";var X={top:E.top+m-H,left:E.left+m-$,right:$+K-E.right+m,bottom:H+G-E.bottom+m};g({childRect:T,popoverRect:{top:H,left:$,width:K,height:G,right:$+K,bottom:H+G},parentRect:R,boundaryRect:E,position:L,align:d,padding:s,nudgedTop:z-j,nudgedLeft:V-q,boundaryInset:m,violations:{top:X.top<=0?0:X.top,left:X.left<=0?0:X.left,right:X.right<=0?0:X.right,bottom:X.bottom<=0?0:X.bottom},hasViolations:X.top>0||X.left>0||X.right>0||X.bottom>0})}},[l,e,b,y,v,t,p,a,d,s,h,m,g]);return{positionPopover:_,popoverRef:y,scoutRef:b}}},27574:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getNudgedPopoverRect=t.getNewPopoverRect=t.popoverRectForPosition=t.createContainer=t.rectsAreEqual=t.EMPTY_CLIENT_RECT=void 0,t.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0},t.rectsAreEqual=function(n,t){return n===t||(null==n?void 0:n.bottom)===(null==t?void 0:t.bottom)&&(null==n?void 0:n.height)===(null==t?void 0:t.height)&&(null==n?void 0:n.left)===(null==t?void 0:t.left)&&(null==n?void 0:n.right)===(null==t?void 0:t.right)&&(null==n?void 0:n.top)===(null==t?void 0:t.top)&&(null==n?void 0:n.width)===(null==t?void 0:t.width)},t.createContainer=function(n,t){var e=window.document.createElement("div");return t&&(e.className=t),Object.assign(e.style,n),e},t.popoverRectForPosition=function(n,t,e,r,u){var i,o,c=t.left+t.width/2,a=t.top+t.height/2,f=e.width,l=e.height;switch(n){case"left":i=a-l/2,o=t.left-r-f,"start"===u&&(i=t.top),"end"===u&&(i=t.bottom-l);break;case"bottom":i=t.bottom+r,o=c-f/2,"start"===u&&(o=t.left),"end"===u&&(o=t.right-f);break;case"right":i=a-l/2,o=t.right+r,"start"===u&&(i=t.top),"end"===u&&(i=t.bottom-l);break;default:i=t.top-l-r,o=c-f/2,"start"===u&&(o=t.left),"end"===u&&(o=t.right-f)}return{top:i,left:o,width:f,height:l,right:o+f,bottom:i+l}},t.getNewPopoverRect=function(n,e){var r=n.position,u=n.align,i=n.childRect,o=n.popoverRect,c=n.boundaryRect,a=n.padding,f=n.reposition,l=t.popoverRectForPosition(r,i,o,a,u),p=f&&("top"===r&&l.top<c.top+e||"left"===r&&l.left<c.left+e||"right"===r&&l.right>c.right-e||"bottom"===r&&l.bottom>c.bottom-e);return{rect:l,boundaryViolation:p}},t.getNudgedPopoverRect=function(n,t,e){var r=t.top+e,u=t.left+e,i=t.right-e,o=t.bottom-e,c=n.top<r?r:n.top;c=c+n.height>o?o-n.height:c;var a=n.left<u?u:n.left;return{top:c,left:a=a+n.width>i?i-n.width:a,width:n.width,height:n.height,right:a+n.width,bottom:c+n.height}}},80734:function(n,t,e){var r,u=e(1710);function i(n){if(!Object.prototype.hasOwnProperty.call(o.message,n))throw Error("invalid status code: "+n);return o.message[n]}function o(n){if("number"==typeof n)return i(n);if("string"!=typeof n)throw TypeError("code must be a number or string");var t=parseInt(n,10);return isNaN(t)?function(n){var t=n.toLowerCase();if(!Object.prototype.hasOwnProperty.call(o.code,t))throw Error('invalid status message: "'+n+'"');return o.code[t]}(n):i(t)}n.exports=o,o.message=u,o.code=(r={},Object.keys(u).forEach(function(n){var t=u[n],e=Number(n);r[t.toLowerCase()]=e}),r),o.codes=Object.keys(u).map(function(n){return Number(n)}),o.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},o.empty={204:!0,205:!0,304:!0},o.retry={502:!0,503:!0,504:!0}},60130:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}});var r=d(e(27343)),u=d(e(46076)),i=d(e(85854)),o=d(e(95899)),c=d(e(15384)),a=d(e(25791)),f=d(e(77888)),l=d(e(49926)),p=d(e(9964));function d(n){return n&&n.__esModule?n:{default:n}}},2763:function(n,t){function e(n){return(n+64>>>9<<4)+14+1}function r(n,t){let e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function u(n,t,e,u,i,o){var c;return r((c=r(r(t,n),r(u,o)))<<i|c>>>32-i,e)}function i(n,t,e,r,i,o,c){return u(t&e|~t&r,n,t,i,o,c)}function o(n,t,e,r,i,o,c){return u(t&r|e&~r,n,t,i,o,c)}function c(n,t,e,r,i,o,c){return u(t^e^r,n,t,i,o,c)}function a(n,t,e,r,i,o,c){return u(e^(t|~r),n,t,i,o,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e)}return function(n){let t=[],e=32*n.length,r="0123456789abcdef";for(let u=0;u<e;u+=8){let e=n[u>>5]>>>u%32&255,i=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);t.push(i)}return t}(function(n,t){n[t>>5]|=128<<t%32,n[e(t)-1]=t;let u=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<n.length;t+=16){let e=u,d=f,s=l,h=p;u=i(u,f,l,p,n[t],7,-680876936),p=i(p,u,f,l,n[t+1],12,-389564586),l=i(l,p,u,f,n[t+2],17,606105819),f=i(f,l,p,u,n[t+3],22,-1044525330),u=i(u,f,l,p,n[t+4],7,-176418897),p=i(p,u,f,l,n[t+5],12,1200080426),l=i(l,p,u,f,n[t+6],17,-1473231341),f=i(f,l,p,u,n[t+7],22,-45705983),u=i(u,f,l,p,n[t+8],7,1770035416),p=i(p,u,f,l,n[t+9],12,-1958414417),l=i(l,p,u,f,n[t+10],17,-42063),f=i(f,l,p,u,n[t+11],22,-1990404162),u=i(u,f,l,p,n[t+12],7,1804603682),p=i(p,u,f,l,n[t+13],12,-40341101),l=i(l,p,u,f,n[t+14],17,-1502002290),f=i(f,l,p,u,n[t+15],22,1236535329),u=o(u,f,l,p,n[t+1],5,-165796510),p=o(p,u,f,l,n[t+6],9,-1069501632),l=o(l,p,u,f,n[t+11],14,643717713),f=o(f,l,p,u,n[t],20,-373897302),u=o(u,f,l,p,n[t+5],5,-701558691),p=o(p,u,f,l,n[t+10],9,38016083),l=o(l,p,u,f,n[t+15],14,-660478335),f=o(f,l,p,u,n[t+4],20,-405537848),u=o(u,f,l,p,n[t+9],5,568446438),p=o(p,u,f,l,n[t+14],9,-1019803690),l=o(l,p,u,f,n[t+3],14,-187363961),f=o(f,l,p,u,n[t+8],20,1163531501),u=o(u,f,l,p,n[t+13],5,-1444681467),p=o(p,u,f,l,n[t+2],9,-51403784),l=o(l,p,u,f,n[t+7],14,1735328473),f=o(f,l,p,u,n[t+12],20,-1926607734),u=c(u,f,l,p,n[t+5],4,-378558),p=c(p,u,f,l,n[t+8],11,-2022574463),l=c(l,p,u,f,n[t+11],16,1839030562),f=c(f,l,p,u,n[t+14],23,-35309556),u=c(u,f,l,p,n[t+1],4,-1530992060),p=c(p,u,f,l,n[t+4],11,1272893353),l=c(l,p,u,f,n[t+7],16,-155497632),f=c(f,l,p,u,n[t+10],23,-1094730640),u=c(u,f,l,p,n[t+13],4,681279174),p=c(p,u,f,l,n[t],11,-358537222),l=c(l,p,u,f,n[t+3],16,-722521979),f=c(f,l,p,u,n[t+6],23,76029189),u=c(u,f,l,p,n[t+9],4,-640364487),p=c(p,u,f,l,n[t+12],11,-421815835),l=c(l,p,u,f,n[t+15],16,530742520),f=c(f,l,p,u,n[t+2],23,-995338651),u=a(u,f,l,p,n[t],6,-198630844),p=a(p,u,f,l,n[t+7],10,1126891415),l=a(l,p,u,f,n[t+14],15,-1416354905),f=a(f,l,p,u,n[t+5],21,-57434055),u=a(u,f,l,p,n[t+12],6,1700485571),p=a(p,u,f,l,n[t+3],10,-1894986606),l=a(l,p,u,f,n[t+10],15,-1051523),f=a(f,l,p,u,n[t+1],21,-2054922799),u=a(u,f,l,p,n[t+8],6,1873313359),p=a(p,u,f,l,n[t+15],10,-30611744),l=a(l,p,u,f,n[t+6],15,-1560198380),f=a(f,l,p,u,n[t+13],21,1309151649),u=a(u,f,l,p,n[t+4],6,-145523070),p=a(p,u,f,l,n[t+11],10,-1120210379),l=a(l,p,u,f,n[t+2],15,718787259),f=a(f,l,p,u,n[t+9],21,-343485551),u=r(u,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[u,f,l,p]}(function(n){if(0===n.length)return[];let t=8*n.length,r=new Uint32Array(e(t));for(let e=0;e<t;e+=8)r[e>>5]|=(255&n[e/8])<<e%32;return r}(n),8*n.length))}},74267:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:e}},15384:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9964:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(77888))&&r.__esModule?r:{default:r};t.default=function(n){let t;if(!(0,u.default)(n))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e}},76678:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},41874:function(n,t){let e;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},13254:function(n,t){function e(n,t){return n<<t|n>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);let u=Math.ceil((n.length/4+2)/16),i=Array(u);for(let t=0;t<u;++t){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=n[64*t+4*r]<<24|n[64*t+4*r+1]<<16|n[64*t+4*r+2]<<8|n[64*t+4*r+3];i[t]=e}i[u-1][14]=(n.length-1)*8/4294967296,i[u-1][14]=Math.floor(i[u-1][14]),i[u-1][15]=(n.length-1)*8&4294967295;for(let n=0;n<u;++n){let u=new Uint32Array(80);for(let t=0;t<16;++t)u[t]=i[n][t];for(let n=16;n<80;++n)u[n]=e(u[n-3]^u[n-8]^u[n-14]^u[n-16],1);let o=r[0],c=r[1],a=r[2],f=r[3],l=r[4];for(let n=0;n<80;++n){let r=Math.floor(n/20),i=e(o,5)+function(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}(r,c,a,f)+l+t[r]+u[n]>>>0;l=f,f=a,a=e(c,30)>>>0,c=o,o=i}r[0]=r[0]+o>>>0,r[1]=r[1]+c>>>0,r[2]=r[2]+a>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},49926:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,u=(r=e(77888))&&r.__esModule?r:{default:r};let i=[];for(let n=0;n<256;++n)i.push((n+256).toString(16).slice(1));function o(n,t=0){return(i[n[t+0]]+i[n[t+1]]+i[n[t+2]]+i[n[t+3]]+"-"+i[n[t+4]]+i[n[t+5]]+"-"+i[n[t+6]]+i[n[t+7]]+"-"+i[n[t+8]]+i[n[t+9]]+"-"+i[n[t+10]]+i[n[t+11]]+i[n[t+12]]+i[n[t+13]]+i[n[t+14]]+i[n[t+15]]).toLowerCase()}t.default=function(n,t=0){let e=o(n,t);if(!(0,u.default)(e))throw TypeError("Stringified UUID is invalid");return e}},27343:function(n,t,e){let r,u;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=e(41874))&&i.__esModule?i:{default:i},c=e(49926);let a=0,f=0;t.default=function(n,t,e){let i=t&&e||0,l=t||Array(16),p=(n=n||{}).node||r,d=void 0!==n.clockseq?n.clockseq:u;if(null==p||null==d){let t=n.random||(n.rng||o.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=u=(t[6]<<8|t[7])&16383)}let s=void 0!==n.msecs?n.msecs:Date.now(),h=void 0!==n.nsecs?n.nsecs:f+1,m=s-a+(h-f)/1e4;if(m<0&&void 0===n.clockseq&&(d=d+1&16383),(m<0||s>a)&&void 0===n.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");a=s,f=h,u=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[i++]=v>>>24&255,l[i++]=v>>>16&255,l[i++]=v>>>8&255,l[i++]=255&v;let g=s/4294967296*1e4&268435455;l[i++]=g>>>8&255,l[i++]=255&g,l[i++]=g>>>24&15|16,l[i++]=g>>>16&255,l[i++]=d>>>8|128,l[i++]=255&d;for(let n=0;n<6;++n)l[i+n]=p[n];return t||(0,c.unsafeStringify)(l)}},46076:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(18679)),u=i(e(2763));function i(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,u.default);t.default=o},18679:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(n,t,e){function r(n,r,o,c){var a;if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));let t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}(n)),"string"==typeof r&&(r=(0,i.default)(r)),(null===(a=r)||void 0===a?void 0:a.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+n.length);if(f.set(r),f.set(n,r.length),(f=e(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,o){c=c||0;for(let n=0;n<16;++n)o[c+n]=f[n];return o}return(0,u.unsafeStringify)(f)}try{r.name=n}catch(n){}return r.DNS=o,r.URL=c,r};var r,u=e(49926),i=(r=e(9964))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=c},85854:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(74267)),u=o(e(41874)),i=e(49926);function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t,e){if(r.default.randomUUID&&!t&&!n)return r.default.randomUUID();let o=(n=n||{}).random||(n.rng||u.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){e=e||0;for(let n=0;n<16;++n)t[e+n]=o[n];return t}return(0,i.unsafeStringify)(o)}},95899:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(18679)),u=i(e(13254));function i(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,u.default);t.default=o},77888:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(76678))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&u.default.test(n)}},25791:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(77888))&&r.__esModule?r:{default:r};t.default=function(n){if(!(0,u.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}},48649:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IncompatibleMockConfigError=void 0;class e extends Error{constructor(n,t){super(`The ${n} mock config is not compatible with the ${t} field.`),Object.defineProperty(this,"mockConfigType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.mockConfigType=n,this.fieldType=t}}t.IncompatibleMockConfigError=e},28584:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=e(65836),u=e(73179),i=e(70226);t.DocumentMock={generate:(n,t={},e)=>(0,r.flattenWidgets)(n).map(([n,r])=>{let o=function(n,t,e){switch(n.type){case"Choice":case"Slices":return i.SliceZoneMock.generate(n,t,e);case"Group":return u.GroupMock.generate(n,e);case"UID":return u.UIDMock.generate(n,e);default:return u.NestableWidgetMock.generate(n,e)}}(r,t,(null==e?void 0:e.value)&&e.value[n]);return[n,o]}).reduce((n,[t,e])=>({...n,[t]:e}),{})}},73179:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(28584),t),(0,r.__exportStar)(e(49468),t)},32974:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var u=e(22406);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(u).default}}),t.randomInt=function(n=0,t=100){return Math.floor(Math.random()*(t-n+1)+n)}},22406:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importDefault)(e(41597)),u=e(32974);t.default=function(n){return function t(){let e=function(n){let t=n[(0,u.randomInt)(0,n.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(r.default);return n&&(n.exactly&&e.length!=n.exactly||n.min&&e.length<n.min||n.max&&e.length>n.max)?t():e}()}},25357:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=t.randomGroupBlock=void 0;let r=e(76563),u=e(65836),i=e(45298),o=e(48649),c=e(49468);function a(n,e){return n.map(([n,r])=>{var i;let a=null==e?void 0:e[n];if(r.type===u.GroupFieldType){if(a&&a.type!==u.GroupFieldType)throw new o.IncompatibleMockConfigError(a.type,r.type);return[n,t.GroupMock.generate(r,a)]}if(!a||a.type===r.type||"Repeatable"==a.type&&"Link"===r.type&&(null===(i=r.config)||void 0===i?void 0:i.repeat))return[n,c.NestableWidgetMock.generate(r,a)];throw new o.IncompatibleMockConfigError(a.type,r.type)})}t.randomGroupBlock=a,t.GroupMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n,t=1,e={}){if(!n.config||!n.config.fields)return[];let r=Object.entries(n.config.fields);return Array(t).fill(null).map(()=>a(r,e))}(n,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:e.map(n=>({__TYPE__:r.GroupItemContentType,key:(0,i.v4)(),value:n}))}},patch(n,e,o){var a;if(n.op===u.DiffOperation.Removed)return;let f=((null==e?void 0:e.value)||Array.from({length:null!==(a=null==o?void 0:o.nbBlocks)&&void 0!==a?a:1},()=>({__TYPE__:r.GroupItemContentType,key:(0,i.v4)(),value:[]}))).map(e=>{var i;let a=Object.fromEntries(e.value);return Object.entries(null!==(i=n.value.config.fields)&&void 0!==i?i:{}).forEach(([n,e])=>{var i;let f;let l=a[n],p=null===(i=null==o?void 0:o.fields)||void 0===i?void 0:i[n];(0,r.isGroupContent)(l)&&(!p||(null==p?void 0:p.type)===u.GroupFieldType)?f=t.GroupMock.patch(e,l,p):(0,r.isGroupContent)(l)||(null==p?void 0:p.type)===u.GroupFieldType||(f=c.NestableWidgetMock.patch(e,l,p)),f?a[n]=f:delete a[n]}),{__TYPE__:r.GroupItemContentType,key:e.key,value:Object.entries(a)}});return{__TYPE__:r.GroupContentType,value:f}}}},17196:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=e(80435),u=e(80435),i=e(65836),o=e(10259),c=e(45298),a=e(49468);function f(n,t){return function(n,t){let e=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:u.SharedSliceContentType,variation:n.id,primary:n.primary?(0,a.randomGroupBlock)(Object.entries(n.primary),null==t?void 0:t.primaryFields).reduce((n,[t,e])=>({...n,[t]:e}),{}):{},items:n.items?Array(e).fill(null).map(()=>{var e,r;return e=Object.entries(n.items||{}),r=null==t?void 0:t.itemFields,e.map(([n,t])=>{let e=r&&r[n];return[n,a.NestableWidgetMock.generate(t,e)]})}).map(n=>({__TYPE__:r.GroupItemContentType,key:(0,c.v4)(),value:n})):[]}}(n,t)}function l(n,t,e){let u=Object.entries(n).reduce((n,[u,c])=>{var f;let l;let p=null===(f=t.find(([n])=>n===u))||void 0===f?void 0:f[1],d=null==e?void 0:e[u];return(0,r.isGroupContent)(p)||(null==d?void 0:d.type)===i.GroupFieldType||c.op===o.DiffOperation.Removed||c.value.type===i.GroupFieldType?(!p||(0,r.isGroupContent)(p))&&(!d||d.type===i.GroupFieldType)&&(l=a.GroupMock.patch(c,p,d)):l=a.NestableWidgetMock.patch(c,p,d),{...n,...l?{[u]:l}:{}}},{});return{...t.reduce((t,[e,r])=>{let i=n[e]?u[e]:r;return i?{...t,[e]:i}:t},{}),...u}}t.SharedSliceMock={generate(n,t){var e;if(null==t?void 0:t.value)return{__TYPE__:u.SharedSliceContentType,...t.value};let r=null!==(e=n.variations.find(n=>n.id===(null==t?void 0:t.variation)))&&void 0!==e?e:n.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${n.id}.`);let i=(null==t?void 0:t.variations)&&t.variations[r.id];return f(r,i)},patch(n,t,e){var u,i;switch(n.op){case o.DiffOperation.Removed:if(!(null==e?void 0:e.variation)||e.variation===(null==t?void 0:t.variation))return{ok:!0,result:void 0};return{ok:!1,error:Error(`Content doesn't match the config for variation ${e.variation}`)};case o.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${n.value.id}.`)};if(!(null==e?void 0:e.variation)||n.value.variations.find(n=>n.id===e.variation))return{ok:!0,result:this.generate(n.value,e)};return{ok:!1,error:Error(`Configured variation ${e.variation} not found in slice ${n.value.id} definition.`)};case o.DiffOperation.Updated:{let c=null!=t&&t.variation?(null==e?void 0:e.variation)&&t.variation!==(null==e?void 0:e.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==e?void 0:e.variation}.`)}:{ok:!0,result:t.variation}:(null==e?void 0:e.variation)?{ok:!0,result:e.variation}:{ok:!1,error:Error("No variation provided. You must either provide some content or a config.")};if(!c.ok)return c;let a=c.result,p=null===(u=n.value.variations)||void 0===u?void 0:u[a];if(!p)return{ok:!1,error:Error(`The model of the content with variation ${a} has not changed.`)};return function(n,t,e,u){switch(t.op){case o.DiffOperation.Removed:return{ok:!0,result:void 0};case o.DiffOperation.Added:if(!e)return{ok:!0,result:f(t.value,u)};return{ok:!1,error:Error(`Content already exists for variation ${e.variation}.`)};case o.DiffOperation.Updated:return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:n,primary:t.value.primary&&(null==e?void 0:e.primary)?l(t.value.primary,Object.entries(null==e?void 0:e.primary),null==u?void 0:u.primaryFields):(null==e?void 0:e.primary)||{},items:(()=>{if(!t.value.items||null==e||!e.items)return(null==e?void 0:e.items)||[];{let n=t.value.items;return e.items.map(t=>({__TYPE__:r.GroupItemContentType,key:t.key,value:Object.entries(l(n,t.value,null==u?void 0:u.itemFields))}))}})()}}}}(a,p,t,p.op!==o.DiffOperation.Removed?null===(i=null==e?void 0:e.variations)||void 0===i?void 0:i[a]:void 0)}}}}},70226:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=e(80435),u=e(45298),i=e(49468),o=e(1865);t.SliceZoneMock={generate(n,t={},e){var c;if(!(null===(c=n.config)||void 0===c?void 0:c.choices))return{__TYPE__:r.SlicesContentType,value:[]};let a=Object.entries(n.config.choices).reduce((n,[r,c])=>{let a=(null==e?void 0:e.value)&&e.value[r],f=(()=>{switch(c.type){case"SharedSlice":{let n=t[r];if(!n){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return i.SharedSliceMock.generate(n,a)}case"Slice":return;case"Group":return i.GroupMock.generate(c);default:return o.NestableWidgetMock.generate(c)}})();return f?n.concat({key:`${r}$${(0,u.v4)()}`,name:r,maybeLabel:void 0,widget:f}):n},[]);return{__TYPE__:r.SlicesContentType,value:a}}}},63442:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=e(80435),u=e(32974);t.UIDMock={generate(n,t){let e=(null==t?void 0:t.value)||(0,u.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:e}}}},49468:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(25357),t),(0,r.__exportStar)(e(1865),t),(0,r.__exportStar)(e(17196),t),(0,r.__exportStar)(e(63442),t)},3541:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=e(80435),u=e(10259);t.BooleanMock={generate(n,t){let e="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:e}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Boolean"===n.diff.value.type?{result:this.patch(n.diff,n.content&&n.content.__TYPE__!==r.BooleanContentType?void 0:n.content,(null===(t=n.config)||void 0===t?void 0:t.type)==="Boolean"?n.config:void 0)}:void 0}}},9940:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=e(80435),u=e(80435),i=e(10259);t.ColorMock={generate(n,t){let e=(null==t?void 0:t.value)||function(){let n="#";for(let t=0;t<6;t++)n+="0123456789abcdef"[Math.floor(16*Math.random())];return n}();return{__TYPE__:u.FieldContentType,value:e,type:"Color"}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Color"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isColorContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Color"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},12102:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=e(80435),u=e(10259);function i(n){let t=n.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function o(n=new Date(2012,0,1),t=new Date){return i(new Date(n.getTime()+Math.random()*(t.getTime()-n.getTime())))}t.DateMock={generate(n,t){let e=(null==t?void 0:t.value)?i(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?o(t.start,t.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:e}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Date"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isDateContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Date"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},60462:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=e(22970),u=e(80435),i=e(10259),o=(0,r.__importDefault)(e(90939));t.EmbedMock={generate:(n,t)=>(function(n){var t;let e=n||(null===(t=o.default[Math.floor(Math.random()*o.default.length)])||void 0===t?void 0:t.oembed);if(!e)throw Error("Something happened during Embed generation.");return{...e,all:e,__TYPE__:u.EmbedContentType}})(null==t?void 0:t.value),applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Embed"===n.diff.value.type?{result:this.patch(n.diff,(0,u.isEmbedContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Embed"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},79928:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=e(22970),u=e(80435),i=e(10259),o=(0,r.__importDefault)(e(8593));t.GeoPointMock={generate(n,t){let e=(null==t?void 0:t.value)||function(){let n=o.default[Math.floor(Math.random()*o.default.length)];if(!n)throw Error("Something happened during GeoPoint generation.");return{latitude:n.points.latitude,longitude:n.points.longitude}}();return{__TYPE__:u.GeoPointContentType,position:{lat:e.latitude,lng:e.longitude}}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"GeoPoint"===n.diff.value.type?{result:this.patch(n.diff,(0,u.isGeoPointContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="GeoPoint"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},54305:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=e(22970),u=e(80435),i=e(10259),o=(0,r.__importDefault)(e(28145)),c=e(32974),a=o.default,f=(n,t)=>{let[e,r]=(()=>{let{width:e,height:r}=null!=t?t:{};return e&&r?[e,r]:e?[e,Math.round(n.height*(e/n.width))]:r?[Math.round(n.width*(r/n.height)),r]:[n.width,n.height]})(),u=Math.max(e/n.width,r/n.height),i=Math.round((n.width-e/u)/2),o=Math.round((n.height-r/u)/2);return{width:e,height:r,rect:{x:i,y:o,width:Math.round(e/u),height:Math.round(r/u)}}},l=(n,t,e)=>{let r=new URL(n),{x:u,y:i,width:o,height:c}=t;return r.searchParams.set("rect",[u,i,o,c].join(",")),r.searchParams.set("w",e.width.toString()),r.searchParams.set("h",e.height.toString()),r.toString()};function p(n){var t,e;let[r,u,i]=(()=>{let t=n.images[(0,c.randomInt)(0,n.images.length-1)],e=null==t?void 0:t.url.split("?")[0];if(!e)throw Error("Something happened during Image generation.");return[e,t.width,t.height]})(),{width:o,height:a,rect:p}=f({width:u,height:i},n.constraints),d=(null===(t=n.constraints)||void 0===t?void 0:t.width)||(null===(e=n.constraints)||void 0===e?void 0:e.height)?l(r,p,{width:o,height:a}):r;return{origin:{id:n.id,url:r,width:u,height:i},url:d,width:o,height:a,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"},alt:(0,c.slug)()}}function d(n,t=a){var e,r,i;let o=p({id:"main",constraints:null===(e=n.config)||void 0===e?void 0:e.constraint,images:t}),c=null===(i=null===(r=n.config)||void 0===r?void 0:r.thumbnails)||void 0===i?void 0:i.map(n=>[n.name,p({id:n.name,constraints:{width:n.width,height:n.height},images:t})]),f=c?{thumbnails:c.reduce((n,[t,e])=>({...n,[t]:e}),{})}:{};return{__TYPE__:u.ImageContentType,...o,...f}}t.random=d,t.ImageMock={generate:(n,t)=>d(n,(null==t?void 0:t.value)&&[t.value]),applyPatch(n){return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Image"===n.diff.value.type?{result:this.patch(n.diff,(0,u.isImageContent)(n.content)?n.content:void 0)}:void 0},patch(n,t){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value)}}}},61326:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=e(80435),u=e(10259);t.IntegrationFieldMock={generate(n,t){let e=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:e}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"IntegrationFields"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isIntegrationFieldContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="IntegrationFields"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},5203:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=e(80435),u=e(32974);t.DocumentLinkMock={generate(n,t){var e,i,o;let c;if(null==t?void 0:t.value)c=t.value;else{let t=(null===(e=n.config)||void 0===e?void 0:e.allowText)?(0,u.slug)():void 0,r=null===(o=null===(i=n.config)||void 0===i?void 0:i.variants)||void 0===o?void 0:o[Math.floor(Math.random()*n.config.variants.length)];c={__TYPE__:"DocumentLink",id:"mock_document_id",...t&&{text:t},...r&&{variant:r}}}return r.DocumentLinkContent.encode(c)}}},97480:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=e(22970),u=e(80435),i=(0,r.__importDefault)(e(66858)),o=e(32974);t.ExternalLinkMock={generate(n,t){var e,r,c;let a;if(null==t?void 0:t.value)a=t.value;else{let t=function(){let n=i.default,t=Math.floor(Math.random()*n.length),e=n[t];if(!e)throw Error("Something happened during web link generation.");return e}(),u=(null===(e=n.config)||void 0===e?void 0:e.allowText)?(0,o.slug)():void 0,f=null===(c=null===(r=n.config)||void 0===r?void 0:r.variants)||void 0===c?void 0:c[Math.floor(Math.random()*n.config.variants.length)];a={__TYPE__:"ExternalLink",url:t,...u&&{text:u},...f&&{variant:f}}}return u.ExternalLinkContent.encode(a)}}},33985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=e(80435),u=e(32974);t.MediaLinkMock={generate(n,t){var e,i,o,c;let a;if(null==t?void 0:t.value)a=t.value;else{let f=(null===(e=n.config)||void 0===e?void 0:e.allowText)?(0,u.slug)():void 0,l=null===(o=null===(i=n.config)||void 0===i?void 0:i.variants)||void 0===o?void 0:o[Math.floor(Math.random()*n.config.variants.length)];a=null!==(c=null==t?void 0:t.value)&&void 0!==c?c:{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"file",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0",...f&&{text:f},...l&&{variant:l}}}return r.FileLinkContent.encode(a)}}},18410:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=e(22970),u=e(80435),i=e(10259),o=e(45298),c=e(5203),a=e(97480),f=e(33985);t.LinkMock={generate(n,t){let e=(()=>{var e;switch(null===(e=n.config)||void 0===e?void 0:e.select){case"document":return c.DocumentLinkMock.generate(n);case"web":default:return a.ExternalLinkMock.generate(n,(null==t?void 0:t.value)&&t.value);case"media":return f.MediaLinkMock.generate(n,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:u.LinkContentType,key:(0,o.v4)(),value:e}},applyPatch(n){var t,e;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Link"!==n.diff.value.type||null!==(t=n.diff.value.config)&&void 0!==t&&t.repeat?void 0:{result:this.patch(n.diff,(0,u.isLinkContent)(n.content)?n.content:void 0,(null===(e=n.config)||void 0===e?void 0:e.type)==="Link"?n.config:void 0)}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Added:case i.DiffOperation.Updated:return this.generate(n.value,e)}}},(0,r.__exportStar)(e(5203),t),(0,r.__exportStar)(e(97480),t),(0,r.__exportStar)(e(33985),t)},96271:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=e(80435),u=e(10259);t.NumberMock={generate(n,t){var e,u,i;let o=(null===(e=n.config)||void 0===e?void 0:e.min)?(null==t?void 0:t.min)&&t.min>n.config.min?t.min:n.config.min:0,c=(null===(u=n.config)||void 0===u?void 0:u.max)?(null==t?void 0:t.max)&&t.max<n.config.max?t.max:n.config.max:100,a=(null===(i=n.config)||void 0===i?void 0:i.step)?(null==t?void 0:t.step)&&t.step>n.config.step?t.step:n.config.step:1,f=((null==t?void 0:t.value)?t.value:function(n,t,e){let r=Math.floor(Math.random()*(t-n))+n;return r%e==0?r:Math.min(r+(e-r%e),t)}(o,c,a)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Number"===n.diff.value.type?{result:this.patch(n.diff,n.content&&n.content.__TYPE__!==r.FieldContentType?void 0:n.content,(null===(t=n.config)||void 0===t?void 0:t.type)==="Number"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},4458:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=e(80435),u=e(10259);t.RangeMock={generate(n,t){var e,u,i;let o=(null===(e=n.config)||void 0===e?void 0:e.min)?(null==t?void 0:t.min)&&t.min>n.config.min?t.min:n.config.min:0,c=(null===(u=n.config)||void 0===u?void 0:u.max)?(null==t?void 0:t.max)&&t.max<n.config.max?t.max:n.config.max:100,a=(null===(i=n.config)||void 0===i?void 0:i.step)?(null==t?void 0:t.step)&&t.step>n.config.step?t.step:n.config.step:1,f=((null==t?void 0:t.value)?t.value:function(n,t,e){let r=Math.floor(Math.random()*(t-n))+n;return r%e==0?r:Math.min(r+(e-r%e),t)}(o,c,a)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Range"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isRangeContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Range"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},7586:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableMock=void 0;let r=e(80435),u=e(10259),i=e(18410);t.RepeatableMock={generate(n,t){var e,r;return{__TYPE__:"RepeatableContent",type:n.type,value:null!==(e=null==t?void 0:t.value)&&void 0!==e?e:Array(null!==(r=null==t?void 0:t.nbItems)&&void 0!==r?r:1).fill(null).map(()=>i.LinkMock.generate(n))}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}},applyPatch(n){var t,e;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Link"===n.diff.value.type&&(null===(t=n.diff.value.config)||void 0===t?void 0:t.repeat)?{result:this.patch(n.diff,(0,r.isRepeatableContent)(n.content)?n.content:void 0,(null===(e=n.config)||void 0===e?void 0:e.type)==="Repeatable"?n.config:void 0)}:void 0}}},40938:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=void 0;let r=e(65836),u=e(72788),i=e(32974),o={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}};t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words.",loremConfig:o},HEADING:{title:"Section Title",test:n=>n.some(t.RichTextMockConfig.isHeading),value:n=>[n.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1],description:"A single heading (h1 to h6) with a variant number of words.",loremConfig:o},STORY:{title:"Story",test:n=>n.some(t.RichTextMockConfig.isHeading)&&n.some(n=>n===r.RichTextNodeType.paragraph),value:n=>[n.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(n,r.RichTextNodeType.image),r.RichTextNodeType.paragraph],description:"Content with headings, texts and optional images",loremConfig:o},TABLE_HEADER:{title:"Table header",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A very short paragraph that can be used as a table header.",loremConfig:{sentencesPerParagraph:{min:1,max:1},wordsPerSentence:{min:1,max:2}}},TABLE_CELL:{title:"Table cell",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single sentence paragraph that can be used as a table cell.",loremConfig:{sentencesPerParagraph:{min:1,max:1},wordsPerSentence:{min:4,max:8}}}},t.RichTextMockConfig={INITIAL_CONFIG:{pattern:t.Patterns.PARAGRAPH,blocks:1},isHeading:n=>0===n.indexOf("heading"),isText:n=>n===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(n),isImage:n=>n===r.RichTextNodeType.image,optionalType:(n,t)=>n.find(n=>n===t)&&Math.random()>.5?[t]:[],findMatchingPattern:n=>{let e=Object.entries(t.Patterns).find(([,t])=>t.test(n));return e&&e.length?e[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText:(n,e)=>{if(t.RichTextMockConfig.isHeading(n)){let n=(0,i.slug)({min:5,max:10});return[n[0]&&n[0].toUpperCase(),...n.slice(1)].join("")}return new u.LoremIpsum(e).generateParagraphs(1)}}},4027:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=e(22970),u=e(80435),i=e(65836),o=e(10259),c=e(54305),a=e(40938);t.RichTextMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n,t){var e,r;let u=((null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.multi)||(null===(r=null==n?void 0:n.config)||void 0===r?void 0:r.single)||`${i.RichTextNodeType.paragraph}`).split(",").map(n=>n),o=(null==t?void 0:t.pattern)&&a.Patterns[t.pattern]||a.RichTextMockConfig.findMatchingPattern(u),f=o.value(u);return Array((null==t?void 0:t.nbBlocks)||a.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(n=>{if(a.RichTextMockConfig.isText(n))return{type:n,content:{text:a.RichTextMockConfig.generateText(n,o.loremConfig)}};let t=(0,c.random)({type:"Image"});return{type:i.RichTextNodeType.image,data:t}})).flat()}(n,t);return{__TYPE__:u.RichTextContentType,value:e}},applyPatch(n){var t;return n.diff.op===o.DiffOperation.Removed?{result:void 0}:"StructuredText"===n.diff.value.type?{result:this.patch(n.diff,(0,u.isRichTextContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="StructuredText"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(n.value,e)}}},(0,r.__exportStar)(e(40938),t)},7449:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=e(80435),u=e(10259),i="mock_option";t.SelectMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n){if(!n.config)return i;if(n.config.default_value&&.5>Math.random())return n.config.default_value;if(!n.config.options)return i;let t=Math.floor(Math.random()*n.config.options.length);return n.config.options[t]||i}(n);return{__TYPE__:r.FieldContentType,value:e,type:"Select"}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Select"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isSelectContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Select"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},22051:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=e(80435),u=e(10259);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(n){return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Separator"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isSeparatorContent)(n.content)?n.content:void 0)}:void 0},patch(n,t){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value)}}}},26369:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableMock=void 0;let r=e(80435),u=e(65836),i=e(10259),o=e(45298),c=e(4027);t.TableMock={generate(n,t){var e;return{__TYPE__:"TableContent",content:null!==(e=null==t?void 0:t.value)&&void 0!==e?e:[{key:(0,o.v4)(),type:"tableRow",content:f({length:2,type:"tableHeader"})},{key:(0,o.v4)(),type:"tableRow",content:f({length:2,type:"tableCell"})}]}},applyPatch(n){var t;return n.diff.op===i.DiffOperation.Removed?{result:void 0}:"Table"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isTableContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Table"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}};let a={tableHeader:"TABLE_HEADER",tableCell:"TABLE_CELL"},f=({length:n,type:t})=>Array.from({length:n},()=>({key:(0,o.v4)(),type:t,content:c.RichTextMock.generate(u.TableCell,{type:"StructuredText",pattern:a[t]})}))},20786:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=e(80435),u=e(10259),i=e(32974);t.TextMock={generate(n,t){var e,u;let o=(null==t?void 0:t.value)||(e=null==t?void 0:t.minChar,u=null==t?void 0:t.maxChar,(0,i.slug)({...e?{min:e}:{},...u?{max:u}:{}}));return{__TYPE__:r.FieldContentType,value:o,type:"Text"}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Text"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isTextContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Text"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},57445:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=e(80435),u=e(10259);function i(n){return n.toISOString().slice(0,19)+"Z"}function o(n=new Date(2012,0,1),t=new Date){return i(new Date(n.getTime()+Math.random()*(t.getTime()-n.getTime())))}t.TimestampMock={generate(n,t){let e=(null==t?void 0:t.value)?i(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?o(t.start,t.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:e}},applyPatch(n){var t;return n.diff.op===u.DiffOperation.Removed?{result:void 0}:"Timestamp"===n.diff.value.type?{result:this.patch(n.diff,(0,r.isTimestampContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Timestamp"?n.config:void 0)}:void 0},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},1865:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=e(22970),u=e(10259),i=e(3541),o=e(9940),c=e(12102),a=e(60462),f=e(79928),l=e(54305),p=e(61326),d=e(18410),s=e(96271),h=e(4458),m=e(7586),v=e(4027),g=e(7449),y=e(22051),b=e(26369),_=e(20786),I=e(57445);(0,r.__exportStar)(e(3541),t),(0,r.__exportStar)(e(9940),t),(0,r.__exportStar)(e(12102),t),(0,r.__exportStar)(e(60462),t),(0,r.__exportStar)(e(79928),t),(0,r.__exportStar)(e(54305),t),(0,r.__exportStar)(e(61326),t),(0,r.__exportStar)(e(18410),t),(0,r.__exportStar)(e(96271),t),(0,r.__exportStar)(e(4458),t),(0,r.__exportStar)(e(7586),t),(0,r.__exportStar)(e(4027),t),(0,r.__exportStar)(e(7449),t),(0,r.__exportStar)(e(22051),t),(0,r.__exportStar)(e(20786),t),(0,r.__exportStar)(e(57445),t),t.NestableWidgetMock={generate(n,t){var e;switch(n.type){case"Boolean":return i.BooleanMock.generate(n,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return o.ColorMock.generate(n,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":if(null===(e=n.config)||void 0===e?void 0:e.repeat)return m.RepeatableMock.generate(n,(null==t?void 0:t.type)==="Repeatable"?t:void 0);return d.LinkMock.generate(n,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return c.DateMock.generate(n,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return a.EmbedMock.generate(n,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(n,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(n);case"IntegrationFields":return p.IntegrationFieldMock.generate(n,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(n,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return h.RangeMock.generate(n,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return v.RichTextMock.generate(n,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return g.SelectMock.generate(n,(null==t?void 0:t.type)==="Select"?t:void 0);case"Table":return b.TableMock.generate(n,(null==t?void 0:t.type)==="Table"?t:void 0);case"Text":return _.TextMock.generate(n,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return I.TimestampMock.generate(n,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return y.SeparatorMock.generate(n)}},patch(n,t,e){if(n.op===u.DiffOperation.Removed)return;let r={diff:n,content:t,config:e},R=o.ColorMock.applyPatch(r)||c.DateMock.applyPatch(r)||I.TimestampMock.applyPatch(r)||g.SelectMock.applyPatch(r)||h.RangeMock.applyPatch(r)||_.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||i.BooleanMock.applyPatch(r)||v.RichTextMock.applyPatch(r)||d.LinkMock.applyPatch(r)||a.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||p.IntegrationFieldMock.applyPatch(r)||y.SeparatorMock.applyPatch(r)||b.TableMock.applyPatch(r)||m.RepeatableMock.applyPatch(r);return null==R?void 0:R.result}}},13221:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=e(22970),u=e(73179);t.generateDocumentMock=function(n,t,e){let r=u.DocumentMock.generate(n,t,e);return e=>e?e(n,t,r):r},t.generateSliceMock=function(n,t){let e=u.SharedSliceMock.generate(n,t);return t=>t?t(n,e):e},(0,r.__exportStar)(e(48649),t),(0,r.__exportStar)(e(73179),t),(0,r.__exportStar)(e(81190),t)},13629:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});let e={urlRewriter:{optimizeImageUrl:n=>n,rewriteImageUrl:n=>n.url||"/mockURL",rewriteFileUrl:n=>n,rewriteS3Bucket:n=>n,enforceCDN:n=>n},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:(n,t,e)=>`${n}${(null==e?void 0:e.length)?"%%"+e.join("%%"):""}`},encoders:{documentLinks:r("=&="),documentUrls:r(">&<"),integrationFields:r("%!%")}},LinkResolver:{buildUrl:n=>"/"}};function r(n){return{encode:t=>`${n}#${t}`}}t.default=e},81190:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=e(22970),u=e(88985),i=e(65836),o=e(45298),c=(0,r.__importDefault)(e(13629));t.renderDocumentMock=function(n,t,e){let r=Object.entries(t).filter(n=>!!n[1]),o=Object.entries(e).filter(n=>!!n[1]),a=(0,i.toStatic)(n,new Map(r)),f={customTypeId:n.id,fields:Object.fromEntries((0,i.flattenSections)(a))};return(0,u.DocumentRenderer)(c.default).renderMocks(f,o)},t.renderSliceMock=function(n,t){return{...(0,u.SharedSliceRenderer)(c.default).renderMocks(n,t),id:`${n.id}$${(0,o.v4)()}`,slice_type:n.id}}},25456:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:n=>n.map(n=>n.key).join("::"),current:n=>n[n.length-1],append:(n,t)=>n+"::"+t,make:n=>n.reduce((n,{key:t,type:e})=>t?n.concat({key:t,type:e}):n,[])}},59994:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0,t.getAssetOrThrow=n=>t=>{let e=n[t];if(!e)throw Error(`Missing asset with id '${t}'!`);return e}},71361:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0,t.getEmbedOrThrow=n=>t=>{let e=n[t];if(!e)throw Error(`Missing embed with url '${t}'`);return e}},58429:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:n=>e.test(n)}},31019:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(82163),i=e(63690);t.UUID=(0,i.withCustomError)(r.brand(r.string,n=>(0,u.validate)(n),"UUID"),()=>"The value must be a valid UUID")},60914:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(63690),i=RegExp("^[^<>]+$");t.WidgetKey=(0,u.refineType)(r.string,"WidgetKey",n=>0===n.length||i.test(n))},49182:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(59994),t),(0,r.__exportStar)(e(71361),t),(0,r.__exportStar)(e(60914),t)},68672:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(25456),f=e(49182),l=e(31019),p=e(65836),d=e(76563),s=e(76677);t.Document=c.record(f.WidgetKey,d.WidgetContent);let h=c.record(f.WidgetKey,c.unknown),m=(n,t)=>new c.Type("Document",n=>!!n&&"object"==typeof n,e=>(0,o.pipe)(h.decode(e),u.either.map(e=>Object.entries(e).reduce((e,[r,u])=>{let o=(0,s.defaultCtx)(r,n,t),c=(0,d.WidgetLegacy)(o).decode(u);return!c||(0,i.isLeft)(c)?e:{...e,[r]:c.right}},{}))),t=>Object.entries(t).reduce((t,[e,r])=>{let u=(0,s.defaultCtx)(e,n),i=(0,d.WidgetLegacy)(u).encode(r);return i?{content:{...t.content,[e]:i.content},types:{...t.types,...i.types},keys:{...t.keys,...i.keys}}:t},{content:{},types:{},keys:{}}));function v(n){let{types:t,widgets:e,keys:r}=Object.entries(n).reduce((n,[t,e])=>{if(t.endsWith("_TYPE")){let r=s.FieldOrSliceType.decode(e);if((0,i.isRight)(r))return{...n,types:n.types.set(t.substring(0,t.length-5),r.right)}}if(t.endsWith("_KEY")){let r=l.UUID.decode(e);if((0,i.isRight)(r))return{...n,keys:n.keys.set(t.substring(0,t.length-4),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")||t.endsWith("_KEY")?n:{...n,widgets:{...n.widgets,[t]:e}}},{types:new Map,widgets:{},keys:new Map}),u=n.slugs_INTERNAL||[];return{widgets:e,types:t,keys:r,uid:n.uid,slugs:u}}function g(n){return{customTypeId:null==n?void 0:n.id,fields:Object.fromEntries((0,p.flattenSections)(n))}}function y({document:n,customType:t}){let e=t&&p.StaticCustomType.is(t)?g(t):t;return({transformWidget:t=({content:n})=>n,transformSlice:r=({content:n})=>n})=>{let u=e&&Object.entries(e.fields).reduce((n,[t,e])=>({...n,[t]:e}),{});return Object.entries(n).reduce((n,[i,o])=>{let c=u&&u[i],f=a.ContentPath.make([{key:null==e?void 0:e.customTypeId,type:"CustomType"},{key:i,type:"Widget"}]),l=(()=>{switch(o.__TYPE__){case"SliceContentType":return(0,d.traverseSlices)({path:f,key:i,model:(null==c?void 0:c.type)==="Slices"||(null==c?void 0:c.type)==="Choice"?c:void 0,content:o})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,d.traverseGroupContent)({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)==="Group"?c:void 0,content:o})(t);case"RepeatableContent":return(0,d.traverseRepeatableContent)({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)==="Link"?c:void 0,content:o})(t);case"TableContent":return(0,d.traverseTableContent)({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)==="Table"?c:void 0,content:o})(t);default:return t({path:f,key:i,apiId:i,model:(null==c?void 0:c.type)!=="Group"&&(null==c?void 0:c.type)!=="Slices"&&(null==c?void 0:c.type)!=="Choice"?c:void 0,content:o})}})();return{...n,...l?{[i]:l}:{}}},{})}}function b(n,t){let e=p.StaticCustomType.is(t)?g(t):t;return Object.values((0,p.collectSharedSlices)(e)).some(n=>!!n.legacyPaths)?y({document:n,customType:t})({transformSlice:d.migrateSliceItem}):n}t.DocumentLegacy={_codec:m,extractMetadata:v,parse:function(n,t){let e=(0,o.pipe)(c.record(f.WidgetKey,c.unknown).decode(n),u.either.chain(n=>{let{types:t,widgets:e,keys:r}=v(n);return m(t,r).decode(e)}));return(0,i.isLeft)(e)?void 0:b(e.right,t)},encode:function(n){let t=m().encode(n);return{...t.content,...t.types,...t.keys}}},t.fillDocumentWithDefaultValues=function(n,t){let{fields:e}=n&&p.StaticCustomType.is(n)?g(n):n;return Object.entries(e).reduce((n,[e,r])=>{let u=t[e],i=(()=>{switch(r.type){case"Group":return(0,d.isGroupContent)(u)?(0,d.groupContentWithDefaultValues)(r,u):u;case"Choice":case"Slices":return(0,d.isSlicesContent)(u)?(0,d.slicesContentWithDefaultValues)(r,u):u;default:return void 0===u&&p.NestableWidget.is(r)?(0,d.NestableContentDefaultValue)(r):u}})();return i?{...n,[e]:i}:n},t)},t.traverseDocument=y,t.collectWidgets=function(n,t){let e={};return y({document:n})({transformWidget:({content:n,path:r})=>{let u=a.ContentPath.serialize(r);return t(n,r)&&(e[u]=n),n}}),e},t.migrateDocument=b},76677:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(82163),i=e(5875);t.FieldOrSliceType=r.union([r.union([i.FieldType,i.SlicesTypes]),r.literal("Repeatable.Link")]);class o{constructor({fieldKey:n,contentKey:t,contentPath:e,fieldPath:r,allTypes:i,allKeys:o}){var c;Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allKeys",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldContentKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=n,this.contentKey=t||n,this.fieldPath=r||[],this.contentPath=e||[],this.allTypes=i||new Map,this.allKeys=o||new Map;let a=Array.of(this.fieldPath,[this.fieldKey]).flat().join("."),f=Array.of(this.contentPath,[this.contentKey]).flat().join(".");this.prefixedKey=a,this.keyOfType=`${a}_TYPE`,this.keyOfKey=`${f}_KEY`,this.fieldType=this.allTypes.get(this.prefixedKey),this.fieldContentKey=null!==(c=this.allKeys.get(f))&&void 0!==c?c:(0,u.v4)()}withContentKey(n){return new o({...this,contentPath:[...this.contentPath,this.contentKey],contentKey:n})}}t.LegacyContentCtx=o,t.getFieldCtx=function({fieldKey:n,contentKey:t,ctx:e,prefixes:r}){let u=t||n;return new o({fieldKey:n,contentKey:u,contentPath:[...e.contentPath,e.contentKey,...r||[]],fieldPath:[...e.fieldPath,e.fieldKey,...r||[]],allTypes:e.allTypes,allKeys:e.allKeys})},t.defaultCtx=function(n,t=new Map,e=new Map){return new o({fieldKey:n,contentKey:n,contentPath:[],fieldPath:[],allTypes:t,allKeys:e})}},26073:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(79920);t.EmptyContentType="EmptyContent",t.isEmptyContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.EmptyContentType;let a=o.union([o.null,o.type({value:o.null})]);t.EmptyLegacy=n=>new o.Type("EmptyLegacy",t.isEmptyContent,e=>(0,i.pipe)(a.decode(e),u.either.map(()=>({type:n,__TYPE__:t.EmptyContentType}))),()=>null),t.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(t.EmptyContentType)})},92472:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroupItemsContent=t.traverseGroupContent=t.groupContentWithDefaultValues=t.GroupLegacy=t.arrayWithIndexCodec=t.GroupItemLegacy=t.GroupContentDefaultValue=t.isGroupContent=t.GroupContent=t.GroupItemContent=t.GroupContentType=t.GroupItemContentType=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(65836),f=e(76677),l=e(79920),p=e(11279),d=e(61789);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupItemContent=c.recursion("GroupItemContent",()=>c.strict({__TYPE__:c.literal(t.GroupItemContentType),key:c.string,value:c.array(c.tuple([c.string,c.union([p.NestableContent,t.GroupContent])]))})),t.GroupContent=c.recursion("GroupContent",()=>c.strict({__TYPE__:c.literal(t.GroupContentType),value:c.array(t.GroupItemContent)})),t.isGroupContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.GroupContentType,t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]};let s=c.record(c.string,c.unknown);function h(n){return new c.Type("ArrayWithIndexCodec",n=>Array.isArray(n),t=>(0,o.pipe)(c.array(c.unknown).decode(t),u.either.chain(t=>{let e=t.map((t,e)=>n(e).decode(t));return u.array.sequence(u.either.Applicative)(e)})),t=>t.map((t,e)=>n(e).encode(t)))}function m({path:n,key:t,apiId:e,model:r,content:u}){return i=>{var o;let c=v({path:n,model:null===(o=null==r?void 0:r.config)||void 0===o?void 0:o.fields,content:u.value})(i);return i({path:n,key:t,apiId:e,model:r,content:{__TYPE__:u.__TYPE__,value:c}})}}function v({path:n,model:e,content:r}){return u=>r.map(r=>{let i=n.concat([{key:r.key,type:"GroupItem"}]),o=r.value.reduce((n,[r,o])=>{let c;let a=null==e?void 0:e[r];return(c=(0,t.isGroupContent)(o)?m({path:i.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:o})(u):(0,p.isRepeatableContent)(o)?(0,p.traverseRepeatableContent)({path:i.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:o})(u):(0,p.isTableContent)(o)?(0,p.traverseTableContent)({path:i.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:o})(u):u({path:i.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:a,content:o}))&&((0,p.isNestableContent)(c)||(0,t.isGroupContent)(c))?n.concat([[r,c]]):n},[]);return{__TYPE__:r.__TYPE__,key:r.key,value:o}})}t.GroupItemLegacy=(n,e)=>new c.Type("GroupItemLegacy",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.GroupItemContentType,r=>(0,o.pipe)(s.decode(r),u.either.map(r=>{let u=n.withContentKey(`${e}`);return{value:Object.entries(r).reduce((n,[e,r])=>{let o=(0,f.getFieldCtx)({fieldKey:e,contentKey:e,ctx:u}),c=o.fieldType===a.GroupFieldType?(0,t.GroupLegacy)(o).decode(r):(0,p.NestableLegacy)(o).decode(r);return!c||(0,i.isLeft)(c)?n:[...n,[e,c.right]]},[]),__TYPE__:t.GroupItemContentType,key:u.fieldContentKey}})),r=>{let u=n.withContentKey(`${e}`);return r.value.reduce((e,[r,u])=>{let i=(0,f.getFieldCtx)({fieldKey:r,ctx:n}),o=(0,t.isGroupContent)(u)?(0,t.GroupLegacy)(i).encode(u):(0,p.NestableLegacy)(i).encode(u);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types},keys:{...e.keys,...o.keys}}:e},{content:{},types:{},keys:{[u.keyOfKey]:r.key}})}),t.arrayWithIndexCodec=h,t.GroupLegacy=n=>{let e=h(e=>c.union([(0,t.GroupItemLegacy)(n,e),c.null])),r=e=>e.map((e,r)=>(0,t.GroupItemLegacy)(n,r).encode(e));return new c.Type("GroupLegacy",t.isGroupContent,r=>(0,o.pipe)(e.decode(r),u.either.map(e=>({value:e.map((e,r)=>{if(null===e){let e=n.withContentKey(`${r}`).fieldContentKey;return{__TYPE__:t.GroupItemContentType,key:e,value:[]}}return e}),__TYPE__:t.GroupContentType}))),t=>{let e=r(t.value);return{content:e.map(n=>n.content),types:e.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:a.GroupFieldType}),keys:e.reduce((n,t)=>({...n,...t.keys}),{})}})},t.groupContentWithDefaultValues=function(n,t){var e;let r=null===(e=n.config)||void 0===e?void 0:e.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=m,t.traverseGroupItemsContent=v},45317:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(79920);t.UIDContentType="UIDContent",t.isUIDContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.UIDContentType,t.UIDLegacy=n=>new o.Type("UIDLegacy",t.isUIDContent,n=>(0,i.pipe)(o.string.decode(n),u.either.map(n=>t.UIDContent.encode({value:n,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"UID"},keys:{}})),t.UIDContent=o.type({__TYPE__:o.literal(t.UIDContentType),value:o.string})},97763:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(92472),i=e(11279),o=e(92636),c=e(45317);t.WidgetContent=r.union([u.GroupContent,i.NestableContent,c.UIDContent,o.SlicesContent]),t.isWidgetContent=n=>(0,u.isGroupContent)(n)||(0,i.isNestableContent)(n)||(0,c.isUIDContent)(n)||(0,o.isSlicesContent)(n),t.WidgetLegacy=n=>({decode(t){if(!n.fieldType)return;let e=(()=>{switch(n.fieldType){case"UID":return(0,c.UIDLegacy)(n);case"Group":return(0,u.GroupLegacy)(n);case"Choice":case"Slices":return(0,o.SlicesLegacy)(n);default:return(0,i.NestableLegacy)(n)}})();if(e)return e.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(n).encode(t);case u.GroupContentType:return(0,u.GroupLegacy)(n).encode(t);case o.SlicesContentType:return(0,o.SlicesLegacy)(n).encode(t);default:return(0,i.NestableLegacy)(n).encode(t)}}})},76563:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(26073),t),(0,r.__exportStar)(e(92472),t),(0,r.__exportStar)(e(11279),t),(0,r.__exportStar)(e(92636),t),(0,r.__exportStar)(e(45317),t),(0,r.__exportStar)(e(97763),t)},15751:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(79920);t.BooleanContentType="BooleanContent",t.isBooleanContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.BooleanContentType,t.BooleanLegacy=n=>new o.Type("BooleanLegacy",t.isBooleanContent,n=>(0,i.pipe)(o.boolean.decode(n),u.either.map(n=>t.BooleanContent.encode({value:n,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"Boolean"},keys:{}})),t.BooleanContent=o.strict({__TYPE__:o.literal(t.BooleanContentType),value:o.boolean}),t.BooleanContentDefaultValue=n=>{var e;return(null===(e=n.config)||void 0===e?void 0:e.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:n.config.default_value||!1}:void 0}},93178:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(83981),a=e(79920);t.EmbedContentType="EmbedContent",t.isEmbedContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.EmbedContentType,t.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:c.StringOrNull,author_name:c.StringOrNull,author_url:c.StringOrNull,provider_name:c.StringOrNull,provider_url:c.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:c.StringOrNull,thumbnail_width:c.NumberOrNull,thumbnail_height:c.NumberOrNull,html:c.StringOrNull})])),t.EmbedLegacy=n=>new o.Type("EmbedLegacy",t.isEmbedContent,n=>(0,i.pipe)(t.EmbedContentLegacy.decode(n),u.either.map(e=>({...e,all:n,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[n.keyOfType]:"Embed"},keys:{}})),t.EmbedContent=o.intersection([t.EmbedContentLegacy,o.strict({__TYPE__:o.literal(t.EmbedContentType),all:o.unknown})])},40641:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isColorContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Color"===n.type,t.ColorLegacy=n=>new o.Type("ColorLegacy",t.isColorContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.ColorContent.encode({value:n,type:c.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.ColorFieldType},keys:{}})),t.ColorContent=o.strict({type:o.literal(c.ColorFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},99421:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isDateContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Date"===n.type,t.DateLegacy=n=>new o.Type("DateLegacy",t.isDateContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.DateContent.encode({value:n,type:c.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.DateFieldType},keys:{}})),t.DateContent=o.strict({type:o.literal(c.DateFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},8348:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isNumberContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Number"===n.type,t.NumberLegacy=n=>new o.Type("NumberLegacy",t.isNumberContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.NumberContent.encode({value:n,type:c.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.NumberFieldType},keys:{}})),t.NumberContent=o.strict({type:o.literal(c.NumberFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},33254:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isRangeContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Range"===n.type,t.RangeLegacy=n=>new o.Type("RangeLegacy",t.isRangeContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.RangeContent.encode({value:n,type:c.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.RangeFieldType},keys:{}})),t.RangeContent=o.strict({type:o.literal(c.RangeFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},15067:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isSelectContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Select"===n.type,t.SelectLegacy=n=>new o.Type("SelectLegacy",t.isSelectContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.SelectContent.encode({value:n,type:c.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.SelectFieldType},keys:{}})),t.SelectContent=o.strict({type:o.literal(c.SelectFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)}),t.SelectContentDefaultValue=n=>{var t;return(null===(t=n.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:c.SelectFieldType,value:n.config.default_value||""}:void 0}},29520:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isTextContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Text"===n.type,t.TextLegacy=n=>new o.Type("TextLegacy",t.isTextContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.TextContent.encode({value:n,type:c.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.TextFieldType},keys:{}})),t.TextContent=o.strict({type:o.literal(c.TextFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},86365:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(5875),a=(0,r.__importDefault)(e(50917)),f=e(79920),l=e(29878);t.isTimestampContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Timestamp"===n.type,t.TimestampLegacy=n=>new o.Type("TimestampLegacy",t.isTimestampContent,n=>(0,i.pipe)(a.default.decode(n),u.either.map(n=>t.TimestampContent.encode({value:n,type:c.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:c.TimestampFieldType},keys:{}})),t.TimestampContent=o.strict({type:o.literal(c.TimestampFieldType),value:a.default,__TYPE__:o.literal(l.FieldContentType)})},29878:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},56788:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=e(22970),u=(0,r.__importStar)(e(32521)),i=e(40641),o=e(99421),c=e(8348),a=e(33254),f=e(15067),l=e(29520),p=e(86365);t.FieldType=u.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=u.union([o.DateContent,i.ColorContent,c.NumberContent,a.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent]),(0,r.__exportStar)(e(40641),t),(0,r.__exportStar)(e(29878),t),(0,r.__exportStar)(e(99421),t),(0,r.__exportStar)(e(8348),t),(0,r.__exportStar)(e(33254),t),(0,r.__exportStar)(e(15067),t),(0,r.__exportStar)(e(29520),t),(0,r.__exportStar)(e(86365),t)},8575:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=e(22970),u=e(89155),i=e(38906),o=(0,r.__importStar)(e(32521)),c=e(79920);t.GeoPointContentType="GeoPointContent",t.isGeoPointContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.GeoPointContentType;let a=o.strict({position:o.strict({lat:o.number,lng:o.number})});t.GeoPointLegacy=n=>new o.Type("GeoPointLegacy",t.isGeoPointContent,n=>(0,i.pipe)(a.decode(n),u.either.map(n=>t.GeoPointContent.encode({...n,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[n.keyOfType]:"GeoPoint"},keys:{}})),t.GeoPointContent=o.intersection([a,o.strict({__TYPE__:o.literal(t.GeoPointContentType)})])},72726:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(13538),a=e(83981),f=e(79920);t.ImageContentType="ImageContent",t.isImageContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.ImageContentType;let l=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));t.ImageContentView=o.exact(o.intersection([o.type({origin:l,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:a.NonEmptyStringOrNull,alt:a.NonEmptyStringOrNull,provider:a.StringOrNull})]));let p=o.intersection([t.ImageContentView,o.partial({thumbnails:o.record(o.string,t.ImageContentView)})]);t.ImageLegacy=n=>new o.Type("ImageLegacy",t.isImageContent,n=>(0,i.pipe)(p.decode(n),u.either.map(n=>t.ImageContent.encode({...n,__TYPE__:t.ImageContentType}))),t=>({content:(0,c.withOptionals)({edit:t.edit,height:t.height,origin:t.origin,width:t.width},[["alt",t.alt],["credits",t.credits],["provider",t.provider],["thumbnails",t.thumbnails],["url",t.url]]),types:{[n.keyOfType]:"Image"},keys:{}})),t.ImageContent=o.intersection([p,o.strict({__TYPE__:o.literal(t.ImageContentType)})])},96281:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(79920);t.IntegrationFieldContentType="IntegrationFieldsContent",t.isIntegrationFieldContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.IntegrationFieldContentType,t.IntegrationFieldLegacy=n=>new o.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,n=>(0,i.pipe)(o.string.decode(n),u.either.map(n=>t.IntegrationFieldContent.encode({value:n,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"IntegrationFields"},keys:{}})),t.IntegrationFieldContent=o.strict({__TYPE__:o.literal(t.IntegrationFieldContentType),value:o.string})},84334:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FilledLinkContent=t.FilledLink=t.FilledLinkContentLegacy=t.FilledLinkLegacy=t.isFilledLinkContent=t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.AnyLinkContent=t.AnyLinkType=t.ExternalLinkContent=t.FilledExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.FilledDocumentLinkContent=t.DocumentLinkType=t.MediaLinkContent=t.MediaLinkType=t.FileLinkContent=t.FilledFileLinkContent=t.FileLinkType=t.ImageLinkContent=t.FilledImageLinkContent=t.ImageLinkType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(7862),a=e(83981),f=e(63690),l=e(79920);t.ImageLinkType="ImageLink";let p=n=>"string"==typeof n,d=new o.Type("ImageLinkKind",n=>p(n),(n,t)=>p(n)?o.success("image"):o.failure(n,t),()=>"image"),s=o.intersection([o.strict({kind:d,id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string}),o.exact(o.partial({date:a.StringOrNull}))]),h=new o.Type("FilledImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,i.pipe)(s.decode(n),u.either.map(n=>t.FilledImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>s.encode(n));t.FilledImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),s]);let m=o.intersection([o.union([s,o.strict({kind:o.literal("image")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),v=new o.Type("ImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,i.pipe)(m.decode(n),u.either.map(n=>t.ImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>m.encode(n));t.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),m]),t.FileLinkType="FileLink";let g=n=>"string"==typeof n,y=new o.Type("FileLinkKind",n=>g(n),(n,t)=>g(n)?o.success("file"):o.failure(n,t),()=>"file"),b=o.exact(o.intersection([o.type({kind:y,id:o.string,url:o.string,name:o.string,size:(0,c.withFallback)(o.string,"0")}),o.partial({date:a.StringOrNull})])),_=new o.Type("FilledFileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,i.pipe)(b.decode(n),u.either.map(n=>t.FilledFileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>b.encode(n));t.FilledFileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),b]);let I=o.intersection([o.union([b,o.strict({kind:o.literal("file")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),R=new o.Type("FileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,i.pipe)(I.decode(n),u.either.map(n=>t.FileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>I.encode(n));t.FileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),I]),t.MediaLinkType="MediaLink";let S=o.intersection([o.strict({kind:o.literal("media")}),o.exact(o.partial({text:o.string,variant:o.string}))]),T=new o.Type("MediaLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.MediaLinkType,n=>(0,i.pipe)(S.decode(n),u.either.map(n=>t.MediaLinkContent.encode({...n,__TYPE__:t.MediaLinkType}))),n=>S.encode(n));t.MediaLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.MediaLinkType)}),S]),t.DocumentLinkType="DocumentLink";let x=o.strict({id:a.NonEmptyString}),M=new o.Type("FilledDocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,i.pipe)(x.decode(n),u.either.map(n=>t.FilledDocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>x.encode(n));t.FilledDocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),x]);let O=o.intersection([o.union([x,o.strict({kind:o.literal("document")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),w=new o.Type("DocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,i.pipe)(O.decode(n),u.either.map(n=>t.DocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>O.encode(n));t.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),O]),t.ExternalLinkType="ExternalLink";let C=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:a.StringOrNull,preview:(0,f.nullable)(o.partial({title:o.string}))})])),E=new o.Type("FilledExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,i.pipe)(C.decode(n),u.either.map(n=>t.FilledExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>C.encode(n));t.FilledExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),C]);let k=o.intersection([o.union([C,o.strict({kind:o.literal("web")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),W=new o.Type("ExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,i.pipe)(k.decode(n),u.either.map(n=>t.ExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>k.encode(n));t.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),k]),t.AnyLinkType="AnyLink";let F=o.exact(o.intersection([o.type({kind:(0,c.withFallback)(o.literal("any"),"any")}),o.partial({text:o.string,variant:o.string})])),U=new o.Type("AnyLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.AnyLinkType,n=>(0,i.pipe)(F.decode(n),u.either.map(n=>t.AnyLinkContent.encode({...n,__TYPE__:t.AnyLinkType}))),n=>F.encode(n));t.AnyLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.AnyLinkType)}),F]),t.LinkContentType="LinkContent",t.isLinkContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.LinkLegacy=(0,l.withKey)(o.union([v,R,w,W,T,U])),t.LinkContentLegacy=n=>new o.Type("LinkLegacy",t.isLinkContent,n=>(0,i.pipe)(t.LinkLegacy.decode(n),u.either.map(({key:n,...e})=>t.LinkContent.encode({__TYPE__:"LinkContent",key:n,value:e}))),({key:e,value:r})=>({content:t.LinkLegacy.encode({...r,key:e}),types:{[n.keyOfType]:"Link"},keys:{}})),t.Link=o.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=o.union([h,_,M,E]),t.FilledLinkContentLegacy=n=>{let e=(0,l.withKey)(t.FilledLinkLegacy);return new o.Type("FilledLinkLegacy",t.isFilledLinkContent,n=>(0,i.pipe)(e.decode(n),u.either.map(({key:n,...e})=>t.FilledLinkContent.encode({__TYPE__:"LinkContent",key:n,value:e}))),({key:t,value:r})=>({content:e.encode({...r,key:t}),types:{[n.keyOfType]:"Link"},keys:{}}))},t.FilledLink=o.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=(0,l.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.FilledLink}))},9204:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521)),o=e(26073),c=e(15751),a=e(93178),f=e(56788),l=e(29878),p=e(8575),d=e(72726),s=e(96281),h=e(84334),m=e(21860),v=e(35447),g=e(93530),y=e(46817);t.NestableContent=i.union([o.EmptyContent,c.BooleanContent,a.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,h.LinkContent,v.RichTextContent,g.SeparatorContent,y.TableContent,m.RepeatableContent]),t.NestableContentDefaultValue=n=>{switch(n.type){case"Boolean":return(0,c.BooleanContentDefaultValue)(n);case"Select":return(0,f.SelectContentDefaultValue)(n);default:return}},t.isNestableContent=n=>(0,f.isTextContent)(n)||(0,f.isColorContent)(n)||(0,f.isDateContent)(n)||(0,f.isTimestampContent)(n)||(0,f.isNumberContent)(n)||(0,f.isRangeContent)(n)||(0,f.isSelectContent)(n)||(0,p.isGeoPointContent)(n)||(0,v.isRichTextContent)(n)||(0,c.isBooleanContent)(n)||(0,a.isEmbedContent)(n)||(0,d.isImageContent)(n)||(0,s.isIntegrationFieldContent)(n)||(0,h.isLinkContent)(n)||(0,g.isSeparatorContent)(n)||(0,y.isTableContent)(n)||(0,o.isEmptyContent)(n)||(0,m.isRepeatableContent)(n),t.NestableLegacy=n=>({decode(t){if(!n.fieldType)return;let e=(0,o.EmptyLegacy)(n.fieldType).decode(t);if((0,u.isRight)(e))return e;let r=(()=>{switch(n.fieldType){case"Text":return(0,f.TextLegacy)(n);case"Color":return(0,f.ColorLegacy)(n);case"Date":return(0,f.DateLegacy)(n);case"Timestamp":return(0,f.TimestampLegacy)(n);case"Number":return(0,f.NumberLegacy)(n);case"Range":return(0,f.RangeLegacy)(n);case"Select":return(0,f.SelectLegacy)(n);case"GeoPoint":return(0,p.GeoPointLegacy)(n);case"StructuredText":return(0,v.RichTextLegacy)(n);case"Boolean":return(0,c.BooleanLegacy)(n);case"Embed":return(0,a.EmbedLegacy)(n);case"Image":return(0,d.ImageLegacy)(n);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(n);case"Link":return(0,h.LinkContentLegacy)(n);case"Separator":return(0,g.SeparatorLegacy)(n);case"Table":return(0,y.TableLegacy)(n);case"Repeatable.Link":return(0,m.RepeatableLegacy)(n,"Link");default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(n).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(n).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(n).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(n).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(n).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(n).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(n).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(n).encode(t);case v.RichTextContentType:return(0,v.RichTextLegacy)(n).encode(t);case a.EmbedContentType:return(0,a.EmbedLegacy)(n).encode(t);case c.BooleanContentType:return(0,c.BooleanLegacy)(n).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(n).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(n).encode(t);case h.LinkContentType:return(0,h.LinkContentLegacy)(n).encode(t);case g.SeparatorContentType:return(0,g.SeparatorLegacy)(n).encode(t);case y.TableContentType:return(0,y.TableLegacy)(n).encode(t);case"RepeatableContent":return(0,m.RepeatableLegacy)(n,t.type).encode(t);default:return}}})},21860:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseRepeatableContent=t.RepeatableLegacy=t.isRepeatableContent=t.RepeatableContent=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(79920),f=e(84334),l="RepeatableContent";t.RepeatableContent=c.strict({__TYPE__:c.literal(l),type:c.literal("Link"),value:c.array(f.LinkContent)}),t.isRepeatableContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===l,t.RepeatableLegacy=(n,e)=>new c.Type("RepeatableLegacy",t.isRepeatableContent,t=>(0,o.pipe)(c.array(c.unknown).decode(t),u.either.map(t=>({value:t.reduce((t,r)=>{let u;return"Link"===e&&(u=(0,f.LinkContentLegacy)(n).decode(r)),!u||(0,i.isLeft)(u)?t:[...t,u.right]},[]),type:e,__TYPE__:"RepeatableContent"}))),t=>{let r=c.array(f.LinkContent).encode(t.value).reduce((t,e)=>{let r;return e.__TYPE__===f.LinkContentType&&(r=(0,f.LinkContentLegacy)(n).encode(e)),r?[...t,r]:t},[]);return{content:r.map(n=>n.content),types:{[n.keyOfType]:`Repeatable.${e}`},keys:r.reduce((n,t)=>({...n,...t.keys}),{})}}),t.traverseRepeatableContent=function({path:n,key:t,apiId:e,model:r,content:u}){return i=>{let o=u.value.reduce((u,o,c)=>{let a=i({path:n.concat([{key:c.toString(),type:"Widget"}]),key:t,apiId:e,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:o});return a&&(0,f.isLinkContent)(a)?u.concat(a):u},[]);return i({path:n,key:t,apiId:e,model:r,content:{__TYPE__:u.__TYPE__,type:u.type,value:o}})}}},85885:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(7862),f=e(21866),l=e(83981),p=e(63690),d=e(93178),s=e(72726),h=e(84334),m=n=>c.strict({data:n,start:c.number,end:c.number,type:c.literal(f.RichTextNodeType.hyperlink)}),v=c.strict({data:(0,a.withFallback)(c.string,""),start:c.number,end:c.number,type:c.literal("label")}),g=c.strict({start:c.number,end:c.number,type:c.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=c.union([m(h.FilledLink),v,g]),t.SpanLegacy=c.union([m(h.FilledLinkLegacy),v,g]),t.ValidatedSpans=n=>new c.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(n.is),(t,e)=>{if(!Array.isArray(t))return c.failure(t,e);{let e=t.reduce((t,e)=>{let r=n.decode(e);return(0,i.isLeft)(r)?t:[...t,r.right]},[]).sort((n,t)=>n.start-t.start);return c.success(e)}},t=>t.reduce((t,e)=>[...t,n.encode(e)],[]));let y=n=>c.exact(c.intersection([c.type({type:c.literal(f.RichTextNodeType.image),data:c.intersection([s.ImageContentView,c.partial({linkTo:(0,p.nullable)(n)})])}),c.partial({label:l.StringOrNull,direction:l.StringOrNull})]));t.ImageBlock=y(h.FilledLink);let b=y(h.FilledLinkLegacy);t.checkImageBlock=function(n){return n.type===f.RichTextNodeType.image};let _=c.exact(c.intersection([c.type({type:c.literal(f.RichTextNodeType.embed),data:c.unknown}),c.partial({label:l.StringOrNull,direction:l.StringOrNull})])),I=new c.Type("EmbedBlockLegacy",n=>"embed"===n.type,n=>(0,o.pipe)(_.decode(n),u.either.chain(n=>u.either.map(t=>[n,t])(d.EmbedContentLegacy.decode(n.data))),u.either.map(([n,e])=>t.EmbedBlock.encode({...n,data:{...e,__TYPE__:d.EmbedContentType,all:n.data}}))),n=>({..._.encode(n),data:d.EmbedContentLegacy.encode(n.data)}));t.EmbedBlock=c.exact(c.intersection([c.type({type:c.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),c.partial({label:l.StringOrNull,direction:l.StringOrNull})])),t.checkEmbedBlock=function(n){return n.type===f.RichTextNodeType.embed};let R=n=>c.exact(c.intersection([c.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,n=>n!==f.RichTextNodeType.image&&n!==f.RichTextNodeType.embed),content:c.intersection([c.type({text:c.string}),c.partial({spans:(0,t.ValidatedSpans)(n)})])}),c.partial({label:c.string,direction:c.string})]));t.TextBlock=R(t.Span),t.TextBlockLegacy=R(t.SpanLegacy);let S=c.union([I,b,t.TextBlockLegacy]);t.BlockLegacy=new c.Type("BlockLegacy",n=>I.is(n)||b.is(n)||t.TextBlockLegacy.is(n),n=>S.decode(n),n=>t.ImageBlock.is(n)?b.encode(n):t.EmbedBlock.is(n)?I.encode(n):t.TextBlockLegacy.encode(n)),t.Block=c.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},35447:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.RichTextLegacyContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(79920),a=e(85885);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.RichTextContentType,t.RichTextLegacyContent=o.array(a.BlockLegacy),t.RichTextContent=o.strict({__TYPE__:o.literal(t.RichTextContentType),value:o.array(a.Block)}),(0,r.__exportStar)(e(85885),t),t.RichTextLegacy=n=>new o.Type("RichTextLegacy",t.isRichTextContent,n=>(0,i.pipe)(t.RichTextLegacyContent.decode(n),u.either.map(n=>({value:n,__TYPE__:t.RichTextContentType}))),e=>({content:t.RichTextLegacyContent.encode(e.value),types:{[n.keyOfType]:"StructuredText"},keys:{}}))},93530:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(79920);t.SeparatorContentType="SeparatorContent",t.isSeparatorContent=n=>(0,u.hasContentType)(n)&&n.__TYPE__===t.SeparatorContentType,t.SeparatorLegacy=n=>new r.Type("SeparatorLegacy",t.isSeparatorContent,()=>r.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[n.keyOfType]:"Separator"},keys:{}})),t.SeparatorContent=r.strict({__TYPE__:r.literal(t.SeparatorContentType)})},46817:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseTableContent=t.TableLegacy=t.TableContent=t.isTableContent=t.TableContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(65836),a=e(79920),f=e(35447);t.TableContentType="TableContent",t.isTableContent=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.TableContentType;let l=(0,a.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextContent}),o.exact(o.partial({columnWidth:o.number}))])),p=(0,a.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(l)}));t.TableContent=o.strict({__TYPE__:o.literal(t.TableContentType),content:o.array(p)});let d=(0,a.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:f.RichTextLegacyContent}),o.exact(o.partial({columnWidth:o.number}))])),s=(0,a.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(d)})),h=o.strict({content:o.array(s)});t.TableLegacy=n=>new o.Type("TableLegacy",t.isTableContent,n=>(0,i.pipe)(h.decode(n),u.either.map(n=>({__TYPE__:"TableContent",content:n.content.map(n=>({...n,content:n.content.map(n=>({...n,content:{__TYPE__:"StructuredTextContent",value:n.content}}))}))}))),t=>({content:h.encode({content:t.content.map(n=>({...n,content:n.content.map(n=>({...n,content:n.content.value}))}))}),types:{[n.keyOfType]:"Table"},keys:{}})),t.traverseTableContent=function({path:n,key:t,apiId:e,model:r,content:u}){return i=>{let o=u.content.map((r,u)=>({...r,content:r.content.map((r,o)=>{let a=i({path:n.concat([{key:[u.toString(),o.toString()].join(","),type:"Widget"}]),key:t,apiId:e,model:c.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:a}})}));return i({path:n,key:t,apiId:e,model:r,content:{__TYPE__:u.__TYPE__,content:o}})}}},11279:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(15751),t),(0,r.__exportStar)(e(93178),t),(0,r.__exportStar)(e(56788),t),(0,r.__exportStar)(e(8575),t),(0,r.__exportStar)(e(72726),t),(0,r.__exportStar)(e(96281),t),(0,r.__exportStar)(e(84334),t),(0,r.__exportStar)(e(9204),t),(0,r.__exportStar)(e(21860),t),(0,r.__exportStar)(e(35447),t),(0,r.__exportStar)(e(93530),t),(0,r.__exportStar)(e(46817),t)},38879:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(76677),f=e(79920),l=e(92472),p=e(11279),d=e(61789),s=e(94112);t.CompositeSliceContentType="CompositeSliceContent",t.isCompositeSliceContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.CompositeSliceContentType;let h=c.exact(c.partial({repeat:c.array(c.unknown),"non-repeat":c.UnknownRecord}));t.CompositeSliceLegacy=n=>new c.Type("CompositeSliceLegacy",t.isCompositeSliceContent,e=>(0,o.pipe)(h.decode(e),u.either.map(e=>{let r=(()=>{let t=(0,a.getFieldCtx)({fieldKey:"repeat",ctx:n}),r=(0,s.RepeatableWidgetsLegacy)(t).decode(e.repeat);if(!(!r||(0,i.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(e["non-repeat"]||{}).reduce((t,[e,r])=>{let u=(0,a.getFieldCtx)({fieldKey:e,ctx:n,prefixes:["non-repeat"]});if(!u)return t;let o=(0,p.NestableLegacy)(u).decode(r);return!o||(0,i.isLeft)(o)?t:{...t,[e]:o.right}},{}),repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let e=Object.entries(t.nonRepeat).reduce((t,[e,r])=>{let u=(0,a.getFieldCtx)({fieldKey:e,ctx:n,prefixes:["non-repeat"]}),i=(0,p.NestableLegacy)(u).encode(r);return i?{content:{...t.content,[e]:i.content},types:{...t.types,...i.types},keys:{...t.keys,...i.keys}}:t},{content:{},types:{},keys:{}}),r=(()=>{let e=(0,a.getFieldCtx)({fieldKey:"repeat",ctx:n});return(0,s.RepeatableWidgetsLegacy)(e).encode(t.repeat)})()||[];return{content:{"non-repeat":e.content,repeat:r.map(n=>n.content)},types:{[n.keyOfType]:"Slice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})},keys:{...e.keys,...r.reduce((n,t)=>({...n,...t.keys}),{})}}}),t.CompositeSliceContent=c.strict({__TYPE__:c.literal(t.CompositeSliceContentType),nonRepeat:c.record(c.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(n,t){var e,r;let u=(0,d.withDefaultNestableContentValues)(null!==(e=n["non-repeat"])&&void 0!==e?e:{},t.nonRepeat),i=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=n.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:u,repeat:i}},t.traverseCompositeSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:u}){return(i,o)=>{let c=Object.entries(u.widget.nonRepeat).reduce((u,[o,c])=>{var a,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(a=null==r?void 0:r.fields)||void 0===a?void 0:a.primary)||void 0===f?void 0:f[o]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[o],s=i({path:n.concat([{key:"non-repeat",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:e,model:d,content:c});return s?(0,p.isNestableContent)(s)?{...u,[o]:s}:(console.warn(`Warn: Non nestable content with key [${o}] detected in a composite slice [${e}] with key [${t}]`),u):u},{}),a=(0,l.traverseGroupItemsContent)({path:n.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:u.widget.repeat})(i);return o({key:t,apiId:e,path:n,model:r,content:{...u,widget:{__TYPE__:"CompositeSliceContent",repeat:a,nonRepeat:c}}})}},t.migrateCompositeSlice=function(n,t){let[,e]=t.key.split("$");return{key:`${n.sliceName}$${e}`,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((e,[r,u])=>{var i;return(null===(i=n.fields.primary)||void 0===i?void 0:i[r])?{...e,[r]:u}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${n.sliceName}] with key [${t.key}] doesn't exist in the model.`),e)},{}),items:t.widget.repeat.map(e=>({__TYPE__:"GroupItemContent",key:e.key,value:e.value.reduce((e,[r,u])=>{var i;return(null===(i=n.fields.items)||void 0===i?void 0:i[r])?e.concat([[r,u]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${n.sliceName}] with key [${t.key}] doesn't exist in the model.`),e)},[])}),[])}}}},94112:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(92472),i=e(11279);t.RepeatableWidgetsLegacy=n=>(0,u.arrayWithIndexCodec)(t=>(0,u.GroupItemLegacy)(n,t));let o=r.tuple([r.string,r.union([i.NestableContent,u.GroupContent])]),c=r.strict({__TYPE__:r.literal(u.GroupItemContentType),key:r.string,value:r.array(o)});t.RepeatableWidgets=r.array(c)},82541:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(7862),f=e(65836),l=e(76677),p=e(79920),d=e(92472),s=e(11279),h=e(61789),m=e(94112),v=e(86583);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=n=>(0,p.hasContentType)(n)&&n.__TYPE__===t.SharedSliceContentType;let g=c.exact(c.type({variation:c.string,items:(0,a.withFallback)(c.array(c.unknown),[]),primary:(0,a.withFallback)(c.UnknownRecord,{})}));t.SharedSliceLegacy=n=>new c.Type("SharedSliceLegacy",t.isSharedSliceContent,e=>(0,o.pipe)(g.decode(e),u.either.map(e=>{let r=(()=>{let t=(0,l.getFieldCtx)({fieldKey:"items",ctx:n,prefixes:["variations",e.variation]}),r=(0,m.RepeatableWidgetsLegacy)(t).decode(e.items);if(!(!r||(0,i.isLeft)(r)))return r.right})()||[],u=Object.entries(e.primary).reduce((t,[r,u])=>{let o=(0,l.getFieldCtx)({fieldKey:r,ctx:n,prefixes:["variations",e.variation,"primary"]}),c=(0,v.SlicePrimaryLegacy)(o).decode(u);return!c||(0,i.isLeft)(c)?t:{...t,[r]:c.right}},{});return{variation:e.variation,primary:u,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let e=Object.entries(t.primary).reduce((e,[r,u])=>{let i=(0,l.getFieldCtx)({fieldKey:r,ctx:n,prefixes:["variations",t.variation,"primary"]}),o=(0,v.SlicePrimaryLegacy)(i).encode(u);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types},keys:{...e.keys,...o.keys}}:e},{content:{},types:{},keys:{}}),r=(()=>{let e=(0,l.getFieldCtx)({fieldKey:"items",ctx:n,prefixes:["variations",t.variation]});return(0,m.RepeatableWidgetsLegacy)(e).encode(t.items)})()||[];return{content:{primary:e.content,items:r.map(n=>n.content),variation:t.variation},types:{[n.keyOfType]:"SharedSlice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})},keys:{...e.keys,...r.reduce((n,t)=>({...n,...t.keys}),{})}}}),t.SharedSliceContent=c.strict({__TYPE__:c.literal(t.SharedSliceContentType),variation:c.string,primary:c.record(c.string,v.SlicePrimaryContent),items:m.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(n,t){var e,r;let u=n.variations.find(n=>n.id===t.variation),i=null!==(e=null==u?void 0:u.primary)&&void 0!==e?e:{},o=null!==(r=null==u?void 0:u.items)&&void 0!==r?r:{},c=(0,h.withDefaultSlicePrimaryContentValues)(i,t.primary),a=(0,h.repeatableContentWithDefaultNestableContentValues)(o,t.items);return{...t,primary:c,items:a}},t.traverseSharedSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:u}){return(i,o)=>{let c=Object.entries(u.widget.primary).reduce((u,[o,c])=>{var a,l;let p=null===(l=null===(a=null==r?void 0:r.fields)||void 0===a?void 0:a.primary)||void 0===l?void 0:l[o],h=(0,d.isGroupContent)(c)?(0,d.traverseGroupContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:c,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(i):(0,s.isRepeatableContent)(c)?(0,s.traverseRepeatableContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:c,model:(null==p?void 0:p.type)==="Link"?p:void 0})(i):(0,s.isTableContent)(c)?(0,s.traverseTableContent)({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:c,model:(null==p?void 0:p.type)==="Table"?p:void 0})(i):(0,s.isNestableContent)(c)?i({path:n.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,model:p,content:c}):void 0;return h?((0,v.isSlicePrimaryContent)(h)||console.warn(`Warn: Non nestable or group content with key [${o}] detected in a shared slice [${e}] with key [${t}]`),{...u,[o]:h}):u},{}),a=(0,d.traverseGroupItemsContent)({path:n.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:u.widget.items})(i);return o({key:t,apiId:e,path:n,model:r,content:{...u,widget:{__TYPE__:"SharedSliceContent",variation:u.widget.variation,primary:c,items:a}}})}}},612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(92472),i=e(11279);t.SimpleSliceContent=r.union([i.NestableContent,u.GroupContent]),t.isSimpleSliceContent=n=>(0,i.isNestableContent)(n)||(0,u.isGroupContent)(n),t.SimpleSliceLegacy=n=>({decode:"Group"===n.fieldType?(0,u.GroupLegacy)(n).decode.bind(null):(0,i.NestableLegacy)(n).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.GroupLegacy)(n).encode(t):(0,i.NestableLegacy)(n).encode(t)}),t.traverseSimpleSliceContent=function({path:n,sliceKey:t,sliceName:e,model:r,content:i}){return(o,c)=>{var a;if((0,u.isGroupContent)(i.widget)){let t=(0,u.traverseGroupContent)({path:n,key:i.key,apiId:i.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:i.widget})(o);return t&&c({key:i.key,apiId:i.name,path:n,model:r,content:{...i,widget:t}})}let f=o({key:i.key,apiId:i.name,path:n,model:(null==r?void 0:r.type)==="SharedSlice"?null===(a=r.fields.primary)||void 0===a?void 0:a[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return f&&c({key:t,apiId:e,path:n,model:r,content:{...i,widget:f}})}},t.migrateSimpleSlice=function(n,t){var e;let[,r]=t.key.split("$"),u=`${n.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:u,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",key:t.key,value:t.value.reduce((t,[e,r])=>{var u;return(null===(u=n.fields.items)||void 0===u?void 0:u[e])?t.concat([[e,r]]):t},[])}),[])}}:{key:u,name:n.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:n.variationId,primary:(null===(e=n.fields.primary)||void 0===e?void 0:e[t.name])?{[t.name]:t.widget}:{},items:[]}}}},86583:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(65836),i=e(92472),o=e(11279);t.SlicePrimaryContent=r.union([o.NestableContent,i.GroupContent]),t.SlicePrimaryLegacy=n=>{let t=(0,i.GroupLegacy)(n),e=(0,o.NestableLegacy)(n);return{decode:r=>n.fieldType===u.GroupFieldType?t.decode(r):e.decode(r),encode:n=>(0,i.isGroupContent)(n)?t.encode(n):e.encode(n)}},t.isSlicePrimaryContent=n=>(0,o.isNestableContent)(n)||(0,i.isGroupContent)(n)},75255:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=e(22970),u=(0,r.__importStar)(e(32521)),i=e(38879),o=e(82541),c=e(612);t.SliceLegacy=n=>({decode:t=>(()=>{switch(n.fieldType){case"Slice":return(0,i.CompositeSliceLegacy)(n);case"SharedSlice":return(0,o.SharedSliceLegacy)(n);default:return(0,c.SimpleSliceLegacy)(n)}})().decode(t),encode:t=>{switch(t.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(n).encode(t);case"CompositeSliceContent":return(0,i.CompositeSliceLegacy)(n).encode(t);default:return(0,c.SimpleSliceLegacy)(n).encode(t)}}}),t.SliceContent=u.union([i.CompositeSliceContent,o.SharedSliceContent,c.SimpleSliceContent]),(0,r.__exportStar)(e(38879),t),(0,r.__exportStar)(e(82541),t),(0,r.__exportStar)(e(612),t),(0,r.__exportStar)(e(86583),t)},30413:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(63690),f=e(76677),l=e(92472),p=e(11279),d=e(61789),s=e(75255),h=e(38879),m=e(82541),v=e(612);function g(n){return(0,h.isCompositeSliceContent)(n.widget)}function y(n){return(0,l.isGroupContent)(n.widget)||(0,p.isNestableContent)(n.widget)}t.SliceItemContent=c.type({key:c.string,name:c.string,maybeLabel:c.union([c.string,c.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(n){return(0,m.isSharedSliceContent)(n.widget)},t.isCompositeSliceItemContent=g,t.isSimpleSliceItemContent=y,t.sliceItemContentWithDefaultValues=function(n,t){var e;if("SharedSlice"===n.type&&(0,m.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(n,t);if("Slice"===n.type&&(0,h.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(n,t);if("Group"===n.type&&(0,l.isGroupContent)(t)&&(null===(e=n.config)||void 0===e?void 0:e.fields)){let e=(0,d.repeatableContentWithDefaultNestableContentValues)(n.config.fields,t.value);return{...t,value:e}}return t};let b=c.exact(c.intersection([c.type({key:c.string,value:c.unknown}),c.partial({label:(0,a.nullable)(c.string)})]));t.SlicesItemLegacy=n=>new c.Type("SlicesItemLegacy",n=>((0,m.isSharedSliceContent)(n.widget),(0,h.isCompositeSliceContent)(n.widget),(0,v.isSimpleSliceContent)(n.widget)),(t,e)=>(0,o.pipe)(b.decode(t),u.either.chain(r=>{var u;let o=r.key.indexOf("$"),a=r.key.substring(0,o>0?o:void 0),l=(0,f.getFieldCtx)({fieldKey:a,contentKey:r.key,ctx:n}),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,i.isLeft)(p)?c.failure(t,e):c.success({key:r.key,name:a,maybeLabel:null!==(u=r.label)&&void 0!==u?u:void 0,widget:p.right})})),t=>{let e=(0,f.getFieldCtx)({fieldKey:t.name,contentKey:t.key,ctx:n}),r=(0,s.SliceLegacy)(e).encode(t.widget);return{content:{key:t.key,label:t.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{},keys:(null==r?void 0:r.keys)||{}}}),t.migrateSliceItem=({model:n,content:t})=>g(t)&&(null==n?void 0:n.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(n,t):y(t)&&(null==n?void 0:n.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(n,t):t},12820:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(25456),a=e(65836),f=e(79920),l=e(38879),p=e(82541),d=e(612),s=e(30413);t.SlicesContentType="SliceContentType",t.isSlicesContent=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.SlicesContentType,t.SlicesLegacy=n=>{let e=o.array((0,s.SlicesItemLegacy)(n));return new o.Type("SlicesLegacy",t.isSlicesContent,n=>(0,i.pipe)(e.decode(n),u.either.map(n=>({__TYPE__:t.SlicesContentType,value:n}))),t=>{let r=e.encode(t.value);return{content:r.map(n=>n.content),types:r.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:"Slices"}),keys:r.reduce((n,t)=>({...n,...t.keys}),{})}})},t.SlicesContent=o.type({__TYPE__:o.literal(t.SlicesContentType),value:o.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(n,t){var e;let r=null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.choices;if(void 0===r)return t;let u=t.value.map(n=>{let t=r[n.name];if(t){let e=(0,s.sliceItemContentWithDefaultValues)(t,n.widget);return{...n,widget:e}}return n});return{...t,value:u}},t.traverseSlices=function({path:n,key:t,model:e,content:r}){return({transformWidget:u=({content:n})=>n,transformSlice:i=({content:n})=>n})=>{let o=r.value.reduce((t,r)=>{let o=e&&function(n,t,e){var r,u;let i=null===(u=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===u?void 0:u[e.name];return(()=>{if((0,s.isSharedSliceItemContent)(e)&&i&&(0,a.isStaticSharedSlice)(i)){let n=i.variations.find(n=>n.id===e.widget.variation);return n?{type:"SharedSlice",sliceName:i.id,variationId:n.id,fields:{primary:n.primary||{},items:n.items||{}}}:void 0}})()||(()=>{var r;let u=c.ContentPath.append(c.ContentPath.serialize(n),e.name),i=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(n=>{var t;return!!(0,a.isStaticSharedSlice)(n)&&!!(null===(t=n.legacyPaths)||void 0===t?void 0:t[u])});if(!i)return;let o=null==i?void 0:i.variations.find(n=>{var t;return n.id===(null===(t=i.legacyPaths)||void 0===t?void 0:t[u])});if(o)return{type:"SharedSlice",sliceName:i.id,variationId:o.id,fields:{primary:o.primary||{},items:o.items||{}}}})()||(()=>{if(i){if((0,a.isCompositeSlice)(i))return{type:"Slice","non-repeat":i["non-repeat"]||{},repeat:i.repeat||{}};if((0,a.isLegacySlice)(i))return i}})()}(n,e,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:n.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(u,i):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:n.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="Slice"||(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(u,i):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:n.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:o&&(null==o?void 0:o.type)!=="Slice"?o:void 0,content:r})(u,i):void 0;return f?t.concat(f):t},[]);return u({path:n,key:t,apiId:t,model:e,content:{__TYPE__:r.__TYPE__,value:o}})}}},92636:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(75255),t),(0,r.__exportStar)(e(30413),t),(0,r.__exportStar)(e(12820),t)},61789:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=e(65836),u=e(92472),i=e(11279);t.withDefaultSlicePrimaryContentValues=function(n,t){for(let[e,o]of Object.entries(n)){let n=t[e];if(void 0===n){if(o.type===r.GroupFieldType)t[e]=(0,u.groupContentWithDefaultValues)(o,u.GroupContentDefaultValue);else{let n=(0,i.NestableContentDefaultValue)(o);n&&(t[e]=n)}continue}o.type===r.GroupFieldType&&(0,u.isGroupContent)(n)&&(t[e]=(0,u.groupContentWithDefaultValues)(o,n))}return t},t.withDefaultNestableContentValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>{if(void 0===t[e]){let t=(0,i.NestableContentDefaultValue)(r);return void 0!==t?{...n,[e]:t}:n}return n},t)},t.repeatableContentWithDefaultNestableContentValues=function(n,t){let e=Object.entries(n);return t.map(n=>e.reduce((t,[e,r])=>{var o;let c=n.value.find(([n])=>n===e);if("Group"===r.type){let n=(0,u.groupContentWithDefaultValues)(r,null!==(o=null==c?void 0:c[1])&&void 0!==o?o:{__TYPE__:u.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([n])=>n!==e),...n?[[e,n]]:[]]}}if(!c){let n=(0,i.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...n?[[e,n]]:[]]}}return t},n))}},80435:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(68672),t),(0,r.__exportStar)(e(76563),t),(0,r.__exportStar)(e(76677),t)},79920:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withKey=t.hasContentType=t.hasFieldContentType=void 0;let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521)),o=e(82163),c=e(76563);function a(n){return"object"==typeof n&&null!==n&&"__TYPE__"in n}t.hasFieldContentType=function(n){return a(n)&&n.__TYPE__===c.FieldContentType&&(null==n?void 0:n.type)!==void 0&&"string"==typeof n.type&&(0,u.isRight)(c.FieldType.decode(n.type))},t.hasContentType=a;let f=n=>"string"==typeof n&&(0,o.validate)(n),l=new i.Type("UUID",f,(n,t)=>void 0===n?i.success((0,o.v4)()):f(n)?i.success(n):i.failure(n,t),i.identity);t.withKey=function(n){return i.intersection([i.strict({key:l}),n])}},53277:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCustomType=t.collectSharedSlices=t.flattenCustomTypeFields=t.filterMissingSharedSlices=t.collectWidgets=t.validateSlices=t.toStatic=t.flattenSections=t.flattenWidgets=t.CustomType=t.StaticCustomType=t.CustomTypeFormat=void 0;let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521)),o=e(67165),c=e(83981),a=e(58788);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(n){super(),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.slices=n,this.message=this._formatError(n)}_formatError(n){let t=n.map(n=>` - ${n}`);return`The following slices doesn't exists in your Prismic repository:
|
|
4
|
+
${t.join("\n")}
|
|
5
|
+
`}}function l(n){return i.exact(i.intersection([i.type({id:i.string,label:c.StringOrNull,repeatable:(0,o.withFallback)(i.boolean,!0),json:i.record(i.string,n),status:(0,o.withFallback)(i.boolean,!0)}),i.partial({format:(0,o.withFallback)(i.keyof(t.CustomTypeFormat),"custom")})]))}function p(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])}function d(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>{let u=Object.entries(r).reduce((n,[e,r])=>{let u=t(e,r);return u?{...n,[e]:u}:n},{});return{...n,[e]:u}},{});return{...n,json:e}}t.StaticCustomType=l(a.StaticSection),t.CustomType=l(a.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])},t.toStatic=function(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>({...n,[e]:a.Sections.toStatic(r,t)}),{});return{...n,json:e}},t.validateSlices=function(n,t){let e=(function(n){let t=p(n).filter(([,n])=>"Slices"===n.type).reduce((n,[,t])=>{let e=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,n])=>"SharedSlice"===n.type).map(([n])=>n);return n.concat(e)},[]);return function(n){return t.map(n)}})(n)(n=>{if(!t.get(n))return n}).filter(Boolean);return e.length>0?(0,u.left)(new f(e)):(0,u.right)(n)},t.collectWidgets=d,t.filterMissingSharedSlices=function(n,t){return d(n,(n,e)=>{if("Slices"===e.type){if(!e.config||!e.config.choices)return e;let n=Object.entries(e.config.choices).reduce((n,[e,r])=>"SharedSlice"!==r.type||t.get(e)?{...n,[e]:r}:n,{}),r={...e.config,choices:n};return{...e,config:r}}return e})},t.flattenCustomTypeFields=function(n){return Object.values(n.json).reduce((n,t)=>({...n,...t}),{})},t.collectSharedSlices=function(n){return Object.entries(n.fields).reduce((n,[,t])=>{var e;return"Slices"===t.type||"Choice"===t.type?{...n,...Object.entries((null===(e=t.config)||void 0===e?void 0:e.choices)||{}).reduce((n,[t,e])=>"SharedSlice"===e.type?{...n,[t]:e}:n,{})}:n},{})},t.traverseCustomType=function(n){let t;let{customType:e,onField:r}=n;for(let[n,u]of Object.entries(e.json)){let i=(0,a.traverseSection)({path:[n],section:u,onField:r});i!==u&&(t||(t={...e.json}),t[n]=i)}return t?{...e,json:t}:e}},58788:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSection=t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(49182),i=e(5875),o=e(65937);function c(n){return r.record(u.WidgetKey,n)}t.sectionReader=c,t.StaticSection=c(o.StaticWidget),t.DynamicSection=c(o.DynamicWidget),t.Sections={toStatic:(n,t)=>Object.entries(n).reduce((n,[e,r])=>({...n,[e]:o.Widgets.toStatic(r,t)}),{})},t.traverseSection=function(n){let t;let{path:e,section:r,onField:u}=n;for(let[n,o]of Object.entries(r)){let c;let a=[...e,n];switch(o.type){case"Choice":case"Slices":c=(0,i.traverseSlices)({path:a,slices:o,onField:u});break;case"Group":c=u({path:a,key:n,field:(0,i.traverseGroup)({path:a,group:o,onField:u})});break;default:c=u({path:a,key:n,field:o})}c!==o&&(t||(t={...r}),t[n]=c)}return null!=t?t:r}},80647:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(e=t.DiffOperation||(t.DiffOperation={})).Added="added",e.Removed="removed",e.Updated="updated"},97225:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=e(63076),u=e(80647),i=e(75192);t.SliceComparator={compare(n,t){if(!n&&t)return{op:u.DiffOperation.Added,value:t};if(n&&!t)return{op:u.DiffOperation.Removed};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"variations"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),o=Object.entries(r.Objects.zipObjects(n&&r.Arrays.toRecord(n.variations,n=>n.id),t&&r.Arrays.toRecord(t.variations,n=>n.id))).reduce((n,[t,e])=>{if(!e)return n;let r=i.VariationComparator.compare(e.left,e.right);return r?{...n,[t]:r}:n},{}),c={...e,...r.Objects.isNotEmpty(o)?{variations:o}:{}};if(r.Objects.isNotEmpty(c))return{op:u.DiffOperation.Updated,value:c}}}},75192:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=e(63076),u=e(9201),i=e(80647);function o(n,t){let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>{if(JSON.stringify(null==e?void 0:e.left)===JSON.stringify(null==e?void 0:e.right))return n;let r=(()=>{var n,t,r,c,a,f,l;if((null==e?void 0:e.left)||(null==e?void 0:e.right)){if((null==e?void 0:e.left)&&!e.right)return{op:i.DiffOperation.Removed};if(!(null==e?void 0:e.left)&&(null==e?void 0:e.right)){if((null===(n=e.right)||void 0===n?void 0:n.type)===u.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o(void 0,null===(t=e.right.config)||void 0===t?void 0:t.fields)||{},{op:i.DiffOperation.Added,value:n}}return{op:i.DiffOperation.Added,value:e.right}}if((null===(r=e.right)||void 0===r?void 0:r.type)===u.GroupFieldType){let n={...e.right,config:{...e.right.config,fields:{}}};return n.config.fields=o((null===(c=e.left)||void 0===c?void 0:c.type)===u.GroupFieldType?null===(f=null===(a=e.left)||void 0===a?void 0:a.config)||void 0===f?void 0:f.fields:void 0,null===(l=e.right.config)||void 0===l?void 0:l.fields)||{},{op:i.DiffOperation.Updated,value:n}}return{op:i.DiffOperation.Updated,value:e.right}}})();return r?{...n,[t]:r}:n},{});return r.Objects.isNotEmpty(e)?e:void 0}t.VariationComparator={compare(n,t){if(n&&!t)return{op:i.DiffOperation.Removed};if(!n&&t)return{op:i.DiffOperation.Added,value:t};let e=Object.entries(r.Objects.zipObjects(n,t)).reduce((n,[t,e])=>"primary"===t||"items"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{}),u=o(null==n?void 0:n.primary,null==t?void 0:t.primary),c=o(null==n?void 0:n.items,null==t?void 0:t.items),a={...e,...u?{primary:u}:{},...c?{items:c}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},45063:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},10259:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(80647),t),(0,r.__exportStar)(e(97225),t),(0,r.__exportStar)(e(75192),t),(0,r.__exportStar)(e(45063),t)},65836:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(53277),t),(0,r.__exportStar)(e(10259),t),(0,r.__exportStar)(e(58788),t),(0,r.__exportStar)(e(5875),t)},9201:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroup=t.traverseNestedGroup=t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(49182),i=e(83981),o=e(5854);t.GroupFieldType="Group";let c=n=>r.exact(r.partial({label:i.StringOrNull,repeat:r.boolean,fields:r.record(u.WidgetKey,n)})),a=n=>r.exact(r.intersection([r.type({type:r.literal(t.GroupFieldType)}),r.partial({fieldset:i.StringOrNull,icon:r.string,description:r.string,config:c(n)})]));function f(n){var t;let e;let{path:r,group:u,onField:i}=n;if(!(null===(t=u.config)||void 0===t?void 0:t.fields))return u;for(let[n,t]of Object.entries(u.config.fields)){let o=i({path:[...r,n],key:n,field:t});t!==o&&(e||(e={...u.config.fields}),e[n]=o)}return e?{...u,config:{...u.config,fields:e}}:u}t.NestedGroupConfig=c(o.NestableWidget),t.NestedGroup=a(o.NestableWidget),t.GroupConfig=c(r.union([o.NestableWidget,t.NestedGroup])),t.Group=a(r.union([o.NestableWidget,t.NestedGroup])),t.traverseNestedGroup=f,t.traverseGroup=function(n){var t;let e;let{path:r,group:u,onField:i}=n;if(!(null===(t=u.config)||void 0===t?void 0:t.fields))return u;for(let[n,t]of Object.entries(u.config.fields)){let o;let c=[...r,n];o="Group"===t.type?f({path:c,group:t,onField:i}):t;let a=i({path:c,key:n,field:o});o!==a&&(e||(e={...u.config.fields}),e[n]=a)}return e?{...u,config:{...u.config,fields:e}}:u}},56393:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.UIDFieldType="UID",t.UIDConfig=r.exact(r.partial({label:u.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.UID=r.exact(r.intersection([r.type({type:r.literal(t.UIDFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.UIDConfig})]))},65937:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(9201),i=e(21866),o=e(5854),c=e(36730),a=e(56393);function f(n){return r.union([a.UID,o.NestableWidget,u.Group,n])}t.widgetReader=f,t.StaticWidget=f(c.StaticSlices),t.DynamicWidget=f(c.DynamicSlices),t.FieldType=r.keyof({[i.ColorFieldType]:null,[i.BooleanFieldType]:null,[i.NumberFieldType]:null,[i.EmbedFieldType]:null,[i.GeoPointFieldType]:null,[i.DateFieldType]:null,[i.RangeFieldType]:null,[i.RichTextFieldType]:null,[i.SelectFieldType]:null,[i.SeparatorFieldType]:null,[i.TableFieldType]:null,[i.TextFieldType]:null,[i.TimestampFieldType]:null,[i.LinkFieldType]:null,[i.ImageFieldType]:null,[i.IntegrationFieldType]:null,[a.UIDFieldType]:null,[u.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(n,t){switch(n.type){case"Choice":case"Slices":return c.Slices.toStatic(n,t);default:return n}}}},5875:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(9201),t),(0,r.__exportStar)(e(21866),t),(0,r.__exportStar)(e(94641),t),(0,r.__exportStar)(e(87224),t),(0,r.__exportStar)(e(56393),t),(0,r.__exportStar)(e(65937),t)},29855:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.BooleanFieldType="Boolean",t.BooleanConfig=r.exact(r.partial({label:u.StringOrNull,default_value:r.boolean,placeholder_true:r.string,placeholder_false:r.string})),t.BooleanField=r.exact(r.intersection([r.type({type:r.literal(t.BooleanFieldType)}),r.partial({config:t.BooleanConfig})]))},62645:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.ColorFieldType="Color",t.ColorConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string})),t.Color=r.exact(r.intersection([r.type({type:r.literal(t.ColorFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.ColorConfig})]))},13667:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.DateFieldType="Date",t.DateConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,default:r.string})),t.Date=r.exact(r.intersection([r.type({type:r.literal(t.DateFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.DateConfig})]))},52128:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.EmbedFieldType="Embed",t.EmbedConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),t.Embed=r.exact(r.intersection([r.type({type:r.literal(t.EmbedFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.EmbedConfig})]))},4607:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=r.exact(r.partial({label:u.StringOrNull})),t.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(t.GeoPointFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.GeoPointConfig})]))},41914:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=e(22970),u=(0,r.__importStar)(e(32521)),i=e(83981),o=(0,r.__importDefault)(e(5233));t.ImageFieldType="Image",t.Thumbnail=u.exact(u.intersection([u.type({name:u.string}),o.default])),t.ImageConfig=u.exact(u.partial({label:i.StringOrNull,placeholder:u.string,constraint:o.default,thumbnails:u.readonlyArray(t.Thumbnail)})),t.Image=u.exact(u.intersection([u.type({type:u.literal(t.ImageFieldType)}),u.partial({fieldset:i.StringOrNull,config:t.ImageConfig})]))},4596:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,catalog:r.string})),t.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(t.IntegrationFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.IntegrationFieldConfig})]))},25202:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=t.CustomTypes=void 0;let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521)),o=e(67165),c=e(83981),a=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return i.success(n)},f=n=>{if("string"==typeof n)return i.success([n])},l=new i.Type("MasksArrayString",n=>n instanceof Array,(n,t)=>u.either.chain(i.union([i.array(i.string),i.string]).validate(n,t),e=>a(e)||f(e)||i.failure(n,t)),n=>n),p=new i.Type("CustomTypeLevel2FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>"string"==typeof n),(n,t)=>u.either.chain(i.array(i.string).validate(n,t),e=>new Set(e).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),d=i.union([i.strict({id:i.string,fields:p}),i.string]),s=new i.Type("CustomTypeLevel2Fields",n=>Array.isArray(n)&&n.every(n=>d.is(n)),(n,t)=>u.either.chain(i.array(d).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),h=i.union([i.string,i.strict({id:i.string,fields:s})]),m=new i.Type("CustomTypesLevel2",n=>Array.isArray(n)&&n.every(n=>h.is(n)),(n,t)=>u.either.chain(i.array(h).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Custom types have duplicates.")),n=>n),v=i.strict({id:i.string,customtypes:m}),g=i.union([v,i.string]),y=new i.Type("CustomTypeLevel1FieldGroupFields",n=>Array.isArray(n)&&n.every(n=>g.is(n)),(n,t)=>u.either.chain(i.array(g).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),b=i.union([i.strict({id:i.string,fields:y}),v,i.string]),_=new i.Type("CustomTypeLevel1Fields",n=>Array.isArray(n)&&n.every(n=>b.is(n)),(n,t)=>u.either.chain(i.array(b).validate(n,t),e=>new Set(e.map(n=>"string"==typeof n?n:n.id)).size===e.length?i.success(e):i.failure(n,t,"Fields have duplicates.")),n=>n),I=i.union([i.string,i.strict({id:i.string,fields:_})]);t.CustomTypes=new i.Type("CustomTypes",n=>Array.isArray(n)&&n.every(n=>I.is(n)),(n,t)=>u.either.chain(i.array(I).validate(n,t),e=>{let r=new Set,u=new Set;for(let o of e){let e=!1;if("string"==typeof o)e=u.has(o),r.add(o);else{let{id:n}=o;e=r.has(n)||u.has(n),u.add(n)}if(e)return i.failure(n,t,"Custom types have duplicates.")}return i.success(e)}),n=>n),t.LinkFieldType="Link",t.LinkConfig=i.exact(i.partial({label:c.StringOrNull,useAsTitle:i.boolean,placeholder:i.string,select:(0,o.withFallback)(i.union([i.literal("media"),i.literal("document"),i.literal("web"),i.null]),null),customtypes:t.CustomTypes,masks:l,tags:l,allowTargetBlank:i.boolean,allowText:i.boolean,repeat:i.boolean,variants:i.array(i.string)})),t.Link=i.exact(i.intersection([i.type({type:i.literal(t.LinkFieldType)}),i.partial({fieldset:c.StringOrNull,config:t.LinkConfig})]))},5854:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(29855),i=e(62645),o=e(13667),c=e(52128),a=e(4607),f=e(41914),l=e(4596),p=e(25202),d=e(82358),s=e(68467),h=e(39655),m=e(38438),v=e(27973),g=e(1772),y=e(36698),b=e(11862);t.NestableWidget=r.union([i.Color,u.BooleanField,c.Embed,a.GeoPoint,o.Date,d.Number,s.Range,h.RichText,m.Select,v.Separator,g.Table,y.Text,b.Timestamp,p.Link,f.Image,l.IntegrationField])},82358:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(46143),i=e(83981);t.NumberFieldType="Number",t.NumberConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,min:r.union([r.number,u.NumberFromString]),max:r.union([r.number,u.NumberFromString]),step:r.union([r.number,u.NumberFromString])})),t.Number=r.exact(r.intersection([r.type({type:r.literal(t.NumberFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.NumberConfig})]))},68467:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(46143),i=e(83981);t.RangeFieldType="Range",t.RangeConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,min:r.union([r.number,u.NumberFromString]),max:r.union([r.number,u.NumberFromString]),step:r.union([r.number,u.NumberFromString])})),t.Range=r.exact(r.intersection([r.type({type:r.literal(t.RangeFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.RangeConfig})]))},39655:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=e(22970),u=e(89155),i=e(29797),o=e(7313),c=(0,r.__importStar)(e(32521)),a=e(83981),f=(0,r.__importDefault)(e(5233));t.RichTextFieldType="StructuredText",t.DEFAULT_OPTION="paragraph",t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},t.RichTextNodeTypeCodec=c.keyof({[t.RichTextNodeType.heading1]:null,[t.RichTextNodeType.heading2]:null,[t.RichTextNodeType.heading3]:null,[t.RichTextNodeType.heading4]:null,[t.RichTextNodeType.heading5]:null,[t.RichTextNodeType.heading6]:null,[t.RichTextNodeType.paragraph]:null,[t.RichTextNodeType.strong]:null,[t.RichTextNodeType.em]:null,[t.RichTextNodeType.preformatted]:null,[t.RichTextNodeType.hyperlink]:null,[t.RichTextNodeType.image]:null,[t.RichTextNodeType.embed]:null,[t.RichTextNodeType.list]:null,[t.RichTextNodeType.orderedList]:null,[t.RichTextNodeType.rtl]:null});let l=new c.Type("RichTextOptions",n=>"string"==typeof n,n=>(0,o.pipe)(c.union([c.string,c.null]).decode(n),u.either.map(n=>{if(!n)return t.DEFAULT_OPTION;let e=n.split(",").map(n=>n.trim()).filter(n=>(0,i.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(n)));return e.length?e.join(","):t.DEFAULT_OPTION})),n=>n),p=n=>{if(!n)return c.success([])},d=n=>{if(n instanceof Object){if(!Object.entries(n).length)return c.success([]);if(n[""])return c.success(n[""].map(n=>n.name));let t=Object.entries(n).reduce((n,[,t])=>n.concat(t.map(n=>n.name)),[]).filter(Boolean);return c.success(t)}},s=n=>{if(n instanceof Array&&n.reduce((n,t)=>n&&"string"==typeof t,!0))return c.success(n)},h=n=>{if("string"==typeof n)return c.success([n])},m=new c.Type("RichTextLabels",n=>n instanceof Array,(n,t)=>{let e=c.record(c.string,c.readonlyArray(c.record(c.literal("name"),c.string))),r=c.readonlyArray(c.string);return(0,o.pipe)(c.union([e,r,c.string,c.null]).decode(n),u.either.chain(e=>p(e)||s(e)||d(e)||h(e)||c.failure(n,t)))},n=>n);t.RichTextConfig=c.exact(c.partial({label:a.StringOrNull,placeholder:c.string,useAsTitle:c.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:c.boolean})),t.RichText=c.exact(c.intersection([c.type({type:c.literal(t.RichTextFieldType)}),c.partial({fieldset:a.StringOrNull,config:t.RichTextConfig})]))},38438:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.SelectFieldType="Select",t.SelectConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,u.StringFromNumber,u.StringFromBoolean]))})),t.Select=r.exact(r.intersection([r.type({type:r.literal(t.SelectFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.SelectConfig})]))},27973:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.SeparatorFieldType="Separator",t.SeparatorConfig=r.exact(r.partial({label:u.StringOrNull})),t.Separator=r.exact(r.intersection([r.type({type:r.literal(t.SeparatorFieldType)}),r.partial({config:t.SeparatorConfig})]))},1772:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.Table=t.TableFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981),i=e(39655);t.TableFieldType="Table";let o=r.exact(r.partial({label:u.StringOrNull}));t.Table=r.exact(r.intersection([r.type({type:r.literal(t.TableFieldType)}),r.partial({config:o})])),t.TableCell={type:"StructuredText",config:{multi:[i.RichTextNodeType.paragraph,i.RichTextNodeType.strong,i.RichTextNodeType.em,i.RichTextNodeType.hyperlink].join(",")}}},36698:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.TextFieldType="Text",t.TextConfig=r.exact(r.partial({label:u.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.Text=r.exact(r.intersection([r.type({type:r.literal(t.TextFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.TextConfig})]))},11862:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(83981);t.TimestampFieldType="Timestamp",t.TimestampConfig=r.exact(r.partial({label:u.StringOrNull,placeholder:r.string,default:r.string})),t.Timestamp=r.exact(r.intersection([r.type({type:r.literal(t.TimestampFieldType)}),r.partial({fieldset:u.StringOrNull,config:t.TimestampConfig})]))},21866:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(29855),t),(0,r.__exportStar)(e(62645),t),(0,r.__exportStar)(e(13667),t),(0,r.__exportStar)(e(52128),t),(0,r.__exportStar)(e(4607),t),(0,r.__exportStar)(e(41914),t),(0,r.__exportStar)(e(4596),t),(0,r.__exportStar)(e(25202),t),(0,r.__exportStar)(e(5854),t),(0,r.__exportStar)(e(82358),t),(0,r.__exportStar)(e(68467),t),(0,r.__exportStar)(e(39655),t),(0,r.__exportStar)(e(38438),t),(0,r.__exportStar)(e(27973),t),(0,r.__exportStar)(e(1772),t),(0,r.__exportStar)(e(36698),t),(0,r.__exportStar)(e(11862),t)},5233:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521)),o=e(79988),c=e(83981),a=new i.Type("SideConstraints",n=>!n||"number"==typeof n,(n,t)=>u.either.chain(i.union([i.literal("auto"),i.literal(""),i.Int,o.IntFromString,c.IntFromNumber,c.IntFromPixels,i.null]).validate(n,t),n=>"auto"===n||""===n?i.success(null):i.success(n)),n=>n),f=i.partial({width:a,height:a});t.default=f},94641:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var u=e(5233);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(u).default}})},15568:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseCompositeSlice=t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(49182),i=e(83981),o=e(5854);t.CompositeSliceType="Slice",t.CompositeSliceConfig=r.exact(r.partial({label:i.StringOrNull})),t.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(t.CompositeSliceType)}),r.partial({fieldset:i.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(u.WidgetKey,o.NestableWidget),repeat:r.record(u.WidgetKey,o.NestableWidget),config:t.CompositeSliceConfig})])),t.isCompositeSlice=function(n){return"Slice"===n.type},t.traverseCompositeSlice=function(n){var t,e;let r,u;let{path:i,slice:o,onField:c}=n;for(let[n,e]of Object.entries(null!==(t=o["non-repeat"])&&void 0!==t?t:{})){let t=c({path:[...i,"non-repeat",n],key:n,field:e});e!==t&&(r||(r={...o["non-repeat"]}),r[n]=t)}for(let[n,t]of Object.entries(null!==(e=o.repeat)&&void 0!==e?e:{})){let e=c({path:[...i,"repeat",n],key:n,field:t});t!==e&&(u||(u={...o.repeat}),u[n]=e)}return u||r?{...o,...r&&{"non-repeat":r},...u&&{repeat:u}}:o}},24467:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(9201),i=e(5854);t.LegacySlice=r.union([i.NestableWidget,u.NestedGroup]),t.isLegacySlice=function(n){return"Slice"!==n.type&&"SharedSlice"!==n.type}},79125:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSlice=t.traverseVariation=t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(67165),i=e(49182),o=e(9201),c=e(5854),a=e(7127);t.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,u.withFallback)(r.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:r.string,version:r.string}),r.partial({display:r.string,primary:r.record(i.WidgetKey,a.SlicePrimaryWidget),items:r.record(i.WidgetKey,c.NestableWidget)})])),t.SharedSliceType="SharedSlice";let f=r.string,l=r.string;function p(n){var t,e;let r,u;let{path:i,variation:c,onField:a}=n;for(let[n,e]of Object.entries(null!==(t=c.primary)&&void 0!==t?t:{})){let t;let u=[...i,"primary",n];t="Group"===e.type?(0,o.traverseGroup)({path:u,group:e,onField:a}):e;let f=a({path:u,key:n,field:t});t!==f&&(r||(r={...c.primary}),r[n]=f)}for(let[n,t]of Object.entries(null!==(e=c.items)&&void 0!==e?e:{})){let e=a({path:[...i,"items",n],key:n,field:t});t!==e&&(u||(u={...c.items}),u[n]=e)}return r||u?{...c,...r&&{primary:r},...u&&{items:u}}:c}t.SharedSlice=r.exact(r.intersection([r.type({id:r.string,type:r.literal(t.SharedSliceType),name:r.string,variations:r.readonlyArray(t.Variation)}),r.partial({description:r.string,legacyPaths:r.record(f,l)})])),t.isStaticSharedSlice=function(n){return"SharedSlice"===n.type},t.isDynamicSharedSlice=function(n){return"SharedSlice"===n.type},t.traverseVariation=p,t.traverseSharedSlice=function(n){let t;let{path:e,slice:r,onField:u}=n;for(let n=0;n<r.variations.length;n++){let i=r.variations[n];if(!i)continue;let o=p({path:[...e,i.id],variation:i,onField:u});o!==i&&(t||(t=[...r.variations]),t[n]=o)}return t?{...r,variations:t}:r}},46452:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(79125);t.SharedSliceRef=r.exact(r.type({type:r.literal(u.SharedSliceType)}))},68037:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},7127:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(9201),i=e(21866);t.SlicePrimaryWidget=r.union([i.NestableWidget,u.Group]),t.isSlicePrimaryWidget=n=>i.NestableWidget.is(n)||u.Group.is(n)},36730:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=t.SlicesFieldType=t.LegacySlicesFieldType=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(49182),i=e(83981),o=e(9201),c=e(15568),a=e(24467),f=e(79125),l=e(46452);function p(n){return r.exact(r.partial({label:i.StringOrNull,labels:t.SlicesLabels,choices:r.record(u.WidgetKey,r.union([a.LegacySlice,c.CompositeSlice,n]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=r.union([r.record(r.string,r.readonlyArray(r.exact(r.intersection([r.type({name:r.string}),r.partial({display:r.string})])))),r.null]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(n,t){let e=Object.entries(n.choices||{}).reduce((n,[e,r])=>{if("SharedSlice"!==r.type)return{...n,[e]:r};{let r=t.get(e);return r?{...n,[e]:r}:n}},{});return{...n,choices:e}}};function s(n){return r.exact(r.intersection([r.type({type:r.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),r.partial({fieldset:i.StringOrNull,config:n})]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:d.toStatic(n.config,t)}:n},t.traverseSlices=function(n){var t;let e;let{path:r,slices:u,onField:i}=n;if(!(null===(t=u.config)||void 0===t?void 0:t.choices))return u;for(let[n,t]of Object.entries(u.config.choices)){let a;let l=[...r,n];switch(t.type){case"Slice":a=(0,c.traverseCompositeSlice)({path:l,slice:t,onField:i});break;case"SharedSlice":a="variations"in t?(0,f.traverseSharedSlice)({path:l,slice:t,onField:i}):t;break;case"Group":a=i({path:l,key:n,field:(0,o.traverseNestedGroup)({path:l,group:t,onField:i})});break;default:a=i({path:l,key:n,field:t})}a!==t&&(e||(e={...u.config.choices}),e[n]=a)}return e?{...u,config:{...u.config,choices:e}}:u}},41362:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,e(22970).__importStar)(e(32521)),u=e(15568),i=e(79125);t.SlicesTypes=r.keyof({[u.CompositeSliceType]:null,[i.SharedSliceType]:null})},87224:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970);(0,r.__exportStar)(e(15568),t),(0,r.__exportStar)(e(24467),t),(0,r.__exportStar)(e(79125),t),(0,r.__exportStar)(e(46452),t),(0,r.__exportStar)(e(68037),t),(0,r.__exportStar)(e(7127),t),(0,r.__exportStar)(e(36730),t),(0,r.__exportStar)(e(41362),t)},90664:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(n,t){return n.reduce((n,e)=>{let r=t(e);return{...n,[r]:e}},{})}},13538:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521));t.zipObjects=function(n,t){return[...new Set(Object.keys(n||{}).concat(Object.keys(t||{})))].reduce((e,r)=>{let u=null==n?void 0:n[r],i=null==t?void 0:t[r];return{...e,[r]:{left:u,right:i}}},{})},t.isNotEmpty=function(n){return!!Object.keys(n).length},t.withOptionals=function(n,t){return{...n,...t.reduce((n,[t,e])=>e?{...n,[t]:e}:n,{})}};let o=i.record(i.string,i.unknown);t.isObject=function(n){return(0,u.isRight)(o.decode(n))},t.mapValues=function(n,t){return Object.entries(n).reduce((n,[e,r])=>({...n,[e]:t(r,e)}),{})}},63076:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=e(22970);t.HexaColorCode=(0,r.__importStar)(e(58429)),t.Arrays=(0,r.__importStar)(e(90664)),t.Objects=(0,r.__importStar)(e(13538))},65769:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=e(22970),u=e(89155),i=e(7313),o=(0,r.__importStar)(e(32521)),c=e(63690);t.String=(0,c.withCustomError)(o.string,()=>"The value must be a string"),t.StringOrNull=(0,c.withCustomError)(o.union([o.string,o.null]),()=>"The value must be a string or null"),t.Number=(0,c.withCustomError)(o.number,()=>"The value must be a number"),t.NumberOrNull=(0,c.withCustomError)(o.union([o.number,o.null]),()=>"The value must be a number or null"),t.Boolean=(0,c.withCustomError)(o.boolean,()=>"The value must be a boolean"),t.EmptyObject=o.UnknownRecord.pipe(new o.Type("emptyObject",n=>o.UnknownRecord.is(n),(n,t)=>Object.keys(n).length>0?o.failure(n,t,"The object is not empty."):o.success({}),o.identity)),t.EmptyArray=new o.Type("emptyArray",n=>o.UnknownArray.is(n)&&0===n.length,(n,t)=>(0,i.pipe)(o.UnknownArray.decode(n),u.either.chain(e=>e.length>0?o.failure(n,t,"The array is not empty."):o.success([]))),()=>[])},68367:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521)),c=e(83981);t.default=new o.Type("dateFromString",n=>n instanceof Date,(n,t)=>(0,i.pipe)(c.String.validate(n,t),(0,u.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.toISOString())},29991:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521));t.default=new o.Type("dateFromStringOrNumber",n=>n instanceof Date,(n,t)=>(0,i.pipe)(o.union([o.number,o.string]).validate(n,t),(0,u.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n)},70781:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521));t.default=new o.Type("dateFromTsMs",n=>n instanceof Date,(n,t)=>(0,i.pipe)(o.number.validate(n,t),(0,u.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.getTime())},28537:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=e(22970),u=e(29797),i=(0,r.__importStar)(e(32521)),o=e(65769);t.DefaultOrElse=n=>t=>new i.Type(`DefaultOrElse<${n.name}, ${t.name}>`,n=>null===n||t.is(n),(e,r)=>(0,u.isRight)(n.validate(e,r))?i.success(null):t.validate(e,r),n=>n?t.encode(n):void 0),t.NullOrElse=n=>(0,t.DefaultOrElse)(i.null)(n),t.EmptyObjectOrElse=n=>(0,t.DefaultOrElse)(o.EmptyObject)(n),t.EmptyArrayOrElse=n=>(0,t.DefaultOrElse)(o.EmptyArray)(n)},40225:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521));t.default=new o.Type("IntFromNumber",o.Int.is,(n,t)=>(0,i.pipe)(o.number.validate(n,t),(0,u.chain)(n=>o.Int.is(n)?o.success(n):o.success(Math.round(n)))),o.Int.encode)},63273:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521)),c=/^([0-9]+)px$/;t.default=new o.Type("IntFromPixels",o.Int.is,(n,t)=>(0,i.pipe)(o.string.validate(n,t),(0,u.chain)(e=>{try{let r=e.match(c);if(!r)return o.failure(n,t);let u=parseInt(r[1]);return o.success(u)}catch{return o.failure(n,t)}})),String)},49402:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(32521)),u=e(63690);t.default=(0,u.withCustomError)((0,u.refineType)(r.string,"nonEmptyString",n=>n.trim().length>0),()=>"The value must be a non-empty string")},86431:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=e(32521),c=(0,r.__importDefault)(e(96533));t.default=new o.Type("nonEmptyStringOrNull",n=>"string"==typeof n||null===n,(n,t)=>(0,i.pipe)(c.default.validate(n,t),(0,u.chain)(n=>"string"==typeof n&&n.length>0?(0,o.success)(n):(0,o.success)(null))),n=>n)},23131:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(32521)),u=e(63690);t.default=(0,u.nullable)(r.number)},27966:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(32521)),u=e(65769);t.default=(n,t,e)=>u.Number.pipe(new r.Type("numberInRange",n=>u.Number.is(n),(u,i)=>u>t||u<n?r.failure(u,i,`${e} must be a number between ${n} and ${t}`):r.success(u),r.identity))},25930:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,i.pipe)(o.boolean.validate(n,t),(0,u.chain)(n=>o.success(n.toString()))),n=>n)},66961:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,i.pipe)(o.number.validate(n,t),(0,u.chain)(n=>o.success(n.toString()))),n=>n)},96533:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,e(22970).__importStar)(e(32521)),u=e(63690);t.default=(0,u.nullable)(r.string)},50917:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(22970),u=e(19903),i=e(38906),o=(0,r.__importStar)(e(32521));t.default=new o.Type("TrimmedString",o.string.is,(n,t)=>(0,i.pipe)(o.string.validate(n,t),(0,u.chain)(n=>o.success(function(n){let t=0;for(;t<n.length&&n[t]<=" ";)t++;let e=n.length;for(;t<e&&n[e-1]<=" ";)e--;return n.substring(t,e)}(n)))),n=>n)},63690:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.withCustomError=t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=e(22970),u=e(89155),i=e(38906),o=(0,r.__importStar)(e(32521)),c=e(7862),a=e(74266);t.nullable=function(n){return o.union([n,o.null,o.undefined])},t.refineType=function(n,t,e){return new o.Type(t,n.is,(t,r)=>(0,i.pipe)(n.validate(t,r),u.either.chain(n=>e(n)?o.success(n):o.failure(t,r))),n.encode)},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.grouped=function(n,t){return n.reduce((n,e,r)=>(r%t==0?n.push([e]):n[Math.floor(r/t)].push(e),n),[])},t.objectToMap=function(n){return new Map(Object.entries(n))},t.isEmpty=function(n){for(let t in n)return!1;return!0},t.addType=function(n,t){return(0,a.mapOutput)(n,n=>({...n,__TYPE__:t}))},t.withCustomError=function(n,t){return(0,c.withValidate)(n,(e,r)=>u.either.mapLeft(n=>n.find(n=>n.message)?n:[{value:e,context:r,message:t(e,r),actual:e}])(n.validate(e,r)))}},83981:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberRange=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=e(22970);(0,r.__exportStar)(e(65769),t);var u=e(68367);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var i=e(29991);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=e(70781);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),(0,r.__exportStar)(e(28537),t),t.Function=(0,r.__importStar)(e(63690));var c=e(40225);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var a=e(63273);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var f=e(49402);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(86431);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(23131);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(27966);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(25930);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=e(66961);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=e(96533);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},82163:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}});var r=d(e(50115)),u=d(e(41119)),i=d(e(72083)),o=d(e(56452)),c=d(e(80522)),a=d(e(15725)),f=d(e(55820)),l=d(e(7651)),p=d(e(26330));function d(n){return n&&n.__esModule?n:{default:n}}},37881:function(n,t){function e(n){return(n+64>>>9<<4)+14+1}function r(n,t){let e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function u(n,t,e,u,i,o){var c;return r((c=r(r(t,n),r(u,o)))<<i|c>>>32-i,e)}function i(n,t,e,r,i,o,c){return u(t&e|~t&r,n,t,i,o,c)}function o(n,t,e,r,i,o,c){return u(t&r|e&~r,n,t,i,o,c)}function c(n,t,e,r,i,o,c){return u(t^e^r,n,t,i,o,c)}function a(n,t,e,r,i,o,c){return u(e^(t|~r),n,t,i,o,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e)}return function(n){let t=[],e=32*n.length,r="0123456789abcdef";for(let u=0;u<e;u+=8){let e=n[u>>5]>>>u%32&255,i=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);t.push(i)}return t}(function(n,t){n[t>>5]|=128<<t%32,n[e(t)-1]=t;let u=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<n.length;t+=16){let e=u,d=f,s=l,h=p;u=i(u,f,l,p,n[t],7,-680876936),p=i(p,u,f,l,n[t+1],12,-389564586),l=i(l,p,u,f,n[t+2],17,606105819),f=i(f,l,p,u,n[t+3],22,-1044525330),u=i(u,f,l,p,n[t+4],7,-176418897),p=i(p,u,f,l,n[t+5],12,1200080426),l=i(l,p,u,f,n[t+6],17,-1473231341),f=i(f,l,p,u,n[t+7],22,-45705983),u=i(u,f,l,p,n[t+8],7,1770035416),p=i(p,u,f,l,n[t+9],12,-1958414417),l=i(l,p,u,f,n[t+10],17,-42063),f=i(f,l,p,u,n[t+11],22,-1990404162),u=i(u,f,l,p,n[t+12],7,1804603682),p=i(p,u,f,l,n[t+13],12,-40341101),l=i(l,p,u,f,n[t+14],17,-1502002290),f=i(f,l,p,u,n[t+15],22,1236535329),u=o(u,f,l,p,n[t+1],5,-165796510),p=o(p,u,f,l,n[t+6],9,-1069501632),l=o(l,p,u,f,n[t+11],14,643717713),f=o(f,l,p,u,n[t],20,-373897302),u=o(u,f,l,p,n[t+5],5,-701558691),p=o(p,u,f,l,n[t+10],9,38016083),l=o(l,p,u,f,n[t+15],14,-660478335),f=o(f,l,p,u,n[t+4],20,-405537848),u=o(u,f,l,p,n[t+9],5,568446438),p=o(p,u,f,l,n[t+14],9,-1019803690),l=o(l,p,u,f,n[t+3],14,-187363961),f=o(f,l,p,u,n[t+8],20,1163531501),u=o(u,f,l,p,n[t+13],5,-1444681467),p=o(p,u,f,l,n[t+2],9,-51403784),l=o(l,p,u,f,n[t+7],14,1735328473),f=o(f,l,p,u,n[t+12],20,-1926607734),u=c(u,f,l,p,n[t+5],4,-378558),p=c(p,u,f,l,n[t+8],11,-2022574463),l=c(l,p,u,f,n[t+11],16,1839030562),f=c(f,l,p,u,n[t+14],23,-35309556),u=c(u,f,l,p,n[t+1],4,-1530992060),p=c(p,u,f,l,n[t+4],11,1272893353),l=c(l,p,u,f,n[t+7],16,-155497632),f=c(f,l,p,u,n[t+10],23,-1094730640),u=c(u,f,l,p,n[t+13],4,681279174),p=c(p,u,f,l,n[t],11,-358537222),l=c(l,p,u,f,n[t+3],16,-722521979),f=c(f,l,p,u,n[t+6],23,76029189),u=c(u,f,l,p,n[t+9],4,-640364487),p=c(p,u,f,l,n[t+12],11,-421815835),l=c(l,p,u,f,n[t+15],16,530742520),f=c(f,l,p,u,n[t+2],23,-995338651),u=a(u,f,l,p,n[t],6,-198630844),p=a(p,u,f,l,n[t+7],10,1126891415),l=a(l,p,u,f,n[t+14],15,-1416354905),f=a(f,l,p,u,n[t+5],21,-57434055),u=a(u,f,l,p,n[t+12],6,1700485571),p=a(p,u,f,l,n[t+3],10,-1894986606),l=a(l,p,u,f,n[t+10],15,-1051523),f=a(f,l,p,u,n[t+1],21,-2054922799),u=a(u,f,l,p,n[t+8],6,1873313359),p=a(p,u,f,l,n[t+15],10,-30611744),l=a(l,p,u,f,n[t+6],15,-1560198380),f=a(f,l,p,u,n[t+13],21,1309151649),u=a(u,f,l,p,n[t+4],6,-145523070),p=a(p,u,f,l,n[t+11],10,-1120210379),l=a(l,p,u,f,n[t+2],15,718787259),f=a(f,l,p,u,n[t+9],21,-343485551),u=r(u,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[u,f,l,p]}(function(n){if(0===n.length)return[];let t=8*n.length,r=new Uint32Array(e(t));for(let e=0;e<t;e+=8)r[e>>5]|=(255&n[e/8])<<e%32;return r}(n),8*n.length))}},97601:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:e}},80522:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},26330:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(55820))&&r.__esModule?r:{default:r};t.default=function(n){let t;if(!(0,u.default)(n))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e}},84494:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},92887:function(n,t){let e;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},28934:function(n,t){function e(n,t){return n<<t|n>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);let u=Math.ceil((n.length/4+2)/16),i=Array(u);for(let t=0;t<u;++t){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=n[64*t+4*r]<<24|n[64*t+4*r+1]<<16|n[64*t+4*r+2]<<8|n[64*t+4*r+3];i[t]=e}i[u-1][14]=(n.length-1)*8/4294967296,i[u-1][14]=Math.floor(i[u-1][14]),i[u-1][15]=(n.length-1)*8&4294967295;for(let n=0;n<u;++n){let u=new Uint32Array(80);for(let t=0;t<16;++t)u[t]=i[n][t];for(let n=16;n<80;++n)u[n]=e(u[n-3]^u[n-8]^u[n-14]^u[n-16],1);let o=r[0],c=r[1],a=r[2],f=r[3],l=r[4];for(let n=0;n<80;++n){let r=Math.floor(n/20),i=e(o,5)+function(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}(r,c,a,f)+l+t[r]+u[n]>>>0;l=f,f=a,a=e(c,30)>>>0,c=o,o=i}r[0]=r[0]+o>>>0,r[1]=r[1]+c>>>0,r[2]=r[2]+a>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},7651:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,u=(r=e(55820))&&r.__esModule?r:{default:r};let i=[];for(let n=0;n<256;++n)i.push((n+256).toString(16).slice(1));function o(n,t=0){return(i[n[t+0]]+i[n[t+1]]+i[n[t+2]]+i[n[t+3]]+"-"+i[n[t+4]]+i[n[t+5]]+"-"+i[n[t+6]]+i[n[t+7]]+"-"+i[n[t+8]]+i[n[t+9]]+"-"+i[n[t+10]]+i[n[t+11]]+i[n[t+12]]+i[n[t+13]]+i[n[t+14]]+i[n[t+15]]).toLowerCase()}t.default=function(n,t=0){let e=o(n,t);if(!(0,u.default)(e))throw TypeError("Stringified UUID is invalid");return e}},50115:function(n,t,e){let r,u;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=e(92887))&&i.__esModule?i:{default:i},c=e(7651);let a=0,f=0;t.default=function(n,t,e){let i=t&&e||0,l=t||Array(16),p=(n=n||{}).node||r,d=void 0!==n.clockseq?n.clockseq:u;if(null==p||null==d){let t=n.random||(n.rng||o.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=u=(t[6]<<8|t[7])&16383)}let s=void 0!==n.msecs?n.msecs:Date.now(),h=void 0!==n.nsecs?n.nsecs:f+1,m=s-a+(h-f)/1e4;if(m<0&&void 0===n.clockseq&&(d=d+1&16383),(m<0||s>a)&&void 0===n.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");a=s,f=h,u=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[i++]=v>>>24&255,l[i++]=v>>>16&255,l[i++]=v>>>8&255,l[i++]=255&v;let g=s/4294967296*1e4&268435455;l[i++]=g>>>8&255,l[i++]=255&g,l[i++]=g>>>24&15|16,l[i++]=g>>>16&255,l[i++]=d>>>8|128,l[i++]=255&d;for(let n=0;n<6;++n)l[i+n]=p[n];return t||(0,c.unsafeStringify)(l)}},41119:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(92593)),u=i(e(37881));function i(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,u.default);t.default=o},92593:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(n,t,e){function r(n,r,o,c){var a;if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));let t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}(n)),"string"==typeof r&&(r=(0,i.default)(r)),(null===(a=r)||void 0===a?void 0:a.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+n.length);if(f.set(r),f.set(n,r.length),(f=e(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,o){c=c||0;for(let n=0;n<16;++n)o[c+n]=f[n];return o}return(0,u.unsafeStringify)(f)}try{r.name=n}catch(n){}return r.DNS=o,r.URL=c,r};var r,u=e(7651),i=(r=e(26330))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=c},72083:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(97601)),u=o(e(92887)),i=e(7651);function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t,e){if(r.default.randomUUID&&!t&&!n)return r.default.randomUUID();let o=(n=n||{}).random||(n.rng||u.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){e=e||0;for(let n=0;n<16;++n)t[e+n]=o[n];return t}return(0,i.unsafeStringify)(o)}},56452:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(92593)),u=i(e(28934));function i(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,u.default);t.default=o},55820:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(84494))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&u.default.test(n)}},15725:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(55820))&&r.__esModule?r:{default:r};t.default=function(n){if(!(0,u.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}},42769:function(n,t,e){e.r(t),e.d(t,{getApplicativeComposition:function(){return c},getApplicativeMonoid:function(){return o}});var r=e(7501),u=e(38906),i=e(89943);function o(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}}function c(n,t){var e=(0,i.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,u.pipe)(n,o(t))}}}},7501:function(n,t,e){e.r(t),e.d(t,{ap:function(){return i},apFirst:function(){return o},apS:function(){return a},apSecond:function(){return c},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=e(38906),u=e(58791);function i(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}}function o(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}}function c(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}}function a(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}}function f(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}}function l(n,t,e){return function(r){for(var u=Array(e.length+1),i=0;i<e.length;i++)u[i]=e[i];return u[e.length]=r,0===t?n.apply(null,u):l(n,t-1,u)}}var p={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(u){return[n,t,e,r,u]}}}}}};function d(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t.length,o=(u.e$.call(p,i)||(p[i]=l(r.tuple,i-1,[])),p[i]),c=n.map(t[0],o),a=1;a<i;a++)c=n.ap(c,t[a]);return c}}function s(n){return function(t){for(var e=Object.keys(t),r=e.length,u=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u}}};case 4:return function(t){return function(e){return function(r){return function(u){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i[n[3]]=u,i}}}};case 5:return function(t){return function(e){return function(r){return function(u){return function(i){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=u,o[n[4]]=i,o}}}}};default:return l(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var u={},i=0;i<t;i++)u[n[i]]=e[i];return u},t-1,[])}}(e),i=n.map(t[e[0]],u),o=1;o<r;o++)i=n.ap(i,t[e[o]]);return i}}},83240:function(n,t,e){function r(n){var t=u(n);return function(n){return function(e){return t(e,n)}}}function u(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}function i(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}e.r(t),e.d(t,{bind:function(){return i},chainFirst:function(){return r},tap:function(){return u}})},2575:function(n,t,e){e.r(t),e.d(t,{tailRec:function(){return r}});var r=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},19903:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return no},ApT:function(){return n9},Applicative:function(){return B},Apply:function(){return Y},Bifunctor:function(){return nr},Chain:function(){return V},ChainRec:function(){return nf},Do:function(){return n0},Extend:function(){return na},Foldable:function(){return J},FromEither:function(){return nd},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return np},Pointed:function(){return q},Traversable:function(){return nn},URI:function(){return O},alt:function(){return ni},altW:function(){return nu},ap:function(){return G},apFirst:function(){return nT},apFirstW:function(){return nx},apS:function(){return n8},apSW:function(){return n3},apSecond:function(){return nM},apSecondW:function(){return nO},apW:function(){return K},as:function(){return D},asUnit:function(){return N},bimap:function(){return nt},bind:function(){return n5},bindTo:function(){return n1},bindW:function(){return n7},chain:function(){return tu},chainFirst:function(){return ti},chainFirstW:function(){return to},chainNullableK:function(){return nX},chainOptionK:function(){return nF},chainOptionKW:function(){return nU},chainW:function(){return tr},duplicate:function(){return nk},either:function(){return tf},elem:function(){return function n(t){return function(e,r){if(void 0===r){var u=n(t);return function(n){return u(e,n)}}return!nm(r)&&t.equals(e,r.right)}}},exists:function(){return nQ},extend:function(){return nc},filterOrElse:function(){return nq},filterOrElseW:function(){return nK},flap:function(){return nS},flatMap:function(){return m},flatMapNullable:function(){return nN},flatMapOption:function(){return nj},flatten:function(){return nE},flattenW:function(){return nC},fold:function(){return n_},foldMap:function(){return $},foldW:function(){return ny},fromNullable:function(){return nV},fromNullableK:function(){return n$},fromOption:function(){return nh},fromOptionK:function(){return nW},fromPredicate:function(){return ns},getAltValidation:function(){return P},getApplicativeValidation:function(){return U},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return k},getEq:function(){return C},getFilterable:function(){return W},getOrElse:function(){return nR},getOrElseW:function(){return nI},getSemigroup:function(){return E},getShow:function(){return w},getValidation:function(){return th},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return F},isLeft:function(){return nm},isRight:function(){return nv},left:function(){return s},let:function(){return n2},liftNullable:function(){return nA},liftOption:function(){return nL},map:function(){return A},mapLeft:function(){return ne},match:function(){return nb},matchW:function(){return ng},of:function(){return j},orElse:function(){return nB},orElseW:function(){return nY},parseJSON:function(){return tc},reduce:function(){return H},reduceRight:function(){return X},right:function(){return h},sequence:function(){return Q},sequenceArray:function(){return te},stringifyJSON:function(){return ta},swap:function(){return nG},tap:function(){return nw},throwError:function(){return nl},toError:function(){return nZ},toUnion:function(){return nJ},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n4},tryCatch:function(){return nz},tryCatchK:function(){return nH}});var r=e(42769),u=e(7501),i=e(83240),o=e(2575),c=e(59920),a=e(38906),f=e(89943),l=e(58791),p=e(3452),d=e(62043),s=l.t$,h=l.F2,m=(0,a.dual)(2,function(n,t){return nm(n)?n:t(n.right)}),v=function(n,t){return(0,a.pipe)(n,A(t))},g=function(n,t){return(0,a.pipe)(n,G(t))},y=function(n,t,e){return(0,a.pipe)(n,H(t,e))},b=function(n){return function(t,e){var r=$(n);return(0,a.pipe)(t,r(e))}},_=function(n,t,e){return(0,a.pipe)(n,X(t,e))},I=function(n){var t=Z(n);return function(n,e){return(0,a.pipe)(n,t(e))}},R=function(n,t,e){return(0,a.pipe)(n,nt(t,e))},S=function(n,t){return(0,a.pipe)(n,ne(t))},T=function(n,t){return(0,a.pipe)(n,ni(t))},x=function(n,t){return(0,a.pipe)(n,nc(t))},M=function(n,t){return(0,o.tailRec)(t(n),function(n){return nm(n)?h(s(n.left)):nm(n.right)?s(t(n.right.left)):h(h(n.right.right))})},O="Either",w=function(n,t){return{show:function(e){return nm(e)?"left(".concat(n.show(e.left),")"):"right(".concat(t.show(e.right),")")}}},C=function(n,t){return{equals:function(e,r){return e===r||(nm(e)?nm(r)&&n.equals(e.left,r.left):nv(r)&&t.equals(e.right,r.right))}}},E=function(n){return{concat:function(t,e){return nm(e)?t:nm(t)?e:h(n.concat(t.right,e.right))}}},k=function(n){var t=s(n.empty);return{URI:O,_E:void 0,compact:function(n){return nm(n)?n:"None"===n.right._tag?t:h(n.right.value)},separate:function(n){return nm(n)?(0,p.separated)(n,n):nm(n.right)?(0,p.separated)(h(n.right.left),t):(0,p.separated)(t,h(n.right.right))}}},W=function(n){var t=s(n.empty),e=k(n);return{URI:O,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:function(n,e){return nm(n)?n:e(n.right)?n:t},filterMap:function(n,e){if(nm(n))return n;var r=e(n.right);return"None"===r._tag?t:h(r.value)},partition:function(n,e){return nm(n)?(0,p.separated)(n,n):e(n.right)?(0,p.separated)(t,h(n.right)):(0,p.separated)(h(n.right),t)},partitionMap:function(n,e){if(nm(n))return(0,p.separated)(n,n);var r=e(n.right);return nm(r)?(0,p.separated)(h(r.left),t):(0,p.separated)(t,h(r.right))}}},F=function(n){var t=W(n),e=k(n);return{URI:O,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:I,sequence:Q,reduce:y,foldMap:b,reduceRight:_,wither:(0,d.witherDefault)(nn,e),wilt:(0,d.wiltDefault)(nn,e)}},U=function(n){return{URI:O,_E:void 0,map:v,ap:function(t,e){return nm(t)?nm(e)?s(n.concat(t.left,e.left)):t:nm(e)?e:h(t.right(e.right))},of:j}},P=function(n){return{URI:O,_E:void 0,map:v,alt:function(t,e){if(nv(t))return t;var r=e();return nm(r)?s(n.concat(t.left,r.left)):r}}},A=function(n){return function(t){return nm(t)?t:h(n(t.right))}},L={URI:O,map:v},D=(0,a.dual)(2,(0,f.as)(L)),N=(0,f.asUnit)(L),j=h,q={URI:O,of:j},K=function(n){return function(t){return nm(t)?t:nm(n)?n:h(t.right(n.right))}},G=K,Y={URI:O,map:v,ap:g},B={URI:O,map:v,ap:g,of:j},V={URI:O,map:v,ap:g,chain:m},z={URI:O,map:v,ap:g,of:j,chain:m},H=function(n,t){return function(e){return nm(e)?n:t(n,e.right)}},$=function(n){return function(t){return function(e){return nm(e)?n.empty:t(e.right)}}},X=function(n,t){return function(e){return nm(e)?n:t(e.right,n)}},J={URI:O,reduce:y,foldMap:b,reduceRight:_},Z=function(n){return function(t){return function(e){return nm(e)?n.of(s(e.left)):n.map(t(e.right),h)}}},Q=function(n){return function(t){return nm(t)?n.of(s(t.left)):n.map(t.right,h)}},nn={URI:O,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q},nt=function(n,t){return function(e){return nm(e)?s(n(e.left)):h(t(e.right))}},ne=function(n){return function(t){return nm(t)?s(n(t.left)):t}},nr={URI:O,bimap:R,mapLeft:S},nu=function(n){return function(t){return nm(t)?n():t}},ni=nu,no={URI:O,map:v,alt:T},nc=function(n){return function(t){return nm(t)?t:h(n(t))}},na={URI:O,map:v,extend:x},nf={URI:O,map:v,ap:g,chain:m,chainRec:M},nl=s,np={URI:O,map:v,ap:g,of:j,chain:m,throwError:nl},nd={URI:O,fromEither:a.identity},ns=(0,c.fromPredicate)(nd),nh=(0,c.fromOption)(nd),nm=l.nM,nv=l.tO,ng=function(n,t){return function(e){return nm(e)?n(e.left):t(e.right)}},ny=ng,nb=ng,n_=nb,nI=function(n){return function(t){return nm(t)?n(t.left):t.right}},nR=nI,nS=(0,f.flap)(L),nT=(0,u.apFirst)(Y),nx=nT,nM=(0,u.apSecond)(Y),nO=nM,nw=(0,a.dual)(2,i.tap(V)),nC=m(a.identity),nE=nC,nk=nc(a.identity),nW=(0,c.fromOptionK)(nd),nF=(0,c.chainOptionK)(nd,V),nU=nF,nP={fromEither:nd.fromEither},nA=l.uL(nP),nL=l.WE(nP),nD={flatMap:m},nN=l.ny(nP,nD),nj=l.hU(nP,nD),nq=(0,c.filterOrElse)(nd,V),nK=nq,nG=function(n){return nm(n)?h(n.left):s(n.right)},nY=function(n){return function(t){return nm(t)?n(t.left):t}},nB=nY,nV=function(n){return function(t){return null==t?s(n):h(t)}},nz=function(n,t){try{return h(n())}catch(n){return s(t(n))}},nH=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return nz(function(){return n.apply(void 0,e)},t)}},n$=function(n){var t=nV(n);return function(n){return(0,a.flow)(n,t)}},nX=function(n){var t=n$(n);return function(n){return m(t(n))}},nJ=ny(a.identity,a.identity);function nZ(n){return n instanceof Error?n:Error(String(n))}var nQ=function(n){return function(t){return!nm(t)&&n(t.right)}},n0=j(l.F4),n1=(0,f.bindTo)(L),n2=(0,f.let)(L),n5=i.bind(V),n7=n5,n8=(0,u.apS)(Y),n3=n8,n9=j(l.Xl),n4=function(n){return function(t){var e=n(0,l.YM(t));if(nm(e))return e;for(var r=[e.right],u=1;u<t.length;u++){var i=n(u,t[u]);if(nm(i))return i;r.push(i.right)}return h(r)}},n6=function(n){var t=n4(n);return function(n){return l.Od(n)?t(n):n9}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(a.identity),tr=m,tu=m,ti=nw,to=nw;function tc(n,t){return nz(function(){return JSON.parse(n)},t)}var ta=function(n,t){return nz(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:O,map:v,of:j,ap:g,chain:m,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:Q,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:M,throwError:nl},tl=(0,u.getApplySemigroup)(Y),tp=(0,r.getApplicativeMonoid)(B),td=function(n,t){return(0,u.getApplySemigroup)(U(n))(t)},ts=function(n,t){return(0,r.getApplicativeMonoid)(U(n))(t)};function th(n){return{URI:O,_E:void 0,map:v,of:j,chain:m,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:Q,chainRec:M,throwError:nl,ap:U(n).ap,alt:P(n).alt}}},59920:function(n,t,e){e.r(t),e.d(t,{chainEitherK:function(){return p},chainFirstEitherK:function(){return d},chainOptionK:function(){return f},filterOrElse:function(){return s},fromEitherK:function(){return l},fromOption:function(){return o},fromOptionK:function(){return a},fromPredicate:function(){return c},tapEither:function(){return h}});var r=e(83240),u=e(38906),i=e(58791);function o(n){return function(t){return function(e){return n.fromEither(i.Wi(e)?i.t$(t()):i.F2(e.value))}}}function c(n){return function(t,e){return function(r){return n.fromEither(t(r)?i.F2(r):i.t$(e(r)))}}}function a(n){var t=o(n);return function(n){var e=t(n);return function(n){return(0,u.flow)(n,e)}}}function f(n,t){var e=a(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}}function l(n){return function(t){return(0,u.flow)(t,n.fromEither)}}function p(n,t){var e=l(n);return function(n){return function(r){return t.chain(r,e(n))}}}function d(n,t){var e=h(n,t);return function(n){return function(t){return e(t,n)}}}function s(n,t){return function(e,r){return function(u){return t.chain(u,function(t){return n.fromEither(e(t)?i.F2(t):i.t$(r(t)))})}}}function h(n,t){var e=l(n),u=(0,r.tap)(t);return function(n,t){return u(n,e(t))}}},89943:function(n,t,e){e.r(t),e.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return i},getFunctorComposition:function(){return a},let:function(){return c},map:function(){return u}});var r=e(38906);function u(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function i(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}}function o(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}}function c(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}}function a(n,t){var e=u(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}}function f(n){return function(t,e){return n.map(t,function(){return e})}}function l(n){var t=f(n);return function(n){return t(n,void 0)}}},3452:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return a},flap:function(){return d},left:function(){return s},map:function(){return o},mapLeft:function(){return c},right:function(){return h},separated:function(){return i}});var r=e(38906),u=e(89943),i=function(n,t){return{left:n,right:t}},o=function(n){return function(t){return i(s(t),n(h(t)))}},c=function(n){return function(t){return i(n(s(t)),h(t))}},a=function(n,t){return function(e){return i(n(s(e)),t(h(e)))}},f="Separated",l={URI:f,mapLeft:function(n,t){return(0,r.pipe)(n,c(t))},bimap:function(n,t,e){return(0,r.pipe)(n,a(t,e))}},p={URI:f,map:function(n,t){return(0,r.pipe)(n,o(t))}},d=(0,u.flap)(p),s=function(n){return n.left},h=function(n){return n.right}},62043:function(n,t,e){e.r(t),e.d(t,{filterE:function(){return o},wiltDefault:function(){return u},witherDefault:function(){return i}});var r=e(58791);function u(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.separate)}}}function i(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.compact)}}}function o(n){return function(t){var e=n.wither(t);return function(n){return function(u){return e(u,function(e){return t.map(n(e),function(n){return n?r.G(e):r.YP})})}}}}},38906:function(n,t,e){e.r(t),e.d(t,{SK:function(){return w},absurd:function(){return S},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return g},constant:function(){return d},decrement:function(){return R},dual:function(){return k},flip:function(){return y},flow:function(){return b},getBooleanAlgebra:function(){return u},getEndomorphismMonoid:function(){return E},getMonoid:function(){return o},getRing:function(){return a},getSemigroup:function(){return i},getSemiring:function(){return c},hole:function(){return O},identity:function(){return l},increment:function(){return I},not:function(){return C},pipe:function(){return M},tuple:function(){return _},tupled:function(){return T},unsafeCoerce:function(){return p},untupled:function(){return x}});var r=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},u=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},i=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},o=function(n){var t=i(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},c=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},a=function(n){var t=c(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},f=function(n){return function(t){return t(n)}};function l(n){return n}var p=l;function d(n){return function(){return n}}var s=d(!0),h=d(!1),m=d(null),v=d(void 0),g=v;function y(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}}function b(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return c(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return a(c(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}}function _(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n}function I(n){return n+1}function R(n){return n-1}function S(n){throw Error("Called `absurd` function which should be uncallable")}function T(n){return function(t){return n.apply(void 0,t)}}function x(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}}function M(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return c(o(i(u(r(e(t(n)))))));case 9:return a(c(o(i(u(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var O=S,w=function(n,t){return t};function C(n){return function(t){return!n(t)}}var E=function(){return{concat:function(n,t){return b(n,t)},empty:l}},k=function(n,t){var e="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return e(arguments)?t.apply(this,n):function(e){return t.apply(void 0,r([e],n,!1))}}}},89155:function(n,t,e){e.r(t),e.d(t,{alt:function(){return r},alternative:function(){return u},applicative:function(){return tn},apply:function(){return n9},array:function(){return h},bifunctor:function(){return m},boolean:function(){return v},booleanAlgebra:function(){return g},bounded:function(){return y},boundedDistributiveLattice:function(){return _},boundedJoinSemilattice:function(){return I},boundedLattice:function(){return R},boundedMeetSemilattice:function(){return S},category:function(){return T},chain:function(){return tt},chainRec:function(){return dG},choice:function(){return x},comonad:function(){return M},compactable:function(){return C},console:function(){return E},const:function(){return k},contravariant:function(){return W},date:function(){return F},distributiveLattice:function(){return b},either:function(){return mR},eitherT:function(){return U},endomorphism:function(){return P},eq:function(){return i},extend:function(){return A},field:function(){return L},filterable:function(){return D},filterableWithIndex:function(){return N},foldable:function(){return j},foldableWithIndex:function(){return q},fromEither:function(){return te},fromIO:function(){return K},fromReader:function(){return Y},fromState:function(){return V},fromTask:function(){return z},fromThese:function(){return H},function:function(){return tr},functor:function(){return tu},functorWithIndex:function(){return $},group:function(){return X},heytingAlgebra:function(){return J},hkt:function(){return Z},identity:function(){return Q},invariant:function(){return nn},io:function(){return nt},ioEither:function(){return ne},ioOption:function(){return nu},ioRef:function(){return ni},joinSemilattice:function(){return no},json:function(){return nc},lattice:function(){return na},magma:function(){return c},map:function(){return nl},meetSemilattice:function(){return np},monad:function(){return nd},monadIO:function(){return ns},monadTask:function(){return nh},monadThrow:function(){return nm},monoid:function(){return nv},naturalTransformation:function(){return ng},nonEmptyArray:function(){return l},number:function(){return p},option:function(){return w},optionT:function(){return nr},ord:function(){return o},ordering:function(){return ny},pipeable:function(){return nb},pointed:function(){return n_},predicate:function(){return O},profunctor:function(){return nI},random:function(){return nR},reader:function(){return G},readerEither:function(){return nS},readerIO:function(){return nx},readerT:function(){return nT},readerTask:function(){return nO},readerTaskEither:function(){return nC},readonlyArray:function(){return s},readonlyMap:function(){return nf},readonlyNonEmptyArray:function(){return f},readonlyRecord:function(){return nk},readonlySet:function(){return nW},readonlyTuple:function(){return nF},record:function(){return nU},refinement:function(){return nP},ring:function(){return nA},semigroup:function(){return a},semigroupoid:function(){return nL},semiring:function(){return nD},separated:function(){return oR},set:function(){return nN},show:function(){return nj},state:function(){return B},stateReaderTaskEither:function(){return nK},stateT:function(){return nq},store:function(){return nG},string:function(){return nE},strong:function(){return nY},struct:function(){return nB},task:function(){return nM},taskEither:function(){return nw},taskOption:function(){return nV},taskThese:function(){return n$},these:function(){return nz},theseT:function(){return nH},traced:function(){return nX},traversable:function(){return nJ},traversableWithIndex:function(){return nZ},tree:function(){return nQ},tuple:function(){return n0},unfoldable:function(){return n1},validationT:function(){return n2},void:function(){return n5},witherable:function(){return oS},writer:function(){return n7},writerT:function(){return n8},zero:function(){return d}});var r={};e.r(r),e.d(r,{altAll:function(){return n3}});var u={};e.r(u),e.d(u,{altAll:function(){return n4},getAlternativeMonoid:function(){return n6}});var i={};e.r(i),e.d(i,{Contravariant:function(){return tm},URI:function(){return tl},contramap:function(){return tf},eq:function(){return tb},eqBoolean:function(){return t_},eqDate:function(){return tS},eqNumber:function(){return tR},eqStrict:function(){return tp},eqString:function(){return tI},fromEquals:function(){return to},getMonoid:function(){return th},getSemigroup:function(){return ts},getStructEq:function(){return tg},getTupleEq:function(){return tv},strictEqual:function(){return ty},struct:function(){return tc},tuple:function(){return ta}});var o={};e.r(o),e.d(o,{Contravariant:function(){return tW},URI:function(){return tC},between:function(){return tK},clamp:function(){return tq},contramap:function(){return tw},equals:function(){return tU},equalsDefault:function(){return tT},fromCompare:function(){return tx},geq:function(){return tD},getDualOrd:function(){return tY},getMonoid:function(){return tk},getSemigroup:function(){return tE},getTupleOrd:function(){return tG},gt:function(){return tA},leq:function(){return tL},lt:function(){return tP},max:function(){return tj},min:function(){return tN},ord:function(){return tB},ordBoolean:function(){return tz},ordDate:function(){return tX},ordNumber:function(){return t$},ordString:function(){return tH},reverse:function(){return tO},trivial:function(){return tF},tuple:function(){return tM}});var c={};e.r(c),e.d(c,{concatAll:function(){return t1},endo:function(){return t0},filterFirst:function(){return tZ},filterSecond:function(){return tQ},reverse:function(){return tJ}});var a={};e.r(a),e.d(a,{concatAll:function(){return et},constant:function(){return t7},first:function(){return t6},fold:function(){return ed},getDualSemigroup:function(){return ea},getFirstSemigroup:function(){return ei},getFunctionSemigroup:function(){return em},getIntercalateSemigroup:function(){return ep},getJoinSemigroup:function(){return ef},getLastSemigroup:function(){return eu},getMeetSemigroup:function(){return el},getObjectSemigroup:function(){return er},getStructSemigroup:function(){return ec},getTupleSemigroup:function(){return eo},intercalate:function(){return t4},last:function(){return en},max:function(){return t5},min:function(){return t2},reverse:function(){return t8},semigroupAll:function(){return es},semigroupAny:function(){return eh},semigroupProduct:function(){return ey},semigroupString:function(){return ev},semigroupSum:function(){return eg},semigroupVoid:function(){return ee},struct:function(){return t3},tuple:function(){return t9}});var f={};e.r(f),e.d(f,{Alt:function(){return rB},Applicative:function(){return rL},Apply:function(){return rU},Chain:function(){return rD},Comonad:function(){return rV},Do:function(){return rz},Foldable:function(){return rq},FoldableWithIndex:function(){return rK},Functor:function(){return rE},FunctorWithIndex:function(){return rF},Monad:function(){return rj},Pointed:function(){return rW},Traversable:function(){return rG},TraversableWithIndex:function(){return rY},URI:function(){return rx},alt:function(){return rc},altW:function(){return ro},ap:function(){return ra},apFirst:function(){return rP},apS:function(){return rJ},apSecond:function(){return rA},append:function(){return eM},appendW:function(){return ex},bind:function(){return rX},bindTo:function(){return rH},chain:function(){return ue},chainFirst:function(){return rN},chainWithIndex:function(){return eZ},chop:function(){return eQ},chunksOf:function(){return e1},concat:function(){return eq},concatAll:function(){return r7},concatW:function(){return ej},cons:function(){return ua},duplicate:function(){return rp},empty:function(){return e_},extend:function(){return rl},extract:function(){return rT},filter:function(){return uu},filterWithIndex:function(){return ui},flap:function(){return rk},flatMap:function(){return rf},flatten:function(){return rd},fold:function(){return ud},foldMap:function(){return rv},foldMapWithIndex:function(){return rb},fromArray:function(){return eN},fromReadonlyArray:function(){return eF},getEq:function(){return rw},getSemigroup:function(){return rO},getShow:function(){return rM},getUnionSemigroup:function(){return rC},group:function(){return eG},groupBy:function(){return eY},groupSort:function(){return ur},head:function(){return rZ},init:function(){return r1},insertAt:function(){return ul},intercalate:function(){return ut},intersperse:function(){return eJ},isNonEmpty:function(){return eI},isOutOfBound:function(){return eR},last:function(){return r0},let:function(){return r$},makeBy:function(){return eU},map:function(){return rs},mapWithIndex:function(){return rh},matchLeft:function(){return r8},matchRight:function(){return r3},max:function(){return r5},min:function(){return r2},modifyAt:function(){return ez},modifyHead:function(){return r9},modifyLast:function(){return r6},of:function(){return ri},prepend:function(){return eT},prependAll:function(){return eX},prependToAll:function(){return up},prependW:function(){return eS},range:function(){return eA},readonlyNonEmptyArray:function(){return us},reduce:function(){return rm},reduceRight:function(){return rg},reduceRightWithIndex:function(){return r_},reduceWithIndex:function(){return ry},replicate:function(){return eP},reverse:function(){return eK},rotate:function(){return eW},sequence:function(){return rR},snoc:function(){return uf},sort:function(){return eB},sortBy:function(){return eE},splitAt:function(){return e0},tail:function(){return rQ},traverse:function(){return rI},traverseWithIndex:function(){return rS},unappend:function(){return eD},uncons:function(){return uo},union:function(){return ek},uniq:function(){return eC},unprepend:function(){return eL},unsafeInsertAt:function(){return eO},unsafeUpdateAt:function(){return ew},unsnoc:function(){return uc},unzip:function(){return e$},updateAt:function(){return eV},updateHead:function(){return r4},updateLast:function(){return un},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:eH(t,e,function(n,t){return[n,t]})}},zipWith:function(){return eH}});var l={};e.r(l),e.d(l,{Alt:function(){return iG},Applicative:function(){return iP},Apply:function(){return iW},Chain:function(){return iA},Comonad:function(){return iY},Do:function(){return iB},Foldable:function(){return iN},FoldableWithIndex:function(){return ij},Functor:function(){return iw},FunctorWithIndex:function(){return ik},Monad:function(){return iD},Pointed:function(){return iE},Traversable:function(){return iq},TraversableWithIndex:function(){return iK},URI:function(){return iS},alt:function(){return io},altW:function(){return ii},ap:function(){return ic},apFirst:function(){return iF},apS:function(){return i$},apSecond:function(){return iU},append:function(){return u_},appendW:function(){return ub},bind:function(){return iH},bindTo:function(){return iV},chain:function(){return on},chainFirst:function(){return iL},chainWithIndex:function(){return uJ},chop:function(){return uZ},chunksOf:function(){return u0},concat:function(){return uP},concatAll:function(){return i2},concatW:function(){return uU},cons:function(){return oo},copy:function(){return uG},duplicate:function(){return ip},extend:function(){return il},extract:function(){return iR},filter:function(){return oe},filterWithIndex:function(){return or},flap:function(){return iC},flatMap:function(){return ia},flatten:function(){return id},fold:function(){return of},foldMap:function(){return uX},foldMapWithIndex:function(){return u$},fromArray:function(){return uw},fromReadonlyNonEmptyArray:function(){return uO},getEq:function(){return iM},getSemigroup:function(){return ix},getShow:function(){return iT},getUnionSemigroup:function(){return iO},group:function(){return uL},groupBy:function(){return uD},groupSort:function(){return ot},head:function(){return iX},init:function(){return iQ},insertAt:function(){return uj},intercalate:function(){return i6},intersperse:function(){return uH},isNonEmpty:function(){return um},isOutOfBound:function(){return uv},last:function(){return iZ},let:function(){return iz},makeBy:function(){return uC},map:function(){return is},mapWithIndex:function(){return ih},matchLeft:function(){return i5},matchRight:function(){return i7},max:function(){return i1},min:function(){return i0},modifyAt:function(){return uK},modifyHead:function(){return i8},modifyLast:function(){return i9},nonEmptyArray:function(){return ol},of:function(){return uY},prepend:function(){return uy},prependAll:function(){return uz},prependToAll:function(){return oa},prependW:function(){return ug},range:function(){return uk},reduce:function(){return im},reduceRight:function(){return ig},reduceRightWithIndex:function(){return iy},reduceWithIndex:function(){return iv},replicate:function(){return uE},reverse:function(){return uA},rotate:function(){return uM},sequence:function(){return i_},snoc:function(){return oc},sort:function(){return uN},sortBy:function(){return uT},splitAt:function(){return uQ},tail:function(){return iJ},traverse:function(){return ib},traverseWithIndex:function(){return iI},unappend:function(){return uF},uncons:function(){return ou},union:function(){return ux},uniq:function(){return uS},unprepend:function(){return uW},unsafeInsertAt:function(){return uI},unsafeUpdateAt:function(){return uR},unsnoc:function(){return oi},unzip:function(){return uV},updateAt:function(){return uq},updateHead:function(){return i3},updateLast:function(){return i4},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:uB(t,e,function(n,t){return[n,t]})}},zipWith:function(){return uB}});var p={};e.r(p),e.d(p,{Bounded:function(){return oh},Eq:function(){return od},Field:function(){return oI},MagmaSub:function(){return ov},MonoidProduct:function(){return o_},MonoidSum:function(){return ob},Ord:function(){return os},SemigroupProduct:function(){return oy},SemigroupSum:function(){return og},Show:function(){return om},isNumber:function(){return op}});var d={};e.r(d),e.d(d,{guard:function(){return oT}});var s={};e.r(s),e.d(s,{Alt:function(){return aB},Alternative:function(){return aH},Applicative:function(){return aj},Apply:function(){return aL},Chain:function(){return aq},ChainRecBreadthFirst:function(){return a3},ChainRecDepthFirst:function(){return a7},Compactable:function(){return aX},Do:function(){return fs},Extend:function(){return a$},Filterable:function(){return aJ},FilterableWithIndex:function(){return aZ},Foldable:function(){return aQ},FoldableWithIndex:function(){return a0},FromEither:function(){return ft},Functor:function(){return aF},FunctorWithIndex:function(){return aA},Monad:function(){return aK},Pointed:function(){return aP},Traversable:function(){return a1},TraversableWithIndex:function(){return a2},URI:function(){return aS},Unfoldable:function(){return aY},Witherable:function(){return a6},Zero:function(){return aV},_chainRecBreadthFirst:function(){return cQ},_chainRecDepthFirst:function(){return cZ},alt:function(){return c5},altW:function(){return c2},ap:function(){return c7},apFirst:function(){return aD},apS:function(){return fg},apSecond:function(){return aN},append:function(){return oE},appendW:function(){return ok},bind:function(){return fv},bindTo:function(){return fh},chain:function(){return fy},chainFirst:function(){return aG},chainRecBreadthFirst:function(){return a8},chainRecDepthFirst:function(){return a5},chainWithIndex:function(){return oB},chop:function(){return cI},chunksOf:function(){return cS},compact:function(){return ar},comprehension:function(){return cx},concat:function(){return cO},concatW:function(){return cM},cons:function(){return f_},deleteAt:function(){return cc},difference:function(){return cE},dropLeft:function(){return o3},dropLeftWhile:function(){return o4},dropRight:function(){return o9},duplicate:function(){return al},elem:function(){return cy},empty:function(){return fa},every:function(){return ff},exists:function(){return fp},extend:function(){return af},filter:function(){return an},filterE:function(){return fn},filterMap:function(){return ae},filterMapWithIndex:function(){return at},filterWithIndex:function(){return aa},findFirst:function(){return cn},findFirstMap:function(){return ct},findIndex:function(){return o6},findLast:function(){return ce},findLastIndex:function(){return cu},findLastMap:function(){return cr},flap:function(){return aU},flatMap:function(){return c8},flatten:function(){return c3},foldLeft:function(){return oq},foldMap:function(){return as},foldMapWithIndex:function(){return ap},foldRight:function(){return oY},fromArray:function(){return fc},fromEither:function(){return oA},fromEitherK:function(){return fe},fromOption:function(){return oP},fromOptionK:function(){return cT},fromPredicate:function(){return oU},getDifferenceMagma:function(){return aW},getEq:function(){return aO},getIntersectionSemigroup:function(){return ak},getMonoid:function(){return aM},getOrd:function(){return aw},getSemigroup:function(){return ax},getShow:function(){return aT},getUnionMonoid:function(){return aE},getUnionSemigroup:function(){return aC},guard:function(){return az},head:function(){return oJ},init:function(){return o0},insertAt:function(){return ci},intercalate:function(){return fd},intersection:function(){return cC},intersperse:function(){return cv},isEmpty:function(){return oM},isNonEmpty:function(){return oO},isOutOfBound:function(){return o$},last:function(){return oZ},lefts:function(){return cp},let:function(){return fm},lookup:function(){return oX},makeBy:function(){return oW},map:function(){return c9},mapWithIndex:function(){return c4},match:function(){return oD},matchLeft:function(){return oj},matchLeftW:function(){return oN},matchRight:function(){return oG},matchRightW:function(){return oK},matchW:function(){return oL},modifyAt:function(){return ca},of:function(){return c0},partition:function(){return au},partitionMap:function(){return ao},partitionMapWithIndex:function(){return ac},partitionWithIndex:function(){return ai},prepend:function(){return ow},prependAll:function(){return cm},prependToAll:function(){return fR},prependW:function(){return oC},range:function(){return fb},readonlyArray:function(){return fS},reduce:function(){return ad},reduceRight:function(){return am},reduceRightWithIndex:function(){return av},reduceWithIndex:function(){return ah},replicate:function(){return oF},reverse:function(){return cf},rights:function(){return cl},rotate:function(){return cg},scanLeft:function(){return oV},scanRight:function(){return oz},separate:function(){return c6},sequence:function(){return ay},size:function(){return oH},snoc:function(){return fI},some:function(){return fl},sort:function(){return cd},sortBy:function(){return c_},spanLeft:function(){return o8},splitAt:function(){return cR},tail:function(){return oQ},takeLeft:function(){return o1},takeLeftWhile:function(){return o5},takeRight:function(){return o2},toArray:function(){return fo},traverse:function(){return ag},traverseWithIndex:function(){return ab},unfold:function(){return aR},union:function(){return cw},uniq:function(){return cb},unsafeDeleteAt:function(){return fi},unsafeInsertAt:function(){return fr},unsafeUpdateAt:function(){return fu},unzip:function(){return ch},updateAt:function(){return co},wilt:function(){return aI},wither:function(){return a_},zero:function(){return c1},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:cs(t,e,function(n,t){return[n,t]})}},zipWith:function(){return cs}});var h={};e.r(h),e.d(h,{Alt:function(){return pK},Alternative:function(){return pB},Applicative:function(){return pL},Apply:function(){return pU},Chain:function(){return pD},ChainRecBreadthFirst:function(){return p3},ChainRecDepthFirst:function(){return p7},Compactable:function(){return pz},Do:function(){return da},Extend:function(){return pV},Filterable:function(){return pH},FilterableWithIndex:function(){return p$},Foldable:function(){return pX},FoldableWithIndex:function(){return pJ},FromEither:function(){return p4},Functor:function(){return pE},FunctorWithIndex:function(){return pF},Monad:function(){return pj},Pointed:function(){return pW},Traversable:function(){return pZ},TraversableWithIndex:function(){return pQ},URI:function(){return p_},Unfoldable:function(){return pq},Witherable:function(){return p2},Zero:function(){return pG},alt:function(){return pu},altW:function(){return pr},ap:function(){return l0},apFirst:function(){return pP},apS:function(){return dd},apSecond:function(){return pA},append:function(){return fw},appendW:function(){return fC},array:function(){return db},bind:function(){return dp},bindTo:function(){return df},chain:function(){return ds},chainFirst:function(){return pN},chainRecBreadthFirst:function(){return p8},chainRecDepthFirst:function(){return p5},chainWithIndex:function(){return fG},chop:function(){return l_},chunksOf:function(){return lR},compact:function(){return l3},comprehension:function(){return lT},concat:function(){return lM},concatW:function(){return lx},cons:function(){return dv},copy:function(){return lr},deleteAt:function(){return lo},difference:function(){return lC},dropLeft:function(){return f7},dropLeftWhile:function(){return f3},dropRight:function(){return f8},duplicate:function(){return pc},elem:function(){return lg},empty:function(){return dm},every:function(){return dr},exists:function(){return di},extend:function(){return po},filter:function(){return l4},filterE:function(){return p9},filterMap:function(){return l8},filterMapWithIndex:function(){return l7},filterWithIndex:function(){return pi},findFirst:function(){return f4},findFirstMap:function(){return f6},findIndex:function(){return f9},findLast:function(){return ln},findLastIndex:function(){return le},findLastMap:function(){return lt},flap:function(){return pk},flatMap:function(){return l1},flatten:function(){return l2},foldLeft:function(){return fN},foldMap:function(){return pa},foldMapWithIndex:function(){return pf},foldRight:function(){return fK},fromEither:function(){return fU},fromEitherK:function(){return p6},fromOption:function(){return fF},fromOptionK:function(){return lS},fromPredicate:function(){return fW},getDifferenceMagma:function(){return pC},getEq:function(){return pT},getIntersectionSemigroup:function(){return pw},getMonoid:function(){return pS},getOrd:function(){return px},getSemigroup:function(){return pR},getShow:function(){return pI},getUnionMonoid:function(){return pO},getUnionSemigroup:function(){return pM},guard:function(){return pY},head:function(){return f$},init:function(){return fZ},insertAt:function(){return lu},intercalate:function(){return dc},intersection:function(){return lw},intersperse:function(){return lm},isEmpty:function(){return fT},isNonEmpty:function(){return fx},isOutOfBound:function(){return fz},last:function(){return fX},lefts:function(){return ll},let:function(){return dl},lookup:function(){return fH},makeBy:function(){return fE},map:function(){return lQ},mapWithIndex:function(){return l5},match:function(){return fA},matchLeft:function(){return fD},matchLeftW:function(){return fL},matchRight:function(){return fq},matchRightW:function(){return fj},matchW:function(){return fP},modifyAt:function(){return lc},of:function(){return lJ},partition:function(){return l6},partitionMap:function(){return pt},partitionMapWithIndex:function(){return pe},partitionWithIndex:function(){return pn},prepend:function(){return fM},prependAll:function(){return lh},prependToAll:function(){return dy},prependW:function(){return fO},range:function(){return dh},reduce:function(){return pl},reduceRight:function(){return pd},reduceRightWithIndex:function(){return ps},reduceWithIndex:function(){return pp},replicate:function(){return fk},reverse:function(){return la},rights:function(){return lf},rotate:function(){return lv},scanLeft:function(){return fY},scanRight:function(){return fB},separate:function(){return l9},sequence:function(){return pm},size:function(){return fV},snoc:function(){return dg},some:function(){return du},sort:function(){return lp},sortBy:function(){return lb},spanLeft:function(){return f5},splitAt:function(){return lI},tail:function(){return fJ},takeLeft:function(){return fQ},takeLeftWhile:function(){return f1},takeRight:function(){return f0},traverse:function(){return ph},traverseWithIndex:function(){return pv},unfold:function(){return pb},union:function(){return lO},uniq:function(){return ly},unsafeDeleteAt:function(){return de},unsafeInsertAt:function(){return dn},unsafeUpdateAt:function(){return dt},unzip:function(){return ls},updateAt:function(){return li},wilt:function(){return py},wither:function(){return pg},zero:function(){return lZ},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:ld(t,e,function(n,t){return[n,t]})}},zipWith:function(){return ld}});var m={};e.r(m);var v={};e.r(v),e.d(v,{BooleanAlgebra:function(){return dM},Eq:function(){return dx},MonoidAll:function(){return dC},MonoidAny:function(){return dE},Ord:function(){return dk},SemigroupAll:function(){return dO},SemigroupAny:function(){return dw},Show:function(){return dW},fold:function(){return dT},foldW:function(){return dR},isBoolean:function(){return d_},match:function(){return dS},matchW:function(){return dI}});var g={};e.r(g),e.d(g,{booleanAlgebraBoolean:function(){return dA},booleanAlgebraVoid:function(){return dU},getDualBooleanAlgebra:function(){return dP},getFunctionBooleanAlgebra:function(){return dL},reverse:function(){return dF}});var y={};e.r(y),e.d(y,{boundedNumber:function(){return dj},clamp:function(){return dD},reverse:function(){return dN}});var b={};e.r(b),e.d(b,{getMinMaxDistributiveLattice:function(){return dq}});var _={};e.r(_),e.d(_,{getMinMaxBoundedDistributiveLattice:function(){return dK}});var I={};e.r(I);var R={};e.r(R);var S={};e.r(S);var T={};e.r(T);var x={};e.r(x),e.d(x,{fanIn:function(){return dB},fanin:function(){return dz},split:function(){return dY},splitChoice:function(){return dV}});var M={};e.r(M);var O={};e.r(O),e.d(O,{Contravariant:function(){return d0},URI:function(){return d$},and:function(){return d5},contramap:function(){return dH},getMonoidAll:function(){return dQ},getMonoidAny:function(){return dJ},getSemigroupAll:function(){return dZ},getSemigroupAny:function(){return dX},not:function(){return d1},or:function(){return d2}});var w={};e.r(w),e.d(w,{Alt:function(){return sP},Alternative:function(){return sN},ApT:function(){return hE},Applicative:function(){return sT},Apply:function(){return sS},Chain:function(){return sM},Compactable:function(){return sB},Do:function(){return hx},Extend:function(){return sq},Filterable:function(){return sX},Foldable:function(){return sk},FromEither:function(){return s4},Functor:function(){return sg},Monad:function(){return sO},MonadThrow:function(){return s3},Pointed:function(){return sI},Traversable:function(){return sQ},URI:function(){return sp},Witherable:function(){return s7},Zero:function(){return sL},alt:function(){return sU},altW:function(){return sF},ap:function(){return sR},apFirst:function(){return ha},apS:function(){return hC},apSecond:function(){return hf},as:function(){return sy},asUnit:function(){return sb},bind:function(){return hw},bindTo:function(){return hM},chain:function(){return hA},chainEitherK:function(){return hm},chainFirst:function(){return hL},chainFirstEitherK:function(){return hv},chainNullableK:function(){return hI},compact:function(){return sK},duplicate:function(){return hs},elem:function(){return function n(t){return function(e,r){if(void 0===r){var u=n(t);return function(n){return u(e,n)}}return!hn(r)&&t.equals(e,r.value)}}},exists:function(){return hT},extend:function(){return sj},filter:function(){return sV},filterMap:function(){return sz},flap:function(){return hc},flatMap:function(){return sx},flatten:function(){return hl},fold:function(){return hu},foldMap:function(){return sC},foldW:function(){return he},fromEither:function(){return s9},fromEitherK:function(){return hh},fromNullable:function(){return hg},fromNullableK:function(){return h_},fromPredicate:function(){return d3},getApplyMonoid:function(){return hK},getApplySemigroup:function(){return hq},getEq:function(){return ss},getFirstMonoid:function(){return hG},getLastMonoid:function(){return hY},getLeft:function(){return d9},getMonoid:function(){return sm},getOrElse:function(){return ho},getOrElseW:function(){return hi},getOrd:function(){return sh},getRefinement:function(){return hD},getRight:function(){return d4},getShow:function(){return sd},guard:function(){return sD},isNone:function(){return hn},isSome:function(){return s6},let:function(){return hO},map:function(){return sv},mapNullable:function(){return hN},match:function(){return hr},matchW:function(){return ht},none:function(){return d7},of:function(){return s_},option:function(){return hj},orElse:function(){return sW},partition:function(){return sH},partitionMap:function(){return s$},reduce:function(){return sw},reduceRight:function(){return sE},separate:function(){return sY},sequence:function(){return sZ},sequenceArray:function(){return hP},some:function(){return d8},tap:function(){return hp},tapEither:function(){return hd},throwError:function(){return s8},toNullable:function(){return hR},toUndefined:function(){return hS},traverse:function(){return sJ},traverseArray:function(){return hU},traverseArrayWithIndex:function(){return hF},traverseReadonlyArrayWithIndex:function(){return hW},traverseReadonlyNonEmptyArrayWithIndex:function(){return hk},tryCatch:function(){return hy},tryCatchK:function(){return hb},wilt:function(){return s5},wither:function(){return s2},zero:function(){return sA}});var C={};e.r(C),e.d(C,{compact:function(){return hB},getCompactableComposition:function(){return hz},separate:function(){return hV}});var E={};e.r(E),e.d(E,{error:function(){return hX},info:function(){return hJ},log:function(){return hH},warn:function(){return h$}});var k={};e.r(k),e.d(k,{Bifunctor:function(){return ms},Contravariant:function(){return md},Functor:function(){return ml},URI:function(){return mf},bimap:function(){return mc},const_:function(){return mh},contramap:function(){return mi},flap:function(){return mp},getApplicative:function(){return mn},getApply:function(){return h6},getBooleanAlgebra:function(){return h4},getBounded:function(){return h2},getEq:function(){return h0},getHeytingAlgebra:function(){return h9},getMonoid:function(){return h7},getOrd:function(){return h1},getRing:function(){return h3},getSemigroup:function(){return h5},getSemiring:function(){return h8},getShow:function(){return hQ},make:function(){return hZ},map:function(){return mo},mapLeft:function(){return ma}});var W={};e.r(W);var F={};e.r(F),e.d(F,{Eq:function(){return mm},Ord:function(){return mb},create:function(){return m_},eqDate:function(){return mv},eqMonth:function(){return mg},eqYear:function(){return my},now:function(){return mI}});var U={};e.r(U),e.d(U,{alt:function(){return mU},altValidation:function(){return mN},ap:function(){return mk},bimap:function(){return mP},chain:function(){return mW},chainNullableK:function(){return mC},flatMap:function(){return mF},fromNullable:function(){return mO},fromNullableK:function(){return mw},getEitherM:function(){return m$},getOrElse:function(){return mK},left:function(){return mT},leftF:function(){return mM},map:function(){return mE},mapBoth:function(){return mA},mapError:function(){return mD},mapLeft:function(){return mL},match:function(){return mj},matchE:function(){return mq},orElse:function(){return mG},orElseFirst:function(){return mY},orLeft:function(){return mV},right:function(){return mS},rightF:function(){return mx},swap:function(){return mz},tapError:function(){return mB},toUnion:function(){return mH}});var P={};e.r(P),e.d(P,{URI:function(){return mX},getMonoid:function(){return mZ},getSemigroup:function(){return mJ}});var A={};e.r(A);var L={};e.r(L),e.d(L,{fieldNumber:function(){return m1},gcd:function(){return mQ},lcm:function(){return m0}});var D={};e.r(D),e.d(D,{filter:function(){return m2},filterMap:function(){return m5},getFilterableComposition:function(){return m3},partition:function(){return m7},partitionMap:function(){return m8}});var N={};e.r(N);var j={};e.r(j),e.d(j,{foldM:function(){return vu},foldMap:function(){return m4},getFoldableComposition:function(){return vo},intercalate:function(){return vt},reduce:function(){return m9},reduceM:function(){return vn},reduceRight:function(){return m6},toArray:function(){return vi},toReadonlyArray:function(){return ve},traverse_:function(){return vr}});var q={};e.r(q),e.d(q,{foldMapWithIndex:function(){return va},getFoldableWithIndexComposition:function(){return vl},reduceRightWithIndex:function(){return vf},reduceWithIndex:function(){return vc}});var K={};e.r(K),e.d(K,{chainFirstIOK:function(){return vs},chainIOK:function(){return vd},fromIOK:function(){return vp},tapIO:function(){return vh}});var G={};e.r(G),e.d(G,{ApT:function(){return v4},Applicative:function(){return vz},Apply:function(){return vK},Category:function(){return vZ},Chain:function(){return vH},Choice:function(){return v0},Do:function(){return v8},Functor:function(){return vN},Monad:function(){return v$},Pointed:function(){return vq},Profunctor:function(){return vJ},Strong:function(){return vQ},URI:function(){return vD},ap:function(){return vM},apFirst:function(){return vG},apFirstW:function(){return vY},apS:function(){return v3},apSW:function(){return v9},apSecond:function(){return vB},apSecondW:function(){return vV},apW:function(){return vx},ask:function(){return vm},asks:function(){return vv},asksReader:function(){return vb},asksReaderW:function(){return vy},bind:function(){return v5},bindTo:function(){return v1},bindW:function(){return v7},chain:function(){return gi},chainFirst:function(){return go},chainFirstW:function(){return gc},chainW:function(){return gu},compose:function(){return vk},first:function(){return vU},flap:function(){return vj},flatMap:function(){return vw},flatten:function(){return vE},flattenW:function(){return vC},getMonoid:function(){return gl},getSemigroup:function(){return gf},id:function(){return vF},left:function(){return vA},let:function(){return v2},local:function(){return vg},map:function(){return vT},of:function(){return vO},promap:function(){return vW},reader:function(){return ga},right:function(){return vL},second:function(){return vP},sequenceArray:function(){return gr},tap:function(){return vX},traverseArray:function(){return ge},traverseArrayWithIndex:function(){return gt},traverseReadonlyArrayWithIndex:function(){return gn},traverseReadonlyNonEmptyArrayWithIndex:function(){return v6}});var Y={};e.r(Y),e.d(Y,{ask:function(){return gp},asks:function(){return gd},chainFirstReaderK:function(){return gm},chainReaderK:function(){return gh},fromReaderK:function(){return gs},tapReader:function(){return gv}});var B={};e.r(B),e.d(B,{Applicative:function(){return gP},Apply:function(){return gW},Chain:function(){return gA},FromState:function(){return gN},Functor:function(){return gC},Monad:function(){return gL},Pointed:function(){return gk},URI:function(){return gw},ap:function(){return gT},apFirst:function(){return gF},apS:function(){return gB},apSecond:function(){return gU},bind:function(){return gY},bindTo:function(){return gK},chain:function(){return gJ},chainFirst:function(){return gZ},evalState:function(){return gQ},evaluate:function(){return gj},execState:function(){return g0},execute:function(){return gq},flap:function(){return gE},flatMap:function(){return gM},flatten:function(){return gO},get:function(){return gg},gets:function(){return g_},let:function(){return gG},map:function(){return gS},modify:function(){return gb},of:function(){return gx},put:function(){return gy},sequenceArray:function(){return gX},state:function(){return g1},tap:function(){return gD},traverseArray:function(){return g$},traverseArrayWithIndex:function(){return gH},traverseReadonlyArrayWithIndex:function(){return gz},traverseReadonlyNonEmptyArrayWithIndex:function(){return gV}});var V={};e.r(V),e.d(V,{chainStateK:function(){return g9},fromStateK:function(){return g3},get:function(){return g2},gets:function(){return g8},modify:function(){return g7},put:function(){return g5}});var z={};e.r(z),e.d(z,{chainFirstTaskK:function(){return yn},chainTaskK:function(){return g6},fromTaskK:function(){return g4},tapTask:function(){return yt}});var H={};e.r(H),e.d(H,{fromTheseK:function(){return ye}});var $={};e.r($),e.d($,{getFunctorWithIndexComposition:function(){return yu},mapWithIndex:function(){return yr}});var X={};e.r(X);var J={};e.r(J);var Z={};e.r(Z);var Q={};e.r(Q),e.d(Q,{Alt:function(){return yY},Applicative:function(){return yD},Apply:function(){return yP},Chain:function(){return yN},ChainRec:function(){return yV},Comonad:function(){return yB},Do:function(){return yz},Foldable:function(){return yK},Functor:function(){return yW},Monad:function(){return yj},Pointed:function(){return yU},Traversable:function(){return yG},URI:function(){return yC},alt:function(){return yw},altW:function(){return yO},ap:function(){return ym},apFirst:function(){return yA},apS:function(){return yJ},apSecond:function(){return yL},bind:function(){return yX},bindTo:function(){return yH},chain:function(){return yZ},chainFirst:function(){return yq},duplicate:function(){return y_},extend:function(){return yy},extract:function(){return yb},flap:function(){return yF},flatMap:function(){return yg},flatten:function(){return yI},foldMap:function(){return yS},getEq:function(){return yk},getShow:function(){return yE},identity:function(){return yQ},let:function(){return y$},map:function(){return yh},of:function(){return yv},reduce:function(){return yR},reduceRight:function(){return yT},sequence:function(){return yM},traverse:function(){return yx}});var nn={};e.r(nn);var nt={};e.r(nt),e.d(nt,{ApT:function(){return b_},Applicative:function(){return bc},Apply:function(){return bu},Chain:function(){return ba},ChainRec:function(){return bs},Do:function(){return bm},FromIO:function(){return bh},Functor:function(){return y6},Monad:function(){return bf},MonadIO:function(){return bd},Pointed:function(){return br},URI:function(){return y4},ap:function(){return y7},apFirst:function(){return bi},apS:function(){return bb},apSecond:function(){return bo},as:function(){return bn},asUnit:function(){return bt},bind:function(){return by},bindTo:function(){return bv},chain:function(){return bM},chainFirst:function(){return bO},flap:function(){return be},flatMap:function(){return y3},flatten:function(){return y9},fromIO:function(){return bp},getMonoid:function(){return bE},getSemigroup:function(){return bC},io:function(){return bw},let:function(){return bg},map:function(){return y5},of:function(){return y8},sequenceArray:function(){return bx},tap:function(){return bl},traverseArray:function(){return bT},traverseArrayWithIndex:function(){return bS},traverseReadonlyArrayWithIndex:function(){return bR},traverseReadonlyNonEmptyArrayWithIndex:function(){return bI}});var ne={};e.r(ne),e.d(ne,{Alt:function(){return _W},ApT:function(){return Ir},Applicative:function(){return Ih},ApplicativePar:function(){return _S},ApplicativeSeq:function(){return _T},ApplyPar:function(){return _y},Bifunctor:function(){return _g},Chain:function(){return _x},Do:function(){return _3},FromEither:function(){return _O},FromIO:function(){return _w},Functor:function(){return _d},Monad:function(){return _M},MonadIO:function(){return _F},MonadThrow:function(){return _U},Pointed:function(){return _v},URI:function(){return _c},alt:function(){return _u},altW:function(){return _i},ap:function(){return b4},apFirst:function(){return _b},apFirstW:function(){return __},apS:function(){return It},apSW:function(){return Ie},apSecond:function(){return _I},apSecondW:function(){return _R},apW:function(){return b6},as:function(){return _s},asUnit:function(){return _h},bimap:function(){return b8},bind:function(){return _6},bindTo:function(){return _9},bindW:function(){return In},bracket:function(){return _7},bracketW:function(){return _8},chain:function(){return Im},chainEitherK:function(){return _X},chainEitherKW:function(){return _J},chainFirst:function(){return Ig},chainFirstEitherK:function(){return _Z},chainFirstEitherKW:function(){return _Q},chainFirstIOK:function(){return _A},chainFirstW:function(){return Iy},chainIOK:function(){return _$},chainOptionK:function(){return _N},chainOptionKW:function(){return _j},chainW:function(){return Iv},filterOrElse:function(){return _1},filterOrElseW:function(){return _2},flap:function(){return _m},flatMap:function(){return _t},flatMapEither:function(){return _z},flatMapIO:function(){return _H},flatMapNullable:function(){return _B},flatMapOption:function(){return _V},flatten:function(){return _r},flattenW:function(){return _e},fold:function(){return bj},foldW:function(){return bK},fromEither:function(){return bP},fromEitherK:function(){return _5},fromIO:function(){return bA},fromIOK:function(){return _P},fromOption:function(){return _L},fromOptionK:function(){return _D},fromPredicate:function(){return _0},getAltIOValidation:function(){return _f},getApplicativeIOValidation:function(){return _a},getApplyMonoid:function(){return IS},getApplySemigroup:function(){return IR},getCompactable:function(){return _l},getFilterable:function(){return _p},getIOValidation:function(){return Ix},getOrElse:function(){return bG},getOrElseW:function(){return bY},getSemigroup:function(){return IT},ioEither:function(){return II},left:function(){return bk},leftIO:function(){return bU},let:function(){return _4},liftNullable:function(){return _K},liftOption:function(){return _G},map:function(){return b5},mapBoth:function(){return b7},mapError:function(){return b3},mapLeft:function(){return b9},match:function(){return bL},matchE:function(){return bN},matchEW:function(){return bq},matchW:function(){return bD},of:function(){return _n},orElse:function(){return bH},orElseFirst:function(){return Ib},orElseFirstIOK:function(){return bJ},orElseFirstW:function(){return I_},orElseW:function(){return b$},orLeft:function(){return bZ},right:function(){return bW},rightIO:function(){return bF},sequenceArray:function(){return Il},sequenceSeqArray:function(){return Is},swap:function(){return bQ},tap:function(){return _C},tapEither:function(){return _E},tapError:function(){return bX},tapIO:function(){return _k},throwError:function(){return _o},toUnion:function(){return bz},traverseArray:function(){return If},traverseArrayWithIndex:function(){return Ia},traverseReadonlyArrayWithIndex:function(){return Ii},traverseReadonlyArrayWithIndexSeq:function(){return Ic},traverseReadonlyNonEmptyArrayWithIndex:function(){return Iu},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Io},traverseSeqArray:function(){return Id},traverseSeqArrayWithIndex:function(){return Ip},tryCatch:function(){return bB},tryCatchK:function(){return bV}});var nr={};e.r(nr),e.d(nr,{alt:function(){return IG},ap:function(){return Ij},chain:function(){return Iq},chainNullableK:function(){return Ik},chainOptionK:function(){return IF},flatMap:function(){return IK},fromEither:function(){return IP},fromF:function(){return Iw},fromNullable:function(){return IC},fromNullableK:function(){return IE},fromOptionK:function(){return IW},fromPredicate:function(){return IU},getOptionM:function(){return IY},getOrElse:function(){return ID},map:function(){return IN},match:function(){return IA},matchE:function(){return IL},some:function(){return IM},zero:function(){return IO}});var nu={};e.r(nu),e.d(nu,{Alt:function(){return RU},Alternative:function(){return RL},ApT:function(){return R3},Applicative:function(){return RO},Apply:function(){return RT},Chain:function(){return Rw},Compactable:function(){return Rj},Do:function(){return R1},Filterable:function(){return Rq},FromEither:function(){return RC},FromIO:function(){return RE},Functor:function(){return Rb},Monad:function(){return RD},MonadIO:function(){return RN},Pointed:function(){return RS},URI:function(){return Ry},Zero:function(){return RP},alt:function(){return Ri},altW:function(){return Ro},ap:function(){return Rt},apFirst:function(){return Rx},apS:function(){return R8},apSecond:function(){return RM},as:function(){return R_},asUnit:function(){return RI},bind:function(){return R7},bindTo:function(){return R2},chain:function(){return R6},chainEitherK:function(){return RZ},chainFirst:function(){return Sn},chainFirstEitherK:function(){return RQ},chainFirstIOK:function(){return RX},chainIOK:function(){return R$},chainNullableK:function(){return I4},chainOptionK:function(){return R0},compact:function(){return Rf},filter:function(){return Rp},filterMap:function(){return Rd},flap:function(){return RR},flatMap:function(){return Rr},flatMapEither:function(){return RV},flatMapIO:function(){return RY},flatMapNullable:function(){return Rz},flatMapOption:function(){return RB},flatten:function(){return Ru},fold:function(){return I0},fromEither:function(){return IH},fromEitherK:function(){return RJ},fromIO:function(){return I$},fromIOEither:function(){return IX},fromIOK:function(){return RH},fromNullable:function(){return I3},fromNullableK:function(){return I9},fromOption:function(){return Iz},fromOptionK:function(){return I6},fromPredicate:function(){return IV},getOrElse:function(){return I2},getOrElseW:function(){return I5},guard:function(){return RA},let:function(){return R5},map:function(){return Rn},match:function(){return IJ},matchE:function(){return IQ},matchEW:function(){return I1},matchW:function(){return IZ},none:function(){return Ra},of:function(){return Re},partition:function(){return Rs},partitionMap:function(){return Rh},separate:function(){return Rl},some:function(){return IB},tap:function(){return Rk},tapEither:function(){return RW},tapIO:function(){return RF},toNullable:function(){return I8},toUndefined:function(){return I7},traverseReadonlyArrayWithIndex:function(){return R4},traverseReadonlyNonEmptyArrayWithIndex:function(){return R9},zero:function(){return Rc}});var ni={};e.r(ni),e.d(ni,{IORef:function(){return St},newIORef:function(){return Se}});var no={};e.r(no);var nc={};e.r(nc),e.d(nc,{parse:function(){return Sr},stringify:function(){return Su}});var na={};e.r(na);var nf={};e.r(nf),e.d(nf,{Compactable:function(){return S9},Filterable:function(){return S4},Functor:function(){return S7},URI:function(){return SZ},collect:function(){return Sh},compact:function(){return SY},deleteAt:function(){return Sy},difference:function(){return Td},elem:function(){return Sp},empty:function(){return Sx},filter:function(){return SB},filterMap:function(){return SV},filterMapWithIndex:function(){return SF},filterWithIndex:function(){return SU},flap:function(){return S8},foldMap:function(){return Tn},foldMapWithIndex:function(){return Tu},fromFoldable:function(){return SC},fromMap:function(){return Si},getDifferenceMagma:function(){return S2},getEq:function(){return SM},getFilterableWithIndex:function(){return S5},getFoldable:function(){return Te},getFoldableWithIndex:function(){return To},getFunctorWithIndex:function(){return S3},getIntersectionSemigroup:function(){return S1},getMonoid:function(){return SO},getShow:function(){return Sc},getTraversable:function(){return Tc},getTraversableWithIndex:function(){return Ta},getUnionMonoid:function(){return S0},getUnionSemigroup:function(){return SQ},getWitherable:function(){return Tf},insertAt:function(){return Ts},intersection:function(){return Tp},isEmpty:function(){return Sf},isSubmap:function(){return ST},keys:function(){return Sd},lookup:function(){return SS},lookupWithKey:function(){return SR},map:function(){return Sz},mapWithIndex:function(){return SH},member:function(){return Sl},modifyAt:function(){return S_},partition:function(){return S$},partitionMap:function(){return SX},partitionMapWithIndex:function(){return Sk},partitionWithIndex:function(){return SW},pop:function(){return SI},readonlyMap:function(){return Th},reduce:function(){return S6},reduceRight:function(){return Tt},reduceRightWithIndex:function(){return Ti},reduceWithIndex:function(){return Tr},separate:function(){return SJ},singleton:function(){return Sw},size:function(){return Sa},toMap:function(){return So},toReadonlyArray:function(){return Sm},toUnfoldable:function(){return Sv},union:function(){return Tl},updateAt:function(){return Sb},upsertAt:function(){return Sg},values:function(){return Ss}});var nl={};e.r(nl),e.d(nl,{Compactable:function(){return xh},Filterable:function(){return xm},Functor:function(){return xd},URI:function(){return T3},collect:function(){return TS},compact:function(){return TZ},deleteAt:function(){return TO},difference:function(){return xb},elem:function(){return T_},empty:function(){return x_},filter:function(){return TQ},filterMap:function(){return T0},filterMapWithIndex:function(){return Tq},filterWithIndex:function(){return TK},flap:function(){return xs},foldMap:function(){return xu},foldMapWithIndex:function(){return xa},fromFoldable:function(){return TL},getDifferenceMagma:function(){return xn},getEq:function(){return TU},getFilterableWithIndex:function(){return xt},getFoldable:function(){return xo},getFoldableWithIndex:function(){return xl},getIntersectionSemigroup:function(){return T6},getMonoid:function(){return TP},getShow:function(){return Tv},getTraversableWithIndex:function(){return xp},getUnionMonoid:function(){return T4},getUnionSemigroup:function(){return T9},getWitherable:function(){return xe},insertAt:function(){return xI},intersection:function(){return xy},isEmpty:function(){return Ty},isSubmap:function(){return TF},keys:function(){return TI},lookup:function(){return TW},lookupWithKey:function(){return Tk},map:function(){return T1},mapWithIndex:function(){return T2},map_:function(){return xR},member:function(){return Tb},modifyAt:function(){return TC},partition:function(){return T5},partitionMap:function(){return T7},partitionMapWithIndex:function(){return TN},partitionWithIndex:function(){return Tj},pop:function(){return TE},reduce:function(){return xr},reduceRight:function(){return xi},reduceRightWithIndex:function(){return xf},reduceWithIndex:function(){return xc},separate:function(){return T8},singleton:function(){return TA},size:function(){return Tg},toArray:function(){return TT},toUnfoldable:function(){return Tx},union:function(){return xg},updateAt:function(){return Tw},upsertAt:function(){return TM},values:function(){return TR}});var np={};e.r(np);var nd={};e.r(nd);var ns={};e.r(ns);var nh={};e.r(nh);var nm={};e.r(nm);var nv={};e.r(nv),e.d(nv,{concatAll:function(){return xw},fold:function(){return xP},getDualMonoid:function(){return xW},getEndomorphismMonoid:function(){return xN},getFunctionMonoid:function(){return xD},getJoinMonoid:function(){return xF},getMeetMonoid:function(){return xU},getStructMonoid:function(){return xk},getTupleMonoid:function(){return xE},max:function(){return xT},min:function(){return xS},monoidAll:function(){return xA},monoidAny:function(){return xL},monoidProduct:function(){return xK},monoidString:function(){return xj},monoidSum:function(){return xq},monoidVoid:function(){return xC},reverse:function(){return xx},struct:function(){return xM},tuple:function(){return xO}});var ng={};e.r(ng);var ny={};e.r(ny),e.d(ny,{Eq:function(){return xV},Monoid:function(){return xH},Semigroup:function(){return xz},eqOrdering:function(){return xZ},invert:function(){return xX},match:function(){return xY},matchW:function(){return xG},monoidOrdering:function(){return xQ},reverse:function(){return xB},semigroupOrdering:function(){return xJ},sign:function(){return x$}});var nb={};e.r(nb),e.d(nb,{alt:function(){return Mu},ap:function(){return x5},bimap:function(){return x8},chain:function(){return x7},compose:function(){return Mh},contramap:function(){return x1},extend:function(){return x9},filter:function(){return Mi},filterMap:function(){return Mo},filterMapWithIndex:function(){return Ml},filterWithIndex:function(){return Mf},foldMap:function(){return x6},foldMapWithIndex:function(){return Me},map:function(){return x0},mapLeft:function(){return x3},mapWithIndex:function(){return x2},partition:function(){return Mc},partitionMap:function(){return Ma},partitionMapWithIndex:function(){return Md},partitionWithIndex:function(){return Mp},pipe:function(){return Mv},pipeable:function(){return Mm},promap:function(){return Ms},reduce:function(){return x4},reduceRight:function(){return Mn},reduceRightWithIndex:function(){return Mr},reduceWithIndex:function(){return Mt}});var n_={};e.r(n_);var nI={};e.r(nI);var nR={};e.r(nR),e.d(nR,{random:function(){return Mg},randomBool:function(){return M_},randomElem:function(){return MI},randomInt:function(){return My},randomRange:function(){return Mb}});var nS={};e.r(nS),e.d(nS,{Alt:function(){return OR},ApT:function(){return O8},Applicative:function(){return Os},Apply:function(){return Oa},Bifunctor:function(){return OI},Chain:function(){return Oh},Do:function(){return OZ},FromEither:function(){return Ov},FromReader:function(){return Og},Functor:function(){return Or},Monad:function(){return Om},MonadThrow:function(){return Ow},Pointed:function(){return Oc},URI:function(){return M4},alt:function(){return M8},altW:function(){return M3},ap:function(){return MQ},apFirst:function(){return Of},apFirstW:function(){return Ol},apS:function(){return O5},apSW:function(){return O7},apSecond:function(){return Op},apSecondW:function(){return Od},apW:function(){return M0},as:function(){return Ou},asUnit:function(){return Oi},ask:function(){return OS},asks:function(){return OT},asksReaderEither:function(){return MN},asksReaderEitherW:function(){return MD},bimap:function(){return MX},bind:function(){return O1},bindTo:function(){return OQ},bindW:function(){return O2},chain:function(){return wt},chainEitherK:function(){return OK},chainEitherKW:function(){return OG},chainFirst:function(){return wr},chainFirstEitherK:function(){return OY},chainFirstEitherKW:function(){return OB},chainFirstReaderK:function(){return OM},chainFirstReaderKW:function(){return OO},chainFirstW:function(){return wu},chainOptionK:function(){return Ok},chainOptionKW:function(){return OW},chainReaderK:function(){return OV},chainReaderKW:function(){return Oz},chainW:function(){return we},filterOrElse:function(){return O$},filterOrElseW:function(){return OX},flap:function(){return Oo},flatMap:function(){return M2},flatMapEither:function(){return Oj},flatMapNullable:function(){return OD},flatMapOption:function(){return ON},flatMapReader:function(){return Oq},flatten:function(){return M7},flattenW:function(){return M5},fold:function(){return Mk},foldW:function(){return MF},fromEither:function(){return MM},fromEitherK:function(){return OJ},fromOption:function(){return OC},fromOptionK:function(){return OE},fromPredicate:function(){return OH},fromReader:function(){return MO},fromReaderK:function(){return Ox},getAltReaderValidation:function(){return Oe},getApplicativeReaderValidation:function(){return Ot},getApplyMonoid:function(){return wf},getApplySemigroup:function(){return wa},getCompactable:function(){return M6},getFilterable:function(){return On},getOrElse:function(){return MU},getOrElseW:function(){return MP},getReaderValidation:function(){return wp},getSemigroup:function(){return wl},left:function(){return MR},leftReader:function(){return Mx},let:function(){return O0},liftNullable:function(){return OP},liftOption:function(){return OA},local:function(){return ML},map:function(){return MH},mapBoth:function(){return M$},mapError:function(){return MJ},mapLeft:function(){return MZ},match:function(){return Mw},matchE:function(){return ME},matchEW:function(){return MW},matchW:function(){return MC},of:function(){return M1},orElse:function(){return Mj},orElseFirst:function(){return wi},orElseFirstW:function(){return wo},orElseW:function(){return Mq},orLeft:function(){return MG},readerEither:function(){return wc},right:function(){return MS},rightReader:function(){return MT},sequenceArray:function(){return wn},swap:function(){return MY},tap:function(){return Oy},tapEither:function(){return Ob},tapError:function(){return MK},tapReader:function(){return O_},throwError:function(){return M9},toUnion:function(){return MA},traverseArray:function(){return O6},traverseArrayWithIndex:function(){return O4},traverseReadonlyArrayWithIndex:function(){return O9},traverseReadonlyNonEmptyArrayWithIndex:function(){return O3}});var nT={};e.r(nT),e.d(nT,{ap:function(){return wh},chain:function(){return wm},flatMap:function(){return wv},fromNaturalTransformation:function(){return wy},fromReader:function(){return wg},getReaderM:function(){return wb},map:function(){return ws},of:function(){return wd}});var nx={};e.r(nx),e.d(nx,{ApT:function(){return Ca},Applicative:function(){return wG},Apply:function(){return wj},Chain:function(){return wY},Do:function(){return Ce},FromIO:function(){return wz},FromReader:function(){return wH},Functor:function(){return wP},Monad:function(){return wB},MonadIO:function(){return wV},Pointed:function(){return wN},URI:function(){return wU},ap:function(){return ww},apFirst:function(){return wq},apS:function(){return Co},apSW:function(){return Cc},apSecond:function(){return wK},apW:function(){return wC},as:function(){return wA},asUnit:function(){return wL},ask:function(){return w8},asks:function(){return w3},asksReaderIO:function(){return wT},asksReaderIOW:function(){return wS},bind:function(){return Cu},bindTo:function(){return Cr},bindW:function(){return Ci},chain:function(){return Ch},chainFirst:function(){return Cv},chainFirstIOK:function(){return w7},chainFirstReaderK:function(){return Cn},chainFirstReaderKW:function(){return Ct},chainFirstW:function(){return Cg},chainIOK:function(){return w5},chainReaderK:function(){return w4},chainReaderKW:function(){return w6},chainW:function(){return Cm},flap:function(){return wD},flatMap:function(){return wk},flatMapIO:function(){return wJ},flatMapReader:function(){return wZ},flatten:function(){return wF},flattenW:function(){return wW},fromIO:function(){return wI},fromIOK:function(){return w2},fromReader:function(){return w_},fromReaderK:function(){return w9},local:function(){return wR},map:function(){return wO},of:function(){return wE},sequenceArray:function(){return Cs},tap:function(){return wQ},tapIO:function(){return w0},tapReader:function(){return w1},traverseArray:function(){return Cd},traverseArrayWithIndex:function(){return Cp},traverseReadonlyArrayWithIndex:function(){return Cl},traverseReadonlyNonEmptyArrayWithIndex:function(){return Cf}});var nM={};e.r(nM),e.d(nM,{ApT:function(){return C9},ApplicativePar:function(){return CD},ApplicativeSeq:function(){return Cj},ApplyPar:function(){return CP},ApplySeq:function(){return CN},Chain:function(){return Cq},Do:function(){return C2},FromIO:function(){return CV},FromTask:function(){return C0},Functor:function(){return CE},Monad:function(){return CK},MonadIO:function(){return CG},MonadTask:function(){return CB},Pointed:function(){return CU},URI:function(){return Cw},ap:function(){return CT},apFirst:function(){return CA},apS:function(){return C3},apSecond:function(){return CL},as:function(){return Ck},asUnit:function(){return CW},bind:function(){return C8},bindTo:function(){return C5},chain:function(){return Ea},chainFirst:function(){return Ef},chainFirstIOK:function(){return CQ},chainIOK:function(){return CZ},delay:function(){return Cb},flap:function(){return CF},flatMap:function(){return CM},flatMapIO:function(){return CH},flatten:function(){return CO},fromIO:function(){return Cy},fromIOK:function(){return CJ},fromTask:function(){return CY},getMonoid:function(){return Es},getRaceMonoid:function(){return CC},getSemigroup:function(){return Ed},let:function(){return C7},map:function(){return CS},never:function(){return C1},of:function(){return Cx},sequenceArray:function(){return Eu},sequenceSeqArray:function(){return Ec},tap:function(){return C$},tapIO:function(){return CX},task:function(){return El},taskSeq:function(){return Ep},traverseArray:function(){return Er},traverseArrayWithIndex:function(){return Ee},traverseReadonlyArrayWithIndex:function(){return C6},traverseReadonlyArrayWithIndexSeq:function(){return Et},traverseReadonlyNonEmptyArrayWithIndex:function(){return C4},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return En},traverseSeqArray:function(){return Eo},traverseSeqArrayWithIndex:function(){return Ei}});var nO={};e.r(nO),e.d(nO,{ApT:function(){return kR},ApplicativePar:function(){return Ej},ApplicativeSeq:function(){return EK},ApplyPar:function(){return EL},ApplySeq:function(){return Eq},Chain:function(){return EG},Do:function(){return km},FromIO:function(){return Ez},FromReader:function(){return E$},FromTask:function(){return EH},Functor:function(){return EW},Monad:function(){return EY},MonadIO:function(){return EB},MonadTask:function(){return EV},Pointed:function(){return EA},URI:function(){return Ek},ap:function(){return Ex},apFirst:function(){return ED},apS:function(){return k_},apSW:function(){return kI},apSecond:function(){return EN},apW:function(){return EM},as:function(){return EF},asUnit:function(){return EU},ask:function(){return kn},asks:function(){return kt},asksReaderTask:function(){return E_},asksReaderTaskW:function(){return Eb},bind:function(){return ky},bindTo:function(){return kv},bindW:function(){return kb},chain:function(){return kW},chainFirst:function(){return kU},chainFirstIOK:function(){return E6},chainFirstReaderIOK:function(){return kp},chainFirstReaderIOKW:function(){return kl},chainFirstReaderK:function(){return ki},chainFirstReaderKW:function(){return ko},chainFirstTaskK:function(){return kh},chainFirstW:function(){return kP},chainIOK:function(){return E4},chainReaderIOK:function(){return kf},chainReaderIOKW:function(){return ka},chainReaderK:function(){return kr},chainReaderKW:function(){return ku},chainTaskK:function(){return ks},chainW:function(){return kF},flap:function(){return EP},flatMap:function(){return Ew},flatMapIO:function(){return EZ},flatMapReader:function(){return E0},flatMapReaderIO:function(){return E1},flatMapTask:function(){return EQ},flatten:function(){return EE},flattenW:function(){return EC},fromIO:function(){return Ev},fromIOK:function(){return E9},fromReader:function(){return Eh},fromReaderIO:function(){return Eg},fromReaderIOK:function(){return kc},fromReaderK:function(){return ke},fromTask:function(){return Em},fromTaskK:function(){return kd},getMonoid:function(){return kj},getSemigroup:function(){return kN},let:function(){return kg},local:function(){return Ey},map:function(){return ET},of:function(){return EO},readerTask:function(){return kL},readerTaskSeq:function(){return kD},run:function(){return kq},sequenceArray:function(){return kC},sequenceSeqArray:function(){return kA},tap:function(){return E2},tapIO:function(){return E5},tapReader:function(){return E7},tapReaderIO:function(){return E3},tapTask:function(){return E8},traverseArray:function(){return kw},traverseArrayWithIndex:function(){return kO},traverseReadonlyArrayWithIndex:function(){return kT},traverseReadonlyArrayWithIndexSeq:function(){return kM},traverseReadonlyNonEmptyArrayWithIndex:function(){return kS},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return kx},traverseSeqArray:function(){return kk},traverseSeqArrayWithIndex:function(){return kE}});var nw={};e.r(nw),e.d(nw,{Alt:function(){return Fn},ApT:function(){return FG},ApplicativePar:function(){return WH},ApplicativeSeq:function(){return WX},ApplyPar:function(){return WG},ApplySeq:function(){return W$},Bifunctor:function(){return W6},Chain:function(){return WJ},Do:function(){return FA},FromEither:function(){return W2},FromIO:function(){return W5},FromTask:function(){return W7},Functor:function(){return WD},Monad:function(){return WZ},MonadIO:function(){return WQ},MonadTask:function(){return W0},MonadThrow:function(){return W1},Pointed:function(){return WK},URI:function(){return WF},alt:function(){return WC},altW:function(){return WE},ap:function(){return WT},apFirst:function(){return WY},apFirstW:function(){return WB},apS:function(){return Fq},apSW:function(){return FK},apSecond:function(){return WV},apSecondW:function(){return Wz},apW:function(){return Wx},as:function(){return WN},asUnit:function(){return Wj},bimap:function(){return WI},bind:function(){return FN},bindTo:function(){return FL},bindW:function(){return Fj},bracket:function(){return FU},bracketW:function(){return FP},chain:function(){return F0},chainEitherK:function(){return Fg},chainEitherKW:function(){return Fy},chainFirst:function(){return F2},chainFirstEitherK:function(){return Fb},chainFirstEitherKW:function(){return F_},chainFirstIOK:function(){return FO},chainFirstTaskK:function(){return FE},chainFirstW:function(){return F5},chainIOEitherK:function(){return FW},chainIOEitherKW:function(){return Fk},chainIOK:function(){return FM},chainNullableK:function(){return Wr},chainOptionK:function(){return Fr},chainOptionKW:function(){return Fu},chainTaskK:function(){return FC},chainTaskOptionK:function(){return Ws},chainTaskOptionKW:function(){return Wd},chainW:function(){return F1},filterOrElse:function(){return FR},filterOrElseW:function(){return FS},flap:function(){return Wq},flatMap:function(){return WM},flatMapEither:function(){return Fd},flatMapIO:function(){return Fs},flatMapIOEither:function(){return Fm},flatMapNullable:function(){return Fl},flatMapOption:function(){return Fp},flatMapTask:function(){return Fh},flatMapTaskOption:function(){return Fv},flatten:function(){return Ww},flattenW:function(){return WO},fold:function(){return k5},foldW:function(){return k8},fromEither:function(){return kJ},fromEitherK:function(){return FT},fromIO:function(){return k$},fromIOEither:function(){return kZ},fromIOEitherK:function(){return Wh},fromIOK:function(){return Fx},fromNullable:function(){return Wt},fromNullableK:function(){return We},fromOption:function(){return Ft},fromOptionK:function(){return Fe},fromPredicate:function(){return FI},fromTask:function(){return kX},fromTaskK:function(){return Fw},fromTaskOption:function(){return kQ},fromTaskOptionK:function(){return Wp},getAltTaskValidation:function(){return WP},getApplicativeTaskValidation:function(){return WU},getApplyMonoid:function(){return F6},getApplySemigroup:function(){return F4},getCompactable:function(){return WA},getFilterable:function(){return WL},getOrElse:function(){return k3},getOrElseW:function(){return k9},getSemigroup:function(){return Un},getTaskValidation:function(){return Ut},left:function(){return kG},leftIO:function(){return kH},leftTask:function(){return kV},let:function(){return FD},liftNullable:function(){return Fo},liftOption:function(){return Fc},map:function(){return Wb},mapBoth:function(){return W_},mapError:function(){return WR},mapLeft:function(){return WS},match:function(){return k0},matchE:function(){return k2},matchEW:function(){return k7},matchW:function(){return k1},of:function(){return Wk},orElse:function(){return Wu},orElseFirst:function(){return F7},orElseFirstIOK:function(){return Wc},orElseFirstTaskK:function(){return Wa},orElseFirstW:function(){return F8},orElseW:function(){return Wi},orLeft:function(){return Wf},right:function(){return kY},rightIO:function(){return kz},rightTask:function(){return kB},sequenceArray:function(){return FX},sequenceSeqArray:function(){return FQ},swap:function(){return Wl},tap:function(){return W8},tapEither:function(){return W3},tapError:function(){return Wo},tapIO:function(){return W9},tapTask:function(){return W4},taskEither:function(){return F3},taskEitherSeq:function(){return F9},taskify:function(){return FF},throwError:function(){return WW},toUnion:function(){return Wn},traverseArray:function(){return F$},traverseArrayWithIndex:function(){return FH},traverseReadonlyArrayWithIndex:function(){return FB},traverseReadonlyArrayWithIndexSeq:function(){return Fz},traverseReadonlyNonEmptyArrayWithIndex:function(){return FY},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return FV},traverseSeqArray:function(){return FZ},traverseSeqArrayWithIndex:function(){return FJ},tryCatch:function(){return k4},tryCatchK:function(){return k6}});var nC={};e.r(nC),e.d(nC,{Alt:function(){return PP},ApT:function(){return Aq},ApplicativePar:function(){return Ps},ApplicativeSeq:function(){return Pm},ApplyPar:function(){return Pa},ApplySeq:function(){return Ph},Bifunctor:function(){return PU},Chain:function(){return Pv},Do:function(){return AU},FromEither:function(){return PI},FromIO:function(){return PR},FromReader:function(){return PT},FromTask:function(){return PS},Functor:function(){return Pr},Monad:function(){return Pg},MonadIO:function(){return Py},MonadTask:function(){return Pb},MonadThrow:function(){return P_},Pointed:function(){return Pc},URI:function(){return U4},alt:function(){return U8},altW:function(){return U3},ap:function(){return UQ},apFirst:function(){return Pf},apFirstW:function(){return Pl},apS:function(){return AN},apSW:function(){return Aj},apSecond:function(){return Pp},apSecondW:function(){return Pd},apW:function(){return U0},as:function(){return Pu},asUnit:function(){return Pi},ask:function(){return PA},asks:function(){return PL},asksReaderTaskEither:function(){return UP},asksReaderTaskEitherW:function(){return UU},bimap:function(){return UX},bind:function(){return AL},bindTo:function(){return AP},bindW:function(){return AD},bracket:function(){return AW},bracketW:function(){return AF},chain:function(){return AZ},chainEitherK:function(){return Ao},chainEitherKW:function(){return Ac},chainFirst:function(){return A0},chainFirstEitherK:function(){return Aa},chainFirstEitherKW:function(){return Af},chainFirstIOK:function(){return A_},chainFirstReaderEitherK:function(){return PK},chainFirstReaderEitherKW:function(){return Pq},chainFirstReaderIOK:function(){return PX},chainFirstReaderIOKW:function(){return P$},chainFirstReaderK:function(){return PN},chainFirstReaderKW:function(){return Pj},chainFirstReaderTaskK:function(){return Pz},chainFirstReaderTaskKW:function(){return PV},chainFirstTaskEitherK:function(){return PY},chainFirstTaskEitherKW:function(){return PG},chainFirstTaskK:function(){return AS},chainFirstW:function(){return A1},chainIOEitherK:function(){return AC},chainIOEitherKW:function(){return Aw},chainIOK:function(){return Ab},chainNullableK:function(){return UW},chainOptionK:function(){return PQ},chainOptionKW:function(){return P0},chainReaderEitherK:function(){return Ak},chainReaderEitherKW:function(){return AE},chainReaderIOK:function(){return AO},chainReaderIOKW:function(){return AM},chainReaderK:function(){return AT},chainReaderKW:function(){return Ax},chainReaderTaskK:function(){return As},chainReaderTaskKW:function(){return Ad},chainTaskEitherK:function(){return Ap},chainTaskEitherKW:function(){return Al},chainTaskK:function(){return AR},chainW:function(){return AQ},filterOrElse:function(){return Am},filterOrElseW:function(){return Av},flap:function(){return Po},flatMap:function(){return U2},flatMapEither:function(){return P9},flatMapIO:function(){return An},flatMapIOEither:function(){return Au},flatMapNullable:function(){return P8},flatMapOption:function(){return P3},flatMapReader:function(){return Ae},flatMapReaderEither:function(){return Ai},flatMapReaderIO:function(){return Ar},flatMapReaderTask:function(){return P6},flatMapTask:function(){return At},flatMapTaskEither:function(){return P4},flatten:function(){return U7},flattenW:function(){return U5},fold:function(){return UT},foldW:function(){return UM},fromEither:function(){return Um},fromEitherK:function(){return Ag},fromIO:function(){return Ug},fromIOEither:function(){return Ub},fromIOEitherK:function(){return Uq},fromIOK:function(){return Ay},fromNullable:function(){return UE},fromNullableK:function(){return Uk},fromOption:function(){return PJ},fromOptionK:function(){return PZ},fromPredicate:function(){return Ah},fromReader:function(){return Uv},fromReaderEither:function(){return U_},fromReaderEitherK:function(){return UG},fromReaderIOK:function(){return PH},fromReaderK:function(){return PD},fromReaderTaskK:function(){return PB},fromTask:function(){return Uy},fromTaskEither:function(){return Ue},fromTaskEitherK:function(){return UK},fromTaskK:function(){return AI},getAltReaderTaskValidation:function(){return Pe},getApplicativeReaderTaskValidation:function(){return Pt},getApplyMonoid:function(){return A9},getApplySemigroup:function(){return A3},getCompactable:function(){return U6},getFilterable:function(){return Pn},getOrElse:function(){return UO},getOrElseW:function(){return Uw},getReaderTaskValidation:function(){return A6},getSemigroup:function(){return A4},left:function(){return Ur},leftIO:function(){return Ud},leftReader:function(){return Ua},leftReaderIO:function(){return Uh},leftReaderTask:function(){return Ul},leftTask:function(){return Uo},let:function(){return AA},liftNullable:function(){return P2},liftOption:function(){return P5},local:function(){return UF},map:function(){return UH},mapBoth:function(){return U$},mapError:function(){return UJ},mapLeft:function(){return UZ},match:function(){return UI},matchE:function(){return US},matchEW:function(){return Ux},matchW:function(){return UR},of:function(){return U1},orElse:function(){return UA},orElseFirst:function(){return A2},orElseFirstW:function(){return A5},orElseW:function(){return UL},orLeft:function(){return UN},readerTaskEither:function(){return A7},readerTaskEitherSeq:function(){return A8},right:function(){return Uu},rightIO:function(){return Up},rightReader:function(){return Uc},rightReaderIO:function(){return Us},rightReaderTask:function(){return Uf},rightTask:function(){return Ui},run:function(){return Ln},sequenceArray:function(){return AH},sequenceSeqArray:function(){return AJ},swap:function(){return Uj},tap:function(){return Px},tapEither:function(){return PM},tapError:function(){return UD},tapIO:function(){return PO},tapReader:function(){return PC},tapReaderEither:function(){return PE},tapReaderIO:function(){return PF},tapReaderTask:function(){return PW},tapTask:function(){return Pw},tapTaskEither:function(){return Pk},throwError:function(){return U9},toUnion:function(){return UC},traverseArray:function(){return Az},traverseArrayWithIndex:function(){return AV},traverseReadonlyArrayWithIndex:function(){return AG},traverseReadonlyArrayWithIndexSeq:function(){return AB},traverseReadonlyNonEmptyArrayWithIndex:function(){return AK},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return AY},traverseSeqArray:function(){return AX},traverseSeqArrayWithIndex:function(){return A$}});var nE={};e.r(nE),e.d(nE,{Eq:function(){return Lt},Monoid:function(){return Lu},Ord:function(){return Li},Semigroup:function(){return Le},Show:function(){return Lo},empty:function(){return Lr},endsWith:function(){return L_},includes:function(){return Ly},isEmpty:function(){return Lm},isString:function(){return Lc},replace:function(){return Ll},size:function(){return Lv},slice:function(){return Lh},split:function(){return Lg},startsWith:function(){return Lb},toLowerCase:function(){return Lf},toUpperCase:function(){return La},trim:function(){return Lp},trimLeft:function(){return Ld},trimRight:function(){return Ls}});var nk={};e.r(nk),e.d(nk,{Compactable:function(){return DL},Filterable:function(){return DD},FilterableWithIndex:function(){return DN},Foldable:function(){return Dz},FoldableWithIndex:function(){return DH},Functor:function(){return DW},FunctorWithIndex:function(){return DU},Traversable:function(){return D$},TraversableWithIndex:function(){return DX},URI:function(){return Dw},Witherable:function(){return DQ},_filter:function(){return Di},_filterMap:function(){return Do},_filterMapWithIndex:function(){return Dh},_filterWithIndex:function(){return Dm},_foldMap:function(){return Dr},_foldMapWithIndex:function(){return Dl},_map:function(){return Dn},_mapWithIndex:function(){return Dt},_partition:function(){return Dc},_partitionMap:function(){return Da},_partitionMapWithIndex:function(){return Dd},_partitionWithIndex:function(){return Ds},_reduce:function(){return De},_reduceRight:function(){return Du},_reduceRightWithIndex:function(){return Dp},_reduceWithIndex:function(){return Df},_sequence:function(){return Dg},_traverse:function(){return Dv},collect:function(){return LO},compact:function(){return DM},deleteAt:function(){return LW},difference:function(){return L6},elem:function(){return L3},empty:function(){return LD},every:function(){return L7},filter:function(){return Db},filterMap:function(){return D_},filterMapWithIndex:function(){return LZ},filterWithIndex:function(){return LQ},flap:function(){return DF},foldMap:function(){return DT},foldMapWithIndex:function(){return LK},fromEntries:function(){return L5},fromFoldable:function(){return L0},fromFoldableMap:function(){return L1},fromRecord:function(){return LI},getDifferenceMagma:function(){return DV},getEq:function(){return DE},getFoldable:function(){return DP},getFoldableWithIndex:function(){return DA},getIntersectionSemigroup:function(){return DB},getMonoid:function(){return Dk},getShow:function(){return DC},getTraversable:function(){return Dj},getTraversableWithIndex:function(){return Dq},getUnionMonoid:function(){return DY},getUnionSemigroup:function(){return DG},getWitherable:function(){return DK},has:function(){return Lk},hasOwnProperty:function(){return D1},insertAt:function(){return D0},intersection:function(){return L4},isEmpty:function(){return LT},isSubrecord:function(){return LA},keys:function(){return LM},lookup:function(){return LL},map:function(){return Lj},mapWithIndex:function(){return LN},modifyAt:function(){return LU},partition:function(){return DI},partitionMap:function(){return DR},partitionMapWithIndex:function(){return LX},partitionWithIndex:function(){return LJ},pop:function(){return LP},readonlyRecord:function(){return D2},reduce:function(){return DS},reduceRight:function(){return Dx},reduceRightWithIndex:function(){return LG},reduceWithIndex:function(){return Lq},separate:function(){return DO},sequence:function(){return Lz},singleton:function(){return LY},size:function(){return LS},some:function(){return L8},toEntries:function(){return L2},toReadonlyArray:function(){return Lw},toRecord:function(){return LR},toUnfoldable:function(){return LC},traverse:function(){return LV},traverseWithIndex:function(){return LB},union:function(){return L9},updateAt:function(){return LF},upsertAt:function(){return LE},wilt:function(){return L$},wither:function(){return LH}});var nW={};e.r(nW),e.d(nW,{URI:function(){return NR},chain:function(){return D4},compact:function(){return Np},difference:function(){return Nu},elem:function(){return N_},empty:function(){return Nh},every:function(){return Ny},filter:function(){return D6},filterMap:function(){return Ns},foldMap:function(){return No},fromArray:function(){return NC},fromReadonlyArray:function(){return D8},fromSet:function(){return D5},getDifferenceMagma:function(){return Nw},getEq:function(){return NT},getIntersectionSemigroup:function(){return NO},getShow:function(){return NS},getUnionMonoid:function(){return NM},getUnionSemigroup:function(){return Nx},insert:function(){return Na},intersection:function(){return Ne},isEmpty:function(){return Nm},isSubset:function(){return Nb},map:function(){return D9},partition:function(){return Nn},partitionMap:function(){return Nr},reduce:function(){return Ni},reduceRight:function(){return Nc},remove:function(){return Nf},separate:function(){return Nd},singleton:function(){return D7},size:function(){return Nv},some:function(){return Ng},toReadonlyArray:function(){return NI},toSet:function(){return D3},toggle:function(){return Nl},union:function(){return Nt}});var nF={};e.r(nF),e.d(nF,{Bifunctor:function(){return jt},Comonad:function(){return jr},Foldable:function(){return ju},Functor:function(){return N9},Semigroupoid:function(){return je},Traversable:function(){return ji},URI:function(){return N3},bimap:function(){return NH},compose:function(){return NJ},duplicate:function(){return N0},extend:function(){return NZ},extract:function(){return NQ},flap:function(){return N4},foldMap:function(){return N2},fst:function(){return NE},getApplicative:function(){return NP},getApply:function(){return NF},getChain:function(){return NA},getChainRec:function(){return ND},getMonad:function(){return NL},map:function(){return N6},mapFst:function(){return N$},mapLeft:function(){return jn},mapSnd:function(){return NX},readonlyTuple:function(){return jo},reduce:function(){return N1},reduceRight:function(){return N5},sequence:function(){return N8},snd:function(){return Nk},swap:function(){return NW},traverse:function(){return N7}});var nU={};e.r(nU),e.d(nU,{Compactable:function(){return qr},Filterable:function(){return qu},FilterableWithIndex:function(){return qi},Foldable:function(){return qs},FoldableWithIndex:function(){return qh},Functor:function(){return j4},FunctorWithIndex:function(){return qn},Traversable:function(){return qm},TraversableWithIndex:function(){return qv},URI:function(){return j7},Witherable:function(){return qb},collect:function(){return jd},compact:function(){return j2},deleteAt:function(){return jg},difference:function(){return jz},elem:function(){return jY},empty:function(){return q_},every:function(){return jK},filter:function(){return j$},filterMap:function(){return jX},filterMapWithIndex:function(){return jA},filterWithIndex:function(){return jL},flap:function(){return j6},foldMap:function(){return j0},foldMapWithIndex:function(){return jM},fromEntries:function(){return jj},fromFoldable:function(){return jD},fromFoldableMap:function(){return jq},getDifferenceMagma:function(){return qd},getEq:function(){return j3},getFoldable:function(){return qt},getFoldableWithIndex:function(){return qe},getIntersectionSemigroup:function(){return qp},getMonoid:function(){return j9},getShow:function(){return j8},getTraversable:function(){return qo},getTraversableWithIndex:function(){return qc},getUnionMonoid:function(){return ql},getUnionSemigroup:function(){return qf},getWitherable:function(){return qa},has:function(){return jv},hasOwnProperty:function(){return qR},insertAt:function(){return qI},intersection:function(){return jV},isEmpty:function(){return jf},isSubrecord:function(){return jI},keys:function(){return jp},lookup:function(){return jR},map:function(){return jT},mapWithIndex:function(){return jS},modifyAt:function(){return jb},partition:function(){return jJ},partitionMap:function(){return jZ},partitionMapWithIndex:function(){return jU},partitionWithIndex:function(){return jP},pop:function(){return j_},record:function(){return qS},reduce:function(){return jQ},reduceRight:function(){return j1},reduceRightWithIndex:function(){return jO},reduceWithIndex:function(){return jx},separate:function(){return j5},sequence:function(){return jk},singleton:function(){return jw},size:function(){return ja},some:function(){return jG},toArray:function(){return js},toEntries:function(){return jN},toUnfoldable:function(){return jh},traverse:function(){return jE},traverseWithIndex:function(){return jC},union:function(){return jB},updateAt:function(){return jy},upsertAt:function(){return jm},wilt:function(){return jF},wither:function(){return jW}});var nP={};e.r(nP),e.d(nP,{and:function(){return qC},compose:function(){return qk},fromEitherK:function(){return qx},fromOptionK:function(){return qT},id:function(){return qM},not:function(){return qO},or:function(){return qw},zero:function(){return qE}});var nA={};e.r(nA),e.d(nA,{getFunctionRing:function(){return qP},getTupleRing:function(){return qU},negate:function(){return qF},tuple:function(){return qW}});var nL={};e.r(nL);var nD={};e.r(nD),e.d(nD,{getFunctionSemiring:function(){return qA}});var nN={};e.r(nN),e.d(nN,{chain:function(){return qj},compact:function(){return q8},difference:function(){return qV},elem:function(){return Ku},empty:function(){return q4},every:function(){return Ke},filter:function(){return qq},filterMap:function(){return q9},foldMap:function(){return qZ},fromArray:function(){return q7},getDifferenceMagma:function(){return qX},getEq:function(){return qD},getIntersectionSemigroup:function(){return q$},getShow:function(){return qL},getUnionMonoid:function(){return qH},getUnionSemigroup:function(){return qz},insert:function(){return q1},intersection:function(){return qY},isEmpty:function(){return q6},isSubset:function(){return Kr},map:function(){return qN},partition:function(){return qK},partitionMap:function(){return qB},reduce:function(){return qJ},reduceRight:function(){return qQ},remove:function(){return q2},separate:function(){return q3},singleton:function(){return q0},size:function(){return Kn},some:function(){return Kt},subset:function(){return Ko},toArray:function(){return Ki},toggle:function(){return q5},union:function(){return qG}});var nj={};e.r(nj),e.d(nj,{getStructShow:function(){return Kl},getTupleShow:function(){return Kf},showBoolean:function(){return Kp},showNumber:function(){return Ks},showString:function(){return Kd},struct:function(){return Kc},tuple:function(){return Ka}});var nq={};e.r(nq),e.d(nq,{ap:function(){return Kv},chain:function(){return Kg},evaluate:function(){return KI},execute:function(){return KR},flatMap:function(){return Ky},fromF:function(){return K_},fromState:function(){return Kb},getStateM:function(){return KS},map:function(){return Km},of:function(){return Kh}});var nK={};e.r(nK),e.d(nK,{Alt:function(){return G$},Applicative:function(){return GM},Apply:function(){return GI},Bifunctor:function(){return GH},Chain:function(){return GO},FromEither:function(){return GN},FromIO:function(){return Gj},FromReader:function(){return GK},FromState:function(){return Gw},FromTask:function(){return Gq},Functor:function(){return Gv},Monad:function(){return GP},MonadIO:function(){return GA},MonadTask:function(){return GL},MonadThrow:function(){return GD},Pointed:function(){return G_},URI:function(){return Gm},alt:function(){return Gs},altW:function(){return Gd},ap:function(){return K8},apFirst:function(){return GR},apFirstW:function(){return GS},apS:function(){return YI},apSW:function(){return YR},apSecond:function(){return GT},apSecondW:function(){return Gx},apW:function(){return K3},as:function(){return Gg},asUnit:function(){return Gy},ask:function(){return GX},asks:function(){return GJ},asksStateReaderTaskEither:function(){return KB},asksStateReaderTaskEitherW:function(){return KY},bimap:function(){return K5},bind:function(){return Yb},bindTo:function(){return Yg},bindW:function(){return Y_},chain:function(){return Yw},chainEitherK:function(){return G9},chainEitherKW:function(){return G4},chainFirst:function(){return YE},chainFirstEitherK:function(){return G6},chainFirstEitherKW:function(){return Yn},chainFirstIOK:function(){return Yc},chainFirstReaderK:function(){return G1},chainFirstReaderKW:function(){return G2},chainFirstTaskK:function(){return Yh},chainFirstW:function(){return Yk},chainIOEitherK:function(){return Yp},chainIOEitherKW:function(){return Yl},chainIOK:function(){return Yo},chainOptionK:function(){return G8},chainOptionKW:function(){return G3},chainReaderK:function(){return GQ},chainReaderKW:function(){return G0},chainReaderTaskEitherK:function(){return KX},chainReaderTaskEitherKW:function(){return K$},chainStateK:function(){return GU},chainTaskEitherK:function(){return Yf},chainTaskEitherKW:function(){return Ya},chainTaskK:function(){return Ys},chainW:function(){return YC},evalState:function(){return YU},evaluate:function(){return Ym},execState:function(){return YP},execute:function(){return Yv},filterOrElse:function(){return Ye},filterOrElseW:function(){return Yr},flap:function(){return Gb},flatMap:function(){return K6},flatMapEither:function(){return Go},flatMapIO:function(){return Ge},flatMapIOEither:function(){return Gi},flatMapOption:function(){return Gc},flatMapReader:function(){return Gu},flatMapReaderTaskEither:function(){return Ga},flatMapState:function(){return Gf},flatMapTask:function(){return Gr},flatMapTaskEither:function(){return Gt},flatten:function(){return Gp},flattenW:function(){return Gl},fromEither:function(){return KU},fromEitherK:function(){return Yu},fromIO:function(){return KA},fromIOEither:function(){return Kj},fromIOEitherK:function(){return KV},fromIOK:function(){return Yi},fromOption:function(){return G5},fromOptionK:function(){return G7},fromPredicate:function(){return Yt},fromReader:function(){return KP},fromReaderEither:function(){return Kq},fromReaderK:function(){return GZ},fromReaderTaskEither:function(){return KK},fromReaderTaskEitherK:function(){return KH},fromState:function(){return KD},fromStateK:function(){return GF},fromTask:function(){return KL},fromTaskEither:function(){return KN},fromTaskEitherK:function(){return Kz},fromTaskK:function(){return Yd},get:function(){return GC},gets:function(){return GW},left:function(){return KT},leftIO:function(){return Kk},leftReader:function(){return KC},leftState:function(){return KF},leftTask:function(){return KO},let:function(){return Yy},local:function(){return KG},map:function(){return K2},mapLeft:function(){return K7},modify:function(){return Gk},of:function(){return K9},put:function(){return GE},right:function(){return Kx},rightIO:function(){return KE},rightReader:function(){return Kw},rightState:function(){return KW},rightTask:function(){return KM},run:function(){return YA},sequenceArray:function(){return YO},stateReaderTaskEither:function(){return YW},stateReaderTaskEitherSeq:function(){return YF},tap:function(){return GG},tapEither:function(){return GY},tapIO:function(){return GB},tapReader:function(){return Gz},tapTask:function(){return GV},throwError:function(){return Gh},traverseArray:function(){return YM},traverseArrayWithIndex:function(){return Yx},traverseReadonlyArrayWithIndex:function(){return YT},traverseReadonlyNonEmptyArrayWithIndex:function(){return YS}});var nG={};e.r(nG),e.d(nG,{Comonad:function(){return Y$},Functor:function(){return Yz},URI:function(){return YV},duplicate:function(){return YY},experiment:function(){return Yj},extend:function(){return YK},extract:function(){return YG},flap:function(){return YH},map:function(){return YB},peeks:function(){return YN},seek:function(){return YL},seeks:function(){return YD},store:function(){return YX}});var nY={};e.r(nY),e.d(nY,{fanOut:function(){return YZ},fanout:function(){return Y0},split:function(){return YJ},splitStrong:function(){return YQ}});var nB={};e.r(nB),e.d(nB,{evolve:function(){return Y2},getAssignSemigroup:function(){return Y1}});var nV={};e.r(nV),e.d(nV,{Alt:function(){return B7},Alternative:function(){return B9},ApT:function(){return Vg},ApplicativePar:function(){return BV},ApplicativeSeq:function(){return B$},ApplyPar:function(){return BG},ApplySeq:function(){return BH},Chain:function(){return BX},Compactable:function(){return Vt},Do:function(){return Vd},Filterable:function(){return Ve},FromEither:function(){return BJ},FromIO:function(){return BZ},FromTask:function(){return BQ},Functor:function(){return BD},Monad:function(){return B4},MonadIO:function(){return B6},MonadTask:function(){return Vn},Pointed:function(){return BK},URI:function(){return BL},Zero:function(){return B8},alt:function(){return BT},altW:function(){return Bx},ap:function(){return Bg},apFirst:function(){return BY},apS:function(){return Vv},apSecond:function(){return BB},as:function(){return BN},asUnit:function(){return Bj},bind:function(){return Vm},bindTo:function(){return Vs},chain:function(){return Vw},chainEitherK:function(){return Vc},chainFirst:function(){return VC},chainFirstEitherK:function(){return Va},chainFirstIOK:function(){return Vi},chainFirstTaskK:function(){return Vp},chainIOK:function(){return Vu},chainNullableK:function(){return Bs},chainOptionK:function(){return Bm},chainTaskK:function(){return Vl},compact:function(){return Bw},filter:function(){return BE},filterMap:function(){return Bk},flap:function(){return Bq},flatMap:function(){return Bb},flatMapIO:function(){return BI},flatMapTask:function(){return BR},flatten:function(){return BS},fold:function(){return Bu},foldW:function(){return Bo},fromEither:function(){return Y9},fromEitherK:function(){return Vo},fromIO:function(){return Y4},fromIOK:function(){return Vr},fromNullable:function(){return Bf},fromNullableK:function(){return Bd},fromOption:function(){return Y3},fromOptionK:function(){return Bh},fromPredicate:function(){return Y8},fromTask:function(){return Y6},fromTaskEither:function(){return Bn},fromTaskK:function(){return Vf},getOrElse:function(){return Bc},getOrElseW:function(){return Ba},guard:function(){return B3},let:function(){return Vh},map:function(){return Bv},match:function(){return Bt},matchE:function(){return Br},matchEW:function(){return Bi},matchW:function(){return Be},none:function(){return BO},of:function(){return By},partition:function(){return BW},partitionMap:function(){return BF},separate:function(){return BC},sequenceArray:function(){return VT},sequenceSeqArray:function(){return VO},some:function(){return Y7},tap:function(){return B0},tapEither:function(){return B1},tapIO:function(){return B2},tapTask:function(){return B5},traverseArray:function(){return VS},traverseArrayWithIndex:function(){return VR},traverseReadonlyArrayWithIndex:function(){return Vb},traverseReadonlyArrayWithIndexSeq:function(){return VI},traverseReadonlyNonEmptyArrayWithIndex:function(){return Vy},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return V_},traverseSeqArray:function(){return VM},traverseSeqArrayWithIndex:function(){return Vx},tryCatch:function(){return Bl},tryCatchK:function(){return Bp},zero:function(){return BM}});var nz={};e.r(nz),e.d(nz,{ApT:function(){return zS},Bifunctor:function(){return zp},Foldable:function(){return zs},FromEither:function(){return zm},FromThese:function(){return zd},Functor:function(){return za},Pointed:function(){return zl},Traversable:function(){return zh},URI:function(){return zc},bimap:function(){return V4},both:function(){return VP},elem:function(){return zb},exists:function(){return z_},flap:function(){return zf},fold:function(){return VN},foldMap:function(){return ze},foldW:function(){return VL},fromOption:function(){return zg},fromOptionK:function(){return zy},fromOptions:function(){return V0},fromPredicate:function(){return zv},getApplicative:function(){return VB},getApply:function(){return VY},getChain:function(){return VV},getEq:function(){return VK},getLeft:function(){return VH},getLeftOnly:function(){return VZ},getMonad:function(){return Vz},getRight:function(){return V$},getRightOnly:function(){return VQ},getSemigroup:function(){return VG},getShow:function(){return Vq},isBoth:function(){return VW},isLeft:function(){return VE},isRight:function(){return Vk},left:function(){return VF},leftOrBoth:function(){return VX},map:function(){return zn},mapLeft:function(){return V6},match:function(){return VD},matchW:function(){return VA},of:function(){return zo},reduce:function(){return zt},reduceRight:function(){return zr},right:function(){return VU},rightOrBoth:function(){return VJ},sequence:function(){return zi},swap:function(){return Vj},these:function(){return zM},toTuple:function(){return zR},toTuple2:function(){return zI},traverse:function(){return zu},traverseReadonlyArrayWithIndex:function(){return zx},traverseReadonlyNonEmptyArrayWithIndex:function(){return zT}});var nH={};e.r(nH),e.d(nH,{ap:function(){return zF},bimap:function(){return zP},both:function(){return zC},chain:function(){return zU},getTheseM:function(){return zq},left:function(){return zw},leftF:function(){return zk},map:function(){return zW},mapLeft:function(){return zA},match:function(){return zL},matchE:function(){return zD},right:function(){return zO},rightF:function(){return zE},swap:function(){return zN},toTuple2:function(){return zj}});var n$={};e.r(n$),e.d(n$,{ApT:function(){return HT},Bifunctor:function(){return Hd},FromEither:function(){return Hs},FromIO:function(){return Hb},FromTask:function(){return HI},FromThese:function(){return Hg},Functor:function(){return Hf},Pointed:function(){return Hp},URI:function(){return Hu},bifunctorTaskThese:function(){return HE},bimap:function(){return Ht},both:function(){return zY},flap:function(){return Hl},fold:function(){return z5},foldW:function(){return z8},fromEither:function(){return z$},fromIO:function(){return zJ},fromIOEither:function(){return zZ},fromIOK:function(){return H_},fromOption:function(){return Hh},fromOptionK:function(){return Hm},fromPredicate:function(){return Hv},fromTask:function(){return zQ},fromTaskK:function(){return HR},fromThese:function(){return zX},fromTheseK:function(){return Hy},functorTaskThese:function(){return HC},getApplicative:function(){return Ho},getApply:function(){return Hi},getChain:function(){return Hc},getMonad:function(){return Ha},getSemigroup:function(){return HF},left:function(){return zK},leftIO:function(){return zH},leftTask:function(){return zV},map:function(){return Hn},mapLeft:function(){return He},match:function(){return z0},matchE:function(){return z2},matchEW:function(){return z7},matchW:function(){return z1},of:function(){return Hr},right:function(){return zG},rightIO:function(){return zz},rightTask:function(){return zB},swap:function(){return z3},taskThese:function(){return HW},toTuple:function(){return Hk},toTuple2:function(){return HS},traverseReadonlyArrayWithIndex:function(){return HM},traverseReadonlyArrayWithIndexSeq:function(){return Hw},traverseReadonlyNonEmptyArrayWithIndex:function(){return Hx},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return HO}});var nX={};e.r(nX),e.d(nX,{Functor:function(){return HK},URI:function(){return Hq},censor:function(){return HL},flap:function(){return HG},getComonad:function(){return HD},listen:function(){return HP},listens:function(){return HA},map:function(){return Hj},traced:function(){return HY},tracks:function(){return HU}});var nJ={};e.r(nJ),e.d(nJ,{getTraversableComposition:function(){return Hz},sequence:function(){return HV},traverse:function(){return HB}});var nZ={};e.r(nZ);var nQ={};e.r(nQ),e.d(nQ,{Applicative:function(){return $R},Apply:function(){return $b},Chain:function(){return $S},Comonad:function(){return $w},Do:function(){return $C},Foldable:function(){return $M},Functor:function(){return $v},Monad:function(){return $T},Pointed:function(){return $y},Traversable:function(){return $O},URI:function(){return $m},ap:function(){return $e},apFirst:function(){return $_},apS:function(){return $F},apSecond:function(){return $I},bind:function(){return $W},bindTo:function(){return $E},chain:function(){return $A},chainFirst:function(){return $x},drawForest:function(){return HZ},drawTree:function(){return HQ},duplicate:function(){return $i},elem:function(){return $U},exists:function(){return $P},extend:function(){return $u},extract:function(){return $p},flap:function(){return $g},flatMap:function(){return $r},flatten:function(){return $o},fold:function(){return H7},foldMap:function(){return $f},getEq:function(){return HX},getShow:function(){return H$},let:function(){return $k},make:function(){return HH},map:function(){return $c},of:function(){return $h},reduce:function(){return $a},reduceRight:function(){return $l},sequence:function(){return $s},traverse:function(){return $d},tree:function(){return $L},unfoldForest:function(){return H1},unfoldForestM:function(){return H5},unfoldTree:function(){return H0},unfoldTreeM:function(){return H2}});var n0={};e.r(n0),e.d(n0,{Bifunctor:function(){return Xc},Comonad:function(){return Xf},Foldable:function(){return Xl},Functor:function(){return Xi},Semigroupoid:function(){return Xa},Traversable:function(){return Xp},URI:function(){return Xu},bimap:function(){return $2},compose:function(){return $8},duplicate:function(){return $9},extend:function(){return $3},extract:function(){return $4},flap:function(){return Xo},foldMap:function(){return $6},fst:function(){return $D},getApplicative:function(){return $G},getApply:function(){return $q},getChain:function(){return $Y},getChainRec:function(){return $V},getMonad:function(){return $B},map:function(){return Xd},mapFst:function(){return $5},mapLeft:function(){return Xs},mapSnd:function(){return $7},reduce:function(){return Xn},reduceRight:function(){return Xt},sequence:function(){return Xr},snd:function(){return $N},swap:function(){return $j},traverse:function(){return Xe},tuple:function(){return Xh}});var n1={};e.r(n1);var n2={};e.r(n2),e.d(n2,{getValidationM:function(){return Xm}});var n5={};e.r(n5),e.d(n5,{Monoid:function(){return Xg},Semigroup:function(){return Xv}});var n7={};e.r(n7),e.d(n7,{Functor:function(){return Xk},URI:function(){return Xx},censor:function(){return XR},evalWriter:function(){return XP},evaluate:function(){return XF},execWriter:function(){return XA},execute:function(){return XU},flap:function(){return XW},getApplicative:function(){return Xw},getApply:function(){return XO},getChain:function(){return XC},getMonad:function(){return XE},getPointed:function(){return XM},listen:function(){return Xb},listens:function(){return XI},map:function(){return XT},pass:function(){return X_},tell:function(){return Xy},writer:function(){return XL}});var n8={};function n3(n){return function(t){return function(e){return e.reduce(function(t,e){return n.alt(t,function(){return e})},t)}}}e.r(n8),e.d(n8,{getWriterM:function(){return XD}});var n9=e(7501);function n4(n){return n3(n)(n.zero())}function n6(n){var t=(0,n9.getApplySemigroup)(n);return function(e){var r=t(e);return{concat:function(t,e){return n.alt(r.concat(t,e),function(){return n.alt(t,function(){return e})})},empty:n.zero()}}}var tn=e(42769),tt=e(83240),te=e(59920),tr=e(38906),tu=e(89943),ti=e(58791),to=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},tc=function(n){return to(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},ta=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return to(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},tf=function(n){return function(t){return to(function(e,r){return t.equals(n(e),n(r))})}},tl="Eq",tp={equals:function(n,t){return n===t}},td={equals:function(){return!0}},ts=function(){return{concat:function(n,t){return to(function(e,r){return n.equals(e,r)&&t.equals(e,r)})}}},th=function(){return{concat:ts().concat,empty:td}},tm={URI:tl,contramap:function(n,t){return(0,tr.pipe)(n,tf(t))}},tv=ta,tg=tc,ty=tp.equals,tb=tm,t_=tp,tI=tp,tR=tp,tS={equals:function(n,t){return n.valueOf()===t.valueOf()}},tT=function(n){return function(t,e){return t===e||0===n(t,e)}},tx=function(n){return{equals:tT(n),compare:function(t,e){return t===e?0:n(t,e)}}},tM=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return tx(function(t,e){for(var r=0;r<n.length-1;r++){var u=n[r].compare(t[r],e[r]);if(0!==u)return u}return n[r].compare(t[r],e[r])})},tO=function(n){return tx(function(t,e){return n.compare(e,t)})},tw=function(n){return function(t){return tx(function(e,r){return t.compare(n(e),n(r))})}},tC="Ord",tE=function(){return{concat:function(n,t){return tx(function(e,r){var u=n.compare(e,r);return 0!==u?u:t.compare(e,r)})}}},tk=function(){return{concat:tE().concat,empty:tx(function(){return 0})}},tW={URI:tC,contramap:function(n,t){return(0,tr.pipe)(n,tw(t))}},tF={equals:tr.constTrue,compare:(0,tr.constant)(0)},tU=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},tP=function(n){return function(t,e){return -1===n.compare(t,e)}},tA=function(n){return function(t,e){return 1===n.compare(t,e)}},tL=function(n){return function(t,e){return 1!==n.compare(t,e)}},tD=function(n){return function(t,e){return -1!==n.compare(t,e)}},tN=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},tj=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},tq=function(n){var t=tN(n),e=tj(n);return function(n,r){return function(u){return e(t(u,r),n)}}},tK=function(n){var t=tP(n),e=tA(n);return function(n,r){return function(u){return!(t(u,n)||e(u,r))}}},tG=tM,tY=tO,tB=tW,tV={equals:tp.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},tz=tV,tH=tV,t$=tV,tX=(0,tr.pipe)(t$,tw(function(n){return n.valueOf()})),tJ=function(n){return{concat:function(t,e){return n.concat(e,t)}}},tZ=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},tQ=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},t0=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},t1=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}},t2=function(n){return{concat:tN(n)}},t5=function(n){return{concat:tj(n)}},t7=function(n){return{concat:function(){return n}}},t8=tJ,t3=function(n){return{concat:function(t,e){var r={};for(var u in n)ti.e$.call(n,u)&&(r[u]=n[u].concat(t[u],e[u]));return r}}},t9=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},t4=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},t6=function(){return{concat:tr.identity}},en=function(){return{concat:function(n,t){return t}}},et=t1,ee=t7(void 0),er=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},eu=en,ei=t6,eo=t9,ec=t3,ea=t8,ef=t5,el=t2,ep=t4;function ed(n){var t=et(n);return function(n,e){return void 0===e?t(n):t(n)(e)}}var es={concat:function(n,t){return n&&t}},eh={concat:function(n,t){return n||t}},em=tr.getSemigroup,ev={concat:function(n,t){return n+t}},eg={concat:function(n,t){return n+t}},ey={concat:function(n,t){return n*t}},eb=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},e_=ti.Xl,eI=ti.Od,eR=function(n,t){return n<0||n>=t.length},eS=function(n){return function(t){return eb([n],t,!0)}},eT=eS,ex=function(n){return function(t){return eb(eb([],t,!0),[n],!1)}},eM=ex,eO=function(n,t,e){if(eI(e)){var r=ti.r1(e);return r.splice(n,0,t),r}return[t]},ew=function(n,t,e){if(e[n]===t)return e;var r=ti.r1(e);return r[n]=t,r},eC=function(n){return function(t){if(1===t.length)return t;for(var e=[rZ(t)],r=rQ(t),u=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},i=0;i<r.length;i++)u(r[i]);return e}},eE=function(n){if(eI(n)){var t=tk();return eB(n.reduce(t.concat,t.empty))}return tr.identity},ek=function(n){var t=eC(n);return function(n){return function(e){return t((0,tr.pipe)(e,eq(n)))}}},eW=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(eR(Math.abs(r),t)||0===r)return t;if(!(r<0))return eW(r-e)(t);var u=e0(-r)(t),i=u[0],o=u[1];return(0,tr.pipe)(o,eq(i))}},eF=function(n){return eI(n)?ti.G(n):ti.YP},eU=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],u=1;u<e;u++)r.push(n(u));return r}},eP=function(n){return eU(function(){return n})},eA=function(n,t){return n<=t?eU(function(t){return n+t})(t-n+1):[n]},eL=function(n){return[rZ(n),rQ(n)]},eD=function(n){return[r1(n),r0(n)]},eN=function(n){return eF(n.slice())};function ej(n){return function(t){return t.concat(n)}}function eq(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var eK=function(n){return 1===n.length?n:eb([r0(n)],n.slice(0,-1).reverse(),!0)};function eG(n){return function(t){var e=t.length;if(0===e)return e_;for(var r=[],u=t[0],i=[u],o=1;o<e;o++){var c=t[o];n.equals(c,u)?i.push(c):(r.push(i),i=[u=c])}return r.push(i),r}}var eY=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var u=t[r],i=n(u);ti.e$.call(e,i)?e[i].push(u):e[i]=[u]}return e}},eB=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},eV=function(n,t){return ez(n,function(){return t})},ez=function(n,t){return function(e){return eR(n,e)?ti.YP:ti.G(ew(n,t(e[n]),e))}},eH=function(n,t,e){for(var r=[e(n[0],t[0])],u=Math.min(n.length,t.length),i=1;i<u;i++)r[i]=e(n[i],t[i]);return r},e$=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},eX=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},eJ=function(n){return function(t){var e=rQ(t);return eI(e)?(0,tr.pipe)(e,eX(n),eT(rZ(t))):t}},eZ=function(n){return function(t){for(var e=ti.r1(n(0,rZ(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},eQ=function(n){return function(t){for(var e=n(t),r=e[0],u=e[1],i=[r],o=u;eI(o);){var c=n(o),a=c[0],f=c[1];i.push(a),o=f}return i}},e0=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[t,e_]:[(0,tr.pipe)(t.slice(1,e),eT(rZ(t))),t.slice(e)]}},e1=function(n){return eQ(e0(n))},e2=function(n,t){return(0,tr.pipe)(n,rs(t))},e5=function(n,t){return(0,tr.pipe)(n,rh(t))},e7=function(n,t){return(0,tr.pipe)(n,ra(t))},e8=function(n,t){return(0,tr.pipe)(n,rl(t))},e3=function(n,t,e){return(0,tr.pipe)(n,rm(t,e))},e9=function(n){var t=rv(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},e4=function(n,t,e){return(0,tr.pipe)(n,rg(t,e))},e6=function(n){var t=rI(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},rn=function(n,t){return(0,tr.pipe)(n,rc(t))},rt=function(n,t,e){return(0,tr.pipe)(n,ry(t,e))},re=function(n){var t=rb(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},rr=function(n,t,e){return(0,tr.pipe)(n,r_(t,e))},ru=function(n){var t=rS(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},ri=ti.ri,ro=function(n){return function(t){return(0,tr.pipe)(t,ej(n()))}},rc=ro,ra=function(n){return rf(function(t){return(0,tr.pipe)(n,rs(t))})},rf=(0,tr.dual)(2,function(n,t){return(0,tr.pipe)(n,eZ(function(n,e){return t(e,n)}))}),rl=function(n){return function(t){for(var e=rQ(t),r=[n(t)];eI(e);)r.push(n(e)),e=rQ(e);return r}},rp=rl(tr.identity),rd=rf(tr.identity),rs=function(n){return rh(function(t,e){return n(e)})},rh=function(n){return function(t){for(var e=[n(0,rZ(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},rm=function(n,t){return ry(n,function(n,e,r){return t(e,r)})},rv=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},rg=function(n,t){return r_(n,function(n,e,r){return t(e,r)})},ry=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},rb=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,u){return n.concat(e,t(u+1,r))},t(0,e[0]))}}},r_=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},rI=function(n){var t=rS(n);return function(n){return t(function(t,e){return n(e)})}},rR=function(n){return rS(n)(tr.SK)},rS=function(n){return function(t){return function(e){for(var r=n.map(t(0,rZ(e)),ri),u=1;u<e.length;u++)r=n.ap(n.map(r,function(n){return function(t){return(0,tr.pipe)(n,eM(t))}}),t(u,e[u]));return r}}},rT=ti.YM,rx="ReadonlyNonEmptyArray",rM=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},rO=function(){return{concat:eq}},rw=function(n){return to(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},rC=function(n){var t=ek(n);return{concat:function(n,e){return t(e)(n)}}},rE={URI:rx,map:e2},rk=(0,tu.flap)(rE),rW={URI:rx,of:ri},rF={URI:rx,map:e2,mapWithIndex:e5},rU={URI:rx,map:e2,ap:e7},rP=(0,n9.apFirst)(rU),rA=(0,n9.apSecond)(rU),rL={URI:rx,map:e2,ap:e7,of:ri},rD={URI:rx,map:e2,ap:e7,chain:rf},rN=(0,tt.chainFirst)(rD),rj={URI:rx,map:e2,ap:e7,of:ri,chain:rf},rq={URI:rx,reduce:e3,foldMap:e9,reduceRight:e4},rK={URI:rx,reduce:e3,foldMap:e9,reduceRight:e4,reduceWithIndex:rt,foldMapWithIndex:re,reduceRightWithIndex:rr},rG={URI:rx,map:e2,reduce:e3,foldMap:e9,reduceRight:e4,traverse:e6,sequence:rR},rY={URI:rx,map:e2,mapWithIndex:e5,reduce:e3,foldMap:e9,reduceRight:e4,traverse:e6,sequence:rR,reduceWithIndex:rt,foldMapWithIndex:re,reduceRightWithIndex:rr,traverseWithIndex:ru},rB={URI:rx,map:e2,alt:rn},rV={URI:rx,map:e2,extend:e8,extract:rT},rz=ri(ti.F4),rH=(0,tu.bindTo)(rE),r$=(0,tu.let)(rE),rX=(0,tt.bind)(rD),rJ=(0,n9.apS)(rU),rZ=rT,rQ=ti.Gb,r0=function(n){return n[n.length-1]},r1=function(n){return n.slice(0,-1)},r2=function(n){var t=t2(n);return function(n){return n.reduce(t.concat)}},r5=function(n){var t=t5(n);return function(n){return n.reduce(t.concat)}},r7=function(n){return function(t){return t.reduce(n.concat)}},r8=function(n){return function(t){return n(rZ(t),rQ(t))}},r3=function(n){return function(t){return n(r1(t),r0(t))}},r9=function(n){return function(t){return eb([n(rZ(t))],rQ(t),!0)}},r4=function(n){return r9(function(){return n})},r6=function(n){return function(t){return(0,tr.pipe)(r1(t),eM(n(r0(t))))}},un=function(n){return r6(function(){return n})},ut=function(n){var t=r7(n);return function(n){return(0,tr.flow)(eJ(n),t)}},ue=rf;function ur(n){var t=eB(n),e=eG(n);return function(n){return eI(n)?e(t(n)):e_}}function uu(n){return ui(function(t,e){return n(e)})}var ui=function(n){return function(t){return eF(t.filter(function(t,e){return n(e,t)}))}},uo=eL,uc=eD;function ua(n,t){return void 0===t?eT(n):(0,tr.pipe)(t,eT(n))}var uf=function(n,t){return(0,tr.pipe)(n,eq([t]))},ul=function(n,t){return function(e){return n<0||n>e.length?ti.YP:ti.G(eO(n,t,e))}},up=eX,ud=r7,us={URI:rx,of:ri,map:e2,mapWithIndex:e5,ap:e7,chain:rf,extend:e8,extract:rT,reduce:e3,foldMap:e9,reduceRight:e4,traverse:e6,sequence:rR,reduceWithIndex:rt,foldMapWithIndex:re,reduceRightWithIndex:rr,traverseWithIndex:ru,alt:rn},uh=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},um=function(n){return n.length>0},uv=function(n,t){return n<0||n>=t.length},ug=function(n){return function(t){return uh([n],t,!0)}},uy=ug,ub=function(n){return function(t){return uh(uh([],t,!0),[n],!1)}},u_=ub,uI=function(n,t,e){if(um(e)){var r=uO(e);return r.splice(n,0,t),r}return[t]},uR=function(n,t,e){var r=uO(e);return r[n]=t,r},uS=function(n){return function(t){if(1===t.length)return uG(t);for(var e=[iX(t)],r=iJ(t),u=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},i=0;i<r.length;i++)u(r[i]);return e}},uT=function(n){if(um(n)){var t=tk();return uN(n.reduce(t.concat,t.empty))}return uG},ux=function(n){var t=uS(n);return function(n){return function(e){return t((0,tr.pipe)(e,uP(n)))}}},uM=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(uv(Math.abs(r),t)||0===r)return uG(t);if(!(r<0))return uM(r-e)(t);var u=uQ(-r)(t),i=u[0],o=u[1];return(0,tr.pipe)(o,uP(i))}},uO=ti.r1,uw=function(n){return um(n)?ti.G(n):ti.YP},uC=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],u=1;u<e;u++)r.push(n(u));return r}},uE=function(n){return uC(function(){return n})},uk=function(n,t){return n<=t?uC(function(t){return n+t})(t-n+1):[n]},uW=function(n){return[iX(n),iJ(n)]},uF=function(n){return[iQ(n),iZ(n)]};function uU(n){return function(t){return t.concat(n)}}function uP(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var uA=function(n){return uh([iZ(n)],n.slice(0,-1).reverse(),!0)};function uL(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],u=t[0],i=[u],o=1;o<e;o++){var c=t[o];n.equals(c,u)?i.push(c):(r.push(i),i=[u=c])}return r.push(i),r}}var uD=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var u=t[r],i=n(u);ti.e$.call(e,i)?e[i].push(u):e[i]=[u]}return e}},uN=function(n){return function(t){return t.slice().sort(n.compare)}},uj=function(n,t){return function(e){return n<0||n>e.length?ti.YP:ti.G(uI(n,t,e))}},uq=function(n,t){return uK(n,function(){return t})},uK=function(n,t){return function(e){return uv(n,e)?ti.YP:ti.G(uR(n,t(e[n]),e))}},uG=uO,uY=function(n){return[n]},uB=function(n,t,e){for(var r=[e(n[0],t[0])],u=Math.min(n.length,t.length),i=1;i<u;i++)r[i]=e(n[i],t[i]);return r},uV=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},uz=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},uH=function(n){return function(t){var e=iJ(t);return um(e)?(0,tr.pipe)(e,uz(n),uy(iX(t))):uG(t)}},u$=rb,uX=rv,uJ=function(n){return function(t){for(var e=uO(n(0,iX(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},uZ=function(n){return function(t){for(var e=n(t),r=e[0],u=e[1],i=[r],o=u;um(o);){var c=n(o),a=c[0],f=c[1];i.push(a),o=f}return i}},uQ=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[uG(t),[]]:[(0,tr.pipe)(t.slice(1,e),uy(iX(t))),t.slice(e)]}},u0=function(n){return uZ(uQ(n))},u1=function(n,t){return(0,tr.pipe)(n,is(t))},u2=function(n,t){return(0,tr.pipe)(n,ih(t))},u5=function(n,t){return(0,tr.pipe)(n,ic(t))},u7=function(n,t){return(0,tr.pipe)(n,il(t))},u8=function(n,t,e){return(0,tr.pipe)(n,im(t,e))},u3=function(n){var t=uX(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},u9=function(n,t,e){return(0,tr.pipe)(n,ig(t,e))},u4=function(n){var t=ib(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},u6=function(n,t){return(0,tr.pipe)(n,io(t))},it=function(n,t,e){return(0,tr.pipe)(n,iv(t,e))},ie=function(n){var t=u$(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},ir=function(n,t,e){return(0,tr.pipe)(n,iy(t,e))},iu=function(n){var t=iI(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},ii=function(n){return function(t){return(0,tr.pipe)(t,uU(n()))}},io=ii,ic=function(n){return ia(function(t){return(0,tr.pipe)(n,is(t))})},ia=(0,tr.dual)(2,function(n,t){return(0,tr.pipe)(n,uJ(function(n,e){return t(e,n)}))}),il=function(n){return function(t){for(var e=iJ(t),r=[n(t)];um(e);)r.push(n(e)),e=iJ(e);return r}},ip=il(tr.identity),id=ia(tr.identity),is=function(n){return ih(function(t,e){return n(e)})},ih=function(n){return function(t){for(var e=[n(0,iX(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},im=rm,iv=ry,ig=rg,iy=r_,ib=function(n){var t=iI(n);return function(n){return t(function(t,e){return n(e)})}},i_=function(n){return iI(n)(function(n,t){return t})},iI=function(n){return function(t){return function(e){for(var r=n.map(t(0,iX(e)),uY),u=1;u<e.length;u++)r=n.ap(n.map(r,function(n){return function(t){return(0,tr.pipe)(n,u_(t))}}),t(u,e[u]));return r}}},iR=rZ,iS="NonEmptyArray",iT=rM,ix=function(){return{concat:uP}},iM=rw,iO=function(n){var t=ux(n);return{concat:function(n,e){return t(e)(n)}}},iw={URI:iS,map:u1},iC=(0,tu.flap)(iw),iE={URI:iS,of:uY},ik={URI:iS,map:u1,mapWithIndex:u2},iW={URI:iS,map:u1,ap:u5},iF=(0,n9.apFirst)(iW),iU=(0,n9.apSecond)(iW),iP={URI:iS,map:u1,ap:u5,of:uY},iA={URI:iS,map:u1,ap:u5,chain:ia},iL=(0,tt.chainFirst)(iA),iD={URI:iS,map:u1,ap:u5,of:uY,chain:ia},iN={URI:iS,reduce:u8,foldMap:u3,reduceRight:u9},ij={URI:iS,reduce:u8,foldMap:u3,reduceRight:u9,reduceWithIndex:it,foldMapWithIndex:ie,reduceRightWithIndex:ir},iq={URI:iS,map:u1,reduce:u8,foldMap:u3,reduceRight:u9,traverse:u4,sequence:i_},iK={URI:iS,map:u1,mapWithIndex:u2,reduce:u8,foldMap:u3,reduceRight:u9,traverse:u4,sequence:i_,reduceWithIndex:it,foldMapWithIndex:ie,reduceRightWithIndex:ir,traverseWithIndex:iu},iG={URI:iS,map:u1,alt:u6},iY={URI:iS,map:u1,extend:u7,extract:iR},iB=uY(ti.F4),iV=(0,tu.bindTo)(iw),iz=(0,tu.let)(iw),iH=(0,tt.bind)(iA),i$=(0,n9.apS)(iW),iX=rZ,iJ=function(n){return n.slice(1)},iZ=r0,iQ=function(n){return n.slice(0,-1)},i0=r2,i1=r5,i2=function(n){return function(t){return t.reduce(n.concat)}},i5=function(n){return function(t){return n(iX(t),iJ(t))}},i7=function(n){return function(t){return n(iQ(t),iZ(t))}},i8=function(n){return function(t){return uh([n(iX(t))],iJ(t),!0)}},i3=function(n){return i8(function(){return n})},i9=function(n){return function(t){return(0,tr.pipe)(iQ(t),u_(n(iZ(t))))}},i4=function(n){return i9(function(){return n})},i6=ut,on=ia;function ot(n){var t=uN(n),e=uL(n);return function(n){return um(n)?e(t(n)):[]}}function oe(n){return or(function(t,e){return n(e)})}var or=function(n){return function(t){return uw(t.filter(function(t,e){return n(e,t)}))}},ou=uW,oi=uF;function oo(n,t){return void 0===t?uy(n):(0,tr.pipe)(t,uy(n))}var oc=function(n,t){return(0,tr.pipe)(n,u_(t))},oa=uz,of=r7,ol={URI:iS,of:uY,map:u1,mapWithIndex:u2,ap:u5,chain:ia,extend:u7,extract:iR,reduce:u8,foldMap:u3,reduceRight:u9,traverse:u4,sequence:i_,reduceWithIndex:it,foldMapWithIndex:ie,reduceRightWithIndex:ir,traverseWithIndex:iu,alt:u6},op=function(n){return"number"==typeof n},od={equals:function(n,t){return n===t}},os={equals:od.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},oh={equals:od.equals,compare:os.compare,top:1/0,bottom:-1/0},om={show:function(n){return JSON.stringify(n)}},ov={concat:function(n,t){return n-t}},og={concat:function(n,t){return n+t}},oy={concat:function(n,t){return n*t}},ob={concat:og.concat,empty:0},o_={concat:oy.concat,empty:1},oI={add:og.concat,zero:0,mul:oy.concat,one:1,sub:ov.concat,degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}},oR=e(3452),oS=e(62043);function oT(n,t){return function(e){return e?t.of(void 0):n.zero()}}var ox=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},oM=function(n){return 0===n.length},oO=eI,ow=eT,oC=eS,oE=eM,ok=ex,oW=function(n,t){return n<=0?fa:eU(t)(n)},oF=function(n,t){return oW(n,function(){return t})};function oU(n){return function(t){return n(t)?[t]:fa}}var oP=function(n){return ti.Wi(n)?fa:[n.value]},oA=function(n){return ti.nM(n)?fa:[n.right]},oL=function(n,t){return function(e){return oO(e)?t(e):n()}},oD=oL,oN=function(n,t){return function(e){return oO(e)?t(rZ(e),rQ(e)):n()}},oj=oN,oq=oj,oK=function(n,t){return function(e){return oO(e)?t(r1(e),r0(e)):n()}},oG=oK,oY=oG,oB=function(n){return function(t){if(oM(t))return fa;for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},oV=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[0]=n;for(var i=0;i<r;i++)u[i+1]=t(u[i],e[i]);return u}},oz=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[r]=n;for(var i=r-1;i>=0;i--)u[i]=t(e[i],u[i+1]);return u}},oH=function(n){return n.length},o$=eR;function oX(n,t){return void 0===t?function(t){return oX(n,t)}:o$(n,t)?ti.YP:ti.G(t[n])}var oJ=function(n){return oO(n)?ti.G(rZ(n)):ti.YP},oZ=function(n){return oO(n)?ti.G(r0(n)):ti.YP},oQ=function(n){return oO(n)?ti.G(rQ(n)):ti.YP},o0=function(n){return oO(n)?ti.G(r1(n)):ti.YP},o1=function(n){return function(t){return o$(n,t)?t:0===n?fa:t.slice(0,n)}},o2=function(n){return function(t){return o$(n,t)?t:0===n?fa:t.slice(-n)}};function o5(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=t[r];if(!n(u))break;e.push(u)}var i=e.length;return i===t.length?t:0===i?fa:e}}var o7=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function o8(n){return function(t){var e=cR(o7(t,n))(t);return{init:e[0],rest:e[1]}}}var o3=function(n){return function(t){return n<=0||oM(t)?t:n>=t.length?fa:t.slice(n,t.length)}},o9=function(n){return function(t){return n<=0||oM(t)?t:n>=t.length?fa:t.slice(0,t.length-n)}};function o4(n){return function(t){var e=o7(t,n);return 0===e?t:e===t.length?fa:t.slice(e)}}var o6=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return ti.G(e);return ti.YP}};function cn(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return ti.G(t[e]);return ti.YP}}var ct=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(ti.pC(r))return r}return ti.YP}};function ce(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return ti.G(t[e]);return ti.YP}}var cr=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(ti.pC(r))return r}return ti.YP}},cu=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return ti.G(e);return ti.YP}},ci=function(n,t){return function(e){return n<0||n>e.length?ti.YP:ti.G(eO(n,t,e))}},co=function(n,t){return ca(n,function(){return t})},cc=function(n){return function(t){return o$(n,t)?ti.YP:ti.G(fi(n,t))}},ca=function(n,t){return function(e){return o$(n,e)?ti.YP:ti.G(fu(n,t(e[n]),e))}},cf=function(n){return n.length<=1?n:n.slice().reverse()},cl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},cp=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},cd=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},cs=function(n,t,e){for(var r=[],u=Math.min(n.length,t.length),i=0;i<u;i++)r[i]=e(n[i],t[i]);return r},ch=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},cm=function(n){var t=eX(n);return function(n){return oO(n)?t(n):n}},cv=function(n){var t=eJ(n);return function(n){return oO(n)?t(n):n}},cg=function(n){var t=eW(n);return function(n){return oO(n)?t(n):n}};function cy(n){return function(t,e){if(void 0===e){var r,u=cy(n);return function(n){return u(t,n)}}for(var i=0;i<e.length;i++)if(r=e[i],n.equals(r,t))return!0;return!1}}var cb=function(n){var t=eC(n);return function(n){return oO(n)?t(n):n}},c_=function(n){var t=eE(n);return function(n){return oO(n)?t(n):n}},cI=function(n){var t=eQ(n);return function(n){return oO(n)?t(n):fa}},cR=function(n){return function(t){return n>=1&&oO(t)?e0(n)(t):oM(t)?[t,fa]:[fa,t]}},cS=function(n){var t=e1(n);return function(n){return oO(n)?t(n):fa}},cT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return oP(n.apply(void 0,t))}};function cx(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,u){return oO(u)?c8(rZ(u),function(t){return r((0,tr.pipe)(n,oE(t)),rQ(u))}):e.apply(void 0,n)?[t.apply(void 0,n)]:fa};return r(fa,n)}var cM=function(n){return function(t){return oM(t)?n:oM(n)?t:t.concat(n)}},cO=cM;function cw(n){var t=ek(n);return function(e,r){if(void 0===r){var u=cw(n);return function(n){return u(n,e)}}return oO(e)&&oO(r)?t(r)(e):oO(e)?e:r}}function cC(n){var t=cy(n);return function(e,r){if(void 0===r){var u=cC(n);return function(n){return u(n,e)}}return e.filter(function(n){return t(n,r)})}}function cE(n){var t=cy(n);return function(e,r){if(void 0===r){var u=cE(n);return function(n){return u(n,e)}}return e.filter(function(n){return!t(n,r)})}}var ck=function(n,t){return(0,tr.pipe)(n,c9(t))},cW=function(n,t){return(0,tr.pipe)(n,c4(t))},cF=function(n,t){return(0,tr.pipe)(n,c7(t))},cU=function(n,t){return(0,tr.pipe)(n,an(t))},cP=function(n,t){return(0,tr.pipe)(n,ae(t))},cA=function(n,t){return(0,tr.pipe)(n,au(t))},cL=function(n,t){return(0,tr.pipe)(n,ao(t))},cD=function(n,t){return(0,tr.pipe)(n,ai(t))},cN=function(n,t){return(0,tr.pipe)(n,ac(t))},cj=function(n,t){return(0,tr.pipe)(n,c5(t))},cq=function(n,t,e){return(0,tr.pipe)(n,ad(t,e))},cK=function(n){var t=as(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},cG=function(n,t,e){return(0,tr.pipe)(n,am(t,e))},cY=function(n,t,e){return(0,tr.pipe)(n,ah(t,e))},cB=function(n){var t=ap(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},cV=function(n,t,e){return(0,tr.pipe)(n,av(t,e))},cz=function(n,t){return(0,tr.pipe)(n,at(t))},cH=function(n,t){return(0,tr.pipe)(n,aa(t))},c$=function(n,t){return(0,tr.pipe)(n,af(t))},cX=function(n){var t=ag(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},cJ=function(n){var t=ab(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},cZ=function(n,t){return(0,tr.pipe)(n,a5(t))},cQ=function(n,t){return(0,tr.pipe)(n,a8(t))},c0=ri,c1=function(){return fa},c2=function(n){return function(t){return t.concat(n())}},c5=c2,c7=function(n){return c8(function(t){return(0,tr.pipe)(n,c9(t))})},c8=(0,tr.dual)(2,function(n,t){return(0,tr.pipe)(n,oB(function(n,e){return t(e,n)}))}),c3=c8(tr.identity),c9=function(n){return function(t){return t.map(function(t){return n(t)})}},c4=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},c6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var u=n[r];"Left"===u._tag?t.push(u.left):e.push(u.right)}return(0,oR.separated)(t,e)},an=function(n){return function(t){return t.filter(n)}},at=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=n(r,t[r]);ti.pC(u)&&e.push(u.value)}return e}},ae=function(n){return at(function(t,e){return n(e)})},ar=ae(tr.identity),au=function(n){return ai(function(t,e){return n(e)})},ai=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=t[u];n(u,i)?r.push(i):e.push(i)}return(0,oR.separated)(e,r)}},ao=function(n){return ac(function(t,e){return n(e)})},ac=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=n(u,t[u]);"Left"===i._tag?e.push(i.left):r.push(i.right)}return(0,oR.separated)(e,r)}},aa=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},af=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},al=af(tr.identity),ap=function(n){return function(t){return function(e){return e.reduce(function(e,r,u){return n.concat(e,t(u,r))},n.empty)}}},ad=function(n,t){return ah(n,function(n,e,r){return t(e,r)})},as=function(n){var t=ap(n);return function(n){return t(function(t,e){return n(e)})}},ah=function(n,t){return function(e){for(var r=e.length,u=n,i=0;i<r;i++)u=t(i,u,e[i]);return u}},am=function(n,t){return av(n,function(n,e,r){return t(e,r)})},av=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},ag=function(n){var t=ab(n);return function(n){return t(function(t,e){return n(e)})}},ay=function(n){return function(t){return cq(t,n.of(c1()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,tr.pipe)(n,oE(t))}}),e)})}},ab=function(n){return function(t){return ah(n.of(c1()),function(e,r,u){return n.ap(n.map(r,function(n){return function(t){return(0,tr.pipe)(n,oE(t))}}),t(e,u))})}},a_=function(n){var t=a9(n);return function(n){return function(e){return t(e,n)}}},aI=function(n){var t=a4(n);return function(n){return function(e){return t(e,n)}}},aR=function(n,t){for(var e=[],r=n;;){var u=t(r);if(ti.pC(u)){var i=u.value,o=i[0],c=i[1];e.push(o),r=c}else break}return e},aS="ReadonlyArray",aT=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},ax=function(){return{concat:function(n,t){return oM(n)?t:oM(t)?n:n.concat(t)}}},aM=function(){return{concat:ax().concat,empty:fa}},aO=function(n){return to(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},aw=function(n){return tx(function(t,e){for(var r=t.length,u=e.length,i=Math.min(r,u),o=0;o<i;o++){var c=n.compare(t[o],e[o]);if(0!==c)return c}return os.compare(r,u)})},aC=function(n){var t=cw(n);return{concat:function(n,e){return t(e)(n)}}},aE=function(n){return{concat:aC(n).concat,empty:fa}},ak=function(n){var t=cC(n);return{concat:function(n,e){return t(e)(n)}}},aW=function(n){var t=cE(n);return{concat:function(n,e){return t(e)(n)}}},aF={URI:aS,map:ck},aU=(0,tu.flap)(aF),aP={URI:aS,of:c0},aA={URI:aS,map:ck,mapWithIndex:cW},aL={URI:aS,map:ck,ap:cF},aD=(0,n9.apFirst)(aL),aN=(0,n9.apSecond)(aL),aj={URI:aS,map:ck,ap:cF,of:c0},aq={URI:aS,map:ck,ap:cF,chain:c8},aK={URI:aS,map:ck,ap:cF,of:c0,chain:c8},aG=(0,tt.chainFirst)(aq),aY={URI:aS,unfold:aR},aB={URI:aS,map:ck,alt:cj},aV={URI:aS,zero:c1},az=oT(aV,aP),aH={URI:aS,map:ck,ap:cF,of:c0,alt:cj,zero:c1},a$={URI:aS,map:ck,extend:c$},aX={URI:aS,compact:ar,separate:c6},aJ={URI:aS,map:ck,compact:ar,separate:c6,filter:cU,filterMap:cP,partition:cA,partitionMap:cL},aZ={URI:aS,map:ck,mapWithIndex:cW,compact:ar,separate:c6,filter:cU,filterMap:cP,partition:cA,partitionMap:cL,partitionMapWithIndex:cN,partitionWithIndex:cD,filterMapWithIndex:cz,filterWithIndex:cH},aQ={URI:aS,reduce:cq,foldMap:cK,reduceRight:cG},a0={URI:aS,reduce:cq,foldMap:cK,reduceRight:cG,reduceWithIndex:cY,foldMapWithIndex:cB,reduceRightWithIndex:cV},a1={URI:aS,map:ck,reduce:cq,foldMap:cK,reduceRight:cG,traverse:cX,sequence:ay},a2={URI:aS,map:ck,mapWithIndex:cW,reduce:cq,foldMap:cK,reduceRight:cG,reduceWithIndex:cY,foldMapWithIndex:cB,reduceRightWithIndex:cV,traverse:cX,sequence:ay,traverseWithIndex:cJ},a5=function(n){return function(t){for(var e=ox([],n(t),!0),r=[];e.length>0;){var u=e.shift();ti.nM(u)?e.unshift.apply(e,n(u.left)):r.push(u.right)}return r}},a7={URI:aS,map:ck,ap:cF,chain:c8,chainRec:cZ},a8=function(n){return function(t){var e=n(t),r=[],u=[];function i(t){ti.nM(t)?n(t.left).forEach(function(n){return r.push(n)}):u.push(t.right)}for(var o=0;o<e.length;o++)i(e[o]);for(;r.length>0;)i(r.shift());return u}},a3={URI:aS,map:ck,ap:cF,chain:c8,chainRec:cQ},a9=(0,oS.witherDefault)(a1,aX),a4=(0,oS.wiltDefault)(a1,aX),a6={URI:aS,map:ck,compact:ar,separate:c6,filter:cU,filterMap:cP,partition:cA,partitionMap:cL,reduce:cq,foldMap:cK,reduceRight:cG,traverse:cX,sequence:ay,wither:a9,wilt:a4},fn=(0,oS.filterE)(a6),ft={URI:aS,fromEither:oA},fe=(0,te.fromEitherK)(ft),fr=eO,fu=function(n,t,e){return oO(e)?ew(n,t,e):e},fi=function(n,t){var e=t.slice();return e.splice(n,1),e},fo=function(n){return n.slice()},fc=function(n){return oM(n)?fa:n.slice()},fa=e_;function ff(n){return function(t){return t.every(n)}}var fl=function(n){return function(t){return t.some(n)}},fp=fl,fd=function(n){var t=ut(n);return function(e){return oD(function(){return n.empty},t(e))}},fs=c0(ti.F4),fh=(0,tu.bindTo)(aF),fm=(0,tu.let)(aF),fv=(0,tt.bind)(aq),fg=(0,n9.apS)(aL),fy=c8,fb=eA,f_=ua,fI=uf,fR=cm,fS={URI:aS,compact:ar,separate:c6,map:ck,ap:cF,of:c0,chain:c8,filter:cU,filterMap:cP,partition:cA,partitionMap:cL,mapWithIndex:cW,partitionMapWithIndex:cN,partitionWithIndex:cD,filterMapWithIndex:cz,filterWithIndex:cH,alt:cj,zero:c1,unfold:aR,reduce:cq,foldMap:cK,reduceRight:cG,traverse:cX,sequence:ay,reduceWithIndex:cY,foldMapWithIndex:cB,reduceRightWithIndex:cV,traverseWithIndex:cJ,extend:c$,wither:a9,wilt:a4},fT=function(n){return 0===n.length},fx=um,fM=uy,fO=ug,fw=u_,fC=ub,fE=function(n,t){return n<=0?[]:uC(t)(n)},fk=function(n,t){return fE(n,function(){return t})};function fW(n){return function(t){return n(t)?[t]:[]}}var fF=function(n){return ti.Wi(n)?[]:[n.value]},fU=function(n){return ti.nM(n)?[]:[n.right]},fP=function(n,t){return function(e){return fx(e)?t(e):n()}},fA=fP,fL=function(n,t){return function(e){return fx(e)?t(iX(e),iJ(e)):n()}},fD=fL,fN=fD,fj=function(n,t){return function(e){return fx(e)?t(iQ(e),iZ(e)):n()}},fq=fj,fK=fq,fG=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},fY=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[0]=n;for(var i=0;i<r;i++)u[i+1]=t(u[i],e[i]);return u}},fB=function(n,t){return function(e){var r=e.length,u=Array(r+1);u[r]=n;for(var i=r-1;i>=0;i--)u[i]=t(e[i],u[i+1]);return u}},fV=function(n){return n.length},fz=uv,fH=oX,f$=oJ,fX=oZ,fJ=function(n){return fx(n)?ti.G(iJ(n)):ti.YP},fZ=function(n){return fx(n)?ti.G(iQ(n)):ti.YP},fQ=function(n){return function(t){return fz(n,t)?lr(t):t.slice(0,n)}},f0=function(n){return function(t){return fz(n,t)?lr(t):0===n?[]:t.slice(-n)}};function f1(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=t[r];if(!n(u))break;e.push(u)}return e}}var f2=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function f5(n){return function(t){var e=lI(f2(t,n))(t);return{init:e[0],rest:e[1]}}}var f7=function(n){return function(t){return n<=0||fT(t)?lr(t):n>=t.length?[]:t.slice(n,t.length)}},f8=function(n){return function(t){return n<=0||fT(t)?lr(t):n>=t.length?[]:t.slice(0,t.length-n)}};function f3(n){return function(t){return t.slice(f2(t,n))}}var f9=o6;function f4(n){return cn(n)}var f6=ct;function ln(n){return ce(n)}var lt=cr,le=cu,lr=function(n){return n.slice()},lu=function(n,t){return function(e){return n<0||n>e.length?ti.YP:ti.G(dn(n,t,e))}},li=function(n,t){return lc(n,function(){return t})},lo=function(n){return function(t){return fz(n,t)?ti.YP:ti.G(de(n,t))}},lc=function(n,t){return function(e){return fz(n,e)?ti.YP:ti.G(dt(n,t(e[n]),e))}},la=function(n){return fT(n)?[]:n.slice().reverse()},lf=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},ll=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},lp=function(n){return function(t){return t.length<=1?lr(t):t.slice().sort(n.compare)}},ld=function(n,t,e){for(var r=[],u=Math.min(n.length,t.length),i=0;i<u;i++)r[i]=e(n[i],t[i]);return r},ls=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},lh=function(n){var t=uz(n);return function(n){return fx(n)?t(n):[]}},lm=function(n){var t=uH(n);return function(n){return fx(n)?t(n):lr(n)}},lv=function(n){var t=uM(n);return function(n){return fx(n)?t(n):lr(n)}},lg=cy,ly=function(n){var t=uS(n);return function(n){return fx(n)?t(n):lr(n)}},lb=function(n){var t=uT(n);return function(n){return fx(n)?t(n):lr(n)}},l_=function(n){var t=uZ(n);return function(n){return fx(n)?t(n):[]}},lI=function(n){return function(t){return n>=1&&fx(t)?uQ(n)(t):fT(t)?[lr(t),[]]:[[],lr(t)]}},lR=function(n){var t=u0(n);return function(n){return fx(n)?t(n):[]}},lS=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return fF(n.apply(void 0,t))}};function lT(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,u){return fx(u)?l1(iX(u),function(t){return r((0,tr.pipe)(n,fw(t)),iJ(u))}):e.apply(void 0,n)?[t.apply(void 0,n)]:[]};return r([],n)}var lx=function(n){return function(t){return fT(t)?lr(n):fT(n)?lr(t):t.concat(n)}},lM=lx;function lO(n){var t=ux(n);return function(e,r){if(void 0===r){var u=lO(n);return function(n){return u(n,e)}}return fx(e)&&fx(r)?t(r)(e):fx(e)?lr(e):lr(r)}}function lw(n){var t=lg(n);return function(e,r){if(void 0===r){var u=lw(n);return function(n){return u(n,e)}}return e.filter(function(n){return t(n,r)})}}function lC(n){var t=lg(n);return function(e,r){if(void 0===r){var u=lC(n);return function(n){return u(n,e)}}return e.filter(function(n){return!t(n,r)})}}var lE=function(n,t){return(0,tr.pipe)(n,lQ(t))},lk=function(n,t){return(0,tr.pipe)(n,l5(t))},lW=function(n,t){return(0,tr.pipe)(n,l0(t))},lF=function(n,t){return(0,tr.pipe)(n,l4(t))},lU=function(n,t){return(0,tr.pipe)(n,l8(t))},lP=function(n,t){return(0,tr.pipe)(n,l6(t))},lA=function(n,t){return(0,tr.pipe)(n,pt(t))},lL=function(n,t){return(0,tr.pipe)(n,pn(t))},lD=function(n,t){return(0,tr.pipe)(n,pe(t))},lN=function(n,t){return(0,tr.pipe)(n,pu(t))},lj=function(n,t,e){return(0,tr.pipe)(n,pl(t,e))},lq=function(n){var t=pa(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},lK=function(n,t,e){return(0,tr.pipe)(n,pd(t,e))},lG=function(n,t,e){return(0,tr.pipe)(n,pp(t,e))},lY=function(n){var t=pf(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},lB=function(n,t,e){return(0,tr.pipe)(n,ps(t,e))},lV=function(n,t){return(0,tr.pipe)(n,l7(t))},lz=function(n,t){return(0,tr.pipe)(n,pi(t))},lH=function(n,t){return(0,tr.pipe)(n,po(t))},l$=function(n){var t=ph(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},lX=function(n){var t=pv(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},lJ=uY,lZ=function(){return[]},lQ=function(n){return function(t){return t.map(function(t){return n(t)})}},l0=function(n){return l1(function(t){return(0,tr.pipe)(n,lQ(t))})},l1=(0,tr.dual)(2,function(n,t){return(0,tr.pipe)(n,fG(function(n,e){return t(e,n)}))}),l2=l1(tr.identity),l5=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},l7=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var u=n(r,t[r]);ti.pC(u)&&e.push(u.value)}return e}},l8=function(n){return l7(function(t,e){return n(e)})},l3=l8(tr.identity),l9=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var u=n[r];"Left"===u._tag?t.push(u.left):e.push(u.right)}return(0,oR.separated)(t,e)},l4=function(n){return function(t){return t.filter(n)}},l6=function(n){return pn(function(t,e){return n(e)})},pn=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=t[u];n(u,i)?r.push(i):e.push(i)}return(0,oR.separated)(e,r)}},pt=function(n){return pe(function(t,e){return n(e)})},pe=function(n){return function(t){for(var e=[],r=[],u=0;u<t.length;u++){var i=n(u,t[u]);"Left"===i._tag?e.push(i.left):r.push(i.right)}return(0,oR.separated)(e,r)}},pr=function(n){return function(t){return t.concat(n())}},pu=pr,pi=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},po=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},pc=po(tr.identity),pa=as,pf=ap,pl=ad,pp=ah,pd=am,ps=av,ph=function(n){var t=pv(n);return function(n){return t(function(t,e){return n(e)})}},pm=function(n){return function(t){return lj(t,n.of(lZ()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,tr.pipe)(n,fw(t))}}),e)})}},pv=function(n){return function(t){return pp(n.of(lZ()),function(e,r,u){return n.ap(n.map(r,function(n){return function(t){return(0,tr.pipe)(n,fw(t))}}),t(e,u))})}},pg=function(n){var t=p0(n);return function(n){return function(e){return t(e,n)}}},py=function(n){var t=p1(n);return function(n){return function(e){return t(e,n)}}},pb=function(n,t){for(var e=[],r=n;;){var u=t(r);if(ti.pC(u)){var i=u.value,o=i[0],c=i[1];e.push(o),r=c}else break}return e},p_="Array",pI=aT,pR=function(){return{concat:function(n,t){return n.concat(t)}}},pS=function(){return{concat:pR().concat,empty:[]}},pT=aO,px=aw,pM=function(n){var t=lO(n);return{concat:function(n,e){return t(e)(n)}}},pO=function(n){return{concat:pM(n).concat,empty:[]}},pw=function(n){var t=lw(n);return{concat:function(n,e){return t(e)(n)}}},pC=function(n){var t=lC(n);return{concat:function(n,e){return t(e)(n)}}},pE={URI:p_,map:lE},pk=(0,tu.flap)(pE),pW={URI:p_,of:lJ},pF={URI:p_,map:lE,mapWithIndex:lk},pU={URI:p_,map:lE,ap:lW},pP=(0,n9.apFirst)(pU),pA=(0,n9.apSecond)(pU),pL={URI:p_,map:lE,ap:lW,of:lJ},pD={URI:p_,map:lE,ap:lW,chain:l1},pN=(0,tt.chainFirst)(pD),pj={URI:p_,map:lE,ap:lW,of:lJ,chain:l1},pq={URI:p_,unfold:pb},pK={URI:p_,map:lE,alt:lN},pG={URI:p_,zero:lZ},pY=oT(pG,pW),pB={URI:p_,map:lE,ap:lW,of:lJ,alt:lN,zero:lZ},pV={URI:p_,map:lE,extend:lH},pz={URI:p_,compact:l3,separate:l9},pH={URI:p_,map:lE,compact:l3,separate:l9,filter:lF,filterMap:lU,partition:lP,partitionMap:lA},p$={URI:p_,map:lE,mapWithIndex:lk,compact:l3,separate:l9,filter:lF,filterMap:lU,partition:lP,partitionMap:lA,partitionMapWithIndex:lD,partitionWithIndex:lL,filterMapWithIndex:lV,filterWithIndex:lz},pX={URI:p_,reduce:lj,foldMap:lq,reduceRight:lK},pJ={URI:p_,reduce:lj,foldMap:lq,reduceRight:lK,reduceWithIndex:lG,foldMapWithIndex:lY,reduceRightWithIndex:lB},pZ={URI:p_,map:lE,reduce:lj,foldMap:lq,reduceRight:lK,traverse:l$,sequence:pm},pQ={URI:p_,map:lE,mapWithIndex:lk,reduce:lj,foldMap:lq,reduceRight:lK,reduceWithIndex:lG,foldMapWithIndex:lY,reduceRightWithIndex:lB,traverse:l$,sequence:pm,traverseWithIndex:lX},p0=(0,oS.witherDefault)(pZ,pz),p1=(0,oS.wiltDefault)(pZ,pz),p2={URI:p_,map:lE,compact:l3,separate:l9,filter:lF,filterMap:lU,partition:lP,partitionMap:lA,reduce:lj,foldMap:lq,reduceRight:lK,traverse:l$,sequence:pm,wither:p0,wilt:p1},p5=a5,p7={URI:p_,map:lE,ap:lW,chain:l1,chainRec:cZ},p8=a8,p3={URI:p_,map:lE,ap:lW,chain:l1,chainRec:cQ},p9=(0,oS.filterE)(p2),p4={URI:p_,fromEither:fU},p6=(0,te.fromEitherK)(p4),dn=uI,dt=function(n,t,e){return fx(e)?uR(n,t,e):[]},de=function(n,t){var e=t.slice();return e.splice(n,1),e},dr=ff,du=function(n){return function(t){return t.some(n)}},di=du,dc=fd,da=lJ(ti.F4),df=(0,tu.bindTo)(pE),dl=(0,tu.let)(pE),dp=(0,tt.bind)(pD),dd=(0,n9.apS)(pU),ds=l1,dh=uk,dm=[],dv=oo,dg=oc,dy=lh,db={URI:p_,compact:l3,separate:l9,map:lE,ap:lW,of:lJ,chain:l1,filter:lF,filterMap:lU,partition:lP,partitionMap:lA,mapWithIndex:lk,partitionMapWithIndex:lD,partitionWithIndex:lL,filterMapWithIndex:lV,filterWithIndex:lz,alt:lN,zero:lZ,unfold:pb,reduce:lj,foldMap:lq,reduceRight:lK,traverse:l$,sequence:pm,reduceWithIndex:lG,foldMapWithIndex:lY,reduceRightWithIndex:lB,traverseWithIndex:lX,extend:lH,wither:p0,wilt:p1},d_=function(n){return"boolean"==typeof n},dI=function(n,t){return function(e){return e?t():n()}},dR=dI,dS=dR,dT=dS,dx={equals:function(n,t){return n===t}},dM={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},dO={concat:function(n,t){return n&&t}},dw={concat:function(n,t){return n||t}},dC={concat:dO.concat,empty:!0},dE={concat:dw.concat,empty:!1},dk={equals:dx.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},dW={show:function(n){return JSON.stringify(n)}},dF=function(n){return{meet:function(t,e){return n.join(t,e)},join:function(t,e){return n.meet(t,e)},zero:n.one,one:n.zero,implies:function(t,e){return n.join(n.not(t),e)},not:n.not}},dU={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},dP=dF,dA={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},dL=tr.getBooleanAlgebra,dD=function(n){return tq(n)(n.bottom,n.top)},dN=function(n){var t=tO(n);return{equals:t.equals,compare:t.compare,top:n.bottom,bottom:n.top}},dj={equals:t$.equals,compare:t$.compare,top:1/0,bottom:-1/0};function dq(n){return{meet:tN(n),join:tj(n)}}function dK(n){var t=dq(n);return function(n,e){return{join:t.join,meet:t.meet,zero:n,one:e}}}var dG=e(2575);function dY(n,t){return function(e,r){return t.compose(n.right(r),n.left(e))}}function dB(n,t){var e=dY(n,t);return function(r,u){return t.compose(n.promap(t.id(),function(n){return"Left"===n._tag?n.left:n.right},tr.identity),e(r,u))}}function dV(n){return dY(n,n)}function dz(n){return dB(n,n)}var dH=function(n){return function(t){return(0,tr.flow)(n,t)}},d$="Predicate",dX=function(){return{concat:function(n,t){return(0,tr.pipe)(n,d2(t))}}},dJ=function(){return{concat:dX().concat,empty:tr.constFalse}},dZ=function(){return{concat:function(n,t){return(0,tr.pipe)(n,d5(t))}}},dQ=function(){return{concat:dZ().concat,empty:tr.constTrue}},d0={URI:d$,contramap:function(n,t){return(0,tr.pipe)(n,dH(t))}},d1=function(n){return function(t){return!n(t)}},d2=function(n){return function(t){return function(e){return t(e)||n(e)}}},d5=function(n){return function(t){return function(e){return t(e)&&n(e)}}},d7=ti.YP,d8=ti.G;function d3(n){return function(t){return n(t)?d8(t):d7}}var d9=function(n){return"Right"===n._tag?d7:d8(n.left)},d4=function(n){return"Left"===n._tag?d7:d8(n.right)},d6=function(n,t){return(0,tr.pipe)(n,sv(t))},sn=function(n,t){return(0,tr.pipe)(n,sR(t))},st=function(n,t,e){return(0,tr.pipe)(n,sw(t,e))},se=function(n){var t=sC(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},sr=function(n,t,e){return(0,tr.pipe)(n,sE(t,e))},su=function(n){var t=sJ(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},si=function(n,t){return(0,tr.pipe)(n,sU(t))},so=function(n,t){return(0,tr.pipe)(n,sV(t))},sc=function(n,t){return(0,tr.pipe)(n,sz(t))},sa=function(n,t){return(0,tr.pipe)(n,sj(t))},sf=function(n,t){return(0,tr.pipe)(n,sH(t))},sl=function(n,t){return(0,tr.pipe)(n,s$(t))},sp="Option",sd=function(n){return{show:function(t){return hn(t)?"none":"some(".concat(n.show(t.value),")")}}},ss=function(n){return{equals:function(t,e){return t===e||(hn(t)?hn(e):!hn(e)&&n.equals(t.value,e.value))}}},sh=function(n){return{equals:ss(n).equals,compare:function(t,e){return t===e?0:s6(t)?s6(e)?n.compare(t.value,e.value):1:-1}}},sm=function(n){return{concat:function(t,e){return hn(t)?e:hn(e)?t:d8(n.concat(t.value,e.value))},empty:d7}},sv=function(n){return function(t){return hn(t)?d7:d8(n(t.value))}},sg={URI:sp,map:d6},sy=(0,tr.dual)(2,(0,tu.as)(sg)),sb=(0,tu.asUnit)(sg),s_=d8,sI={URI:sp,of:s_},sR=function(n){return function(t){return hn(t)?d7:hn(n)?d7:d8(t.value(n.value))}},sS={URI:sp,map:d6,ap:sn},sT={URI:sp,map:d6,ap:sn,of:s_},sx=(0,tr.dual)(2,function(n,t){return hn(n)?d7:t(n.value)}),sM={URI:sp,map:d6,ap:sn,chain:sx},sO={URI:sp,map:d6,ap:sn,of:s_,chain:sx},sw=function(n,t){return function(e){return hn(e)?n:t(n,e.value)}},sC=function(n){return function(t){return function(e){return hn(e)?n.empty:t(e.value)}}},sE=function(n,t){return function(e){return hn(e)?n:t(e.value,n)}},sk={URI:sp,reduce:st,foldMap:se,reduceRight:sr},sW=(0,tr.dual)(2,function(n,t){return hn(n)?t():n}),sF=sW,sU=sW,sP={URI:sp,map:d6,alt:si},sA=function(){return d7},sL={URI:sp,zero:sA},sD=oT(sL,sI),sN={URI:sp,map:d6,ap:sn,of:s_,alt:si,zero:sA},sj=function(n){return function(t){return hn(t)?d7:d8(n(t))}},sq={URI:sp,map:d6,extend:sa},sK=sx(tr.identity),sG=(0,oR.separated)(d7,d7),sY=function(n){return hn(n)?sG:(0,oR.separated)(d9(n.value),d4(n.value))},sB={URI:sp,compact:sK,separate:sY},sV=function(n){return function(t){return hn(t)?d7:n(t.value)?t:d7}},sz=function(n){return function(t){return hn(t)?d7:n(t.value)}},sH=function(n){return function(t){return(0,oR.separated)(so(t,d1(n)),so(t,n))}},s$=function(n){return(0,tr.flow)(sv(n),sY)},sX={URI:sp,map:d6,compact:sK,separate:sY,filter:so,filterMap:sc,partition:sf,partitionMap:sl},sJ=function(n){return function(t){return function(e){return hn(e)?n.of(d7):n.map(t(e.value),d8)}}},sZ=function(n){return function(t){return hn(t)?n.of(d7):n.map(t.value,d8)}},sQ={URI:sp,map:d6,reduce:st,foldMap:se,reduceRight:sr,traverse:su,sequence:sZ},s0=(0,oS.witherDefault)(sQ,sB),s1=(0,oS.wiltDefault)(sQ,sB),s2=function(n){var t=s0(n);return function(n){return function(e){return t(e,n)}}},s5=function(n){var t=s1(n);return function(n){return function(e){return t(e,n)}}},s7={URI:sp,map:d6,reduce:st,foldMap:se,reduceRight:sr,traverse:su,sequence:sZ,compact:sK,separate:sY,filter:so,filterMap:sc,partition:sf,partitionMap:sl,wither:s0,wilt:s1},s8=function(){return d7},s3={URI:sp,map:d6,ap:sn,of:s_,chain:sx,throwError:s8},s9=d4,s4={URI:sp,fromEither:s9},s6=ti.pC,hn=function(n){return"None"===n._tag},ht=function(n,t){return function(e){return hn(e)?n():t(e.value)}},he=ht,hr=ht,hu=hr,hi=function(n){return function(t){return hn(t)?n():t.value}},ho=hi,hc=(0,tu.flap)(sg),ha=(0,n9.apFirst)(sS),hf=(0,n9.apSecond)(sS),hl=sK,hp=(0,tr.dual)(2,tt.tap(sM)),hd=(0,tr.dual)(2,(0,te.tapEither)(s4,sM)),hs=sj(tr.identity),hh=(0,te.fromEitherK)(s4),hm=(0,te.chainEitherK)(s4,sM),hv=hd,hg=function(n){return null==n?d7:d8(n)},hy=function(n){try{return d8(n())}catch(n){return d7}},hb=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return hy(function(){return n.apply(void 0,t)})}},h_=function(n){return(0,tr.flow)(n,hg)},hI=function(n){return function(t){return hn(t)?d7:hg(n(t.value))}},hR=hr(tr.constNull,tr.identity),hS=hr(tr.constUndefined,tr.identity),hT=function(n){return function(t){return!hn(t)&&n(t.value)}},hx=s_(ti.F4),hM=(0,tu.bindTo)(sg),hO=(0,tu.let)(sg),hw=tt.bind(sM),hC=(0,n9.apS)(sS),hE=s_(ti.Xl),hk=function(n){return function(t){var e=n(0,ti.YM(t));if(hn(e))return d7;for(var r=[e.value],u=1;u<t.length;u++){var i=n(u,t[u]);if(hn(i))return d7;r.push(i.value)}return d8(r)}},hW=function(n){var t=hk(n);return function(n){return ti.Od(n)?t(n):hE}},hF=hW,hU=function(n){return hW(function(t,e){return n(e)})},hP=hU(tr.identity),hA=sx,hL=hp;function hD(n){return function(t){return s6(n(t))}}var hN=hI,hj={URI:sp,map:d6,of:s_,ap:sn,chain:sx,reduce:st,foldMap:se,reduceRight:sr,traverse:su,sequence:sZ,zero:sA,alt:si,extend:sa,compact:sK,separate:sY,filter:so,filterMap:sc,partition:sf,partitionMap:sl,wither:s0,wilt:s1,throwError:s8},hq=(0,n9.getApplySemigroup)(sS),hK=(0,tn.getApplicativeMonoid)(sT),hG=function(){return sm(t6())},hY=function(){return sm(en())};function hB(n,t){return function(e){return n.map(e,t.compact)}}function hV(n,t,e){var r=hB(n,t),u=(0,tu.map)(n,e);return function(n){return oR.separated(r((0,tr.pipe)(n,u(d9))),r((0,tr.pipe)(n,u(d4))))}}function hz(n,t){return{map:(0,tu.getFunctorComposition)(n,t).map,compact:hB(n,t),separate:hV(n,t,t)}}var hH=function(n){return function(){return console.log(n)}},h$=function(n){return function(){return console.warn(n)}},hX=function(n){return function(){return console.error(n)}},hJ=function(n){return function(){return console.info(n)}},hZ=tr.unsafeCoerce;function hQ(n){return{show:function(t){return"make(".concat(n.show(t),")")}}}var h0=tr.identity,h1=tr.identity,h2=tr.identity,h5=tr.identity,h7=tr.identity,h8=tr.identity,h3=tr.identity,h9=tr.identity,h4=tr.identity;function h6(n){return{URI:mf,_E:void 0,map:me,ap:function(t,e){return hZ(n.concat(t,e))}}}function mn(n){var t=h6(n);return{URI:mf,_E:void 0,map:t.map,ap:t.ap,of:function(){return hZ(n.empty)}}}var mt=function(n,t){return(0,tr.pipe)(n,mi(t))},me=function(n,t){return(0,tr.pipe)(n,mo(t))},mr=function(n,t,e){return(0,tr.pipe)(n,mc(t,e))},mu=function(n,t){return(0,tr.pipe)(n,ma(t))},mi=function(){return tr.unsafeCoerce},mo=function(){return tr.unsafeCoerce},mc=function(n){return function(t){return hZ(n(t))}},ma=function(n){return function(t){return hZ(n(t))}},mf="Const",ml={URI:mf,map:me},mp=(0,tu.flap)(ml),md={URI:mf,contramap:mt},ms={URI:mf,bimap:mr,mapLeft:mu},mh={URI:mf,map:me,contramap:mt,bimap:mr,mapLeft:mu},mm={equals:function(n,t){return n.valueOf()===t.valueOf()}},mv={equals:function(n,t){return n.getDate()===t.getDate()}},mg={equals:function(n,t){return n.getMonth()===t.getMonth()}},my={equals:function(n,t){return n.getFullYear()===t.getFullYear()}},mb=(0,tr.pipe)(os,tw(function(n){return n.valueOf()})),m_=function(){return new Date},mI=function(){return new Date().getTime()},mR=e(19903);function mS(n){return(0,tr.flow)(mR.right,n.of)}function mT(n){return(0,tr.flow)(mR.left,n.of)}function mx(n){return function(t){return n.map(t,mR.right)}}function mM(n){return function(t){return n.map(t,mR.left)}}function mO(n){return function(t){return(0,tr.flow)(mR.fromNullable(t),n.of)}}function mw(n){var t=mO(n);return function(n){var e=t(n);return function(n){return(0,tr.flow)(n,e)}}}function mC(n){var t=mW(n),e=mw(n);return function(n){var r=e(n);return function(n){return t(r(n))}}}function mE(n){return(0,tu.map)(n,mR.Functor)}function mk(n){return(0,n9.ap)(n,mR.Apply)}function mW(n){var t=mF(n);return function(n){return function(e){return t(e,n)}}}function mF(n){return function(t,e){return n.chain(t,function(t){return mR.isLeft(t)?n.of(t):e(t.right)})}}function mU(n){return function(t){return function(e){return n.chain(e,function(e){return mR.isLeft(e)?t():n.of(e)})}}}function mP(n){var t=mA(n);return function(n,e){return function(r){return t(r,n,e)}}}function mA(n){return function(t,e,r){return n.map(t,mR.bimap(e,r))}}function mL(n){var t=mD(n);return function(n){return function(e){return t(e,n)}}}function mD(n){return function(t,e){return n.map(t,mR.mapLeft(e))}}function mN(n,t){return function(e){return function(r){return n.chain(r,mR.match(function(r){return n.map(e(),mR.mapLeft(function(n){return t.concat(r,n)}))},mS(n)))}}}function mj(n){return function(t,e){return function(r){return n.map(r,mR.match(t,e))}}}function mq(n){return function(t,e){return function(r){return n.chain(r,mR.match(t,e))}}}function mK(n){return function(t){return function(e){return n.chain(e,mR.match(t,n.of))}}}function mG(n){return function(t){return function(e){return n.chain(e,function(e){return mR.isLeft(e)?t(e.left):n.of(e)})}}}function mY(n){var t=mB(n);return function(n){return function(e){return t(e,n)}}}function mB(n){var t=mG(n);return function(e,r){return(0,tr.pipe)(e,t(function(t){return n.map(r(t),function(n){return mR.isLeft(n)?n:mR.left(t)})}))}}function mV(n){return function(t){return function(e){return n.chain(e,mR.match(function(e){return n.map(t(e),mR.left)},function(t){return n.of(mR.right(t))}))}}}function mz(n){return function(t){return n.map(t,mR.swap)}}function mH(n){return function(t){return n.map(t,mR.toUnion)}}function m$(n){var t=mk(n),e=mE(n),r=mW(n),u=mU(n),i=mP(n),o=mL(n),c=mq(n),a=mK(n),f=mG(n);return{map:function(n,t){return(0,tr.pipe)(n,e(t))},ap:function(n,e){return(0,tr.pipe)(n,t(e))},of:mS(n),chain:function(n,t){return(0,tr.pipe)(n,r(t))},alt:function(n,t){return(0,tr.pipe)(n,u(t))},bimap:function(n,t,e){return(0,tr.pipe)(n,i(t,e))},mapLeft:function(n,t){return(0,tr.pipe)(n,o(t))},fold:function(n,t,e){return(0,tr.pipe)(n,c(t,e))},getOrElse:function(n,t){return(0,tr.pipe)(n,a(t))},orElse:function(n,t){return(0,tr.pipe)(n,f(t))},swap:mz(n),rightM:mx(n),leftM:mM(n),left:mT(n)}}var mX="Endomorphism",mJ=function(){return{concat:function(n,t){return(0,tr.flow)(n,t)}}},mZ=function(){return{concat:mJ().concat,empty:tr.identity}};function mQ(n,t){var e=t.zero,r=function(u,i){return n.equals(i,e)?u:r(i,t.mod(u,i))};return r}function m0(n,t){var e=t.zero,r=mQ(n,t);return function(u,i){return n.equals(u,e)||n.equals(i,e)?e:t.div(t.mul(u,i),r(u,i))}}var m1={add:function(n,t){return n+t},zero:0,mul:function(n,t){return n*t},one:1,sub:function(n,t){return n-t},degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}};function m2(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filter(n,e)})}}}function m5(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filterMap(n,e)})}}}function m7(n,t){var e=m2(n,t);return function(n){var t=e(d1(n)),r=e(n);return function(n){return(0,oR.separated)(t(n),r(n))}}}function m8(n,t){var e=m5(n,t);return function(n){return function(t){return(0,oR.separated)((0,tr.pipe)(t,e(function(t){return d9(n(t))})),(0,tr.pipe)(t,e(function(t){return d4(n(t))})))}}}function m3(n,t){var e=(0,tu.getFunctorComposition)(n,t).map,r=hB(n,t),u=hV(n,t,t),i=m2(n,t),o=m5(n,t),c=m7(n,t),a=m8(n,t);return{map:e,compact:r,separate:u,filter:function(n,t){return(0,tr.pipe)(n,i(t))},filterMap:function(n,t){return(0,tr.pipe)(n,o(t))},partition:function(n,t){return(0,tr.pipe)(n,c(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,a(t))}}}function m9(n,t){return function(e,r){return function(u){return n.reduce(u,e,function(n,e){return t.reduce(e,n,r)})}}}function m4(n,t){return function(e){var r=n.foldMap(e),u=t.foldMap(e);return function(n){return function(t){return r(t,function(t){return u(t,n)})}}}}function m6(n,t){return function(e,r){return function(u){return n.reduceRight(u,e,function(n,e){return t.reduceRight(n,e,r)})}}}function vn(n,t){return function(e,r){return function(u){return t.reduce(u,n.of(e),function(t,e){return n.chain(t,function(n){return r(n,e)})})}}}function vt(n,t){return function(e,r){return t.reduce(r,{init:!0,acc:n.empty},function(t,r){var u=t.init,i=t.acc;return u?{init:!1,acc:r}:{init:!1,acc:n.concat(n.concat(i,e),r)}}).acc}}function ve(n){return function(t){return n.reduce(t,[],function(n,t){return n.push(t),n})}}function vr(n,t){var e=n.of(void 0);return function(r,u){return t.reduce(r,e,function(t,e){var r;return r=u(e),n.ap(n.map(t,tr.constant),r)})}}function vu(n,t){return function(e,r,u){return t.reduce(e,n.of(r),function(t,e){return n.chain(t,function(n){return u(n,e)})})}}var vi=ve;function vo(n,t){var e=m9(n,t),r=m4(n,t),u=m6(n,t);return{reduce:function(n,t,r){return(0,tr.pipe)(n,e(t,r))},foldMap:function(n){var t=r(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,tr.pipe)(n,u(t,e))}}}function vc(n,t){return function(e,r){return function(u){return n.reduceWithIndex(u,e,function(n,e,u){return t.reduceWithIndex(u,e,function(t,e,u){return r([n,t],e,u)})})}}}function va(n,t){return function(e){var r=n.foldMapWithIndex(e),u=t.foldMapWithIndex(e);return function(n){return function(t){return r(t,function(t,e){return u(e,function(e,r){return n([t,e],r)})})}}}}function vf(n,t){return function(e,r){return function(u){return n.reduceRightWithIndex(u,e,function(n,e,u){return t.reduceRightWithIndex(e,u,function(t,e,u){return r([n,t],e,u)})})}}}function vl(n,t){var e=vo(n,t),r=vc(n,t),u=va(n,t),i=vf(n,t);return{reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(n,t,e){return(0,tr.pipe)(n,r(t,e))},foldMapWithIndex:function(n){var t=u(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,tr.pipe)(n,i(t,e))}}}function vp(n){return function(t){return(0,tr.flow)(t,n.fromIO)}}function vd(n,t){return function(e){var r=(0,tr.flow)(e,n.fromIO);return function(n){return t.chain(n,r)}}}function vs(n,t){var e=vh(n,t);return function(n){return function(t){return e(t,n)}}}function vh(n,t){var e=(0,tt.tap)(t);return function(t,r){return e(t,(0,tr.flow)(r,n.fromIO))}}var vm=function(){return tr.identity},vv=tr.identity,vg=function(n){return function(t){return function(e){return t(n(e))}}},vy=function(n){return function(t){return n(t)(t)}},vb=vy,v_=function(n,t){return(0,tr.pipe)(n,vT(t))},vI=function(n,t){return(0,tr.pipe)(n,vM(t))},vR=function(n,t){return(0,tr.pipe)(n,vk(t))},vS=function(n,t,e){return(0,tr.pipe)(n,vW(t,e))},vT=function(n){return function(t){return function(e){return n(t(e))}}},vx=function(n){return function(t){return function(e){return t(e)(n(e))}}},vM=vx,vO=tr.constant,vw=(0,tr.dual)(2,function(n,t){return function(e){return t(n(e))(e)}}),vC=vw(tr.identity),vE=vC,vk=function(n){return function(t){return(0,tr.flow)(n,t)}},vW=function(n,t){return function(e){return function(r){return t(e(n(r)))}}},vF=function(){return tr.identity},vU=function(n){return function(t){var e=t[0],r=t[1];return[n(e),r]}},vP=function(n){return function(t){return[t[0],n(t[1])]}},vA=function(n){return mR.fold(function(t){return ti.t$(n(t))},mR.right)},vL=function(n){return mR.fold(mR.left,function(t){return ti.F2(n(t))})},vD="Reader",vN={URI:vD,map:v_},vj=(0,tu.flap)(vN),vq={URI:vD,of:vO},vK={URI:vD,map:v_,ap:vI},vG=(0,n9.apFirst)(vK),vY=vG,vB=(0,n9.apSecond)(vK),vV=vB,vz={URI:vD,map:v_,ap:vI,of:vO},vH={URI:vD,map:v_,ap:vI,chain:vw},v$={URI:vD,map:v_,of:vO,ap:vI,chain:vw},vX=(0,tr.dual)(2,tt.tap(vH)),vJ={URI:vD,map:v_,promap:vS},vZ={URI:vD,compose:vR,id:vF},vQ={URI:vD,map:v_,promap:vS,first:vU,second:vP},v0={URI:vD,map:v_,promap:vS,left:vA,right:vL},v1=(0,tu.bindTo)(vN),v2=(0,tu.let)(vN),v5=tt.bind(vH),v7=v5,v8=vO(ti.F4),v3=(0,n9.apS)(vK),v9=v3,v4=vO(ti.Xl),v6=function(n){return function(t){return function(e){for(var r=[n(0,ti.YM(t))(e)],u=1;u<t.length;u++)r.push(n(u,t[u])(e));return r}}},gn=function(n){var t=v6(n);return function(n){return ti.Od(n)?t(n):v4}},gt=gn,ge=function(n){return gn(function(t,e){return n(e)})},gr=ge(tr.identity),gu=vw,gi=vw,go=vX,gc=vX,ga={URI:vD,map:v_,of:vO,ap:vI,chain:vw,promap:vS,compose:vR,id:vF,first:vU,second:vP,left:vA,right:vL},gf=(0,n9.getApplySemigroup)(vK),gl=(0,tn.getApplicativeMonoid)(vz);function gp(n){return function(){return n.fromReader(vm())}}function gd(n){return n.fromReader}function gs(n){return function(t){return(0,tr.flow)(t,n.fromReader)}}function gh(n,t){var e=gs(n);return function(n){return function(r){return t.chain(r,e(n))}}}function gm(n,t){var e=gv(n,t);return function(n){return function(t){return e(t,n)}}}function gv(n,t){var e=(0,tt.tap)(t);return function(t,r){return e(t,(0,tr.flow)(r,n.fromReader))}}var gg=function(){return function(n){return[n,n]}},gy=function(n){return function(){return[void 0,n]}},gb=function(n){return function(t){return[void 0,n(t)]}},g_=function(n){return function(t){return[n(t),t]}},gI=function(n,t){return(0,tr.pipe)(n,gS(t))},gR=function(n,t){return(0,tr.pipe)(n,gT(t))},gS=function(n){return function(t){return function(e){var r=t(e),u=r[0],i=r[1];return[n(u),i]}}},gT=function(n){return function(t){return function(e){var r=t(e),u=r[0],i=n(r[1]),o=i[0],c=i[1];return[u(o),c]}}},gx=function(n){return function(t){return[n,t]}},gM=(0,tr.dual)(2,function(n,t){return function(e){var r=n(e),u=r[0],i=r[1];return t(u)(i)}}),gO=gM(tr.identity),gw="State",gC={URI:gw,map:gI},gE=(0,tu.flap)(gC),gk={URI:gw,of:gx},gW={URI:gw,map:gI,ap:gR},gF=(0,n9.apFirst)(gW),gU=(0,n9.apSecond)(gW),gP={URI:gw,map:gI,ap:gR,of:gx},gA={URI:gw,map:gI,ap:gR,chain:gM},gL={URI:gw,map:gI,ap:gR,of:gx,chain:gM},gD=(0,tr.dual)(2,tt.tap(gA)),gN={URI:gw,fromState:tr.identity},gj=function(n){return function(t){return t(n)[0]}},gq=function(n){return function(t){return t(n)[1]}},gK=(0,tu.bindTo)(gC),gG=(0,tu.let)(gC),gY=tt.bind(gA),gB=(0,n9.apS)(gW),gV=function(n){return function(t){return function(e){for(var r=n(0,ti.YM(t))(e),u=r[0],i=r[1],o=[u],c=i,a=1;a<t.length;a++){var f=n(a,t[a])(c),l=f[0],p=f[1];o.push(l),c=p}return[o,c]}}},gz=function(n){var t=gV(n);return function(n){return ti.Od(n)?t(n):gx(ti.Xl)}},gH=gz,g$=function(n){return gz(function(t,e){return n(e)})},gX=g$(tr.identity),gJ=gM,gZ=gD,gQ=function(n,t){return n(t)[0]},g0=function(n,t){return n(t)[1]},g1=gL;function g2(n){return function(){return n.fromState(gg())}}function g5(n){return function(t){return n.fromState(gy(t))}}function g7(n){return(0,tr.flow)(gb,n.fromState)}function g8(n){return(0,tr.flow)(g_,n.fromState)}function g3(n){return function(t){return(0,tr.flow)(t,n.fromState)}}function g9(n,t){var e=g3(n);return function(n){return function(r){return t.chain(r,e(n))}}}function g4(n){return function(t){return(0,tr.flow)(t,n.fromTask)}}function g6(n,t){return function(e){var r=(0,tr.flow)(e,n.fromTask);return function(n){return t.chain(n,r)}}}function yn(n,t){var e=yt(n,t);return function(n){return function(t){return e(t,n)}}}function yt(n,t){var e=(0,tt.tap)(t);return function(t,r){return e(t,(0,tr.flow)(r,n.fromTask))}}function ye(n){return function(t){return(0,tr.flow)(t,n.fromThese)}}function yr(n,t){return function(e){return function(r){return n.mapWithIndex(r,function(n,r){return t.mapWithIndex(r,function(t,r){return e([n,t],r)})})}}}function yu(n,t){var e=(0,tu.getFunctorComposition)(n,t).map,r=yr(n,t);return{map:e,mapWithIndex:function(n,t){return(0,tr.pipe)(n,r(t))}}}var yi=function(n,t){return(0,tr.pipe)(n,yh(t))},yo=function(n,t){return(0,tr.pipe)(n,ym(t))},yc=function(n,t,e){return(0,tr.pipe)(n,yR(t,e))},ya=function(n){return function(t,e){return(0,tr.pipe)(t,yS(n)(e))}},yf=function(n,t,e){return(0,tr.pipe)(n,yT(t,e))},yl=function(n,t){return(0,tr.pipe)(n,yw(t))},yp=function(n,t){return(0,tr.pipe)(n,yy(t))},yd=function(n){var t=yx(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},ys=dG.tailRec,yh=function(n){return function(t){return n(t)}},ym=function(n){return function(t){return t(n)}},yv=tr.identity,yg=(0,tr.dual)(2,function(n,t){return t(n)}),yy=function(n){return function(t){return n(t)}},yb=tr.identity,y_=yy(tr.identity),yI=yg(tr.identity),yR=function(n,t){return function(e){return t(n,e)}},yS=function(){return function(n){return function(t){return n(t)}}},yT=function(n,t){return function(e){return t(e,n)}},yx=function(n){return function(t){return function(e){return n.map(t(e),tr.identity)}}},yM=function(n){return function(t){return n.map(t,tr.identity)}},yO=function(){return tr.identity},yw=yO,yC="Identity",yE=tr.identity,yk=tr.identity,yW={URI:yC,map:yi},yF=(0,tu.flap)(yW),yU={URI:yC,of:yv},yP={URI:yC,map:yi,ap:yo},yA=(0,n9.apFirst)(yP),yL=(0,n9.apSecond)(yP),yD={URI:yC,map:yi,ap:yo,of:yv},yN={URI:yC,map:yi,ap:yo,chain:yg},yj={URI:yC,map:yi,ap:yo,of:yv,chain:yg},yq=(0,tt.chainFirst)(yN),yK={URI:yC,reduce:yc,foldMap:ya,reduceRight:yf},yG={URI:yC,map:yi,reduce:yc,foldMap:ya,reduceRight:yf,traverse:yd,sequence:yM},yY={URI:yC,map:yi,alt:yl},yB={URI:yC,map:yi,extend:yp,extract:yb},yV={URI:yC,map:yi,ap:yo,chain:yg,chainRec:ys},yz=yv(ti.F4),yH=(0,tu.bindTo)(yW),y$=(0,tu.let)(yW),yX=(0,tt.bind)(yN),yJ=(0,n9.apS)(yP),yZ=yg,yQ={URI:yC,map:yi,ap:yo,of:yv,chain:yg,reduce:yc,foldMap:ya,reduceRight:yf,traverse:yd,sequence:yM,alt:yl,extract:yb,extend:yp,chainRec:ys},y0=function(n,t){return function(){return t(n())}},y1=function(n,t){return function(){return n()(t())}},y2=function(n,t){return function(){for(var e=t(n)();"Left"===e._tag;)e=t(e.left)();return e.right}},y5=function(n){return function(t){return y0(t,n)}},y7=function(n){return function(t){return y1(t,n)}},y8=tr.constant,y3=(0,tr.dual)(2,function(n,t){return function(){return t(n())()}}),y9=y3(tr.identity),y4="IO",y6={URI:y4,map:y0},bn=(0,tr.dual)(2,(0,tu.as)(y6)),bt=(0,tu.asUnit)(y6),be=(0,tu.flap)(y6),br={URI:y4,of:y8},bu={URI:y4,map:y0,ap:y1},bi=(0,n9.apFirst)(bu),bo=(0,n9.apSecond)(bu),bc={URI:y4,map:y0,ap:y1,of:y8},ba={URI:y4,map:y0,ap:y1,chain:y3},bf={URI:y4,map:y0,ap:y1,of:y8,chain:y3},bl=(0,tr.dual)(2,tt.tap(ba)),bp=tr.identity,bd={URI:y4,map:y0,ap:y1,of:y8,chain:y3,fromIO:bp},bs={URI:y4,map:y0,ap:y1,chain:y3,chainRec:y2},bh={URI:y4,fromIO:tr.identity},bm=y8(ti.F4),bv=(0,tu.bindTo)(y6),bg=(0,tu.let)(y6),by=tt.bind(ba),bb=(0,n9.apS)(bu),b_=y8(ti.Xl),bI=function(n){return function(t){return function(){for(var e=[n(0,ti.YM(t))()],r=1;r<t.length;r++)e.push(n(r,t[r])());return e}}},bR=function(n){var t=bI(n);return function(n){return ti.Od(n)?t(n):b_}},bS=bR,bT=function(n){return bR(function(t,e){return n(e)})},bx=bT(tr.identity),bM=y3,bO=bl,bw={URI:y4,map:y0,of:y8,ap:y1,chain:y3,fromIO:bp,chainRec:y2},bC=(0,n9.getApplySemigroup)(bu),bE=(0,tn.getApplicativeMonoid)(bc),bk=mT(br),bW=mS(br),bF=mx(y6),bU=mM(y6),bP=y8,bA=bF,bL=mj(y6),bD=bL,bN=mq(bf),bj=bN,bq=bN,bK=bq,bG=mK(bf),bY=bG,bB=function(n,t){return function(){return mR.tryCatch(n,t)}},bV=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bB(function(){return n.apply(void 0,e)},t)}},bz=mH(y6),bH=mG(bf),b$=bH,bX=(0,tr.dual)(2,mB(bf)),bJ=function(n){return bX(_P(n))},bZ=mV(bf),bQ=mz(y6),b0=function(n,t){return(0,tr.pipe)(n,b5(t))},b1=function(n,t){return(0,tr.pipe)(n,b4(t))},b2=function(n,t){return(0,tr.pipe)(n,_u(t))},b5=mE(y6),b7=(0,tr.dual)(3,mA(y6)),b8=b7,b3=(0,tr.dual)(2,mD(y6)),b9=b3,b4=mk(bu),b6=b4,_n=bW,_t=(0,tr.dual)(2,mF(bf)),_e=_t(tr.identity),_r=_e,_u=mU(bf),_i=_u,_o=bk,_c="IOEither";function _a(n){var t=(0,n9.ap)(bu,mR.getApplicativeValidation(n));return{URI:_c,_E:void 0,map:b0,ap:function(n,e){return(0,tr.pipe)(n,t(e))},of:_n}}function _f(n){var t=mN(bf,n);return{URI:_c,_E:void 0,map:b0,alt:function(n,e){return(0,tr.pipe)(n,t(e))}}}var _l=function(n){var t=mR.getCompactable(n);return{URI:_c,_E:void 0,compact:hB(y6,t),separate:hV(y6,t,mR.Functor)}};function _p(n){var t=mR.getFilterable(n),e=_l(n),r=m2(y6,t),u=m5(y6,t),i=m7(y6,t),o=m8(y6,t);return{URI:_c,_E:void 0,map:b0,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,tr.pipe)(n,r(t))},filterMap:function(n,t){return(0,tr.pipe)(n,u(t))},partition:function(n,t){return(0,tr.pipe)(n,i(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,o(t))}}}var _d={URI:_c,map:b0},_s=(0,tr.dual)(2,(0,tu.as)(_d)),_h=(0,tu.asUnit)(_d),_m=(0,tu.flap)(_d),_v={URI:_c,of:_n},_g={URI:_c,bimap:b7,mapLeft:b3},_y={URI:_c,map:b0,ap:b1},_b=(0,n9.apFirst)(_y),__=_b,_I=(0,n9.apSecond)(_y),_R=_I,_S={URI:_c,map:b0,ap:b1,of:_n},_T={URI:_c,map:b0,ap:function(n,t){return _t(n,function(n){return(0,tr.pipe)(t,b5(n))})},of:_n},_x={URI:_c,map:b0,ap:b1,chain:_t},_M={URI:_c,map:b0,ap:b1,of:_n,chain:_t},_O={URI:_c,fromEither:bP},_w={URI:_c,fromIO:bA},_C=(0,tr.dual)(2,tt.tap(_x)),_E=(0,tr.dual)(2,(0,te.tapEither)(_O,_x)),_k=(0,tr.dual)(2,vh(_w,_x)),_W={URI:_c,map:b0,alt:b2},_F={URI:_c,map:b0,ap:b1,of:_n,chain:_t,fromIO:bA},_U={URI:_c,map:b0,ap:b1,of:_n,chain:_t,throwError:_o},_P=vp(_w),_A=_k,_L=(0,te.fromOption)(_O),_D=(0,te.fromOptionK)(_O),_N=(0,te.chainOptionK)(_O,_x),_j=_N,_q={fromEither:_O.fromEither},_K=ti.uL(_q),_G=ti.WE(_q),_Y={flatMap:_t},_B=ti.ny(_q,_Y),_V=ti.hU(_q,_Y),_z=ti.iu(_q,_Y),_H=ti.we({fromIO:bA},_Y),_$=_H,_X=_z,_J=_z,_Z=_E,_Q=_E,_0=(0,te.fromPredicate)(_O),_1=(0,te.filterOrElse)(_O,_x),_2=_1,_5=(0,te.fromEitherK)(_O),_7=function(n,t,e){return _8(n,t,e)},_8=function(n,t,e){return _t(n,function(n){return y3(t(n),function(t){return _t(e(n,t),function(){return y8(t)})})})},_3=_n(ti.F4),_9=(0,tu.bindTo)(_d),_4=(0,tu.let)(_d),_6=tt.bind(_x),In=_6,It=(0,n9.apS)(_y),Ie=It,Ir=_n(ti.Xl),Iu=function(n){return(0,tr.flow)(bI(n),y5(mR.traverseReadonlyNonEmptyArrayWithIndex(tr.SK)))},Ii=function(n){var t=Iu(n);return function(n){return ti.Od(n)?t(n):Ir}},Io=function(n){return function(t){return function(){var e=n(0,ti.YM(t))();if(ti.nM(e))return e;for(var r=[e.right],u=1;u<t.length;u++){var i=n(u,t[u])();if(ti.nM(i))return i;r.push(i.right)}return ti.F2(r)}}},Ic=function(n){var t=Io(n);return function(n){return ti.Od(n)?t(n):Ir}},Ia=Ii,If=function(n){return Ii(function(t,e){return n(e)})},Il=If(tr.identity),Ip=Ic,Id=function(n){return Ic(function(t,e){return n(e)})},Is=Id(tr.identity),Ih=_S,Im=_t,Iv=_t,Ig=_C,Iy=_C,Ib=bX,I_=bX,II={URI:_c,bimap:b7,mapLeft:b3,map:b0,of:_n,ap:b1,chain:_t,alt:b2,fromIO:bA,throwError:_o},IR=(0,n9.getApplySemigroup)(_y),IS=(0,tn.getApplicativeMonoid)(_S),IT=function(n){return(0,n9.getApplySemigroup)(bu)(mR.getSemigroup(n))};function Ix(n){var t=_a(n),e=_f(n);return{URI:_c,_E:void 0,map:b0,ap:t.ap,of:_n,chain:_t,bimap:b7,mapLeft:b3,alt:e.alt,fromIO:bA,throwError:_o}}function IM(n){return(0,tr.flow)(d8,n.of)}function IO(n){return(0,tr.constant)(n.of(d7))}function Iw(n){return function(t){return n.map(t,d8)}}function IC(n){return(0,tr.flow)(hg,n.of)}function IE(n){var t=IC(n);return function(n){return(0,tr.flow)(n,t)}}function Ik(n){var t=Iq(n),e=IE(n);return function(n){return t(e(n))}}function IW(n){return function(t){return(0,tr.flow)(t,n.of)}}function IF(n){var t=Iq(n),e=IW(n);return function(n){return t(e(n))}}function IU(n){return function(t){return function(e){return n.of(d3(t)(e))}}}function IP(n){return(0,tr.flow)(s9,n.of)}function IA(n){return function(t,e){return function(r){return n.map(r,hr(t,e))}}}function IL(n){return function(t,e){return function(r){return n.chain(r,hr(t,e))}}}function ID(n){return function(t){return function(e){return n.chain(e,hr(t,n.of))}}}function IN(n){return(0,tu.map)(n,sg)}function Ij(n){return(0,n9.ap)(n,sS)}function Iq(n){var t=IK(n);return function(n){return function(e){return t(e,n)}}}function IK(n){var t=IO(n);return function(e,r){return n.chain(e,hr(function(){return t()},r))}}function IG(n){var t=IM(n);return function(e){return function(r){return n.chain(r,hr(e,t))}}}function IY(n){var t=Ij(n),e=IN(n),r=Iq(n),u=IG(n),i=IL(n),o=ID(n),c=IO(n);return{map:function(n,t){return(0,tr.pipe)(n,e(t))},ap:function(n,e){return(0,tr.pipe)(n,t(e))},of:IM(n),chain:function(n,t){return(0,tr.pipe)(n,r(t))},alt:function(n,t){return(0,tr.pipe)(n,u(t))},fold:function(n,t,e){return(0,tr.pipe)(n,i(t,e))},getOrElse:function(n,t){return(0,tr.pipe)(n,o(t))},fromM:Iw(n),none:function(){return c()}}}var IB=IM(br),IV=IU(br),Iz=y8,IH=IP(br),I$=Iw(y6),IX=y5(s9),IJ=IA(y6),IZ=IJ,IQ=IL(ba),I0=IQ,I1=IQ,I2=ID(bf),I5=I2,I7=y5(hS),I8=y5(hR),I3=IC(br),I9=IE(br),I4=Ik(bf),I6=IW(br),Rn=IN(y6),Rt=Ij(bu),Re=IB,Rr=(0,tr.dual)(2,IK(bf)),Ru=Rr(tr.identity),Ri=IG(bf),Ro=Ri,Rc=IO(br),Ra=Rc(),Rf=hB(y6,sB),Rl=hV(y6,sB,sg),Rp=m2(y6,sX),Rd=m5(y6,sX),Rs=m7(y6,sX),Rh=m8(y6,sX),Rm=function(n,t){return(0,tr.pipe)(n,Rn(t))},Rv=function(n,t){return(0,tr.pipe)(n,Rt(t))},Rg=function(n,t){return(0,tr.pipe)(n,Ri(t))},Ry="IOOption",Rb={URI:Ry,map:Rm},R_=(0,tr.dual)(2,(0,tu.as)(Rb)),RI=(0,tu.asUnit)(Rb),RR=(0,tu.flap)(Rb),RS={URI:Ry,of:Re},RT={URI:Ry,map:Rm,ap:Rv},Rx=(0,n9.apFirst)(RT),RM=(0,n9.apSecond)(RT),RO={URI:Ry,map:Rm,ap:Rv,of:Re},Rw={URI:Ry,map:Rm,ap:Rv,chain:Rr},RC={URI:Ry,fromEither:IH},RE={URI:Ry,fromIO:I$},Rk=(0,tr.dual)(2,tt.tap(Rw)),RW=(0,tr.dual)(2,(0,te.tapEither)(RC,Rw)),RF=(0,tr.dual)(2,vh(RE,Rw)),RU={URI:Ry,map:Rm,alt:Rg},RP={URI:Ry,zero:Rc},RA=oT(RP,RS),RL={URI:Ry,map:Rm,ap:Rv,of:Re,alt:Rg,zero:Rc},RD={URI:Ry,map:Rm,ap:Rv,of:Re,chain:Rr},RN={URI:Ry,map:Rm,ap:Rv,of:Re,chain:Rr,fromIO:I$},Rj={URI:Ry,compact:Rf,separate:Rl},Rq={URI:Ry,map:Rm,compact:Rf,separate:Rl,filter:function(n,t){return(0,tr.pipe)(n,Rp(t))},filterMap:function(n,t){return(0,tr.pipe)(n,Rd(t))},partition:function(n,t){return(0,tr.pipe)(n,Rs(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,Rh(t))}},RK={flatMap:Rr},RG={fromIO:RE.fromIO},RY=ti.we(RG,RK),RB=(0,tr.dual)(2,function(n,t){return Rr(n,I6(t))}),RV=ti.iu({fromEither:IH},RK),Rz=(0,tr.dual)(2,function(n,t){return Rr(n,I9(t))}),RH=vp(RE),R$=RY,RX=RF,RJ=(0,te.fromEitherK)(RC),RZ=RV,RQ=RW,R0=RB,R1=Re(ti.F4),R2=(0,tu.bindTo)(Rb),R5=(0,tu.let)(Rb),R7=tt.bind(Rw),R8=(0,n9.apS)(RT),R3=Re(ti.Xl),R9=function(n){return(0,tr.flow)(bI(n),y5(hk(tr.SK)))},R4=function(n){var t=R9(n);return function(n){return ti.Od(n)?t(n):R3}},R6=Rr,Sn=Rk,St=function(){function n(n){var t=this;this.value=n,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return n.prototype.write=function(n){var t=this;return function(){t.value=n}},n.prototype.modify=function(n){var t=this;return function(){t.value=n(t.value)}},n}();function Se(n){return function(){return new St(n)}}var Sr=function(n){return(0,mR.tryCatch)(function(){return JSON.parse(n)},tr.identity)},Su=function(n){return(0,mR.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},tr.identity)},Si=function(n){return new Map(n)};function So(n){return new Map(n)}function Sc(n,t){return{show:function(e){var r=[];return e.forEach(function(e,u){r.push("[".concat(n.show(u),", ").concat(t.show(e),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var Sa=function(n){return n.size},Sf=function(n){return 0===n.size};function Sl(n){var t=SS(n);return function(e,r){if(void 0===r){var u=Sl(n);return function(n){return u(e,n)}}return ti.pC(t(e,r))}}function Sp(n){return function(t,e){if(void 0===e){var r,u=Sp(n);return function(n){return u(t,n)}}for(var i=e.values();!(r=i.next()).done;){var o=r.value;if(n.equals(t,o))return!0}return!1}}var Sd=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},Ss=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function Sh(n){var t=Sd(n);return function(n){return function(e){for(var r=[],u=t(e),i=0;i<u.length;i++){var o=u[i];r.push(n(o,e.get(o)))}return r}}}var Sm=function(n){return Sh(n)(function(n,t){return[n,t]})};function Sv(n,t){var e=Sm(n);return function(n){var r=e(n),u=r.length;return t.unfold(0,function(n){return n<u?ti.G([r[n],n+1]):ti.YP})}}var Sg=function(n){var t=SR(n);return function(n,e){var r=t(n);return function(t){var u=r(t);if(ti.Wi(u)){var i=new Map(t);return i.set(n,e),i}if(u.value[1]!==e){var i=new Map(t);return i.set(u.value[0],e),i}return t}}},Sy=function(n){var t=SR(n);return function(n){return function(e){var r=t(n,e);if(ti.pC(r)){var u=new Map(e);return u.delete(r.value[0]),u}return e}}},Sb=function(n){var t=S_(n);return function(n,e){return t(n,function(){return e})}},S_=function(n){var t=SR(n);return function(n,e){return function(r){var u=t(n,r);if(ti.Wi(u))return ti.YP;var i=u.value,o=i[0],c=i[1],a=e(c);if(a===c)return ti.G(r);var f=new Map(r);return f.set(o,a),ti.G(f)}}};function SI(n){var t=SS(n),e=Sy(n);return function(n){var r=e(n);return function(e){return(0,tr.pipe)(t(n,e),sv(function(n){return[n,r(e)]}))}}}function SR(n){return function(t,e){if(void 0===e){var r,u=SR(n);return function(n){return u(t,n)}}for(var i=e.entries();!(r=i.next()).done;){var o=r.value,c=o[0],a=o[1];if(n.equals(c,t))return ti.G([c,a])}return ti.YP}}function SS(n){var t=SR(n);return function(e,r){if(void 0===r){var u=SS(n);return function(n){return u(e,n)}}return(0,tr.pipe)(t(e,r),sv(function(n){return n[0],n[1]}))}}function ST(n,t){var e=SR(n);return function(r,u){if(void 0===u){var i,o=ST(n,t);return function(n){return o(n,r)}}for(var c=r.entries();!(i=c.next()).done;){var a=i.value,f=a[0],l=a[1],p=e(f,u);if(ti.Wi(p)||!n.equals(f,p.value[0])||!t.equals(l,p.value[1]))return!1}return!0}}var Sx=new Map;function SM(n,t){var e=ST(n,t);return to(function(n,t){return e(n,t)&&e(t,n)})}function SO(n,t){var e=SR(n);return{concat:function(n,r){if(Sf(n))return r;if(Sf(r))return n;for(var u,i=new Map(n),o=r.entries();!(u=o.next()).done;){var c=u.value,a=c[0],f=c[1],l=e(a,n);ti.pC(l)?i.set(l.value[0],t.concat(l.value[1],f)):i.set(a,f)}return i},empty:Sx}}var Sw=function(n,t){return new Map([[n,t]])};function SC(n,t,e){return function(r){var u=SR(n);return e.reduce(r,new Map,function(n,e){var r=e[0],i=e[1],o=u(r,n);return ti.pC(o)?n.set(o.value[0],t.concat(o.value[1],i)):n.set(r,i),n})}}var SE=function(n,t){for(var e,r=new Map,u=n.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];r.set(o,t(o,c))}return r},Sk=function(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,c=o[0],a=n(c,o[1]);ti.nM(a)?r.set(c,a.left):u.set(c,a.right)}return(0,oR.separated)(r,u)}};function SW(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,c=o[0],a=o[1];n(c,a)?u.set(c,a):r.set(c,a)}return(0,oR.separated)(r,u)}}var SF=function(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=n(o,i[1]);ti.pC(c)&&r.set(o,c.value)}return r}};function SU(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];n(o,c)&&r.set(o,c)}return r}}var SP=function(n,t){return SE(n,function(n,e){return t(e)})},SA=function(n,t){return Sj(n,function(n,e){return t(e)})},SL=function(n,t){return Sq(n,function(n,e){return t(e)})},SD=function(n,t){return SK(n,function(n,e){return t(e)})},SN=function(n,t){return SG(n,function(n,e){return t(e)})},Sj=function(n,t){return(0,tr.pipe)(n,SU(t))},Sq=function(n,t){return(0,tr.pipe)(n,SF(t))},SK=function(n,t){return(0,tr.pipe)(n,SW(t))},SG=function(n,t){return(0,tr.pipe)(n,Sk(t))},SY=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var u=t.value,i=u[0],o=u[1];ti.pC(o)&&e.set(i,o.value)}return e},SB=function(n){return function(t){return SA(t,n)}},SV=function(n){return function(t){return SL(t,n)}},Sz=function(n){return function(t){return SP(t,n)}},SH=function(n){return function(t){return SE(t,n)}},S$=function(n){return function(t){return SD(t,n)}},SX=function(n){return function(t){return SN(t,n)}},SJ=function(n){for(var t,e=new Map,r=new Map,u=n.entries();!(t=u.next()).done;){var i=t.value,o=i[0],c=i[1];ti.nM(c)?e.set(o,c.left):r.set(o,c.right)}return(0,oR.separated)(e,r)},SZ="ReadonlyMap",SQ=function(n,t){var e=Tl(n,t);return{concat:function(n,t){return e(t)(n)}}},S0=function(n,t){return{concat:SQ(n,t).concat,empty:Sx}},S1=function(n,t){var e=Tp(n,t);return{concat:function(n,t){return e(t)(n)}}},S2=function(n){return function(){var t=Td(n);return{concat:function(n,e){return t(e)(n)}}}};function S5(){return{URI:SZ,_E:void 0,map:SP,mapWithIndex:SE,compact:SY,separate:SJ,filter:SA,filterMap:SL,partition:SD,partitionMap:SN,partitionMapWithIndex:SG,partitionWithIndex:SK,filterMapWithIndex:Sq,filterWithIndex:Sj}}var S7={URI:SZ,map:SP},S8=(0,tu.flap)(S7),S3=function(){return{URI:SZ,_E:void 0,map:SP,mapWithIndex:SE}},S9={URI:SZ,compact:SY,separate:SJ},S4={URI:SZ,map:SP,compact:SY,separate:SJ,filter:SA,filterMap:SL,partition:SD,partitionMap:SN},S6=function(n){var t=Tr(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},Tn=function(n){var t=Tu(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}},Tt=function(n){var t=Ti(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},Te=function(n){var t=S6(n),e=Tn(n),r=Tt(n);return{URI:SZ,_E:void 0,reduce:function(n,e,r){return(0,tr.pipe)(n,t(e,r))},foldMap:function(n){var t=e(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,tr.pipe)(n,r(t,e))}}},Tr=function(n){var t=Sd(n);return function(n,e){return function(r){for(var u=n,i=0,o=t(r);i<o.length;i++){var c=o[i];u=e(c,u,r.get(c))}return u}}},Tu=function(n){var t=Sd(n);return function(n){return function(e){return function(r){for(var u=n.empty,i=0,o=t(r);i<o.length;i++){var c=o[i];u=n.concat(u,e(c,r.get(c)))}return u}}}},Ti=function(n){var t=Sd(n);return function(n,e){return function(r){for(var u=n,i=t(r),o=i.length,c=o-1;c>=0;c--){var a=i[c];u=e(a,r.get(a),u)}return u}}},To=function(n){var t=Te(n),e=Tr(n),r=Tu(n),u=Ti(n);return{URI:SZ,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(n,t,r){return(0,tr.pipe)(n,e(t,r))},foldMapWithIndex:function(n){var t=r(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,tr.pipe)(n,u(t,e))}}},Tc=function(n){var t=Ta(n),e=Te(n);return{URI:SZ,_E:void 0,map:SP,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:t.traverse,sequence:t.sequence}},Ta=function(n){var t=To(n),e=Sd(n),r=function(n){return function(t,r){for(var u=n.of(new Map),i=e(t),o=i.length,c=0;c<o;c++)!function(e){var o=i[e],c=t.get(o);u=n.ap(n.map(u,function(n){return function(t){return n.set(o,t)}}),r(o,c))}(c);return u}};return{URI:SZ,_E:void 0,map:SP,mapWithIndex:SE,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,tr.SK)}},traverseWithIndex:r}};function Tf(n){var t=Ta(n);return{URI:SZ,_E:void 0,map:SP,compact:SY,separate:SJ,filter:SA,filterMap:SL,partition:SD,partitionMap:SN,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:SE,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,oS.wiltDefault)(t,S9),wither:(0,oS.witherDefault)(t,S9)}}var Tl=function(n,t){var e=SS(n);return function(n){return function(r){if(Sf(r))return n;if(Sf(n))return r;for(var u,i=new Map,o=r.entries();!(u=o.next()).done;){var c=u.value,a=c[0],f=c[1],l=e(a)(n);ti.pC(l)?i.set(a,t.concat(f,l.value)):i.set(a,f)}for(var p=n.entries();!(u=p.next()).done;){var d=u.value,a=d[0],f=d[1],l=e(a)(i);ti.Wi(l)&&i.set(a,f)}return i}}},Tp=function(n,t){var e=SS(n);return function(n){return function(r){if(Sf(r)||Sf(n))return Sx;for(var u,i=new Map,o=r.entries();!(u=o.next()).done;){var c=u.value,a=c[0],f=c[1],l=e(a)(n);ti.pC(l)&&i.set(a,t.concat(f,l.value))}return i}}},Td=function(n){var t=Sl(n);return function(n){return function(e){if(Sf(e))return n;if(Sf(n))return e;for(var r,u=new Map,i=e.entries();!(r=i.next()).done;){var o=r.value,c=o[0],a=o[1];t(c)(n)||u.set(c,a)}for(var f=n.entries();!(r=f.next()).done;){var l=r.value,c=l[0],a=l[1];t(c)(e)||u.set(c,a)}return u}}},Ts=Sg,Th={URI:SZ,map:SP,compact:SY,separate:SJ,filter:SA,filterMap:SL,partition:SD,partitionMap:SN},Tm=function(){return(Tm=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},Tv=Sc,Tg=Sa,Ty=Sf,Tb=Sl,T_=Sp,TI=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},TR=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function TS(n){var t=TI(n);return function(n){return function(e){for(var r=[],u=t(e),i=0;i<u.length;i++){var o=u[i];r.push(n(o,e.get(o)))}return r}}}function TT(n){return TS(n)(function(n,t){return[n,t]})}function Tx(n,t){var e=TT(n);return function(n){var r=e(n),u=r.length;return t.unfold(0,function(n){return n<u?ti.G([r[n],n+1]):ti.YP})}}var TM=function(n){var t=Tk(n);return function(n,e){var r=t(n);return function(t){var u=r(t);if(ti.Wi(u)){var i=new Map(t);return i.set(n,e),i}if(u.value[1]!==e){var i=new Map(t);return i.set(u.value[0],e),i}return t}}},TO=function(n){var t=Tk(n);return function(n){return function(e){var r=t(n,e);if(ti.pC(r)){var u=new Map(e);return u.delete(r.value[0]),u}return e}}},Tw=function(n){var t=TC(n);return function(n,e){return t(n,function(){return e})}},TC=function(n){var t=Tk(n);return function(n,e){return function(r){var u=t(n,r);if(ti.Wi(u))return ti.YP;var i=new Map(r);return i.set(u.value[0],e(u.value[1])),ti.G(i)}}};function TE(n){var t=TW(n),e=TO(n);return function(n){var r=e(n);return function(e){return(0,tr.pipe)(t(n,e),sv(function(n){return[n,r(e)]}))}}}function Tk(n){return function(t,e){if(void 0===e){var r,u=Tk(n);return function(n){return u(t,n)}}for(var i=e.entries();!(r=i.next()).done;){var o=r.value,c=o[0],a=o[1];if(n.equals(c,t))return ti.G([c,a])}return ti.YP}}var TW=SS,TF=ST,TU=SM;function TP(n,t){var e=Tk(n);return{concat:function(n,r){if(Ty(n))return r;if(Ty(r))return n;for(var u,i=new Map(n),o=r.entries();!(u=o.next()).done;){var c=u.value,a=c[0],f=c[1],l=e(a,n);ti.pC(l)?i.set(l.value[0],t.concat(l.value[1],f)):i.set(a,f)}return i},empty:new Map}}var TA=function(n,t){return new Map([[n,t]])};function TL(n,t,e){return function(r){var u=Tk(n);return e.reduce(r,new Map,function(n,e){var r=e[0],i=e[1],o=u(r,n);return ti.pC(o)?n.set(o.value[0],t.concat(o.value[1],i)):n.set(r,i),n})}}var TD=function(n,t){for(var e,r=new Map,u=n.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];r.set(o,t(o,c))}return r},TN=function(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,c=o[0],a=n(c,o[1]);ti.nM(a)?r.set(c,a.left):u.set(c,a.right)}return(0,oR.separated)(r,u)}};function Tj(n){return function(t){for(var e,r=new Map,u=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,c=o[0],a=o[1];n(c,a)?u.set(c,a):r.set(c,a)}return(0,oR.separated)(r,u)}}var Tq=function(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=n(o,i[1]);ti.pC(c)&&r.set(o,c.value)}return r}};function TK(n){return function(t){for(var e,r=new Map,u=t.entries();!(e=u.next()).done;){var i=e.value,o=i[0],c=i[1];n(o,c)&&r.set(o,c)}return r}}var TG=function(n,t){return TD(n,function(n,e){return t(e)})},TY=function(n,t){return TH(n,function(n,e){return t(e)})},TB=function(n,t){return T$(n,function(n,e){return t(e)})},TV=function(n,t){return TX(n,function(n,e){return t(e)})},Tz=function(n,t){return TJ(n,function(n,e){return t(e)})},TH=function(n,t){return(0,tr.pipe)(n,TK(t))},T$=function(n,t){return(0,tr.pipe)(n,Tq(t))},TX=function(n,t){return(0,tr.pipe)(n,Tj(t))},TJ=function(n,t){return(0,tr.pipe)(n,TN(t))},TZ=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var u=t.value,i=u[0],o=u[1];ti.pC(o)&&e.set(i,o.value)}return e},TQ=function(n){return function(t){return TY(t,n)}},T0=function(n){return function(t){return TB(t,n)}},T1=function(n){return function(t){return TG(t,n)}},T2=function(n){return function(t){return TD(t,n)}},T5=function(n){return function(t){return TV(t,n)}},T7=function(n){return function(t){return Tz(t,n)}},T8=function(n){for(var t,e=new Map,r=new Map,u=n.entries();!(t=u.next()).done;){var i=t.value,o=i[0],c=i[1];ti.nM(c)?e.set(o,c.left):r.set(o,c.right)}return(0,oR.separated)(e,r)},T3="Map",T9=function(n,t){var e=xg(n,t);return{concat:function(n,t){return e(t)(n)}}},T4=function(n,t){return{concat:T9(n,t).concat,empty:new Map}},T6=function(n,t){var e=xy(n,t);return{concat:function(n,t){return e(t)(n)}}},xn=function(n){return function(){var t=xb(n);return{concat:function(n,e){return t(e)(n)}}}};function xt(){return{URI:T3,_E:void 0,map:TG,mapWithIndex:TD,compact:TZ,separate:T8,filter:TY,filterMap:TB,partition:TV,partitionMap:Tz,partitionMapWithIndex:TJ,partitionWithIndex:TX,filterMapWithIndex:T$,filterWithIndex:TH}}function xe(n){var t=xp(n);return{URI:T3,_E:void 0,map:TG,compact:TZ,separate:T8,filter:TY,filterMap:TB,partition:TV,partitionMap:Tz,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:TD,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,oS.wiltDefault)(t,xh),wither:(0,oS.witherDefault)(t,xh)}}var xr=S6,xu=Tn,xi=Tt,xo=function(n){return Tm(Tm({},Te(n)),{URI:T3})},xc=Tr,xa=Tu,xf=Ti,xl=function(n){return Tm(Tm({},To(n)),{URI:T3})},xp=function(n){var t=xl(n),e=TI(n),r=function(n){return function(t,r){for(var u=n.of(new Map),i=e(t),o=i.length,c=0;c<o;c++)!function(e){var o=i[e],c=t.get(o);u=n.ap(n.map(u,function(n){return function(t){return n.set(o,t)}}),r(o,c))}(c);return u}};return{URI:T3,_E:void 0,map:TG,mapWithIndex:TD,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},sequence:function(n){var t=r(n);return function(n){return t(n,function(n,t){return t})}},traverseWithIndex:r}},xd={URI:T3,map:TG},xs=(0,tu.flap)(xd),xh={URI:T3,compact:TZ,separate:T8},xm={URI:T3,map:TG,compact:TZ,separate:T8,filter:TY,filterMap:TB,partition:TV,partitionMap:Tz},xv=function(n){return new Map(n)},xg=function(n,t){var e=Tl(n,t);return function(n){return function(t){return Ty(t)?xv(n):Ty(n)?xv(t):e(n)(t)}}},xy=function(n,t){var e=Tp(n,t);return function(n){return function(t){return Ty(t)||Ty(n)?new Map:e(n)(t)}}},xb=function(n){var t=Td(n);return function(n){return function(e){return Ty(e)?xv(n):Ty(n)?xv(e):t(n)(e)}}},x_=new Map,xI=TM,xR=xm,xS=function(n){return{concat:t2(n).concat,empty:n.top}},xT=function(n){return{concat:t5(n).concat,empty:n.bottom}},xx=function(n){return{concat:t8(n).concat,empty:n.empty}},xM=function(n){var t={};for(var e in n)ti.e$.call(n,e)&&(t[e]=n[e].empty);return{concat:t3(n).concat,empty:t}},xO=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:t9.apply(a,n).concat,empty:n.map(function(n){return n.empty})}},xw=function(n){return et(n)(n.empty)},xC={concat:ee.concat,empty:void 0},xE=xO,xk=xM,xW=xx,xF=xT,xU=xS,xP=xw,xA={concat:es.concat,empty:!0},xL={concat:eh.concat,empty:!1},xD=tr.getMonoid,xN=function(){return xx(mZ())},xj={concat:ev.concat,empty:""},xq={concat:eg.concat,empty:0},xK={concat:ey.concat,empty:1},xG=function(n,t,e){return function(r){return -1===r?n():0===r?t():e()}},xY=xG,xB=function(n){return -1===n?1:1===n?-1:0},xV={equals:function(n,t){return n===t}},xz={concat:function(n,t){return 0!==n?n:t}},xH={concat:xz.concat,empty:0},x$=function(n){return n<=-1?-1:n>=1?1:0},xX=xB,xJ=xz,xZ=xV,xQ=xH;function x0(n){return function(t){return function(e){return n.map(e,t)}}}function x1(n){return function(t){return function(e){return n.contramap(e,t)}}}function x2(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function x5(n){return function(t){return function(e){return n.ap(e,t)}}}function x7(n){return function(t){return function(e){return n.chain(e,t)}}}function x8(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function x3(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function x9(n){return function(t){return function(e){return n.extend(e,t)}}}function x4(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function x6(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function Mn(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function Mt(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function Me(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function Mr(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function Mu(n){return function(t){return function(e){return n.alt(e,t)}}}function Mi(n){return function(t){return function(e){return n.filter(e,t)}}}function Mo(n){return function(t){return function(e){return n.filterMap(e,t)}}}function Mc(n){return function(t){return function(e){return n.partition(e,t)}}}function Ma(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function Mf(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function Ml(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function Mp(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function Md(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function Ms(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function Mh(n){return function(t){return function(e){return n.compose(e,t)}}}function Mm(n){var t={};return"function"==typeof n.map&&(t.map=x0(n)),"function"==typeof n.contramap&&(t.contramap=x1(n)),"function"==typeof n.mapWithIndex&&(t.mapWithIndex=x2(n)),"function"==typeof n.ap&&(t.ap=x5(n),t.apFirst=(0,n9.apFirst)(n),t.apSecond=(0,n9.apSecond)(n)),"function"==typeof n.chain&&(t.chain=x7(n),t.chainFirst=(0,tt.chainFirst)(n),t.flatten=t.chain(tr.identity)),"function"==typeof n.bimap&&(t.bimap=x8(n),t.mapLeft=x3(n)),"function"==typeof n.extend&&(t.extend=x9(n),t.duplicate=t.extend(tr.identity)),"function"==typeof n.reduce&&(t.reduce=x4(n),t.foldMap=x6(n),t.reduceRight=Mn(n)),"function"==typeof n.reduceWithIndex&&(t.reduceWithIndex=Mt(n),t.foldMapWithIndex=Me(n),t.reduceRightWithIndex=Mr(n)),"function"==typeof n.alt&&(t.alt=Mu(n)),"function"==typeof n.compact&&(t.compact=n.compact,t.separate=n.separate),"function"==typeof n.filter&&(t.filter=Mi(n),t.filterMap=Mo(n),t.partition=Mc(n),t.partitionMap=Ma(n)),"function"==typeof n.filterWithIndex&&(t.filterWithIndex=Mf(n),t.filterMapWithIndex=Ml(n),t.partitionWithIndex=Mp(n),t.partitionMapWithIndex=Md(n)),"function"==typeof n.promap&&(t.promap=Ms(n)),"function"==typeof n.compose&&(t.compose=Mh(n)),"function"==typeof n.throwError&&(t.fromOption=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},t.fromEither=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},t.fromPredicate=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},t.filterOrElse=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}}),t}var Mv=tr.pipe,Mg=function(){return Math.random()};function My(n,t){return(0,tr.pipe)(Mg,y5(function(e){return Math.floor((t-n+1)*e+n)}))}function Mb(n,t){return(0,tr.pipe)(Mg,y5(function(e){return(t-n)*e+n}))}var M_=(0,tr.pipe)(Mg,y5(function(n){return n<.5})),MI=function(n){return(0,tr.pipe)(My(0,n.length-1),y5(function(t){return n[t]}))},MR=mT(vq),MS=mS(vq),MT=mx(vN),Mx=mM(vN),MM=vO,MO=MT,Mw=mj(vN),MC=Mw,ME=mq(v$),Mk=ME,MW=ME,MF=MW,MU=mK(v$),MP=MU,MA=mH(vN),ML=vg,MD=vy,MN=MD,Mj=mG(v$),Mq=Mj,MK=(0,tr.dual)(2,mB(v$)),MG=mV(v$),MY=mz(vN),MB=function(n,t){return(0,tr.pipe)(n,MH(t))},MV=function(n,t){return(0,tr.pipe)(n,MQ(t))},Mz=function(n,t){return(0,tr.pipe)(n,M8(t))},MH=mE(vN),M$=(0,tr.dual)(3,mA(vN)),MX=M$,MJ=(0,tr.dual)(2,mD(vN)),MZ=MJ,MQ=mk(vK),M0=MQ,M1=MS,M2=(0,tr.dual)(2,mF(v$)),M5=M2(tr.identity),M7=M5,M8=mU(v$),M3=M8,M9=MR,M4="ReaderEither",M6=function(n){var t=mR.getCompactable(n);return{URI:M4,_E:void 0,compact:hB(vN,t),separate:hV(vN,t,mR.Functor)}};function On(n){var t=mR.getFilterable(n),e=M6(n),r=m2(vN,t),u=m5(vN,t),i=m7(vN,t),o=m8(vN,t);return{URI:M4,_E:void 0,map:MB,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,tr.pipe)(n,r(t))},filterMap:function(n,t){return(0,tr.pipe)(n,u(t))},partition:function(n,t){return(0,tr.pipe)(n,i(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,o(t))}}}function Ot(n){var t=(0,n9.ap)(vK,mR.getApplicativeValidation(n));return{URI:M4,_E:void 0,map:MB,ap:function(n,e){return(0,tr.pipe)(n,t(e))},of:M1}}function Oe(n){var t=mN(v$,n);return{URI:M4,_E:void 0,map:MB,alt:function(n,e){return(0,tr.pipe)(n,t(e))}}}var Or={URI:M4,map:MB},Ou=(0,tr.dual)(2,(0,tu.as)(Or)),Oi=(0,tu.asUnit)(Or),Oo=(0,tu.flap)(Or),Oc={URI:M4,of:M1},Oa={URI:M4,map:MB,ap:MV},Of=(0,n9.apFirst)(Oa),Ol=Of,Op=(0,n9.apSecond)(Oa),Od=Op,Os={URI:M4,map:MB,ap:MV,of:M1},Oh={URI:M4,map:MB,ap:MV,chain:M2},Om={URI:M4,map:MB,ap:MV,of:M1,chain:M2},Ov={URI:M4,fromEither:MM},Og={URI:M4,fromReader:MO},Oy=(0,tr.dual)(2,tt.tap(Oh)),Ob=(0,tr.dual)(2,(0,te.tapEither)(Ov,Oh)),O_=(0,tr.dual)(2,gv(Og,Oh)),OI={URI:M4,bimap:M$,mapLeft:MJ},OR={URI:M4,map:MB,alt:Mz},OS=gp(Og),OT=gd(Og),Ox=gs(Og),OM=O_,OO=O_,Ow={URI:M4,map:MB,ap:MV,of:M1,chain:M2,throwError:M9},OC=(0,te.fromOption)(Ov),OE=(0,te.fromOptionK)(Ov),Ok=(0,te.chainOptionK)(Ov,Oh),OW=Ok,OF={fromEither:Ov.fromEither},OU={fromReader:Og.fromReader},OP=ti.uL(OF),OA=ti.WE(OF),OL={flatMap:M2},OD=ti.ny(OF,OL),ON=ti.hU(OF,OL),Oj=ti.iu(OF,OL),Oq=ti.on(OU,OL),OK=Oj,OG=Oj,OY=Ob,OB=Ob,OV=Oq,Oz=Oq,OH=(0,te.fromPredicate)(Ov),O$=(0,te.filterOrElse)(Ov,Oh),OX=O$,OJ=(0,te.fromEitherK)(Ov),OZ=M1(ti.F4),OQ=(0,tu.bindTo)(Or),O0=(0,tu.let)(Or),O1=tt.bind(Oh),O2=O1,O5=(0,n9.apS)(Oa),O7=O5,O8=M1(ti.Xl),O3=function(n){return(0,tr.flow)(v6(n),vT(mR.traverseReadonlyNonEmptyArrayWithIndex(tr.SK)))},O9=function(n){var t=O3(n);return function(n){return ti.Od(n)?t(n):O8}},O4=O9,O6=function(n){return O9(function(t,e){return n(e)})},wn=O6(tr.identity),wt=M2,we=M2,wr=Oy,wu=Oy,wi=MK,wo=MK,wc={URI:M4,bimap:M$,mapLeft:MJ,map:MB,of:M1,ap:MV,chain:M2,alt:Mz,throwError:MR},wa=(0,n9.getApplySemigroup)(Oa),wf=(0,tn.getApplicativeMonoid)(Os),wl=function(n){return(0,n9.getApplySemigroup)(vK)(mR.getSemigroup(n))};function wp(n){var t=Ot(n),e=Oe(n);return{URI:M4,_E:void 0,map:MB,ap:t.ap,of:M1,chain:M2,bimap:M$,mapLeft:MJ,alt:e.alt,throwError:M9}}function wd(n){return function(t){return function(){return n.of(t)}}}function ws(n){return function(t){return function(e){return function(r){return n.map(e(r),t)}}}}function wh(n){return function(t){return function(e){return function(r){return n.ap(e(r),t(r))}}}}function wm(n){var t=wv(n);return function(n){return function(e){return t(e,n)}}}function wv(n){return function(t,e){return function(r){return n.chain(t(r),function(n){return e(n)(r)})}}}function wg(n){return function(t){return(0,tr.flow)(t,n.of)}}function wy(n){return function(t){return(0,tr.flow)(t,n)}}function wb(n){var t=wh(n),e=ws(n),r=wm(n);return{map:function(n,t){return(0,tr.pipe)(n,e(t))},ap:function(n,e){return(0,tr.pipe)(n,t(e))},of:wd(n),chain:function(n,t){return(0,tr.pipe)(n,r(t))},ask:function(){return n.of},asks:function(t){return(0,tr.flow)(t,n.of)},local:function(n,t){return function(e){return n(t(e))}},fromReader:wg(n),fromM:function(n){return function(){return n}}}}var w_=wg(br),wI=vO,wR=vg,wS=vy,wT=wS,wx=function(n,t){return(0,tr.pipe)(n,wO(t))},wM=function(n,t){return(0,tr.pipe)(n,ww(t))},wO=ws(y6),ww=wh(bu),wC=ww,wE=wd(br),wk=(0,tr.dual)(2,wv(bf)),wW=wk(tr.identity),wF=wW,wU="ReaderIO",wP={URI:wU,map:wx},wA=(0,tr.dual)(2,(0,tu.as)(wP)),wL=(0,tu.asUnit)(wP),wD=(0,tu.flap)(wP),wN={URI:wU,of:wE},wj={URI:wU,map:wx,ap:wM},wq=(0,n9.apFirst)(wj),wK=(0,n9.apSecond)(wj),wG={URI:wU,map:wx,ap:wM,of:wE},wY={URI:wU,map:wx,ap:wM,chain:wk},wB={URI:wU,map:wx,of:wE,ap:wM,chain:wk},wV={URI:wU,map:wx,of:wE,ap:wM,chain:wk,fromIO:wI},wz={URI:wU,fromIO:wI},wH={URI:wU,fromReader:w_},w$={flatMap:wk},wX={fromIO:wz.fromIO},wJ=ti.we(wX,w$),wZ=ti.on({fromReader:w_},w$),wQ=(0,tr.dual)(2,tt.tap(wY)),w0=(0,tr.dual)(2,vh(wz,wY)),w1=(0,tr.dual)(2,gv(wH,wY)),w2=vp(wz),w5=wJ,w7=w0,w8=gp(wH),w3=gd(wH),w9=gs(wH),w4=wZ,w6=wZ,Cn=w1,Ct=w1,Ce=wE(ti.F4),Cr=(0,tu.bindTo)(wP),Cu=tt.bind(wY),Ci=Cu,Co=(0,n9.apS)(wj),Cc=Co,Ca=wE(ti.Xl),Cf=function(n){return(0,tr.flow)(v6(n),vT(bI(tr.SK)))},Cl=function(n){var t=Cf(n);return function(n){return ti.Od(n)?t(n):Ca}},Cp=Cl,Cd=function(n){return Cl(function(t,e){return n(e)})},Cs=Cd(tr.identity),Ch=wk,Cm=wk,Cv=wQ,Cg=wQ,Cy=function(n){return function(){return Promise.resolve().then(n)}};function Cb(n){return function(t){return function(){return new Promise(function(e){setTimeout(function(){Promise.resolve().then(t).then(e)},n)})}}}var C_=function(n,t){return(0,tr.pipe)(n,CS(t))},CI=function(n,t){return(0,tr.pipe)(n,CT(t))},CR=function(n,t){return CM(n,function(n){return(0,tr.pipe)(t,CS(n))})},CS=function(n){return function(t){return function(){return Promise.resolve().then(t).then(n)}}},CT=function(n){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(n)]).then(function(n){return(0,n[0])(n[1])})}}},Cx=function(n){return function(){return Promise.resolve(n)}},CM=(0,tr.dual)(2,function(n,t){return function(){return Promise.resolve().then(n).then(function(n){return t(n)()})}}),CO=CM(tr.identity),Cw="Task";function CC(){return{concat:function(n,t){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(t)])}},empty:C1}}var CE={URI:Cw,map:C_},Ck=(0,tr.dual)(2,(0,tu.as)(CE)),CW=(0,tu.asUnit)(CE),CF=(0,tu.flap)(CE),CU={URI:Cw,of:Cx},CP={URI:Cw,map:C_,ap:CI},CA=(0,n9.apFirst)(CP),CL=(0,n9.apSecond)(CP),CD={URI:Cw,map:C_,ap:CI,of:Cx},CN={URI:Cw,map:C_,ap:CR},Cj={URI:Cw,map:C_,ap:CR,of:Cx},Cq={URI:Cw,map:C_,ap:CI,chain:CM},CK={URI:Cw,map:C_,of:Cx,ap:CI,chain:CM},CG={URI:Cw,map:C_,of:Cx,ap:CI,chain:CM,fromIO:Cy},CY=tr.identity,CB={URI:Cw,map:C_,of:Cx,ap:CI,chain:CM,fromIO:Cy,fromTask:CY},CV={URI:Cw,fromIO:Cy},Cz={fromIO:CV.fromIO},CH=ti.we(Cz,{flatMap:CM}),C$=(0,tr.dual)(2,tt.tap(Cq)),CX=(0,tr.dual)(2,vh(CV,Cq)),CJ=vp(CV),CZ=CH,CQ=CX,C0={URI:Cw,fromIO:Cy,fromTask:CY},C1=function(){return new Promise(function(n){})},C2=Cx(ti.F4),C5=(0,tu.bindTo)(CE),C7=(0,tu.let)(CE),C8=tt.bind(Cq),C3=(0,n9.apS)(CP),C9=Cx(ti.Xl),C4=function(n){return function(t){return function(){return Promise.all(t.map(function(t,e){return Promise.resolve().then(function(){return n(e,t)()})}))}}},C6=function(n){var t=C4(n);return function(n){return ti.Od(n)?t(n):C9}},En=function(n){return function(t){return function(){return ti.Gb(t).reduce(function(t,e,r){return t.then(function(t){return Promise.resolve().then(n(r+1,e)).then(function(n){return t.push(n),t})})},Promise.resolve().then(n(0,ti.YM(t))).then(ti.ri))}}},Et=function(n){var t=En(n);return function(n){return ti.Od(n)?t(n):C9}},Ee=C6,Er=function(n){return C6(function(t,e){return n(e)})},Eu=Er(tr.identity),Ei=Et,Eo=function(n){return Et(function(t,e){return n(e)})},Ec=Eo(tr.identity),Ea=CM,Ef=C$,El={URI:Cw,map:C_,of:Cx,ap:CI,chain:CM,fromIO:Cy,fromTask:CY},Ep={URI:Cw,map:C_,of:Cx,ap:CR,chain:CM,fromIO:Cy,fromTask:CY},Ed=(0,n9.getApplySemigroup)(CN),Es=(0,tn.getApplicativeMonoid)(Cj),Eh=wg(CU),Em=vO,Ev=(0,tr.flow)(Cy,Em),Eg=vT(Cy),Ey=vg,Eb=vy,E_=Eb,EI=function(n,t){return(0,tr.pipe)(n,ET(t))},ER=function(n,t){return(0,tr.pipe)(n,Ex(t))},ES=function(n,t){return Ew(n,function(n){return(0,tr.pipe)(t,ET(n))})},ET=ws(CE),Ex=wh(CP),EM=Ex,EO=wd(CU),Ew=(0,tr.dual)(2,wv(CK)),EC=Ew(tr.identity),EE=EC,Ek="ReaderTask",EW={URI:Ek,map:EI},EF=(0,tr.dual)(2,(0,tu.as)(EW)),EU=(0,tu.asUnit)(EW),EP=(0,tu.flap)(EW),EA={URI:Ek,of:EO},EL={URI:Ek,map:EI,ap:ER},ED=(0,n9.apFirst)(EL),EN=(0,n9.apSecond)(EL),Ej={URI:Ek,map:EI,ap:ER,of:EO},Eq={URI:Ek,map:EI,ap:ES},EK={URI:Ek,map:EI,ap:ES,of:EO},EG={URI:Ek,map:EI,ap:ER,chain:Ew},EY={URI:Ek,map:EI,of:EO,ap:ER,chain:Ew},EB={URI:Ek,map:EI,of:EO,ap:ER,chain:Ew,fromIO:Ev},EV={URI:Ek,map:EI,of:EO,ap:ER,chain:Ew,fromIO:Ev,fromTask:Em},Ez={URI:Ek,fromIO:Ev},EH={URI:Ek,fromIO:Ev,fromTask:Em},E$={URI:Ek,fromReader:Eh},EX={flatMap:Ew},EJ={fromIO:Ez.fromIO},EZ=ti.we(EJ,EX),EQ=ti.D9({fromTask:Em},EX),E0=ti.on({fromReader:Eh},EX),E1=(0,tr.dual)(2,function(n,t){return Ew(n,kc(t))}),E2=(0,tr.dual)(2,tt.tap(EG)),E5=(0,tr.dual)(2,vh(Ez,EG)),E7=(0,tr.dual)(2,gv(E$,EG)),E8=(0,tr.dual)(2,yt(EH,EG)),E3=(0,tr.dual)(2,function(n,t){return E2(n,kc(t))}),E9=vp(Ez),E4=EZ,E6=E5,kn=gp(E$),kt=gd(E$),ke=gs(E$),kr=E0,ku=E0,ki=E7,ko=E7,kc=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Eg(n.apply(void 0,t))}},ka=E1,kf=E1,kl=E3,kp=E3,kd=g4(EH),ks=EQ,kh=E8,km=EO(ti.F4),kv=(0,tu.bindTo)(EW),kg=(0,tu.let)(EW),ky=tt.bind(EG),kb=ky,k_=(0,n9.apS)(EL),kI=k_,kR=EO(ti.Xl),kS=function(n){return(0,tr.flow)(v6(n),vT(C4(tr.SK)))},kT=function(n){var t=kS(n);return function(n){return ti.Od(n)?t(n):kR}},kx=function(n){return(0,tr.flow)(v6(n),vT(En(tr.SK)))},kM=function(n){var t=kx(n);return function(n){return ti.Od(n)?t(n):kR}},kO=kT,kw=function(n){return kT(function(t,e){return n(e)})},kC=kw(tr.identity),kE=kM,kk=function(n){return kM(function(t,e){return n(e)})},kW=Ew,kF=Ew,kU=E2,kP=E2,kA=kk(tr.identity),kL={URI:Ek,map:EI,of:EO,ap:ER,chain:Ew,fromIO:Ev,fromTask:Em},kD={URI:Ek,map:EI,of:EO,ap:ES,chain:Ew,fromIO:Ev,fromTask:Em},kN=(0,n9.getApplySemigroup)(Eq),kj=(0,tn.getApplicativeMonoid)(EK);function kq(n,t){return n(t)()}var kK=function(n,t){var e,r,u,i,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(e=1,r&&(u=2&c[0]?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[2&c[0],u.value]),c[0]){case 0:case 1:u=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!u||c[1]>u[0]&&c[1]<u[3])){o.label=c[1];break}if(6===c[0]&&o.label<u[1]){o.label=u[1],u=c;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(c);break}u[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(n,o)}catch(n){c=[6,n],r=0}finally{e=u=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}},kG=mT(CU),kY=mS(CU),kB=mx(CE),kV=mM(CE),kz=(0,tr.flow)(Cy,kB),kH=(0,tr.flow)(Cy,kV),k$=kz,kX=kB,kJ=Cx,kZ=Cy,kQ=function(n){return CS(mR.fromOption(n))},k0=mj(CE),k1=k0,k2=mq(CK),k5=k2,k7=k2,k8=k7,k3=mK(CK),k9=k3,k4=function(n,t){return function(){var e,r,u,i;return e=void 0,r=void 0,u=void 0,i=function(){var e;return kK(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n().then(ti.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,ti.t$(t(e))];case 3:return[2]}})},new(u||(u=Promise))(function(n,t){function o(n){try{a(i.next(n))}catch(n){t(n)}}function c(n){try{a(i.throw(n))}catch(n){t(n)}}function a(t){var e;t.done?n(t.value):((e=t.value)instanceof u?e:new u(function(n){n(e)})).then(o,c)}a((i=i.apply(e,r||[])).next())})}},k6=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return k4(function(){return n.apply(void 0,e)},t)}},Wn=mH(CE),Wt=mO(CU),We=mw(CU),Wr=mC(CK),Wu=mG(CK),Wi=Wu,Wo=(0,tr.dual)(2,mB(CK)),Wc=function(n){return Wo(Fx(n))},Wa=function(n){return Wo(Fw(n))},Wf=mV(CK),Wl=mz(CE),Wp=function(n){var t=kQ(n);return function(n){return(0,tr.flow)(n,t)}},Wd=function(n){return function(t){return function(e){return WM(e,Wp(n)(t))}}},Ws=Wd,Wh=function(n){return(0,tr.flow)(n,kZ)},Wm=function(n,t){return(0,tr.pipe)(n,Wb(t))},Wv=function(n,t){return(0,tr.pipe)(n,WT(t))},Wg=function(n,t){return WM(n,function(n){return(0,tr.pipe)(t,Wb(n))})},Wy=function(n,t){return(0,tr.pipe)(n,WC(t))},Wb=mE(CE),W_=(0,tr.dual)(3,mA(CE)),WI=W_,WR=(0,tr.dual)(2,mD(CE)),WS=WR,WT=mk(CP),Wx=WT,WM=(0,tr.dual)(2,mF(CK)),WO=WM(tr.identity),Ww=WO,WC=mU(CK),WE=WC,Wk=kY,WW=kG,WF="TaskEither";function WU(n,t){var e=(0,n9.ap)(n,mR.getApplicativeValidation(t));return{URI:WF,_E:void 0,map:Wm,ap:function(n,t){return(0,tr.pipe)(n,e(t))},of:Wk}}function WP(n){var t=mN(CK,n);return{URI:WF,_E:void 0,map:Wm,alt:function(n,e){return(0,tr.pipe)(n,t(e))}}}var WA=function(n){var t=mR.getCompactable(n);return{URI:WF,_E:void 0,compact:hB(CE,t),separate:hV(CE,t,mR.Functor)}};function WL(n){var t=mR.getFilterable(n),e=WA(n),r=m2(CE,t),u=m5(CE,t),i=m7(CE,t),o=m8(CE,t);return{URI:WF,_E:void 0,map:Wm,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,tr.pipe)(n,r(t))},filterMap:function(n,t){return(0,tr.pipe)(n,u(t))},partition:function(n,t){return(0,tr.pipe)(n,i(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,o(t))}}}var WD={URI:WF,map:Wm},WN=(0,tr.dual)(2,(0,tu.as)(WD)),Wj=(0,tu.asUnit)(WD),Wq=(0,tu.flap)(WD),WK={URI:WF,of:Wk},WG={URI:WF,map:Wm,ap:Wv},WY=(0,n9.apFirst)(WG),WB=WY,WV=(0,n9.apSecond)(WG),Wz=WV,WH={URI:WF,map:Wm,ap:Wv,of:Wk},W$={URI:WF,map:Wm,ap:Wg},WX={URI:WF,map:Wm,ap:Wg,of:Wk},WJ={URI:WF,map:Wm,ap:Wv,chain:WM},WZ={URI:WF,map:Wm,ap:Wv,chain:WM,of:Wk},WQ={URI:WF,map:Wm,ap:Wv,chain:WM,of:Wk,fromIO:k$},W0={URI:WF,map:Wm,ap:Wv,chain:WM,of:Wk,fromIO:k$,fromTask:kX},W1={URI:WF,map:Wm,ap:Wv,chain:WM,of:Wk,throwError:WW},W2={URI:WF,fromEither:kJ},W5={URI:WF,fromIO:k$},W7={URI:WF,fromIO:k$,fromTask:kX},W8=(0,tr.dual)(2,tt.tap(WJ)),W3=(0,tr.dual)(2,(0,te.tapEither)(W2,WJ)),W9=(0,tr.dual)(2,vh(W5,WJ)),W4=(0,tr.dual)(2,yt(W7,WJ)),W6={URI:WF,bimap:W_,mapLeft:WR},Fn={URI:WF,map:Wm,alt:Wy},Ft=(0,te.fromOption)(W2),Fe=(0,te.fromOptionK)(W2),Fr=(0,te.chainOptionK)(W2,WJ),Fu=Fr,Fi={fromEither:W2.fromEither},Fo=ti.uL(Fi),Fc=ti.WE(Fi),Fa={flatMap:WM},Ff={fromIO:W5.fromIO},Fl=ti.ny(Fi,Fa),Fp=ti.hU(Fi,Fa),Fd=ti.iu(Fi,Fa),Fs=ti.we(Ff,Fa),Fh=ti.D9({fromTask:kX},Fa),Fm=(0,tr.dual)(2,function(n,t){return WM(n,Wh(t))}),Fv=(0,tr.dual)(3,function(n,t,e){return WM(n,function(n){return kQ(function(){return e(n)})(t(n))})}),Fg=Fd,Fy=Fd,Fb=W3,F_=W3,FI=(0,te.fromPredicate)(W2),FR=(0,te.filterOrElse)(W2,WJ),FS=FR,FT=(0,te.fromEitherK)(W2),Fx=vp(W5),FM=Fs,FO=W9,Fw=g4(W7),FC=Fh,FE=W4,Fk=Fm,FW=Fm;function FF(n){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(e){n.apply(null,t.concat(function(n,t){return null!=n?e(ti.t$(n)):e(ti.F2(t))}))})}}}var FU=function(n,t,e){return FP(n,t,e)},FP=function(n,t,e){return WM(n,function(n){return CM(t(n),function(t){return WM(e(n,t),function(){return Cx(t)})})})},FA=Wk(ti.F4),FL=(0,tu.bindTo)(WD),FD=(0,tu.let)(WD),FN=tt.bind(WJ),Fj=FN,Fq=(0,n9.apS)(WG),FK=Fq,FG=Wk(ti.Xl),FY=function(n){return(0,tr.flow)(C4(n),CS(mR.traverseReadonlyNonEmptyArrayWithIndex(tr.SK)))},FB=function(n){var t=FY(n);return function(n){return ti.Od(n)?t(n):FG}},FV=function(n){return function(t){return function(){return ti.Gb(t).reduce(function(t,e,r){return t.then(function(u){return ti.nM(u)?t:n(r+1,e)().then(function(n){return ti.nM(n)?n:(u.right.push(n.right),u)})})},n(0,ti.YM(t))().then(mR.map(ti.ri)))}}},Fz=function(n){var t=FV(n);return function(n){return ti.Od(n)?t(n):FG}},FH=FB,F$=function(n){return FB(function(t,e){return n(e)})},FX=F$(tr.identity),FJ=Fz,FZ=function(n){return Fz(function(t,e){return n(e)})},FQ=FZ(tr.identity),F0=WM,F1=WM,F2=W8,F5=W8,F7=Wo,F8=Wo,F3={URI:WF,bimap:W_,mapLeft:WR,map:Wm,of:Wk,ap:Wv,chain:WM,alt:Wy,fromIO:k$,fromTask:kX,throwError:WW},F9={URI:WF,bimap:W_,mapLeft:WR,map:Wm,of:Wk,ap:Wg,chain:WM,alt:Wy,fromIO:k$,fromTask:kX,throwError:WW},F4=(0,n9.getApplySemigroup)(W$),F6=(0,tn.getApplicativeMonoid)(WX),Un=function(n){return(0,n9.getApplySemigroup)(CN)(mR.getSemigroup(n))};function Ut(n){var t=WU(CD,n),e=WP(n);return{URI:WF,_E:void 0,map:Wm,ap:t.ap,of:Wk,chain:WM,bimap:W_,mapLeft:WR,alt:e.alt,fromIO:k$,fromTask:kX,throwError:WW}}var Ue=vO,Ur=mT(EA),Uu=mS(EA),Ui=(0,tr.flow)(kB,Ue),Uo=(0,tr.flow)(kV,Ue),Uc=function(n){return(0,tr.flow)(n,kY)},Ua=function(n){return(0,tr.flow)(n,kG)},Uf=mx(EW),Ul=mM(EW),Up=(0,tr.flow)(kz,Ue),Ud=(0,tr.flow)(kH,Ue),Us=function(n){return(0,tr.flow)(n,kz)},Uh=function(n){return(0,tr.flow)(n,kH)},Um=EO,Uv=Uc,Ug=Up,Uy=Ui,Ub=(0,tr.flow)(kZ,Ue),U_=function(n){return(0,tr.flow)(n,kJ)},UI=mj(EW),UR=UI,US=mq(EG),UT=US,Ux=US,UM=Ux,UO=mK(EY),Uw=UO,UC=mH(EW),UE=mO(EA),Uk=mw(EA),UW=mC(EY),UF=vg,UU=vy,UP=UU,UA=mG(EY),UL=UA,UD=(0,tr.dual)(2,mB(EY)),UN=mV(EY),Uj=mz(EW),Uq=function(n){return(0,tr.flow)(n,Ub)},UK=function(n){return(0,tr.flow)(n,Ue)},UG=function(n){return(0,tr.flow)(n,U_)},UY=function(n,t){return(0,tr.pipe)(n,UH(t))},UB=function(n,t){return(0,tr.pipe)(n,UQ(t))},UV=function(n,t){return U2(n,function(n){return(0,tr.pipe)(t,UH(n))})},Uz=function(n,t){return(0,tr.pipe)(n,U8(t))},UH=mE(EW),U$=(0,tr.dual)(3,mA(EW)),UX=U$,UJ=(0,tr.dual)(2,mD(EW)),UZ=UJ,UQ=mk(EL),U0=UQ,U1=Uu,U2=(0,tr.dual)(2,mF(EY)),U5=U2(tr.identity),U7=U5,U8=mU(EY),U3=U8,U9=Ur,U4="ReaderTaskEither",U6=function(n){var t=mR.getCompactable(n);return{URI:U4,_E:void 0,compact:hB(EW,t),separate:hV(EW,t,mR.Functor)}};function Pn(n){var t=mR.getFilterable(n),e=U6(n),r=m2(EW,t),u=m5(EW,t),i=m7(EW,t),o=m8(EW,t);return{URI:U4,_E:void 0,map:UY,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,tr.pipe)(n,r(t))},filterMap:function(n,t){return(0,tr.pipe)(n,u(t))},partition:function(n,t){return(0,tr.pipe)(n,i(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,o(t))}}}function Pt(n,t){var e=(0,n9.ap)(vK,WU(n,t));return{URI:U4,_E:void 0,map:UY,ap:function(n,t){return(0,tr.pipe)(n,e(t))},of:U1}}function Pe(n){var t=mN(EY,n);return{URI:U4,_E:void 0,map:UY,alt:function(n,e){return(0,tr.pipe)(n,t(e))}}}var Pr={URI:U4,map:UY},Pu=(0,tr.dual)(2,(0,tu.as)(Pr)),Pi=(0,tu.asUnit)(Pr),Po=(0,tu.flap)(Pr),Pc={URI:U4,of:U1},Pa={URI:U4,map:UY,ap:UB},Pf=(0,n9.apFirst)(Pa),Pl=Pf,Pp=(0,n9.apSecond)(Pa),Pd=Pp,Ps={URI:U4,map:UY,ap:UB,of:U1},Ph={URI:U4,map:UY,ap:UV},Pm={URI:U4,map:UY,ap:UV,of:U1},Pv={URI:U4,map:UY,ap:UB,chain:U2},Pg={URI:U4,map:UY,ap:UB,chain:U2,of:U1},Py={URI:U4,map:UY,ap:UB,chain:U2,of:U1,fromIO:Ug},Pb={URI:U4,map:UY,ap:UB,chain:U2,of:U1,fromIO:Ug,fromTask:Uy},P_={URI:U4,map:UY,ap:UB,chain:U2,of:U1,throwError:U9},PI={URI:U4,fromEither:Um},PR={URI:U4,fromIO:Ug},PS={URI:U4,fromIO:Ug,fromTask:Uy},PT={URI:U4,fromReader:Uv},Px=(0,tr.dual)(2,tt.tap(Pv)),PM=(0,tr.dual)(2,(0,te.tapEither)(PI,Pv)),PO=(0,tr.dual)(2,vh(PR,Pv)),Pw=(0,tr.dual)(2,yt(PS,Pv)),PC=(0,tr.dual)(2,gv(PT,Pv)),PE=(0,tr.dual)(2,function(n,t){return Px(n,UG(t))}),Pk=(0,tr.dual)(2,function(n,t){return Px(n,UK(t))}),PW=(0,tr.dual)(2,function(n,t){return Px(n,PB(t))}),PF=(0,tr.dual)(2,function(n,t){return Px(n,PH(t))}),PU={URI:U4,bimap:U$,mapLeft:UJ},PP={URI:U4,map:UY,alt:Uz},PA=gp(PT),PL=gd(PT),PD=gs(PT),PN=PC,Pj=PC,Pq=PE,PK=PE,PG=Pk,PY=Pk,PB=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Uf(n.apply(void 0,t))}},PV=PW,Pz=PW,PH=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Us(n.apply(void 0,t))}},P$=PF,PX=PF,PJ=(0,te.fromOption)(PI),PZ=(0,te.fromOptionK)(PI),PQ=(0,te.chainOptionK)(PI,Pv),P0=PQ,P1={fromEither:PI.fromEither},P2=ti.uL(P1),P5=ti.WE(P1),P7={flatMap:U2},P8=ti.ny(P1,P7),P3=ti.hU(P1,P7),P9=ti.iu(P1,P7),P4=(0,tr.dual)(2,function(n,t){return U2(n,UK(t))}),P6=(0,tr.dual)(2,function(n,t){return U2(n,PB(t))}),An=ti.we({fromIO:Ug},P7),At=ti.D9({fromTask:Uy},P7),Ae=ti.on({fromReader:Uv},P7),Ar=(0,tr.dual)(2,function(n,t){return U2(n,PH(t))}),Au=(0,tr.dual)(2,function(n,t){return U2(n,Uq(t))}),Ai=(0,tr.dual)(2,function(n,t){return U2(n,UG(t))}),Ao=P9,Ac=P9,Aa=PM,Af=PM,Al=P4,Ap=P4,Ad=P6,As=P6,Ah=(0,te.fromPredicate)(PI),Am=(0,te.filterOrElse)(PI,Pv),Av=Am,Ag=(0,te.fromEitherK)(PI),Ay=vp(PR),Ab=An,A_=PO,AI=g4(PS),AR=At,AS=Pw,AT=Ae,Ax=Ae,AM=Ar,AO=Ar,Aw=Au,AC=Au,AE=Ai,Ak=Ai;function AW(n,t,e){return AF(n,t,e)}function AF(n,t,e){return function(r){return FP(n(r),function(n){return t(n)(r)},function(n,t){return e(n,t)(r)})}}var AU=U1(ti.F4),AP=(0,tu.bindTo)(Pr),AA=(0,tu.let)(Pr),AL=tt.bind(Pv),AD=AL,AN=(0,n9.apS)(Pa),Aj=AN,Aq=U1(ti.Xl),AK=function(n){return(0,tr.flow)(v6(n),vT(FY(tr.SK)))},AG=function(n){var t=AK(n);return function(n){return ti.Od(n)?t(n):Aq}},AY=function(n){return(0,tr.flow)(v6(n),vT(FV(tr.SK)))},AB=function(n){var t=AY(n);return function(n){return ti.Od(n)?t(n):Aq}},AV=AG,Az=function(n){return AG(function(t,e){return n(e)})},AH=Az(tr.identity),A$=AB,AX=function(n){return AB(function(t,e){return n(e)})},AJ=AX(tr.identity),AZ=U2,AQ=U2,A0=Px,A1=Px,A2=UD,A5=UD,A7={URI:U4,map:UY,of:U1,ap:UB,chain:U2,alt:Uz,bimap:U$,mapLeft:UJ,fromIO:Ug,fromTask:Uy,throwError:U9},A8={URI:U4,map:UY,of:U1,ap:UV,chain:U2,alt:Uz,bimap:U$,mapLeft:UJ,fromIO:Ug,fromTask:Uy,throwError:U9},A3=(0,n9.getApplySemigroup)(Ph),A9=(0,tn.getApplicativeMonoid)(Pm),A4=function(n){return(0,n9.getApplySemigroup)(Eq)(mR.getSemigroup(n))};function A6(n){var t=Pt(CD,n),e=Pe(n);return{URI:U4,_E:void 0,map:UY,of:U1,chain:U2,bimap:U$,mapLeft:UJ,ap:t.ap,alt:e.alt,fromIO:Ug,fromTask:Uy,throwError:U9}}function Ln(n,t){return n(t)()}var Lt={equals:function(n,t){return n===t}},Le={concat:function(n,t){return n+t}},Lr="",Lu={concat:Le.concat,empty:Lr},Li={equals:Lt.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},Lo={show:function(n){return JSON.stringify(n)}},Lc=function(n){return"string"==typeof n},La=function(n){return n.toUpperCase()},Lf=function(n){return n.toLowerCase()},Ll=function(n,t){return function(e){return e.replace(n,t)}},Lp=function(n){return n.trim()},Ld=function(n){return n.trimLeft()},Ls=function(n){return n.trimRight()},Lh=function(n,t){return function(e){return e.slice(n,t)}},Lm=function(n){return 0===n.length},Lv=function(n){return n.length},Lg=function(n){return function(t){var e=t.split(n);return eI(e)?e:[t]}},Ly=function(n,t){return function(e){return e.includes(n,t)}},Lb=function(n,t){return function(e){return e.startsWith(n,t)}},L_=function(n,t){return function(e){return e.endsWith(n,t)}},LI=function(n){return Object.assign({},n)},LR=function(n){return Object.assign({},n)},LS=function(n){return Object.keys(n).length},LT=function(n){for(var t in n)if(ti.e$.call(n,t))return!1;return!0},Lx=function(n){return function(t){return Object.keys(t).sort(n.compare)}},LM=Lx(Li);function LO(n){if("function"==typeof n)return LO(Li)(n);var t=Lx(n);return function(n){return function(e){for(var r=[],u=0,i=t(e);u<i.length;u++){var o=i[u];r.push(n(o,e[o]))}return r}}}var Lw=LO(Li)(function(n,t){return[n,t]});function LC(n){return function(t){var e=Lw(t),r=e.length;return n.unfold(0,function(n){return n<r?ti.G([e[n],n+1]):ti.YP})}}var LE=function(n,t){return function(e){if(ti.e$.call(e,n)&&e[n]===t)return e;var r=Object.assign({},e);return r[n]=t,r}},Lk=function(n,t){return ti.e$.call(t,n)};function LW(n){return function(t){if(!ti.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var LF=function(n,t){return function(e){if(!Lk(n,e))return ti.YP;if(e[n]===t)return ti.G(e);var r=Object.assign({},e);return r[n]=t,ti.G(r)}},LU=function(n,t){return function(e){if(!Lk(n,e))return ti.YP;var r=t(e[n]);if(r===e[n])return ti.G(e);var u=Object.assign({},e);return u[n]=r,ti.G(u)}};function LP(n){var t=LW(n);return function(e){var r=LL(n,e);return ti.Wi(r)?ti.YP:ti.G([r.value,t(e)])}}function LA(n){return function(t,e){if(void 0===e){var r=LA(n);return function(n){return r(n,t)}}for(var u in t)if(!ti.e$.call(e,u)||!n.equals(t[u],e[u]))return!1;return!0}}function LL(n,t){return void 0===t?function(t){return LL(n,t)}:ti.e$.call(t,n)?ti.G(t[n]):ti.YP}var LD={};function LN(n){return function(t){var e={};for(var r in t)ti.e$.call(t,r)&&(e[r]=n(r,t[r]));return e}}function Lj(n){return LN(function(t,e){return n(e)})}function Lq(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return Lq(Li).apply(void 0,n);var e=Lx(n[0]);return function(n,t){return function(r){for(var u=n,i=e(r),o=i.length,c=0;c<o;c++){var a=i[c];u=t(a,u,r[a])}return u}}}function LK(n){if("compare"in n){var t=Lx(n);return function(n){return function(e){return function(r){for(var u=n.empty,i=t(r),o=i.length,c=0;c<o;c++){var a=i[c];u=n.concat(u,e(a,r[a]))}return u}}}}return LK(Li)(n)}function LG(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return LG(Li).apply(void 0,n);var e=Lx(n[0]);return function(n,t){return function(r){for(var u=n,i=e(r),o=i.length,c=o-1;c>=0;c--){var a=i[c];u=t(a,r[a],u)}return u}}}var LY=function(n,t){var e;return(e={})[n]=t,e};function LB(n){var t=Dy(Li)(n);return function(n){return function(e){return t(e,n)}}}function LV(n){var t=Dv(Li)(n);return function(n){return function(e){return t(e,n)}}}function Lz(n){return Dg(Li)(n)}var LH=function(n){var t=LV(n);return function(e){return function(r){return n.map((0,tr.pipe)(r,t(e)),DM)}}},L$=function(n){var t=LV(n);return function(e){return function(r){return n.map((0,tr.pipe)(r,t(e)),DO)}}};function LX(n){return function(t){var e={},r={};for(var u in t)if(ti.e$.call(t,u)){var i=n(u,t[u]);switch(i._tag){case"Left":e[u]=i.left;break;case"Right":r[u]=i.right}}return(0,oR.separated)(e,r)}}function LJ(n){return function(t){var e={},r={};for(var u in t)if(ti.e$.call(t,u)){var i=t[u];n(u,i)?r[u]=i:e[u]=i}return(0,oR.separated)(e,r)}}function LZ(n){return function(t){var e={};for(var r in t)if(ti.e$.call(t,r)){var u=n(r,t[r]);ti.pC(u)&&(e[r]=u.value)}return e}}function LQ(n){return function(t){var e={},r=!1;for(var u in t)if(ti.e$.call(t,u)){var i=t[u];n(u,i)?e[u]=i:r=!0}return r?e:t}}function L0(n,t){var e=L1(n,t);return function(n){return e(n,tr.identity)}}function L1(n,t){return function(e,r){return t.reduce(e,{},function(t,e){var u=r(e),i=u[0],o=u[1];return t[i]=ti.e$.call(t,i)?n.concat(t[i],o):o,t})}}var L2=Lw,L5=function(n){for(var t={},e=0;e<n.length;e++){var r=n[e];t[r[0]]=r[1]}return t};function L7(n){return function(t){for(var e in t)if(!n(t[e]))return!1;return!0}}function L8(n){return function(t){for(var e in t)if(n(t[e]))return!0;return!1}}function L3(n){return function(t,e){if(void 0===e){var r=L3(n);return function(n){return r(t,n)}}for(var u in e)if(n.equals(e[u],t))return!0;return!1}}var L9=function(n){return function(t){return function(e){if(LT(e))return t;if(LT(t))return e;var r={};for(var u in e)Lk(u,t)?r[u]=n.concat(e[u],t[u]):r[u]=e[u];for(var u in t)Lk(u,r)||(r[u]=t[u]);return r}}},L4=function(n){return function(t){return function(e){if(LT(e)||LT(t))return LD;var r={};for(var u in e)Lk(u,t)&&(r[u]=n.concat(e[u],t[u]));return r}}},L6=function(n){return function(t){if(LT(t))return n;if(LT(n))return t;var e={};for(var r in t)Lk(r,n)||(e[r]=t[r]);for(var r in n)Lk(r,t)||(e[r]=n[r]);return e}},Dn=function(n,t){return(0,tr.pipe)(n,Lj(t))},Dt=function(n,t){return(0,tr.pipe)(n,LN(t))},De=function(n){var t=DS(n);return function(n,e,r){return(0,tr.pipe)(n,t(e,r))}},Dr=function(n){return function(t){var e=DT(n)(t);return function(n,t){return(0,tr.pipe)(n,e(t))}}},Du=function(n){var t=Dx(n);return function(n,e,r){return(0,tr.pipe)(n,t(e,r))}},Di=function(n,t){return(0,tr.pipe)(n,Db(t))},Do=function(n,t){return(0,tr.pipe)(n,D_(t))},Dc=function(n,t){return(0,tr.pipe)(n,DI(t))},Da=function(n,t){return(0,tr.pipe)(n,DR(t))},Df=function(n){var t=Lq(n);return function(n,e,r){return(0,tr.pipe)(n,t(e,r))}},Dl=function(n){var t=LK(n);return function(n){var e=t(n);return function(n,t){return(0,tr.pipe)(n,e(t))}}},Dp=function(n){var t=LG(n);return function(n,e,r){return(0,tr.pipe)(n,t(e,r))}},Dd=function(n,t){return(0,tr.pipe)(n,LX(t))},Ds=function(n,t){return(0,tr.pipe)(n,LJ(t))},Dh=function(n,t){return(0,tr.pipe)(n,LZ(t))},Dm=function(n,t){return(0,tr.pipe)(n,LQ(t))},Dv=function(n){var t=Dy(n);return function(n){var e=t(n);return function(n,t){return e(n,(0,tr.flow)(tr.SK,t))}}},Dg=function(n){var t=Dv(n);return function(n){var e=t(n);return function(n){return e(n,tr.identity)}}},Dy=function(n){return function(t){var e=Lx(n);return function(n,r){var u=e(n);if(0===u.length)return t.of(LD);for(var i=t.of({}),o=function(e){i=t.ap(t.map(i,function(n){return function(t){var r;return Object.assign({},n,((r={})[e]=t,r))}}),r(e,n[e]))},c=0;c<u.length;c++)o(u[c]);return i}}},Db=function(n){return LQ(function(t,e){return n(e)})},D_=function(n){return LZ(function(t,e){return n(e)})},DI=function(n){return LJ(function(t,e){return n(e)})},DR=function(n){return LX(function(t,e){return n(e)})};function DS(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=Lq(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return DS(Li).apply(void 0,n)}function DT(n){if("compare"in n){var t=LK(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}}return DT(Li)(n)}function Dx(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=LG(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return Dx(Li).apply(void 0,n)}var DM=function(n){var t={};for(var e in n)if(ti.e$.call(n,e)){var r=n[e];ti.pC(r)&&(t[e]=r.value)}return t},DO=function(n){var t={},e={};for(var r in n)if(ti.e$.call(n,r)){var u=n[r];ti.nM(u)?t[r]=u.left:e[r]=u.right}return(0,oR.separated)(t,e)},Dw="ReadonlyRecord";function DC(n){return"compare"in n?function(t){return{show:function(e){var r=LO(n)(function(n,e){return"".concat(JSON.stringify(n),": ").concat(t.show(e))})(e).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:DC(Li)(n)}function DE(n){var t=LA(n);return to(function(n,e){return t(n)(e)&&t(e)(n)})}function Dk(n){return{concat:function(t,e){if(LT(t))return e;if(LT(e))return t;var r=Object.assign({},t);for(var u in e)ti.e$.call(e,u)&&(r[u]=ti.e$.call(t,u)?n.concat(t[u],e[u]):e[u]);return r},empty:LD}}var DW={URI:Dw,map:Dn},DF=(0,tu.flap)(DW),DU={URI:Dw,map:Dn,mapWithIndex:Dt},DP=function(n){return{URI:Dw,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n)}},DA=function(n){return{URI:Dw,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),reduceWithIndex:Df(n),foldMapWithIndex:Dl(n),reduceRightWithIndex:Dp(n)}},DL={URI:Dw,compact:DM,separate:DO},DD={URI:Dw,map:Dn,compact:DM,separate:DO,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da},DN={URI:Dw,map:Dn,mapWithIndex:Dt,compact:DM,separate:DO,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,filterMapWithIndex:Dh,filterWithIndex:Dm,partitionMapWithIndex:Dd,partitionWithIndex:Ds},Dj=function(n){return{URI:Dw,map:Dn,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),traverse:Dv(n),sequence:Dg(n)}},Dq=function(n){return{URI:Dw,map:Dn,mapWithIndex:Dt,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),reduceWithIndex:Df(n),foldMapWithIndex:Dl(n),reduceRightWithIndex:Dp(n),traverse:Dv(n),sequence:Dg(n),traverseWithIndex:Dy(n)}},DK=function(n){var t=Dj(n);return{URI:Dw,map:Dn,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),traverse:t.traverse,sequence:t.sequence,compact:DM,separate:DO,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,wither:(0,oS.witherDefault)(t,DL),wilt:(0,oS.wiltDefault)(t,DL)}},DG=function(n){var t=L9(n);return{concat:function(n,e){return t(e)(n)}}},DY=function(n){return{concat:DG(n).concat,empty:LD}},DB=function(n){var t=L4(n);return{concat:function(n,e){return t(e)(n)}}},DV=function(){return{concat:function(n,t){return L6(t)(n)}}},Dz={URI:Dw,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li)},DH={URI:Dw,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),reduceWithIndex:Df(Li),foldMapWithIndex:Dl(Li),reduceRightWithIndex:Dp(Li)},D$={URI:Dw,map:Dn,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),traverse:Dv(Li),sequence:Lz},DX={URI:Dw,map:Dn,mapWithIndex:Dt,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),reduceWithIndex:Df(Li),foldMapWithIndex:Dl(Li),reduceRightWithIndex:Dp(Li),traverse:Dv(Li),sequence:Lz,traverseWithIndex:Dy(Li)},DJ=(0,oS.witherDefault)(D$,DL),DZ=(0,oS.wiltDefault)(D$,DL),DQ={URI:Dw,map:Dn,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),traverse:Dv(Li),sequence:Lz,compact:DM,separate:DO,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,wither:DJ,wilt:DZ},D0=LE;function D1(n,t){return ti.e$.call(void 0===t?this:t,n)}var D2={URI:Dw,map:Dn,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),traverse:Dv(Li),sequence:Lz,compact:DM,separate:DO,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,mapWithIndex:Dt,reduceWithIndex:Df(Li),foldMapWithIndex:Dl(Li),reduceRightWithIndex:Dp(Li),filterMapWithIndex:Dh,filterWithIndex:Dm,partitionMapWithIndex:Dd,partitionWithIndex:Ds,traverseWithIndex:Dy(Li),wither:DJ,wilt:DZ},D5=function(n){return new Set(n)},D7=function(n){return new Set([n])},D8=function(n){return function(t){for(var e=t.length,r=new Set,u=N_(n),i=0;i<e;i++){var o=t[i];u(o,r)||r.add(o)}return r}};function D3(n){return new Set(n)}function D9(n){var t=N_(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);t(u,r)||r.add(u)}),r}}}function D4(n){var t=N_(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function D6(n){return function(t){for(var e,r=t.values(),u=new Set;!(e=r.next()).done;){var i=e.value;n(i)&&u.add(i)}return u}}function Nn(n){return function(t){for(var e,r=t.values(),u=new Set,i=new Set;!(e=r.next()).done;){var o=e.value;n(o)?u.add(o):i.add(o)}return(0,oR.separated)(i,u)}}function Nt(n){var t=N_(n);return function(e,r){if(void 0===r){var u=Nt(n);return function(n){return u(e,n)}}if(Nm(e))return r;if(Nm(r))return e;var i=new Set(e);return r.forEach(function(n){t(n,i)||i.add(n)}),i}}function Ne(n){var t=N_(n);return function(e,r){if(void 0===r){var u=Ne(n);return function(n){return u(n,e)}}if(Nm(e)||Nm(r))return Nh;var i=new Set;return e.forEach(function(n){t(n,r)&&i.add(n)}),i}}function Nr(n,t){return function(e){return function(r){for(var u,i=r.values(),o=new Set,c=new Set,a=N_(n),f=N_(t);!(u=i.next()).done;){var l=e(u.value);switch(l._tag){case"Left":a(l.left,o)||o.add(l.left);break;case"Right":f(l.right,c)||c.add(l.right)}}return(0,oR.separated)(o,c)}}}function Nu(n){var t=N_(n);return function(e,r){if(void 0===r){var u=Nu(n);return function(n){return u(n,e)}}return D6(function(n){return!t(n,r)})(e)}}function Ni(n){var t=NI(n);return function(n,e){return function(r){return t(r).reduce(e,n)}}}function No(n,t){var e=NI(n);return function(n){return function(r){return e(r).reduce(function(e,r){return t.concat(e,n(r))},t.empty)}}}var Nc=function(n){var t=NI(n);return function(n,e){return function(r){return t(r).reduceRight(function(n,t){return e(t,n)},n)}}};function Na(n){var t=N_(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var Nf=function(n){return function(t){return function(e){return D6(function(e){return!n.equals(t,e)})(e)}}},Nl=function(n){var t=N_(n),e=Nf(n),r=Na(n);return function(n){return function(u){return(t(n,u)?e:r)(n)(u)}}},Np=function(n){return Ns(n)(tr.identity)};function Nd(n,t){return function(e){var r=N_(n),u=N_(t),i=new Set,o=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,i)||i.add(n.left);break;case"Right":u(n.right,o)||o.add(n.right)}}),(0,oR.separated)(i,o)}}function Ns(n){var t=N_(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);"Some"!==u._tag||t(u.value,r)||r.add(u.value)}),r}}}var Nh=new Set,Nm=function(n){return 0===n.size},Nv=function(n){return n.size},Ng=function(n){return function(t){for(var e,r=t.values(),u=!1;!u&&!(e=r.next()).done;)u=n(e.value);return u}};function Ny(n){return d1(Ng(d1(n)))}function Nb(n){var t=N_(n);return function(e,r){if(void 0===r){var u=Nb(n);return function(n){return u(n,e)}}return Ny(function(n){return t(n,r)})(e)}}function N_(n){return function(t,e){if(void 0===e){var r,u=N_(n);return function(n){return u(t,n)}}for(var i=e.values(),o=!1;!o&&!(r=i.next()).done;)o=n.equals(t,r.value);return o}}var NI=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},NR="ReadonlySet";function NS(n){return{show:function(t){var e=[];return t.forEach(function(t){e.push(n.show(t))}),"new Set([".concat(e.sort().join(", "),"])")}}}function NT(n){var t=Nb(n);return to(function(n,e){return t(n,e)&&t(e,n)})}var Nx=function(n){return{concat:Nt(n)}},NM=function(n){return{concat:Nx(n).concat,empty:Nh}},NO=function(n){return{concat:Ne(n)}},Nw=function(n){return{concat:Nu(n)}},NC=D8;function NE(n){return n[0]}function Nk(n){return n[1]}var NW=function(n){return[Nk(n),n[0]]};function NF(n){return{URI:N3,_E:void 0,map:Nj,ap:function(t,e){return[t[0](e[0]),n.concat(Nk(t),Nk(e))]}}}var NU=function(n){return function(t){return[t,n.empty]}};function NP(n){return{URI:N3,_E:void 0,map:Nj,ap:NF(n).ap,of:NU(n)}}function NA(n){return{URI:N3,_E:void 0,map:Nj,ap:NF(n).ap,chain:function(t,e){var r=e(t[0]),u=r[0],i=r[1];return[u,n.concat(Nk(t),i)]}}}function NL(n){var t=NA(n);return{URI:N3,_E:void 0,map:Nj,ap:t.ap,chain:t.chain,of:NU(n)}}function ND(n){var t=NA(n);return{URI:N3,_E:void 0,map:Nj,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),u=n.empty,i=r[0];"Left"===i._tag;)u=n.concat(u,Nk(r)),i=(r=e(i.left))[0];return[i.right,n.concat(u,Nk(r))]}}}var NN=function(n,t){return(0,tr.pipe)(n,NJ(t))},Nj=function(n,t){return(0,tr.pipe)(n,N$(t))},Nq=function(n,t,e){return(0,tr.pipe)(n,NH(t,e))},NK=function(n,t){return(0,tr.pipe)(n,NX(t))},NG=function(n,t){return(0,tr.pipe)(n,NZ(t))},NY=function(n,t,e){return(0,tr.pipe)(n,N1(t,e))},NB=function(n){var t=N2(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},NV=function(n,t,e){return(0,tr.pipe)(n,N5(t,e))},Nz=function(n){var t=N7(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},NH=function(n,t){return function(e){return[t(e[0]),n(Nk(e))]}},N$=function(n){return function(t){return[n(t[0]),Nk(t)]}},NX=function(n){return function(t){return[t[0],n(Nk(t))]}},NJ=function(n){return function(t){return[t[0],Nk(n)]}},NZ=function(n){return function(t){return[n(t),Nk(t)]}},NQ=NE,N0=NZ(tr.identity),N1=function(n,t){return function(e){return t(n,e[0])}},N2=function(){return function(n){return function(t){return n(t[0])}}},N5=function(n,t){return function(e){return t(e[0],n)}},N7=function(n){return function(t){return function(e){return n.map(t(e[0]),function(n){return[n,Nk(e)]})}}},N8=function(n){return function(t){return n.map(t[0],function(n){return[n,Nk(t)]})}},N3="ReadonlyTuple",N9={URI:N3,map:Nj},N4=(0,tu.flap)(N9),N6=N$,jn=NX,jt={URI:N3,bimap:Nq,mapLeft:NK},je={URI:N3,compose:NN},jr={URI:N3,map:Nj,extend:NG,extract:NQ},ju={URI:N3,reduce:NY,foldMap:NB,reduceRight:NV},ji={URI:N3,map:Nj,reduce:NY,foldMap:NB,reduceRight:NV,traverse:Nz,sequence:N8},jo={URI:N3,compose:NN,map:Nj,bimap:Nq,mapLeft:NK,extract:NQ,extend:NG,reduce:NY,foldMap:NB,reduceRight:NV,traverse:Nz,sequence:N8},jc=function(){return(jc=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},ja=LS,jf=LT,jl=function(n){return function(t){return Object.keys(t).sort(n.compare)}},jp=jl(Li);function jd(n){if("function"==typeof n)return jd(Li)(n);var t=jl(n);return function(n){return function(e){for(var r=[],u=0,i=t(e);u<i.length;u++){var o=i[u];r.push(n(o,e[o]))}return r}}}var js=jd(Li)(function(n,t){return[n,t]});function jh(n){return function(t){var e=js(t),r=e.length;return n.unfold(0,function(n){return n<r?ti.G([e[n],n+1]):ti.YP})}}var jm=LE,jv=Lk;function jg(n){return function(t){if(!ti.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var jy=function(n,t){return jb(n,function(){return t})},jb=function(n,t){return function(e){if(!jv(n,e))return ti.YP;var r=Object.assign({},e);return r[n]=t(e[n]),ti.G(r)}};function j_(n){var t=jg(n);return function(e){var r=jR(n,e);return ti.Wi(r)?ti.YP:ti.G([r.value,t(e)])}}var jI=LA,jR=LL,jS=LN,jT=Lj;function jx(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?Lq(n[0]):Lq(Li).apply(void 0,n)}function jM(n){return"compare"in n?LK(n):LK(Li)(n)}function jO(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?LG(n[0]):LG(Li).apply(void 0,n)}var jw=LY;function jC(n){return LB(n)}function jE(n){return LV(n)}function jk(n){return Lz(n)}var jW=function(n){var t=LV(n);return function(e){return function(r){return n.map((0,tr.pipe)(r,t(e)),j2)}}},jF=function(n){var t=LV(n);return function(e){return function(r){return n.map((0,tr.pipe)(r,t(e)),j5)}}},jU=LX;function jP(n){return LJ(n)}var jA=LZ;function jL(n){return LQ(n)}function jD(n,t){return L0(n,t)}var jN=js,jj=function(n){return L0(en(),pX)(n)};function jq(n,t){return L1(n,t)}var jK=L7,jG=L8,jY=L3,jB=function(n){var t=L9(n);return function(n){return function(e){return jf(e)?jc({},n):jf(n)?jc({},e):t(n)(e)}}},jV=function(n){return function(t){return function(e){return jf(e)||jf(t)?{}:L4(n)(t)(e)}}},jz=function(n){return function(t){return jf(t)?jc({},n):jf(n)?jc({},t):L6(n)(t)}},jH=function(n){return function(t){var e=jl(n);return function(n,r){var u=e(n);if(0===u.length)return t.of({});for(var i=t.of({}),o=function(e){i=t.ap(t.map(i,function(n){return function(t){return n[e]=t,n}}),r(e,n[e]))},c=0;c<u.length;c++)o(u[c]);return i}}},j$=Db,jX=D_,jJ=DI,jZ=DR;function jQ(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?DS(n[0]):DS(Li).apply(void 0,n)}function j0(n){return"compare"in n?DT(n):DT(Li)(n)}function j1(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?Dx(n[0]):Dx(Li).apply(void 0,n)}var j2=DM,j5=DO,j7="Record";function j8(n){return"compare"in n?DC(n):DC(Li)(n)}var j3=DE,j9=Dk,j4={URI:j7,map:Dn},j6=(0,tu.flap)(j4),qn={URI:j7,map:Dn,mapWithIndex:Dt},qt=function(n){return{URI:j7,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n)}},qe=function(n){return{URI:j7,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),reduceWithIndex:Df(n),foldMapWithIndex:Dl(n),reduceRightWithIndex:Dp(n)}},qr={URI:j7,compact:j2,separate:j5},qu={URI:j7,map:Dn,compact:j2,separate:j5,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da},qi={URI:j7,map:Dn,mapWithIndex:Dt,compact:j2,separate:j5,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,filterMapWithIndex:Dh,filterWithIndex:Dm,partitionMapWithIndex:Dd,partitionWithIndex:Ds},qo=function(n){return{URI:j7,map:Dn,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),traverse:Dv(n),sequence:Dg(n)}},qc=function(n){return{URI:j7,map:Dn,mapWithIndex:Dt,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),reduceWithIndex:Df(n),foldMapWithIndex:Dl(n),reduceRightWithIndex:Dp(n),traverse:Dv(n),sequence:Dg(n),traverseWithIndex:jH(n)}},qa=function(n){var t=qo(n);return{URI:j7,map:Dn,reduce:De(n),foldMap:Dr(n),reduceRight:Du(n),traverse:t.traverse,sequence:t.sequence,compact:j2,separate:j5,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,wither:(0,oS.witherDefault)(t,qr),wilt:(0,oS.wiltDefault)(t,qr)}},qf=function(n){var t=jB(n);return{concat:function(n,e){return t(e)(n)}}},ql=function(n){return{concat:qf(n).concat,empty:{}}},qp=function(n){var t=jV(n);return{concat:function(n,e){return t(e)(n)}}},qd=function(){return{concat:function(n,t){return jz(t)(n)}}},qs={URI:j7,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li)},qh={URI:j7,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),reduceWithIndex:Df(Li),foldMapWithIndex:Dl(Li),reduceRightWithIndex:Dp(Li)},qm={URI:j7,map:Dn,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),traverse:Dv(Li),sequence:jk},qv={URI:j7,map:Dn,mapWithIndex:Dt,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),reduceWithIndex:Df(Li),foldMapWithIndex:Dl(Li),reduceRightWithIndex:Dp(Li),traverse:Dv(Li),sequence:jk,traverseWithIndex:jH(Li)},qg=(0,oS.witherDefault)(qm,qr),qy=(0,oS.wiltDefault)(qm,qr),qb={URI:j7,map:Dn,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),traverse:Dv(Li),sequence:jk,compact:j2,separate:j5,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,wither:qg,wilt:qy},q_={},qI=jm,qR=D1,qS={URI:j7,map:Dn,reduce:De(Li),foldMap:Dr(Li),reduceRight:Du(Li),traverse:Dv(Li),sequence:jk,compact:j2,separate:j5,filter:Di,filterMap:Do,partition:Dc,partitionMap:Da,mapWithIndex:Dt,reduceWithIndex:Df(Li),foldMapWithIndex:Dl(Li),reduceRightWithIndex:Dp(Li),filterMapWithIndex:Dh,filterWithIndex:Dm,partitionMapWithIndex:Dd,partitionWithIndex:Ds,traverseWithIndex:jH(Li),wither:qg,wilt:qy},qT=function(n){return function(t){return ti.pC(n(t))}},qx=function(n){return function(t){return ti.tO(n(t))}},qM=function(){return function(n){return!0}},qO=function(n){return function(t){return!n(t)}},qw=function(n){return function(t){return function(e){return t(e)||n(e)}}},qC=function(n){return function(t){return function(e){return t(e)&&n(e)}}},qE=function(){return function(n){return!1}},qk=function(n){return function(t){return function(e){return t(e)&&n(e)}}},qW=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{add:function(t,e){return n.map(function(n,r){return n.add(t[r],e[r])})},zero:n.map(function(n){return n.zero}),mul:function(t,e){return n.map(function(n,r){return n.mul(t[r],e[r])})},one:n.map(function(n){return n.one}),sub:function(t,e){return n.map(function(n,r){return n.sub(t[r],e[r])})}}},qF=function(n){return function(t){return n.sub(n.zero,t)}},qU=qW,qP=tr.getRing,qA=tr.getSemiring,qL=NS,qD=NT;function qN(n){var t=Ku(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);t(u,r)||r.add(u)}),r}}}function qj(n){var t=Ku(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function qq(n){return function(t){for(var e,r=t.values(),u=new Set;!(e=r.next()).done;){var i=e.value;n(i)&&u.add(i)}return u}}function qK(n){return function(t){for(var e,r=t.values(),u=new Set,i=new Set;!(e=r.next()).done;){var o=e.value;n(o)?u.add(o):i.add(o)}return(0,oR.separated)(i,u)}}function qG(n){var t=Ku(n);return function(e,r){if(void 0===r){var u=qG(n);return function(n){return u(e,n)}}if(q6(e))return r;if(q6(r))return e;var i=new Set(e);return r.forEach(function(n){t(n,i)||i.add(n)}),i}}function qY(n){var t=Ku(n);return function(e,r){if(void 0===r){var u=qY(n);return function(n){return u(n,e)}}if(q6(e)||q6(r))return new Set;var i=new Set;return e.forEach(function(n){t(n,r)&&i.add(n)}),i}}function qB(n,t){return function(e){return function(r){for(var u,i=r.values(),o=new Set,c=new Set,a=Ku(n),f=Ku(t);!(u=i.next()).done;){var l=e(u.value);switch(l._tag){case"Left":a(l.left,o)||o.add(l.left);break;case"Right":f(l.right,c)||c.add(l.right)}}return(0,oR.separated)(o,c)}}}function qV(n){var t=Ku(n);return function(e,r){if(void 0===r){var u=qV(n);return function(n){return u(n,e)}}return qq(function(n){return!t(n,r)})(e)}}var qz=function(n){return{concat:qG(n)}},qH=function(n){return{concat:qz(n).concat,empty:new Set}},q$=function(n){return{concat:qY(n)}},qX=function(n){return{concat:qV(n)}},qJ=Ni,qZ=No,qQ=Nc,q0=function(n){return new Set([n])};function q1(n){var t=Ku(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var q2=function(n){return function(t){return function(e){return qq(function(e){return!n.equals(t,e)})(e)}}},q5=function(n){var t=Ku(n),e=q2(n),r=q1(n);return function(n){return function(u){return(t(n,u)?e:r)(n)(u)}}},q7=function(n){return function(t){for(var e=t.length,r=new Set,u=Ku(n),i=0;i<e;i++){var o=t[i];u(o,r)||r.add(o)}return r}},q8=function(n){return q9(n)(tr.identity)};function q3(n,t){return function(e){var r=Ku(n),u=Ku(t),i=new Set,o=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,i)||i.add(n.left);break;case"Right":u(n.right,o)||o.add(n.right)}}),(0,oR.separated)(i,o)}}function q9(n){var t=Ku(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var u=n(e);"Some"!==u._tag||t(u.value,r)||r.add(u.value)}),r}}}var q4=new Set,q6=function(n){return 0===n.size},Kn=function(n){return n.size},Kt=Ng,Ke=Ny,Kr=Nb,Ku=N_,Ki=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},Ko=Nb,Kc=function(n){return{show:function(t){var e="{";for(var r in n)ti.e$.call(n,r)&&(e+=" ".concat(r,": ").concat(n[r].show(t[r]),","));return e.length>1&&(e=e.slice(0,-1)+" "),e+="}"}}},Ka=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,e){return n[e].show(t)}).join(", "),"]")}}},Kf=Ka,Kl=Kc,Kp={show:function(n){return JSON.stringify(n)}},Kd={show:function(n){return JSON.stringify(n)}},Ks={show:function(n){return JSON.stringify(n)}};function Kh(n){return function(t){return function(e){return n.of([t,e])}}}function Km(n){return function(t){return function(e){return function(r){return n.map(e(r),function(n){var e=n[0],r=n[1];return[t(e),r]})}}}}function Kv(n){return function(t){return function(e){return function(r){return n.chain(e(r),function(e){var r=e[0],u=e[1];return n.map(t(u),function(n){var t=n[0],e=n[1];return[r(t),e]})})}}}}function Kg(n){var t=Ky(n);return function(n){return function(e){return t(e,n)}}}function Ky(n){return function(t,e){return function(r){return n.chain(t(r),function(n){var t=n[0],r=n[1];return e(t)(r)})}}}function Kb(n){return function(t){return function(e){return n.of(t(e))}}}function K_(n){return function(t){return function(e){return n.map(t,function(n){return[n,e]})}}}function KI(n){return function(t){return function(e){return n.map(e(t),function(n){return n[0]})}}}function KR(n){return function(t){return function(e){return n.map(e(t),Nk)}}}function KS(n){var t=Kv(n),e=Km(n),r=Kg(n),u=KI(n),i=KR(n);return{map:function(n,t){return(0,tr.pipe)(n,e(t))},ap:function(n,e){return(0,tr.pipe)(n,t(e))},of:Kh(n),chain:function(n,t){return(0,tr.pipe)(n,r(t))},get:function(){return function(t){return n.of([t,t])}},put:function(t){return function(){return n.of([void 0,t])}},modify:function(t){return function(e){return n.of([void 0,t(e)])}},gets:function(t){return function(e){return n.of([t(e),e])}},fromState:Kb(n),fromM:K_(n),evalState:function(n,t){return(0,tr.pipe)(n,u(t))},execState:function(n,t){return(0,tr.pipe)(n,i(t))}}}var KT=function(n){return function(){return Ur(n)}},Kx=Kh(Pc);function KM(n){return KK(Ui(n))}function KO(n){return KK(Uo(n))}function Kw(n){return KK(Uc(n))}function KC(n){return KK(Ua(n))}function KE(n){return KK(Up(n))}function Kk(n){return KK(Ud(n))}var KW=function(n){return(0,tr.flow)(n,Uu)},KF=function(n){return function(t){return Ur(n(t)[0])}},KU=mR.match(function(n){return KT(n)},Kx),KP=Kw,KA=KE,KL=KM,KD=Kb(Pc),KN=function(n){return KK(Ue(n))},Kj=function(n){return KK(Ub(n))},Kq=function(n){return KK(U_(n))},KK=K_(Pr),KG=function(n){return function(t){return(0,tr.flow)(t,vg(n))}},KY=function(n){return function(t){return function(e){return n(e)(t)(e)}}},KB=KY,KV=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Kj(n.apply(void 0,t))}},Kz=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return KN(n.apply(void 0,t))}},KH=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return KK(n.apply(void 0,t))}},K$=function(n){return function(t){return K6(t,KH(n))}},KX=K$,KJ=function(n,t){return(0,tr.pipe)(n,K2(t))},KZ=function(n,t){return(0,tr.pipe)(n,K8(t))},KQ=function(n,t){return function(e){return(0,tr.pipe)(n(e),U8(function(){return t()(e)}))}},K0=function(n,t,e){return function(r){return(0,tr.pipe)(n(r),UX(t,function(n){var t=n[0],r=n[1];return[e(t),r]}))}},K1=function(n,t){return function(e){return(0,tr.pipe)(n(e),UZ(t))}},K2=Km(Pr),K5=function(n,t){return function(e){return K0(e,n,t)}},K7=function(n){return function(t){return K1(t,n)}},K8=Kv(Pv),K3=K8,K9=Kx,K4={fromEither:KU},K6=(0,tr.dual)(2,Ky(Pg)),Gn={flatMap:K6},Gt=(0,tr.dual)(2,function(n,t){return K6(n,function(n){return Kz(t)(n)})}),Ge=ti.we({fromIO:KA},Gn),Gr=ti.D9({fromTask:KL},Gn),Gu=ti.on({fromReader:KP},Gn),Gi=(0,tr.dual)(2,function(n,t){return K6(n,function(n){return KV(t)(n)})}),Go=(0,tr.dual)(2,ti.iu(K4,Gn)),Gc=ti.hU(K4,Gn),Ga=(0,tr.dual)(2,function(n,t){return K6(n,function(n){return KH(t)(n)})}),Gf=(0,tr.dual)(2,function(n,t){return K6(n,GF(t))}),Gl=K6(tr.identity),Gp=Gl,Gd=function(n){return function(t){return function(e){return(0,tr.pipe)(t(e),U3(function(){return n()(e)}))}}},Gs=Gd,Gh=KT,Gm="StateReaderTaskEither",Gv={URI:Gm,map:KJ},Gg=(0,tr.dual)(2,(0,tu.as)(Gv)),Gy=(0,tu.asUnit)(Gv),Gb=(0,tu.flap)(Gv),G_={URI:Gm,of:K9},GI={URI:Gm,map:KJ,ap:KZ},GR=(0,n9.apFirst)(GI),GS=GR,GT=(0,n9.apSecond)(GI),Gx=GT,GM={URI:Gm,map:KJ,ap:KZ,of:K9},GO={URI:Gm,map:KJ,ap:KZ,chain:K6},Gw={URI:Gm,fromState:KD},GC=g2(Gw),GE=g5(Gw),Gk=g7(Gw),GW=g8(Gw),GF=g3(Gw),GU=g9(Gw,GO),GP={URI:Gm,map:KJ,ap:KZ,of:K9,chain:K6},GA={URI:Gm,map:KJ,ap:KZ,of:K9,chain:K6,fromIO:KA},GL={URI:Gm,map:KJ,ap:KZ,of:K9,chain:K6,fromIO:KA,fromTask:KL},GD={URI:Gm,map:KJ,ap:KZ,of:K9,chain:K6,throwError:Gh},GN={URI:Gm,fromEither:KU},Gj={URI:Gm,fromIO:KA},Gq={URI:Gm,fromIO:KA,fromTask:KL},GK={URI:Gm,fromReader:KP},GG=(0,tr.dual)(2,tt.tap(GO)),GY=(0,tr.dual)(2,(0,te.tapEither)(GN,GO)),GB=(0,tr.dual)(2,vh(Gj,GO)),GV=(0,tr.dual)(2,yt(Gq,GO)),Gz=(0,tr.dual)(2,gv(GK,GO)),GH={URI:Gm,bimap:K0,mapLeft:K1},G$={URI:Gm,map:KJ,alt:KQ},GX=gp(GK),GJ=gd(GK),GZ=gs(GK),GQ=Gu,G0=Gu,G1=Gz,G2=Gz,G5=(0,te.fromOption)(GN),G7=(0,te.fromOptionK)(GN),G8=(0,te.chainOptionK)(GN,GO),G3=G8,G9=Go,G4=Go,G6=GY,Yn=GY,Yt=(0,te.fromPredicate)(GN),Ye=(0,te.filterOrElse)(GN,GO),Yr=Ye,Yu=(0,te.fromEitherK)(GN),Yi=vp(Gj),Yo=Ge,Yc=GB,Ya=Gt,Yf=Gt,Yl=Gi,Yp=Gi,Yd=g4(Gq),Ys=Gr,Yh=GV,Ym=KI(Pr),Yv=KR(Pr),Yg=(0,tu.bindTo)(Gv),Yy=(0,tu.let)(Gv),Yb=tt.bind(GO),Y_=Yb,YI=(0,n9.apS)(GI),YR=YI,YS=function(n){return function(t){return function(e){return function(r){return function(){return ti.Gb(t).reduce(function(t,e,u){return t.then(function(i){return ti.nM(i)?t:n(u+1,e)(i.right[1])(r)().then(function(n){if(ti.nM(n))return n;var t=n.right,e=t[0],r=t[1];return i.right[0].push(e),i.right[1]=r,i})})},n(0,ti.YM(t))(e)(r)().then(mR.map(function(n){return[[n[0]],n[1]]})))}}}}},YT=function(n){var t=YS(n);return function(n){return ti.Od(n)?t(n):K9(ti.Xl)}},Yx=YT,YM=function(n){return YT(function(t,e){return n(e)})},YO=YM(tr.identity),Yw=K6,YC=K6,YE=GG,Yk=GG,YW={URI:Gm,map:KJ,of:K9,ap:KZ,chain:K6,bimap:K0,mapLeft:K1,alt:KQ,fromIO:KA,fromTask:KL,throwError:Gh},YF={URI:Gm,map:KJ,of:K9,ap:KZ,chain:K6,bimap:K0,mapLeft:K1,alt:KQ,fromIO:KA,fromTask:KL,throwError:Gh},YU=function(n,t){return(0,tr.pipe)(n(t),UH(function(n){return n[0]}))},YP=function(n,t){return(0,tr.pipe)(n(t),UH(function(n){return n[0],n[1]}))};function YA(n,t,e){return n(t)(e)()}function YL(n){return function(t){return{peek:t.peek,pos:n}}}function YD(n){return function(t){return{peek:t.peek,pos:n(t.pos)}}}function YN(n){return function(t){return t.peek(n(t.pos))}}function Yj(n){return function(t){return function(e){return n.map(t(e.pos),function(n){return e.peek(n)})}}}var Yq=function(n,t){return(0,tr.pipe)(n,YB(t))},YK=function(n){return function(t){return{peek:function(e){return n({peek:t.peek,pos:e})},pos:t.pos}}},YG=function(n){return n.peek(n.pos)},YY=YK(tr.identity),YB=function(n){return function(t){return{peek:function(e){return n(t.peek(e))},pos:t.pos}}},YV="Store",Yz={URI:YV,map:Yq},YH=(0,tu.flap)(Yz),Y$={URI:YV,map:Yq,extend:function(n,t){return(0,tr.pipe)(n,YK(t))},extract:YG},YX=Y$;function YJ(n,t){return function(e,r){return t.compose(n.second(r),n.first(e))}}function YZ(n,t){var e=YJ(n,t);return function(r,u){return t.compose(e(r,u),n.promap(t.id(),tr.identity,function(n){return[n,n]}))}}function YQ(n){return YJ(n,n)}function Y0(n){return YZ(n,n)}var Y1=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},Y2=function(n){return function(t){var e={};for(var r in t)ti.e$.call(t,r)&&(e[r]=n[r](t[r]));return e}},Y5=function(n,t){var e,r,u,i,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(e=1,r&&(u=2&c[0]?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[2&c[0],u.value]),c[0]){case 0:case 1:u=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!u||c[1]>u[0]&&c[1]<u[3])){o.label=c[1];break}if(6===c[0]&&o.label<u[1]){o.label=u[1],u=c;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(c);break}u[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(n,o)}catch(n){c=[6,n],r=0}finally{e=u=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}},Y7=IM(CU),Y8=IU(CU),Y3=Cx,Y9=IP(CU),Y4=function(n){return Y6(Cy(n))},Y6=Iw(CE),Bn=CS(s9),Bt=IA(CE),Be=Bt,Br=IL(Cq),Bu=Br,Bi=Br,Bo=Bi,Bc=ID(CK),Ba=Bc,Bf=IC(CU),Bl=function(n){return function(){var t,e,r,u;return t=void 0,e=void 0,r=void 0,u=function(){return Y5(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n().then(ti.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,ti.YP];case 3:return[2]}})},new(r||(r=Promise))(function(n,i){function o(n){try{a(u.next(n))}catch(n){i(n)}}function c(n){try{a(u.throw(n))}catch(n){i(n)}}function a(t){var e;t.done?n(t.value):((e=t.value)instanceof r?e:new r(function(n){n(e)})).then(o,c)}a((u=u.apply(t,e||[])).next())})}},Bp=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Bl(function(){return n.apply(void 0,t)})}},Bd=IE(CU),Bs=Ik(CK),Bh=IW(CU),Bm=IF(CK),Bv=IN(CE),Bg=Ij(CP),By=Y7,Bb=(0,tr.dual)(2,IK(CK)),B_={flatMap:Bb},BI=ti.we({fromIO:Y4},B_),BR=ti.D9({fromTask:Y6},B_),BS=Bb(tr.identity),BT=IG(CK),Bx=BT,BM=IO(CU),BO=BM(),Bw=hB(CE,sB),BC=hV(CE,sB,sg),BE=m2(CE,sX),Bk=m5(CE,sX),BW=m7(CE,sX),BF=m8(CE,sX),BU=function(n,t){return(0,tr.pipe)(n,Bv(t))},BP=function(n,t){return(0,tr.pipe)(n,Bg(t))},BA=function(n,t){return(0,tr.pipe)(n,BT(t))},BL="TaskOption",BD={URI:BL,map:BU},BN=(0,tr.dual)(2,(0,tu.as)(BD)),Bj=(0,tu.asUnit)(BD),Bq=(0,tu.flap)(BD),BK={URI:BL,of:By},BG={URI:BL,map:BU,ap:BP},BY=(0,n9.apFirst)(BG),BB=(0,n9.apSecond)(BG),BV={URI:BL,map:BU,ap:BP,of:By},Bz=function(n,t){return Bb(n,function(n){return(0,tr.pipe)(t,Bv(n))})},BH={URI:BL,map:BU,ap:Bz},B$={URI:BL,map:BU,ap:Bz,of:By},BX={URI:BL,map:BU,ap:BP,chain:Bb},BJ={URI:BL,fromEither:Y9},BZ={URI:BL,fromIO:Y4},BQ={URI:BL,fromIO:Y4,fromTask:Y6},B0=(0,tr.dual)(2,tt.tap(BX)),B1=(0,tr.dual)(2,(0,te.tapEither)(BJ,BX)),B2=(0,tr.dual)(2,vh(BZ,BX)),B5=(0,tr.dual)(2,yt(BQ,BX)),B7={URI:BL,map:BU,alt:BA},B8={URI:BL,zero:BM},B3=oT(B8,BK),B9={URI:BL,map:BU,ap:BP,of:By,alt:BA,zero:BM},B4={URI:BL,map:BU,ap:BP,of:By,chain:Bb},B6={URI:BL,map:BU,ap:BP,of:By,chain:Bb,fromIO:Y4},Vn={URI:BL,map:BU,ap:BP,of:By,chain:Bb,fromIO:Y4,fromTask:Y6},Vt={URI:BL,compact:Bw,separate:BC},Ve={URI:BL,map:BU,compact:Bw,separate:BC,filter:function(n,t){return(0,tr.pipe)(n,BE(t))},filterMap:function(n,t){return(0,tr.pipe)(n,Bk(t))},partition:function(n,t){return(0,tr.pipe)(n,BW(t))},partitionMap:function(n,t){return(0,tr.pipe)(n,BF(t))}},Vr=vp(BZ),Vu=BI,Vi=B2,Vo=(0,te.fromEitherK)(BJ),Vc=(0,te.chainEitherK)(BJ,BX),Va=B1,Vf=g4(BQ),Vl=BR,Vp=B5,Vd=By(ti.F4),Vs=(0,tu.bindTo)(BD),Vh=(0,tu.let)(BD),Vm=tt.bind(BX),Vv=(0,n9.apS)(BG),Vg=By(ti.Xl),Vy=function(n){return(0,tr.flow)(C4(n),CS(hk(tr.SK)))},Vb=function(n){var t=Vy(n);return function(n){return ti.Od(n)?t(n):Vg}},V_=function(n){return function(t){return function(){return ti.Gb(t).reduce(function(t,e,r){return t.then(function(u){return ti.Wi(u)?t:n(r+1,e)().then(function(n){return ti.Wi(n)?n:(u.value.push(n.value),u)})})},n(0,ti.YM(t))().then(sv(ti.ri)))}}},VI=function(n){var t=V_(n);return function(n){return ti.Od(n)?t(n):Vg}},VR=Vb,VS=function(n){return Vb(function(t,e){return n(e)})},VT=VS(tr.identity),Vx=VI,VM=function(n){return VI(function(t,e){return n(e)})},VO=VM(tr.identity),Vw=Bb,VC=B0,VE=function(n){return"Left"===n._tag},Vk=function(n){return"Right"===n._tag};function VW(n){return"Both"===n._tag}function VF(n){return{_tag:"Left",left:n}}function VU(n){return{_tag:"Right",right:n}}function VP(n,t){return{_tag:"Both",left:n,right:t}}var VA=function(n,t,e){return function(r){switch(r._tag){case"Left":return n(r.left);case"Right":return t(r.right);case"Both":return e(r.left,r.right)}}},VL=VA,VD=VA,VN=VD,Vj=VD(VU,VF,function(n,t){return VP(t,n)});function Vq(n,t){return{show:VD(function(t){return"left(".concat(n.show(t),")")},function(n){return"right(".concat(t.show(n),")")},function(e,r){return"both(".concat(n.show(e),", ").concat(t.show(r),")")})}}function VK(n,t){return to(function(e,r){return VE(e)?VE(r)&&n.equals(e.left,r.left):Vk(e)?Vk(r)&&t.equals(e.right,r.right):VW(r)&&n.equals(e.left,r.left)&&t.equals(e.right,r.right)})}function VG(n,t){return{concat:function(e,r){return VE(e)?VE(r)?VF(n.concat(e.left,r.left)):Vk(r)?VP(e.left,r.right):VP(n.concat(e.left,r.left),r.right):Vk(e)?VE(r)?VP(r.left,e.right):Vk(r)?VU(t.concat(e.right,r.right)):VP(r.left,t.concat(e.right,r.right)):VE(r)?VP(n.concat(e.left,r.left),e.right):Vk(r)?VP(e.left,t.concat(e.right,r.right)):VP(n.concat(e.left,r.left),t.concat(e.right,r.right))}}}var VY=function(n){return{URI:zc,_E:void 0,map:V1,ap:function(t,e){return VE(t)?VE(e)?VF(n.concat(t.left,e.left)):Vk(e)?VF(t.left):VF(n.concat(t.left,e.left)):Vk(t)?VE(e)?VF(e.left):Vk(e)?VU(t.right(e.right)):VP(e.left,t.right(e.right)):VE(e)?VF(n.concat(t.left,e.left)):Vk(e)?VP(t.left,t.right(e.right)):VP(n.concat(t.left,e.left),t.right(e.right))}}};function VB(n){return{URI:zc,_E:void 0,map:V1,ap:VY(n).ap,of:zo}}function VV(n){return{URI:zc,_E:void 0,map:V1,ap:VY(n).ap,chain:function(t,e){if(VE(t))return t;if(Vk(t))return e(t.right);var r=e(t.right);return VE(r)?VF(n.concat(t.left,r.left)):Vk(r)?VP(t.left,r.right):VP(n.concat(t.left,r.left),r.right)}}}function Vz(n){var t=VV(n);return{URI:zc,_E:void 0,map:V1,of:zo,ap:t.ap,chain:t.chain,throwError:VF}}function VH(n){return VE(n)?ti.G(n.left):Vk(n)?ti.YP:ti.G(n.left)}function V$(n){return VE(n)?ti.YP:(Vk(n),ti.G(n.right))}function VX(n){return function(t){return ti.Wi(t)?VF(n):VP(n,t.value)}}function VJ(n){return function(t){return ti.Wi(t)?VU(n):VP(t.value,n)}}function VZ(n){return VE(n)?ti.G(n.left):ti.YP}function VQ(n){return Vk(n)?ti.G(n.right):ti.YP}var V0=function(n,t){return ti.Wi(n)?ti.Wi(t)?ti.YP:ti.G(VU(t.value)):ti.Wi(t)?ti.G(VF(n.value)):ti.G(VP(n.value,t.value))},V1=function(n,t){return(0,tr.pipe)(n,zn(t))},V2=function(n,t,e){return(0,tr.pipe)(n,V4(t,e))},V5=function(n,t){return(0,tr.pipe)(n,V6(t))},V7=function(n,t,e){return(0,tr.pipe)(n,zt(t,e))},V8=function(n){var t=ze(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},V3=function(n,t,e){return(0,tr.pipe)(n,zr(t,e))},V9=function(n){var t=zu(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},V4=function(n,t){return function(e){return VE(e)?VF(n(e.left)):Vk(e)?VU(t(e.right)):VP(n(e.left),t(e.right))}},V6=function(n){return function(t){return VE(t)?VF(n(t.left)):VW(t)?VP(n(t.left),t.right):t}},zn=function(n){return function(t){return VE(t)?t:Vk(t)?VU(n(t.right)):VP(t.left,n(t.right))}},zt=function(n,t){return function(e){return VE(e)?n:t(n,e.right)}},ze=function(n){return function(t){return function(e){return VE(e)?n.empty:t(e.right)}}},zr=function(n,t){return function(e){return VE(e)?n:t(e.right,n)}},zu=function(n){return function(t){return function(e){return VE(e)?n.of(e):Vk(e)?n.map(t(e.right),VU):n.map(t(e.right),function(n){return VP(e.left,n)})}}},zi=function(n){return function(t){return VE(t)?n.of(t):Vk(t)?n.map(t.right,VU):n.map(t.right,function(n){return VP(t.left,n)})}},zo=VU,zc="These",za={URI:zc,map:V1},zf=(0,tu.flap)(za),zl={URI:zc,of:zo},zp={URI:zc,bimap:V2,mapLeft:V5},zd={URI:zc,fromThese:tr.identity},zs={URI:zc,reduce:V7,foldMap:V8,reduceRight:V3},zh={URI:zc,map:V1,reduce:V7,foldMap:V8,reduceRight:V3,traverse:V9,sequence:zi},zm={URI:zc,fromEither:tr.identity},zv=(0,te.fromPredicate)(zm),zg=(0,te.fromOption)(zm),zy=(0,te.fromOptionK)(zm),zb=function(n){return function(t){return function(e){return!VE(e)&&n.equals(t,e.right)}}},z_=function(n){return function(t){return!VE(t)&&n(t.right)}},zI=function(n,t){return function(e){return VE(e)?[e.left,t()]:Vk(e)?[n(),e.right]:[e.left,e.right]}},zR=function(n,t){return zI(function(){return n},function(){return t})},zS=zo(ti.Xl),zT=function(n){return function(t){return function(e){var r=ti.YP,u=t(0,ti.YM(e));if(VE(u))return u;VW(u)&&(r=ti.G(u.left));for(var i=[u.right],o=1;o<e.length;o++){var c=t(o,e[o]);if(VE(c))return c;VW(c)&&(r=ti.Wi(r)?ti.G(c.left):ti.G(n.concat(r.value,c.left))),i.push(c.right)}return ti.Wi(r)?VU(i):VP(r.value,i)}}},zx=function(n){return function(t){var e=zT(n)(t);return function(n){return ti.Od(n)?e(n):zS}}},zM={URI:zc,map:V1,bimap:V2,mapLeft:V5,reduce:V7,foldMap:V8,reduceRight:V3,traverse:V9,sequence:zi};function zO(n){return(0,tr.flow)(VU,n.of)}function zw(n){return(0,tr.flow)(VF,n.of)}function zC(n){return(0,tr.flow)(VP,n.of)}function zE(n){return function(t){return n.map(t,VU)}}function zk(n){return function(t){return n.map(t,VF)}}function zW(n){return(0,tu.map)(n,za)}function zF(n,t){return(0,n9.ap)(n,VY(t))}function zU(n,t){var e=zw(n);return function(r){return function(u){return n.chain(u,VD(e,r,function(e,u){return n.map(r(u),VD(function(n){return VF(t.concat(e,n))},function(n){return VP(e,n)},function(n,r){return VP(t.concat(e,n),r)}))}))}}}function zP(n){return function(t,e){return function(r){return n.map(r,V4(t,e))}}}function zA(n){return function(t){return function(e){return n.map(e,V6(t))}}}function zL(n){return function(t,e,r){return function(u){return n.map(u,VD(t,e,r))}}}function zD(n){return function(t,e,r){return function(u){return n.chain(u,VD(t,e,r))}}}function zN(n){return function(t){return n.map(t,Vj)}}function zj(n){return function(t,e){return function(r){return n.map(r,zI(t,e))}}}function zq(n){var t=zW(n),e=zP(n),r=zA(n),u=zD(n),i=zj(n),o=zO(n),c=function(n,e){return(0,tr.pipe)(n,t(e))};return{map:c,bimap:function(n,t,r){return(0,tr.pipe)(n,e(t,r))},mapLeft:function(n,t){return(0,tr.pipe)(n,r(t))},fold:function(n,t,e,r){return(0,tr.pipe)(n,u(t,e,r))},swap:zN(n),rightM:zE(n),leftM:zk(n),left:zw(n),right:zO(n),both:zC(n),toTuple:function(n,t,e){return(0,tr.pipe)(n,i(function(){return t},function(){return e}))},getMonad:function(t){var e=zF(n,t),r=zU(n,t);return{_E:void 0,map:c,of:o,ap:function(n,t){return(0,tr.pipe)(n,e(t))},chain:function(n,t){return(0,tr.pipe)(n,r(t))}}}}}var zK=zw(CU),zG=zO(CU),zY=zC(CU),zB=zE(CE),zV=zk(CE),zz=(0,tr.flow)(Cy,zB),zH=(0,tr.flow)(Cy,zV),z$=Cx,zX=Cx,zJ=zz,zZ=Cy,zQ=zB,z0=zL(CE),z1=z0,z2=zD(CK),z5=z2,z7=z5,z8=z7,z3=zN(CE),z9=function(n,t){return(0,tr.pipe)(n,Hn(t))},z4=function(n,t,e){return(0,tr.pipe)(n,Ht(t,e))},z6=function(n,t){return(0,tr.pipe)(n,He(t))},Hn=zW(CE),Ht=zP(CE),He=zA(CE),Hr=zG,Hu="TaskThese",Hi=function(n,t){var e=zF(n,t);return{URI:Hu,_E:void 0,map:z9,ap:function(n,t){return(0,tr.pipe)(n,e(t))}}};function Ho(n,t){return{URI:Hu,_E:void 0,map:z9,ap:Hi(n,t).ap,of:Hr}}function Hc(n){var t=Hi(CD,n),e=zU(CK,n);return{URI:Hu,_E:void 0,map:z9,ap:t.ap,chain:function(n,t){return(0,tr.pipe)(n,e(t))}}}function Ha(n){var t=Ho(CD,n),e=Hc(n);return{URI:Hu,_E:void 0,map:z9,ap:t.ap,of:Hr,chain:e.chain,fromIO:zJ,fromTask:zQ}}var Hf={URI:Hu,map:z9},Hl=(0,tu.flap)(Hf),Hp={URI:Hu,of:Hr},Hd={URI:Hu,bimap:z4,mapLeft:z6},Hs={URI:Hu,fromEither:z$},Hh=(0,te.fromOption)(Hs),Hm=(0,te.fromOptionK)(Hs),Hv=(0,te.fromPredicate)(Hs),Hg={URI:Hu,fromThese:zX},Hy=ye(Hg),Hb={URI:Hu,fromIO:zJ},H_=vp(Hb),HI={URI:Hu,fromIO:zJ,fromTask:zQ},HR=g4(HI),HS=zj(CE),HT=Hr(ti.Xl),Hx=function(n){var t=zT(n);return function(n){return(0,tr.flow)(C4(n),CS(t(tr.SK)))}},HM=function(n){return function(t){var e=Hx(n)(t);return function(n){return ti.Od(n)?e(n):HT}}},HO=function(n){return function(t){return function(e){return function(){return ti.Gb(e).reduce(function(e,r,u){return e.then(function(i){return VE(i)?e:t(u+1,r)().then(function(t){if(VE(t))return t;if(VW(t)){var e=i.right;return e.push(t.right),VW(i)?VP(n.concat(i.left,t.left),e):VP(t.left,e)}return i.right.push(t.right),i})})},t(0,ti.YM(e))().then(zn(ti.ri)))}}}},Hw=function(n){return function(t){var e=HO(n)(t);return function(n){return ti.Od(n)?e(n):HT}}},HC={URI:Hu,map:z9},HE={URI:Hu,bimap:z4,mapLeft:z6},Hk=function(n,t){return HS(function(){return n},function(){return t})},HW={URI:Hu,map:z9,bimap:z4,mapLeft:z6},HF=function(n,t){return(0,n9.getApplySemigroup)(CN)(VG(n,t))};function HU(n,t){return function(e){return e(t(e(n.empty)))}}function HP(n){return function(t){return[n(t),t]}}function HA(n){return function(t){return function(e){return[t(e),n(e)]}}}function HL(n){return function(t){return function(e){return t(n(e))}}}function HD(n){return{URI:Hq,_E:void 0,map:HN,extend:function(t,e){return function(r){return e(function(e){return t(n.concat(r,e))})}},extract:function(t){return t(n.empty)}}}var HN=function(n,t){return(0,tr.pipe)(n,Hj(t))},Hj=function(n){return function(t){return function(e){return n(t(e))}}},Hq="Traced",HK={URI:Hq,map:HN},HG=(0,tu.flap)(HK),HY=HK;function HB(n,t){return function(e){var r=n.traverse(e),u=t.traverse(e);return function(n){return function(t){return r(t,function(t){return u(t,n)})}}}}function HV(n,t){return function(e){var r=n.sequence(e),u=t.sequence(e);return function(t){return r(n.map(t,u))}}}function Hz(n,t){var e=(0,tu.getFunctorComposition)(n,t).map,r=vo(n,t),u=HB(n,t),i=HV(n,t);return{map:e,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(n){var t=u(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},sequence:function(n){var t=i(n);return function(n){return(0,tr.pipe)(n,t)}}}}function HH(n,t){return void 0===t&&(t=[]),{value:n,forest:t}}function H$(n){var t=function(e){return fT(e.forest)?"make(".concat(n.show(e.value),")"):"make(".concat(n.show(e.value),", [").concat(e.forest.map(t).join(", "),"])")};return{show:t}}function HX(n){var t,e=to(function(e,r){return n.equals(e.value,r.value)&&t.equals(e.forest,r.forest)});return t=pT(e),e}var HJ=function(n,t){for(var e,r="",u=t.length,i=0;i<u;i++){e=t[i];var o=i===u-1;r+=n+(o?"└":"├")+"─ "+e.value+HJ(n+(u>1&&!o?"│ ":" "),e.forest)}return r};function HZ(n){return HJ("\n",n)}function HQ(n){return n.value+HZ(n.forest)}function H0(n,t){var e=t(n);return{value:e[0],forest:H1(e[1],t)}}function H1(n,t){return n.map(function(n){return H0(n,t)})}function H2(n){var t=H5(n);return function(e,r){return n.chain(r(e),function(e){var u=e[0],i=e[1];return n.map(t(i,r),function(n){return{value:u,forest:n}})})}}function H5(n){var t=ph(n);return function(e,r){return(0,tr.pipe)(e,t(function(t){return H2(n)(t,r)}))}}function H7(n){var t=function(e){return n(e.value,e.forest.map(t))};return t}var H8=function(n,t){return(0,tr.pipe)(n,$c(t))},H3=function(n,t){return $r(n,function(n){return(0,tr.pipe)(t,$c(n))})},H9=function(n,t,e){return(0,tr.pipe)(n,$a(t,e))},H4=function(n){var t=$f(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},H6=function(n,t,e){return(0,tr.pipe)(n,$l(t,e))},$n=function(n,t){return(0,tr.pipe)(n,$u(t))},$t=function(n){var t=$d(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},$e=function(n){return function(t){return H3(t,n)}},$r=(0,tr.dual)(2,function(n,t){var e=t(n.value),r=e.value,u=e.forest;return{value:r,forest:(0,pS().concat)(u,n.forest.map($r(t)))}}),$u=function(n){return function(t){return{value:n(t),forest:t.forest.map($u(n))}}},$i=$u(tr.identity),$o=$r(tr.identity),$c=function(n){return function(t){return{value:n(t.value),forest:t.forest.map($c(n))}}},$a=function(n,t){return function(e){for(var r=t(n,e.value),u=e.forest.length,i=0;i<u;i++)r=(0,tr.pipe)(e.forest[i],$a(r,t));return r}},$f=function(n){return function(t){return $a(n.empty,function(e,r){return n.concat(e,t(r))})}},$l=function(n,t){return function(e){for(var r=n,u=e.forest.length,i=u-1;i>=0;i--)r=(0,tr.pipe)(e.forest[i],$l(r,t));return t(e.value,r)}},$p=function(n){return n.value},$d=function(n){var t=ph(n),e=function(r){return function(u){return n.ap(n.map(r(u.value),function(n){return function(t){return{value:n,forest:t}}}),(0,tr.pipe)(u.forest,t(e(r))))}};return e},$s=function(n){return $d(n)(tr.identity)},$h=function(n){return HH(n)},$m="Tree",$v={URI:$m,map:H8},$g=(0,tu.flap)($v),$y={URI:$m,of:$h},$b={URI:$m,map:H8,ap:H3},$_=(0,n9.apFirst)($b),$I=(0,n9.apSecond)($b),$R={URI:$m,map:H8,ap:H3,of:$h},$S={URI:$m,map:H8,ap:H3,chain:$r},$T={URI:$m,map:H8,ap:H3,of:$h,chain:$r},$x=(0,tt.chainFirst)($S),$M={URI:$m,reduce:H9,foldMap:H4,reduceRight:H6},$O={URI:$m,map:H8,reduce:H9,foldMap:H4,reduceRight:H6,traverse:$t,sequence:$s},$w={URI:$m,map:H8,extend:$n,extract:$p},$C=$h(ti.F4),$E=(0,tu.bindTo)($v),$k=(0,tu.let)($v),$W=(0,tt.bind)($S),$F=(0,n9.apS)($b);function $U(n){var t=function(e,r){return n.equals(e,r.value)||r.forest.some(function(n){return t(e,n)})};return t}var $P=function(n){return function(t){return n(t.value)||t.forest.some($P(n))}},$A=$r,$L={URI:$m,map:H8,of:$h,ap:H3,chain:$r,reduce:H9,foldMap:H4,reduceRight:H6,traverse:$t,sequence:$s,extract:$p,extend:$n},$D=NE,$N=Nk,$j=function(n){return[$N(n),$D(n)]};function $q(n){return{URI:Xu,_E:void 0,map:$H,ap:function(t,e){return[$D(t)($D(e)),n.concat($N(t),$N(e))]}}}var $K=function(n){return function(t){return[t,n.empty]}};function $G(n){var t=$q(n);return{URI:Xu,_E:void 0,map:t.map,ap:t.ap,of:$K(n)}}function $Y(n){var t=$q(n);return{URI:Xu,_E:void 0,map:t.map,ap:t.ap,chain:function(t,e){var r=e($D(t)),u=r[0],i=r[1];return[u,n.concat($N(t),i)]}}}function $B(n){var t=$Y(n);return{URI:Xu,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:$K(n)}}function $V(n){var t=$Y(n);return{URI:Xu,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,chainRec:function(t,e){for(var r=e(t),u=n.empty,i=$D(r);"Left"===i._tag;)u=n.concat(u,$N(r)),i=$D(r=e(i.left));return[i.right,n.concat(u,$N(r))]}}}var $z=function(n,t){return(0,tr.pipe)(n,$8(t))},$H=function(n,t){return(0,tr.pipe)(n,$5(t))},$$=function(n,t,e){return(0,tr.pipe)(n,$2(t,e))},$X=function(n,t){return(0,tr.pipe)(n,$7(t))},$J=function(n,t){return(0,tr.pipe)(n,$3(t))},$Z=function(n,t,e){return(0,tr.pipe)(n,Xn(t,e))},$Q=function(n){var t=$6(n);return function(n,e){return(0,tr.pipe)(n,t(e))}},$0=function(n,t,e){return(0,tr.pipe)(n,Xt(t,e))};function $1(n){var t=Xe(n);return function(n,e){return(0,tr.pipe)(n,t(e))}}var $2=function(n,t){return function(e){return[t($D(e)),n($N(e))]}},$5=function(n){return function(t){return[n($D(t)),$N(t)]}},$7=function(n){return function(t){return[$D(t),n($N(t))]}},$8=function(n){return function(t){return[$D(t),$N(n)]}},$3=function(n){return function(t){return[n(t),$N(t)]}},$9=$3(tr.identity),$4=NQ,$6=N2,Xn=N1,Xt=N5,Xe=function(n){return function(t){return function(e){return n.map(t($D(e)),function(n){return[n,$N(e)]})}}},Xr=function(n){return function(t){return n.map($D(t),function(n){return[n,$N(t)]})}},Xu="Tuple",Xi={URI:Xu,map:$H},Xo=(0,tu.flap)(Xi),Xc={URI:Xu,bimap:$$,mapLeft:$X},Xa={URI:Xu,compose:$z},Xf={URI:Xu,map:$H,extend:$J,extract:$4},Xl={URI:Xu,reduce:$Z,foldMap:$Q,reduceRight:$0},Xp={URI:Xu,map:$H,reduce:$Z,foldMap:$Q,reduceRight:$0,traverse:$1,sequence:Xr},Xd=$5,Xs=$7,Xh={URI:Xu,compose:$z,map:$H,bimap:$$,mapLeft:$X,extract:$4,extend:$J,reduce:$Z,foldMap:$Q,reduceRight:$0,traverse:$1,sequence:Xr};function Xm(n,t){var e=(0,tn.getApplicativeComposition)(t,mR.getApplicativeValidation(n));return{map:e.map,ap:e.ap,of:e.of,chain:function(n,e){return t.chain(n,function(n){return ti.nM(n)?t.of(ti.t$(n.left)):e(n.right)})},alt:function(e,r){return t.chain(e,function(e){return ti.tO(e)?t.of(e):t.map(r(),function(t){return ti.nM(t)?ti.t$(n.concat(e.left,t.left)):t})})}}}var Xv=t7(void 0),Xg={concat:Xv.concat,empty:void 0},Xy=function(n){return function(){return[void 0,n]}},Xb=function(n){return function(){var t=n(),e=t[0],r=t[1];return[[e,r],r]}},X_=function(n){return function(){var t=n(),e=t[0];return[e[0],(0,e[1])(t[1])]}},XI=function(n){return function(t){return function(){var e=t(),r=e[0],u=e[1];return[[r,n(u)],u]}}},XR=function(n){return function(t){return function(){var e=t();return[e[0],n(e[1])]}}},XS=function(n,t){return(0,tr.pipe)(n,XT(t))},XT=function(n){return function(t){return function(){var e=t(),r=e[0],u=e[1];return[n(r),u]}}},Xx="Writer",XM=function(n){return{URI:Xx,_E:void 0,of:function(t){return function(){return[t,n.empty]}}}},XO=function(n){return{URI:Xx,_E:void 0,map:XS,ap:function(t,e){return function(){var r=t(),u=r[0],i=r[1],o=e(),c=o[0],a=o[1];return[u(c),n.concat(i,a)]}}}},Xw=function(n){var t=XO(n),e=XM(n);return{URI:Xx,_E:void 0,map:XS,ap:t.ap,of:e.of}};function XC(n){return{URI:Xx,_E:void 0,map:XS,ap:XO(n).ap,chain:function(t,e){return function(){var r=t(),u=r[0],i=r[1],o=e(u)(),c=o[0],a=o[1];return[c,n.concat(i,a)]}}}}function XE(n){var t=Xw(n),e=XC(n);return{URI:Xx,_E:void 0,map:XS,ap:t.ap,of:t.of,chain:e.chain}}var Xk={URI:Xx,map:XS},XW=(0,tu.flap)(Xk),XF=function(n){return n()[0]},XU=function(n){return n()[1]},XP=function(n){return n()[0]},XA=function(n){return n()[1]},XL=Xk;function XD(n){var t=function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[e(t),r]})}};return{map:t,evalWriter:function(t){return n.map(t(),function(n){return n[0]})},execWriter:function(t){return n.map(t(),function(n){return n[0],n[1]})},tell:function(t){return function(){return n.of([void 0,t])}},listen:function(t){return function(){return n.map(t(),function(n){var t=n[0],e=n[1];return[[t,e],e]})}},pass:function(t){return function(){return n.map(t(),function(n){var t=n[0];return[t[0],(0,t[1])(n[1])]})}},listens:function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[[t,e(r)],r]})}},censor:function(t,e){return function(){return n.map(t(),function(n){return[n[0],e(n[1])]})}},getMonad:function(e){return{_E:void 0,map:t,of:function(t){return function(){return n.of([t,e.empty])}},ap:function(t,r){return function(){return n.chain(t(),function(t){var u=t[0],i=t[1];return n.map(r(),function(n){var t=n[0],r=n[1];return[u(t),e.concat(i,r)]})})}},chain:function(t,r){return function(){return n.chain(t(),function(t){var u=t[0],i=t[1];return n.map(r(u)(),function(n){var t=n[0],r=n[1];return[t,e.concat(i,r)]})})}}}}}}},58791:function(n,t,e){e.d(t,{D9:function(){return O},F2:function(){return d},F4:function(){return y},G:function(){return a},Gb:function(){return v},Od:function(){return h},WE:function(){return R},Wi:function(){return i},Xl:function(){return g},YM:function(){return m},YP:function(){return c},e$:function(){return b},hU:function(){return T},iu:function(){return x},nM:function(){return f},ny:function(){return S},on:function(){return w},pC:function(){return o},r1:function(){return _},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return I},we:function(){return M}});var r=e(38906),u=function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))},i=function(n){return"None"===n._tag},o=function(n){return"Some"===n._tag},c={_tag:"None"},a=function(n){return{_tag:"Some",value:n}},f=function(n){return"Left"===n._tag},l=function(n){return"Right"===n._tag},p=function(n){return{_tag:"Left",left:n}},d=function(n){return{_tag:"Right",right:n}},s=function(n){return[n]},h=function(n){return n.length>0},m=function(n){return n[0]},v=function(n){return n.slice(1)},g=[],y={},b=Object.prototype.hasOwnProperty,_=function(n){return u([n[0]],n.slice(1),!0)},I=function(n){return function(t,e){return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var i=t.apply(void 0,r);return n.fromEither(null==i?p(e.apply(void 0,r)):d(i))}}},R=function(n){return function(t,e){return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var o=t.apply(void 0,r);return n.fromEither(i(o)?p(e.apply(void 0,r)):d(o.value))}}},S=function(n,t){return(0,r.dual)(3,function(e,r,u){return t.flatMap(e,I(n)(r,u))})},T=function(n,t){return(0,r.dual)(3,function(e,r,u){return t.flatMap(e,R(n)(r,u))})},x=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},M=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},O=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},w=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},65182:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=e(21209),u=e(7313),i=e(46488);t.getApplicativeMonoid=function(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}},t.getApplicativeComposition=function(n,t){var e=(0,i.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,u.pipe)(n,o(t))}}}},21209:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var o=e(7313),c=i(e(16938));function a(n,t,e){return function(r){for(var u=Array(e.length+1),i=0;i<e.length;i++)u[i]=e[i];return u[e.length]=r,0===t?n.apply(null,u):a(n,t-1,u)}}t.ap=function(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}},t.apFirst=function(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}},t.apSecond=function(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}},t.apS=function(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}},t.getApplySemigroup=function(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}};var f={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(u){return[n,t,e,r,u]}}}}}};t.sequenceT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length,u=(c.has.call(f,r)||(f[r]=a(o.tuple,r-1,[])),f[r]),i=n.map(t[0],u),l=1;l<r;l++)i=n.ap(i,t[l]);return i}},t.sequenceS=function(n){return function(t){for(var e=Object.keys(t),r=e.length,u=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u}}};case 4:return function(t){return function(e){return function(r){return function(u){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i[n[3]]=u,i}}}};case 5:return function(t){return function(e){return function(r){return function(u){return function(i){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=u,o[n[4]]=i,o}}}}};default:return a(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var u={},i=0;i<t;i++)u[n[i]]=e[i];return u},t-1,[])}}(e),i=n.map(t[e[0]],u),o=1;o<r;o++)i=n.ap(i,t[e[o]]);return i}}},67236:function(n,t){function e(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(n){var t=e(n);return function(n){return function(e){return t(e,n)}}},t.tap=e,t.bind=function(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}},90187:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0,t.tailRec=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},29797:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.match=t.foldW=t.matchW=t.isRight=t.isLeft=t.fromOption=t.fromPredicate=t.FromEither=t.MonadThrow=t.throwError=t.ChainRec=t.Extend=t.extend=t.Alt=t.alt=t.altW=t.Bifunctor=t.mapLeft=t.bimap=t.Traversable=t.sequence=t.traverse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.Applicative=t.Apply=t.ap=t.apW=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getAltValidation=t.getApplicativeValidation=t.getWitherable=t.getFilterable=t.getCompactable=t.getSemigroup=t.getEq=t.getShow=t.URI=t.flatMap=t.right=t.left=void 0,t.chainFirstW=t.chainFirst=t.chain=t.chainW=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apSW=t.apS=t.bindW=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toError=t.toUnion=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.orElse=t.orElseW=t.swap=t.filterOrElseW=t.filterOrElse=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.chainOptionKW=t.chainOptionK=t.fromOptionK=t.duplicate=t.flatten=t.flattenW=t.tap=t.apSecondW=t.apSecond=t.apFirstW=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=void 0,t.getValidation=t.getValidationMonoid=t.getValidationSemigroup=t.getApplyMonoid=t.getApplySemigroup=t.either=t.stringifyJSON=t.parseJSON=void 0;var o=e(65182),c=e(21209),a=i(e(67236)),f=e(90187),l=e(62062),p=e(7313),d=e(46488),s=i(e(16938)),h=e(43090),m=e(62323);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(n,e){return(0,t.isLeft)(n)?n:e(n.right)});var v=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},g=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},y=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},b=function(n){return function(e,r){var u=(0,t.foldMap)(n);return(0,p.pipe)(e,u(r))}},_=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},I=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},R=function(n,e,r){return(0,p.pipe)(n,(0,t.bimap)(e,r))},S=function(n,e){return(0,p.pipe)(n,(0,t.mapLeft)(e))},T=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},M=function(n,e){return(0,f.tailRec)(e(n),function(n){return(0,t.isLeft)(n)?(0,t.right)((0,t.left)(n.left)):(0,t.isLeft)(n.right)?(0,t.left)(e(n.right.left)):(0,t.right)((0,t.right)(n.right.right))})};t.URI="Either",t.getShow=function(n,e){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(n.show(r.left),")"):"right(".concat(e.show(r.right),")")}}},t.getEq=function(n,e){return{equals:function(r,u){return r===u||((0,t.isLeft)(r)?(0,t.isLeft)(u)&&n.equals(r.left,u.left):(0,t.isRight)(u)&&e.equals(r.right,u.right))}}},t.getSemigroup=function(n){return{concat:function(e,r){return(0,t.isLeft)(r)?e:(0,t.isLeft)(e)?r:(0,t.right)(n.concat(e.right,r.right))}}},t.getCompactable=function(n){var e=(0,t.left)(n.empty);return{URI:t.URI,_E:void 0,compact:function(n){return(0,t.isLeft)(n)?n:"None"===n.right._tag?e:(0,t.right)(n.right.value)},separate:function(n){return(0,t.isLeft)(n)?(0,h.separated)(n,n):(0,t.isLeft)(n.right)?(0,h.separated)((0,t.right)(n.right.left),e):(0,h.separated)(e,(0,t.right)(n.right.right))}}},t.getFilterable=function(n){var e=(0,t.left)(n.empty),r=(0,t.getCompactable)(n),u=r.compact,i=r.separate;return{URI:t.URI,_E:void 0,map:v,compact:u,separate:i,filter:function(n,r){return(0,t.isLeft)(n)?n:r(n.right)?n:e},filterMap:function(n,r){if((0,t.isLeft)(n))return n;var u=r(n.right);return"None"===u._tag?e:(0,t.right)(u.value)},partition:function(n,r){return(0,t.isLeft)(n)?(0,h.separated)(n,n):r(n.right)?(0,h.separated)(e,(0,t.right)(n.right)):(0,h.separated)((0,t.right)(n.right),e)},partitionMap:function(n,r){if((0,t.isLeft)(n))return(0,h.separated)(n,n);var u=r(n.right);return(0,t.isLeft)(u)?(0,h.separated)((0,t.right)(u.left),e):(0,h.separated)(e,(0,t.right)(u.right))}}},t.getWitherable=function(n){var e=(0,t.getFilterable)(n),r=(0,t.getCompactable)(n);return{URI:t.URI,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:t.sequence,reduce:y,foldMap:b,reduceRight:_,wither:(0,m.witherDefault)(t.Traversable,r),wilt:(0,m.wiltDefault)(t.Traversable,r)}},t.getApplicativeValidation=function(n){return{URI:t.URI,_E:void 0,map:v,ap:function(e,r){return(0,t.isLeft)(e)?(0,t.isLeft)(r)?(0,t.left)(n.concat(e.left,r.left)):e:(0,t.isLeft)(r)?r:(0,t.right)(e.right(r.right))},of:t.of}},t.getAltValidation=function(n){return{URI:t.URI,_E:void 0,map:v,alt:function(e,r){if((0,t.isRight)(e))return e;var u=r();return(0,t.isLeft)(u)?(0,t.left)(n.concat(e.left,u.left)):u}}},t.map=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e.right))}},t.Functor={URI:t.URI,map:v},t.as=(0,p.dual)(2,(0,d.as)(t.Functor)),t.asUnit=(0,d.asUnit)(t.Functor),t.of=t.right,t.Pointed={URI:t.URI,of:t.of},t.apW=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.isLeft)(n)?n:(0,t.right)(e.right(n.right))}},t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:g},t.Applicative={URI:t.URI,map:v,ap:g,of:t.of},t.Chain={URI:t.URI,map:v,ap:g,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap},t.reduce=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(n,r.right)}},t.foldMap=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.empty:e(r.right)}}},t.reduceRight=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(r.right,n)}},t.Foldable={URI:t.URI,reduce:y,foldMap:b,reduceRight:_},t.traverse=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.of((0,t.left)(r.left)):n.map(e(r.right),t.right)}}},t.sequence=function(n){return function(e){return(0,t.isLeft)(e)?n.of((0,t.left)(e.left)):n.map(e.right,t.right)}},t.Traversable={URI:t.URI,map:v,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence},t.bimap=function(n,e){return function(r){return(0,t.isLeft)(r)?(0,t.left)(n(r.left)):(0,t.right)(e(r.right))}},t.mapLeft=function(n){return function(e){return(0,t.isLeft)(e)?(0,t.left)(n(e.left)):e}},t.Bifunctor={URI:t.URI,bimap:R,mapLeft:S},t.altW=function(n){return function(e){return(0,t.isLeft)(e)?n():e}},t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:T},t.extend=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e))}},t.Extend={URI:t.URI,map:v,extend:x},t.ChainRec={URI:t.URI,map:v,ap:g,chain:t.flatMap,chainRec:M},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap,throwError:t.throwError},t.FromEither={URI:t.URI,fromEither:p.identity},t.fromPredicate=(0,l.fromPredicate)(t.FromEither),t.fromOption=(0,l.fromOption)(t.FromEither),t.isLeft=s.isLeft,t.isRight=s.isRight,t.matchW=function(n,e){return function(r){return(0,t.isLeft)(r)?n(r.left):e(r.right)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e.right}},t.getOrElse=t.getOrElseW,t.flap=(0,d.flap)(t.Functor),t.apFirst=(0,c.apFirst)(t.Apply),t.apFirstW=t.apFirst,t.apSecond=(0,c.apSecond)(t.Apply),t.apSecondW=t.apSecond,t.tap=(0,p.dual)(2,a.tap(t.Chain)),t.flattenW=(0,t.flatMap)(p.identity),t.flatten=t.flattenW,t.duplicate=(0,t.extend)(p.identity),t.fromOptionK=(0,l.fromOptionK)(t.FromEither),t.chainOptionK=(0,l.chainOptionK)(t.FromEither,t.Chain),t.chainOptionKW=t.chainOptionK;var O={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(O),t.liftOption=s.liftOption(O);var w={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(O,w),t.flatMapOption=s.flatMapOption(O,w),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse,t.swap=function(n){return(0,t.isLeft)(n)?(0,t.right)(n.left):(0,t.left)(n.right)},t.orElseW=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e}},t.orElse=t.orElseW,t.fromNullable=function(n){return function(e){return null==e?(0,t.left)(n):(0,t.right)(e)}},t.tryCatch=function(n,e){try{return(0,t.right)(n())}catch(n){return(0,t.left)(e(n))}},t.tryCatchK=function(n,e){return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return(0,t.tryCatch)(function(){return n.apply(void 0,r)},e)}},t.fromNullableK=function(n){var e=(0,t.fromNullable)(n);return function(n){return(0,p.flow)(n,e)}},t.chainNullableK=function(n){var e=(0,t.fromNullableK)(n);return function(n){return(0,t.flatMap)(e(n))}},t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(n){return n instanceof Error?n:Error(String(n))},t.elem=function n(e){return function(r,u){if(void 0===u){var i=n(e);return function(n){return i(r,n)}}return!(0,t.isLeft)(u)&&e.equals(r,u.right)}},t.exists=function(n){return function(e){return!(0,t.isLeft)(e)&&n(e.right)}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var C=(0,d.let)(t.Functor);t.let=C,t.bind=a.bind(t.Chain),t.bindW=t.bind,t.apS=(0,c.apS)(t.Apply),t.apSW=t.apS,t.ApT=(0,t.of)(s.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(n){return function(e){var r=n(0,s.head(e));if((0,t.isLeft)(r))return r;for(var u=[r.right],i=1;i<e.length;i++){var o=n(i,e[i]);if((0,t.isLeft)(o))return o;u.push(o.right)}return(0,t.right)(u)}},t.traverseReadonlyArrayWithIndex=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return s.isNonEmpty(n)?e(n):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})},t.sequenceArray=(0,t.traverseArray)(p.identity),t.chainW=t.flatMap,t.chain=t.flatMap,t.chainFirst=t.tap,t.chainFirstW=t.tap,t.parseJSON=function(n,e){return(0,t.tryCatch)(function(){return JSON.parse(n)},e)},t.stringifyJSON=function(n,e){return(0,t.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e)},t.either={URI:t.URI,map:v,of:t.of,ap:g,chain:t.flatMap,reduce:y,foldMap:b,reduceRight:_,traverse:I,sequence:t.sequence,bimap:R,mapLeft:S,alt:T,extend:x,chainRec:M,throwError:t.throwError},t.getApplySemigroup=(0,c.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative),t.getValidationSemigroup=function(n,e){return(0,c.getApplySemigroup)((0,t.getApplicativeValidation)(n))(e)},t.getValidationMonoid=function(n,e){return(0,o.getApplicativeMonoid)((0,t.getApplicativeValidation)(n))(e)},t.getValidation=function(n){var e=(0,t.getApplicativeValidation)(n).ap,r=(0,t.getAltValidation)(n).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:R,mapLeft:S,reduce:y,foldMap:b,reduceRight:_,extend:x,traverse:I,sequence:t.sequence,chainRec:M,throwError:t.throwError,ap:e,alt:r}}},62062:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.tapEither=t.filterOrElse=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.chainOptionK=t.fromOptionK=t.fromPredicate=t.fromOption=void 0;var o=e(67236),c=e(7313),a=i(e(16938));function f(n){return function(t){return function(e){return n.fromEither(a.isNone(e)?a.left(t()):a.right(e.value))}}}function l(n){var t=f(n);return function(n){var e=t(n);return function(n){return(0,c.flow)(n,e)}}}function p(n){return function(t){return(0,c.flow)(t,n.fromEither)}}function d(n,t){var e=p(n),r=(0,o.tap)(t);return function(n,t){return r(n,e(t))}}t.fromOption=f,t.fromPredicate=function(n){return function(t,e){return function(r){return n.fromEither(t(r)?a.right(r):a.left(e(r)))}}},t.fromOptionK=l,t.chainOptionK=function(n,t){var e=l(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}},t.fromEitherK=p,t.chainEitherK=function(n,t){var e=p(n);return function(n){return function(r){return t.chain(r,e(n))}}},t.chainFirstEitherK=function(n,t){var e=d(n,t);return function(n){return function(t){return e(t,n)}}},t.filterOrElse=function(n,t){return function(e,r){return function(u){return t.chain(u,function(t){return n.fromEither(e(t)?a.right(t):a.left(r(t)))})}}},t.tapEither=d},46488:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=e(7313);function u(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function i(n){return function(t,e){return n.map(t,function(){return e})}}t.map=u,t.flap=function(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}},t.bindTo=function(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}},t.let=function(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}},t.getFunctorComposition=function(n,t){var e=u(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}},t.as=i,t.asUnit=function(n){var t=i(n);return function(n){return t(n,void 0)}}},43090:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.right=t.left=t.flap=t.Functor=t.Bifunctor=t.URI=t.bimap=t.mapLeft=t.map=t.separated=void 0;var r=e(7313),u=e(46488);t.separated=function(n,t){return{left:n,right:t}},t.map=function(n){return function(e){return(0,t.separated)((0,t.left)(e),n((0,t.right)(e)))}},t.mapLeft=function(n){return function(e){return(0,t.separated)(n((0,t.left)(e)),(0,t.right)(e))}},t.bimap=function(n,e){return function(r){return(0,t.separated)(n((0,t.left)(r)),e((0,t.right)(r)))}},t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:function(n,e){return(0,r.pipe)(n,(0,t.mapLeft)(e))},bimap:function(n,e,u){return(0,r.pipe)(n,(0,t.bimap)(e,u))}},t.Functor={URI:t.URI,map:function(n,e){return(0,r.pipe)(n,(0,t.map)(e))}},t.flap=(0,u.flap)(t.Functor),t.left=function(n){return n.left},t.right=function(n){return n.right}},62323:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,u)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),u=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),i=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return u(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var o=i(e(16938));t.wiltDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.separate)}}},t.witherDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,u){return e.map(r(n,u),t.compact)}}},t.filterE=function(n){return function(t){var e=n.wither(t);return function(n){return function(r){return e(r,function(e){return t.map(n(e),function(n){return n?o.some(e):o.none})})}}}}},7313:function(n,t){var e=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};function r(n){return n}function u(n){return function(){return n}}function i(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return c(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return a(c(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}}function o(n){throw Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.dual=t.getEndomorphismMonoid=t.not=t.SK=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.unsafeCoerce=t.identity=t.apply=t.getRing=t.getSemiring=t.getMonoid=t.getSemigroup=t.getBooleanAlgebra=void 0,t.getBooleanAlgebra=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},t.getSemigroup=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},t.getMonoid=function(n){var e=(0,t.getSemigroup)(n);return function(){return{concat:e().concat,empty:function(){return n.empty}}}},t.getSemiring=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},t.getRing=function(n){var e=(0,t.getSemiring)(n);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},t.apply=function(n){return function(t){return t(n)}},t.identity=r,t.unsafeCoerce=r,t.constant=u,t.constTrue=u(!0),t.constFalse=u(!1),t.constNull=u(null),t.constUndefined=u(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}},t.flow=i,t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=o,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,c,a){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return c(o(i(u(r(e(t(n)))))));case 9:return a(c(o(i(u(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=o,t.SK=function(n,t){return t},t.not=function(n){return function(t){return!n(t)}},t.getEndomorphismMonoid=function(){return{concat:function(n,t){return i(n,t)},empty:r}},t.dual=function(n,t){var r="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return r(arguments)?t.apply(this,n):function(r){return t.apply(void 0,e([r],n,!1))}}}},16938:function(n,t,e){var r=this&&this.__spreadArray||function(n,t,e){if(e||2==arguments.length)for(var r,u=0,i=t.length;u<i;u++)!r&&u in t||(r||(r=Array.prototype.slice.call(t,0,u)),r[u]=t[u]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flatMapReader=t.flatMapTask=t.flatMapIO=t.flatMapEither=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.fromReadonlyNonEmptyArray=t.has=t.emptyRecord=t.emptyReadonlyArray=t.tail=t.head=t.isNonEmpty=t.singleton=t.right=t.left=t.isRight=t.isLeft=t.some=t.none=t.isSome=t.isNone=void 0;var u=e(7313);t.isNone=function(n){return"None"===n._tag},t.isSome=function(n){return"Some"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.isLeft=function(n){return"Left"===n._tag},t.isRight=function(n){return"Right"===n._tag},t.left=function(n){return{_tag:"Left",left:n}},t.right=function(n){return{_tag:"Right",right:n}},t.singleton=function(n){return[n]},t.isNonEmpty=function(n){return n.length>0},t.head=function(n){return n[0]},t.tail=function(n){return n.slice(1)},t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty,t.fromReadonlyNonEmptyArray=function(n){return r([n[0]],n.slice(1),!0)},t.liftNullable=function(n){return function(e,r){return function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];var o=e.apply(void 0,u);return n.fromEither(null==o?(0,t.left)(r.apply(void 0,u)):(0,t.right)(o))}}},t.liftOption=function(n){return function(e,r){return function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];var o=e.apply(void 0,u);return n.fromEither((0,t.isNone)(o)?(0,t.left)(r.apply(void 0,u)):(0,t.right)(o.value))}}},t.flatMapNullable=function(n,e){return(0,u.dual)(3,function(r,u,i){return e.flatMap(r,(0,t.liftNullable)(n)(u,i))})},t.flatMapOption=function(n,e){return(0,u.dual)(3,function(r,u,i){return e.flatMap(r,(0,t.liftOption)(n)(u,i))})},t.flatMapEither=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},t.flatMapIO=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},t.flatMapTask=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},t.flatMapReader=function(n,t){return(0,u.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},45298:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}});var r=d(e(30770)),u=d(e(10619)),i=d(e(34440)),o=d(e(42992)),c=d(e(91799)),a=d(e(39983)),f=d(e(70879)),l=d(e(24103)),p=d(e(47377));function d(n){return n&&n.__esModule?n:{default:n}}},98069:function(n,t){function e(n){return(n+64>>>9<<4)+14+1}function r(n,t){let e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function u(n,t,e,u,i,o){var c;return r((c=r(r(t,n),r(u,o)))<<i|c>>>32-i,e)}function i(n,t,e,r,i,o,c){return u(t&e|~t&r,n,t,i,o,c)}function o(n,t,e,r,i,o,c){return u(t&r|e&~r,n,t,i,o,c)}function c(n,t,e,r,i,o,c){return u(t^e^r,n,t,i,o,c)}function a(n,t,e,r,i,o,c){return u(e^(t|~r),n,t,i,o,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e)}return function(n){let t=[],e=32*n.length,r="0123456789abcdef";for(let u=0;u<e;u+=8){let e=n[u>>5]>>>u%32&255,i=parseInt(r.charAt(e>>>4&15)+r.charAt(15&e),16);t.push(i)}return t}(function(n,t){n[t>>5]|=128<<t%32,n[e(t)-1]=t;let u=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<n.length;t+=16){let e=u,d=f,s=l,h=p;u=i(u,f,l,p,n[t],7,-680876936),p=i(p,u,f,l,n[t+1],12,-389564586),l=i(l,p,u,f,n[t+2],17,606105819),f=i(f,l,p,u,n[t+3],22,-1044525330),u=i(u,f,l,p,n[t+4],7,-176418897),p=i(p,u,f,l,n[t+5],12,1200080426),l=i(l,p,u,f,n[t+6],17,-1473231341),f=i(f,l,p,u,n[t+7],22,-45705983),u=i(u,f,l,p,n[t+8],7,1770035416),p=i(p,u,f,l,n[t+9],12,-1958414417),l=i(l,p,u,f,n[t+10],17,-42063),f=i(f,l,p,u,n[t+11],22,-1990404162),u=i(u,f,l,p,n[t+12],7,1804603682),p=i(p,u,f,l,n[t+13],12,-40341101),l=i(l,p,u,f,n[t+14],17,-1502002290),f=i(f,l,p,u,n[t+15],22,1236535329),u=o(u,f,l,p,n[t+1],5,-165796510),p=o(p,u,f,l,n[t+6],9,-1069501632),l=o(l,p,u,f,n[t+11],14,643717713),f=o(f,l,p,u,n[t],20,-373897302),u=o(u,f,l,p,n[t+5],5,-701558691),p=o(p,u,f,l,n[t+10],9,38016083),l=o(l,p,u,f,n[t+15],14,-660478335),f=o(f,l,p,u,n[t+4],20,-405537848),u=o(u,f,l,p,n[t+9],5,568446438),p=o(p,u,f,l,n[t+14],9,-1019803690),l=o(l,p,u,f,n[t+3],14,-187363961),f=o(f,l,p,u,n[t+8],20,1163531501),u=o(u,f,l,p,n[t+13],5,-1444681467),p=o(p,u,f,l,n[t+2],9,-51403784),l=o(l,p,u,f,n[t+7],14,1735328473),f=o(f,l,p,u,n[t+12],20,-1926607734),u=c(u,f,l,p,n[t+5],4,-378558),p=c(p,u,f,l,n[t+8],11,-2022574463),l=c(l,p,u,f,n[t+11],16,1839030562),f=c(f,l,p,u,n[t+14],23,-35309556),u=c(u,f,l,p,n[t+1],4,-1530992060),p=c(p,u,f,l,n[t+4],11,1272893353),l=c(l,p,u,f,n[t+7],16,-155497632),f=c(f,l,p,u,n[t+10],23,-1094730640),u=c(u,f,l,p,n[t+13],4,681279174),p=c(p,u,f,l,n[t],11,-358537222),l=c(l,p,u,f,n[t+3],16,-722521979),f=c(f,l,p,u,n[t+6],23,76029189),u=c(u,f,l,p,n[t+9],4,-640364487),p=c(p,u,f,l,n[t+12],11,-421815835),l=c(l,p,u,f,n[t+15],16,530742520),f=c(f,l,p,u,n[t+2],23,-995338651),u=a(u,f,l,p,n[t],6,-198630844),p=a(p,u,f,l,n[t+7],10,1126891415),l=a(l,p,u,f,n[t+14],15,-1416354905),f=a(f,l,p,u,n[t+5],21,-57434055),u=a(u,f,l,p,n[t+12],6,1700485571),p=a(p,u,f,l,n[t+3],10,-1894986606),l=a(l,p,u,f,n[t+10],15,-1051523),f=a(f,l,p,u,n[t+1],21,-2054922799),u=a(u,f,l,p,n[t+8],6,1873313359),p=a(p,u,f,l,n[t+15],10,-30611744),l=a(l,p,u,f,n[t+6],15,-1560198380),f=a(f,l,p,u,n[t+13],21,1309151649),u=a(u,f,l,p,n[t+4],6,-145523070),p=a(p,u,f,l,n[t+11],10,-1120210379),l=a(l,p,u,f,n[t+2],15,718787259),f=a(f,l,p,u,n[t+9],21,-343485551),u=r(u,e),f=r(f,d),l=r(l,s),p=r(p,h)}return[u,f,l,p]}(function(n){if(0===n.length)return[];let t=8*n.length,r=new Uint32Array(e(t));for(let e=0;e<t;e+=8)r[e>>5]|=(255&n[e/8])<<e%32;return r}(n),8*n.length))}},66232:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let e="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:e}},91799:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},47377:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(70879))&&r.__esModule?r:{default:r};t.default=function(n){let t;if(!(0,u.default)(n))throw TypeError("Invalid UUID");let e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e}},90708:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},84277:function(n,t){let e;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)};let r=new Uint8Array(16)},91234:function(n,t){function e(n,t){return n<<t|n>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof n){let t=unescape(encodeURIComponent(n));n=[];for(let e=0;e<t.length;++e)n.push(t.charCodeAt(e))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);let u=Math.ceil((n.length/4+2)/16),i=Array(u);for(let t=0;t<u;++t){let e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=n[64*t+4*r]<<24|n[64*t+4*r+1]<<16|n[64*t+4*r+2]<<8|n[64*t+4*r+3];i[t]=e}i[u-1][14]=(n.length-1)*8/4294967296,i[u-1][14]=Math.floor(i[u-1][14]),i[u-1][15]=(n.length-1)*8&4294967295;for(let n=0;n<u;++n){let u=new Uint32Array(80);for(let t=0;t<16;++t)u[t]=i[n][t];for(let n=16;n<80;++n)u[n]=e(u[n-3]^u[n-8]^u[n-14]^u[n-16],1);let o=r[0],c=r[1],a=r[2],f=r[3],l=r[4];for(let n=0;n<80;++n){let r=Math.floor(n/20),i=e(o,5)+function(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}(r,c,a,f)+l+t[r]+u[n]>>>0;l=f,f=a,a=e(c,30)>>>0,c=o,o=i}r[0]=r[0]+o>>>0,r[1]=r[1]+c>>>0,r[2]=r[2]+a>>>0,r[3]=r[3]+f>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},24103:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r,u=(r=e(70879))&&r.__esModule?r:{default:r};let i=[];for(let n=0;n<256;++n)i.push((n+256).toString(16).slice(1));function o(n,t=0){return i[n[t+0]]+i[n[t+1]]+i[n[t+2]]+i[n[t+3]]+"-"+i[n[t+4]]+i[n[t+5]]+"-"+i[n[t+6]]+i[n[t+7]]+"-"+i[n[t+8]]+i[n[t+9]]+"-"+i[n[t+10]]+i[n[t+11]]+i[n[t+12]]+i[n[t+13]]+i[n[t+14]]+i[n[t+15]]}t.default=function(n,t=0){let e=o(n,t);if(!(0,u.default)(e))throw TypeError("Stringified UUID is invalid");return e}},30770:function(n,t,e){let r,u;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=e(84277))&&i.__esModule?i:{default:i},c=e(24103);let a=0,f=0;t.default=function(n,t,e){let i=t&&e||0,l=t||Array(16),p=(n=n||{}).node||r,d=void 0!==n.clockseq?n.clockseq:u;if(null==p||null==d){let t=n.random||(n.rng||o.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=u=(t[6]<<8|t[7])&16383)}let s=void 0!==n.msecs?n.msecs:Date.now(),h=void 0!==n.nsecs?n.nsecs:f+1,m=s-a+(h-f)/1e4;if(m<0&&void 0===n.clockseq&&(d=d+1&16383),(m<0||s>a)&&void 0===n.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");a=s,f=h,u=d;let v=((268435455&(s+=122192928e5))*1e4+h)%4294967296;l[i++]=v>>>24&255,l[i++]=v>>>16&255,l[i++]=v>>>8&255,l[i++]=255&v;let g=s/4294967296*1e4&268435455;l[i++]=g>>>8&255,l[i++]=255&g,l[i++]=g>>>24&15|16,l[i++]=g>>>16&255,l[i++]=d>>>8|128,l[i++]=255&d;for(let n=0;n<6;++n)l[i+n]=p[n];return t||(0,c.unsafeStringify)(l)}},10619:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(17853)),u=i(e(98069));function i(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v3",48,u.default);t.default=o},17853:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(n,t,e){function r(n,r,o,c){var a;if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));let t=[];for(let e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}(n)),"string"==typeof r&&(r=(0,i.default)(r)),(null===(a=r)||void 0===a?void 0:a.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+n.length);if(f.set(r),f.set(n,r.length),(f=e(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,o){c=c||0;for(let n=0;n<16;++n)o[c+n]=f[n];return o}return(0,u.unsafeStringify)(f)}try{r.name=n}catch(n){}return r.DNS=o,r.URL=c,r};var r,u=e(24103),i=(r=e(47377))&&r.__esModule?r:{default:r};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=c},34440:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e(66232)),u=o(e(84277)),i=e(24103);function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t,e){if(r.default.randomUUID&&!t&&!n)return r.default.randomUUID();let o=(n=n||{}).random||(n.rng||u.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){e=e||0;for(let n=0;n<16;++n)t[e+n]=o[n];return t}return(0,i.unsafeStringify)(o)}},42992:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(17853)),u=i(e(91234));function i(n){return n&&n.__esModule?n:{default:n}}let o=(0,r.default)("v5",80,u.default);t.default=o},70879:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(90708))&&r.__esModule?r:{default:r};t.default=function(n){return"string"==typeof n&&u.default.test(n)}},39983:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,u=(r=e(70879))&&r.__esModule?r:{default:r};t.default=function(n){if(!(0,u.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}},16:function(n,t,e){e.d(t,{SH:function(){return B}}),(r=i||(i={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(u=o||(o={})).Ping="ping",u.SetSliceZone="setSliceZone",u.ScrollToSlice="scrollToSlice";var r,u,i,o,c,a,f,l,p,d=e(80734);(c||(c={})).Connect="connect",(a||(a={})).Ready="ready";var s=Object.defineProperty,h=(n,t,e)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,m=(n,t,e)=>(h(n,"symbol"!=typeof t?t+"":t,e),e);class v extends Error{constructor(n){super(n.msg),m(this,"response"),this.response=n}}class g extends Error{constructor(){super("Connection timed out")}}class y extends Error{constructor(n){super("Too many concurrent requests"),m(this,"request"),this.request=n}}class b extends Error{constructor(n){super(`Request \`${n.requestID}\` timed out`),m(this,"request"),this.request=n}}class _ extends Error{}class I extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let S=0,T=(n,t,e="")=>({requestID:`${e}${S++}`,type:n,data:t}),x=(n,t,e=200)=>{var r;if(e>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},M=(n,t,e=400)=>{var r;if(e<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=d.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},O=n=>{if("object"!=typeof n||null===n)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof n}\``);if(Object.keys(n).every(n=>["requestID","type","data","status","msg","error"].includes(n))){if("string"!=typeof n.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof n.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(n)}`);return n},w=n=>"type"in n,C=n=>!("type"in n),E=n=>C(n)&&!("error"in n);var k=Object.defineProperty,W=(n,t,e)=>t in n?k(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,F=(n,t,e)=>(W(n,"symbol"!=typeof t?t+"":t,e),e);let U={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class P{constructor(n,t){F(this,"requestHandlers"),F(this,"options"),F(this,"_port",null),F(this,"_pendingRequests",new Map),this.requestHandlers=n,this.options={...U,...t}}get port(){if(!this._port)throw new I;return this._port}set port(n){this._port&&(this._port.onmessage=null),this._port=n,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(n,t){return T(n,t,this.options.requestIDPrefix)}async onMessage(n){this.options.debug&&console.debug(n.data);try{let t=O(n.data);if(w(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:M.bind(this,t.requestID)});this.postResponse(n)}catch(n){this.postResponse(M(t.requestID,n,500))}else this.postResponse(M(t.requestID,void 0,501))}else this._pendingRequests.has(t.requestID)?(this._pendingRequests.get(t.requestID)(t),this._pendingRequests.delete(t.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(t)}`)}catch(n){if(n instanceof TypeError)console.warn(n.message);else throw n}}postRequest(n,t=n=>this.port.postMessage(n),e={}){if(this.options.debug&&console.debug(n),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new y(n);return new Promise((r,u)=>{let i=setTimeout(()=>{this._pendingRequests.has(n.requestID)&&this._pendingRequests.delete(n.requestID),u(new b(n))},e.timeout||this.options.defaultTimeout);this._pendingRequests.set(n.requestID,n=>{clearTimeout(i),E(n)?r(n):u(new v(n))}),t(n)})}postResponse(n,t=n=>this.port.postMessage(n)){return this.options.debug&&console.debug(n),t(n),n}}var A=Object.defineProperty,L=(n,t,e)=>t in n?A(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,D=(n,t,e)=>(L(n,"symbol"!=typeof t?t+"":t,e),e);let N={connectTimeout:2e4,requestIDPrefix:"emitter-"};class j extends P{constructor(n,t,e){super(t,{...N,...e}),D(this,"_target"),D(this,"_channel",null),D(this,"_receiverReady",""),D(this,"_receiverReadyCallback",null),D(this,"_connected",!1),this._target=n,window.addEventListener("message",n=>{this._onPublicMessage(n)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(n){this._channel=n,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(n={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,e)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return e(Error("Target window is not available"));let r=setTimeout(()=>{e(new g)},this.options.connectTimeout),u=async()=>{clearTimeout(r),this.channel=new MessageChannel;let e=this.createRequestMessage(c.Connect,n),u=await this.postRequest(e,n=>{this._target.contentWindow.postMessage(n,"*",[this.channel.port2])});this.postResponse(x(this._receiverReady,void 0),n=>{this._target.contentWindow.postMessage(n,"*")}),this._connected=!0,t(u)};this._receiverReady?u():this._receiverReadyCallback=u},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(n){if(n.source===this._target.contentWindow)try{let t=O(n.data);if(w(t)){if(this.options.debug&&console.debug(n.data),t.type===a.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(M(t.requestID,void 0),t=>{n.source.postMessage(t,n.origin)})}}catch(n){if(n instanceof TypeError);else throw n}}postFormattedRequest(n,t,e={}){if(!this._connected)throw new _("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(n,t),void 0,e)}}var q=Object.defineProperty,K=(n,t,e)=>t in n?q(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,G=(n,t,e)=>(K(n,"symbol"!=typeof t?t+"":t,e),e);let Y={requestIDPrefix:"client-"};class B extends j{constructor(n,t,e){var r,u;let c=(null==e?void 0:e.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(n,{[i.SetActiveSlice]:(n,t)=>t.success(),[i.SetSliceZoneSize]:(n,t)=>t.success(),...t},{...Y,...e,debug:c}),G(this,f,async()=>await this.postFormattedRequest(o.Ping)),G(this,l,async n=>await this.postFormattedRequest(o.SetSliceZone,n)),G(this,p,async n=>await this.postFormattedRequest(o.ScrollToSlice,n)),c&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(u=window.prismic.sliceSimulator).client||(u.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=o.Ping,l=o.SetSliceZone,p=o.ScrollToSlice,i.SetActiveSlice,i.SetSliceZoneSize},25865:function(n,t,e){e.d(t,{S:function(){return h}});var r=e(78298),u=e(681),i=e(21895),o=e(63248),c=class extends o.l{constructor(n={}){super(),this.config=n,this.#n=new Map}#n;build(n,t,e){let i=t.queryKey,o=t.queryHash??(0,r.Rm)(i,t),c=this.get(o);return c||(c=new u.A({cache:this,queryKey:i,queryHash:o,options:n.defaultQueryOptions(t),state:e,defaultOptions:n.getQueryDefaults(i)}),this.add(c)),c}add(n){this.#n.has(n.queryHash)||(this.#n.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){let t=this.#n.get(n.queryHash);t&&(n.destroy(),t===n&&this.#n.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){i.V.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#n.get(n)}getAll(){return[...this.#n.values()]}find(n){let t={exact:!0,...n};return this.getAll().find(n=>(0,r._x)(t,n))}findAll(n={}){let t=this.getAll();return Object.keys(n).length>0?t.filter(t=>(0,r._x)(n,t)):t}notify(n){i.V.batch(()=>{this.listeners.forEach(t=>{t(n)})})}onFocus(){i.V.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){i.V.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},a=e(80457),f=class extends o.l{constructor(n={}){super(),this.config=n,this.#t=new Map,this.#e=Date.now()}#t;#e;build(n,t,e){let r=new a.m({mutationCache:this,mutationId:++this.#e,options:n.defaultMutationOptions(t),state:e});return this.add(r),r}add(n){let t=l(n),e=this.#t.get(t)??[];e.push(n),this.#t.set(t,e),this.notify({type:"added",mutation:n})}remove(n){let t=l(n);if(this.#t.has(t)){let e=this.#t.get(t)?.filter(t=>t!==n);e&&(0===e.length?this.#t.delete(t):this.#t.set(t,e))}this.notify({type:"removed",mutation:n})}canRun(n){let t=this.#t.get(l(n))?.find(n=>"pending"===n.state.status);return!t||t===n}runNext(n){let t=this.#t.get(l(n))?.find(t=>t!==n&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){i.V.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}getAll(){return[...this.#t.values()].flat()}find(n){let t={exact:!0,...n};return this.getAll().find(n=>(0,r.X7)(t,n))}findAll(n={}){return this.getAll().filter(t=>(0,r.X7)(n,t))}notify(n){i.V.batch(()=>{this.listeners.forEach(t=>{t(n)})})}resumePausedMutations(){let n=this.getAll().filter(n=>n.state.isPaused);return i.V.batch(()=>Promise.all(n.map(n=>n.continue().catch(r.ZT))))}};function l(n){return n.options.scope?.id??String(n.mutationId)}var p=e(25777),d=e(63965);function s(n,{pages:t,pageParams:e}){let r=t.length-1;return t.length>0?n.getNextPageParam(t[r],t,e[r],e):void 0}var h=class{#r;#u;#i;#o;#c;#a;#f;#l;constructor(n={}){this.#r=n.queryCache||new c,this.#u=n.mutationCache||new f,this.#i=n.defaultOptions||{},this.#o=new Map,this.#c=new Map,this.#a=0}mount(){this.#a++,1===this.#a&&(this.#f=p.j.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=d.N.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#a--,0===this.#a&&(this.#f?.(),this.#f=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#r.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#u.findAll({...n,status:"pending"}).length}getQueryData(n){let t=this.defaultQueryOptions({queryKey:n});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(n){let t=this.getQueryData(n.queryKey);if(void 0===t)return this.fetchQuery(n);{let e=this.defaultQueryOptions(n),u=this.#r.build(this,e);return n.revalidateIfStale&&u.isStaleByTime((0,r.KC)(e.staleTime,u))&&this.prefetchQuery(e),Promise.resolve(t)}}getQueriesData(n){return this.#r.findAll(n).map(({queryKey:n,state:t})=>[n,t.data])}setQueryData(n,t,e){let u=this.defaultQueryOptions({queryKey:n}),i=this.#r.get(u.queryHash),o=i?.state.data,c=(0,r.SE)(t,o);if(void 0!==c)return this.#r.build(this,u).setData(c,{...e,manual:!0})}setQueriesData(n,t,e){return i.V.batch(()=>this.#r.findAll(n).map(({queryKey:n})=>[n,this.setQueryData(n,t,e)]))}getQueryState(n){let t=this.defaultQueryOptions({queryKey:n});return this.#r.get(t.queryHash)?.state}removeQueries(n){let t=this.#r;i.V.batch(()=>{t.findAll(n).forEach(n=>{t.remove(n)})})}resetQueries(n,t){let e=this.#r,r={type:"active",...n};return i.V.batch(()=>(e.findAll(n).forEach(n=>{n.reset()}),this.refetchQueries(r,t)))}cancelQueries(n={},t={}){let e={revert:!0,...t};return Promise.all(i.V.batch(()=>this.#r.findAll(n).map(n=>n.cancel(e)))).then(r.ZT).catch(r.ZT)}invalidateQueries(n={},t={}){return i.V.batch(()=>{if(this.#r.findAll(n).forEach(n=>{n.invalidate()}),"none"===n.refetchType)return Promise.resolve();let e={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(e,t)})}refetchQueries(n={},t){let e={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(i.V.batch(()=>this.#r.findAll(n).filter(n=>!n.isDisabled()).map(n=>{let t=n.fetch(void 0,e);return e.throwOnError||(t=t.catch(r.ZT)),"paused"===n.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(n){let t=this.defaultQueryOptions(n);void 0===t.retry&&(t.retry=!1);let e=this.#r.build(this,t);return e.isStaleByTime((0,r.KC)(t.staleTime,e))?e.fetch(t):Promise.resolve(e.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(n){var t;return n.behavior=(t=n.pages,{onFetch:(n,e)=>{let u=async()=>{let e;let u=n.options,i=n.fetchOptions?.meta?.fetchMore?.direction,o=n.state.data?.pages||[],c=n.state.data?.pageParams||[],a=!1,f=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(n.signal.aborted?a=!0:n.signal.addEventListener("abort",()=>{a=!0}),n.signal)})},l=(0,r.cG)(n.options,n.fetchOptions),p=async(t,e,u)=>{if(a)return Promise.reject();if(null==e&&t.pages.length)return Promise.resolve(t);let i={queryKey:n.queryKey,pageParam:e,direction:u?"backward":"forward",meta:n.options.meta};f(i);let o=await l(i),{maxPages:c}=n.options,p=u?r.Ht:r.VX;return{pages:p(t.pages,o,c),pageParams:p(t.pageParams,e,c)}};if(i&&o.length){let n="backward"===i,t={pages:o,pageParams:c},r=(n?function(n,{pages:t,pageParams:e}){return t.length>0?n.getPreviousPageParam?.(t[0],t,e[0],e):void 0}:s)(u,t);e=await p(t,r,n)}else{e=await p({pages:[],pageParams:[]},c[0]??u.initialPageParam);let n=t??o.length;for(let t=1;t<n;t++){let n=s(u,e);if(null==n)break;e=await p(e,n)}}return e};n.options.persister?n.fetchFn=()=>n.options.persister?.(u,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},e):n.fetchFn=u}}),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return d.N.isOnline()?this.#u.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#u}getDefaultOptions(){return this.#i}setDefaultOptions(n){this.#i=n}setQueryDefaults(n,t){this.#o.set((0,r.Ym)(n),{queryKey:n,defaultOptions:t})}getQueryDefaults(n){let t=[...this.#o.values()],e={};return t.forEach(t=>{(0,r.to)(n,t.queryKey)&&(e={...e,...t.defaultOptions})}),e}setMutationDefaults(n,t){this.#c.set((0,r.Ym)(n),{mutationKey:n,defaultOptions:t})}getMutationDefaults(n){let t=[...this.#c.values()],e={};return t.forEach(t=>{(0,r.to)(n,t.mutationKey)&&(e={...e,...t.defaultOptions})}),e}defaultQueryOptions(n){if(n._defaulted)return n;let t={...this.#i.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(n){return n?._defaulted?n:{...this.#i.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#r.clear(),this.#u.clear()}}},1710:function(n){n.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')},90939:function(n){n.exports=JSON.parse('[{"url":"https://twitter.com/prismicio/status/1356293316158095361","oembed":{"embed_url":"https://twitter.com/prismicio/status/1356293316158095361","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.<br><br>But, what makes <a href=\\"https://twitter.com/GatsbyJS?ref_src=twsrc%5Etfw\\">@GatsbyJS</a> so popular?<br><br>Here are some of <a href=\\"https://twitter.com/mxstbr?ref_src=twsrc%5Etfw\\">@mxstbr</a>'s thoughts on Gatsby's success and how they're improving developer experience.<a href=\\"https://t.co/ZjCPvsWWUD\\">https://t.co/ZjCPvsWWUD</a> <a href=\\"https://t.co/EQqzJpeNKl\\">pic.twitter.com/EQqzJpeNKl</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1356293316158095361?ref_src=twsrc%5Etfw\\">February 1, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/timbenniks/status/1304146886832594944","oembed":{"embed_url":"https://twitter.com/timbenniks/status/1304146886832594944","author_name":"Tim Benniks","author_url":"https://twitter.com/timbenniks","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">I’ve been diving deep on <a href=\\"https://twitter.com/prismicio?ref_src=twsrc%5Etfw\\">@prismicio</a> <a href=\\"https://twitter.com/hashtag/slicemachine?src=hash&ref_src=twsrc%5Etfw\\">#slicemachine</a> today. I made all my own components and I used custom slices. It works like a charm with <a href=\\"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw\\">@nuxt_js</a>. Also\\": I’m coding with this view. <a href=\\"https://t.co/F0I8X9gz39\\">pic.twitter.com/F0I8X9gz39</a></p>— Tim Benniks (@timbenniks) <a href=\\"https://twitter.com/timbenniks/status/1304146886832594944?ref_src=twsrc%5Etfw\\">September 10, 2020</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354112310252630016","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354112310252630016","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">We're launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow's Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can't tell you any further details for now, but here's a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354112310252630016?ref_src=twsrc%5Etfw\\">January 26, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354835716430319617","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354835716430319617","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Does anyone want to create a wildly popular website for discussing 'Wall Street Bets' using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&ref_src=twsrc%5Etfw\\">#reddit</a> and we won't make it private.<br><br>Just asking for some friends...</p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354835716430319617?ref_src=twsrc%5Etfw\\">January 28, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}}]')},8593:function(n){n.exports=JSON.parse('[{"name":"Moulin Rouge","imageUrl":"https://lh4.googleusercontent.com/proxy/xJPIDVmq8AZjNlaDRkNadqW8ojW8e3Xu81Fgf3WuaVkwp_8d-hho0xbZHGeMpzIX58tV8HCTeb6nttHMr5sJiYKIr-Nmm4IQ2OVgkisg5wXt_6dhpLEeQhjNvBzZD2poV3AHZMuhb0cOUVdM-htjlyGJ2aLz6A=w408-h272-k-no","points":{"latitude":48.8841267,"longitude":2.3300579}},{"name":"Prismic Headquarters","imageUrl":"/prismic-headquarters.png","points":{"latitude":48.8703712,"longitude":2.3865198}},{"name":"Eiffel Tower","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipPs_9Q0oquXoQMMEg45fpFd_Hkn8B9ljATTaDRY=w408-h295-k-no","points":{"latitude":48.8583736,"longitude":2.2922926}},{"name":"Louvre Museum","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipNbg2fGRkUEXpmsBuhEgANtpr-SH_SrsaKFsamK=w408-h270-k-no","points":{"latitude":48.8606111,"longitude":2.337644}}]')},28145:function(n){n.exports=JSON.parse('[{"url":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4076,"height":2712},{"url":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4752,"height":3168},{"url":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6597,"height":4398},{"url":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4380,"height":2895},{"url":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5243,"height":3495},{"url":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":3500,"height":2338},{"url":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3882,"height":2584},{"url":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3344,"height":2509},{"url":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":5848,"height":3899},{"url":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4160,"height":3120},{"url":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4272,"height":2848},{"url":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3456,"height":4320},{"url":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3024,"height":3778},{"url":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3560,"height":5340},{"url":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":2747,"height":4120},{"url":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3277,"height":4092},{"url":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4016,"height":6016},{"url":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3212,"height":3880},{"url":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3810,"height":5715},{"url":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3648,"height":4560},{"url":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3935,"height":5894},{"url":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":12288,"height":16384},{"url":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":8640,"height":8640},{"url":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3199,"height":3199},{"url":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4010,"height":4010},{"url":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4480,"height":4480},{"url":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3424,"height":3424},{"url":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":2545,"height":2545},{"url":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4172,"height":4000},{"url":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4024,"height":4024},{"url":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3958,"height":3958},{"url":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":5000,"height":4613}]')},41597:function(n){n.exports=JSON.parse('["ability","able","aboard","about","above","accept","accident","according","account","accurate","acres","across","act","action","active","activity","actual","actually","add","addition","additional","adjective","adult","adventure","advice","affect","afraid","after","afternoon","again","against","age","ago","agree","ahead","aid","air","airplane","alike","alive","all","allow","almost","alone","along","aloud","alphabet","already","also","although","am","among","amount","ancient","angle","angry","animal","announced","another","answer","ants","any","anybody","anyone","anything","anyway","anywhere","apart","apartment","appearance","apple","applied","appropriate","are","area","arm","army","around","arrange","arrangement","arrive","arrow","art","article","as","aside","ask","asleep","at","ate","atmosphere","atom","atomic","attached","attack","attempt","attention","audience","author","automobile","available","average","avoid","aware","away","baby","back","bad","badly","bag","balance","ball","balloon","band","bank","bar","bare","bark","barn","base","baseball","basic","basis","basket","bat","battle","be","bean","bear","beat","beautiful","beauty","became","because","become","becoming","bee","been","before","began","beginning","begun","behavior","behind","being","believed","bell","belong","below","belt","bend","beneath","bent","beside","best","bet","better","between","beyond","bicycle","bigger","biggest","bill","birds","birth","birthday","bit","bite","black","blank","blanket","blew","blind","block","blood","blow","blue","board","boat","body","bone","book","border","born","both","bottle","bottom","bound","bow","bowl","box","boy","brain","branch","brass","brave","bread","break","breakfast","breath","breathe","breathing","breeze","brick","bridge","brief","bright","bring","broad","broke","broken","brother","brought","brown","brush","buffalo","build","building","built","buried","burn","burst","bus","bush","business","busy","but","butter","buy","by","cabin","cage","cake","call","calm","came","camera","camp","can","canal","cannot","cap","capital","captain","captured","car","carbon","card","care","careful","carefully","carried","carry","case","cast","castle","cat","catch","cattle","caught","cause","cave","cell","cent","center","central","century","certain","certainly","chain","chair","chamber","chance","change","changing","chapter","character","characteristic","charge","chart","check","cheese","chemical","chest","chicken","chief","child","children","choice","choose","chose","chosen","church","circle","circus","citizen","city","class","classroom","claws","clay","clean","clear","clearly","climate","climb","clock","close","closely","closer","cloth","clothes","clothing","cloud","club","coach","coal","coast","coat","coffee","cold","collect","college","colony","color","column","combination","combine","come","comfortable","coming","command","common","community","company","compare","compass","complete","completely","complex","composed","composition","compound","concerned","condition","congress","connected","consider","consist","consonant","constantly","construction","contain","continent","continued","contrast","control","conversation","cook","cookies","cool","copper","copy","corn","corner","correct","correctly","cost","cotton","could","count","country","couple","courage","course","court","cover","cow","cowboy","crack","cream","create","creature","crew","crop","cross","crowd","cry","cup","curious","current","curve","customs","cut","cutting","daily","damage","dance","danger","dangerous","dark","darkness","date","daughter","dawn","day","dead","deal","dear","death","decide","declared","deep","deeply","deer","definition","degree","depend","depth","describe","desert","design","desk","detail","determine","develop","development","diagram","diameter","did","die","differ","difference","different","difficult","difficulty","dig","dinner","direct","direction","directly","dirt","dirty","disappear","discover","discovery","discuss","discussion","disease","dish","distance","distant","divide","division","do","doctor","does","dog","doing","doll","dollar","done","donkey","door","dot","double","doubt","down","dozen","draw","drawn","dream","dress","drew","dried","drink","drive","driven","driver","driving","drop","dropped","drove","dry","duck","due","dug","dull","during","dust","duty","each","eager","ear","earlier","early","earn","earth","easier","easily","east","easy","eat","eaten","edge","education","effect","effort","egg","eight","either","electric","electricity","element","elephant","eleven","else","empty","end","enemy","energy","engine","engineer","enjoy","enough","enter","entire","entirely","environment","equal","equally","equator","equipment","escape","especially","essential","establish","even","evening","event","eventually","ever","every","everybody","everyone","everything","everywhere","evidence","exact","exactly","examine","example","excellent","except","exchange","excited","excitement","exciting","exclaimed","exercise","exist","expect","experience","experiment","explain","explanation","explore","express","expression","extra","eye","face","facing","fact","factor","factory","failed","fair","fairly","fall","fallen","familiar","family","famous","far","farm","farmer","farther","fast","fastened","faster","fat","father","favorite","fear","feathers","feature","fed","feed","feel","feet","fell","fellow","felt","fence","few","fewer","field","fierce","fifteen","fifth","fifty","fight","fighting","figure","fill","film","final","finally","find","fine","finest","finger","finish","fire","fireplace","firm","first","fish","five","fix","flag","flame","flat","flew","flies","flight","floating","floor","flow","flower","fly","fog","folks","follow","food","foot","football","for","force","foreign","forest","forget","forgot","forgotten","form","former","fort","forth","forty","forward","fought","found","four","fourth","fox","frame","free","freedom","frequently","fresh","friend","friendly","frighten","frog","from","front","frozen","fruit","fuel","full","fully","fun","function","funny","fur","furniture","further","future","gain","game","garage","garden","gas","gasoline","gate","gather","gave","general","generally","gentle","gently","get","getting","giant","gift","girl","give","given","giving","glad","glass","globe","go","goes","gold","golden","gone","good","goose","got","government","grabbed","grade","gradually","grain","grandfather","grandmother","graph","grass","gravity","gray","great","greater","greatest","greatly","green","grew","ground","group","grow","grown","growth","guard","guess","guide","gulf","gun","habit","had","hair","half","halfway","hall","hand","handle","handsome","hang","happen","happened","happily","happy","harbor","hard","harder","hardly","has","hat","have","having","hay","he","headed","heading","health","heard","hearing","heart","heat","heavy","height","held","hello","help","helpful","her","herd","here","herself","hidden","hide","high","higher","highest","highway","hill","him","himself","his","history","hit","hold","hole","hollow","home","honor","hope","horn","horse","hospital","hot","hour","house","how","however","huge","human","hundred","hung","hungry","hunt","hunter","hurried","hurry","hurt","husband","ice","idea","identity","if","ill","image","imagine","immediately","importance","important","impossible","improve","in","inch","include","including","income","increase","indeed","independent","indicate","individual","industrial","industry","influence","information","inside","instance","instant","instead","instrument","interest","interior","into","introduced","invented","involved","iron","is","island","it","its","itself","jack","jar","jet","job","join","joined","journey","joy","judge","jump","jungle","just","keep","kept","key","kids","kill","kind","kitchen","knew","knife","know","knowledge","known","label","labor","lack","lady","laid","lake","lamp","land","language","large","larger","largest","last","late","later","laugh","law","lay","layers","lead","leader","leaf","learn","least","leather","leave","leaving","led","left","leg","length","lesson","let","letter","level","library","lie","life","lift","light","like","likely","limited","line","lion","lips","liquid","list","listen","little","live","living","load","local","locate","location","log","lonely","long","longer","look","loose","lose","loss","lost","lot","loud","love","lovely","low","lower","luck","lucky","lunch","lungs","lying","machine","machinery","mad","made","magic","magnet","mail","main","mainly","major","make","making","man","managed","manner","manufacturing","many","map","mark","market","married","mass","massage","master","material","mathematics","matter","may","maybe","me","meal","mean","means","meant","measure","meat","medicine","meet","melted","member","memory","men","mental","merely","met","metal","method","mice","middle","might","mighty","mile","military","milk","mill","mind","mine","minerals","minute","mirror","missing","mission","mistake","mix","mixture","model","modern","molecular","moment","money","monkey","month","mood","moon","more","morning","most","mostly","mother","motion","motor","mountain","mouse","mouth","move","movement","movie","moving","mud","muscle","music","musical","must","my","myself","mysterious","nails","name","nation","national","native","natural","naturally","nature","near","nearby","nearer","nearest","nearly","necessary","neck","needed","needle","needs","negative","neighbor","neighborhood","nervous","nest","never","new","news","newspaper","next","nice","night","nine","no","nobody","nodded","noise","none","noon","nor","north","nose","not","note","noted","nothing","notice","noun","now","number","numeral","nuts","object","observe","obtain","occasionally","occur","ocean","of","off","offer","office","officer","official","oil","old","older","oldest","on","once","one","only","onto","open","operation","opinion","opportunity","opposite","or","orange","orbit","order","ordinary","organization","organized","origin","original","other","ought","our","ourselves","out","outer","outline","outside","over","own","owner","oxygen","pack","package","page","paid","pain","paint","pair","palace","pale","pan","paper","paragraph","parallel","parent","park","part","particles","particular","particularly","partly","parts","party","pass","passage","past","path","pattern","pay","peace","pen","pencil","people","per","percent","perfect","perfectly","perhaps","period","person","personal","pet","phrase","physical","piano","pick","picture","pictured","pie","piece","pig","pile","pilot","pine","pink","pipe","pitch","place","plain","plan","plane","planet","planned","planning","plant","plastic","plate","plates","play","pleasant","please","pleasure","plenty","plural","plus","pocket","poem","poet","poetry","point","pole","police","policeman","political","pond","pony","pool","poor","popular","population","porch","port","position","positive","possible","possibly","post","pot","potatoes","pound","pour","powder","power","powerful","practical","practice","prepare","present","president","press","pressure","pretty","prevent","previous","price","pride","primitive","principal","principle","printed","private","prize","probably","problem","process","produce","product","production","program","progress","promised","proper","properly","property","protection","proud","prove","provide","public","pull","pupil","pure","purple","purpose","push","put","putting","quarter","queen","question","quick","quickly","quiet","quietly","quite","rabbit","race","radio","railroad","rain","raise","ran","ranch","range","rapidly","rate","rather","raw","rays","reach","read","reader","ready","real","realize","rear","reason","recall","receive","recent","recently","recognize","record","red","refer","refused","region","regular","related","relationship","religious","remain","remarkable","remember","remove","repeat","replace","replied","report","represent","require","research","respect","rest","result","return","review","rhyme","rhythm","rice","rich","ride","riding","right","ring","rise","rising","river","road","roar","rock","rocket","rocky","rod","roll","roof","room","root","rope","rose","rough","round","route","row","rubbed","rubber","rule","ruler","run","running","rush","sad","saddle","safe","safety","said","sail","sale","salmon","salt","same","sand","sang","sat","satellites","satisfied","save","saved","saw","say","scale","scared","scene","school","science","scientific","scientist","score","screen","sea","search","season","seat","second","secret","section","see","seed","seeing","seems","seen","seldom","select","selection","sell","send","sense","sent","sentence","separate","series","serious","serve","service","sets","setting","settle","settlers","seven","several","shade","shadow","shake","shaking","shall","shallow","shape","share","sharp","she","sheep","sheet","shelf","shells","shelter","shine","shinning","ship","shirt","shoe","shoot","shop","shore","short","shorter","shot","should","shoulder","shout","show","shown","shut","sick","sides","sight","sign","signal","silence","silent","silk","silly","silver","similar","simple","simplest","simply","since","sing","single","sink","sister","sit","sitting","situation","six","size","skill","skin","sky","slabs","slave","sleep","slept","slide","slight","slightly","slip","slipped","slope","slow","slowly","small","smaller","smallest","smell","smile","smoke","smooth","snake","snow","so","soap","social","society","soft","softly","soil","solar","sold","soldier","solid","solution","solve","some","somebody","somehow","someone","something","sometime","somewhere","son","song","soon","sort","sound","source","south","southern","space","speak","special","species","specific","speech","speed","spell","spend","spent","spider","spin","spirit","spite","split","spoken","sport","spread","spring","square","stage","stairs","stand","standard","star","stared","start","state","statement","station","stay","steady","steam","steel","steep","stems","step","stepped","stick","stiff","still","stock","stomach","stone","stood","stop","stopped","store","storm","story","stove","straight","strange","stranger","straw","stream","street","strength","stretch","strike","string","strip","strong","stronger","struck","structure","struggle","stuck","student","studied","studying","subject","substance","success","successful","such","sudden","suddenly","sugar","suggest","suit","sum","summer","sun","sunlight","supper","supply","support","suppose","sure","surface","surprise","surrounded","swam","sweet","swept","swim","swimming","swing","swung","syllable","symbol","system","table","tail","take","taken","tales","talk","tall","tank","tape","task","taste","taught","tax","tea","teach","teacher","team","tears","teeth","telephone","television","tell","temperature","ten","tent","term","terrible","test","than","thank","that","thee","them","themselves","then","theory","there","therefore","these","they","thick","thin","thing","think","third","thirty","this","those","thou","though","thought","thousand","thread","three","threw","throat","through","throughout","throw","thrown","thumb","thus","thy","tide","tie","tight","tightly","till","time","tin","tiny","tip","tired","title","to","tobacco","today","together","told","tomorrow","tone","tongue","tonight","too","took","tool","top","topic","torn","total","touch","toward","tower","town","toy","trace","track","trade","traffic","trail","train","transportation","trap","travel","treated","tree","triangle","tribe","trick","tried","trip","troops","tropical","trouble","truck","trunk","truth","try","tube","tune","turn","twelve","twenty","twice","two","type","typical","uncle","under","underline","understanding","unhappy","union","unit","universe","unknown","unless","until","unusual","up","upon","upper","upward","us","use","useful","using","usual","usually","valley","valuable","value","vapor","variety","various","vast","vegetable","verb","vertical","very","vessels","victory","view","village","visit","visitor","voice","volume","vote","vowel","voyage","wagon","wait","walk","wall","want","war","warm","warn","was","wash","waste","watch","water","wave","way","we","weak","wealth","wear","weather","week","weigh","weight","welcome","well","went","were","west","western","wet","whale","what","whatever","wheat","wheel","when","whenever","where","wherever","whether","which","while","whispered","whistle","white","who","whole","whom","whose","why","wide","widely","wife","wild","will","willing","win","wind","window","wing","winter","wire","wise","wish","with","within","without","wolf","women","won","wonder","wonderful","wood","wooden","wool","word","wore","work","worker","world","worried","worry","worse","worth","would","wrapped","write","writer","writing","written","wrong","wrote","yard","year","yellow","yes","yesterday","yet","you","young","younger","your","yourself","youth","zero","zebra","zipper","zoo","zulu"]')},66858:function(n){n.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')}}]);
|