slice-machine-ui 2.16.2-beta.2 → 2.16.2-beta.3

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.
@@ -1,5 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{15952:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=n(96742),u=n(73985),a=n(79687),c=n(81542),f=r.__importDefault(n(3758)),l=/(\w+)\[\d+]/;function p(e){let t={id:e.id,type:e.typ,lang:e.language};return e.uid?{...t,uid:e.uid}:t}function d(e){return(t,n)=>{if(!(0,i.isEmptyContent)(t))return(0,i.isUIDContent)(t)?c.UIDRenderer.renderV1(t):((0,i.isGroupContent)(t)||(0,i.isRepeatableContent)(t)||(0,i.isNestableContent)(t))&&!i.EmptyContent.is(t)?(0,c.StaticWidgetRenderer)(e).renderV1(t,u.Fetch.extractGroupOrFieldIfAny(n)):(0,f.default)(e).renderV1(t,u.Fetch.extractSliceFetchIfAny(n))}}function s(e){return(t,n,r)=>(0,i.isSlicesContent)(n)&&"Slices"===t.type?(0,f.default)(e).renderV2(t,n,u.Fetch.extractSliceFetchIfAny(r)):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):(0,i.isUIDContent)(n)&&"UID"===t.type?c.UIDRenderer.renderV2(t,n):(0,i.isNestableContent)(n)&&o.NestableWidget.is(t)?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):m(e)(t)}function m(e){return t=>{switch(t.type){case"Choice":case"Slices":return(0,f.default)(e).renderDefault(t);case"UID":return;default:return(0,c.StaticWidgetRenderer)(e).renderDefault(t)}}}t.default=e=>({renderV1:(t,n,r,o,u,c,f,s,m)=>{var h,y;let v=(u[t.groupLangId]||[]).filter(e=>e.id!==t.id).map(e=>p(e)),g=((t,n,r)=>{let o={};for(let[t,u]of n)if(!(0,i.isUIDContent)(u)){let n=t.match(l),i=n&&n[1],a=i?n[1]:t,c=i?o[a]:void 0;if(void 0!==r){let n=r.fields[t];void 0!==n&&(i?o[a]=Array.isArray(c)?[...c,d(e)(u,n)]:[d(e)(u,n)]:o[a]=d(e)(u,n))}else i?o[a]=Array.isArray(c)?[...c,d(e)(u,void 0)]:[d(e)(u,void 0)]:o[a]=d(e)(u,void 0)}return{[t.type]:o}})(t,n,m);return{id:t.id,uid:null!==(h=t.data.uid)&&void 0!==h?h:null,url:null!==(y=e.LinkResolver.buildUrl({linkResolver:s,pageType:t.type,masterLang:r,brokenRoute:f,doc:t}))&&void 0!==y?y:null,type:t.type,href:e.urlRewriter.enforceCDN(o),tags:t.tags,first_publication_date:t.first_publication_date?(0,a.formatDateTime)(t.first_publication_date):null,last_publication_date:t.last_publication_date?(0,a.formatDateTime)(t.last_publication_date):null,slugs:t.data.slugs,linked_documents:[],lang:t.language,alternate_languages:v,data:g,...c?t.metadata:{}}},renderWidgetV1:d(e),renderWidgetV2:s(e),renderV2:(t,n,r,o,u,c,f,d,h,y)=>{var v,g;let _=Object.entries(t.fields).map(([t,n])=>{if("UID"===n.type)return;let r=o.find(([e])=>e===t),u=null==y?void 0:y.fields[t],a=t.match(l),c=!!(a&&a[1]),f=c?a[1]:t;if(r){let[,t]=r;return(0,i.isUIDContent)(t)?void 0:void 0===y||void 0!==u?[f,s(e)(n,t,u),c]:void 0}return void 0===y||void 0!==u?[f,m(e)(n),c]:void 0}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let t=e[n];if(t){if(Array.isArray(t))return{...e,[n]:[...t,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(t)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{}),b=(c[n.groupLangId]||[]).filter(e=>e.id!==n.id).map(e=>p(e));return{id:n.id,uid:null!==(v=n.data.uid)&&void 0!==v?v:null,url:null!==(g=e.LinkResolver.buildUrl({linkResolver:h,pageType:n.type,masterLang:r,brokenRoute:d,doc:n}))&&void 0!==g?g:null,type:n.type,href:e.urlRewriter.enforceCDN(u),tags:n.tags,first_publication_date:n.first_publication_date?(0,a.formatDateTime)(n.first_publication_date):null,last_publication_date:n.last_publication_date?(0,a.formatDateTime)(n.last_publication_date):null,slugs:n.data.slugs,linked_documents:[],lang:n.language,alternate_languages:b,data:_,...f?n.metadata:{}}},renderMocks:(t,n)=>{let r=n.reduce((e,[,t])=>{if(i.UIDContent.is(t))return t.value},void 0),u=Object.entries(t.fields).map(([t,r])=>{var u;if("UID"===r.type)return;let a=n.find(([e])=>e===t),p=t.match(l),d=!!(p&&p[1]),s=d?p[1]:t;return a?[s,"SliceContentType"===(u=a[1]).__TYPE__&&"Slices"===r.type?(0,f.default)(e).renderMocks(r,u):(0,i.isGroupContent)(u)&&"Group"===r.type?(0,c.StaticWidgetRenderer)(e).renderMocks(r,u):(0,i.isNestableContent)(u)&&o.NestableWidget.is(r)?(0,c.StaticWidgetRenderer)(e).renderMocks(r,u):m(e)(r),d]:[s,m(e)(r),d]}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let t=e[n];if(t){if(Array.isArray(t))return{...e,[n]:[...t,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(t)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{});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:u}},renderDefaultWidget:m(e)})},88985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=n(22970);var i=n(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),t.Models=r.__importStar(n(73985)),t.Utils=r.__importStar(n(79687)),r.__exportStar(n(81542),t)},59527:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=n(16211),i=n(16211),o=n(96742),u=n(87412);class a{constructor(e,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:n,types:r,slugs:o,uid:u}=i.DocumentLegacy.extractMetadata(e);this.fieldTypes=r,this.slugs=o,this.uid=u,this.widgets=n,this.customType=t}getWidget(e){let t=this.parsed[e];if(t)return t;let n=this.widgets[e],i=(()=>{let t=(0,r.WidgetLegacy)((0,r.defaultCtx)(e,this.fieldTypes)).decode(n);if(!t||(0,u.isLeft)(t))return;if(!this.customType)return t.right;let i=this.customType.fields[e];return(0,r.isSlicesContent)(t.right)&&o.StaticSlices.is(i)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:e,type:"Widget"}],key:e,model:i,content:t.right})({transformSlice:r.migrateSliceItem}):t.right})();if(i)return this.parsed[e]=i,i}parseAll(){let e=i.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),t=(0,u.isRight)(e)?e.right:{},n=this.customType?(0,r.migrateDocument)(t,this.customType):t;return this.parsed=n,n}}t.DocumentContent=a},53264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=n(22970),i=n(47320),o=r.__importStar(n(87830)),u=o.exact(o.intersection([o.type({title:o.string,description:o.string}),o.partial({imageURL:(0,i.nullable)(o.string)})]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:u}},72375:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=n(22970).__importStar(n(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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=n(22970),i=n(37581),o=n(9554),u=n(42275),a=r.__importStar(n(87830)),c=n(23284),f=n(2932),l=n(59527),p=n(53264);t.GroupLangId=a.string;let d=a.exact(a.intersection([a.type({id:a.string,version:a.string,type:a.string,groupLangId:t.GroupLangId,tags:a.array(a.string),data:a.UnknownRecord,language:a.string}),a.partial({first_publication_date:i.Function.nullable(i.DateFromStringOrNumber),last_publication_date:i.Function.nullable(i.DateFromStringOrNumber),metadata:(0,c.withFallback)(i.Function.nullable(p.DocumentMetadata.codec),p.DocumentMetadata.empty)})])),s=e=>(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,e),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata}));t.ApiDocumentCodec=e=>new a.Type("DocCodec",e=>s().is(e),(t,n)=>(0,u.pipe)(d.validate(t,n),o.either.chain(t=>{let n=e&&e.find(e=>e.customTypeId===t.type);return a.success(s(n).encode(t))})),e=>e);var m=n(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return m.DocumentContent}});var h=n(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return h.DocumentMetadata}});var y=n(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return y.RelatedDocument}})},15087:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(n=t.ApiVersion||(t.ApiVersion={})).v1="v1",n.v2="v2",n.mocks="mocks"},43134:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=n(22970).__importStar(n(87830)),i=r.type({isOptional:r.boolean,name:r.string,type:r.literal("custom")}),o=r.type({isOptional:r.boolean,type:r.literal("uid")}),u=r.type({isOptional:r.boolean,type:r.literal("lang")}),a=r.union([i,o,u]),c=r.type({value:r.string,type:r.literal("static")}),f=r.union([c,a]),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(e){return{value:e,type:"static"}},t.uidParam=function(e){return{isOptional:e,type:"uid"}},t.langParam=function(e){return{isOptional:e,type:"lang"}},t.customParam=function(e,t){return{name:e,isOptional:t,type:"custom"}}},44273:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTypeDef=void 0;let r=n(22970),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=n(78771),c=u.strict({id:u.string,definitions:u.array(a.WidgetDef)});t.CustomTypeDef=new u.Type("CustomTypeDef",e=>"object"==typeof e&&null!==e&&"customTypeId"in e,e=>(0,o.pipe)(c.decode(e),i.either.map(({id:e,definitions:t})=>({customTypeId:e,fields:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e)},52908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupDef=t.NestedGroupDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(66106);function l(e,t){return new a.Type("GroupDef",t=>(0,c.isFieldDef)(t)&&e.is(t.def),e=>{let n=a.strict({name:a.string,fields:a.array(t)});return(0,u.pipe)(n.decode(e),o.either.map(({name:e,fields:t})=>({key:e,def:{type:"Group",config:{fields:t.reduce((e,t)=>({...e,[t.key]:t.def}),{})}}})))},e=>e)}t.NestedGroupDef=l(i.NestedGroup,f.NestableDef),t.GroupDef=l(i.Group,a.union([f.NestableDef,t.NestedGroupDef]))},52144:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({uid:a.string});t.UIDDef=new a.Type("UID",e=>(0,c.isFieldDef)(e)&&i.UID.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({uid:e})=>({key:e,def:{type:"UID"}}))),e=>e)},78771:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDef=void 0;let r=n(22970).__importStar(n(87830)),i=n(52908),o=n(40646),u=n(68126),a=n(52144);t.WidgetDef=r.union([u.SlicesDef,i.GroupDef,a.UIDDef,o.NestableDef])},88476:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);r.__exportStar(n(52908),t),r.__exportStar(n(40646),t),r.__exportStar(n(68126),t),r.__exportStar(n(52144),t),r.__exportStar(n(78771),t)},63868:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({booleanField:a.string,config:a.strict({default_value:a.boolean})});t.BooleanDef=new a.Type("BooleanDef",e=>(0,c.isFieldDef)(e)&&i.BooleanField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({booleanField:e,config:t})=>({key:e,def:{type:"Boolean",config:t}}))),e=>e)},68294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({color:a.string});t.ColorDef=new a.Type("ColorDef",e=>(0,c.isFieldDef)(e)&&i.Color.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({color:e})=>({key:e,def:{type:"Color"}}))),e=>e)},43499:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({date:a.string});t.DateDef=new a.Type("DateDef",e=>(0,c.isFieldDef)(e)&&i.Date.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({date:e})=>({key:e,def:{type:"Date"}}))),e=>e)},56301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({embed:a.string});t.EmbedDef=new a.Type("EmbedDef",e=>(0,c.isFieldDef)(e)&&i.Embed.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({embed:e})=>({key:e,def:{type:"Embed"}}))),e=>e)},24256:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({geopoint:a.string});t.GeoPointDef=new a.Type("GeoPointDef",e=>(0,c.isFieldDef)(e)&&i.GeoPoint.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({geopoint:e})=>({key:e,def:{type:"GeoPoint"}}))),e=>e)},30245:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({image:a.string,config:a.strict({thumbnails:a.array(a.string)})});t.ImageDef=new a.Type("ImageDef",e=>(0,c.isFieldDef)(e)&&i.Image.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({image:e,config:t})=>({key:e,def:{type:"Image",config:{thumbnails:t.thumbnails.map(e=>({name:e}))}}}))),e=>e)},30923:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({integrationFields:a.string});t.IntegrationFieldDef=new a.Type("IntegrationFieldDef",e=>(0,c.isFieldDef)(e)&&i.IntegrationField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({integrationFields:e})=>({key:e,def:{type:"IntegrationFields"}}))),e=>e)},17914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAnyLinkDef=t.AnyLinkDef=void 0;let r=n(22970),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=u.partial({select:u.union([u.literal("any"),u.null,u.undefined]),allowText:u.boolean,repeat:u.boolean,variants:u.array(u.string)});t.AnyLinkDef=new u.Type("AnyLinkDef",e=>"any"===e.select,e=>(0,o.pipe)(a.decode(e),i.either.map(e=>({...e,select:null}))),e=>e),t.defaultAnyLinkDef=function(e){return{select:null,allowText:!0,...e}}},64049:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.DocumentLinkDef=void 0;let r=n(22970).__importStar(n(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(e){return{select:"document",customtypes:[],allowText:!0,...e}}},10599:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.MediaLinkDef=void 0;let r=n(22970).__importStar(n(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(e){return{select:"media",allowText:!0,...e}}},49612:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.WebLinkDef=void 0;let r=n(22970).__importStar(n(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(e){return{select:"web",allowText:!0,...e}}},38207:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLink=t.LinkDef=void 0;let r=n(22970),i=n(46239),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(17914),l=n(64049),p=n(10599),d=n(49612),s=a.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),m=a.strict({link:a.string,config:s});t.LinkDef=new a.Type("LinkDef",e=>(0,c.isFieldDef)(e)&&i.Link.is(e.def),e=>(0,u.pipe)(m.decode(e),o.either.map(({link:e,config:t})=>({key:e,def:{type:"Link",config:t}}))),e=>e),t.defaultLink=function(e,t){return{type:"Link",config:(()=>{switch(e){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(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="media"},t.isAnyLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)===null},t.isDocumentLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="document"},t.isWebLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="web"},r.__exportStar(n(17914),t),r.__exportStar(n(64049),t),r.__exportStar(n(10599),t),r.__exportStar(n(49612),t)},66106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableDef=void 0;let r=n(22970).__importStar(n(87830)),i=n(63868),o=n(68294),u=n(43499),a=n(56301),c=n(24256),f=n(30245),l=n(30923),p=n(38207),d=n(56156),s=n(44135),m=n(36116),h=n(53335),y=n(8871),v=n(76128),g=n(58912),_=n(49437);t.NestableDef=r.union([i.BooleanDef,o.ColorDef,u.DateDef,a.EmbedDef,c.GeoPointDef,f.ImageDef,l.IntegrationFieldDef,d.NumberDef,s.RangeDef,m.RichTextDef,h.SelectDef,y.SeparatorDef,g.TextDef,_.TimestampDef,p.LinkDef,v.TableDef])},56156:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({number:a.string});t.NumberDef=new a.Type("NumberDef",e=>(0,c.isFieldDef)(e)&&i.Number.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({number:e})=>({key:e,def:{type:"Number"}}))),e=>e)},44135:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({range:a.string});t.RangeDef=new a.Type("RangeDef",e=>(0,c.isFieldDef)(e)&&i.Range.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({range:e})=>({key:e,def:{type:"Range"}}))),e=>e)},36116:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({structuredtext:a.string});t.RichTextDef=new a.Type("RichTextDef",e=>(0,c.isFieldDef)(e)&&i.RichText.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({structuredtext:e})=>({key:e,def:{type:"StructuredText"}}))),e=>e)},53335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({select:a.string,config:a.strict({options:a.readonlyArray(a.string)})});t.SelectDef=new a.Type("SelectDef",e=>(0,c.isFieldDef)(e)&&i.Select.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({select:e,config:t})=>({key:e,def:{type:"Select",config:t}}))),e=>e)},8871:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({separator:a.string});t.SeparatorDef=new a.Type("SeparatorDef",e=>(0,c.isFieldDef)(e)&&i.Separator.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({separator:e})=>({key:e,def:{type:"Separator"}}))),e=>e)},76128:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TableDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({table:a.string});t.TableDef=new a.Type("TableDef",e=>(0,c.isFieldDef)(e)&&i.Table.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({table:e})=>({key:e,def:{type:"Table"}}))),e=>e)},58912:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({text:a.string});t.TextDef=new a.Type("TextDef",e=>(0,c.isFieldDef)(e)&&i.Text.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({text:e})=>({key:e,def:{type:"Text"}}))),e=>e)},49437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({timestamp:a.string});t.TimestampDef=new a.Type("TimestampDef",e=>(0,c.isFieldDef)(e)&&i.Timestamp.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({timestamp:e})=>({key:e,def:{type:"Timestamp"}}))),e=>e)},40646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);r.__exportStar(n(63868),t),r.__exportStar(n(68294),t),r.__exportStar(n(43499),t),r.__exportStar(n(56301),t),r.__exportStar(n(24256),t),r.__exportStar(n(30245),t),r.__exportStar(n(30923),t),r.__exportStar(n(38207),t),r.__exportStar(n(66106),t),r.__exportStar(n(56156),t),r.__exportStar(n(44135),t),r.__exportStar(n(36116),t),r.__exportStar(n(53335),t),r.__exportStar(n(8871),t),r.__exportStar(n(76128),t),r.__exportStar(n(58912),t),r.__exportStar(n(49437),t)},3094:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(66106),p=a.strict({name:a.string,primary:a.array(l.NestableDef),items:f.NestedGroupDef});t.CompositeSliceDef=new a.Type("CompositeSliceDef",e=>(0,c.isFieldDef)(e)&&i.CompositeSlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,primary:t,items:n})=>{var r;return{key:e,def:{type:"Slice","non-repeat":t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),repeat:null===(r=n.def.config)||void 0===r?void 0:r.fields}}})),e=>e)},58294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySliceDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(40646),p=a.type({name:a.string,widget:a.union([f.NestedGroupDef,l.NestableDef])});t.LegacySliceDef=new a.Type("LegacySliceDef",e=>(0,c.isFieldDef)(e)&&i.LegacySlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,widget:t})=>({key:e,def:t.def}))),e=>e)},26669:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceDef=t.VariationDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(66106),p=a.strict({id:a.string,primary:a.array(a.union([f.GroupDef,l.NestableDef])),items:a.array(l.NestableDef),version:a.string});t.VariationDef=new a.Type("VariationDef",e=>(0,c.hasType)(e)&&i.Variation.is(e),e=>(0,u.pipe)(p.decode(e),o.either.map(e=>({id:e.id,name:e.id,description:e.id,imageUrl:"",docURL:"",version:e.version,primary:e.primary.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),items:e.items.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e);let d=a.string,s=a.string,m=a.intersection([a.strict({name:a.string,variations:a.array(t.VariationDef)}),a.partial({legacyPaths:a.record(d,s)})]);t.SharedSliceDef=new a.Type("SharedSliceDef",e=>(0,c.isFieldDef)(e)&&i.SharedSlice.is(e.def),e=>(0,u.pipe)(m.decode(e),o.either.map(({name:e,variations:t,legacyPaths:n})=>({key:e,def:{id:e,name:e,type:"SharedSlice",variations:t,...n?{legacyPaths:n}:{}}}))),e=>e)},53531:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceDef=void 0;let r=n(22970).__importStar(n(87830)),i=n(3094),o=n(58294),u=n(26669);t.SliceDef=r.union([u.SharedSliceDef,i.CompositeSliceDef,o.LegacySliceDef])},19183:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesDef=void 0;let r=n(22970),i=n(96742),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(53531),l=a.strict({name:a.string,slices:a.array(f.SliceDef)});t.SlicesDef=new a.Type("SlicesDef",e=>(0,c.isFieldDef)(e)&&i.StaticSlices.is(e.def),e=>(0,u.pipe)(l.decode(e),o.either.map(({name:e,slices:t})=>({key:e,def:{type:"Slices",config:{choices:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}}}))),e=>e)},68126:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);r.__exportStar(n(3094),t),r.__exportStar(n(58294),t),r.__exportStar(n(26669),t),r.__exportStar(n(53531),t),r.__exportStar(n(19183),t)},32548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);r.__exportStar(n(44273),t),r.__exportStar(n(88476),t),r.__exportStar(n(87956),t)},87956:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasType=t.isFieldDef=void 0,t.isFieldDef=function(e){return"object"==typeof e&&null!==e&&"key"in e&&"def"in e},t.hasType=function(e){return"object"==typeof e&&null!==e&&"type"in e}},35280:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},71659:function(e,t,n){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=n(22970).__importStar(n(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(e){return void 0!==e&&(e.TYPE===t.SimpleFieldType||e.TYPE===t.DocRelationType||e.TYPE===t.GroupType)?e:void 0},t.extractSliceFetchIfAny=function(e){if(void 0!==e&&e.TYPE===t.SliceZoneType)return e}},73985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=n(22970);r.__exportStar(n(27380),t);var i=n(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),r.__exportStar(n(32548),t),t.Extensions=r.__importStar(n(35280)),t.Fetch=r.__importStar(n(71659));var o=n(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return o.LinkResolver}})},621:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withObjectRenderers=void 0;let r=n(22970),i=n(16211),o=n(92425),u=r.__importStar(n(72720)),a=n(79687);t.withObjectRenderers=function(e){return{...e,renderV1Object(t,n){let r=t instanceof Array?t:Object.entries(t);return Object.fromEntries((0,o.compact)(r.map(([t,r])=>i.EmptyContent.is(r)?u.none:(0,a.renderIfNoFetchOrFetchDefined)(n,t,n=>u.some([t,e.renderV1(r,n)])))))},renderV2Object(t,n,r,o,c){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)n&&t in n||!n?l[t]=e.renderDefault(r):n&&"default"===o.withFetch&&(l[t]=e.renderDefault(r));else if(i.EmptyContent.is(p))n&&t in n?"default"===c.withFetchField?l[t]=e.renderDefault(r):"render"===c.withFetchField&&(l[t]=e.renderV2(r,p,n[t])):n?"default"===c.withFetch&&(l[t]=e.renderDefault(r)):"default"===c.default?l[t]=e.renderDefault(r):"render"===c.default&&(l[t]=e.renderV2(r,p));else{let i=(0,a.renderIfNoFetchOrFetchDefined)(n,t,t=>u.some(e.renderV2(r,p,t)));u.isSome(i)&&(l[t]=i.value)}}),l},renderMocksObject(t,n){let r=t instanceof Array?Object.fromEntries(t):t,o={};return Object.entries(n).forEach(([t,n])=>{let c=r[t];if(void 0===c)o[t]=e.renderDefault(n);else if(i.EmptyContent.is(c))o[t]=e.renderDefault(n);else{let r=(0,a.renderIfNoFetchOrFetchDefined)(void 0,t,()=>u.some(e.renderMocks(n,c)));u.isSome(r)&&(o[t]=r.value)}}),o}}}},79687:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=n(22970).__importStar(n(72720));t.renderIfNoFetchOrFetchDefined=function(e,t,n){if(void 0===e)return n(void 0);{let i=e[t];return void 0===i?r.none:n(i)}},t.writeEmptyStringOrNull=function(e,t){return null==e?t?"":null:e},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.isEmpty=function(e){for(let t in e)return!1;return!0}},937:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970).__importDefault(n(12706));t.default=e=>({renderV1:(t,n)=>({type:"Group",value:t.value.map(t=>(0,r.default)(e).renderV1Object(t.value,null==n?void 0:n.fields))}),renderV2:(t,n,i)=>n.value.map(n=>{var o;return(0,r.default)(e).renderV2Object(n.value,null==i?void 0:i.fields,(null===(o=t.config)||void 0===o?void 0:o.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:()=>[],renderMocks:(t,n)=>n.value.map(n=>{var i,o;return(null===(i=t.config)||void 0===i?void 0:i.fields)?(0,r.default)(e).renderMocksObject(n.value,null===(o=t.config)||void 0===o?void 0:o.fields):{}})})},56016:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970).__importDefault(n(12706));t.default=e=>({renderV1:(t,n)=>t.value.map(t=>(0,r.default)(e).renderV1(t,n)),renderV2:(t,n,i)=>n.value.map(n=>(0,r.default)(e).renderV2({...t,config:{...t.config,repeat:!1}},n,i)),renderDefault:()=>[],renderMocks:(t,n)=>n.value.map(n=>(0,r.default)(e).renderMocks({...t,config:{...t.config,repeat:!1}},n))})},65082:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=n(71659),u=n(621),a=n(26041),c=r.__importDefault(n(32955));function f(e){return void 0!==e&&e.TYPE===o.SimpleFieldType?e:void 0}function l(e){return void 0!==e&&e.TYPE===o.DocRelationType?e:void 0}t.default=e=>(0,u.withObjectRenderers)({renderV1(t,n){if((0,i.isRichTextContent)(t))return(0,a.StructuredTextRenderer)(e).renderV1(t,f(n));if((0,i.isImageContent)(t))return(0,a.ImageRenderer)(e).renderV1(t);if((0,i.isRangeContent)(t)||(0,i.isNumberContent)(t)||(0,i.isTimestampContent)(t)||(0,i.isDateContent)(t)||(0,i.isTextContent)(t)||(0,i.isColorContent)(t)||(0,i.isSelectContent)(t))return a.FieldRenderer.renderV1(t);if((0,i.isLinkContent)(t))return(0,a.LinkRenderer)(e).renderV1(t,l(n));if((0,i.isEmbedContent)(t))return a.EmbedRenderer.renderV1(t);if((0,i.isGeoPointContent)(t))return a.GeoPointRenderer.renderV1(t);if((0,i.isUIDContent)(t))return c.default.renderV1(t);else if((0,i.isIntegrationFieldContent)(t))return(0,a.IntegrationFieldsRenderer)(e).renderV1(t);else if((0,i.isSeparatorContent)(t))return a.SeparatorRenderer.renderV1(t);else if((0,i.isBooleanContent)(t))return a.BooleanRenderer.renderV1(t);else if((0,i.isTableContent)(t))return(0,a.TableRenderer)(e).renderV1(t,f(n));else return null},renderV2(t,n,r){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(e).renderV2(t,n,f(r));if("Image"===t.type&&(0,i.isImageContent)(n))return(0,a.ImageRenderer)(e).renderV2(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,a.LinkRenderer)(e).renderV2(t,n,l(r));if("Embed"===t.type&&(0,i.isEmbedContent)(n))return a.EmbedRenderer.renderV2(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderV2(t,n);if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(e).renderV2(t,n);if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderV2(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return a.BooleanRenderer.renderV2(t,n);else if((0,i.isRangeContent)(n)||(0,i.isNumberContent)(n)||(0,i.isTimestampContent)(n)||(0,i.isDateContent)(n)||(0,i.isTextContent)(n)||(0,i.isColorContent)(n)||(0,i.isSelectContent)(n))return a.FieldRenderer.renderV2(t,n);else if("Table"===t.type&&(0,i.isTableContent)(n))return(0,a.TableRenderer)(e).renderV2(t,n,f(r));else return null},renderDefault(t){if("Link"===t.type)return(0,a.LinkRenderer)(e).renderDefault(t);if("Embed"===t.type)return a.EmbedRenderer.renderDefault(t);if("GeoPoint"===t.type)return a.GeoPointRenderer.renderDefault(t);if("StructuredText"===t.type)return(0,a.StructuredTextRenderer)(e).renderDefault(t);if("Image"===t.type)return(0,a.ImageRenderer)(e).renderDefault(t);if("Separator"===t.type)return a.SeparatorRenderer.renderDefault(t);if("Boolean"===t.type)return a.BooleanRenderer.renderDefault(t);else if("IntegrationFields"===t.type)return(0,a.IntegrationFieldsRenderer)(e).renderDefault(t);else if("Table"===t.type)return(0,a.TableRenderer)(e).renderDefault(t);else return a.FieldRenderer.renderDefault(t)},renderMocks(t,n){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,a.StructuredTextRenderer)(e).renderMocks(t,n);if("Image"===t.type&&(0,i.isImageContent)(n))return(0,a.ImageRenderer)(e).renderMocks(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,a.LinkRenderer)(e).renderMocks(t,n);if("Embed"===t.type&&(0,i.isEmbedContent)(n))return a.EmbedRenderer.renderMocks(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return a.GeoPointRenderer.renderMocks(t,n);if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,a.IntegrationFieldsRenderer)(e).renderMocks(t,n);if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return a.SeparatorRenderer.renderMocks(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return a.BooleanRenderer.renderMocks(t,n);else if((0,i.isRangeContent)(n)&&"Range"===t.type||(0,i.isNumberContent)(n)&&"Number"===t.type||(0,i.isTimestampContent)(n)&&"Timestamp"===t.type||(0,i.isDateContent)(n)&&"Date"===t.type||(0,i.isTextContent)(n)&&"Text"===t.type||(0,i.isColorContent)(n)&&"Color"===t.type||(0,i.isSelectContent)(n)&&"Select"===t.type)return a.FieldRenderer.renderMocks(t,n);else if("Table"===t.type&&(0,i.isTableContent)(n))return(0,a.TableRenderer)(e).renderMocks(t,n);else return null}})},12706:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=n(71659),u=n(621),a=r.__importDefault(n(937)),c=r.__importDefault(n(56016)),f=r.__importDefault(n(65082));function l(e){return void 0!==e&&e.TYPE===o.GroupType?e:void 0}function p(e){return void 0!==e&&e.TYPE!==o.GroupType?e:void 0}function d(e){return void 0!==e&&("SimpleField"===e.TYPE||"DocRelation"===e.TYPE)?e:void 0}function s(e,t,n,r){var o,u,a,c;if("Link"===e.type){if((null===(o=e.config)||void 0===o?void 0:o.repeat)&&(0,i.isRepeatableContent)(t))return r.repeatable(e,t,d(n));if((null===(u=e.config)||void 0===u?void 0:u.repeat)&&(0,i.isLinkContent)(t))return r.repeatable(e,{__TYPE__:"RepeatableContent",type:e.type,value:[t]},d(n));if(!(null===(a=e.config)||void 0===a?void 0:a.repeat)&&(0,i.isRepeatableContent)(t)&&t.value[0])return r.simple(e,t.value[0],p(n));if(!(null===(c=e.config)||void 0===c?void 0:c.repeat)&&(0,i.isRepeatableContent)(t))return r.default(e)}return"Group"!==e.type&&(0,i.isNestableContent)(t)?r.simple(e,t,p(n)):"Group"===e.type&&(0,i.isGroupContent)(t)?r.group(e,t,l(n)):r.default(e)}t.default=e=>(0,u.withObjectRenderers)({renderV1:(t,n)=>(0,i.isGroupContent)(t)?(0,a.default)(e).renderV1(t,l(n)):(0,i.isRepeatableContent)(t)?(0,c.default)(e).renderV1(t,d(n)):(0,f.default)(e).renderV1(t,p(n)),renderV2(t,n,r){return s(t,n,r,{group:(t,n,r)=>(0,a.default)(e).renderV2(t,n,r),repeatable:(t,n,r)=>(0,c.default)(e).renderV2(t,n,r),simple:(t,n,r)=>(0,f.default)(e).renderV2(t,n,r),default:e=>this.renderDefault(e)})},renderDefault(t){var n;return"Link"===t.type&&(null===(n=t.config)||void 0===n?void 0:n.repeat)?(0,c.default)(e).renderDefault(t):"Group"===t.type?(0,a.default)(e).renderDefault(t):(0,f.default)(e).renderDefault(t)},renderMocks(t,n){return s(t,n,void 0,{group:(t,n)=>(0,a.default)(e).renderMocks(t,n),repeatable:(t,n)=>(0,c.default)(e).renderMocks(t,n),simple:(t,n)=>(0,f.default)(e).renderMocks(t,n),default:e=>this.renderDefault(e)})}})},32955:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks:(e,t)=>t.value}},81542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=n(22970);var i=n(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(n(26041),t);var o=n(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),r.__exportStar(n(94814),t);var u=n(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var a=n(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Boolean",value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},89591:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Embed",value:{oembed:e.all}}),renderV2:(e,t)=>t.all,renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},49357:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(79687),i=/^[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)$/,o=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function u(e){let[t,n,r]=[e[1],e[2],e[3]];return`${t.padStart(4,"0")}-${n.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(e){let t={type:e.type,value:null};switch(e.type){case"Number":{let n=(0,r.filterDouble)(e.value);return{...t,value:n}}case"Date":try{let n=o.exec(e.value);if(n){let e=new Date(u(n));return{...t,value:(0,r.formatDate)(e)}}return t}catch(n){return console.warn(`Unable to render Date value with ${e.value}: ${n.toString()}`),t}case"Timestamp":try{if(i.test(e.value)){let n=new Date(e.value);return{...t,value:(0,r.formatDateTime)(n)}}return t}catch(n){return console.warn(`Unable to render Timestamp value with ${e.value}: ${n.toString()}`),t}default:return{...t,value:e.value}}},renderV2(e,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let e=o.exec(t.value);if(e){let t=new Date(u(e));return(0,r.formatDate)(t)}return null}catch(e){return console.warn(`Unable to render Date value with ${t.value}: ${e.toString()}`),null}case"Timestamp":try{if(i.test(t.value)){let e=new Date(t.value);return(0,r.formatDateTime)(e)}return null}catch(e){return console.warn(`Unable to render Timestamp value with ${t.value}: ${e.toString()}`),null}default:return t.value}},renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},42715:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"GeoPoint",value:{latitude:e.position.lat,longitude:e.position.lng}}),renderV2:(e,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},6637:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i=n(79687);function o(e,t,n){let r="v2"===n?{id:e.origin.id,edit:{x:e.edit.crop.x,y:e.edit.crop.y,zoom:e.edit.zoom,background:e.edit.background}}:{};return{dimensions:{width:e.width,height:e.height},alt:(0,i.writeEmptyStringOrNull)(e.alt,t.emptyStringInsteadOfNull),copyright:(0,i.writeEmptyStringOrNull)(e.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(e),...r}}t.default=e=>({renderV1(t){if(t.thumbnails){let n=Object.entries(t.thumbnails).reduce((t,[n,i])=>({...t,[n.toLowerCase()]:o(i,e,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:n}}}return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:{}}}},renderV2(t,n){let i=o(n,e,r.ApiVersion.v2);return n.thumbnails?Object.assign(i,Object.entries(n.thumbnails).reduce((t,[n,i])=>Object.assign(t,{[n]:o(i,e,r.ApiVersion.v2)}),{})):i},renderDefault(e){var t;return((null===(t=e.config)||void 0===t?void 0:t.thumbnails)||[]).reduce((e,{name:t})=>({...e,[t]:{}}),{})},renderMocks(e,t){return this.renderV2(e,t)}})},6413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>{var t;let n=null===(t=e.Extension)||void 0===t?void 0:t.encoders.integrationFields;return{renderV1(e){if(!n)return{value:{}};try{return{type:"IntegrationFields",value:n.encode(e.value)}}catch(e){return{value:{}}}},renderV2(e,t){if(!n)return{};try{return n.encode(t.value)}catch(e){return{}}},renderDefault:e=>null,renderMocks(e){return this.renderDefault(e)}}}},8092:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:(e,t,n)=>({type:"Link.any",value:{...!(null==n?void 0:n.omitKey)&&{key:e.key},...e.value.text&&{text:e.value.text},...e.value.variant&&{variant:e.value.variant}}}),renderV2(e,t,n,r){let i=e.variants||[],o=t.value.variant&&i.includes(t.value.variant)?t.value.variant:i[0];return{link_type:"Any",...!(null==r?void 0:r.omitKey)&&{key:t.key},...e.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o}}},renderMocks(e,t,n){return this.renderV2(e,t,void 0,n)}}},50335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BROKEN_CUSTOM_TYPE=void 0;let r=n(16211),i=n(73985);function o(e,n){return{type:"Link.document",value:{...!(null==n?void 0:n.omitKey)&&{key:e.key},...r.FilledDocumentLinkContent.is(e.value)&&{id:e.value.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...e.value.text&&{text:e.value.text},...e.value.variant&&{variant:e.value.variant}}}}function u(e,n,i){let o=n.variants||[],u=e.value.variant&&o.includes(e.value.variant)?e.value.variant:o[0];return{...!(null==i?void 0:i.omitKey)&&{key:e.key},...r.FilledDocumentLinkContent.is(e.value)&&{id:e.value.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...n.allowText&&e.value.text&&{text:e.value.text},...u&&{variant:u}}}t.BROKEN_CUSTOM_TYPE="broken_type",t.default=e=>{let t=e.Extension;return{renderV1(e,n,i){if(!t)return o(e,i);try{if(r.FilledDocumentLinkContent.is(e.value)){let r=(null==i?void 0:i.omitKey)?void 0:e.key,o=t.DocEncoder.encodeDocId(e.value.id,null==n?void 0:n.uuid,[r,e.value.text,e.value.variant]);return{type:"Link.document",value:t.encoders.documentLinks.encode(o)}}return{type:"Link.document",value:{...!(null==i?void 0:i.omitKey)&&{key:e.key},...e.value.text&&{text:e.value.text},...e.value.variant&&{variant:e.value.variant}}}}catch(t){return o(e,i)}},renderV2(e,n,i,o){if(!t)return u(n,e,o);try{let u=e.allowText?n.value.text:void 0,a=e.variants||[],c=n.value.variant&&a.includes(n.value.variant)?n.value.variant:a[0];if(r.FilledDocumentLinkContent.is(n.value)){let e=(null==o?void 0:o.omitKey)?void 0:n.key,r=t.DocEncoder.encodeDocId(n.value.id,null==i?void 0:i.uuid,[e,u,c]);return t.encoders.documentLinks.encode(r)}return{link_type:"Document",...!(null==o?void 0:o.omitKey)&&{key:n.key},...u&&{text:u},...c&&{variant:c}}}catch(t){return u(n,e,o)}},renderMocks(e,t,n){if(r.FilledDocumentLinkContent.is(t.value)){let r=i.DocumentLinkDef.is(e)&&e.customtypes[0]||"mock",o=e.variants||[],u=t.value.variant&&o.includes(t.value.variant)?t.value.variant:o[0];return{id:t.value.id,...e.allowText&&t.value.text&&{text:t.value.text},...u&&{variant:u},link_type:"Document",...!(null==n?void 0:n.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 u(t,e,n)}}}},15802:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16211);t.default={renderV1:(e,t,n)=>({type:"Link.web",value:{...!(null==n?void 0:n.omitKey)&&{key:e.key},...r.FilledExternalLinkContent.is(e.value)&&{url:e.value.url,..."string"==typeof e.value.target&&{target:e.value.target}},...e.value.text&&{text:e.value.text},...e.value.variant&&{variant:e.value.variant}}}),renderV2(e,t,n,i){let o=e.variants||[],u=t.value.variant&&o.includes(t.value.variant)?t.value.variant:o[0];return{link_type:"Web",...!(null==i?void 0:i.omitKey)&&{key:t.key},...r.FilledExternalLinkContent.is(t.value)&&{url:t.value.url,..."string"==typeof t.value.target&&{target:t.value.target}},...e.allowText&&t.value.text&&{text:t.value.text},...u&&{variant:u}}},renderMocks(e,t,n){return this.renderV2(e,t,void 0,n)}}},50632:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16211);t.default=e=>({renderV1:(t,n,i)=>({type:"Link.file",value:{...!(null==i?void 0:i.omitKey)&&{key:t.key},file:{kind:t.value.kind,...r.FilledFileLinkContent.is(t.value)&&{url:e.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,n,i,o){let u=t.variants||[],a=n.value.variant&&u.includes(n.value.variant)?n.value.variant:u[0];return{link_type:"Media",...!(null==o?void 0:o.omitKey)&&{key:n.key},kind:n.value.kind,...r.FilledFileLinkContent.is(n.value)&&{id:n.value.id,url:e.urlRewriter.rewriteFileUrl(n.value.url),name:n.value.name,size:n.value.size},...t.allowText&&n.value.text&&{text:n.value.text},...a&&{variant:a}}},renderMocks(e,t,n){return this.renderV2(e,t,void 0,n)}})},83434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16211);t.default=e=>({renderV1:(t,n,i)=>({type:"Link.image",value:{...!(null==i?void 0:i.omitKey)&&{key:t.key},image:{kind:t.value.kind,...r.FilledImageLinkContent.is(t.value)&&{id:t.value.id,url:e.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,n,i,o){let u=t.variants||[],a=n.value.variant&&u.includes(n.value.variant)?n.value.variant:u[0];return{link_type:"Media",...!(null==o?void 0:o.omitKey)&&{key:n.key},kind:n.value.kind,...r.FilledImageLinkContent.is(n.value)&&{id:n.value.id,url:e.urlRewriter.optimizeImageUrl(n.value.url),name:n.value.name,size:n.value.size,width:n.value.width,height:n.value.height},...t.allowText&&n.value.text&&{text:n.value.text},...a&&{variant:a}}},renderMocks(e,t,n){return this.renderV2(e,t,void 0,n)}})},1666:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:(e,t,n)=>({type:"Link.media",value:{...!(null==n?void 0:n.omitKey)&&{key:e.key},...e.value.text&&{text:e.value.text},...e.value.variant&&{variant:e.value.variant}}}),renderV2(e,t,n,r){let i=e.variants||[],o=t.value.variant&&i.includes(t.value.variant)?t.value.variant:i[0];return{link_type:"Media",...!(null==r?void 0:r.omitKey)&&{key:t.key},...e.allowText&&t.value.text&&{text:t.value.text},...o&&{variant:o}}},renderMocks(e,t,n){return this.renderV2(e,t,void 0,n)}}},57777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=n(22970),i=n(73985),o=r.__importDefault(n(8092)),u=r.__importDefault(n(50335));t.DocumentLinkRenderer=u.default;let a=r.__importDefault(n(15802));t.ExternalLinkRenderer=a.default;let c=r.__importDefault(n(50632));t.FileLinkRenderer=c.default;let f=r.__importDefault(n(83434));t.ImageLinkRenderer=f.default;let l=r.__importDefault(n(1666));t.default=e=>({renderV1(t,n,r){if("ImageLink"===t.value.__TYPE__)return(0,f.default)(e).renderV1({...t,value:t.value},void 0,r);if("DocumentLink"===t.value.__TYPE__)return(0,u.default)(e).renderV1({...t,value:t.value},n,r);if("FileLink"===t.value.__TYPE__)return(0,c.default)(e).renderV1({...t,value:t.value},void 0,r);if("ExternalLink"===t.value.__TYPE__)return a.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 o.default.renderV1({...t,value:t.value},void 0,r);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,n,r,p){return((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ImageLink"===n.value.__TYPE__?(0,f.default)(e).renderV2(t.config,{...n,value:n.value},void 0,p):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,u.default)(e).renderV2(t.config,{...n,value:n.value},r,p):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,c.default)(e).renderV2(t.config,{...n,value:n.value},void 0,p):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?a.default.renderV2(t.config,{...n,value:n.value},void 0,p):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"MediaLink"===n.value.__TYPE__?l.default.renderV2(t.config,{...n,value:n.value},void 0,p):(0,i.isAnyLinkDef)(t)&&"AnyLink"===n.value.__TYPE__?o.default.renderV2(t.config,{...n,value:n.value},void 0,p):this.renderDefault(t)},renderDefault(e){var t;switch(null===(t=e.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,n,r){return((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ImageLink"===n.value.__TYPE__?(0,f.default)(e).renderMocks(t.config,{...n,value:n.value},r):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,u.default)(e).renderMocks(t.config,{...n,value:n.value},r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,c.default)(e).renderMocks(t.config,{...n,value:n.value},r):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?a.default.renderMocks(t.config,{...n,value:n.value},r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"MediaLink"===n.value.__TYPE__?l.default.renderMocks(t.config,{...n,value:n.value},r):(0,i.isAnyLinkDef)(t)&&"AnyLink"===n.value.__TYPE__?o.default.renderMocks(t.config,{...n,value:n.value},r):this.renderDefault(t)}})},97562:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Separator"}),renderV2:(e,t)=>!0,renderDefault:e=>!0,renderMocks(e,t){return this.renderV2(e,t)}}},83775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=r.__importStar(n(87412)),u=n(73985),a=n(73985),c=n(79687),f=r.__importDefault(n(57777));function l(e){if((0,i.isLinkContent)(e))switch(e.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(e)}`)}function p(e,t,n){return t===u.ApiVersion.v1?(0,f.default)(n).renderV1(e,void 0,{omitKey:!0}):t===u.ApiVersion.v2?(0,f.default)(n).renderV2((0,a.defaultLink)(l(e)),e,void 0,{omitKey:!0}):t===u.ApiVersion.mocks?(0,f.default)(n).renderMocks((0,a.defaultLink)(l(e)),e,{omitKey:!0}):void 0}t.default=e=>({renderBlock:t=>n=>{if((0,i.checkImageBlock)(t)){let r=t.data.linkTo?{linkTo:p({__TYPE__:"LinkContent",key:"",value:t.data.linkTo},n,e)}:{},i=t.label?{label:t.label}:{},o=t.direction?{direction:t.direction}:{},a=n===u.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:e.urlRewriter.rewriteImageUrl(t.data),alt:(0,c.writeEmptyStringOrNull)(t.data.alt,e.emptyStringInsteadOfNull),copyright:(0,c.writeEmptyStringOrNull)(t.data.credits,e.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...a,...r,...i,...o}}if((0,i.checkEmbedBlock)(t)){let e=t.label?{label:t.label}:{},n=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...e,...n}}{let r=t.label?{label:t.label}:{},u=t.direction?{direction:t.direction}:{},a=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let u=i.Link.decode(t.data),a=o.isRight(u)?p({__TYPE__:"LinkContent",value:u.right},n,e):{};return{...r,data:a}}return"label"===t.type?{...r,data:{label:"string"==typeof t.data?t.data:""}}:r});return{type:t.type,text:t.content.text,...r,spans:a,...u}}}})},558:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(14632),o=r.__importStar(n(72720)),u=n(73985),a=r.__importDefault(n(83775));function c(e,t){return t({__TYPE__:"StructuredTextContent",value:(0,i.pipe)(o.fromNullable(e.value.find(e=>e.type.startsWith("heading"))),o.alt(()=>o.fromNullable(e.value.find(e=>"embed"!==e.type&&"image"!==e.type))),o.map(e=>[e]),o.getOrElse(()=>[]))})}t.default=e=>({renderV1(t,n){let r=t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1));return void 0!==n&&n.legacy?c(t,t=>t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,n,r){return void 0!=r&&r.legacy?c(n,e=>this.renderV2(t,e,void 0)):n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v2))},renderDefault:e=>[],renderMocks:(t,n)=>n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.mocks))})},11873:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(96742),o=r.__importDefault(n(558));function u(e,t){return{key:e.key,cells:e.content.map(e=>({key:e.key,type:a[e.type],content:t(e.content)}))}}let a={tableHeader:"header",tableCell:"data"};t.default=e=>({renderV1:(e,t)=>null,renderV2:(t,n,r)=>(function(e,t){let n=e.content[0];if(!n)return null;let r=n.content.every(e=>"tableHeader"===e.type),i=r?n:void 0,o=r?e.content.slice(1):e.content;return{...i?{head:function(e,t){if(e)return{rows:[u(e,t)]}}(i,t)}:{},body:{rows:o.map(e=>u(e,t))}}})(n,t=>(0,o.default)(e).renderV2(i.TableCell,t,r)),renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}})},26041:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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 i=n(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=n(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=n(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=n(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=n(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}});var s=n(11873);Object.defineProperty(t,"TableRenderer",{enumerable:!0,get:function(){return r(s).default}})},24485:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(71659),o=n(79687),u=r.__importDefault(n(12706));t.default=e=>({renderV1(t,n){var r,i;let a=null===(r=null==n?void 0:n.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==n?void 0:n.nonRepeat)||void 0===i?void 0:i.fields,f=t.repeat.flatMap(t=>{let n=(0,u.default)(e).renderV1Object(t.value,a);return(0,o.isEmpty)(n)?[]:[n]});return{"non-repeat":(0,u.default)(e).renderV1Object(t.nonRepeat,c),repeat:f}},renderV2(t,n,r){var o;let a=void 0===r?void 0:{TYPE:i.GroupType,name:t.type,fields:r.repeat.fields},c=null===(o=null==r?void 0:r.nonRepeat)||void 0===o?void 0:o.fields,f=n.repeat.map(n=>(0,u.default)(e).renderV2Object(n.value,null==a?void 0:a.fields,t.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}));return{primary:(0,u.default)(e).renderV2Object(n.nonRepeat,c,t["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"}),items:f}},renderDefault:e=>({}),renderMocks(t,n){let r=n.repeat.map(n=>(0,u.default)(e).renderMocksObject(n.value,t.repeat||{}));return{primary:(0,u.default)(e).renderMocksObject(n.nonRepeat,t["non-repeat"]||{}),items:r}}})},68422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970).__importDefault(n(12706));function i(e,t,n){var r,i,o;return null===(o=null===(i=null===(r=null==n?void 0:n.variations)||void 0===r?void 0:r[e])||void 0===i?void 0:i[t])||void 0===o?void 0:o.fields}t.default=e=>({renderV1(t,n){let o=t.items.map(o=>(0,r.default)(e).renderV1Object(o.value,i(t.variation,"repeat",n))),u=(0,r.default)(e).renderV1Object(t.primary,i(t.variation,"nonRepeat",n));return{variation:t.variation,items:o,primary:u}},renderV2(t,n,o){let u=t.variations.find(e=>e.id===n.variation);if(void 0===u)return this.renderDefault(t);let a=n.items.map(t=>(0,r.default)(e).renderV2Object(t.value,i(n.variation,"repeat",o),u.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,r.default)(e).renderV2Object(n.primary,i(n.variation,"nonRepeat",o),u.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:n.variation,version:u.version,items:a,primary:c}},renderDefault:e=>({}),renderMocks(t,n){let i=t.variations.find(e=>e.id===n.variation);if(void 0===i)return this.renderDefault(t);let o=n.items.map(t=>(0,r.default)(e).renderMocksObject(t.value,i.items||{})),u=(0,r.default)(e).renderMocksObject(n.primary,i.primary||{});return{variation:n.variation,version:i.version,items:o,primary:u}}})},57962:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=r.__importStar(n(72720)),u=r.__importDefault(n(12706));t.default=e=>({renderV1:(t,n)=>t.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV1(t,n)}),renderV2:(t,n,r)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV2(t,n,r)}),renderDefault:e=>({}),renderMocks:(t,n)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderMocks(t,n)})})},6324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=n(96742),u=r.__importStar(n(72720)),a=n(71659),c=r.__importDefault(n(24485)),f=r.__importDefault(n(68422)),l=r.__importDefault(n(57962)),p={extractCompositeSlice(e){if(void 0!==e&&e.TYPE===a.CompositeSliceType)return e},extractSharedSlice(e){if(void 0!==e&&e.TYPE===a.SharedSliceType)return e},extractGroupOrField(e){if(void 0!==e&&e.TYPE!==a.CompositeSliceType&&e.TYPE!==a.SharedSliceType)return e}};t.default=e=>({renderV1:(t,n)=>(0,i.isCompositeSliceContent)(t)?u.some((0,c.default)(e).renderV1(t,p.extractCompositeSlice(n))):(0,i.isSharedSliceContent)(t)?u.some((0,f.default)(e).renderV1(t,p.extractSharedSlice(n))):(0,l.default)(e).renderV1(t,p.extractGroupOrField(n)),renderV2(t,n,r){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderV2(t,n,p.extractCompositeSlice(r))):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderV2(t,n,p.extractSharedSlice(r))):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderV2(t,n,p.extractGroupOrField(r)):u.some(this.renderDefault(t))},renderDefault:e=>({}),renderMocks(t,n){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderMocks(t,n)):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderMocks(t,n)):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderMocks(t,n):u.some(this.renderDefault(t))}})},3758:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(16211),o=n(42275),u=n(92425),a=r.__importStar(n(20492)),c=n(60130),f=n(79687),l=r.__importDefault(n(6324));function p(e,t){let n=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return e.match(n)?e:`${t}$${(0,c.v4)()}`}t.default=e=>({renderV1:(t,n)=>({type:"SliceZone",value:(function(e,t,n){let r=null==t?void 0:t.slices;return(0,u.compact)(e.value.map(e=>(0,o.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,e.key,t=>(0,l.default)(n).renderV1(e.widget,t)),a.map(t=>[e,t]))))})(t,n,e).map(([e,t])=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null,type:"Slice"}})}),renderV2(t,n,r){var c;let d=Object.fromEntries(Object.entries((null===(c=t.config)||void 0===c?void 0:c.choices)||{}).map(([e,t])=>[e,t])),s=null==r?void 0:r.slices;return(0,u.compact)(n.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(s,t.name,n=>(function(e,t,n,r){if("__TYPE__"in e.widget&&e.widget.__TYPE__===i.EmptyContentType||!(e.name in r))return a.none;{let i=r[e.name];return i?(0,o.pipe)((0,l.default)(n).renderV2(i,e.widget,t),a.map(t=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null}})):a.none}})(t,n,e,d))))},renderDefault:e=>[],renderMocks(e,t){return this.renderV2(e,t)}})},94814:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var i=n(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},53953:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},59146:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0,t.getAssetOrThrow=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n}},23234:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0,t.getEmbedOrThrow=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n}},62754:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},18573:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(47320),o=RegExp("^[^<>]+$");t.WidgetKey=(0,i.refineType)(r.string,"WidgetKey",e=>0===e.length||o.test(e))},11697:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(59146),t),(0,r.__exportStar)(n(23234),t),(0,r.__exportStar)(n(18573),t)},48925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(53953),f=n(11697),l=n(96742),p=n(1645),d=n(97532);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),m=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function h(e){let{types:t,widgets:n}=Object.entries(e).reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),r=e.slugs_INTERNAL||[];return{widgets:n,types:t,uid:e.uid,slugs:r}}function y(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function v({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?y(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"}]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);case"RepeatableContent":return(0,p.traverseRepeatableContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:u})(t);case"TableContent":return(0,p.traverseTableContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function g(e,t){let n=l.StaticCustomType.is(t)?y(t):t;return Object.values((0,l.collectSharedSlices)(n)).some(e=>!!e.legacyPaths)?v({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:m,extractMetadata:h,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=h(e);return m(t).decode(n)}));return(0,o.isLeft)(n)?void 0:g(n.right,t)},encode:function(e){let t=m().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?y(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return o?{...e,[n]:o}:e},t)},t.traverseDocument=v,t.collectWidgets=function(e,t){let n={};return v({document:e})({transformWidget:({content:e,path:r})=>{let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=g},97532:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(54249);t.FieldOrSliceType=r.union([r.union([i.FieldType,i.SlicesTypes]),r.literal("Repeatable.Link")]);class o{constructor(e,t,n){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=e,this.fieldPath=t||[],this.allTypes=n||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=o,t.getFieldCtx=function(e,t,n){return new o(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new o(e,[],t)}},34039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.EmptyContentType="EmptyContent",t.isEmptyContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;let c=u.union([u.null,u.type({value:u.null})]);t.EmptyLegacy=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(c.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null),t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},31952:function(e,t,n){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=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(96742),f=n(97532),l=n(72186),p=n(12750),d=n(77184);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupItemContent=a.recursion("GroupItemContent",()=>a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,a.union([p.NestableContent,t.GroupContent])]))})),t.GroupContent=a.recursion("GroupContent",()=>a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)})),t.isGroupContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupContentType,t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]};let s=a.record(a.string,a.unknown);function m({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=h({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function h({path:e,model:n,content:r}){return i=>r.map((r,o)=>{let u=e.concat([{key:o.toString(),type:"GroupItem"}]),a=r.value.reduce((e,[r,o])=>{let a;let c=null==n?void 0:n[r];return(a=(0,t.isGroupContent)(o)?m({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Group"?c:void 0,content:o})(i):(0,p.isRepeatableContent)(o)?(0,p.traverseRepeatableContent)({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Link"?c:void 0,content:o})(i):(0,p.isTableContent)(o)?(0,p.traverseTableContent)({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Table"?c:void 0,content:o})(i):i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:c,content:o}))&&((0,p.isNestableContent)(a)||(0,t.isGroupContent)(a))?e.concat([[r,a]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupItemLegacy=e=>new a.Type("GroupItemLegacy",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>(0,u.pipe)(s.decode(n),i.either.map(n=>({value:Object.entries(n).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,e),a=u.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(u).decode(i):(0,p.NestableLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?n:[...n,[r,a.right]]},[]),__TYPE__:t.GroupItemContentType}))),n=>n.value.reduce((n,[r,i])=>{let o=(0,f.getFieldCtx)(r,e),u=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(o).encode(i):(0,p.NestableLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}})),t.GroupLegacy=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:c.GroupFieldType})}})},t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=m,t.traverseGroupItemsContent=h},17320:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.UIDContentType="UIDContent",t.isUIDContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType,t.UIDLegacy=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}})),t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},40098:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(31952),o=n(12750),u=n(91167),a=n(17320);t.WidgetContent=r.union([i.GroupContent,o.NestableContent,a.UIDContent,u.SlicesContent]),t.isWidgetContent=e=>(0,i.isGroupContent)(e)||(0,o.isNestableContent)(e)||(0,a.isUIDContent)(e)||(0,u.isSlicesContent)(e),t.WidgetLegacy=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,a.UIDLegacy)(e);case"Group":return(0,i.GroupLegacy)(e);case"Choice":case"Slices":return(0,u.SlicesLegacy)(e);default:return(0,o.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case a.UIDContentType:return(0,a.UIDLegacy)(e).encode(t);case i.GroupContentType:return(0,i.GroupLegacy)(e).encode(t);case u.SlicesContentType:return(0,u.SlicesLegacy)(e).encode(t);default:return(0,o.NestableLegacy)(e).encode(t)}}})},1645:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(34039),t),(0,r.__exportStar)(n(31952),t),(0,r.__exportStar)(n(12750),t),(0,r.__exportStar)(n(91167),t),(0,r.__exportStar)(n(17320),t),(0,r.__exportStar)(n(40098),t)},3136:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.BooleanContentType="BooleanContent",t.isBooleanContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType,t.BooleanLegacy=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}})),t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean}),t.BooleanContentDefaultValue=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0}},11893:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(37581),c=n(72186);t.EmbedContentType="EmbedContent",t.isEmbedContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull})])),t.EmbedLegacy=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}})),t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown})])},26377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isColorContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type,t.ColorLegacy=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}})),t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},30626:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isDateContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type,t.DateLegacy=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}})),t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},82341:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isNumberContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type,t.NumberLegacy=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}})),t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},15908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isRangeContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type,t.RangeLegacy=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}})),t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},27876:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isSelectContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type,t.SelectLegacy=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}})),t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)}),t.SelectContentDefaultValue=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0}},74474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isTextContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type,t.TextLegacy=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}})),t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},57780:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(54249),c=(0,r.__importDefault)(n(38417)),f=n(72186),l=n(33111);t.isTimestampContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type,t.TimestampLegacy=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}})),t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},33111:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},48930:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(22970),i=(0,r.__importStar)(n(87830)),o=n(26377),u=n(30626),a=n(82341),c=n(15908),f=n(27876),l=n(74474),p=n(57780);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent]),(0,r.__exportStar)(n(26377),t),(0,r.__exportStar)(n(33111),t),(0,r.__exportStar)(n(30626),t),(0,r.__exportStar)(n(82341),t),(0,r.__exportStar)(n(15908),t),(0,r.__exportStar)(n(27876),t),(0,r.__exportStar)(n(74474),t),(0,r.__exportStar)(n(57780),t)},33065:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(22970),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(72186);t.GeoPointContentType="GeoPointContent",t.isGeoPointContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;let c=u.strict({position:u.strict({lat:u.number,lng:u.number})});t.GeoPointLegacy=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(c.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}})),t.GeoPointContent=u.intersection([c,u.strict({__TYPE__:u.literal(t.GeoPointContentType)})])},73089:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(77454),c=n(37581),f=n(72186);t.ImageContentType="ImageContent",t.isImageContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;let l=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:l,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull})]));let p=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)})]);t.ImageLegacy=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__TYPE__:t.ImageContentType}))),t=>({content:(0,a.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:{[e.keyOfType]:"Image"}})),t.ImageContent=u.intersection([p,u.strict({__TYPE__:u.literal(t.ImageContentType)})])},32732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186);t.IntegrationFieldContentType="IntegrationFieldsContent",t.isIntegrationFieldContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType,t.IntegrationFieldLegacy=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}})),t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},17665:function(e,t,n){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=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(37581),f=n(47320),l=n(72186);t.ImageLinkType="ImageLink";let p=e=>"string"==typeof e,d=new u.Type("ImageLinkKind",e=>p(e),(e,t)=>p(e)?u.success("image"):u.failure(e,t),()=>"image"),s=u.intersection([u.strict({kind:d,id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string}),u.exact(u.partial({date:c.StringOrNull}))]),m=new u.Type("FilledImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FilledImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>s.encode(e));t.FilledImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),s]);let h=u.intersection([u.union([s,u.strict({kind:u.literal("image")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),y=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>h.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),h]),t.FileLinkType="FileLink";let v=e=>"string"==typeof e,g=new u.Type("FileLinkKind",e=>v(e),(e,t)=>v(e)?u.success("file"):u.failure(e,t),()=>"file"),_=u.exact(u.intersection([u.type({kind:g,id:u.string,url:u.string,name:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:c.StringOrNull})])),b=new u.Type("FilledFileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(_.decode(e),i.either.map(e=>t.FilledFileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>_.encode(e));t.FilledFileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),_]);let T=u.intersection([u.union([_,u.strict({kind:u.literal("file")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),S=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(T.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>T.encode(e));t.FileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),T]),t.MediaLinkType="MediaLink";let I=u.intersection([u.strict({kind:u.literal("media")}),u.exact(u.partial({text:u.string,variant:u.string}))]),R=new u.Type("MediaLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.MediaLinkType,e=>(0,o.pipe)(I.decode(e),i.either.map(e=>t.MediaLinkContent.encode({...e,__TYPE__:t.MediaLinkType}))),e=>I.encode(e));t.MediaLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.MediaLinkType)}),I]),t.DocumentLinkType="DocumentLink";let C=u.strict({id:c.NonEmptyString}),x=new u.Type("FilledDocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(C.decode(e),i.either.map(e=>t.FilledDocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>C.encode(e));t.FilledDocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),C]);let O=u.intersection([u.union([C,u.strict({kind:u.literal("document")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),w=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(O.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>O.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),O]),t.ExternalLinkType="ExternalLink";let M=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))})])),E=new u.Type("FilledExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(M.decode(e),i.either.map(e=>t.FilledExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>M.encode(e));t.FilledExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),M]);let k=u.intersection([u.union([M,u.strict({kind:u.literal("web")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),P=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(k.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>k.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),k]),t.AnyLinkType="AnyLink";let F=u.exact(u.intersection([u.type({kind:(0,a.withFallback)(u.literal("any"),"any")}),u.partial({text:u.string,variant:u.string})])),L=new u.Type("AnyLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.AnyLinkType,e=>(0,o.pipe)(F.decode(e),i.either.map(e=>t.AnyLinkContent.encode({...e,__TYPE__:t.AnyLinkType}))),e=>F.encode(e));t.AnyLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.AnyLinkType)}),F]),t.LinkContentType="LinkContent",t.isLinkContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.LinkLegacy=(0,l.withKey)(u.union([y,S,w,P,R,L])),t.LinkContentLegacy=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(({key:e,...n})=>t.LinkContent.encode({__TYPE__:"LinkContent",key:e,value:n}))),({key:n,value:r})=>({content:t.LinkLegacy.encode({...r,key:n}),types:{[e.keyOfType]:"Link"}})),t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=(0,l.withKey)(u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=u.union([m,b,x,E]),t.FilledLinkContentLegacy=e=>{let n=(0,l.withKey)(t.FilledLinkLegacy);return new u.Type("FilledLinkLegacy",t.isFilledLinkContent,e=>(0,o.pipe)(n.decode(e),i.either.map(({key:e,...n})=>t.FilledLinkContent.encode({__TYPE__:"LinkContent",key:e,value:n}))),({key:t,value:r})=>({content:n.encode({...r,key:t}),types:{[e.keyOfType]:"Link"}}))},t.FilledLink=u.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=(0,l.withKey)(u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.FilledLink}))},22577:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(34039),a=n(3136),c=n(11893),f=n(48930),l=n(33111),p=n(33065),d=n(73089),s=n(32732),m=n(17665),h=n(59530),y=n(29474),v=n(93783),g=n(81299);t.NestableContent=o.union([u.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,m.LinkContent,y.RichTextContent,v.SeparatorContent,g.TableContent,h.RepeatableContent]),t.NestableContentDefaultValue=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}},t.isNestableContent=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,y.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,g.isTableContent)(e)||(0,u.isEmptyContent)(e)||(0,h.isRepeatableContent)(e),t.NestableLegacy=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,y.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,m.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);case"Table":return(0,g.TableLegacy)(e);case"Repeatable.Link":return(0,h.RepeatableLegacy)(e,"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)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case y.RichTextContentType:return(0,y.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);case g.TableContentType:return(0,g.TableLegacy)(e).encode(t);case"RepeatableContent":return(0,h.RepeatableLegacy)(e,t.type).encode(t);default:return}}})},59530:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseRepeatableContent=t.RepeatableLegacy=t.isRepeatableContent=t.RepeatableContent=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(72186),f=n(17665),l="RepeatableContent";t.RepeatableContent=a.strict({__TYPE__:a.literal(l),type:a.literal("Link"),value:a.array(f.LinkContent)}),t.isRepeatableContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===l,t.RepeatableLegacy=(e,n)=>new a.Type("RepeatableLegacy",t.isRepeatableContent,t=>(0,u.pipe)(a.array(a.unknown).decode(t),i.either.map(t=>({value:t.reduce((t,r)=>{let i;return"Link"===n&&(i=(0,f.LinkContentLegacy)(e).decode(r)),!i||(0,o.isLeft)(i)?t:[...t,i.right]},[]),type:n,__TYPE__:"RepeatableContent"}))),t=>({content:a.array(f.LinkContent).encode(t.value).reduce((t,n)=>{let r;return n.__TYPE__===f.LinkContentType&&(r=(0,f.LinkContentLegacy)(e).encode(n)),r?[...t,r]:t},[]).map(e=>e.content),types:{[e.keyOfType]:`Repeatable.${n}`}})),t.traverseRepeatableContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{let u=i.value.reduce((i,u,a)=>{let c=o({path:e.concat([{key:a.toString(),type:"Widget"}]),key:t,apiId:n,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:u});return c&&(0,f.isLinkContent)(c)?i.concat(c):i},[]);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,type:i.type,value:u}})}}},3110:function(e,t,n){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=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(46239),l=n(37581),p=n(47320),d=n(11893),s=n(73089),m=n(17665),h=e=>a.strict({data:e,start:a.number,end:a.number,type:a.literal(f.RichTextNodeType.hyperlink)}),y=a.strict({data:(0,c.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),v=a.strict({start:a.number,end:a.number,type:a.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=a.union([h(m.FilledLink),y,v]),t.SpanLegacy=a.union([h(m.FilledLinkLegacy),y,v]),t.ValidatedSpans=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let n=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(n)}},t=>t.reduce((t,n)=>[...t,e.encode(n)],[]));let g=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)})])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})]));t.ImageBlock=g(m.FilledLink);let _=g(m.FilledLinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let b=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),T=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(b.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...b.encode(e),data:d.EmbedContentLegacy.encode(e.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),t.checkEmbedBlock=function(e){return e.type===f.RichTextNodeType.embed};let S=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)})])}),a.partial({label:a.string,direction:a.string})]));t.TextBlock=S(t.Span),t.TextBlockLegacy=S(t.SpanLegacy);let I=a.union([T,_,t.TextBlockLegacy]);t.BlockLegacy=new a.Type("BlockLegacy",e=>T.is(e)||_.is(e)||t.TextBlockLegacy.is(e),e=>I.decode(e),e=>t.ImageBlock.is(e)?_.encode(e):t.EmbedBlock.is(e)?T.encode(e):t.TextBlockLegacy.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},29474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.RichTextLegacyContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(72186),c=n(3110);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType,t.RichTextLegacyContent=u.array(c.BlockLegacy),t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(3110),t),t.RichTextLegacy=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(t.RichTextLegacyContent.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),n=>({content:t.RichTextLegacyContent.encode(n.value),types:{[e.keyOfType]:"StructuredText"}}))},93783:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(72186);t.SeparatorContentType="SeparatorContent",t.isSeparatorContent=e=>(0,i.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType,t.SeparatorLegacy=e=>new r.Type("SeparatorLegacy",t.isSeparatorContent,()=>r.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}})),t.SeparatorContent=r.strict({__TYPE__:r.literal(t.SeparatorContentType)})},81299:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseTableContent=t.TableLegacy=t.TableContent=t.isTableContent=t.TableContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(96742),c=n(72186),f=n(29474);t.TableContentType="TableContent",t.isTableContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.TableContentType;let l=(0,c.withKey)(u.intersection([u.strict({type:u.union([u.literal("tableHeader"),u.literal("tableCell")]),content:f.RichTextContent}),u.exact(u.partial({columnWidth:u.number}))])),p=(0,c.withKey)(u.strict({type:u.literal("tableRow"),content:u.array(l)}));t.TableContent=u.strict({__TYPE__:u.literal(t.TableContentType),content:u.array(p)});let d=(0,c.withKey)(u.intersection([u.strict({type:u.union([u.literal("tableHeader"),u.literal("tableCell")]),content:f.RichTextLegacyContent}),u.exact(u.partial({columnWidth:u.number}))])),s=(0,c.withKey)(u.strict({type:u.literal("tableRow"),content:u.array(d)})),m=u.strict({content:u.array(s)});t.TableLegacy=e=>new u.Type("TableLegacy",t.isTableContent,e=>(0,o.pipe)(m.decode(e),i.either.map(e=>({__TYPE__:"TableContent",content:e.content.map(e=>({...e,content:e.content.map(e=>({...e,content:{__TYPE__:"StructuredTextContent",value:e.content}}))}))}))),t=>({content:m.encode({content:t.content.map(e=>({...e,content:e.content.map(e=>({...e,content:e.content.value}))}))}),types:{[e.keyOfType]:"Table"}})),t.traverseTableContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{let u=i.content.map((r,i)=>({...r,content:r.content.map((r,u)=>{let c=o({path:e.concat([{key:[i.toString(),u.toString()].join(","),type:"Widget"}]),key:t,apiId:n,model:a.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:c}})}));return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,content:u}})}}},12750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(3136),t),(0,r.__exportStar)(n(11893),t),(0,r.__exportStar)(n(48930),t),(0,r.__exportStar)(n(33065),t),(0,r.__exportStar)(n(73089),t),(0,r.__exportStar)(n(32732),t),(0,r.__exportStar)(n(17665),t),(0,r.__exportStar)(n(22577),t),(0,r.__exportStar)(n(59530),t),(0,r.__exportStar)(n(29474),t),(0,r.__exportStar)(n(93783),t),(0,r.__exportStar)(n(81299),t)},96865:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(97532),f=n(72186),l=n(31952),p=n(12750),d=n(77184),s=n(68413);t.CompositeSliceContentType="CompositeSliceContent",t.isCompositeSliceContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord}));t.CompositeSliceLegacy=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,s.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}),repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e);return(0,s.RepeatableWidgetsLegacy)(n).encode(t.repeat)})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}}),t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,d.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===f?void 0:f[u]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:n,model:d,content:a});return s?(0,p.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,l.traverseGroupItemsContent)({path:e.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:i.widget.repeat})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},68413:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(31952),o=n(12750);t.RepeatableWidgetsLegacy=e=>r.array((0,i.GroupItemLegacy)(e));let u=r.tuple([r.string,r.union([o.NestableContent,i.GroupContent])]),a=r.strict({__TYPE__:r.literal(i.GroupItemContentType),value:r.array(u)});t.RepeatableWidgets=r.array(a)},914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(96742),l=n(97532),p=n(72186),d=n(31952),s=n(12750),m=n(77184),h=n(68413),y=n(55076);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;let v=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})}));t.SharedSliceLegacy=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(v.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation]),r=(0,h.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary"]),a=(0,y.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary"]),u=(0,y.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation]);return(0,h.RepeatableWidgetsLegacy)(n).encode(t.items)})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}}),t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,y.SlicePrimaryContent),items:h.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,m.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,m.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,a])=>{var c,l;let p=null===(l=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===l?void 0:l[u],m=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(o):(0,s.isRepeatableContent)(a)?(0,s.traverseRepeatableContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)==="Link"?p:void 0})(o):(0,s.isTableContent)(a)?(0,s.traverseTableContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)==="Table"?p:void 0})(o):(0,s.isNestableContent)(a)?o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,model:p,content:a}):void 0;return m?((0,y.isSlicePrimaryContent)(m)||console.warn(`Warn: Non nestable or group content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),{...i,[u]:m}):i},{}),c=(0,d.traverseGroupItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},463:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(31952),o=n(12750);t.SimpleSliceContent=r.union([o.NestableContent,i.GroupContent]),t.isSimpleSliceContent=e=>(0,o.isNestableContent)(e)||(0,i.isGroupContent)(e),t.SimpleSliceLegacy=e=>({decode:"Group"===e.fieldType?(0,i.GroupLegacy)(e).decode.bind(null):(0,o.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,i.GroupLegacy)(e).encode(t):(0,o.NestableLegacy)(e).encode(t)}),t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:o}){return(u,a)=>{var c;if((0,i.isGroupContent)(o.widget)){let t=(0,i.traverseGroupContent)({path:e,key:o.key,apiId:o.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:o.widget})(u);return t&&a({key:o.key,apiId:o.name,path:e,model:r,content:{...o,widget:t}})}let f=u({key:o.key,apiId:o.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[o.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:o.widget});return f&&a({key:t,apiId:n,path:e,model:r,content:{...o,widget:f}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},55076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(96742),o=n(31952),u=n(12750);t.SlicePrimaryContent=r.union([u.NestableContent,o.GroupContent]),t.SlicePrimaryLegacy=e=>{let t=(0,o.GroupLegacy)(e),n=(0,u.NestableLegacy)(e);return{decode:r=>e.fieldType===i.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,o.isGroupContent)(e)?t.encode(e):n.encode(e)}},t.isSlicePrimaryContent=e=>(0,u.isNestableContent)(e)||(0,o.isGroupContent)(e)},77822:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(22970),i=(0,r.__importStar)(n(87830)),o=n(96865),u=n(914),a=n(463);t.SliceLegacy=e=>({decode:t=>(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})().decode(t),encode:t=>{switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}}),t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent]),(0,r.__exportStar)(n(96865),t),(0,r.__exportStar)(n(914),t),(0,r.__exportStar)(n(463),t),(0,r.__exportStar)(n(55076),t)},26226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(47320),f=n(97532),l=n(31952),p=n(12750),d=n(77184),s=n(77822),m=n(96865),h=n(914),y=n(463);function v(e){return(0,m.isCompositeSliceContent)(e.widget)}function g(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,h.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=v,t.isSimpleSliceItemContent=g,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,h.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,m.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let n=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:n}}return t};let _=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)})]));t.SlicesItemLegacy=e=>new a.Type("SlicesItemLegacy",e=>((0,h.isSharedSliceContent)(e.widget),(0,m.isCompositeSliceContent)(e.widget),(0,y.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(_.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).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:e,content:t})=>v(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,y.migrateSimpleSlice)(e,t):t},19436:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(53953),c=n(96742),f=n(72186),l=n(96865),p=n(914),d=n(463),s=n(26226);t.SlicesContentType="SliceContentType",t.isSlicesContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType,t.SlicesLegacy=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})},t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},91167:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(77822),t),(0,r.__exportStar)(n(26226),t),(0,r.__exportStar)(n(19436),t)},77184:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(96742),i=n(31952),o=n(12750);t.withDefaultSlicePrimaryContentValues=function(e,t){for(let[n,u]of Object.entries(e)){let e=t[n];if(void 0===e){if(u.type===r.GroupFieldType)t[n]=(0,i.groupContentWithDefaultValues)(u,i.GroupContentDefaultValue);else{let e=(0,o.NestableContentDefaultValue)(u);e&&(t[n]=e)}continue}u.type===r.GroupFieldType&&(0,i.isGroupContent)(e)&&(t[n]=(0,i.groupContentWithDefaultValues)(u,e))}return t},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let t=(0,o.NestableContentDefaultValue)(r);return void 0!==t?{...e,[n]:t}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var u;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let e=(0,i.groupContentWithDefaultValues)(r,null!==(u=null==a?void 0:a[1])&&void 0!==u?u:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...e?[[n,e]]:[]]}}if(!a){let e=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...e?[[n,e]]:[]]}}return t},e))}},16211:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(48925),t),(0,r.__exportStar)(n(1645),t),(0,r.__exportStar)(n(97532),t)},72186:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withKey=t.hasContentType=t.hasFieldContentType=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(60130),a=n(1645);function c(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return c(e)&&e.__TYPE__===a.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,i.isRight)(a.FieldType.decode(e.type))},t.hasContentType=c;let f=e=>"string"==typeof e&&(0,u.validate)(e),l=new o.Type("UUID",f,(e,t)=>void 0===e?o.success((0,u.v4)()):f(e)?o.success(e):o.failure(e,t),o.identity);t.withKey=function(e){return o.intersection([o.strict({key:l}),e])}},32141:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),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=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(37581),c=n(69879);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){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=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
2
- ${t.join("\n")}
3
- `}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")})]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=p(e).filter(([,e])=>"Slices"===e.type).reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return function(e){return t.map(e)}})(e)(e=>{if(!t.get(e))return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let e=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),r={...n.config,choices:e};return{...n,config:r}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},69879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(11697),o=n(34716);function u(e){return r.record(i.WidgetKey,e)}t.sectionReader=u,t.StaticSection=u(o.StaticWidget),t.DynamicSection=u(o.DynamicWidget),t.Sections={toStatic:(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:o.Widgets.toStatic(r,t)}),{})}},10505:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},66257:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(68845),i=n(10505),o=n(67068);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=Object.entries(r.Objects.zipObjects(e,t)).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{}),u=Object.entries(r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id))).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),a={...n,...r.Objects.isNotEmpty(u)?{variations:u}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},67068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(68845),i=n(73045),o=n(10505);function u(e,t){let n=Object.entries(r.Objects.zipObjects(e,t)).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,a,c,f,l;if((null==n?void 0:n.left)||(null==n?void 0:n.right)){if((null==n?void 0:n.left)&&!n.right)return{op:o.DiffOperation.Removed};if(!(null==n?void 0:n.left)&&(null==n?void 0:n.right)){if((null===(e=n.right)||void 0===e?void 0:e.type)===i.GroupFieldType){let e={...n.right,config:{...n.right.config,fields:{}}};return e.config.fields=u(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:o.DiffOperation.Added,value:e}}return{op:o.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let e={...n.right,config:{...n.right.config,fields:{}}};return e.config.fields=u((null===(a=n.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=n.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=n.right.config)||void 0===l?void 0:l.fields)||{},{op:o.DiffOperation.Updated,value:e}}return{op:o.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(n)?n:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:o.DiffOperation.Removed};if(!e&&t)return{op:o.DiffOperation.Added,value:t};let n=Object.entries(r.Objects.zipObjects(e,t)).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{}),i=u(null==e?void 0:e.primary,null==t?void 0:t.primary),a=u(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:o.DiffOperation.Updated,value:c}}}},29294:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},81566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(10505),t),(0,r.__exportStar)(n(66257),t),(0,r.__exportStar)(n(67068),t),(0,r.__exportStar)(n(29294),t)},96742:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(32141),t),(0,r.__exportStar)(n(81566),t),(0,r.__exportStar)(n(69879),t),(0,r.__exportStar)(n(54249),t)},73045:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(11697),o=n(37581),u=n(97662);t.GroupFieldType="Group";let a=e=>r.exact(r.partial({label:o.StringOrNull,repeat:r.boolean,fields:r.record(i.WidgetKey,e)})),c=e=>r.exact(r.intersection([r.type({type:r.literal(t.GroupFieldType)}),r.partial({fieldset:o.StringOrNull,icon:r.string,description:r.string,config:a(e)})]));t.NestedGroupConfig=a(u.NestableWidget),t.NestedGroup=c(u.NestableWidget),t.GroupConfig=a(r.union([u.NestableWidget,t.NestedGroup])),t.Group=c(r.union([u.NestableWidget,t.NestedGroup]))},80260:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.UIDFieldType="UID",t.UIDConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.UID=r.exact(r.intersection([r.type({type:r.literal(t.UIDFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.UIDConfig})]))},34716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(73045),o=n(46239),u=n(97662),a=n(8972),c=n(80260);function f(e){return r.union([c.UID,u.NestableWidget,i.Group,e])}t.widgetReader=f,t.StaticWidget=f(a.StaticSlices),t.DynamicWidget=f(a.DynamicSlices),t.FieldType=r.keyof({[o.ColorFieldType]:null,[o.BooleanFieldType]:null,[o.NumberFieldType]:null,[o.EmbedFieldType]:null,[o.GeoPointFieldType]:null,[o.DateFieldType]:null,[o.RangeFieldType]:null,[o.RichTextFieldType]:null,[o.SelectFieldType]:null,[o.SeparatorFieldType]:null,[o.TableFieldType]:null,[o.TextFieldType]:null,[o.TimestampFieldType]:null,[o.LinkFieldType]:null,[o.ImageFieldType]:null,[o.IntegrationFieldType]:null,[c.UIDFieldType]:null,[i.GroupFieldType]:null,[a.SlicesFieldType]:null,[a.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return a.Slices.toStatic(e,t);default:return e}}}},54249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(73045),t),(0,r.__exportStar)(n(46239),t),(0,r.__exportStar)(n(94631),t),(0,r.__exportStar)(n(66903),t),(0,r.__exportStar)(n(80260),t),(0,r.__exportStar)(n(34716),t)},13071:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.BooleanFieldType="Boolean",t.BooleanConfig=r.exact(r.partial({label:i.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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.ColorFieldType="Color",t.ColorConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string})),t.Color=r.exact(r.intersection([r.type({type:r.literal(t.ColorFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.ColorConfig})]))},68829:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.DateFieldType="Date",t.DateConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Date=r.exact(r.intersection([r.type({type:r.literal(t.DateFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.DateConfig})]))},82427:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.EmbedFieldType="Embed",t.EmbedConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),t.Embed=r.exact(r.intersection([r.type({type:r.literal(t.EmbedFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.EmbedConfig})]))},56477:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=r.exact(r.partial({label:i.StringOrNull})),t.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(t.GeoPointFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.GeoPointConfig})]))},4813:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(22970),i=(0,r.__importStar)(n(87830)),o=n(37581),u=(0,r.__importDefault)(n(62291));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig})]))},25272:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,catalog:r.string})),t.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(t.IntegrationFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.IntegrationFieldConfig})]))},68751:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(37581),c=e=>{if(e instanceof Array&&e.reduce((e,t)=>e&&"string"==typeof t,!0))return o.success(e)},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean,allowText:o.boolean,repeat:o.boolean,variants:o.array(o.string)})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig})]))},97662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(13071),o=n(98871),u=n(68829),a=n(82427),c=n(56477),f=n(4813),l=n(25272),p=n(68751),d=n(25286),s=n(35600),m=n(17685),h=n(99187),y=n(57225),v=n(2428),g=n(4575),_=n(37842);t.NestableWidget=r.union([o.Color,i.BooleanField,a.Embed,c.GeoPoint,u.Date,d.Number,s.Range,m.RichText,h.Select,y.Separator,v.Table,g.Text,_.Timestamp,p.Link,f.Image,l.IntegrationField])},25286:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(59054),o=n(37581);t.NumberFieldType="Number",t.NumberConfig=r.exact(r.partial({label:o.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Number=r.exact(r.intersection([r.type({type:r.literal(t.NumberFieldType)}),r.partial({fieldset:o.StringOrNull,config:t.NumberConfig})]))},35600:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(59054),o=n(37581);t.RangeFieldType="Range",t.RangeConfig=r.exact(r.partial({label:o.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Range=r.exact(r.intersection([r.type({type:r.literal(t.RangeFieldType)}),r.partial({fieldset:o.StringOrNull,config:t.RangeConfig})]))},17685:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(37581),f=(0,r.__importDefault)(n(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=a.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 a.Type("RichTextOptions",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()).filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return n.length?n.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array&&e.reduce((e,t)=>e&&"string"==typeof t,!0))return a.success(e)},m=e=>{if("string"==typeof e)return a.success([e])},h=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||m(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig})]))},99187:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.SelectFieldType="Select",t.SelectConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,i.StringFromNumber,i.StringFromBoolean]))})),t.Select=r.exact(r.intersection([r.type({type:r.literal(t.SelectFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.SelectConfig})]))},57225:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.SeparatorFieldType="Separator",t.SeparatorConfig=r.exact(r.partial({label:i.StringOrNull})),t.Separator=r.exact(r.intersection([r.type({type:r.literal(t.SeparatorFieldType)}),r.partial({config:t.SeparatorConfig})]))},2428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.Table=t.TableFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581),o=n(17685);t.TableFieldType="Table";let u=r.exact(r.partial({label:i.StringOrNull}));t.Table=r.exact(r.intersection([r.type({type:r.literal(t.TableFieldType)}),r.partial({config:u})])),t.TableCell={type:"StructuredText",config:{multi:[o.RichTextNodeType.paragraph,o.RichTextNodeType.strong,o.RichTextNodeType.em,o.RichTextNodeType.hyperlink].join(",")}}},4575:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.TextFieldType="Text",t.TextConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.Text=r.exact(r.intersection([r.type({type:r.literal(t.TextFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TextConfig})]))},37842:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(37581);t.TimestampFieldType="Timestamp",t.TimestampConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Timestamp=r.exact(r.intersection([r.type({type:r.literal(t.TimestampFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TimestampConfig})]))},46239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(13071),t),(0,r.__exportStar)(n(98871),t),(0,r.__exportStar)(n(68829),t),(0,r.__exportStar)(n(82427),t),(0,r.__exportStar)(n(56477),t),(0,r.__exportStar)(n(4813),t),(0,r.__exportStar)(n(25272),t),(0,r.__exportStar)(n(68751),t),(0,r.__exportStar)(n(97662),t),(0,r.__exportStar)(n(25286),t),(0,r.__exportStar)(n(35600),t),(0,r.__exportStar)(n(17685),t),(0,r.__exportStar)(n(99187),t),(0,r.__exportStar)(n(57225),t),(0,r.__exportStar)(n(2428),t),(0,r.__exportStar)(n(4575),t),(0,r.__exportStar)(n(37842),t)},62291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(37581),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},94631:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(62291);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},57191:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(11697),o=n(37581),u=n(97662);t.CompositeSliceType="Slice",t.CompositeSliceConfig=r.exact(r.partial({label:o.StringOrNull})),t.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(t.CompositeSliceType)}),r.partial({fieldset:o.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(i.WidgetKey,u.NestableWidget),repeat:r.record(i.WidgetKey,u.NestableWidget),config:t.CompositeSliceConfig})])),t.isCompositeSlice=function(e){return"Slice"===e.type}},7816:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(73045),o=n(97662);t.LegacySlice=r.union([o.NestableWidget,i.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},78716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(69624),o=n(11697),u=n(97662),a=n(23084);t.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,i.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(o.WidgetKey,a.SlicePrimaryWidget),items:r.record(o.WidgetKey,u.NestableWidget)})])),t.SharedSliceType="SharedSlice";let c=r.string,f=r.string;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(c,f)})])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},29377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(78716);t.SharedSliceRef=r.exact(r.type({type:r.literal(i.SharedSliceType)}))},76098:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},23084:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(73045),o=n(46239);t.SlicePrimaryWidget=r.union([o.NestableWidget,i.Group]),t.isSlicePrimaryWidget=e=>o.NestableWidget.is(e)||i.Group.is(e)},8972:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),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,n(22970).__importStar)(n(87830)),i=n(11697),o=n(37581),u=n(57191),a=n(7816),c=n(78716),f=n(29377);function l(e){return r.exact(r.partial({label:o.StringOrNull,labels:t.SlicesLabels,choices:r.record(i.WidgetKey,r.union([a.LegacySlice,u.CompositeSlice,e]))}))}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=l,t.StaticSlicesConfig=l(c.SharedSlice),t.DynamicSlicesConfig=l(f.SharedSliceRef);let p={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let r=t.get(n);return r?{...e,[n]:r}:e}},{});return{...e,choices:n}}};function d(e){return r.exact(r.intersection([r.type({type:r.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),r.partial({fieldset:o.StringOrNull,config:e})]))}t.slicesReader=d,t.StaticSlices=d(t.StaticSlicesConfig),t.DynamicSlices=d(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:p.toStatic(e.config,t)}:e}},37182:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(57191),o=n(78716);t.SlicesTypes=r.keyof({[i.CompositeSliceType]:null,[o.SharedSliceType]:null})},66903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(57191),t),(0,r.__exportStar)(n(7816),t),(0,r.__exportStar)(n(78716),t),(0,r.__exportStar)(n(29377),t),(0,r.__exportStar)(n(76098),t),(0,r.__exportStar)(n(23084),t),(0,r.__exportStar)(n(8972),t),(0,r.__exportStar)(n(37182),t)},72941:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},77454:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){return[...new Set(Object.keys(e||{}).concat(Object.keys(t||{})))].reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return!!Object.keys(e).length},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},68845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(22970);t.HexaColorCode=(0,r.__importStar)(n(62754)),t.Arrays=(0,r.__importStar)(n(72941)),t.Objects=(0,r.__importStar)(n(77454))},42080:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(47320);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},63323:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(37581);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},16905:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},82175:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},9141:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(42080);t.DefaultOrElse=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0),t.NullOrElse=e=>(0,t.DefaultOrElse)(o.null)(e),t.EmptyObjectOrElse=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e),t.EmptyArrayOrElse=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e)},79312:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},57288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},30487:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(47320);t.default=(0,i.withCustomError)((0,i.refineType)(r.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},32514:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(59941));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},63205:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(47320);t.default=(0,i.nullable)(r.number)},91776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(42080);t.default=(e,t,n)=>i.Number.pipe(new r.Type("numberInRange",e=>i.Number.is(e),(i,o)=>i>t||i<e?r.failure(i,o,`${n} must be a number between ${e} and ${t}`):r.success(i),r.identity))},70453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},62161:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},59941:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(47320);t.default=(0,i.nullable)(r.string)},38417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},47320:function(e,t,n){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=n(22970),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n}])(e.validate(n,r)))}},37581:function(e,t,n){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=n(22970);(0,r.__exportStar)(n(42080),t);var i=n(63323);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(16905);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(82175);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(9141),t),t.Function=(0,r.__importStar)(n(47320));var a=n(79312);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(57288);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(30487);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(32514);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(63205);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(91776);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(70453);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(62161);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(59941);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},62283:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IncompatibleMockConfigError=void 0;class n extends Error{constructor(e,t){super(`The ${e} 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=e,this.fieldType=t}}t.IncompatibleMockConfigError=n},24662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=n(93784),i=n(73605),o=n(32361);t.DocumentMock={generate:(e,t={},n)=>(0,r.flattenWidgets)(e).map(([e,r])=>{let u=function(e,t,n){switch(e.type){case"Choice":case"Slices":return o.SliceZoneMock.generate(e,t,n);case"Group":return i.GroupMock.generate(e,n);case"UID":return i.UIDMock.generate(e,n);default:return i.NestableWidgetMock.generate(e,n)}}(r,t,(null==n?void 0:n.value)&&n.value[e]);return[e,u]}).reduce((e,[t,n])=>({...e,[t]:n}),{})}},73605:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(24662),t),(0,r.__exportStar)(n(93103),t)},15801:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var i=n(91249);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(i).default}}),t.randomInt=function(e=0,t=100){return Math.floor(Math.random()*(t-e+1)+e)}},91249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importDefault)(n(93953)),i=n(15801);t.default=function(e){return function t(){let n=function(e){let t=e[(0,i.randomInt)(0,e.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(r.default);return e&&(e.exactly&&n.length!=e.exactly||e.min&&n.length<e.min||e.max&&n.length>e.max)?t():n}()}},44609:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=t.randomGroupBlock=void 0;let r=n(29585),i=n(93784),o=n(62283),u=n(93103);function a(e,n){return e.map(([e,r])=>{var a;let c=null==n?void 0:n[e];if(r.type===i.GroupFieldType){if(c&&c.type!==i.GroupFieldType)throw new o.IncompatibleMockConfigError(c.type,r.type);return[e,t.GroupMock.generate(r,c)]}if(!c||c.type===r.type||"Repeatable"==c.type&&"Link"===r.type&&(null===(a=r.config)||void 0===a?void 0:a.repeat))return[e,u.NestableWidgetMock.generate(r,c)];throw new o.IncompatibleMockConfigError(c.type,r.type)})}t.randomGroupBlock=a,t.GroupMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t=1,n={}){if(!e.config||!e.config.fields)return[];let r=Object.entries(e.config.fields);return Array(t).fill(null).map(()=>a(r,n))}(e,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:n.map(e=>({__TYPE__:r.GroupItemContentType,value:e}))}},patch(e,n,o){if(e.op===i.DiffOperation.Removed)return;let a=((null==n?void 0:n.value)||Array((null==o?void 0:o.nbBlocks)||1).fill({__TYPE__:r.GroupItemContentType,value:[]})).map(n=>{var a;let c=Object.fromEntries(n.value);return Object.entries(null!==(a=e.value.config.fields)&&void 0!==a?a:{}).forEach(([e,n])=>{var a;let f;let l=c[e],p=null===(a=null==o?void 0:o.fields)||void 0===a?void 0:a[e];(0,r.isGroupContent)(l)&&(!p||(null==p?void 0:p.type)===i.GroupFieldType)?f=t.GroupMock.patch(n,l,p):(0,r.isGroupContent)(l)||(null==p?void 0:p.type)===i.GroupFieldType||(f=u.NestableWidgetMock.patch(n,l,p)),f?c[e]=f:delete c[e]}),{__TYPE__:r.GroupItemContentType,value:Object.entries(c)}});return{__TYPE__:r.GroupContentType,value:a}}}},73042:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=n(42793),i=n(42793),o=n(93784),u=n(18784),a=n(93103);function c(e,t){return function(e,t){let n=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:e.id,primary:e.primary?(0,a.randomGroupBlock)(Object.entries(e.primary),null==t?void 0:t.primaryFields).reduce((e,[t,n])=>({...e,[t]:n}),{}):{},items:e.items?Array(n).fill(null).map(()=>{var n,r;return n=Object.entries(e.items||{}),r=null==t?void 0:t.itemFields,n.map(([e,t])=>{let n=r&&r[e];return[e,a.NestableWidgetMock.generate(t,n)]})}).map(e=>({__TYPE__:r.GroupItemContentType,value:e})):[]}}(e,t)}function f(e,t,n){let i=Object.entries(e).reduce((e,[i,c])=>{var f;let l;let p=null===(f=t.find(([e])=>e===i))||void 0===f?void 0:f[1],d=null==n?void 0:n[i];return(0,r.isGroupContent)(p)||(null==d?void 0:d.type)===o.GroupFieldType||c.op===u.DiffOperation.Removed||c.value.type===o.GroupFieldType?(!p||(0,r.isGroupContent)(p))&&(!d||d.type===o.GroupFieldType)&&(l=a.GroupMock.patch(c,p,d)):l=a.NestableWidgetMock.patch(c,p,d),{...e,...l?{[i]:l}:{}}},{});return{...t.reduce((t,[n,r])=>{let o=e[n]?i[n]:r;return o?{...t,[n]:o}:t},{}),...i}}t.SharedSliceMock={generate(e,t){var n;if(null==t?void 0:t.value)return{__TYPE__:i.SharedSliceContentType,...t.value};let r=null!==(n=e.variations.find(e=>e.id===(null==t?void 0:t.variation)))&&void 0!==n?n:e.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${e.id}.`);let o=(null==t?void 0:t.variations)&&t.variations[r.id];return c(r,o)},patch(e,t,n){var i,o;switch(e.op){case u.DiffOperation.Removed:if(!(null==n?void 0:n.variation)||n.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 ${n.variation}`)};case u.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${e.value.id}.`)};if(!(null==n?void 0:n.variation)||e.value.variations.find(e=>e.id===n.variation))return{ok:!0,result:this.generate(e.value,n)};return{ok:!1,error:Error(`Configured variation ${n.variation} not found in slice ${e.value.id} definition.`)};case u.DiffOperation.Updated:{let a=null!=t&&t.variation?(null==n?void 0:n.variation)&&t.variation!==(null==n?void 0:n.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==n?void 0:n.variation}.`)}:{ok:!0,result:t.variation}:(null==n?void 0:n.variation)?{ok:!0,result:n.variation}:{ok:!1,error:Error("No variation provided. You must either provide some content or a config.")};if(!a.ok)return a;let l=a.result,p=null===(i=e.value.variations)||void 0===i?void 0:i[l];if(!p)return{ok:!1,error:Error(`The model of the content with variation ${l} has not changed.`)};return function(e,t,n,i){switch(t.op){case u.DiffOperation.Removed:return{ok:!0,result:void 0};case u.DiffOperation.Added:if(!n)return{ok:!0,result:c(t.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${n.variation}.`)};case u.DiffOperation.Updated:return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:e,primary:t.value.primary&&(null==n?void 0:n.primary)?f(t.value.primary,Object.entries(null==n?void 0:n.primary),null==i?void 0:i.primaryFields):(null==n?void 0:n.primary)||{},items:(()=>{if(!t.value.items||null==n||!n.items)return(null==n?void 0:n.items)||[];{let e=t.value.items;return n.items.map(t=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(e,t.value,null==i?void 0:i.itemFields))}))}})()}}}}(l,p,t,p.op!==u.DiffOperation.Removed?null===(o=null==n?void 0:n.variations)||void 0===o?void 0:o[l]:void 0)}}}}},32361:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=n(42793),i=n(73207),o=n(93103),u=n(92947);t.SliceZoneMock={generate(e,t={},n){var a;if(!(null===(a=e.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(e.config.choices).reduce((e,[r,a])=>{let c=(null==n?void 0:n.value)&&n.value[r],f=(()=>{switch(a.type){case"SharedSlice":{let e=t[r];if(!e){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return o.SharedSliceMock.generate(e,c)}case"Slice":return;case"Group":return o.GroupMock.generate(a);default:return u.NestableWidgetMock.generate(a)}})();return f?e.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):e},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=n(42793),i=n(15801);t.UIDMock={generate(e,t){let n=(null==t?void 0:t.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:n}}}},93103:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(44609),t),(0,r.__exportStar)(n(92947),t),(0,r.__exportStar)(n(73042),t),(0,r.__exportStar)(n(32033),t)},42386:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=n(42793),i=n(18784);t.BooleanMock={generate(e,t){let n="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:n}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Boolean"===e.diff.value.type?{result:this.patch(e.diff,e.content&&e.content.__TYPE__!==r.BooleanContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Boolean"?e.config:void 0)}:void 0}}},98017:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=n(42793),i=n(42793),o=n(18784);t.ColorMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef"[Math.floor(16*Math.random())];return e}();return{__TYPE__:i.FieldContentType,value:n,type:"Color"}},applyPatch(e){var t;return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"Color"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isColorContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Color"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},21276:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=n(42793),i=n(18784);function o(e){let t=e.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function u(e=new Date(2012,0,1),t=new Date){return o(new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime())))}t.DateMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:n}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Date"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isDateContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Date"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},60300:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=n(22970),i=n(42793),o=n(18784),u=(0,r.__importDefault)(n(19108));t.EmbedMock={generate:(e,t)=>(function(e){var t;let n=e||(null===(t=u.default[Math.floor(Math.random()*u.default.length)])||void 0===t?void 0:t.oembed);if(!n)throw Error("Something happened during Embed generation.");return{...n,all:n,__TYPE__:i.EmbedContentType}})(null==t?void 0:t.value),applyPatch(e){var t;return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"Embed"===e.diff.value.type?{result:this.patch(e.diff,(0,i.isEmbedContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Embed"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},95441:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=n(22970),i=n(42793),o=n(18784),u=(0,r.__importDefault)(n(88416));t.GeoPointMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e=u.default[Math.floor(Math.random()*u.default.length)];if(!e)throw Error("Something happened during GeoPoint generation.");return{latitude:e.points.latitude,longitude:e.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:n.latitude,lng:n.longitude}}},applyPatch(e){var t;return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"GeoPoint"===e.diff.value.type?{result:this.patch(e.diff,(0,i.isGeoPointContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="GeoPoint"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},66947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=n(22970),i=n(42793),o=n(18784),u=(0,r.__importDefault)(n(15542)),a=n(15801),c=u.default,f=(e,t)=>{let[n,r]=(()=>{let{width:n,height:r}=null!=t?t:{};return n&&r?[n,r]:n?[n,Math.round(e.height*(n/e.width))]:r?[Math.round(e.width*(r/e.height)),r]:[e.width,e.height]})(),i=Math.max(n/e.width,r/e.height),o=Math.round((e.width-n/i)/2),u=Math.round((e.height-r/i)/2);return{width:n,height:r,rect:{x:o,y:u,width:Math.round(n/i),height:Math.round(r/i)}}},l=(e,t,n)=>{let r=new URL(e),{x:i,y:o,width:u,height:a}=t;return r.searchParams.set("rect",[i,o,u,a].join(",")),r.searchParams.set("w",n.width.toString()),r.searchParams.set("h",n.height.toString()),r.toString()};function p(e){var t,n;let[r,i,o]=(()=>{let t=e.images[(0,a.randomInt)(0,e.images.length-1)],n=null==t?void 0:t.url.split("?")[0];if(!n)throw Error("Something happened during Image generation.");return[n,t.width,t.height]})(),{width:u,height:c,rect:p}=f({width:i,height:o},e.constraints),d=(null===(t=e.constraints)||void 0===t?void 0:t.width)||(null===(n=e.constraints)||void 0===n?void 0:n.height)?l(r,p,{width:u,height:c}):r;return{origin:{id:e.id,url:r,width:i,height:o},url:d,width:u,height:c,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"},alt:(0,a.slug)()}}function d(e,t=c){var n,r,o;let u=p({id:"main",constraints:null===(n=e.config)||void 0===n?void 0:n.constraint,images:t}),a=null===(o=null===(r=e.config)||void 0===r?void 0:r.thumbnails)||void 0===o?void 0:o.map(e=>[e.name,p({id:e.name,constraints:{width:e.width,height:e.height},images:t})]),f=a?{thumbnails:a.reduce((e,[t,n])=>({...e,[t]:n}),{})}:{};return{__TYPE__:i.ImageContentType,...u,...f}}t.random=d,t.ImageMock={generate:(e,t)=>d(e,(null==t?void 0:t.value)&&[t.value]),applyPatch(e){return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"Image"===e.diff.value.type?{result:this.patch(e.diff,(0,i.isImageContent)(e.content)?e.content:void 0)}:void 0},patch(e,t){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value)}}}},54595:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=n(42793),i=n(18784);t.IntegrationFieldMock={generate(e,t){let n=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:n}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"IntegrationFields"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isIntegrationFieldContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="IntegrationFields"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},50107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=n(42793),i=n(15801);t.DocumentLinkMock={generate(e,t){var n,o,u;let a;if(null==t?void 0:t.value)a=t.value;else{let t=(null===(n=e.config)||void 0===n?void 0:n.allowText)?(0,i.slug)():void 0,r=null===(u=null===(o=e.config)||void 0===o?void 0:o.variants)||void 0===u?void 0:u[Math.floor(Math.random()*e.config.variants.length)];a={__TYPE__:"DocumentLink",id:"mock_document_id",...t&&{text:t},...r&&{variant:r}}}return r.DocumentLinkContent.encode(a)}}},79241:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=n(22970),i=n(42793),o=(0,r.__importDefault)(n(83777)),u=n(15801);t.ExternalLinkMock={generate(e,t){var n,r,a;let c;if(null==t?void 0:t.value)c=t.value;else{let t=function(){let e=o.default,t=Math.floor(Math.random()*e.length),n=e[t];if(!n)throw Error("Something happened during web link generation.");return n}(),i=(null===(n=e.config)||void 0===n?void 0:n.allowText)?(0,u.slug)():void 0,f=null===(a=null===(r=e.config)||void 0===r?void 0:r.variants)||void 0===a?void 0:a[Math.floor(Math.random()*e.config.variants.length)];c={__TYPE__:"ExternalLink",url:t,...i&&{text:i},...f&&{variant:f}}}return i.ExternalLinkContent.encode(c)}}},25891:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=n(42793),i=n(15801);t.MediaLinkMock={generate(e,t){var n,o,u,a;let c;if(null==t?void 0:t.value)c=t.value;else{let f=(null===(n=e.config)||void 0===n?void 0:n.allowText)?(0,i.slug)():void 0,l=null===(u=null===(o=e.config)||void 0===o?void 0:o.variants)||void 0===u?void 0:u[Math.floor(Math.random()*e.config.variants.length)];c=null!==(a=null==t?void 0:t.value)&&void 0!==a?a:{__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(c)}}},33610:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=n(22970),i=n(42793),o=n(18784),u=n(73207),a=n(50107),c=n(79241),f=n(25891);t.LinkMock={generate(e,t){let n=(()=>{var n;switch(null===(n=e.config)||void 0===n?void 0:n.select){case"document":return a.DocumentLinkMock.generate(e);case"web":default:return c.ExternalLinkMock.generate(e,(null==t?void 0:t.value)&&t.value);case"media":return f.MediaLinkMock.generate(e,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,key:(0,u.v4)(),value:n}},applyPatch(e){var t,n;return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"Link"!==e.diff.value.type||null!==(t=e.diff.value.config)&&void 0!==t&&t.repeat?void 0:{result:this.patch(e.diff,(0,i.isLinkContent)(e.content)?e.content:void 0,(null===(n=e.config)||void 0===n?void 0:n.type)==="Link"?e.config:void 0)}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Added:case o.DiffOperation.Updated:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(50107),t),(0,r.__exportStar)(n(79241),t),(0,r.__exportStar)(n(25891),t)},628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=n(42793),i=n(18784);t.NumberMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Number"===e.diff.value.type?{result:this.patch(e.diff,e.content&&e.content.__TYPE__!==r.FieldContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Number"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},38206:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=n(42793),i=n(18784);t.RangeMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Range"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isRangeContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Range"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},28158:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableMock=void 0;let r=n(42793),i=n(18784),o=n(33610);t.RepeatableMock={generate(e,t){var n,r;return{__TYPE__:"RepeatableContent",type:e.type,value:null!==(n=null==t?void 0:t.value)&&void 0!==n?n:Array(null!==(r=null==t?void 0:t.nbItems)&&void 0!==r?r:1).fill(null).map(()=>o.LinkMock.generate(e))}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}},applyPatch(e){var t,n;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Link"===e.diff.value.type&&(null===(t=e.diff.value.config)||void 0===t?void 0:t.repeat)?{result:this.patch(e.diff,(0,r.isRepeatableContent)(e.content)?e.content:void 0,(null===(n=e.config)||void 0===n?void 0:n.type)==="Repeatable"?e.config:void 0)}:void 0}}},13319:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=void 0;let r=n(93784),i=n(72788),o=n(15801),u={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}};t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:e=>e.some(e=>e===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words.",loremConfig:u},HEADING:{title:"Section Title",test:e=>e.some(t.RichTextMockConfig.isHeading),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1],description:"A single heading (h1 to h6) with a variant number of words.",loremConfig:u},STORY:{title:"Story",test:e=>e.some(t.RichTextMockConfig.isHeading)&&e.some(e=>e===r.RichTextNodeType.paragraph),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(e,r.RichTextNodeType.image),r.RichTextNodeType.paragraph],description:"Content with headings, texts and optional images",loremConfig:u},TABLE_HEADER:{title:"Table header",test:e=>e.some(e=>e===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:e=>e.some(e=>e===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:e=>0===e.indexOf("heading"),isText:e=>e===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(e),isImage:e=>e===r.RichTextNodeType.image,optionalType:(e,t)=>e.find(e=>e===t)&&Math.random()>.5?[t]:[],findMatchingPattern:e=>{let n=Object.entries(t.Patterns).find(([,t])=>t.test(e));return n&&n.length?n[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText:(e,n)=>{if(t.RichTextMockConfig.isHeading(e)){let e=(0,o.slug)({min:5,max:10});return[e[0]&&e[0].toUpperCase(),...e.slice(1)].join("")}return new i.LoremIpsum(n).generateParagraphs(1)}}},35650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=n(22970),i=n(42793),o=n(93784),u=n(18784),a=n(66947),c=n(13319);t.RichTextMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t){var n,r;let i=((null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.multi)||(null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.single)||`${o.RichTextNodeType.paragraph}`).split(",").map(e=>e),u=(null==t?void 0:t.pattern)&&c.Patterns[t.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=u.value(i);return Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(e=>{if(c.RichTextMockConfig.isText(e))return{type:e,content:{text:c.RichTextMockConfig.generateText(e,u.loremConfig)}};let t=(0,a.random)({type:"Image"});return{type:o.RichTextNodeType.image,data:t}})).flat()}(e,t);return{__TYPE__:i.RichTextContentType,value:n}},applyPatch(e){var t;return e.diff.op===u.DiffOperation.Removed?{result:void 0}:"StructuredText"===e.diff.value.type?{result:this.patch(e.diff,(0,i.isRichTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="StructuredText"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(13319),t)},20999:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=n(42793),i=n(18784),o="mock_option";t.SelectMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e){if(!e.config)return o;if(e.config.default_value&&.5>Math.random())return e.config.default_value;if(!e.config.options)return o;let t=Math.floor(Math.random()*e.config.options.length);return e.config.options[t]||o}(e);return{__TYPE__:r.FieldContentType,value:n,type:"Select"}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Select"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isSelectContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Select"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},14259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=n(42793),i=n(18784);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(e){return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Separator"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isSeparatorContent)(e.content)?e.content:void 0)}:void 0},patch(e,t){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value)}}}},91678:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TableMock=void 0;let r=n(42793),i=n(93784),o=n(18784),u=n(73207),a=n(35650);t.TableMock={generate(e,t){var n;return{__TYPE__:"TableContent",content:null!==(n=null==t?void 0:t.value)&&void 0!==n?n:[{key:(0,u.v4)(),type:"tableRow",content:f({length:2,type:"tableHeader"})},{key:(0,u.v4)(),type:"tableRow",content:f({length:2,type:"tableCell"})}]}},applyPatch(e){var t;return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"Table"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isTableContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Table"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}};let c={tableHeader:"TABLE_HEADER",tableCell:"TABLE_CELL"},f=({length:e,type:t})=>Array.from({length:e},()=>({key:(0,u.v4)(),type:t,content:a.RichTextMock.generate(i.TableCell,{type:"StructuredText",pattern:c[t]})}))},44395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=n(42793),i=n(18784),o=n(15801);t.TextMock={generate(e,t){var n,i;let u=(null==t?void 0:t.value)||(n=null==t?void 0:t.minChar,i=null==t?void 0:t.maxChar,(0,o.slug)({...n?{min:n}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:u,type:"Text"}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Text"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Text"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},4424:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=n(42793),i=n(18784);function o(e){return e.toISOString().slice(0,19)+"Z"}function u(e=new Date(2012,0,1),t=new Date){return o(new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime())))}t.TimestampMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:n}},applyPatch(e){var t;return e.diff.op===i.DiffOperation.Removed?{result:void 0}:"Timestamp"===e.diff.value.type?{result:this.patch(e.diff,(0,r.isTimestampContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Timestamp"?e.config:void 0)}:void 0},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},92947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=n(22970),i=n(18784),o=n(42386),u=n(98017),a=n(21276),c=n(60300),f=n(95441),l=n(66947),p=n(54595),d=n(33610),s=n(628),m=n(38206),h=n(28158),y=n(35650),v=n(20999),g=n(14259),_=n(91678),b=n(44395),T=n(4424);(0,r.__exportStar)(n(42386),t),(0,r.__exportStar)(n(98017),t),(0,r.__exportStar)(n(21276),t),(0,r.__exportStar)(n(60300),t),(0,r.__exportStar)(n(95441),t),(0,r.__exportStar)(n(66947),t),(0,r.__exportStar)(n(54595),t),(0,r.__exportStar)(n(33610),t),(0,r.__exportStar)(n(628),t),(0,r.__exportStar)(n(38206),t),(0,r.__exportStar)(n(28158),t),(0,r.__exportStar)(n(35650),t),(0,r.__exportStar)(n(20999),t),(0,r.__exportStar)(n(14259),t),(0,r.__exportStar)(n(44395),t),(0,r.__exportStar)(n(4424),t),t.NestableWidgetMock={generate(e,t){var n;switch(e.type){case"Boolean":return o.BooleanMock.generate(e,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return u.ColorMock.generate(e,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":if(null===(n=e.config)||void 0===n?void 0:n.repeat)return h.RepeatableMock.generate(e,(null==t?void 0:t.type)==="Repeatable"?t:void 0);return d.LinkMock.generate(e,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return a.DateMock.generate(e,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return c.EmbedMock.generate(e,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(e,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(e);case"IntegrationFields":return p.IntegrationFieldMock.generate(e,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(e,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return m.RangeMock.generate(e,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return y.RichTextMock.generate(e,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return v.SelectMock.generate(e,(null==t?void 0:t.type)==="Select"?t:void 0);case"Table":return _.TableMock.generate(e,(null==t?void 0:t.type)==="Table"?t:void 0);case"Text":return b.TextMock.generate(e,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return T.TimestampMock.generate(e,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return g.SeparatorMock.generate(e)}},patch(e,t,n){if(e.op===i.DiffOperation.Removed)return;let r={diff:e,content:t,config:n},S=u.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||T.TimestampMock.applyPatch(r)||v.SelectMock.applyPatch(r)||m.RangeMock.applyPatch(r)||b.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||o.BooleanMock.applyPatch(r)||y.RichTextMock.applyPatch(r)||d.LinkMock.applyPatch(r)||c.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||p.IntegrationFieldMock.applyPatch(r)||g.SeparatorMock.applyPatch(r)||_.TableMock.applyPatch(r)||h.RepeatableMock.applyPatch(r);return null==S?void 0:S.result}}},25242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=n(22970),i=n(73605);t.generateDocumentMock=function(e,t,n){let r=i.DocumentMock.generate(e,t,n);return n=>n?n(e,t,r):r},t.generateSliceMock=function(e,t){let n=i.SharedSliceMock.generate(e,t);return t=>t?t(e,n):n},(0,r.__exportStar)(n(62283),t),(0,r.__exportStar)(n(73605),t),(0,r.__exportStar)(n(86449),t)},54775:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n={urlRewriter:{optimizeImageUrl:e=>e,rewriteImageUrl:e=>e.url||"/mockURL",rewriteFileUrl:e=>e,rewriteS3Bucket:e=>e,enforceCDN:e=>e},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:(e,t,n)=>`${e}${(null==n?void 0:n.length)?"%%"+n.join("%%"):""}`},encoders:{documentLinks:r("=&="),documentUrls:r(">&<"),integrationFields:r("%!%")}},LinkResolver:{buildUrl:e=>"/"}};function r(e){return{encode:t=>`${e}#${t}`}}t.default=n},86449:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=n(22970),i=n(88985),o=n(93784),u=n(73207),a=(0,r.__importDefault)(n(54775));t.renderDocumentMock=function(e,t,n){let r=Object.entries(t).filter(e=>!!e[1]),u=Object.entries(n).filter(e=>!!e[1]),c=(0,o.toStatic)(e,new Map(r)),f={customTypeId:e.id,fields:Object.fromEntries((0,o.flattenSections)(c))};return(0,i.DocumentRenderer)(a.default).renderMocks(f,u)},t.renderSliceMock=function(e,t){return{...(0,i.SharedSliceRenderer)(a.default).renderMocks(e,t),id:`${e.id}$${(0,u.v4)()}`,slice_type:e.id}}},52057:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},13496:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0,t.getAssetOrThrow=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n}},64433:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0,t.getEmbedOrThrow=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n}},42250:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},43830:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(55242),o=RegExp("^[^<>]+$");t.WidgetKey=(0,i.refineType)(r.string,"WidgetKey",e=>0===e.length||o.test(e))},88966:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(13496),t),(0,r.__exportStar)(n(64433),t),(0,r.__exportStar)(n(43830),t)},60716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(52057),f=n(88966),l=n(93784),p=n(29585),d=n(63750);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),m=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function h(e){let{types:t,widgets:n}=Object.entries(e).reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),r=e.slugs_INTERNAL||[];return{widgets:n,types:t,uid:e.uid,slugs:r}}function y(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function v({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?y(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"}]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);case"RepeatableContent":return(0,p.traverseRepeatableContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:u})(t);case"TableContent":return(0,p.traverseTableContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function g(e,t){let n=l.StaticCustomType.is(t)?y(t):t;return Object.values((0,l.collectSharedSlices)(n)).some(e=>!!e.legacyPaths)?v({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:m,extractMetadata:h,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=h(e);return m(t).decode(n)}));return(0,o.isLeft)(n)?void 0:g(n.right,t)},encode:function(e){let t=m().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?y(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return o?{...e,[n]:o}:e},t)},t.traverseDocument=v,t.collectWidgets=function(e,t){let n={};return v({document:e})({transformWidget:({content:e,path:r})=>{let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=g},63750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(75493);t.FieldOrSliceType=r.union([r.union([i.FieldType,i.SlicesTypes]),r.literal("Repeatable.Link")]);class o{constructor(e,t,n){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=e,this.fieldPath=t||[],this.allTypes=n||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=o,t.getFieldCtx=function(e,t,n){return new o(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new o(e,[],t)}},84774:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.EmptyContentType="EmptyContent",t.isEmptyContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;let c=u.union([u.null,u.type({value:u.null})]);t.EmptyLegacy=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(c.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null),t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},28844:function(e,t,n){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=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(93784),f=n(63750),l=n(93906),p=n(74912),d=n(69220);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupItemContent=a.recursion("GroupItemContent",()=>a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,a.union([p.NestableContent,t.GroupContent])]))})),t.GroupContent=a.recursion("GroupContent",()=>a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)})),t.isGroupContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupContentType,t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]};let s=a.record(a.string,a.unknown);function m({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=h({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function h({path:e,model:n,content:r}){return i=>r.map((r,o)=>{let u=e.concat([{key:o.toString(),type:"GroupItem"}]),a=r.value.reduce((e,[r,o])=>{let a;let c=null==n?void 0:n[r];return(a=(0,t.isGroupContent)(o)?m({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Group"?c:void 0,content:o})(i):(0,p.isRepeatableContent)(o)?(0,p.traverseRepeatableContent)({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Link"?c:void 0,content:o})(i):(0,p.isTableContent)(o)?(0,p.traverseTableContent)({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==c?void 0:c.type)==="Table"?c:void 0,content:o})(i):i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:c,content:o}))&&((0,p.isNestableContent)(a)||(0,t.isGroupContent)(a))?e.concat([[r,a]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupItemLegacy=e=>new a.Type("GroupItemLegacy",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>(0,u.pipe)(s.decode(n),i.either.map(n=>({value:Object.entries(n).reduce((n,[r,i])=>{let u=(0,f.getFieldCtx)(r,e),a=u.fieldType===c.GroupFieldType?(0,t.GroupLegacy)(u).decode(i):(0,p.NestableLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?n:[...n,[r,a.right]]},[]),__TYPE__:t.GroupItemContentType}))),n=>n.value.reduce((n,[r,i])=>{let o=(0,f.getFieldCtx)(r,e),u=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(o).encode(i):(0,p.NestableLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}})),t.GroupLegacy=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:c.GroupFieldType})}})},t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=m,t.traverseGroupItemsContent=h},33437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.UIDContentType="UIDContent",t.isUIDContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType,t.UIDLegacy=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}})),t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},51357:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(28844),o=n(74912),u=n(47828),a=n(33437);t.WidgetContent=r.union([i.GroupContent,o.NestableContent,a.UIDContent,u.SlicesContent]),t.isWidgetContent=e=>(0,i.isGroupContent)(e)||(0,o.isNestableContent)(e)||(0,a.isUIDContent)(e)||(0,u.isSlicesContent)(e),t.WidgetLegacy=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,a.UIDLegacy)(e);case"Group":return(0,i.GroupLegacy)(e);case"Choice":case"Slices":return(0,u.SlicesLegacy)(e);default:return(0,o.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case a.UIDContentType:return(0,a.UIDLegacy)(e).encode(t);case i.GroupContentType:return(0,i.GroupLegacy)(e).encode(t);case u.SlicesContentType:return(0,u.SlicesLegacy)(e).encode(t);default:return(0,o.NestableLegacy)(e).encode(t)}}})},29585:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(84774),t),(0,r.__exportStar)(n(28844),t),(0,r.__exportStar)(n(74912),t),(0,r.__exportStar)(n(47828),t),(0,r.__exportStar)(n(33437),t),(0,r.__exportStar)(n(51357),t)},55211:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.BooleanContentType="BooleanContent",t.isBooleanContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType,t.BooleanLegacy=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}})),t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean}),t.BooleanContentDefaultValue=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0}},44390:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(49664),c=n(93906);t.EmbedContentType="EmbedContent",t.isEmbedContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull})])),t.EmbedLegacy=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}})),t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown})])},82622:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isColorContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type,t.ColorLegacy=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}})),t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},95066:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isDateContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type,t.DateLegacy=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}})),t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},77512:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isNumberContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type,t.NumberLegacy=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}})),t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},28107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isRangeContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type,t.RangeLegacy=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}})),t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},5805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isSelectContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type,t.SelectLegacy=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}})),t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)}),t.SelectContentDefaultValue=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0}},19522:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isTextContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type,t.TextLegacy=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}})),t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},53033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243);t.isTimestampContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type,t.TimestampLegacy=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}})),t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},51243:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},14898:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(22970),i=(0,r.__importStar)(n(87830)),o=n(82622),u=n(95066),a=n(77512),c=n(28107),f=n(5805),l=n(19522),p=n(53033);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent]),(0,r.__exportStar)(n(82622),t),(0,r.__exportStar)(n(51243),t),(0,r.__exportStar)(n(95066),t),(0,r.__exportStar)(n(77512),t),(0,r.__exportStar)(n(28107),t),(0,r.__exportStar)(n(5805),t),(0,r.__exportStar)(n(19522),t),(0,r.__exportStar)(n(53033),t)},66450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(22970),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(93906);t.GeoPointContentType="GeoPointContent",t.isGeoPointContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;let c=u.strict({position:u.strict({lat:u.number,lng:u.number})});t.GeoPointLegacy=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(c.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}})),t.GeoPointContent=u.intersection([c,u.strict({__TYPE__:u.literal(t.GeoPointContentType)})])},80286:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(73147),c=n(49664),f=n(93906);t.ImageContentType="ImageContent",t.isImageContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;let l=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:l,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull})]));let p=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)})]);t.ImageLegacy=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__TYPE__:t.ImageContentType}))),t=>({content:(0,a.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:{[e.keyOfType]:"Image"}})),t.ImageContent=u.intersection([p,u.strict({__TYPE__:u.literal(t.ImageContentType)})])},53304:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.IntegrationFieldContentType="IntegrationFieldsContent",t.isIntegrationFieldContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType,t.IntegrationFieldLegacy=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}})),t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},89138:function(e,t,n){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=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(49664),f=n(55242),l=n(93906);t.ImageLinkType="ImageLink";let p=e=>"string"==typeof e,d=new u.Type("ImageLinkKind",e=>p(e),(e,t)=>p(e)?u.success("image"):u.failure(e,t),()=>"image"),s=u.intersection([u.strict({kind:d,id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string}),u.exact(u.partial({date:c.StringOrNull}))]),m=new u.Type("FilledImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FilledImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>s.encode(e));t.FilledImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),s]);let h=u.intersection([u.union([s,u.strict({kind:u.literal("image")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),y=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>h.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),h]),t.FileLinkType="FileLink";let v=e=>"string"==typeof e,g=new u.Type("FileLinkKind",e=>v(e),(e,t)=>v(e)?u.success("file"):u.failure(e,t),()=>"file"),_=u.exact(u.intersection([u.type({kind:g,id:u.string,url:u.string,name:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:c.StringOrNull})])),b=new u.Type("FilledFileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(_.decode(e),i.either.map(e=>t.FilledFileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>_.encode(e));t.FilledFileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),_]);let T=u.intersection([u.union([_,u.strict({kind:u.literal("file")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),S=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(T.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>T.encode(e));t.FileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),T]),t.MediaLinkType="MediaLink";let I=u.intersection([u.strict({kind:u.literal("media")}),u.exact(u.partial({text:u.string,variant:u.string}))]),R=new u.Type("MediaLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.MediaLinkType,e=>(0,o.pipe)(I.decode(e),i.either.map(e=>t.MediaLinkContent.encode({...e,__TYPE__:t.MediaLinkType}))),e=>I.encode(e));t.MediaLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.MediaLinkType)}),I]),t.DocumentLinkType="DocumentLink";let C=u.strict({id:c.NonEmptyString}),x=new u.Type("FilledDocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(C.decode(e),i.either.map(e=>t.FilledDocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>C.encode(e));t.FilledDocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),C]);let O=u.intersection([u.union([C,u.strict({kind:u.literal("document")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),w=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(O.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>O.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),O]),t.ExternalLinkType="ExternalLink";let M=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))})])),E=new u.Type("FilledExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(M.decode(e),i.either.map(e=>t.FilledExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>M.encode(e));t.FilledExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),M]);let k=u.intersection([u.union([M,u.strict({kind:u.literal("web")})]),u.exact(u.partial({text:u.string,variant:u.string}))]),P=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(k.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>k.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),k]),t.AnyLinkType="AnyLink";let F=u.exact(u.intersection([u.type({kind:(0,a.withFallback)(u.literal("any"),"any")}),u.partial({text:u.string,variant:u.string})])),L=new u.Type("AnyLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.AnyLinkType,e=>(0,o.pipe)(F.decode(e),i.either.map(e=>t.AnyLinkContent.encode({...e,__TYPE__:t.AnyLinkType}))),e=>F.encode(e));t.AnyLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.AnyLinkType)}),F]),t.LinkContentType="LinkContent",t.isLinkContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.LinkLegacy=(0,l.withKey)(u.union([y,S,w,P,R,L])),t.LinkContentLegacy=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(({key:e,...n})=>t.LinkContent.encode({__TYPE__:"LinkContent",key:e,value:n}))),({key:n,value:r})=>({content:t.LinkLegacy.encode({...r,key:n}),types:{[e.keyOfType]:"Link"}})),t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=(0,l.withKey)(u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=u.union([m,b,x,E]),t.FilledLinkContentLegacy=e=>{let n=(0,l.withKey)(t.FilledLinkLegacy);return new u.Type("FilledLinkLegacy",t.isFilledLinkContent,e=>(0,o.pipe)(n.decode(e),i.either.map(({key:e,...n})=>t.FilledLinkContent.encode({__TYPE__:"LinkContent",key:e,value:n}))),({key:t,value:r})=>({content:n.encode({...r,key:t}),types:{[e.keyOfType]:"Link"}}))},t.FilledLink=u.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=(0,l.withKey)(u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.FilledLink}))},69506:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(84774),a=n(55211),c=n(44390),f=n(14898),l=n(51243),p=n(66450),d=n(80286),s=n(53304),m=n(89138),h=n(49663),y=n(18638),v=n(72372),g=n(71575);t.NestableContent=o.union([u.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,m.LinkContent,y.RichTextContent,v.SeparatorContent,g.TableContent,h.RepeatableContent]),t.NestableContentDefaultValue=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}},t.isNestableContent=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,y.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,g.isTableContent)(e)||(0,u.isEmptyContent)(e)||(0,h.isRepeatableContent)(e),t.NestableLegacy=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,y.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,m.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);case"Table":return(0,g.TableLegacy)(e);case"Repeatable.Link":return(0,h.RepeatableLegacy)(e,"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)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case y.RichTextContentType:return(0,y.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);case g.TableContentType:return(0,g.TableLegacy)(e).encode(t);case"RepeatableContent":return(0,h.RepeatableLegacy)(e,t.type).encode(t);default:return}}})},49663:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseRepeatableContent=t.RepeatableLegacy=t.isRepeatableContent=t.RepeatableContent=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(93906),f=n(89138),l="RepeatableContent";t.RepeatableContent=a.strict({__TYPE__:a.literal(l),type:a.literal("Link"),value:a.array(f.LinkContent)}),t.isRepeatableContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===l,t.RepeatableLegacy=(e,n)=>new a.Type("RepeatableLegacy",t.isRepeatableContent,t=>(0,u.pipe)(a.array(a.unknown).decode(t),i.either.map(t=>({value:t.reduce((t,r)=>{let i;return"Link"===n&&(i=(0,f.LinkContentLegacy)(e).decode(r)),!i||(0,o.isLeft)(i)?t:[...t,i.right]},[]),type:n,__TYPE__:"RepeatableContent"}))),t=>({content:a.array(f.LinkContent).encode(t.value).reduce((t,n)=>{let r;return n.__TYPE__===f.LinkContentType&&(r=(0,f.LinkContentLegacy)(e).encode(n)),r?[...t,r]:t},[]).map(e=>e.content),types:{[e.keyOfType]:`Repeatable.${n}`}})),t.traverseRepeatableContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{let u=i.value.reduce((i,u,a)=>{let c=o({path:e.concat([{key:a.toString(),type:"Widget"}]),key:t,apiId:n,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:u});return c&&(0,f.isLinkContent)(c)?i.concat(c):i},[]);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,type:i.type,value:u}})}}},92546:function(e,t,n){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=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(82250),l=n(49664),p=n(55242),d=n(44390),s=n(80286),m=n(89138),h=e=>a.strict({data:e,start:a.number,end:a.number,type:a.literal(f.RichTextNodeType.hyperlink)}),y=a.strict({data:(0,c.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),v=a.strict({start:a.number,end:a.number,type:a.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=a.union([h(m.FilledLink),y,v]),t.SpanLegacy=a.union([h(m.FilledLinkLegacy),y,v]),t.ValidatedSpans=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let n=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(n)}},t=>t.reduce((t,n)=>[...t,e.encode(n)],[]));let g=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)})])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})]));t.ImageBlock=g(m.FilledLink);let _=g(m.FilledLinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let b=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),T=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(b.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...b.encode(e),data:d.EmbedContentLegacy.encode(e.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:l.StringOrNull,direction:l.StringOrNull})])),t.checkEmbedBlock=function(e){return e.type===f.RichTextNodeType.embed};let S=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)})])}),a.partial({label:a.string,direction:a.string})]));t.TextBlock=S(t.Span),t.TextBlockLegacy=S(t.SpanLegacy);let I=a.union([T,_,t.TextBlockLegacy]);t.BlockLegacy=new a.Type("BlockLegacy",e=>T.is(e)||_.is(e)||t.TextBlockLegacy.is(e),e=>I.decode(e),e=>t.ImageBlock.is(e)?_.encode(e):t.EmbedBlock.is(e)?T.encode(e):t.TextBlockLegacy.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},18638:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.RichTextLegacyContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906),c=n(92546);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType,t.RichTextLegacyContent=u.array(c.BlockLegacy),t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(92546),t),t.RichTextLegacy=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(t.RichTextLegacyContent.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),n=>({content:t.RichTextLegacyContent.encode(n.value),types:{[e.keyOfType]:"StructuredText"}}))},72372:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(93906);t.SeparatorContentType="SeparatorContent",t.isSeparatorContent=e=>(0,i.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType,t.SeparatorLegacy=e=>new r.Type("SeparatorLegacy",t.isSeparatorContent,()=>r.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}})),t.SeparatorContent=r.strict({__TYPE__:r.literal(t.SeparatorContentType)})},71575:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseTableContent=t.TableLegacy=t.TableContent=t.isTableContent=t.TableContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93784),c=n(93906),f=n(18638);t.TableContentType="TableContent",t.isTableContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.TableContentType;let l=(0,c.withKey)(u.intersection([u.strict({type:u.union([u.literal("tableHeader"),u.literal("tableCell")]),content:f.RichTextContent}),u.exact(u.partial({columnWidth:u.number}))])),p=(0,c.withKey)(u.strict({type:u.literal("tableRow"),content:u.array(l)}));t.TableContent=u.strict({__TYPE__:u.literal(t.TableContentType),content:u.array(p)});let d=(0,c.withKey)(u.intersection([u.strict({type:u.union([u.literal("tableHeader"),u.literal("tableCell")]),content:f.RichTextLegacyContent}),u.exact(u.partial({columnWidth:u.number}))])),s=(0,c.withKey)(u.strict({type:u.literal("tableRow"),content:u.array(d)})),m=u.strict({content:u.array(s)});t.TableLegacy=e=>new u.Type("TableLegacy",t.isTableContent,e=>(0,o.pipe)(m.decode(e),i.either.map(e=>({__TYPE__:"TableContent",content:e.content.map(e=>({...e,content:e.content.map(e=>({...e,content:{__TYPE__:"StructuredTextContent",value:e.content}}))}))}))),t=>({content:m.encode({content:t.content.map(e=>({...e,content:e.content.map(e=>({...e,content:e.content.value}))}))}),types:{[e.keyOfType]:"Table"}})),t.traverseTableContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{let u=i.content.map((r,i)=>({...r,content:r.content.map((r,u)=>{let c=o({path:e.concat([{key:[i.toString(),u.toString()].join(","),type:"Widget"}]),key:t,apiId:n,model:a.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:c}})}));return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,content:u}})}}},74912:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(55211),t),(0,r.__exportStar)(n(44390),t),(0,r.__exportStar)(n(14898),t),(0,r.__exportStar)(n(66450),t),(0,r.__exportStar)(n(80286),t),(0,r.__exportStar)(n(53304),t),(0,r.__exportStar)(n(89138),t),(0,r.__exportStar)(n(69506),t),(0,r.__exportStar)(n(49663),t),(0,r.__exportStar)(n(18638),t),(0,r.__exportStar)(n(72372),t),(0,r.__exportStar)(n(71575),t)},80975:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(63750),f=n(93906),l=n(28844),p=n(74912),d=n(69220),s=n(95887);t.CompositeSliceContentType="CompositeSliceContent",t.isCompositeSliceContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord}));t.CompositeSliceLegacy=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,s.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}),repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e);return(0,s.RepeatableWidgetsLegacy)(n).encode(t.repeat)})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}}),t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,d.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===f?void 0:f[u]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:n,model:d,content:a});return s?(0,p.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,l.traverseGroupItemsContent)({path:e.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:i.widget.repeat})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},95887:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(28844),o=n(74912);t.RepeatableWidgetsLegacy=e=>r.array((0,i.GroupItemLegacy)(e));let u=r.tuple([r.string,r.union([o.NestableContent,i.GroupContent])]),a=r.strict({__TYPE__:r.literal(i.GroupItemContentType),value:r.array(u)});t.RepeatableWidgets=r.array(a)},61467:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(93784),l=n(63750),p=n(93906),d=n(28844),s=n(74912),m=n(69220),h=n(95887),y=n(72967);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;let v=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})}));t.SharedSliceLegacy=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(v.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation]),r=(0,h.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary"]),a=(0,y.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary"]),u=(0,y.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation]);return(0,h.RepeatableWidgetsLegacy)(n).encode(t.items)})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}}),t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,y.SlicePrimaryContent),items:h.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,m.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,m.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,a])=>{var c,l;let p=null===(l=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===l?void 0:l[u],m=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)===f.GroupFieldType?p:void 0})(o):(0,s.isRepeatableContent)(a)?(0,s.traverseRepeatableContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)==="Link"?p:void 0})(o):(0,s.isTableContent)(a)?(0,s.traverseTableContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,content:a,model:(null==p?void 0:p.type)==="Table"?p:void 0})(o):(0,s.isNestableContent)(a)?o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"}]),key:u,apiId:u,model:p,content:a}):void 0;return m?((0,y.isSlicePrimaryContent)(m)||console.warn(`Warn: Non nestable or group content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),{...i,[u]:m}):i},{}),c=(0,d.traverseGroupItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},44979:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(28844),o=n(74912);t.SimpleSliceContent=r.union([o.NestableContent,i.GroupContent]),t.isSimpleSliceContent=e=>(0,o.isNestableContent)(e)||(0,i.isGroupContent)(e),t.SimpleSliceLegacy=e=>({decode:"Group"===e.fieldType?(0,i.GroupLegacy)(e).decode.bind(null):(0,o.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,i.GroupLegacy)(e).encode(t):(0,o.NestableLegacy)(e).encode(t)}),t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:o}){return(u,a)=>{var c;if((0,i.isGroupContent)(o.widget)){let t=(0,i.traverseGroupContent)({path:e,key:o.key,apiId:o.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:o.widget})(u);return t&&a({key:o.key,apiId:o.name,path:e,model:r,content:{...o,widget:t}})}let f=u({key:o.key,apiId:o.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[o.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:o.widget});return f&&a({key:t,apiId:n,path:e,model:r,content:{...o,widget:f}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},72967:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(93784),o=n(28844),u=n(74912);t.SlicePrimaryContent=r.union([u.NestableContent,o.GroupContent]),t.SlicePrimaryLegacy=e=>{let t=(0,o.GroupLegacy)(e),n=(0,u.NestableLegacy)(e);return{decode:r=>e.fieldType===i.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,o.isGroupContent)(e)?t.encode(e):n.encode(e)}},t.isSlicePrimaryContent=e=>(0,u.isNestableContent)(e)||(0,o.isGroupContent)(e)},54672:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(22970),i=(0,r.__importStar)(n(87830)),o=n(80975),u=n(61467),a=n(44979);t.SliceLegacy=e=>({decode:t=>(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})().decode(t),encode:t=>{switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}}),t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent]),(0,r.__exportStar)(n(80975),t),(0,r.__exportStar)(n(61467),t),(0,r.__exportStar)(n(44979),t),(0,r.__exportStar)(n(72967),t)},78005:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(55242),f=n(63750),l=n(28844),p=n(74912),d=n(69220),s=n(54672),m=n(80975),h=n(61467),y=n(44979);function v(e){return(0,m.isCompositeSliceContent)(e.widget)}function g(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,h.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=v,t.isSimpleSliceItemContent=g,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,h.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,m.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let n=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:n}}return t};let _=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)})]));t.SlicesItemLegacy=e=>new a.Type("SlicesItemLegacy",e=>((0,h.isSharedSliceContent)(e.widget),(0,m.isCompositeSliceContent)(e.widget),(0,y.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(_.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).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:e,content:t})=>v(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,y.migrateSimpleSlice)(e,t):t},25230:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(52057),c=n(93784),f=n(93906),l=n(80975),p=n(61467),d=n(44979),s=n(78005);t.SlicesContentType="SliceContentType",t.isSlicesContent=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType,t.SlicesLegacy=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})},t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},47828:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(54672),t),(0,r.__exportStar)(n(78005),t),(0,r.__exportStar)(n(25230),t)},69220:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(93784),i=n(28844),o=n(74912);t.withDefaultSlicePrimaryContentValues=function(e,t){for(let[n,u]of Object.entries(e)){let e=t[n];if(void 0===e){if(u.type===r.GroupFieldType)t[n]=(0,i.groupContentWithDefaultValues)(u,i.GroupContentDefaultValue);else{let e=(0,o.NestableContentDefaultValue)(u);e&&(t[n]=e)}continue}u.type===r.GroupFieldType&&(0,i.isGroupContent)(e)&&(t[n]=(0,i.groupContentWithDefaultValues)(u,e))}return t},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let t=(0,o.NestableContentDefaultValue)(r);return void 0!==t?{...e,[n]:t}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var u;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let e=(0,i.groupContentWithDefaultValues)(r,null!==(u=null==a?void 0:a[1])&&void 0!==u?u:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...e?[[n,e]]:[]]}}if(!a){let e=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...e?[[n,e]]:[]]}}return t},e))}},42793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(60716),t),(0,r.__exportStar)(n(29585),t),(0,r.__exportStar)(n(63750),t)},93906:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withKey=t.hasContentType=t.hasFieldContentType=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(13072),a=n(29585);function c(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return c(e)&&e.__TYPE__===a.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,i.isRight)(a.FieldType.decode(e.type))},t.hasContentType=c;let f=e=>"string"==typeof e&&(0,u.validate)(e),l=new o.Type("UUID",f,(e,t)=>void 0===e?o.success((0,u.v4)()):f(e)?o.success(e):o.failure(e,t),o.identity);t.withKey=function(e){return o.intersection([o.strict({key:l}),e])}},70090:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),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=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(49664),c=n(56668);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){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=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
4
- ${t.join("\n")}
5
- `}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")})]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=p(e).filter(([,e])=>"Slices"===e.type).reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return function(e){return t.map(e)}})(e)(e=>{if(!t.get(e))return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let e=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),r={...n.config,choices:e};return{...n,config:r}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},56668:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(88966),o=n(35264);function u(e){return r.record(i.WidgetKey,e)}t.sectionReader=u,t.StaticSection=u(o.StaticWidget),t.DynamicSection=u(o.DynamicWidget),t.Sections={toStatic:(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:o.Widgets.toStatic(r,t)}),{})}},88082:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},73106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(68396),i=n(88082),o=n(17398);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=Object.entries(r.Objects.zipObjects(e,t)).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{}),u=Object.entries(r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id))).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),a={...n,...r.Objects.isNotEmpty(u)?{variations:u}:{}};if(r.Objects.isNotEmpty(a))return{op:i.DiffOperation.Updated,value:a}}}},17398:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(68396),i=n(82051),o=n(88082);function u(e,t){let n=Object.entries(r.Objects.zipObjects(e,t)).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,a,c,f,l;if((null==n?void 0:n.left)||(null==n?void 0:n.right)){if((null==n?void 0:n.left)&&!n.right)return{op:o.DiffOperation.Removed};if(!(null==n?void 0:n.left)&&(null==n?void 0:n.right)){if((null===(e=n.right)||void 0===e?void 0:e.type)===i.GroupFieldType){let e={...n.right,config:{...n.right.config,fields:{}}};return e.config.fields=u(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:o.DiffOperation.Added,value:e}}return{op:o.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===i.GroupFieldType){let e={...n.right,config:{...n.right.config,fields:{}}};return e.config.fields=u((null===(a=n.left)||void 0===a?void 0:a.type)===i.GroupFieldType?null===(f=null===(c=n.left)||void 0===c?void 0:c.config)||void 0===f?void 0:f.fields:void 0,null===(l=n.right.config)||void 0===l?void 0:l.fields)||{},{op:o.DiffOperation.Updated,value:e}}return{op:o.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(n)?n:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:o.DiffOperation.Removed};if(!e&&t)return{op:o.DiffOperation.Added,value:t};let n=Object.entries(r.Objects.zipObjects(e,t)).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{}),i=u(null==e?void 0:e.primary,null==t?void 0:t.primary),a=u(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...i?{primary:i}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:o.DiffOperation.Updated,value:c}}}},33425:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},18784:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(88082),t),(0,r.__exportStar)(n(73106),t),(0,r.__exportStar)(n(17398),t),(0,r.__exportStar)(n(33425),t)},93784:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(70090),t),(0,r.__exportStar)(n(18784),t),(0,r.__exportStar)(n(56668),t),(0,r.__exportStar)(n(75493),t)},82051:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.NestedGroup=t.NestedGroupConfig=t.GroupFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(88966),o=n(49664),u=n(56966);t.GroupFieldType="Group";let a=e=>r.exact(r.partial({label:o.StringOrNull,repeat:r.boolean,fields:r.record(i.WidgetKey,e)})),c=e=>r.exact(r.intersection([r.type({type:r.literal(t.GroupFieldType)}),r.partial({fieldset:o.StringOrNull,icon:r.string,description:r.string,config:a(e)})]));t.NestedGroupConfig=a(u.NestableWidget),t.NestedGroup=c(u.NestableWidget),t.GroupConfig=a(r.union([u.NestableWidget,t.NestedGroup])),t.Group=c(r.union([u.NestableWidget,t.NestedGroup]))},29218:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.UIDFieldType="UID",t.UIDConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.UID=r.exact(r.intersection([r.type({type:r.literal(t.UIDFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.UIDConfig})]))},35264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(82051),o=n(82250),u=n(56966),a=n(14149),c=n(29218);function f(e){return r.union([c.UID,u.NestableWidget,i.Group,e])}t.widgetReader=f,t.StaticWidget=f(a.StaticSlices),t.DynamicWidget=f(a.DynamicSlices),t.FieldType=r.keyof({[o.ColorFieldType]:null,[o.BooleanFieldType]:null,[o.NumberFieldType]:null,[o.EmbedFieldType]:null,[o.GeoPointFieldType]:null,[o.DateFieldType]:null,[o.RangeFieldType]:null,[o.RichTextFieldType]:null,[o.SelectFieldType]:null,[o.SeparatorFieldType]:null,[o.TableFieldType]:null,[o.TextFieldType]:null,[o.TimestampFieldType]:null,[o.LinkFieldType]:null,[o.ImageFieldType]:null,[o.IntegrationFieldType]:null,[c.UIDFieldType]:null,[i.GroupFieldType]:null,[a.SlicesFieldType]:null,[a.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return a.Slices.toStatic(e,t);default:return e}}}},75493:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(82051),t),(0,r.__exportStar)(n(82250),t),(0,r.__exportStar)(n(25852),t),(0,r.__exportStar)(n(27035),t),(0,r.__exportStar)(n(29218),t),(0,r.__exportStar)(n(35264),t)},50541:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.BooleanFieldType="Boolean",t.BooleanConfig=r.exact(r.partial({label:i.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})]))},247:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.ColorFieldType="Color",t.ColorConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string})),t.Color=r.exact(r.intersection([r.type({type:r.literal(t.ColorFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.ColorConfig})]))},33006:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.DateFieldType="Date",t.DateConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Date=r.exact(r.intersection([r.type({type:r.literal(t.DateFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.DateConfig})]))},26493:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.EmbedFieldType="Embed",t.EmbedConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,useAsTitle:r.boolean})),t.Embed=r.exact(r.intersection([r.type({type:r.literal(t.EmbedFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.EmbedConfig})]))},91301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=r.exact(r.partial({label:i.StringOrNull})),t.GeoPoint=r.exact(r.intersection([r.type({type:r.literal(t.GeoPointFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.GeoPointConfig})]))},2507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(22970),i=(0,r.__importStar)(n(87830)),o=n(49664),u=(0,r.__importDefault)(n(14419));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig})]))},22262:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,catalog:r.string})),t.IntegrationField=r.exact(r.intersection([r.type({type:r.literal(t.IntegrationFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.IntegrationFieldConfig})]))},45576:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(49664),c=e=>{if(e instanceof Array&&e.reduce((e,t)=>e&&"string"==typeof t,!0))return o.success(e)},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e),p=new o.Type("CustomTypeLevel2Fields",e=>Array.isArray(e)&&e.every(e=>"string"==typeof e),(e,t)=>i.either.chain(o.array(o.string).validate(e,t),n=>new Set(n).size===n.length?o.success(n):o.failure(e,t,"Fields have duplicates.")),e=>e),d=o.union([o.string,o.exact(o.intersection([o.type({id:o.string}),o.partial({fields:p})]))]),s=new o.Type("CustomTypesLevel2",e=>Array.isArray(e)&&e.every(e=>d.is(e)),(e,t)=>i.either.chain(o.array(d).validate(e,t),n=>new Set(n.map(e=>"string"==typeof e?e:e.id)).size===n.length?o.success(n):o.failure(e,t,"Custom types have duplicates.")),e=>e),m=o.union([o.string,o.strict({id:o.string,customtypes:s})]),h=new o.Type("CustomTypeLevel1Fields",e=>Array.isArray(e)&&e.every(e=>m.is(e)),(e,t)=>i.either.chain(o.array(m).validate(e,t),n=>new Set(n.map(e=>"string"==typeof e?e:e.id)).size===n.length?o.success(n):o.failure(e,t,"Fields have duplicates.")),e=>e),y=o.union([o.string,o.exact(o.intersection([o.type({id:o.string}),o.partial({fields:h})]))]),v=new o.Type("CustomTypes",e=>Array.isArray(e)&&e.every(e=>y.is(e)),(e,t)=>i.either.chain(o.array(y).validate(e,t),n=>{let r=new Set,i=new Set;for(let u of n){let n=!1;if("string"==typeof u)n=i.has(u),r.add(u);else{let{id:e}=u;n=r.has(e)||i.has(e),i.add(e)}if(n)return o.failure(e,t,"Custom types have duplicates.")}return o.success(n)}),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null]),null),customtypes:v,masks:l,tags:l,allowTargetBlank:o.boolean,allowText:o.boolean,repeat:o.boolean,variants:o.array(o.string)})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig})]))},56966:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(50541),o=n(247),u=n(33006),a=n(26493),c=n(91301),f=n(2507),l=n(22262),p=n(45576),d=n(99336),s=n(86422),m=n(9591),h=n(64753),y=n(3448),v=n(58717),g=n(69809),_=n(82135);t.NestableWidget=r.union([o.Color,i.BooleanField,a.Embed,c.GeoPoint,u.Date,d.Number,s.Range,m.RichText,h.Select,y.Separator,v.Table,g.Text,_.Timestamp,p.Link,f.Image,l.IntegrationField])},99336:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(59054),o=n(49664);t.NumberFieldType="Number",t.NumberConfig=r.exact(r.partial({label:o.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Number=r.exact(r.intersection([r.type({type:r.literal(t.NumberFieldType)}),r.partial({fieldset:o.StringOrNull,config:t.NumberConfig})]))},86422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(59054),o=n(49664);t.RangeFieldType="Range",t.RangeConfig=r.exact(r.partial({label:o.StringOrNull,placeholder:r.string,min:r.union([r.number,i.NumberFromString]),max:r.union([r.number,i.NumberFromString]),step:r.union([r.number,i.NumberFromString])})),t.Range=r.exact(r.intersection([r.type({type:r.literal(t.RangeFieldType)}),r.partial({fieldset:o.StringOrNull,config:t.RangeConfig})]))},9591:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(22970),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(49664),f=(0,r.__importDefault)(n(14419));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=a.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 a.Type("RichTextOptions",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()).filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return n.length?n.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array&&e.reduce((e,t)=>e&&"string"==typeof t,!0))return a.success(e)},m=e=>{if("string"==typeof e)return a.success([e])},h=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||m(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig})]))},64753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.SelectFieldType="Select",t.SelectConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default_value:r.string,options:r.readonlyArray(r.union([r.string,i.StringFromNumber,i.StringFromBoolean]))})),t.Select=r.exact(r.intersection([r.type({type:r.literal(t.SelectFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.SelectConfig})]))},3448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.SeparatorFieldType="Separator",t.SeparatorConfig=r.exact(r.partial({label:i.StringOrNull})),t.Separator=r.exact(r.intersection([r.type({type:r.literal(t.SeparatorFieldType)}),r.partial({config:t.SeparatorConfig})]))},58717:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.Table=t.TableFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664),o=n(9591);t.TableFieldType="Table";let u=r.exact(r.partial({label:i.StringOrNull}));t.Table=r.exact(r.intersection([r.type({type:r.literal(t.TableFieldType)}),r.partial({config:u})])),t.TableCell={type:"StructuredText",config:{multi:[o.RichTextNodeType.paragraph,o.RichTextNodeType.strong,o.RichTextNodeType.em,o.RichTextNodeType.hyperlink].join(",")}}},69809:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.TextFieldType="Text",t.TextConfig=r.exact(r.partial({label:i.StringOrNull,useAsTitle:r.boolean,placeholder:r.string})),t.Text=r.exact(r.intersection([r.type({type:r.literal(t.TextFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TextConfig})]))},82135:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(49664);t.TimestampFieldType="Timestamp",t.TimestampConfig=r.exact(r.partial({label:i.StringOrNull,placeholder:r.string,default:r.string})),t.Timestamp=r.exact(r.intersection([r.type({type:r.literal(t.TimestampFieldType)}),r.partial({fieldset:i.StringOrNull,config:t.TimestampConfig})]))},82250:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(50541),t),(0,r.__exportStar)(n(247),t),(0,r.__exportStar)(n(33006),t),(0,r.__exportStar)(n(26493),t),(0,r.__exportStar)(n(91301),t),(0,r.__exportStar)(n(2507),t),(0,r.__exportStar)(n(22262),t),(0,r.__exportStar)(n(45576),t),(0,r.__exportStar)(n(56966),t),(0,r.__exportStar)(n(99336),t),(0,r.__exportStar)(n(86422),t),(0,r.__exportStar)(n(9591),t),(0,r.__exportStar)(n(64753),t),(0,r.__exportStar)(n(3448),t),(0,r.__exportStar)(n(58717),t),(0,r.__exportStar)(n(69809),t),(0,r.__exportStar)(n(82135),t)},14419:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(49664),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},25852:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(14419);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},87190:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(88966),o=n(49664),u=n(56966);t.CompositeSliceType="Slice",t.CompositeSliceConfig=r.exact(r.partial({label:o.StringOrNull})),t.CompositeSlice=r.exact(r.intersection([r.type({type:r.literal(t.CompositeSliceType)}),r.partial({fieldset:o.StringOrNull,description:r.string,icon:r.string,display:r.string,"non-repeat":r.record(i.WidgetKey,u.NestableWidget),repeat:r.record(i.WidgetKey,u.NestableWidget),config:t.CompositeSliceConfig})])),t.isCompositeSlice=function(e){return"Slice"===e.type}},41379:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(82051),o=n(56966);t.LegacySlice=r.union([o.NestableWidget,i.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},14881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(69624),o=n(88966),u=n(56966),a=n(60782);t.Variation=r.exact(r.intersection([r.type({id:r.string,name:r.string,description:r.string,imageUrl:(0,i.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(o.WidgetKey,a.SlicePrimaryWidget),items:r.record(o.WidgetKey,u.NestableWidget)})])),t.SharedSliceType="SharedSlice";let c=r.string,f=r.string;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(c,f)})])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},15669:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(14881);t.SharedSliceRef=r.exact(r.type({type:r.literal(i.SharedSliceType)}))},304:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},60782:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(82051),o=n(82250);t.SlicePrimaryWidget=r.union([o.NestableWidget,i.Group]),t.isSlicePrimaryWidget=e=>o.NestableWidget.is(e)||i.Group.is(e)},14149:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),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,n(22970).__importStar)(n(87830)),i=n(88966),o=n(49664),u=n(87190),a=n(41379),c=n(14881),f=n(15669);function l(e){return r.exact(r.partial({label:o.StringOrNull,labels:t.SlicesLabels,choices:r.record(i.WidgetKey,r.union([a.LegacySlice,u.CompositeSlice,e]))}))}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=l,t.StaticSlicesConfig=l(c.SharedSlice),t.DynamicSlicesConfig=l(f.SharedSliceRef);let p={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let r=t.get(n);return r?{...e,[n]:r}:e}},{});return{...e,choices:n}}};function d(e){return r.exact(r.intersection([r.type({type:r.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),r.partial({fieldset:o.StringOrNull,config:e})]))}t.slicesReader=d,t.StaticSlices=d(t.StaticSlicesConfig),t.DynamicSlices=d(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:p.toStatic(e.config,t)}:e}},73961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,n(22970).__importStar)(n(87830)),i=n(87190),o=n(14881);t.SlicesTypes=r.keyof({[i.CompositeSliceType]:null,[o.SharedSliceType]:null})},27035:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(87190),t),(0,r.__exportStar)(n(41379),t),(0,r.__exportStar)(n(14881),t),(0,r.__exportStar)(n(15669),t),(0,r.__exportStar)(n(304),t),(0,r.__exportStar)(n(60782),t),(0,r.__exportStar)(n(14149),t),(0,r.__exportStar)(n(73961),t)},71551:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},73147:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){return[...new Set(Object.keys(e||{}).concat(Object.keys(t||{})))].reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return!!Object.keys(e).length},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},68396:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(22970);t.HexaColorCode=(0,r.__importStar)(n(42250)),t.Arrays=(0,r.__importStar)(n(71551)),t.Objects=(0,r.__importStar)(n(73147))},67836:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(22970),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(55242);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},76088:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(49664);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},49848:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},99451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},49614:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(22970),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(67836);t.DefaultOrElse=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0),t.NullOrElse=e=>(0,t.DefaultOrElse)(o.null)(e),t.EmptyObjectOrElse=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e),t.EmptyArrayOrElse=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e)},79107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},71112:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},4898:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(55242);t.default=(0,i.withCustomError)((0,i.refineType)(r.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},28881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(82395));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},46567:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(55242);t.default=(0,i.nullable)(r.number)},35048:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(67836);t.default=(e,t,n)=>i.Number.pipe(new r.Type("numberInRange",e=>i.Number.is(e),(i,o)=>i>t||i<e?r.failure(i,o,`${n} must be a number between ${e} and ${t}`):r.success(i),r.identity))},23517:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},65259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},82395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(22970).__importStar)(n(87830)),i=n(55242);t.default=(0,i.nullable)(r.string)},55746:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},55242:function(e,t,n){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=n(22970),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n}])(e.validate(n,r)))}},49664:function(e,t,n){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=n(22970);(0,r.__exportStar)(n(67836),t);var i=n(76088);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(49848);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(99451);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(49614),t),t.Function=(0,r.__importStar)(n(55242));var a=n(79107);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(71112);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(4898);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(28881);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(46567);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(35048);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(23517);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(65259);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(82395);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},13072:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.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 i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(n(4758)),i=d(n(91511)),o=d(n(75937)),u=d(n(44327)),a=d(n(58186)),c=d(n(72451)),f=d(n(90264)),l=d(n(43709)),p=d(n(49928));function d(e){return e&&e.__esModule?e:{default:e}}},97323:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let n=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<e.length;t+=16){let n=i,d=f,s=l,m=p;i=o(i,f,l,p,e[t],7,-680876936),p=o(p,i,f,l,e[t+1],12,-389564586),l=o(l,p,i,f,e[t+2],17,606105819),f=o(f,l,p,i,e[t+3],22,-1044525330),i=o(i,f,l,p,e[t+4],7,-176418897),p=o(p,i,f,l,e[t+5],12,1200080426),l=o(l,p,i,f,e[t+6],17,-1473231341),f=o(f,l,p,i,e[t+7],22,-45705983),i=o(i,f,l,p,e[t+8],7,1770035416),p=o(p,i,f,l,e[t+9],12,-1958414417),l=o(l,p,i,f,e[t+10],17,-42063),f=o(f,l,p,i,e[t+11],22,-1990404162),i=o(i,f,l,p,e[t+12],7,1804603682),p=o(p,i,f,l,e[t+13],12,-40341101),l=o(l,p,i,f,e[t+14],17,-1502002290),f=o(f,l,p,i,e[t+15],22,1236535329),i=u(i,f,l,p,e[t+1],5,-165796510),p=u(p,i,f,l,e[t+6],9,-1069501632),l=u(l,p,i,f,e[t+11],14,643717713),f=u(f,l,p,i,e[t],20,-373897302),i=u(i,f,l,p,e[t+5],5,-701558691),p=u(p,i,f,l,e[t+10],9,38016083),l=u(l,p,i,f,e[t+15],14,-660478335),f=u(f,l,p,i,e[t+4],20,-405537848),i=u(i,f,l,p,e[t+9],5,568446438),p=u(p,i,f,l,e[t+14],9,-1019803690),l=u(l,p,i,f,e[t+3],14,-187363961),f=u(f,l,p,i,e[t+8],20,1163531501),i=u(i,f,l,p,e[t+13],5,-1444681467),p=u(p,i,f,l,e[t+2],9,-51403784),l=u(l,p,i,f,e[t+7],14,1735328473),f=u(f,l,p,i,e[t+12],20,-1926607734),i=a(i,f,l,p,e[t+5],4,-378558),p=a(p,i,f,l,e[t+8],11,-2022574463),l=a(l,p,i,f,e[t+11],16,1839030562),f=a(f,l,p,i,e[t+14],23,-35309556),i=a(i,f,l,p,e[t+1],4,-1530992060),p=a(p,i,f,l,e[t+4],11,1272893353),l=a(l,p,i,f,e[t+7],16,-155497632),f=a(f,l,p,i,e[t+10],23,-1094730640),i=a(i,f,l,p,e[t+13],4,681279174),p=a(p,i,f,l,e[t],11,-358537222),l=a(l,p,i,f,e[t+3],16,-722521979),f=a(f,l,p,i,e[t+6],23,76029189),i=a(i,f,l,p,e[t+9],4,-640364487),p=a(p,i,f,l,e[t+12],11,-421815835),l=a(l,p,i,f,e[t+15],16,530742520),f=a(f,l,p,i,e[t+2],23,-995338651),i=c(i,f,l,p,e[t],6,-198630844),p=c(p,i,f,l,e[t+7],10,1126891415),l=c(l,p,i,f,e[t+14],15,-1416354905),f=c(f,l,p,i,e[t+5],21,-57434055),i=c(i,f,l,p,e[t+12],6,1700485571),p=c(p,i,f,l,e[t+3],10,-1894986606),l=c(l,p,i,f,e[t+10],15,-1051523),f=c(f,l,p,i,e[t+1],21,-2054922799),i=c(i,f,l,p,e[t+8],6,1873313359),p=c(p,i,f,l,e[t+15],10,-30611744),l=c(l,p,i,f,e[t+6],15,-1560198380),f=c(f,l,p,i,e[t+13],21,1309151649),i=c(i,f,l,p,e[t+4],6,-145523070),p=c(p,i,f,l,e[t+11],10,-1120210379),l=c(l,p,i,f,e[t+2],15,718787259),f=c(f,l,p,i,e[t+9],21,-343485551),i=r(i,n),f=r(f,d),l=r(l,s),p=r(p,m)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},72478:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},58186:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},49928:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(90264))&&r.__esModule?r:{default:r};t.default=function(e){let t;if(!(0,i.default)(e))throw TypeError("Invalid UUID");let n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},5138:function(e,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},5108:function(e,t){let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let r=new Uint8Array(16)},27746:function(e,t){function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let i=Math.ceil((e.length/4+2)/16),o=Array(i);for(let t=0;t<i;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];o[t]=n}o[i-1][14]=(e.length-1)*8/4294967296,o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<i;++e){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=o[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let u=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let e=0;e<80;++e){let r=Math.floor(e/20),o=n(u,5)+function(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}(r,a,c,f)+l+t[r]+i[e]>>>0;l=f,f=c,c=n(a,30)>>>0,a=u,u=o}r[0]=r[0]+u>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>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]]}},43709:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=u;var r,i=(r=n(90264))&&r.__esModule?r:{default:r};let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function u(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}t.default=function(e,t=0){let n=u(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}},4758:function(e,t,n){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,u=(o=n(5108))&&o.__esModule?o:{default:o},a=n(43709);let c=0,f=0;t.default=function(e,t,n){let o=t&&n||0,l=t||Array(16),p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==d){let t=e.random||(e.rng||u.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=i=(t[6]<<8|t[7])&16383)}let s=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,h=s-c+(m-f)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||s>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=m,i=d;let y=((268435455&(s+=122192928e5))*1e4+m)%4294967296;l[o++]=y>>>24&255,l[o++]=y>>>16&255,l[o++]=y>>>8&255,l[o++]=255&y;let v=s/4294967296*1e4&268435455;l[o++]=v>>>8&255,l[o++]=255&v,l[o++]=v>>>24&15|16,l[o++]=v>>>16&255,l[o++]=d>>>8|128,l[o++]=255&d;for(let e=0;e<6;++e)l[o+e]=p[e];return t||(0,a.unsafeStringify)(l)}},91511:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(41750)),i=o(n(97323));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},41750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let e=0;e<16;++e)u[a+e]=f[e];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(e){}return r.DNS=u,r.URL=a,r};var r,i=n(43709),o=(r=n(49928))&&r.__esModule?r:{default:r};let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},75937:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(72478)),i=u(n(5108)),o=n(43709);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();let u=(e=e||{}).random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=u[e];return t}return(0,o.unsafeStringify)(u)}},44327:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(41750)),i=o(n(27746));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},90264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(5138))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},72451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(90264))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},73207:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.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 i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(n(99324)),i=d(n(37776)),o=d(n(60588)),u=d(n(88434)),a=d(n(20669)),c=d(n(36058)),f=d(n(41252)),l=d(n(71400)),p=d(n(80169));function d(e){return e&&e.__esModule?e:{default:e}}},96902:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let n=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<e.length;t+=16){let n=i,d=f,s=l,m=p;i=o(i,f,l,p,e[t],7,-680876936),p=o(p,i,f,l,e[t+1],12,-389564586),l=o(l,p,i,f,e[t+2],17,606105819),f=o(f,l,p,i,e[t+3],22,-1044525330),i=o(i,f,l,p,e[t+4],7,-176418897),p=o(p,i,f,l,e[t+5],12,1200080426),l=o(l,p,i,f,e[t+6],17,-1473231341),f=o(f,l,p,i,e[t+7],22,-45705983),i=o(i,f,l,p,e[t+8],7,1770035416),p=o(p,i,f,l,e[t+9],12,-1958414417),l=o(l,p,i,f,e[t+10],17,-42063),f=o(f,l,p,i,e[t+11],22,-1990404162),i=o(i,f,l,p,e[t+12],7,1804603682),p=o(p,i,f,l,e[t+13],12,-40341101),l=o(l,p,i,f,e[t+14],17,-1502002290),f=o(f,l,p,i,e[t+15],22,1236535329),i=u(i,f,l,p,e[t+1],5,-165796510),p=u(p,i,f,l,e[t+6],9,-1069501632),l=u(l,p,i,f,e[t+11],14,643717713),f=u(f,l,p,i,e[t],20,-373897302),i=u(i,f,l,p,e[t+5],5,-701558691),p=u(p,i,f,l,e[t+10],9,38016083),l=u(l,p,i,f,e[t+15],14,-660478335),f=u(f,l,p,i,e[t+4],20,-405537848),i=u(i,f,l,p,e[t+9],5,568446438),p=u(p,i,f,l,e[t+14],9,-1019803690),l=u(l,p,i,f,e[t+3],14,-187363961),f=u(f,l,p,i,e[t+8],20,1163531501),i=u(i,f,l,p,e[t+13],5,-1444681467),p=u(p,i,f,l,e[t+2],9,-51403784),l=u(l,p,i,f,e[t+7],14,1735328473),f=u(f,l,p,i,e[t+12],20,-1926607734),i=a(i,f,l,p,e[t+5],4,-378558),p=a(p,i,f,l,e[t+8],11,-2022574463),l=a(l,p,i,f,e[t+11],16,1839030562),f=a(f,l,p,i,e[t+14],23,-35309556),i=a(i,f,l,p,e[t+1],4,-1530992060),p=a(p,i,f,l,e[t+4],11,1272893353),l=a(l,p,i,f,e[t+7],16,-155497632),f=a(f,l,p,i,e[t+10],23,-1094730640),i=a(i,f,l,p,e[t+13],4,681279174),p=a(p,i,f,l,e[t],11,-358537222),l=a(l,p,i,f,e[t+3],16,-722521979),f=a(f,l,p,i,e[t+6],23,76029189),i=a(i,f,l,p,e[t+9],4,-640364487),p=a(p,i,f,l,e[t+12],11,-421815835),l=a(l,p,i,f,e[t+15],16,530742520),f=a(f,l,p,i,e[t+2],23,-995338651),i=c(i,f,l,p,e[t],6,-198630844),p=c(p,i,f,l,e[t+7],10,1126891415),l=c(l,p,i,f,e[t+14],15,-1416354905),f=c(f,l,p,i,e[t+5],21,-57434055),i=c(i,f,l,p,e[t+12],6,1700485571),p=c(p,i,f,l,e[t+3],10,-1894986606),l=c(l,p,i,f,e[t+10],15,-1051523),f=c(f,l,p,i,e[t+1],21,-2054922799),i=c(i,f,l,p,e[t+8],6,1873313359),p=c(p,i,f,l,e[t+15],10,-30611744),l=c(l,p,i,f,e[t+6],15,-1560198380),f=c(f,l,p,i,e[t+13],21,1309151649),i=c(i,f,l,p,e[t+4],6,-145523070),p=c(p,i,f,l,e[t+11],10,-1120210379),l=c(l,p,i,f,e[t+2],15,718787259),f=c(f,l,p,i,e[t+9],21,-343485551),i=r(i,n),f=r(f,d),l=r(l,s),p=r(p,m)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},45691:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},20669:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},80169:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41252))&&r.__esModule?r:{default:r};t.default=function(e){let t;if(!(0,i.default)(e))throw TypeError("Invalid UUID");let n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},42143:function(e,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},90371:function(e,t){let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let r=new Uint8Array(16)},63639:function(e,t){function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let i=Math.ceil((e.length/4+2)/16),o=Array(i);for(let t=0;t<i;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];o[t]=n}o[i-1][14]=(e.length-1)*8/4294967296,o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<i;++e){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=o[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let u=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let e=0;e<80;++e){let r=Math.floor(e/20),o=n(u,5)+function(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}(r,a,c,f)+l+t[r]+i[e]>>>0;l=f,f=c,c=n(a,30)>>>0,a=u,u=o}r[0]=r[0]+u>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>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]]}},71400:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=u;var r,i=(r=n(41252))&&r.__esModule?r:{default:r};let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function u(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}t.default=function(e,t=0){let n=u(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}},99324:function(e,t,n){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,u=(o=n(90371))&&o.__esModule?o:{default:o},a=n(71400);let c=0,f=0;t.default=function(e,t,n){let o=t&&n||0,l=t||Array(16),p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==d){let t=e.random||(e.rng||u.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=i=(t[6]<<8|t[7])&16383)}let s=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,h=s-c+(m-f)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||s>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=m,i=d;let y=((268435455&(s+=122192928e5))*1e4+m)%4294967296;l[o++]=y>>>24&255,l[o++]=y>>>16&255,l[o++]=y>>>8&255,l[o++]=255&y;let v=s/4294967296*1e4&268435455;l[o++]=v>>>8&255,l[o++]=255&v,l[o++]=v>>>24&15|16,l[o++]=v>>>16&255,l[o++]=d>>>8|128,l[o++]=255&d;for(let e=0;e<6;++e)l[o+e]=p[e];return t||(0,a.unsafeStringify)(l)}},37776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(90619)),i=o(n(96902));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},90619:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let e=0;e<16;++e)u[a+e]=f[e];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(e){}return r.DNS=u,r.URL=a,r};var r,i=n(71400),o=(r=n(80169))&&r.__esModule?r:{default:r};let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},60588:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(45691)),i=u(n(90371)),o=n(71400);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();let u=(e=e||{}).random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=u[e];return t}return(0,o.unsafeStringify)(u)}},88434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(90619)),i=o(n(63639));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},41252:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(42143))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},36058:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41252))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},46111:function(e,t,n){n.r(t),n.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return u}});var r=n(42925),i=n(42275),o=n(67560);function u(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function a(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},42925:function(e,t,n){n.r(t),n.d(t,{ap:function(){return o},apFirst:function(){return u},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=n(42275),i=n(97963);function o(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}}function u(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}}function a(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}function c(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}}function f(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}}function l(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):l(e,t-1,i)}}var p={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function d(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o=t.length,u=(i.e$.call(p,o)||(p[o]=l(r.tuple,o-1,[])),p[o]),a=e.map(t[0],u),c=1;c<o;c++)a=e.ap(a,t[c]);return a}}function s(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return l(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},1358:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tK},Alternative:function(){return tH},Applicative:function(){return tU},Apply:function(){return tD},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t4},Compactable:function(){return tX},Do:function(){return nf},Extend:function(){return tz},Filterable:function(){return t$},FilterableWithIndex:function(){return tJ},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return ne},Functor:function(){return tP},FunctorWithIndex:function(){return tW},Monad:function(){return tG},Pointed:function(){return tL},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tS},Unfoldable:function(){return tY},Witherable:function(){return t7},Zero:function(){return tV},alt:function(){return tu},altW:function(){return to},ap:function(){return e2},apFirst:function(){return tN},apS:function(){return ns},apSecond:function(){return tA},append:function(){return g},appendW:function(){return _},array:function(){return nb},bind:function(){return nd},bindTo:function(){return nl},chain:function(){return nm},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t5},chainWithIndex:function(){return F},chop:function(){return eb},chunksOf:function(){return eS},compact:function(){return e9},comprehension:function(){return eR},concat:function(){return ex},concatW:function(){return eC},cons:function(){return nv},copy:function(){return er},deleteAt:function(){return eu},difference:function(){return eM},dropLeft:function(){return z},dropLeftWhile:function(){return $},dropRight:function(){return X},duplicate:function(){return tf},elem:function(){return ev},empty:function(){return ny},every:function(){return no},exists:function(){return na},extend:function(){return tc},filter:function(){return te},filterE:function(){return t6},filterMap:function(){return e3},filterMapWithIndex:function(){return e4},filterWithIndex:function(){return ta},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return J},findLast:function(){return ee},findLastIndex:function(){return en},findLastMap:function(){return et},flap:function(){return tF},flatMap:function(){return e8},flatten:function(){return e7},foldLeft:function(){return M},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return P},fromEither:function(){return R},fromEitherK:function(){return nt},fromOption:function(){return I},fromOptionK:function(){return eI},fromPredicate:function(){return S},getDifferenceMagma:function(){return tk},getEq:function(){return tx},getIntersectionSemigroup:function(){return tE},getMonoid:function(){return tC},getOrd:function(){return tO},getSemigroup:function(){return tR},getShow:function(){return tI},getUnionMonoid:function(){return tM},getUnionSemigroup:function(){return tw},guard:function(){return tB},head:function(){return U},init:function(){return G},insertAt:function(){return ei},intercalate:function(){return nc},intersection:function(){return ew},intersperse:function(){return eh},isEmpty:function(){return m},isNonEmpty:function(){return h},isOutOfBound:function(){return N},last:function(){return j},lefts:function(){return el},let:function(){return np},lookup:function(){return A},makeBy:function(){return b},map:function(){return e1},mapWithIndex:function(){return e5},match:function(){return x},matchLeft:function(){return w},matchLeftW:function(){return O},matchRight:function(){return k},matchRightW:function(){return E},matchW:function(){return C},modifyAt:function(){return ea},of:function(){return eQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return ti},partitionWithIndex:function(){return tn},prepend:function(){return y},prependAll:function(){return em},prependToAll:function(){return n_},prependW:function(){return v},range:function(){return nh},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return th},reduceWithIndex:function(){return ts},replicate:function(){return T},reverse:function(){return ec},rights:function(){return ef},rotate:function(){return ey},scanLeft:function(){return L},scanRight:function(){return W},separate:function(){return e6},sequence:function(){return tv},size:function(){return D},snoc:function(){return ng},some:function(){return nu},sort:function(){return ep},sortBy:function(){return e_},spanLeft:function(){return H},splitAt:function(){return eT},tail:function(){return q},takeLeft:function(){return Y},takeLeftWhile:function(){return V},takeRight:function(){return K},traverse:function(){return ty},traverseWithIndex:function(){return tg},unfold:function(){return tT},union:function(){return eO},uniq:function(){return eg},unsafeDeleteAt:function(){return ni},unsafeInsertAt:function(){return nn},unsafeUpdateAt:function(){return nr},unzip:function(){return es},updateAt:function(){return eo},wilt:function(){return tb},wither:function(){return t_},zero:function(){return e0},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:ed(t,n,function(e,t){return[e,t]})}},zipWith:function(){return ed}});var r=n(42925),i=n(88543),o=n(25162),u=n(42275),a=n(67560),c=n(97963),f=n(43586),l=n(31583),p=n(34219),d=n(76511),s=n(28957),m=function(e){return 0===e.length},h=f.isNonEmpty,y=f.prepend,v=f.prependW,g=f.append,_=f.appendW,b=function(e,t){return e<=0?[]:f.makeBy(t)(e)},T=function(e,t){return b(e,function(){return t})};function S(e){return function(t){return e(t)?[t]:[]}}var I=function(e){return c.Wi(e)?[]:[e.value]},R=function(e){return c.nM(e)?[]:[e.right]},C=function(e,t){return function(n){return h(n)?t(n):e()}},x=C,O=function(e,t){return function(n){return h(n)?t(f.head(n),f.tail(n)):e()}},w=O,M=w,E=function(e,t){return function(n){return h(n)?t(f.init(n),f.last(n)):e()}},k=E,P=k,F=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},L=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},W=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},D=function(e){return e.length},N=f.isOutOfBound,A=l.lookup,U=l.head,j=l.last,q=function(e){return h(e)?c.G(f.tail(e)):c.YP},G=function(e){return h(e)?c.G(f.init(e)):c.YP},Y=function(e){return function(t){return N(e,t)?er(t):t.slice(0,e)}},K=function(e){return function(t){return N(e,t)?er(t):0===e?[]:t.slice(-e)}};function V(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}}var B=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function H(e){return function(t){var n=eT(B(t,e))(t);return{init:n[0],rest:n[1]}}}var z=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(e,t.length)}},X=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(0,t.length-e)}};function $(e){return function(t){return t.slice(B(t,e))}}var J=l.findIndex;function Z(e){return l.findFirst(e)}var Q=l.findFirstMap;function ee(e){return l.findLast(e)}var et=l.findLastMap,en=l.findLastIndex,er=function(e){return e.slice()},ei=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(nn(e,t,n))}},eo=function(e,t){return ea(e,function(){return t})},eu=function(e){return function(t){return N(e,t)?c.YP:c.G(ni(e,t))}},ea=function(e,t){return function(n){return N(e,n)?c.YP:c.G(nr(e,t(n[e]),n))}},ec=function(e){return m(e)?[]:e.slice().reverse()},ef=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ep=function(e){return function(t){return t.length<=1?er(t):t.slice().sort(e.compare)}},ed=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},es=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},em=function(e){var t=f.prependAll(e);return function(e){return h(e)?t(e):[]}},eh=function(e){var t=f.intersperse(e);return function(e){return h(e)?t(e):er(e)}},ey=function(e){var t=f.rotate(e);return function(e){return h(e)?t(e):er(e)}},ev=l.elem,eg=function(e){var t=f.uniq(e);return function(e){return h(e)?t(e):er(e)}},e_=function(e){var t=f.sortBy(e);return function(e){return h(e)?t(e):er(e)}},eb=function(e){var t=f.chop(e);return function(e){return h(e)?t(e):[]}},eT=function(e){return function(t){return e>=1&&h(t)?f.splitAt(e)(t):m(t)?[er(t),[]]:[[],er(t)]}},eS=function(e){var t=f.chunksOf(e);return function(e){return h(e)?t(e):[]}},eI=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return I(e.apply(void 0,t))}};function eR(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return h(i)?e8(f.head(i),function(t){return r((0,u.pipe)(e,g(t)),f.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)}var eC=function(e){return function(t){return m(t)?er(e):m(e)?er(t):t.concat(e)}},ex=eC;function eO(e){var t=f.union(e);return function(n,r){if(void 0===r){var i=eO(e);return function(e){return i(e,n)}}return h(n)&&h(r)?t(r)(n):h(n)?er(n):er(r)}}function ew(e){var t=ev(e);return function(n,r){if(void 0===r){var i=ew(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eM(e){var t=ev(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var eE=function(e,t){return(0,u.pipe)(e,e1(t))},ek=function(e,t){return(0,u.pipe)(e,e5(t))},eP=function(e,t){return(0,u.pipe)(e,e2(t))},eF=function(e,t){return(0,u.pipe)(e,te(t))},eL=function(e,t){return(0,u.pipe)(e,e3(t))},eW=function(e,t){return(0,u.pipe)(e,tt(t))},eD=function(e,t){return(0,u.pipe)(e,tr(t))},eN=function(e,t){return(0,u.pipe)(e,tn(t))},eA=function(e,t){return(0,u.pipe)(e,ti(t))},eU=function(e,t){return(0,u.pipe)(e,tu(t))},ej=function(e,t,n){return(0,u.pipe)(e,td(t,n))},eq=function(e){var t=tl(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eG=function(e,t,n){return(0,u.pipe)(e,tm(t,n))},eY=function(e,t,n){return(0,u.pipe)(e,ts(t,n))},eK=function(e){var t=tp(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eV=function(e,t,n){return(0,u.pipe)(e,th(t,n))},eB=function(e,t){return(0,u.pipe)(e,e4(t))},eH=function(e,t){return(0,u.pipe)(e,ta(t))},ez=function(e,t){return(0,u.pipe)(e,tc(t))},eX=function(e){var t=ty(e);return function(e,n){return(0,u.pipe)(e,t(n))}},e$=function(e){var t=tg(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eJ=l._chainRecDepthFirst,eZ=l._chainRecBreadthFirst,eQ=f.of,e0=function(){return[]},e1=function(e){return function(t){return t.map(function(t){return e(t)})}},e2=function(e){return e8(function(t){return(0,u.pipe)(e,e1(t))})},e8=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,F(function(e,n){return t(n,e)}))}),e7=e8(u.identity),e5=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e4=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);c.pC(i)&&n.push(i.value)}return n}},e3=function(e){return e4(function(t,n){return e(n)})},e9=e3(u.identity),e6=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,p.separated)(t,n)},te=function(e){return function(t){return t.filter(e)}},tt=function(e){return tn(function(t,n){return e(n)})},tn=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,p.separated)(n,r)}},tr=function(e){return ti(function(t,n){return e(n)})},ti=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,p.separated)(n,r)}},to=function(e){return function(t){return t.concat(e())}},tu=to,ta=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tc=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tf=tc(u.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,tm=l.reduceRight,th=l.reduceRightWithIndex,ty=function(e){var t=tg(e);return function(e){return t(function(t,n){return e(n)})}},tv=function(e){return function(t){return ej(t,e.of(e0()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),n)})}},tg=function(e){return function(t){return ts(e.of(e0()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),t(n,i))})}},t_=function(e){var t=t2(e);return function(e){return function(n){return t(n,e)}}},tb=function(e){var t=t8(e);return function(e){return function(n){return t(n,e)}}},tT=function(e,t){for(var n=[],r=e;;){var i=t(r);if(c.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tS="Array",tI=l.getShow,tR=function(){return{concat:function(e,t){return e.concat(t)}}},tC=function(){return{concat:tR().concat,empty:[]}},tx=l.getEq,tO=l.getOrd,tw=function(e){var t=eO(e);return{concat:function(e,n){return t(n)(e)}}},tM=function(e){return{concat:tw(e).concat,empty:[]}},tE=function(e){var t=ew(e);return{concat:function(e,n){return t(n)(e)}}},tk=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tP={URI:tS,map:eE},tF=(0,a.flap)(tP),tL={URI:tS,of:eQ},tW={URI:tS,map:eE,mapWithIndex:ek},tD={URI:tS,map:eE,ap:eP},tN=(0,r.apFirst)(tD),tA=(0,r.apSecond)(tD),tU={URI:tS,map:eE,ap:eP,of:eQ},tj={URI:tS,map:eE,ap:eP,chain:e8},tq=(0,i.chainFirst)(tj),tG={URI:tS,map:eE,ap:eP,of:eQ,chain:e8},tY={URI:tS,unfold:tT},tK={URI:tS,map:eE,alt:eU},tV={URI:tS,zero:e0},tB=(0,s.guard)(tV,tL),tH={URI:tS,map:eE,ap:eP,of:eQ,alt:eU,zero:e0},tz={URI:tS,map:eE,extend:ez},tX={URI:tS,compact:e9,separate:e6},t$={URI:tS,map:eE,compact:e9,separate:e6,filter:eF,filterMap:eL,partition:eW,partitionMap:eD},tJ={URI:tS,map:eE,mapWithIndex:ek,compact:e9,separate:e6,filter:eF,filterMap:eL,partition:eW,partitionMap:eD,partitionMapWithIndex:eA,partitionWithIndex:eN,filterMapWithIndex:eB,filterWithIndex:eH},tZ={URI:tS,reduce:ej,foldMap:eq,reduceRight:eG},tQ={URI:tS,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eK,reduceRightWithIndex:eV},t0={URI:tS,map:eE,reduce:ej,foldMap:eq,reduceRight:eG,traverse:eX,sequence:tv},t1={URI:tS,map:eE,mapWithIndex:ek,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eK,reduceRightWithIndex:eV,traverse:eX,sequence:tv,traverseWithIndex:e$},t2=(0,d.witherDefault)(t0,tX),t8=(0,d.wiltDefault)(t0,tX),t7={URI:tS,map:eE,compact:e9,separate:e6,filter:eF,filterMap:eL,partition:eW,partitionMap:eD,reduce:ej,foldMap:eq,reduceRight:eG,traverse:eX,sequence:tv,wither:t2,wilt:t8},t5=l.chainRecDepthFirst,t4={URI:tS,map:eE,ap:eP,chain:e8,chainRec:eJ},t3=l.chainRecBreadthFirst,t9={URI:tS,map:eE,ap:eP,chain:e8,chainRec:eZ},t6=(0,d.filterE)(t7),ne={URI:tS,fromEither:R},nt=(0,o.fromEitherK)(ne),nn=f.unsafeInsertAt,nr=function(e,t,n){return h(n)?f.unsafeUpdateAt(e,t,n):[]},ni=function(e,t){var n=t.slice();return n.splice(e,1),n},no=l.every,nu=function(e){return function(t){return t.some(e)}},na=nu,nc=l.intercalate,nf=eQ(c.F4),nl=(0,a.bindTo)(tP),np=(0,a.let)(tP),nd=(0,i.bind)(tj),ns=(0,r.apS)(tD),nm=e8,nh=f.range,ny=[],nv=f.cons,ng=f.snoc,n_=em,nb={URI:tS,compact:e9,separate:e6,map:eE,ap:eP,of:eQ,chain:e8,filter:eF,filterMap:eL,partition:eW,partitionMap:eD,mapWithIndex:ek,partitionMapWithIndex:eA,partitionWithIndex:eN,filterMapWithIndex:eB,filterWithIndex:eH,alt:eU,zero:e0,unfold:tT,reduce:ej,foldMap:eq,reduceRight:eG,traverse:eX,sequence:tv,reduceWithIndex:eY,foldMapWithIndex:eK,reduceRightWithIndex:eV,traverseWithIndex:e$,extend:ez,wither:t2,wilt:t8}},88543:function(e,t,n){function r(e){var t=i(e);return function(e){return function(n){return t(n,e)}}}function i(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}function o(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}n.r(t),n.d(t,{bind:function(){return o},chainFirst:function(){return r},tap:function(){return i}})},56661:function(e,t,n){n.r(t),n.d(t,{tailRec:function(){return r}});var r=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right}},90817:function(e,t,n){n.r(t),n.d(t,{Bifunctor:function(){return E},Contravariant:function(){return M},Functor:function(){return O},URI:function(){return x},bimap:function(){return R},const_:function(){return k},contramap:function(){return S},flap:function(){return w},getApplicative:function(){return v},getApply:function(){return y},getBooleanAlgebra:function(){return h},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return m},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return u},make:function(){return o},map:function(){return I},mapLeft:function(){return C}});var r=n(42275),i=n(67560),o=r.unsafeCoerce;function u(e){return{show:function(t){return"make(".concat(e.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,m=r.identity,h=r.identity;function y(e){return{URI:x,_E:void 0,map:_,ap:function(t,n){return o(e.concat(t,n))}}}function v(e){var t=y(e);return{URI:x,_E:void 0,map:t.map,ap:t.ap,of:function(){return o(e.empty)}}}var g=function(e,t){return(0,r.pipe)(e,S(t))},_=function(e,t){return(0,r.pipe)(e,I(t))},b=function(e,t,n){return(0,r.pipe)(e,R(t,n))},T=function(e,t){return(0,r.pipe)(e,C(t))},S=function(){return r.unsafeCoerce},I=function(){return r.unsafeCoerce},R=function(e){return function(t){return o(e(t))}},C=function(e){return function(t){return o(e(t))}},x="Const",O={URI:x,map:_},w=(0,i.flap)(O),M={URI:x,contramap:g},E={URI:x,bimap:b,mapLeft:T},k={URI:x,map:_,contramap:g,bimap:b,mapLeft:T}},81878:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eu},ApT:function(){return e3},Applicative:function(){return V},Apply:function(){return K},Bifunctor:function(){return er},Chain:function(){return B},ChainRec:function(){return ef},Do:function(){return e0},Extend:function(){return ec},Foldable:function(){return J},FromEither:function(){return ed},Functor:function(){return N},Monad:function(){return H},MonadThrow:function(){return ep},Pointed:function(){return q},Traversable:function(){return ee},URI:function(){return O},alt:function(){return eo},altW:function(){return ei},ap:function(){return Y},apFirst:function(){return eR},apFirstW:function(){return eC},apS:function(){return e5},apSW:function(){return e4},apSecond:function(){return ex},apSecondW:function(){return eO},apW:function(){return G},as:function(){return A},asUnit:function(){return U},bimap:function(){return et},bind:function(){return e8},bindTo:function(){return e1},bindW:function(){return e7},chain:function(){return ti},chainFirst:function(){return to},chainFirstW:function(){return tu},chainNullableK:function(){return e$},chainOptionK:function(){return eF},chainOptionKW:function(){return eL},chainW:function(){return tr},duplicate:function(){return ek},either:function(){return tf},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!eh(r)&&t.equals(n,r.right)}}},exists:function(){return eQ},extend:function(){return ea},filterOrElse:function(){return eq},filterOrElseW:function(){return eG},flap:function(){return eI},flatMap:function(){return h},flatMapNullable:function(){return eU},flatMapOption:function(){return ej},flatten:function(){return eE},flattenW:function(){return eM},fold:function(){return eb},foldMap:function(){return X},foldW:function(){return eg},fromNullable:function(){return eB},fromNullableK:function(){return eX},fromOption:function(){return em},fromOptionK:function(){return eP},fromPredicate:function(){return es},getAltValidation:function(){return W},getApplicativeValidation:function(){return L},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return k},getEq:function(){return M},getFilterable:function(){return P},getOrElse:function(){return eS},getOrElseW:function(){return eT},getSemigroup:function(){return E},getShow:function(){return w},getValidation:function(){return tm},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return F},isLeft:function(){return eh},isRight:function(){return ey},left:function(){return s},let:function(){return e2},liftNullable:function(){return eD},liftOption:function(){return eN},map:function(){return D},mapLeft:function(){return en},match:function(){return e_},matchW:function(){return ev},of:function(){return j},orElse:function(){return eV},orElseW:function(){return eK},parseJSON:function(){return ta},reduce:function(){return z},reduceRight:function(){return $},right:function(){return m},sequence:function(){return Q},sequenceArray:function(){return tn},stringifyJSON:function(){return tc},swap:function(){return eY},tap:function(){return ew},throwError:function(){return el},toError:function(){return eZ},toUnion:function(){return eJ},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return eH},tryCatchK:function(){return ez}});var r=n(46111),i=n(42925),o=n(88543),u=n(56661),a=n(25162),c=n(42275),f=n(67560),l=n(97963),p=n(34219),d=n(76511),s=l.t$,m=l.F2,h=(0,c.dual)(2,function(e,t){return eh(e)?e:t(e.right)}),y=function(e,t){return(0,c.pipe)(e,D(t))},v=function(e,t){return(0,c.pipe)(e,Y(t))},g=function(e,t,n){return(0,c.pipe)(e,z(t,n))},_=function(e){return function(t,n){var r=X(e);return(0,c.pipe)(t,r(n))}},b=function(e,t,n){return(0,c.pipe)(e,$(t,n))},T=function(e){var t=Z(e);return function(e,n){return(0,c.pipe)(e,t(n))}},S=function(e,t,n){return(0,c.pipe)(e,et(t,n))},I=function(e,t){return(0,c.pipe)(e,en(t))},R=function(e,t){return(0,c.pipe)(e,eo(t))},C=function(e,t){return(0,c.pipe)(e,ea(t))},x=function(e,t){return(0,u.tailRec)(t(e),function(e){return eh(e)?m(s(e.left)):eh(e.right)?s(t(e.right.left)):m(m(e.right.right))})},O="Either",w=function(e,t){return{show:function(n){return eh(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},M=function(e,t){return{equals:function(n,r){return n===r||(eh(n)?eh(r)&&e.equals(n.left,r.left):ey(r)&&t.equals(n.right,r.right))}}},E=function(e){return{concat:function(t,n){return eh(n)?t:eh(t)?n:m(e.concat(t.right,n.right))}}},k=function(e){var t=s(e.empty);return{URI:O,_E:void 0,compact:function(e){return eh(e)?e:"None"===e.right._tag?t:m(e.right.value)},separate:function(e){return eh(e)?(0,p.separated)(e,e):eh(e.right)?(0,p.separated)(m(e.right.left),t):(0,p.separated)(t,m(e.right.right))}}},P=function(e){var t=s(e.empty),n=k(e);return{URI:O,_E:void 0,map:y,compact:n.compact,separate:n.separate,filter:function(e,n){return eh(e)?e:n(e.right)?e:t},filterMap:function(e,n){if(eh(e))return e;var r=n(e.right);return"None"===r._tag?t:m(r.value)},partition:function(e,n){return eh(e)?(0,p.separated)(e,e):n(e.right)?(0,p.separated)(t,m(e.right)):(0,p.separated)(m(e.right),t)},partitionMap:function(e,n){if(eh(e))return(0,p.separated)(e,e);var r=n(e.right);return eh(r)?(0,p.separated)(m(r.left),t):(0,p.separated)(t,m(r.right))}}},F=function(e){var t=P(e),n=k(e);return{URI:O,_E:void 0,map:y,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:T,sequence:Q,reduce:g,foldMap:_,reduceRight:b,wither:(0,d.witherDefault)(ee,n),wilt:(0,d.wiltDefault)(ee,n)}},L=function(e){return{URI:O,_E:void 0,map:y,ap:function(t,n){return eh(t)?eh(n)?s(e.concat(t.left,n.left)):t:eh(n)?n:m(t.right(n.right))},of:j}},W=function(e){return{URI:O,_E:void 0,map:y,alt:function(t,n){if(ey(t))return t;var r=n();return eh(r)?s(e.concat(t.left,r.left)):r}}},D=function(e){return function(t){return eh(t)?t:m(e(t.right))}},N={URI:O,map:y},A=(0,c.dual)(2,(0,f.as)(N)),U=(0,f.asUnit)(N),j=m,q={URI:O,of:j},G=function(e){return function(t){return eh(t)?t:eh(e)?e:m(t.right(e.right))}},Y=G,K={URI:O,map:y,ap:v},V={URI:O,map:y,ap:v,of:j},B={URI:O,map:y,ap:v,chain:h},H={URI:O,map:y,ap:v,of:j,chain:h},z=function(e,t){return function(n){return eh(n)?e:t(e,n.right)}},X=function(e){return function(t){return function(n){return eh(n)?e.empty:t(n.right)}}},$=function(e,t){return function(n){return eh(n)?e:t(n.right,e)}},J={URI:O,reduce:g,foldMap:_,reduceRight:b},Z=function(e){return function(t){return function(n){return eh(n)?e.of(s(n.left)):e.map(t(n.right),m)}}},Q=function(e){return function(t){return eh(t)?e.of(s(t.left)):e.map(t.right,m)}},ee={URI:O,map:y,reduce:g,foldMap:_,reduceRight:b,traverse:T,sequence:Q},et=function(e,t){return function(n){return eh(n)?s(e(n.left)):m(t(n.right))}},en=function(e){return function(t){return eh(t)?s(e(t.left)):t}},er={URI:O,bimap:S,mapLeft:I},ei=function(e){return function(t){return eh(t)?e():t}},eo=ei,eu={URI:O,map:y,alt:R},ea=function(e){return function(t){return eh(t)?t:m(e(t))}},ec={URI:O,map:y,extend:C},ef={URI:O,map:y,ap:v,chain:h,chainRec:x},el=s,ep={URI:O,map:y,ap:v,of:j,chain:h,throwError:el},ed={URI:O,fromEither:c.identity},es=(0,a.fromPredicate)(ed),em=(0,a.fromOption)(ed),eh=l.nM,ey=l.tO,ev=function(e,t){return function(n){return eh(n)?e(n.left):t(n.right)}},eg=ev,e_=ev,eb=e_,eT=function(e){return function(t){return eh(t)?e(t.left):t.right}},eS=eT,eI=(0,f.flap)(N),eR=(0,i.apFirst)(K),eC=eR,ex=(0,i.apSecond)(K),eO=ex,ew=(0,c.dual)(2,o.tap(B)),eM=h(c.identity),eE=eM,ek=ea(c.identity),eP=(0,a.fromOptionK)(ed),eF=(0,a.chainOptionK)(ed,B),eL=eF,eW={fromEither:ed.fromEither},eD=l.uL(eW),eN=l.WE(eW),eA={flatMap:h},eU=l.ny(eW,eA),ej=l.hU(eW,eA),eq=(0,a.filterOrElse)(ed,B),eG=eq,eY=function(e){return eh(e)?m(e.left):s(e.right)},eK=function(e){return function(t){return eh(t)?e(t.left):t}},eV=eK,eB=function(e){return function(t){return null==t?s(e):m(t)}},eH=function(e,t){try{return m(e())}catch(e){return s(t(e))}},ez=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return eH(function(){return e.apply(void 0,n)},t)}},eX=function(e){var t=eB(e);return function(e){return(0,c.flow)(e,t)}},e$=function(e){var t=eX(e);return function(e){return h(t(e))}},eJ=eg(c.identity,c.identity);function eZ(e){return e instanceof Error?e:Error(String(e))}var eQ=function(e){return function(t){return!eh(t)&&e(t.right)}},e0=j(l.F4),e1=(0,f.bindTo)(N),e2=(0,f.let)(N),e8=o.bind(B),e7=e8,e5=(0,i.apS)(K),e4=e5,e3=j(l.Xl),e9=function(e){return function(t){var n=e(0,l.YM(t));if(eh(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if(eh(o))return o;r.push(o.right)}return m(r)}},e6=function(e){var t=e9(e);return function(e){return l.Od(e)?t(e):e3}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(c.identity),tr=h,ti=h,to=ew,tu=ew;function ta(e,t){return eH(function(){return JSON.parse(e)},t)}var tc=function(e,t){return eH(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:O,map:y,of:j,ap:v,chain:h,reduce:g,foldMap:_,reduceRight:b,traverse:T,sequence:Q,bimap:S,mapLeft:I,alt:R,extend:C,chainRec:x,throwError:el},tl=(0,i.getApplySemigroup)(K),tp=(0,r.getApplicativeMonoid)(V),td=function(e,t){return(0,i.getApplySemigroup)(L(e))(t)},ts=function(e,t){return(0,r.getApplicativeMonoid)(L(e))(t)};function tm(e){return{URI:O,_E:void 0,map:y,of:j,chain:h,bimap:S,mapLeft:I,reduce:g,foldMap:_,reduceRight:b,extend:C,traverse:T,sequence:Q,chainRec:x,throwError:el,ap:L(e).ap,alt:W(e).alt}}},47797:function(e,t,n){n.r(t),n.d(t,{URI:function(){return i},getMonoid:function(){return u},getSemigroup:function(){return o}});var r=n(42275),i="Endomorphism",o=function(){return{concat:function(e,t){return(0,r.flow)(e,t)}}},u=function(){return{concat:o().concat,empty:r.identity}}},65191:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return v},eqBoolean:function(){return g},eqDate:function(){return T},eqNumber:function(){return b},eqStrict:function(){return f},eqString:function(){return _},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return h},getTupleEq:function(){return m},strictEqual:function(){return y},struct:function(){return o},tuple:function(){return u}});var r=n(42275),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},o=function(e){return i(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},a=function(e){return function(t){return i(function(n,r){return t.equals(e(n),e(r))})}},c="Eq",f={equals:function(e,t){return e===t}},l={equals:function(){return!0}},p=function(){return{concat:function(e,t){return i(function(n,r){return e.equals(n,r)&&t.equals(n,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(e,t){return(0,r.pipe)(e,a(t))}},m=u,h=o,y=f.equals,v=s,g=f,_=f,b=f,T={equals:function(e,t){return e.valueOf()===t.valueOf()}}},25162:function(e,t,n){n.r(t),n.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 u},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return m}});var r=n(88543),i=n(42275),o=n(97963);function u(e){return function(t){return function(n){return e.fromEither(o.Wi(n)?o.t$(t()):o.F2(n.value))}}}function a(e){return function(t,n){return function(r){return e.fromEither(t(r)?o.F2(r):o.t$(n(r)))}}}function c(e){var t=u(e);return function(e){var n=t(e);return function(e){return(0,i.flow)(e,n)}}}function f(e,t){var n=c(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}}function l(e){return function(t){return(0,i.flow)(t,e.fromEither)}}function p(e,t){var n=l(e);return function(e){return function(r){return t.chain(r,n(e))}}}function d(e,t){var n=m(e,t);return function(e){return function(t){return n(t,e)}}}function s(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?o.F2(t):o.t$(r(t)))})}}}function m(e,t){var n=l(e),i=(0,r.tap)(t);return function(e,t){return i(e,n(t))}}},67560:function(e,t,n){n.r(t),n.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return u},flap:function(){return o},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=n(42275);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}}function u(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}}function a(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}}function c(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}}function f(e){return function(t,n){return e.map(t,function(){return n})}}function l(e){var t=f(e);return function(e){return t(e,void 0)}}},76113:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return a},endo:function(){return u},filterFirst:function(){return i},filterSecond:function(){return o},reverse:function(){return r}});var r=function(e){return{concat:function(t,n){return e.concat(n,t)}}},i=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},o=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},u=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},a=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}}},55116:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return e_},Filterable:function(){return eb},Functor:function(){return ev},URI:function(){return et},collect:function(){return g},compact:function(){return H},deleteAt:function(){return S},difference:function(){return eR},elem:function(){return h},empty:function(){return eC},filter:function(){return z},filterMap:function(){return X},filterMapWithIndex:function(){return D},filterWithIndex:function(){return N},flap:function(){return eg},foldMap:function(){return ef},foldMapWithIndex:function(){return es},fromFoldable:function(){return P},getDifferenceMagma:function(){return eo},getEq:function(){return M},getFilterableWithIndex:function(){return eu},getFoldable:function(){return ep},getFoldableWithIndex:function(){return eh},getIntersectionSemigroup:function(){return ei},getMonoid:function(){return E},getShow:function(){return p},getTraversableWithIndex:function(){return ey},getUnionMonoid:function(){return er},getUnionSemigroup:function(){return en},getWitherable:function(){return ea},insertAt:function(){return ex},intersection:function(){return eI},isEmpty:function(){return s},isSubmap:function(){return w},keys:function(){return y},lookup:function(){return O},lookupWithKey:function(){return x},map:function(){return $},mapWithIndex:function(){return J},map_:function(){return eO},member:function(){return m},modifyAt:function(){return R},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return L},partitionWithIndex:function(){return W},pop:function(){return C},reduce:function(){return ec},reduceRight:function(){return el},reduceRightWithIndex:function(){return em},reduceWithIndex:function(){return ed},separate:function(){return ee},singleton:function(){return k},size:function(){return d},toArray:function(){return _},toUnfoldable:function(){return b},union:function(){return eS},updateAt:function(){return I},upsertAt:function(){return T},values:function(){return v}});var r=n(42275),i=n(67560),o=n(97963),u=n(20492),a=n(13512),c=n(34219),f=n(76511),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,m=a.member,h=a.elem,y=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},v=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function g(e){var t=y(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}function _(e){return g(e)(function(e,t){return[e,t]})}function b(e,t){var n=_(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?o.G([r[e],e+1]):o.YP})}}var T=function(e){var t=x(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(e,n),u}if(i.value[1]!==n){var u=new Map(t);return u.set(i.value[0],n),u}return t}}},S=function(e){var t=x(e);return function(e){return function(n){var r=t(e,n);if(o.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},I=function(e){var t=R(e);return function(e,n){return t(e,function(){return n})}},R=function(e){var t=x(e);return function(e,n){return function(r){var i=t(e,r);if(o.Wi(i))return o.YP;var u=new Map(r);return u.set(i.value[0],n(i.value[1])),o.G(u)}}};function C(e){var t=O(e),n=S(e);return function(e){var i=n(e);return function(n){return(0,r.pipe)(t(e,n),u.map(function(e){return[e,i(n)]}))}}}function x(e){return function(t,n){if(void 0===n){var r,i=x(e);return function(e){return i(t,e)}}for(var u=n.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return o.G([c,f])}return o.YP}}var O=a.lookup,w=a.isSubmap,M=a.getEq;function E(e,t){var n=x(e);return{concat:function(e,r){if(s(e))return r;if(s(r))return e;for(var i,u=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:new Map}}var k=function(e,t){return new Map([[e,t]])};function P(e,t,n){return function(r){var i=x(e);return n.reduce(r,new Map,function(e,n){var r=n[0],u=n[1],a=i(r,e);return o.pC(a)?e.set(a.value[0],t.concat(a.value[1],u)):e.set(r,u),e})}}var F=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},L=function(e){return function(t){for(var n,r=new Map,i=new Map,u=t.entries();!(n=u.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function W(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var D=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,a=u[0],c=e(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function N(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var A=function(e,t){return F(e,function(e,n){return t(n)})},U=function(e,t){return Y(e,function(e,n){return t(n)})},j=function(e,t){return K(e,function(e,n){return t(n)})},q=function(e,t){return V(e,function(e,n){return t(n)})},G=function(e,t){return B(e,function(e,n){return t(n)})},Y=function(e,t){return(0,r.pipe)(e,N(t))},K=function(e,t){return(0,r.pipe)(e,D(t))},V=function(e,t){return(0,r.pipe)(e,W(t))},B=function(e,t){return(0,r.pipe)(e,L(t))},H=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&n.set(u,a.value)}return n},z=function(e){return function(t){return U(t,e)}},X=function(e){return function(t){return j(t,e)}},$=function(e){return function(t){return A(t,e)}},J=function(e){return function(t){return F(t,e)}},Z=function(e){return function(t){return q(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},et="Map",en=function(e,t){var n=eS(e,t);return{concat:function(e,t){return n(t)(e)}}},er=function(e,t){return{concat:en(e,t).concat,empty:new Map}},ei=function(e,t){var n=eI(e,t);return{concat:function(e,t){return n(t)(e)}}},eo=function(e){return function(){var t=eR(e);return{concat:function(e,n){return t(n)(e)}}}};function eu(){return{URI:et,_E:void 0,map:A,mapWithIndex:F,compact:H,separate:ee,filter:U,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:B,partitionWithIndex:V,filterMapWithIndex:K,filterWithIndex:Y}}function ea(e){var t=ey(e);return{URI:et,_E:void 0,map:A,compact:H,separate:ee,filter:U,filterMap:j,partition:q,partitionMap:G,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,e_),wither:(0,f.witherDefault)(t,e_)}}var ec=a.reduce,ef=a.foldMap,el=a.reduceRight,ep=function(e){return l(l({},a.getFoldable(e)),{URI:et})},ed=a.reduceWithIndex,es=a.foldMapWithIndex,em=a.reduceRightWithIndex,eh=function(e){return l(l({},a.getFoldableWithIndex(e)),{URI:et})},ey=function(e){var t=eh(e),n=y(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}};return{URI:et,_E:void 0,map:A,mapWithIndex:F,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},sequence:function(e){var t=r(e);return function(e){return t(e,function(e,t){return t})}},traverseWithIndex:r}},ev={URI:et,map:A},eg=(0,i.flap)(ev),e_={URI:et,compact:H,separate:ee},eb={URI:et,map:A,compact:H,separate:ee,filter:U,filterMap:j,partition:q,partitionMap:G},eT=function(e){return new Map(e)},eS=function(e,t){var n=a.union(e,t);return function(e){return function(t){return s(t)?eT(e):s(e)?eT(t):n(e)(t)}}},eI=function(e,t){var n=a.intersection(e,t);return function(e){return function(t){return s(t)||s(e)?new Map:n(e)(t)}}},eR=function(e){var t=a.difference(e);return function(e){return function(n){return s(n)?eT(e):s(e)?eT(n):t(e)(n)}}},eC=new Map,ex=T,eO=eb},96576:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return d},fold:function(){return _},getDualMonoid:function(){return y},getEndomorphismMonoid:function(){return I},getFunctionMonoid:function(){return S},getJoinMonoid:function(){return v},getMeetMonoid:function(){return g},getStructMonoid:function(){return h},getTupleMonoid:function(){return m},max:function(){return c},min:function(){return a},monoidAll:function(){return b},monoidAny:function(){return T},monoidProduct:function(){return x},monoidString:function(){return R},monoidSum:function(){return C},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=n(47797),i=n(42275),o=n(97963),u=n(3291),a=function(e){return{concat:u.min(e).concat,empty:e.top}},c=function(e){return{concat:u.max(e).concat,empty:e.bottom}},f=function(e){return{concat:u.reverse(e).concat,empty:e.empty}},l=function(e){var t={};for(var n in e)o.e$.call(e,n)&&(t[n]=e[n].empty);return{concat:u.struct(e).concat,empty:t}},p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:u.tuple.apply(u,e).concat,empty:e.map(function(e){return e.empty})}},d=function(e){return u.concatAll(e)(e.empty)},s={concat:u.semigroupVoid.concat,empty:void 0},m=p,h=l,y=f,v=c,g=a,_=d,b={concat:u.semigroupAll.concat,empty:!0},T={concat:u.semigroupAny.concat,empty:!1},S=i.getMonoid,I=function(){return f((0,r.getMonoid)())},R={concat:u.semigroupString.concat,empty:""},C={concat:u.semigroupSum.concat,empty:0},x={concat:u.semigroupProduct.concat,empty:1}},43586:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eH},Applicative:function(){return eU},Apply:function(){return eD},Chain:function(){return ej},Comonad:function(){return ez},Do:function(){return eX},Foldable:function(){return eY},FoldableWithIndex:function(){return eK},Functor:function(){return eP},FunctorWithIndex:function(){return eW},Monad:function(){return eG},Pointed:function(){return eL},Traversable:function(){return eV},TraversableWithIndex:function(){return eB},URI:function(){return eO},alt:function(){return ep},altW:function(){return el},ap:function(){return ed},apFirst:function(){return eN},apS:function(){return eQ},apSecond:function(){return eA},append:function(){return y},appendW:function(){return h},bind:function(){return eZ},bindTo:function(){return e$},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return H},chop:function(){return z},chunksOf:function(){return $},concat:function(){return k},concatAll:function(){return e4},concatW:function(){return E},cons:function(){return tl},copy:function(){return U},duplicate:function(){return eh},extend:function(){return em},extract:function(){return ex},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eF},flatMap:function(){return es},flatten:function(){return ey},fold:function(){return ts},foldMap:function(){return B},foldMapWithIndex:function(){return V},fromArray:function(){return R},fromReadonlyNonEmptyArray:function(){return I},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return ew},getUnionSemigroup:function(){return ek},group:function(){return F},groupBy:function(){return L},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return D},intercalate:function(){return tr},intersperse:function(){return K},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return e2},let:function(){return eJ},makeBy:function(){return C},map:function(){return ev},mapWithIndex:function(){return eg},matchLeft:function(){return e3},matchRight:function(){return e9},max:function(){return e5},min:function(){return e7},modifyAt:function(){return A},modifyHead:function(){return e6},modifyLast:function(){return tt},nonEmptyArray:function(){return tm},of:function(){return j},prepend:function(){return m},prependAll:function(){return Y},prependToAll:function(){return td},prependW:function(){return s},range:function(){return O},reduce:function(){return e_},reduceRight:function(){return eT},reduceRightWithIndex:function(){return eS},reduceWithIndex:function(){return eb},replicate:function(){return x},reverse:function(){return P},rotate:function(){return S},sequence:function(){return eR},snoc:function(){return tp},sort:function(){return W},sortBy:function(){return b},splitAt:function(){return X},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return eC},unappend:function(){return M},uncons:function(){return tc},union:function(){return T},uniq:function(){return _},unprepend:function(){return w},unsafeInsertAt:function(){return v},unsafeUpdateAt:function(){return g},unsnoc:function(){return tf},unzip:function(){return G},updateAt:function(){return N},updateHead:function(){return te},updateLast:function(){return tn},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:q(t,n,function(e,t){return[e,t]})}},zipWith:function(){return q}});var r=n(42925),i=n(88543),o=n(42275),u=n(67560),a=n(97963),c=n(5586),f=n(28350),l=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},p=function(e){return e.length>0},d=function(e,t){return e<0||e>=t.length},s=function(e){return function(t){return l([e],t,!0)}},m=s,h=function(e){return function(t){return l(l([],t,!0),[e],!1)}},y=h,v=function(e,t,n){if(p(n)){var r=I(n);return r.splice(e,0,t),r}return[t]},g=function(e,t,n){var r=I(n);return r[e]=t,r},_=function(e){return function(t){if(1===t.length)return U(t);for(var n=[e0(t)],r=e1(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},b=function(e){if(p(e)){var t=(0,c.getMonoid)();return W(e.reduce(t.concat,t.empty))}return U},T=function(e){var t=_(e);return function(e){return function(n){return t((0,o.pipe)(n,k(e)))}}},S=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(d(Math.abs(r),t)||0===r)return U(t);if(!(r<0))return S(r-n)(t);var i=X(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,k(u))}},I=a.r1,R=function(e){return p(e)?a.G(e):a.YP},C=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},x=function(e){return C(function(){return e})},O=function(e,t){return e<=t?C(function(t){return e+t})(t-e+1):[e]},w=function(e){return[e0(e),e1(e)]},M=function(e){return[e8(e),e2(e)]};function E(e){return function(t){return t.concat(e)}}function k(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var P=function(e){return l([e2(e)],e.slice(0,-1).reverse(),!0)};function F(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var L=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);a.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},W=function(e){return function(t){return t.slice().sort(e.compare)}},D=function(e,t){return function(n){return e<0||e>n.length?a.YP:a.G(v(e,t,n))}},N=function(e,t){return A(e,function(){return t})},A=function(e,t){return function(n){return d(e,n)?a.YP:a.G(g(e,t(n[e]),n))}},U=I,j=function(e){return[e]},q=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},G=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},Y=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},K=function(e){return function(t){var n=e1(t);return p(n)?(0,o.pipe)(n,Y(e),m(e0(t))):U(t)}},V=f.foldMapWithIndex,B=f.foldMap,H=function(e){return function(t){for(var n=I(e(0,e0(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},z=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;p(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},X=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[U(t),[]]:[(0,o.pipe)(t.slice(1,n),m(e0(t))),t.slice(n)]}},$=function(e){return z(X(e))},J=function(e,t){return(0,o.pipe)(e,ev(t))},Z=function(e,t){return(0,o.pipe)(e,eg(t))},Q=function(e,t){return(0,o.pipe)(e,ed(t))},ee=function(e,t){return(0,o.pipe)(e,em(t))},et=function(e,t,n){return(0,o.pipe)(e,e_(t,n))},en=function(e){var t=B(e);return function(e,n){return(0,o.pipe)(e,t(n))}},er=function(e,t,n){return(0,o.pipe)(e,eT(t,n))},ei=function(e){var t=eI(e);return function(e,n){return(0,o.pipe)(e,t(n))}},eo=function(e,t){return(0,o.pipe)(e,ep(t))},eu=function(e,t,n){return(0,o.pipe)(e,eb(t,n))},ea=function(e){var t=V(e);return function(e,n){return(0,o.pipe)(e,t(n))}},ec=function(e,t,n){return(0,o.pipe)(e,eS(t,n))},ef=function(e){var t=eC(e);return function(e,n){return(0,o.pipe)(e,t(n))}},el=function(e){return function(t){return(0,o.pipe)(t,E(e()))}},ep=el,ed=function(e){return es(function(t){return(0,o.pipe)(e,ev(t))})},es=(0,o.dual)(2,function(e,t){return(0,o.pipe)(e,H(function(e,n){return t(n,e)}))}),em=function(e){return function(t){for(var n=e1(t),r=[e(t)];p(n);)r.push(e(n)),n=e1(n);return r}},eh=em(o.identity),ey=es(o.identity),ev=function(e){return eg(function(t,n){return e(n)})},eg=function(e){return function(t){for(var n=[e(0,e0(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},e_=f.reduce,eb=f.reduceWithIndex,eT=f.reduceRight,eS=f.reduceRightWithIndex,eI=function(e){var t=eC(e);return function(e){return t(function(t,n){return e(n)})}},eR=function(e){return eC(e)(function(e,t){return t})},eC=function(e){return function(t){return function(n){for(var r=e.map(t(0,e0(n)),j),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,o.pipe)(e,y(t))}}),t(i,n[i]));return r}}},ex=f.head,eO="NonEmptyArray",ew=f.getShow,eM=function(){return{concat:k}},eE=f.getEq,ek=function(e){var t=T(e);return{concat:function(e,n){return t(n)(e)}}},eP={URI:eO,map:J},eF=(0,u.flap)(eP),eL={URI:eO,of:j},eW={URI:eO,map:J,mapWithIndex:Z},eD={URI:eO,map:J,ap:Q},eN=(0,r.apFirst)(eD),eA=(0,r.apSecond)(eD),eU={URI:eO,map:J,ap:Q,of:j},ej={URI:eO,map:J,ap:Q,chain:es},eq=(0,i.chainFirst)(ej),eG={URI:eO,map:J,ap:Q,of:j,chain:es},eY={URI:eO,reduce:et,foldMap:en,reduceRight:er},eK={URI:eO,reduce:et,foldMap:en,reduceRight:er,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec},eV={URI:eO,map:J,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR},eB={URI:eO,map:J,mapWithIndex:Z,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef},eH={URI:eO,map:J,alt:eo},ez={URI:eO,map:J,extend:ee,extract:ex},eX=j(a.F4),e$=(0,u.bindTo)(eP),eJ=(0,u.let)(eP),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eD),e0=f.head,e1=function(e){return e.slice(1)},e2=f.last,e8=function(e){return e.slice(0,-1)},e7=f.min,e5=f.max,e4=function(e){return function(t){return t.reduce(e.concat)}},e3=function(e){return function(t){return e(e0(t),e1(t))}},e9=function(e){return function(t){return e(e8(t),e2(t))}},e6=function(e){return function(t){return l([e(e0(t))],e1(t),!0)}},te=function(e){return e6(function(){return e})},tt=function(e){return function(t){return(0,o.pipe)(e8(t),y(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=f.intercalate,ti=es;function to(e){var t=W(e),n=F(e);return function(e){return p(e)?n(t(e)):[]}}function tu(e){return ta(function(t,n){return e(n)})}var ta=function(e){return function(t){return R(t.filter(function(t,n){return e(n,t)}))}},tc=w,tf=M;function tl(e,t){return void 0===t?m(e):(0,o.pipe)(t,m(e))}var tp=function(e,t){return(0,o.pipe)(e,y(t))},td=Y,ts=f.concatAll,tm={URI:eO,of:j,map:J,mapWithIndex:Z,ap:Q,chain:es,extend:ee,extract:ex,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:eR,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef,alt:eo}},20492:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return en},Alternative:function(){return eu},ApT:function(){return e3},Applicative:function(){return V},Apply:function(){return K},Chain:function(){return H},Compactable:function(){return ed},Do:function(){return e2},Extend:function(){return ec},Filterable:function(){return ev},Foldable:function(){return Z},FromEither:function(){return eM},Functor:function(){return A},Monad:function(){return z},MonadThrow:function(){return eO},Pointed:function(){return G},Traversable:function(){return eb},URI:function(){return P},Witherable:function(){return eC},Zero:function(){return ei},alt:function(){return et},altW:function(){return ee},ap:function(){return Y},apFirst:function(){return eU},apS:function(){return e4},apSecond:function(){return ej},as:function(){return U},asUnit:function(){return j},bind:function(){return e5},bindTo:function(){return e8},chain:function(){return tr},chainEitherK:function(){return eB},chainFirst:function(){return ti},chainFirstEitherK:function(){return eH},chainNullableK:function(){return eZ},compact:function(){return ef},duplicate:function(){return eK},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!ek(r)&&t.equals(n,r.value)}}},exists:function(){return e1},extend:function(){return ea},filter:function(){return es},filterMap:function(){return em},flap:function(){return eA},flatMap:function(){return B},flatten:function(){return eq},fold:function(){return eW},foldMap:function(){return $},foldW:function(){return eF},fromEither:function(){return ew},fromEitherK:function(){return eV},fromNullable:function(){return ez},fromNullableK:function(){return eJ},fromPredicate:function(){return v},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return L},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return g},getMonoid:function(){return D},getOrElse:function(){return eN},getOrElseW:function(){return eD},getOrd:function(){return W},getRefinement:function(){return to},getRight:function(){return _},getShow:function(){return F},guard:function(){return eo},isNone:function(){return ek},isSome:function(){return eE},let:function(){return e7},map:function(){return N},mapNullable:function(){return tu},match:function(){return eL},matchW:function(){return eP},none:function(){return h},of:function(){return q},option:function(){return ta},orElse:function(){return Q},partition:function(){return eh},partitionMap:function(){return ey},reduce:function(){return X},reduceRight:function(){return J},separate:function(){return ep},sequence:function(){return e_},sequenceArray:function(){return tn},some:function(){return y},tap:function(){return eG},tapEither:function(){return eY},throwError:function(){return ex},toNullable:function(){return eQ},toUndefined:function(){return e0},traverse:function(){return eg},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return eX},tryCatchK:function(){return e$},wilt:function(){return eR},wither:function(){return eI},zero:function(){return er}});var r=n(46111),i=n(42925),o=n(88543),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(88491),p=n(3291),d=n(34219),s=n(76511),m=n(28957),h=f.YP,y=f.G;function v(e){return function(t){return e(t)?y(t):h}}var g=function(e){return"Right"===e._tag?h:y(e.left)},_=function(e){return"Left"===e._tag?h:y(e.right)},b=function(e,t){return(0,a.pipe)(e,N(t))},T=function(e,t){return(0,a.pipe)(e,Y(t))},S=function(e,t,n){return(0,a.pipe)(e,X(t,n))},I=function(e){var t=$(e);return function(e,n){return(0,a.pipe)(e,t(n))}},R=function(e,t,n){return(0,a.pipe)(e,J(t,n))},C=function(e){var t=eg(e);return function(e,n){return(0,a.pipe)(e,t(n))}},x=function(e,t){return(0,a.pipe)(e,et(t))},O=function(e,t){return(0,a.pipe)(e,es(t))},w=function(e,t){return(0,a.pipe)(e,em(t))},M=function(e,t){return(0,a.pipe)(e,ea(t))},E=function(e,t){return(0,a.pipe)(e,eh(t))},k=function(e,t){return(0,a.pipe)(e,ey(t))},P="Option",F=function(e){return{show:function(t){return ek(t)?"none":"some(".concat(e.show(t.value),")")}}},L=function(e){return{equals:function(t,n){return t===n||(ek(t)?ek(n):!ek(n)&&e.equals(t.value,n.value))}}},W=function(e){return{equals:L(e).equals,compare:function(t,n){return t===n?0:eE(t)?eE(n)?e.compare(t.value,n.value):1:-1}}},D=function(e){return{concat:function(t,n){return ek(t)?n:ek(n)?t:y(e.concat(t.value,n.value))},empty:h}},N=function(e){return function(t){return ek(t)?h:y(e(t.value))}},A={URI:P,map:b},U=(0,a.dual)(2,(0,c.as)(A)),j=(0,c.asUnit)(A),q=y,G={URI:P,of:q},Y=function(e){return function(t){return ek(t)?h:ek(e)?h:y(t.value(e.value))}},K={URI:P,map:b,ap:T},V={URI:P,map:b,ap:T,of:q},B=(0,a.dual)(2,function(e,t){return ek(e)?h:t(e.value)}),H={URI:P,map:b,ap:T,chain:B},z={URI:P,map:b,ap:T,of:q,chain:B},X=function(e,t){return function(n){return ek(n)?e:t(e,n.value)}},$=function(e){return function(t){return function(n){return ek(n)?e.empty:t(n.value)}}},J=function(e,t){return function(n){return ek(n)?e:t(n.value,e)}},Z={URI:P,reduce:S,foldMap:I,reduceRight:R},Q=(0,a.dual)(2,function(e,t){return ek(e)?t():e}),ee=Q,et=Q,en={URI:P,map:b,alt:x},er=function(){return h},ei={URI:P,zero:er},eo=(0,m.guard)(ei,G),eu={URI:P,map:b,ap:T,of:q,alt:x,zero:er},ea=function(e){return function(t){return ek(t)?h:y(e(t))}},ec={URI:P,map:b,extend:M},ef=B(a.identity),el=(0,d.separated)(h,h),ep=function(e){return ek(e)?el:(0,d.separated)(g(e.value),_(e.value))},ed={URI:P,compact:ef,separate:ep},es=function(e){return function(t){return ek(t)?h:e(t.value)?t:h}},em=function(e){return function(t){return ek(t)?h:e(t.value)}},eh=function(e){return function(t){return(0,d.separated)(O(t,(0,l.not)(e)),O(t,e))}},ey=function(e){return(0,a.flow)(N(e),ep)},ev={URI:P,map:b,compact:ef,separate:ep,filter:O,filterMap:w,partition:E,partitionMap:k},eg=function(e){return function(t){return function(n){return ek(n)?e.of(h):e.map(t(n.value),y)}}},e_=function(e){return function(t){return ek(t)?e.of(h):e.map(t.value,y)}},eb={URI:P,map:b,reduce:S,foldMap:I,reduceRight:R,traverse:C,sequence:e_},eT=(0,s.witherDefault)(eb,ed),eS=(0,s.wiltDefault)(eb,ed),eI=function(e){var t=eT(e);return function(e){return function(n){return t(n,e)}}},eR=function(e){var t=eS(e);return function(e){return function(n){return t(n,e)}}},eC={URI:P,map:b,reduce:S,foldMap:I,reduceRight:R,traverse:C,sequence:e_,compact:ef,separate:ep,filter:O,filterMap:w,partition:E,partitionMap:k,wither:eT,wilt:eS},ex=function(){return h},eO={URI:P,map:b,ap:T,of:q,chain:B,throwError:ex},ew=_,eM={URI:P,fromEither:ew},eE=f.pC,ek=function(e){return"None"===e._tag},eP=function(e,t){return function(n){return ek(n)?e():t(n.value)}},eF=eP,eL=eP,eW=eL,eD=function(e){return function(t){return ek(t)?e():t.value}},eN=eD,eA=(0,c.flap)(A),eU=(0,i.apFirst)(K),ej=(0,i.apSecond)(K),eq=ef,eG=(0,a.dual)(2,o.tap(H)),eY=(0,a.dual)(2,(0,u.tapEither)(eM,H)),eK=ea(a.identity),eV=(0,u.fromEitherK)(eM),eB=(0,u.chainEitherK)(eM,H),eH=eY,ez=function(e){return null==e?h:y(e)},eX=function(e){try{return y(e())}catch(e){return h}},e$=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return eX(function(){return e.apply(void 0,t)})}},eJ=function(e){return(0,a.flow)(e,ez)},eZ=function(e){return function(t){return ek(t)?h:ez(e(t.value))}},eQ=eL(a.constNull,a.identity),e0=eL(a.constUndefined,a.identity),e1=function(e){return function(t){return!ek(t)&&e(t.value)}},e2=q(f.F4),e8=(0,c.bindTo)(A),e7=(0,c.let)(A),e5=o.bind(H),e4=(0,i.apS)(K),e3=q(f.Xl),e9=function(e){return function(t){var n=e(0,f.YM(t));if(ek(n))return h;for(var r=[n.value],i=1;i<t.length;i++){var o=e(i,t[i]);if(ek(o))return h;r.push(o.value)}return y(r)}},e6=function(e){var t=e9(e);return function(e){return f.Od(e)?t(e):e3}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(a.identity),tr=B,ti=eG;function to(e){return function(t){return eE(e(t))}}var tu=eZ,ta={URI:P,map:b,of:q,ap:T,chain:B,reduce:S,foldMap:I,reduceRight:R,traverse:C,sequence:e_,zero:er,alt:x,extend:M,compact:ef,separate:ep,filter:O,filterMap:w,partition:E,partitionMap:k,wither:eT,wilt:eS,throwError:ex},tc=(0,i.getApplySemigroup)(K),tf=(0,r.getApplicativeMonoid)(V),tl=function(){return D((0,p.first)())},tp=function(){return D((0,p.last)())}},5586:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return I},clamp:function(){return S},contramap:function(){return f},equals:function(){return h},equalsDefault:function(){return o},fromCompare:function(){return u},geq:function(){return _},getDualOrd:function(){return C},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return R},gt:function(){return v},leq:function(){return g},lt:function(){return y},max:function(){return T},min:function(){return b},ord:function(){return x},ordBoolean:function(){return w},ordDate:function(){return k},ordNumber:function(){return E},ordString:function(){return M},reverse:function(){return c},trivial:function(){return m},tuple:function(){return a}});var r=n(65191),i=n(42275),o=function(e){return function(t,n){return t===n||0===e(t,n)}},u=function(e){return{equals:o(e),compare:function(t,n){return t===n?0:e(t,n)}}},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},c=function(e){return u(function(t,n){return e.compare(n,t)})},f=function(e){return function(t){return u(function(n,r){return t.compare(e(n),e(r))})}},l="Ord",p=function(){return{concat:function(e,t){return u(function(n,r){var i=e.compare(n,r);return 0!==i?i:t.compare(n,r)})}}},d=function(){return{concat:p().concat,empty:u(function(){return 0})}},s={URI:l,contramap:function(e,t){return(0,i.pipe)(e,f(t))}},m={equals:i.constTrue,compare:(0,i.constant)(0)},h=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},y=function(e){return function(t,n){return -1===e.compare(t,n)}},v=function(e){return function(t,n){return 1===e.compare(t,n)}},g=function(e){return function(t,n){return 1!==e.compare(t,n)}},_=function(e){return function(t,n){return -1!==e.compare(t,n)}},b=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},T=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},S=function(e){var t=b(e),n=T(e);return function(e,r){return function(i){return n(t(i,r),e)}}},I=function(e){var t=y(e),n=v(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},R=a,C=c,x=s,O={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},w=O,M=O,E=O,k=(0,i.pipe)(E,f(function(e){return e.valueOf()}))},88491:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return l},URI:function(){return o},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return u},not:function(){return p},or:function(){return d}});var r=n(42275),i=function(e){return function(t){return(0,r.flow)(e,t)}},o="Predicate",u=function(){return{concat:function(e,t){return(0,r.pipe)(e,d(t))}}},a=function(){return{concat:u().concat,empty:r.constFalse}},c=function(){return{concat:function(e,t){return(0,r.pipe)(e,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:o,contramap:function(e,t){return(0,r.pipe)(e,i(t))}},p=function(e){return function(t){return!e(t)}},d=function(e){return function(t){return function(n){return t(n)||e(n)}}},s=function(e){return function(t){return function(n){return t(n)&&e(n)}}}},31583:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tV},Alternative:function(){return tz},Applicative:function(){return tj},Apply:function(){return tN},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t4},ChainRecDepthFirst:function(){return t7},Compactable:function(){return t$},Do:function(){return ns},Extend:function(){return tX},Filterable:function(){return tJ},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return nt},Functor:function(){return tF},FunctorWithIndex:function(){return tD},Monad:function(){return tG},Pointed:function(){return tW},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tI},Unfoldable:function(){return tK},Witherable:function(){return t6},Zero:function(){return tB},_chainRecBreadthFirst:function(){return eQ},_chainRecDepthFirst:function(){return eZ},alt:function(){return e8},altW:function(){return e2},ap:function(){return e7},apFirst:function(){return tA},apS:function(){return nv},apSecond:function(){return tU},append:function(){return T},appendW:function(){return S},bind:function(){return ny},bindTo:function(){return nm},chain:function(){return ng},chainFirst:function(){return tY},chainRecBreadthFirst:function(){return t5},chainRecDepthFirst:function(){return t8},chainWithIndex:function(){return D},chop:function(){return eT},chunksOf:function(){return eI},compact:function(){return tr},comprehension:function(){return eC},concat:function(){return eO},concatW:function(){return ex},cons:function(){return nb},deleteAt:function(){return ea},difference:function(){return eE},dropLeft:function(){return $},dropLeftWhile:function(){return Z},dropRight:function(){return J},duplicate:function(){return tl},elem:function(){return eg},empty:function(){return nc},every:function(){return nf},exists:function(){return np},extend:function(){return tf},filter:function(){return te},filterE:function(){return ne},filterMap:function(){return tn},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return tc},findFirst:function(){return ee},findFirstMap:function(){return et},findIndex:function(){return Q},findLast:function(){return en},findLastIndex:function(){return ei},findLastMap:function(){return er},flap:function(){return tL},flatMap:function(){return e5},flatten:function(){return e4},foldLeft:function(){return P},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return W},fromArray:function(){return na},fromEither:function(){return O},fromEitherK:function(){return nn},fromOption:function(){return x},fromOptionK:function(){return eR},fromPredicate:function(){return C},getDifferenceMagma:function(){return tP},getEq:function(){return tO},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tx},getOrd:function(){return tw},getSemigroup:function(){return tC},getShow:function(){return tR},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tM},guard:function(){return tH},head:function(){return q},init:function(){return K},insertAt:function(){return eo},intercalate:function(){return nd},intersection:function(){return eM},intersperse:function(){return ey},isEmpty:function(){return v},isNonEmpty:function(){return g},isOutOfBound:function(){return j},last:function(){return G},lefts:function(){return ep},let:function(){return nh},lookup:function(){return function e(t,n){return void 0===n?function(n){return e(t,n)}:j(t,n)?f.YP:f.G(n[t])}},makeBy:function(){return I},map:function(){return e3},mapWithIndex:function(){return e9},match:function(){return M},matchLeft:function(){return k},matchLeftW:function(){return E},matchRight:function(){return L},matchRightW:function(){return F},matchW:function(){return w},modifyAt:function(){return ec},of:function(){return e0},partition:function(){return ti},partitionMap:function(){return tu},partitionMapWithIndex:function(){return ta},partitionWithIndex:function(){return to},prepend:function(){return _},prependAll:function(){return eh},prependToAll:function(){return nS},prependW:function(){return b},range:function(){return n_},readonlyArray:function(){return nI},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return ty},reduceWithIndex:function(){return tm},replicate:function(){return R},reverse:function(){return ef},rights:function(){return el},rotate:function(){return ev},scanLeft:function(){return N},scanRight:function(){return A},separate:function(){return e6},sequence:function(){return tg},size:function(){return U},snoc:function(){return nT},some:function(){return nl},sort:function(){return ed},sortBy:function(){return eb},spanLeft:function(){return X},splitAt:function(){return eS},tail:function(){return Y},takeLeft:function(){return V},takeLeftWhile:function(){return H},takeRight:function(){return B},toArray:function(){return nu},traverse:function(){return tv},traverseWithIndex:function(){return t_},unfold:function(){return tS},union:function(){return ew},uniq:function(){return e_},unsafeDeleteAt:function(){return no},unsafeInsertAt:function(){return nr},unsafeUpdateAt:function(){return ni},unzip:function(){return em},updateAt:function(){return eu},wilt:function(){return tT},wither:function(){return tb},zero:function(){return e1},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:es(t,n,function(e,t){return[e,t]})}},zipWith:function(){return es}});var r=n(42925),i=n(88543),o=n(65191),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(76627),p=n(5586),d=n(28350),s=n(34219),m=n(76511),h=n(28957),y=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},v=function(e){return 0===e.length},g=d.isNonEmpty,_=d.prepend,b=d.prependW,T=d.append,S=d.appendW,I=function(e,t){return e<=0?nc:d.makeBy(t)(e)},R=function(e,t){return I(e,function(){return t})};function C(e){return function(t){return e(t)?[t]:nc}}var x=function(e){return f.Wi(e)?nc:[e.value]},O=function(e){return f.nM(e)?nc:[e.right]},w=function(e,t){return function(n){return g(n)?t(n):e()}},M=w,E=function(e,t){return function(n){return g(n)?t(d.head(n),d.tail(n)):e()}},k=E,P=k,F=function(e,t){return function(n){return g(n)?t(d.init(n),d.last(n)):e()}},L=F,W=L,D=function(e){return function(t){if(v(t))return nc;for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},N=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},A=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},U=function(e){return e.length},j=d.isOutOfBound,q=function(e){return g(e)?f.G(d.head(e)):f.YP},G=function(e){return g(e)?f.G(d.last(e)):f.YP},Y=function(e){return g(e)?f.G(d.tail(e)):f.YP},K=function(e){return g(e)?f.G(d.init(e)):f.YP},V=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(0,e)}},B=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(-e)}};function H(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}var o=n.length;return o===t.length?t:0===o?nc:n}}var z=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function X(e){return function(t){var n=eS(z(t,e))(t);return{init:n[0],rest:n[1]}}}var $=function(e){return function(t){return e<=0||v(t)?t:e>=t.length?nc:t.slice(e,t.length)}},J=function(e){return function(t){return e<=0||v(t)?t:e>=t.length?nc:t.slice(0,t.length-e)}};function Z(e){return function(t){var n=z(t,e);return 0===n?t:n===t.length?nc:t.slice(n)}}var Q=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(n);return f.YP}};function ee(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(t[n]);return f.YP}}var et=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(f.pC(r))return r}return f.YP}};function en(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(t[n]);return f.YP}}var er=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(f.pC(r))return r}return f.YP}},ei=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(n);return f.YP}},eo=function(e,t){return function(n){return e<0||e>n.length?f.YP:f.G(d.unsafeInsertAt(e,t,n))}},eu=function(e,t){return ec(e,function(){return t})},ea=function(e){return function(t){return j(e,t)?f.YP:f.G(no(e,t))}},ec=function(e,t){return function(n){return j(e,n)?f.YP:f.G(ni(e,t(n[e]),n))}},ef=function(e){return e.length<=1?e:e.slice().reverse()},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},ep=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ed=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},es=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},em=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},eh=function(e){var t=d.prependAll(e);return function(e){return g(e)?t(e):e}},ey=function(e){var t=d.intersperse(e);return function(e){return g(e)?t(e):e}},ev=function(e){var t=d.rotate(e);return function(e){return g(e)?t(e):e}};function eg(e){return function(t,n){if(void 0===n){var r,i=eg(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}var e_=function(e){var t=d.uniq(e);return function(e){return g(e)?t(e):e}},eb=function(e){var t=d.sortBy(e);return function(e){return g(e)?t(e):e}},eT=function(e){var t=d.chop(e);return function(e){return g(e)?t(e):nc}},eS=function(e){return function(t){return e>=1&&g(t)?d.splitAt(e)(t):v(t)?[t,nc]:[nc,t]}},eI=function(e){var t=d.chunksOf(e);return function(e){return g(e)?t(e):nc}},eR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return x(e.apply(void 0,t))}};function eC(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return g(i)?e5(d.head(i),function(t){return r((0,a.pipe)(e,T(t)),d.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:nc};return r(nc,e)}var ex=function(e){return function(t){return v(t)?e:v(e)?t:t.concat(e)}},eO=ex;function ew(e){var t=d.union(e);return function(n,r){if(void 0===r){var i=ew(e);return function(e){return i(e,n)}}return g(n)&&g(r)?t(r)(n):g(n)?n:r}}function eM(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eE(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eE(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var ek=function(e,t){return(0,a.pipe)(e,e3(t))},eP=function(e,t){return(0,a.pipe)(e,e9(t))},eF=function(e,t){return(0,a.pipe)(e,e7(t))},eL=function(e,t){return(0,a.pipe)(e,te(t))},eW=function(e,t){return(0,a.pipe)(e,tn(t))},eD=function(e,t){return(0,a.pipe)(e,ti(t))},eN=function(e,t){return(0,a.pipe)(e,tu(t))},eA=function(e,t){return(0,a.pipe)(e,to(t))},eU=function(e,t){return(0,a.pipe)(e,ta(t))},ej=function(e,t){return(0,a.pipe)(e,e8(t))},eq=function(e,t,n){return(0,a.pipe)(e,td(t,n))},eG=function(e){var t=ts(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eY=function(e,t,n){return(0,a.pipe)(e,th(t,n))},eK=function(e,t,n){return(0,a.pipe)(e,tm(t,n))},eV=function(e){var t=tp(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eB=function(e,t,n){return(0,a.pipe)(e,ty(t,n))},eH=function(e,t){return(0,a.pipe)(e,tt(t))},ez=function(e,t){return(0,a.pipe)(e,tc(t))},eX=function(e,t){return(0,a.pipe)(e,tf(t))},e$=function(e){var t=tv(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eJ=function(e){var t=t_(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eZ=function(e,t){return(0,a.pipe)(e,t8(t))},eQ=function(e,t){return(0,a.pipe)(e,t5(t))},e0=d.of,e1=function(){return nc},e2=function(e){return function(t){return t.concat(e())}},e8=e2,e7=function(e){return e5(function(t){return(0,a.pipe)(e,e3(t))})},e5=(0,a.dual)(2,function(e,t){return(0,a.pipe)(e,D(function(e,n){return t(n,e)}))}),e4=e5(a.identity),e3=function(e){return function(t){return t.map(function(t){return e(t)})}},e9=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e6=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,s.separated)(t,n)},te=function(e){return function(t){return t.filter(e)}},tt=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);f.pC(i)&&n.push(i.value)}return n}},tn=function(e){return tt(function(t,n){return e(n)})},tr=tn(a.identity),ti=function(e){return to(function(t,n){return e(n)})},to=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,s.separated)(n,r)}},tu=function(e){return ta(function(t,n){return e(n)})},ta=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,s.separated)(n,r)}},tc=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tf=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tl=tf(a.identity),tp=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},td=function(e,t){return tm(e,function(e,n,r){return t(n,r)})},ts=function(e){var t=tp(e);return function(e){return t(function(t,n){return e(n)})}},tm=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},th=function(e,t){return ty(e,function(e,n,r){return t(n,r)})},ty=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},tv=function(e){var t=t_(e);return function(e){return t(function(t,n){return e(n)})}},tg=function(e){return function(t){return eq(t,e.of(e1()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,a.pipe)(e,T(t))}}),n)})}},t_=function(e){return function(t){return tm(e.of(e1()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,a.pipe)(e,T(t))}}),t(n,i))})}},tb=function(e){var t=t3(e);return function(e){return function(n){return t(n,e)}}},tT=function(e){var t=t9(e);return function(e){return function(n){return t(n,e)}}},tS=function(e,t){for(var n=[],r=e;;){var i=t(r);if(f.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tI="ReadonlyArray",tR=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},tC=function(){return{concat:function(e,t){return v(e)?t:v(t)?e:e.concat(t)}}},tx=function(){return{concat:tC().concat,empty:nc}},tO=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},tw=function(e){return(0,p.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return l.Ord.compare(r,i)})},tM=function(e){var t=ew(e);return{concat:function(e,n){return t(n)(e)}}},tE=function(e){return{concat:tM(e).concat,empty:nc}},tk=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tP=function(e){var t=eE(e);return{concat:function(e,n){return t(n)(e)}}},tF={URI:tI,map:ek},tL=(0,c.flap)(tF),tW={URI:tI,of:e0},tD={URI:tI,map:ek,mapWithIndex:eP},tN={URI:tI,map:ek,ap:eF},tA=(0,r.apFirst)(tN),tU=(0,r.apSecond)(tN),tj={URI:tI,map:ek,ap:eF,of:e0},tq={URI:tI,map:ek,ap:eF,chain:e5},tG={URI:tI,map:ek,ap:eF,of:e0,chain:e5},tY=(0,i.chainFirst)(tq),tK={URI:tI,unfold:tS},tV={URI:tI,map:ek,alt:ej},tB={URI:tI,zero:e1},tH=(0,h.guard)(tB,tW),tz={URI:tI,map:ek,ap:eF,of:e0,alt:ej,zero:e1},tX={URI:tI,map:ek,extend:eX},t$={URI:tI,compact:tr,separate:e6},tJ={URI:tI,map:ek,compact:tr,separate:e6,filter:eL,filterMap:eW,partition:eD,partitionMap:eN},tZ={URI:tI,map:ek,mapWithIndex:eP,compact:tr,separate:e6,filter:eL,filterMap:eW,partition:eD,partitionMap:eN,partitionMapWithIndex:eU,partitionWithIndex:eA,filterMapWithIndex:eH,filterWithIndex:ez},tQ={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY},t0={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eK,foldMapWithIndex:eV,reduceRightWithIndex:eB},t1={URI:tI,map:ek,reduce:eq,foldMap:eG,reduceRight:eY,traverse:e$,sequence:tg},t2={URI:tI,map:ek,mapWithIndex:eP,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eK,foldMapWithIndex:eV,reduceRightWithIndex:eB,traverse:e$,sequence:tg,traverseWithIndex:eJ},t8=function(e){return function(t){for(var n=y([],e(t),!0),r=[];n.length>0;){var i=n.shift();f.nM(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},t7={URI:tI,map:ek,ap:eF,chain:e5,chainRec:eZ},t5=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){f.nM(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}},t4={URI:tI,map:ek,ap:eF,chain:e5,chainRec:eQ},t3=(0,m.witherDefault)(t1,t$),t9=(0,m.wiltDefault)(t1,t$),t6={URI:tI,map:ek,compact:tr,separate:e6,filter:eL,filterMap:eW,partition:eD,partitionMap:eN,reduce:eq,foldMap:eG,reduceRight:eY,traverse:e$,sequence:tg,wither:t3,wilt:t9},ne=(0,m.filterE)(t6),nt={URI:tI,fromEither:O},nn=(0,u.fromEitherK)(nt),nr=d.unsafeInsertAt,ni=function(e,t,n){return g(n)?d.unsafeUpdateAt(e,t,n):n},no=function(e,t){var n=t.slice();return n.splice(e,1),n},nu=function(e){return e.slice()},na=function(e){return v(e)?nc:e.slice()},nc=d.empty;function nf(e){return function(t){return t.every(e)}}var nl=function(e){return function(t){return t.some(e)}},np=nl,nd=function(e){var t=d.intercalate(e);return function(n){return M(function(){return e.empty},t(n))}},ns=e0(f.F4),nm=(0,c.bindTo)(tF),nh=(0,c.let)(tF),ny=(0,i.bind)(tq),nv=(0,r.apS)(tN),ng=e5,n_=d.range,nb=d.cons,nT=d.snoc,nS=eh,nI={URI:tI,compact:tr,separate:e6,map:ek,ap:eF,of:e0,chain:e5,filter:eL,filterMap:eW,partition:eD,partitionMap:eN,mapWithIndex:eP,partitionMapWithIndex:eU,partitionWithIndex:eA,filterMapWithIndex:eH,filterWithIndex:ez,alt:ej,zero:e1,unfold:tS,reduce:eq,foldMap:eG,reduceRight:eY,traverse:e$,sequence:tg,reduceWithIndex:eK,foldMapWithIndex:eV,reduceRightWithIndex:eB,traverseWithIndex:eJ,extend:eX,wither:t3,wilt:t9}},13512:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return ep},Filterable:function(){return ed},Functor:function(){return ec},URI:function(){return en},collect:function(){return g},compact:function(){return z},deleteAt:function(){return S},difference:function(){return ex},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i,o=e(t);return function(e){return o(n,e)}}for(var u=r.values();!(i=u.next()).done;){var a=i.value;if(t.equals(n,a))return!0}return!1}}},empty:function(){return M},filter:function(){return X},filterMap:function(){return $},filterMapWithIndex:function(){return N},filterWithIndex:function(){return A},flap:function(){return ef},foldMap:function(){return em},foldMapWithIndex:function(){return eg},fromFoldable:function(){return F},fromMap:function(){return l},getDifferenceMagma:function(){return eu},getEq:function(){return E},getFilterableWithIndex:function(){return ea},getFoldable:function(){return ey},getFoldableWithIndex:function(){return eb},getFunctorWithIndex:function(){return el},getIntersectionSemigroup:function(){return eo},getMonoid:function(){return k},getShow:function(){return d},getTraversable:function(){return eT},getTraversableWithIndex:function(){return eS},getUnionMonoid:function(){return ei},getUnionSemigroup:function(){return er},getWitherable:function(){return eI},insertAt:function(){return eO},intersection:function(){return eC},isEmpty:function(){return m},isSubmap:function(){return w},keys:function(){return y},lookup:function(){return O},lookupWithKey:function(){return x},map:function(){return J},mapWithIndex:function(){return Z},member:function(){return h},modifyAt:function(){return R},partition:function(){return Q},partitionMap:function(){return ee},partitionMapWithIndex:function(){return W},partitionWithIndex:function(){return D},pop:function(){return C},readonlyMap:function(){return ew},reduce:function(){return es},reduceRight:function(){return eh},reduceRightWithIndex:function(){return e_},reduceWithIndex:function(){return ev},separate:function(){return et},singleton:function(){return P},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return _},toUnfoldable:function(){return b},union:function(){return eR},updateAt:function(){return I},upsertAt:function(){return T},values:function(){return v}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(20492),c=n(34219),f=n(76511),l=function(e){return new Map(e)};function p(e){return new Map(e)}function d(e,t){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(e.show(i),", ").concat(t.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(e){return e.size},m=function(e){return 0===e.size};function h(e){var t=O(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(n,e)}}return u.pC(t(n,r))}}var y=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},v=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function g(e){var t=y(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}var _=function(e){return g(e)(function(e,t){return[e,t]})};function b(e,t){var n=_(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?u.G([r[e],e+1]):u.YP})}}var T=function(e){var t=x(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},S=function(e){var t=x(e);return function(e){return function(n){var r=t(e,n);if(u.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},I=function(e){var t=R(e);return function(e,n){return t(e,function(){return n})}},R=function(e){var t=x(e);return function(e,n){return function(r){var i=t(e,r);if(u.Wi(i))return u.YP;var o=i.value,a=o[0],c=o[1],f=n(c);if(f===c)return u.G(r);var l=new Map(r);return l.set(a,f),u.G(l)}}};function C(e){var t=O(e),n=S(e);return function(e){var r=n(e);return function(n){return(0,i.pipe)(t(e,n),a.map(function(e){return[e,r(n)]}))}}}function x(e){return function(t,n){if(void 0===n){var r,i=x(e);return function(e){return i(t,e)}}for(var o=n.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return u.G([c,f])}return u.YP}}function O(e){var t=x(e);return function(n,r){if(void 0===r){var o=O(e);return function(e){return o(n,e)}}return(0,i.pipe)(t(n,r),a.map(function(e){return e[0],e[1]}))}}function w(e,t){var n=x(e);return function(r,i){if(void 0===i){var o,a=w(e,t);return function(e){return a(e,r)}}for(var c=r.entries();!(o=c.next()).done;){var f=o.value,l=f[0],p=f[1],d=n(l,i);if(u.Wi(d)||!e.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var M=new Map;function E(e,t){var n=w(e,t);return(0,r.fromEquals)(function(e,t){return n(e,t)&&n(t,e)})}function k(e,t){var n=x(e);return{concat:function(e,r){if(m(e))return r;if(m(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:M}}var P=function(e,t){return new Map([[e,t]])};function F(e,t,n){return function(r){var i=x(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return u.pC(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}}var L=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},W=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function D(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var N=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],c=e(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function A(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var U=function(e,t){return L(e,function(e,n){return t(n)})},j=function(e,t){return K(e,function(e,n){return t(n)})},q=function(e,t){return V(e,function(e,n){return t(n)})},G=function(e,t){return B(e,function(e,n){return t(n)})},Y=function(e,t){return H(e,function(e,n){return t(n)})},K=function(e,t){return(0,i.pipe)(e,A(t))},V=function(e,t){return(0,i.pipe)(e,N(t))},B=function(e,t){return(0,i.pipe)(e,D(t))},H=function(e,t){return(0,i.pipe)(e,W(t))},z=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&n.set(o,a.value)}return n},X=function(e){return function(t){return j(t,e)}},$=function(e){return function(t){return q(t,e)}},J=function(e){return function(t){return U(t,e)}},Z=function(e){return function(t){return L(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){return function(t){return Y(t,e)}},et=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},en="ReadonlyMap",er=function(e,t){var n=eR(e,t);return{concat:function(e,t){return n(t)(e)}}},ei=function(e,t){return{concat:er(e,t).concat,empty:M}},eo=function(e,t){var n=eC(e,t);return{concat:function(e,t){return n(t)(e)}}},eu=function(e){return function(){var t=ex(e);return{concat:function(e,n){return t(n)(e)}}}};function ea(){return{URI:en,_E:void 0,map:U,mapWithIndex:L,compact:z,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,partitionMapWithIndex:H,partitionWithIndex:B,filterMapWithIndex:V,filterWithIndex:K}}var ec={URI:en,map:U},ef=(0,o.flap)(ec),el=function(){return{URI:en,_E:void 0,map:U,mapWithIndex:L}},ep={URI:en,compact:z,separate:et},ed={URI:en,map:U,compact:z,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y},es=function(e){var t=ev(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},em=function(e){var t=eg(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}},eh=function(e){var t=e_(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},ey=function(e){var t=es(e),n=em(e),r=eh(e);return{URI:en,_E:void 0,reduce:function(e,n,r){return(0,i.pipe)(e,t(n,r))},foldMap:function(e){var t=n(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,i.pipe)(e,r(t,n))}}},ev=function(e){var t=y(e);return function(e,n){return function(r){for(var i=e,o=0,u=t(r);o<u.length;o++){var a=u[o];i=n(a,i,r.get(a))}return i}}},eg=function(e){var t=y(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=0,u=t(r);o<u.length;o++){var a=u[o];i=e.concat(i,n(a,r.get(a)))}return i}}}},e_=function(e){var t=y(e);return function(e,n){return function(r){for(var i=e,o=t(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=n(c,r.get(c),i)}return i}}},eb=function(e){var t=ey(e),n=ev(e),r=eg(e),o=e_(e);return{URI:en,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(e,t,r){return(0,i.pipe)(e,n(t,r))},foldMapWithIndex:function(e){var t=r(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,i.pipe)(e,o(t,n))}}},eT=function(e){var t=eS(e),n=ey(e);return{URI:en,_E:void 0,map:U,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:t.traverse,sequence:t.sequence}},eS=function(e){var t=eb(e),n=y(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}};return{URI:en,_E:void 0,map:U,mapWithIndex:L,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},sequence:function(e){var t=r(e);return function(e){return t(e,i.SK)}},traverseWithIndex:r}};function eI(e){var t=eS(e);return{URI:en,_E:void 0,map:U,compact:z,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:L,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,ep),wither:(0,f.witherDefault)(t,ep)}}var eR=function(e,t){var n=O(e);return function(e){return function(r){if(m(r))return e;if(m(e))return r;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)?o.set(f,t.concat(l,p.value)):o.set(f,l)}for(var d=e.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=n(f)(o);u.Wi(p)&&o.set(f,l)}return o}}},eC=function(e,t){var n=O(e);return function(e){return function(r){if(m(r)||m(e))return M;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)&&o.set(f,t.concat(l,p.value))}return o}}},ex=function(e){var t=h(e);return function(e){return function(n){if(m(n))return e;if(m(e))return n;for(var r,i=new Map,o=n.entries();!(r=o.next()).done;){var u=r.value,a=u[0],c=u[1];t(a)(e)||i.set(a,c)}for(var f=e.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(n)||i.set(a,c)}return i}}},eO=T,ew={URI:en,map:U,compact:z,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y}},28350:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eH},Applicative:function(){return eU},Apply:function(){return eD},Chain:function(){return ej},Comonad:function(){return ez},Do:function(){return eX},Foldable:function(){return eY},FoldableWithIndex:function(){return eK},Functor:function(){return eP},FunctorWithIndex:function(){return eW},Monad:function(){return eG},Pointed:function(){return eL},Traversable:function(){return eV},TraversableWithIndex:function(){return eB},URI:function(){return eO},alt:function(){return ef},altW:function(){return ec},ap:function(){return el},apFirst:function(){return eN},apS:function(){return eQ},apSecond:function(){return eA},append:function(){return g},appendW:function(){return v},bind:function(){return eZ},bindTo:function(){return e$},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return K},chop:function(){return V},chunksOf:function(){return H},concat:function(){return F},concatAll:function(){return e4},concatW:function(){return P},cons:function(){return tl},duplicate:function(){return es},empty:function(){return d},extend:function(){return ed},extract:function(){return ex},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eF},flatMap:function(){return ep},flatten:function(){return em},fold:function(){return tm},foldMap:function(){return eg},foldMapWithIndex:function(){return eT},fromArray:function(){return k},fromReadonlyArray:function(){return C},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return ew},getUnionSemigroup:function(){return ek},group:function(){return W},groupBy:function(){return D},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return Y},isNonEmpty:function(){return s},isOutOfBound:function(){return m},last:function(){return e2},let:function(){return eJ},makeBy:function(){return x},map:function(){return eh},mapWithIndex:function(){return ey},matchLeft:function(){return e3},matchRight:function(){return e9},max:function(){return e5},min:function(){return e7},modifyAt:function(){return U},modifyHead:function(){return e6},modifyLast:function(){return tt},of:function(){return ea},prepend:function(){return y},prependAll:function(){return G},prependToAll:function(){return ts},prependW:function(){return h},range:function(){return w},readonlyNonEmptyArray:function(){return th},reduce:function(){return ev},reduceRight:function(){return e_},reduceRightWithIndex:function(){return eS},reduceWithIndex:function(){return eb},replicate:function(){return O},reverse:function(){return L},rotate:function(){return R},sequence:function(){return eR},snoc:function(){return tp},sort:function(){return N},sortBy:function(){return S},splitAt:function(){return B},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return eC},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return T},unprepend:function(){return M},unsafeInsertAt:function(){return _},unsafeUpdateAt:function(){return b},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return A},updateHead:function(){return te},updateLast:function(){return tn},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:j(t,n,function(e,t){return[e,t]})}},zipWith:function(){return j}});var r=n(42925),i=n(88543),o=n(65191),u=n(42275),a=n(67560),c=n(97963),f=n(5586),l=n(3291),p=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,m=function(e,t){return e<0||e>=t.length},h=function(e){return function(t){return p([e],t,!0)}},y=h,v=function(e){return function(t){return p(p([],t,!0),[e],!1)}},g=v,_=function(e,t,n){if(s(n)){var r=c.r1(n);return r.splice(e,0,t),r}return[t]},b=function(e,t,n){if(n[e]===t)return n;var r=c.r1(n);return r[e]=t,r},T=function(e){return function(t){if(1===t.length)return t;for(var n=[e0(t)],r=e1(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},S=function(e){if(s(e)){var t=(0,f.getMonoid)();return N(e.reduce(t.concat,t.empty))}return u.identity},I=function(e){var t=T(e);return function(e){return function(n){return t((0,u.pipe)(n,F(e)))}}},R=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(m(Math.abs(r),t)||0===r)return t;if(!(r<0))return R(r-n)(t);var i=B(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,F(o))}},C=function(e){return s(e)?c.G(e):c.YP},x=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},O=function(e){return x(function(){return e})},w=function(e,t){return e<=t?x(function(t){return e+t})(t-e+1):[e]},M=function(e){return[e0(e),e1(e)]},E=function(e){return[e8(e),e2(e)]},k=function(e){return C(e.slice())};function P(e){return function(t){return t.concat(e)}}function F(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var L=function(e){return 1===e.length?e:p([e2(e)],e.slice(0,-1).reverse(),!0)};function W(e){return function(t){var n=t.length;if(0===n)return d;for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var D=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);c.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},N=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},A=function(e,t){return U(e,function(){return t})},U=function(e,t){return function(n){return m(e,n)?c.YP:c.G(b(e,t(n[e]),n))}},j=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},q=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},G=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},Y=function(e){return function(t){var n=e1(t);return s(n)?(0,u.pipe)(n,G(e),y(e0(t))):t}},K=function(e){return function(t){for(var n=c.r1(e(0,e0(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},V=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;s(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},B=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[t,d]:[(0,u.pipe)(t.slice(1,n),y(e0(t))),t.slice(n)]}},H=function(e){return V(B(e))},z=function(e,t){return(0,u.pipe)(e,eh(t))},X=function(e,t){return(0,u.pipe)(e,ey(t))},$=function(e,t){return(0,u.pipe)(e,el(t))},J=function(e,t){return(0,u.pipe)(e,ed(t))},Z=function(e,t,n){return(0,u.pipe)(e,ev(t,n))},Q=function(e){var t=eg(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ee=function(e,t,n){return(0,u.pipe)(e,e_(t,n))},et=function(e){var t=eI(e);return function(e,n){return(0,u.pipe)(e,t(n))}},en=function(e,t){return(0,u.pipe)(e,ef(t))},er=function(e,t,n){return(0,u.pipe)(e,eb(t,n))},ei=function(e){var t=eT(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eo=function(e,t,n){return(0,u.pipe)(e,eS(t,n))},eu=function(e){var t=eC(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ea=c.ri,ec=function(e){return function(t){return(0,u.pipe)(t,P(e()))}},ef=ec,el=function(e){return ep(function(t){return(0,u.pipe)(e,eh(t))})},ep=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,K(function(e,n){return t(n,e)}))}),ed=function(e){return function(t){for(var n=e1(t),r=[e(t)];s(n);)r.push(e(n)),n=e1(n);return r}},es=ed(u.identity),em=ep(u.identity),eh=function(e){return ey(function(t,n){return e(n)})},ey=function(e){return function(t){for(var n=[e(0,e0(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},ev=function(e,t){return eb(e,function(e,n,r){return t(n,r)})},eg=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},e_=function(e,t){return eS(e,function(e,n,r){return t(n,r)})},eb=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},eT=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},eS=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},eI=function(e){var t=eC(e);return function(e){return t(function(t,n){return e(n)})}},eR=function(e){return eC(e)(u.SK)},eC=function(e){return function(t){return function(n){for(var r=e.map(t(0,e0(n)),ea),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,g(t))}}),t(i,n[i]));return r}}},ex=c.YM,eO="ReadonlyNonEmptyArray",ew=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},eM=function(){return{concat:F}},eE=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},ek=function(e){var t=I(e);return{concat:function(e,n){return t(n)(e)}}},eP={URI:eO,map:z},eF=(0,a.flap)(eP),eL={URI:eO,of:ea},eW={URI:eO,map:z,mapWithIndex:X},eD={URI:eO,map:z,ap:$},eN=(0,r.apFirst)(eD),eA=(0,r.apSecond)(eD),eU={URI:eO,map:z,ap:$,of:ea},ej={URI:eO,map:z,ap:$,chain:ep},eq=(0,i.chainFirst)(ej),eG={URI:eO,map:z,ap:$,of:ea,chain:ep},eY={URI:eO,reduce:Z,foldMap:Q,reduceRight:ee},eK={URI:eO,reduce:Z,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},eV={URI:eO,map:z,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR},eB={URI:eO,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},eH={URI:eO,map:z,alt:en},ez={URI:eO,map:z,extend:J,extract:ex},eX=ea(c.F4),e$=(0,a.bindTo)(eP),eJ=(0,a.let)(eP),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eD),e0=ex,e1=c.Gb,e2=function(e){return e[e.length-1]},e8=function(e){return e.slice(0,-1)},e7=function(e){var t=l.min(e);return function(e){return e.reduce(t.concat)}},e5=function(e){var t=l.max(e);return function(e){return e.reduce(t.concat)}},e4=function(e){return function(t){return t.reduce(e.concat)}},e3=function(e){return function(t){return e(e0(t),e1(t))}},e9=function(e){return function(t){return e(e8(t),e2(t))}},e6=function(e){return function(t){return p([e(e0(t))],e1(t),!0)}},te=function(e){return e6(function(){return e})},tt=function(e){return function(t){return(0,u.pipe)(e8(t),g(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=function(e){var t=e4(e);return function(e){return(0,u.flow)(Y(e),t)}},ti=ep;function to(e){var t=N(e),n=W(e);return function(e){return s(e)?n(t(e)):d}}function tu(e){return ta(function(t,n){return e(n)})}var ta=function(e){return function(t){return C(t.filter(function(t,n){return e(n,t)}))}},tc=M,tf=E;function tl(e,t){return void 0===t?y(e):(0,u.pipe)(t,y(e))}var tp=function(e,t){return(0,u.pipe)(e,F([t]))},td=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(_(e,t,n))}},ts=G,tm=e4,th={URI:eO,of:ea,map:z,mapWithIndex:X,ap:$,chain:ep,extend:J,extract:ex,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:eR,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},97054:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return eL},Filterable:function(){return eW},FilterableWithIndex:function(){return eD},Foldable:function(){return eK},FoldableWithIndex:function(){return eV},Functor:function(){return eM},FunctorWithIndex:function(){return ek},Traversable:function(){return eB},TraversableWithIndex:function(){return eH},URI:function(){return ex},Witherable:function(){return e$},_filter:function(){return er},_filterMap:function(){return ei},_filterMapWithIndex:function(){return ed},_filterWithIndex:function(){return es},_foldMap:function(){return et},_foldMapWithIndex:function(){return ec},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return eo},_partitionMap:function(){return eu},_partitionMapWithIndex:function(){return el},_partitionWithIndex:function(){return ep},_reduce:function(){return ee},_reduceRight:function(){return en},_reduceRightWithIndex:function(){return ef},_reduceWithIndex:function(){return ea},_sequence:function(){return eh},_traverse:function(){return em},collect:function(){return y},compact:function(){return eR},deleteAt:function(){return T},difference:function(){return J},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}for(var o in r)if(t.equals(r[o],n))return!0;return!1}}},empty:function(){return O},every:function(){return H},filter:function(){return ev},filterMap:function(){return eg},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return eE},foldMap:function(){return eS},foldMapWithIndex:function(){return k},fromEntries:function(){return B},fromFoldable:function(){return Y},fromFoldableMap:function(){return K},fromRecord:function(){return l},getDifferenceMagma:function(){return eY},getEq:function(){return eO},getFoldable:function(){return eP},getFoldableWithIndex:function(){return eF},getIntersectionSemigroup:function(){return eG},getMonoid:function(){return ew},getShow:function(){return function e(t){return"compare"in t?function(e){return{show:function(n){var r=y(t)(function(t,n){return"".concat(JSON.stringify(t),": ").concat(e.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:e(c.Ord)(t)}},getTraversable:function(){return eN},getTraversableWithIndex:function(){return eA},getUnionMonoid:function(){return eq},getUnionSemigroup:function(){return ej},getWitherable:function(){return eU},has:function(){return b},hasOwnProperty:function(){return eZ},insertAt:function(){return eJ},intersection:function(){return $},isEmpty:function(){return s},isSubrecord:function(){return C},keys:function(){return h},lookup:function(){return x},map:function(){return M},mapWithIndex:function(){return w},modifyAt:function(){return I},partition:function(){return e_},partitionMap:function(){return eb},partitionMapWithIndex:function(){return U},partitionWithIndex:function(){return j},pop:function(){return R},readonlyRecord:function(){return eQ},reduce:function(){return eT},reduceRight:function(){return eI},reduceRightWithIndex:function(){return P},reduceWithIndex:function(){return E},separate:function(){return eC},sequence:function(){return D},singleton:function(){return F},size:function(){return d},some:function(){return z},toEntries:function(){return V},toReadonlyArray:function(){return v},toRecord:function(){return p},toUnfoldable:function(){return g},traverse:function(){return W},traverseWithIndex:function(){return L},union:function(){return X},updateAt:function(){return S},upsertAt:function(){return _},wilt:function(){return A},wither:function(){return N}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(34219),c=n(57029),f=n(76511),l=function(e){return Object.assign({},e)},p=function(e){return Object.assign({},e)},d=function(e){return Object.keys(e).length},s=function(e){for(var t in e)if(u.e$.call(e,t))return!1;return!0},m=function(e){return function(t){return Object.keys(t).sort(e.compare)}},h=m(c.Ord);function y(e){if("function"==typeof e)return y(c.Ord)(e);var t=m(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var v=y(c.Ord)(function(e,t){return[e,t]});function g(e){return function(t){var n=v(t),r=n.length;return e.unfold(0,function(e){return e<r?u.G([n[e],e+1]):u.YP})}}var _=function(e,t){return function(n){if(u.e$.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}},b=function(e,t){return u.e$.call(t,e)};function T(e){return function(t){if(!u.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var S=function(e,t){return function(n){if(!b(e,n))return u.YP;if(n[e]===t)return u.G(n);var r=Object.assign({},n);return r[e]=t,u.G(r)}},I=function(e,t){return function(n){if(!b(e,n))return u.YP;var r=t(n[e]);if(r===n[e])return u.G(n);var i=Object.assign({},n);return i[e]=r,u.G(i)}};function R(e){var t=T(e);return function(n){var r=x(e,n);return u.Wi(r)?u.YP:u.G([r.value,t(n)])}}function C(e){return function(t,n){if(void 0===n){var r=C(e);return function(e){return r(e,t)}}for(var i in t)if(!u.e$.call(n,i)||!e.equals(t[i],n[i]))return!1;return!0}}function x(e,t){return void 0===t?function(t){return x(e,t)}:u.e$.call(t,e)?u.G(t[e]):u.YP}var O={};function w(e){return function(t){var n={};for(var r in t)u.e$.call(t,r)&&(n[r]=e(r,t[r]));return n}}function M(e){return w(function(t,n){return e(n)})}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return E(c.Ord).apply(void 0,e);var n=m(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=0;a<u;a++){var c=o[a];i=t(c,i,r[c])}return i}}}function k(e){if("compare"in e){var t=m(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=t(r),u=o.length,a=0;a<u;a++){var c=o[a];i=e.concat(i,n(c,r[c]))}return i}}}}return k(c.Ord)(e)}function P(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return P(c.Ord).apply(void 0,e);var n=m(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=t(c,r[c],i)}return i}}}var F=function(e,t){var n;return(n={})[e]=t,n};function L(e){var t=ey(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function W(e){var t=em(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function D(e){return eh(c.Ord)(e)}var N=function(e){var t=W(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),eR)}}},A=function(e){var t=W(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),eC)}}};function U(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=e(i,t[i]);switch(o._tag){case"Left":n[i]=o.left;break;case"Right":r[i]=o.right}}return(0,a.separated)(n,r)}}function j(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?r[i]=o:n[i]=o}return(0,a.separated)(n,r)}}function q(e){return function(t){var n={};for(var r in t)if(u.e$.call(t,r)){var i=e(r,t[r]);u.pC(i)&&(n[r]=i.value)}return n}}function G(e){return function(t){var n={},r=!1;for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?n[i]=o:r=!0}return r?n:t}}function Y(e,t){var n=K(e,t);return function(e){return n(e,i.identity)}}function K(e,t){return function(n,r){return t.reduce(n,{},function(t,n){var i=r(n),o=i[0],a=i[1];return t[o]=u.e$.call(t,o)?e.concat(t[o],a):a,t})}}var V=v,B=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function H(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function z(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}var X=function(e){return function(t){return function(n){if(s(n))return t;if(s(t))return n;var r={};for(var i in n)b(i,t)?r[i]=e.concat(n[i],t[i]):r[i]=n[i];for(var i in t)b(i,r)||(r[i]=t[i]);return r}}},$=function(e){return function(t){return function(n){if(s(n)||s(t))return O;var r={};for(var i in n)b(i,t)&&(r[i]=e.concat(n[i],t[i]));return r}}},J=function(e){return function(t){if(s(t))return e;if(s(e))return t;var n={};for(var r in t)b(r,e)||(n[r]=t[r]);for(var r in e)b(r,t)||(n[r]=e[r]);return n}},Z=function(e,t){return(0,i.pipe)(e,M(t))},Q=function(e,t){return(0,i.pipe)(e,w(t))},ee=function(e){var t=eT(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},et=function(e){return function(t){var n=eS(e)(t);return function(e,t){return(0,i.pipe)(e,n(t))}}},en=function(e){var t=eI(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},er=function(e,t){return(0,i.pipe)(e,ev(t))},ei=function(e,t){return(0,i.pipe)(e,eg(t))},eo=function(e,t){return(0,i.pipe)(e,e_(t))},eu=function(e,t){return(0,i.pipe)(e,eb(t))},ea=function(e){var t=E(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},ec=function(e){var t=k(e);return function(e){var n=t(e);return function(e,t){return(0,i.pipe)(e,n(t))}}},ef=function(e){var t=P(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},el=function(e,t){return(0,i.pipe)(e,U(t))},ep=function(e,t){return(0,i.pipe)(e,j(t))},ed=function(e,t){return(0,i.pipe)(e,q(t))},es=function(e,t){return(0,i.pipe)(e,G(t))},em=function(e){var t=ey(e);return function(e){var n=t(e);return function(e,t){return n(e,(0,i.flow)(i.SK,t))}}},eh=function(e){var t=em(e);return function(e){var n=t(e);return function(e){return n(e,i.identity)}}},ey=function(e){return function(t){var n=m(e);return function(e,r){var i=n(e);if(0===i.length)return t.of(O);for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){var r;return Object.assign({},e,((r={})[n]=t,r))}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},ev=function(e){return G(function(t,n){return e(n)})},eg=function(e){return q(function(t,n){return e(n)})},e_=function(e){return j(function(t,n){return e(n)})},eb=function(e){return U(function(t,n){return e(n)})};function eT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=E(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eT(c.Ord).apply(void 0,e)}function eS(e){if("compare"in e){var t=k(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}}return eS(c.Ord)(e)}function eI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=P(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eI(c.Ord).apply(void 0,e)}var eR=function(e){var t={};for(var n in e)if(u.e$.call(e,n)){var r=e[n];u.pC(r)&&(t[n]=r.value)}return t},eC=function(e){var t={},n={};for(var r in e)if(u.e$.call(e,r)){var i=e[r];u.nM(i)?t[r]=i.left:n[r]=i.right}return(0,a.separated)(t,n)},ex="ReadonlyRecord";function eO(e){var t=C(e);return(0,r.fromEquals)(function(e,n){return t(e)(n)&&t(n)(e)})}function ew(e){return{concat:function(t,n){if(s(t))return n;if(s(n))return t;var r=Object.assign({},t);for(var i in n)u.e$.call(n,i)&&(r[i]=u.e$.call(t,i)?e.concat(t[i],n[i]):n[i]);return r},empty:O}}var eM={URI:ex,map:Z},eE=(0,o.flap)(eM),ek={URI:ex,map:Z,mapWithIndex:Q},eP=function(e){return{URI:ex,reduce:ee(e),foldMap:et(e),reduceRight:en(e)}},eF=function(e){return{URI:ex,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e)}},eL={URI:ex,compact:eR,separate:eC},eW={URI:ex,map:Z,compact:eR,separate:eC,filter:er,filterMap:ei,partition:eo,partitionMap:eu},eD={URI:ex,map:Z,mapWithIndex:Q,compact:eR,separate:eC,filter:er,filterMap:ei,partition:eo,partitionMap:eu,filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep},eN=function(e){return{URI:ex,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:em(e),sequence:eh(e)}},eA=function(e){return{URI:ex,map:Z,mapWithIndex:Q,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e),traverse:em(e),sequence:eh(e),traverseWithIndex:ey(e)}},eU=function(e){var t=eN(e);return{URI:ex,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:t.traverse,sequence:t.sequence,compact:eR,separate:eC,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:(0,f.witherDefault)(t,eL),wilt:(0,f.wiltDefault)(t,eL)}},ej=function(e){var t=X(e);return{concat:function(e,n){return t(n)(e)}}},eq=function(e){return{concat:ej(e).concat,empty:O}},eG=function(e){var t=$(e);return{concat:function(e,n){return t(n)(e)}}},eY=function(){return{concat:function(e,t){return J(t)(e)}}},eK={URI:ex,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord)},eV={URI:ex,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord)},eB={URI:ex,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:D},eH={URI:ex,map:Z,mapWithIndex:Q,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord),traverse:em(c.Ord),sequence:D,traverseWithIndex:ey(c.Ord)},ez=(0,f.witherDefault)(eB,eL),eX=(0,f.wiltDefault)(eB,eL),e$={URI:ex,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:D,compact:eR,separate:eC,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:ez,wilt:eX},eJ=_;function eZ(e,t){return u.e$.call(void 0===t?this:t,e)}var eQ={URI:ex,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:D,compact:eR,separate:eC,filter:er,filterMap:ei,partition:eo,partitionMap:eu,mapWithIndex:Q,reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord),filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep,traverseWithIndex:ey(c.Ord),wither:ez,wilt:eX}},99156:function(e,t,n){n.r(t),n.d(t,{URI:function(){return D},chain:function(){return d},compact:function(){return C},difference:function(){return g},elem:function(){return L},empty:function(){return w},every:function(){return P},filter:function(){return s},filterMap:function(){return O},foldMap:function(){return b},fromArray:function(){return Y},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return G},getEq:function(){return A},getIntersectionSemigroup:function(){return q},getShow:function(){return N},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return U},insert:function(){return S},intersection:function(){return y},isEmpty:function(){return M},isSubset:function(){return F},map:function(){return p},partition:function(){return m},partitionMap:function(){return v},reduce:function(){return _},reduceRight:function(){return T},remove:function(){return I},separate:function(){return x},singleton:function(){return c},size:function(){return E},some:function(){return k},toReadonlyArray:function(){return W},toSet:function(){return l},toggle:function(){return R},union:function(){return h}});var r=n(65191),i=n(42275),o=n(88491),u=n(34219),a=function(e){return new Set(e)},c=function(e){return new Set([e])},f=function(e){return function(t){for(var n=t.length,r=new Set,i=L(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}};function l(e){return new Set(e)}function p(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function d(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function s(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function m(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function h(e){var t=L(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(n,e)}}if(M(n))return r;if(M(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function y(e){var t=L(e);return function(n,r){if(void 0===r){var i=y(e);return function(e){return i(e,n)}}if(M(n)||M(r))return w;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function v(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=L(e),l=L(t);!(i=o.next()).done;){var p=n(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,u.separated)(a,c)}}}function g(e){var t=L(e);return function(n,r){if(void 0===r){var i=g(e);return function(e){return i(e,n)}}return s(function(e){return!t(e,r)})(n)}}function _(e){var t=W(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function b(e,t){var n=W(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var T=function(e){var t=W(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function S(e){var t=L(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var I=function(e){return function(t){return function(n){return s(function(n){return!e.equals(t,n)})(n)}}},R=function(e){var t=L(e),n=I(e),r=S(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},C=function(e){return O(e)(i.identity)};function x(e,t){return function(n){var r=L(e),i=L(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,u.separated)(o,a)}}function O(e){var t=L(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var w=new Set,M=function(e){return 0===e.size},E=function(e){return e.size},k=function(e){return function(t){for(var n,r=t.values(),i=!1;!i&&!(n=r.next()).done;)i=e(n.value);return i}};function P(e){return(0,o.not)(k((0,o.not)(e)))}function F(e){var t=L(e);return function(n,r){if(void 0===r){var i=F(e);return function(e){return i(e,n)}}return P(function(e){return t(e,r)})(n)}}function L(e){return function(t,n){if(void 0===n){var r,i=L(e);return function(e){return i(t,e)}}for(var o=n.values(),u=!1;!u&&!(r=o.next()).done;)u=e.equals(t,r.value);return u}}var W=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},D="ReadonlySet";function N(e){return{show:function(t){var n=[];return t.forEach(function(t){n.push(e.show(t))}),"new Set([".concat(n.sort().join(", "),"])")}}}function A(e){var t=F(e);return(0,r.fromEquals)(function(e,n){return t(e,n)&&t(n,e)})}var U=function(e){return{concat:h(e)}},j=function(e){return{concat:U(e).concat,empty:w}},q=function(e){return{concat:y(e)}},G=function(e){return{concat:g(e)}},Y=f},3291:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return y},constant:function(){return f},first:function(){return m},fold:function(){return O},getDualSemigroup:function(){return I},getFirstSemigroup:function(){return b},getFunctionSemigroup:function(){return E},getIntercalateSemigroup:function(){return x},getJoinSemigroup:function(){return R},getLastSemigroup:function(){return _},getMeetSemigroup:function(){return C},getObjectSemigroup:function(){return g},getStructSemigroup:function(){return S},getTupleSemigroup:function(){return T},intercalate:function(){return s},last:function(){return h},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return w},semigroupAny:function(){return M},semigroupProduct:function(){return F},semigroupString:function(){return k},semigroupSum:function(){return P},semigroupVoid:function(){return v},struct:function(){return p},tuple:function(){return d}});var r=n(42275),i=n(97963),o=n(76113),u=n(5586),a=function(e){return{concat:u.min(e)}},c=function(e){return{concat:u.max(e)}},f=function(e){return{concat:function(){return e}}},l=o.reverse,p=function(e){return{concat:function(t,n){var r={};for(var o in e)i.e$.call(e,o)&&(r[o]=e[o].concat(t[o],n[o]));return r}}},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},s=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},m=function(){return{concat:r.identity}},h=function(){return{concat:function(e,t){return t}}},y=o.concatAll,v=f(void 0),g=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},_=h,b=m,T=d,S=p,I=l,R=c,C=a,x=s;function O(e){var t=y(e);return function(e,n){return void 0===n?t(e):t(e)(n)}}var w={concat:function(e,t){return e&&t}},M={concat:function(e,t){return e||t}},E=r.getSemigroup,k={concat:function(e,t){return e+t}},P={concat:function(e,t){return e+t}},F={concat:function(e,t){return e*t}}},34219:function(e,t,n){n.r(t),n.d(t,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return c},flap:function(){return d},left:function(){return s},map:function(){return u},mapLeft:function(){return a},right:function(){return m},separated:function(){return o}});var r=n(42275),i=n(67560),o=function(e,t){return{left:e,right:t}},u=function(e){return function(t){return o(s(t),e(m(t)))}},a=function(e){return function(t){return o(e(s(t)),m(t))}},c=function(e,t){return function(n){return o(e(s(n)),t(m(n)))}},f="Separated",l={URI:f,mapLeft:function(e,t){return(0,r.pipe)(e,a(t))},bimap:function(e,t,n){return(0,r.pipe)(e,c(t,n))}},p={URI:f,map:function(e,t){return(0,r.pipe)(e,u(t))}},d=(0,i.flap)(p),s=function(e){return e.left},m=function(e){return e.right}},1214:function(e,t,n){n.r(t),n.d(t,{chain:function(){return f},compact:function(){return w},difference:function(){return h},elem:function(){return N},empty:function(){return k},every:function(){return W},filter:function(){return l},filterMap:function(){return E},foldMap:function(){return T},fromArray:function(){return O},getDifferenceMagma:function(){return _},getEq:function(){return a},getIntersectionSemigroup:function(){return g},getShow:function(){return u},getUnionMonoid:function(){return v},getUnionSemigroup:function(){return y},insert:function(){return R},intersection:function(){return s},isEmpty:function(){return P},isSubset:function(){return D},map:function(){return c},partition:function(){return p},partitionMap:function(){return m},reduce:function(){return b},reduceRight:function(){return S},remove:function(){return C},separate:function(){return M},singleton:function(){return I},size:function(){return F},some:function(){return L},subset:function(){return U},toArray:function(){return A},toggle:function(){return x},union:function(){return d}});var r=n(42275),i=n(99156),o=n(34219),u=i.getShow,a=i.getEq;function c(e){var t=N(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function f(e){var t=N(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function l(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function p(e){return function(t){for(var n,r=t.values(),i=new Set,u=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function d(e){var t=N(e);return function(n,r){if(void 0===r){var i=d(e);return function(e){return i(n,e)}}if(P(n))return r;if(P(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function s(e){var t=N(e);return function(n,r){if(void 0===r){var i=s(e);return function(e){return i(e,n)}}if(P(n)||P(r))return new Set;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function m(e,t){return function(n){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=N(e),l=N(t);!(i=u.next()).done;){var p=n(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,o.separated)(a,c)}}}function h(e){var t=N(e);return function(n,r){if(void 0===r){var i=h(e);return function(e){return i(e,n)}}return l(function(e){return!t(e,r)})(n)}}var y=function(e){return{concat:d(e)}},v=function(e){return{concat:y(e).concat,empty:new Set}},g=function(e){return{concat:s(e)}},_=function(e){return{concat:h(e)}},b=i.reduce,T=i.foldMap,S=i.reduceRight,I=function(e){return new Set([e])};function R(e){var t=N(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var C=function(e){return function(t){return function(n){return l(function(n){return!e.equals(t,n)})(n)}}},x=function(e){var t=N(e),n=C(e),r=R(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},O=function(e){return function(t){for(var n=t.length,r=new Set,i=N(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}},w=function(e){return E(e)(r.identity)};function M(e,t){return function(n){var r=N(e),i=N(t),u=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,u)||u.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,o.separated)(u,a)}}function E(e){var t=N(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var k=new Set,P=function(e){return 0===e.size},F=function(e){return e.size},L=i.some,W=i.every,D=i.isSubset,N=i.elem,A=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},U=i.isSubset},76511:function(e,t,n){n.r(t),n.d(t,{filterE:function(){return u},wiltDefault:function(){return i},witherDefault:function(){return o}});var r=n(97963);function i(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}}function o(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}}function u(e){return function(t){var n=e.wither(t);return function(e){return function(i){return n(i,function(n){return t.map(e(n),function(e){return e?r.G(n):r.YP})})}}}}},28957:function(e,t,n){function r(e,t){return function(n){return n?t.of(void 0):e.zero()}}n.r(t),n.d(t,{guard:function(){return r}})},42275:function(e,t,n){n.r(t),n.d(t,{SK:function(){return w},absurd:function(){return I},apply:function(){return f},constFalse:function(){return m},constNull:function(){return h},constTrue:function(){return s},constUndefined:function(){return y},constVoid:function(){return v},constant:function(){return d},decrement:function(){return S},dual:function(){return k},flip:function(){return g},flow:function(){return _},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return E},getMonoid:function(){return u},getRing:function(){return c},getSemigroup:function(){return o},getSemiring:function(){return a},hole:function(){return O},identity:function(){return l},increment:function(){return T},not:function(){return M},pipe:function(){return x},tuple:function(){return b},tupled:function(){return R},unsafeCoerce:function(){return p},untupled:function(){return C}});var r=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},o=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},u=function(e){var t=o(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}},a=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},c=function(e){var t=a(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},f=function(e){return function(t){return t(e)}};function l(e){return e}var p=l;function d(e){return function(){return e}}var s=d(!0),m=d(!1),h=d(null),y=d(void 0),v=y;function g(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}}function _(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function T(e){return e+1}function S(e){return e-1}function I(e){throw Error("Called `absurd` function which should be uncallable")}function R(e){return function(t){return e.apply(void 0,t)}}function C(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}function x(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var O=I,w=function(e,t){return t};function M(e){return function(t){return!e(t)}}var E=function(){return{concat:function(e,t){return _(e,t)},empty:l}},k=function(e,t){var n="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,r([n],e,!1))}}}},9554:function(e,t,n){n.r(t),n.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return eG},apply:function(){return eU},array:function(){return eY},bifunctor:function(){return o},boolean:function(){return u},booleanAlgebra:function(){return a},bounded:function(){return c},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return p},boundedLattice:function(){return d},boundedMeetSemilattice:function(){return s},category:function(){return m},chain:function(){return to},chainRec:function(){return tu},choice:function(){return h},comonad:function(){return y},compactable:function(){return v},console:function(){return g},const:function(){return tT},contravariant:function(){return _},date:function(){return b},distributiveLattice:function(){return f},either:function(){return tE},eitherT:function(){return T},endomorphism:function(){return t7},eq:function(){return t5},extend:function(){return S},field:function(){return I},filterable:function(){return R},filterableWithIndex:function(){return C},foldable:function(){return x},foldableWithIndex:function(){return O},fromEither:function(){return n_},fromIO:function(){return w},fromReader:function(){return E},fromState:function(){return P},fromTask:function(){return F},fromThese:function(){return L},function:function(){return e8},functor:function(){return tp},functorWithIndex:function(){return W},group:function(){return D},heytingAlgebra:function(){return N},hkt:function(){return A},identity:function(){return U},invariant:function(){return j},io:function(){return q},ioEither:function(){return G},ioOption:function(){return K},ioRef:function(){return V},joinSemilattice:function(){return B},json:function(){return H},lattice:function(){return z},magma:function(){return fg},map:function(){return f_},meetSemilattice:function(){return X},monad:function(){return $},monadIO:function(){return J},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return fb},naturalTransformation:function(){return ee},nonEmptyArray:function(){return fT},number:function(){return tS},option:function(){return td},optionT:function(){return Y},ord:function(){return e6},ordering:function(){return et},pipeable:function(){return fF},pointed:function(){return en},predicate:function(){return t6},profunctor:function(){return er},random:function(){return ei},reader:function(){return M},readerEither:function(){return eo},readerIO:function(){return ea},readerT:function(){return eu},readerTask:function(){return ef},readerTaskEither:function(){return ep},readonlyArray:function(){return b_},readonlyMap:function(){return bb},readonlyNonEmptyArray:function(){return bT},readonlyRecord:function(){return bS},readonlySet:function(){return bI},readonlyTuple:function(){return ed},record:function(){return es},refinement:function(){return em},ring:function(){return eh},semigroup:function(){return Tt},semigroupoid:function(){return ey},semiring:function(){return ev},separated:function(){return ts},set:function(){return SZ},show:function(){return eg},state:function(){return k},stateReaderTaskEither:function(){return eb},stateT:function(){return e_},store:function(){return eT},string:function(){return Tn},strong:function(){return eS},struct:function(){return eI},task:function(){return ec},taskEither:function(){return el},taskOption:function(){return eR},taskThese:function(){return eO},these:function(){return eC},theseT:function(){return ex},traced:function(){return ew},traversable:function(){return eM},traversableWithIndex:function(){return eE},tree:function(){return ek},tuple:function(){return eP},unfoldable:function(){return eF},validationT:function(){return eL},void:function(){return eW},witherable:function(){return Tr},writer:function(){return eD},writerT:function(){return eN},zero:function(){return a8}});var r={};n.r(r),n.d(r,{altAll:function(){return eA}});var i={};n.r(i),n.d(i,{altAll:function(){return ej},getAlternativeMonoid:function(){return eq}});var o={};n.r(o);var u={};n.r(u),n.d(u,{BooleanAlgebra:function(){return e$},Eq:function(){return eX},MonoidAll:function(){return eQ},MonoidAny:function(){return e0},Ord:function(){return e1},SemigroupAll:function(){return eJ},SemigroupAny:function(){return eZ},Show:function(){return e2},fold:function(){return ez},foldW:function(){return eB},isBoolean:function(){return eK},match:function(){return eH},matchW:function(){return eV}});var a={};n.r(a),n.d(a,{booleanAlgebraBoolean:function(){return e3},booleanAlgebraVoid:function(){return e5},getDualBooleanAlgebra:function(){return e4},getFunctionBooleanAlgebra:function(){return e9},reverse:function(){return e7}});var c={};n.r(c),n.d(c,{boundedNumber:function(){return tn},clamp:function(){return te},reverse:function(){return tt}});var f={};n.r(f),n.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};n.r(l),n.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ti}});var p={};n.r(p);var d={};n.r(d);var s={};n.r(s);var m={};n.r(m);var h={};n.r(h),n.d(h,{fanIn:function(){return tc},fanin:function(){return tl},split:function(){return ta},splitChoice:function(){return tf}});var y={};n.r(y);var v={};n.r(v),n.d(v,{compact:function(){return tm},getCompactableComposition:function(){return ty},separate:function(){return th}});var g={};n.r(g),n.d(g,{error:function(){return t_},info:function(){return tb},log:function(){return tv},warn:function(){return tg}});var _={};n.r(_);var b={};n.r(b),n.d(b,{Eq:function(){return tI},Ord:function(){return tO},create:function(){return tw},eqDate:function(){return tR},eqMonth:function(){return tC},eqYear:function(){return tx},now:function(){return tM}});var T={};n.r(T),n.d(T,{alt:function(){return tG},altValidation:function(){return tH},ap:function(){return tU},bimap:function(){return tY},chain:function(){return tj},chainNullableK:function(){return tN},flatMap:function(){return tq},fromNullable:function(){return tW},fromNullableK:function(){return tD},getEitherM:function(){return t8},getOrElse:function(){return t$},left:function(){return tP},leftF:function(){return tL},map:function(){return tA},mapBoth:function(){return tK},mapError:function(){return tB},mapLeft:function(){return tV},match:function(){return tz},matchE:function(){return tX},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 S={};n.r(S);var I={};n.r(I),n.d(I,{fieldNumber:function(){return t9},gcd:function(){return t4},lcm:function(){return t3}});var R={};n.r(R),n.d(R,{filter:function(){return ne},filterMap:function(){return nt},getFilterableComposition:function(){return ni},partition:function(){return nn},partitionMap:function(){return nr}});var C={};n.r(C);var x={};n.r(x),n.d(x,{foldM:function(){return nd},foldMap:function(){return nu},getFoldableComposition:function(){return nm},intercalate:function(){return nf},reduce:function(){return no},reduceM:function(){return nc},reduceRight:function(){return na},toArray:function(){return ns},toReadonlyArray:function(){return nl},traverse_:function(){return np}});var O={};n.r(O),n.d(O,{foldMapWithIndex:function(){return ny},getFoldableWithIndexComposition:function(){return ng},reduceRightWithIndex:function(){return nv},reduceWithIndex:function(){return nh}});var w={};n.r(w),n.d(w,{chainFirstIOK:function(){return nS},chainIOK:function(){return nT},fromIOK:function(){return nb},tapIO:function(){return nI}});var M={};n.r(M),n.d(M,{ApT:function(){return rc},Applicative:function(){return n8},Apply:function(){return nZ},Category:function(){return n9},Chain:function(){return n7},Choice:function(){return re},Do:function(){return ro},Functor:function(){return nX},Monad:function(){return n5},Pointed:function(){return nJ},Profunctor:function(){return n3},Strong:function(){return n6},URI:function(){return nz},ap:function(){return nD},apFirst:function(){return nQ},apFirstW:function(){return n0},apS:function(){return ru},apSW:function(){return ra},apSecond:function(){return n1},apSecondW:function(){return n2},apW:function(){return nW},ask:function(){return nC},asks:function(){return nx},asksReader:function(){return nM},asksReaderW:function(){return nw},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rh},chainFirst:function(){return ry},chainFirstW:function(){return rv},chainW:function(){return rm},compose:function(){return nq},first:function(){return nK},flap:function(){return n$},flatMap:function(){return nA},flatten:function(){return nj},flattenW:function(){return nU},getMonoid:function(){return rb},getSemigroup:function(){return r_},id:function(){return nY},left:function(){return nB},let:function(){return rn},local:function(){return nO},map:function(){return nL},of:function(){return nN},promap:function(){return nG},reader:function(){return rg},right:function(){return nH},second:function(){return nV},sequenceArray:function(){return rs},tap:function(){return n4},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var E={};n.r(E),n.d(E,{ask:function(){return rT},asks:function(){return rS},chainFirstReaderK:function(){return rC},chainReaderK:function(){return rR},fromReaderK:function(){return rI},tapReader:function(){return rx}});var k={};n.r(k),n.d(k,{Applicative:function(){return rV},Apply:function(){return rG},Chain:function(){return rB},FromState:function(){return rX},Functor:function(){return rU},Monad:function(){return rH},Pointed:function(){return rq},URI:function(){return rA},ap:function(){return rL},apFirst:function(){return rY},apS:function(){return r1},apSecond:function(){return rK},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r3},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return r$},execState:function(){return ie},execute:function(){return rJ},flap:function(){return rj},flatMap:function(){return rD},flatten:function(){return rN},get:function(){return rO},gets:function(){return rE},let:function(){return rQ},map:function(){return rF},modify:function(){return rM},of:function(){return rW},put:function(){return rw},sequenceArray:function(){return r4},state:function(){return it},tap:function(){return rz},traverseArray:function(){return r5},traverseArrayWithIndex:function(){return r7},traverseReadonlyArrayWithIndex:function(){return r8},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var P={};n.r(P),n.d(P,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return iu},modify:function(){return io},put:function(){return ii}});var F={};n.r(F),n.d(F,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var L={};n.r(L),n.d(L,{fromTheseK:function(){return im}});var W={};n.r(W),n.d(W,{getFunctorWithIndexComposition:function(){return iy},mapWithIndex:function(){return ih}});var D={};n.r(D);var N={};n.r(N);var A={};n.r(A);var U={};n.r(U),n.d(U,{Alt:function(){return i2},Applicative:function(){return i$},Apply:function(){return iH},Chain:function(){return iJ},ChainRec:function(){return i7},Comonad:function(){return i8},Do:function(){return i5},Foldable:function(){return i0},Functor:function(){return iK},Monad:function(){return iZ},Pointed:function(){return iB},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iU},ap:function(){return iO},apFirst:function(){return iz},apS:function(){return i6},apSecond:function(){return iX},bind:function(){return i9},bindTo:function(){return i4},chain:function(){return oe},chainFirst:function(){return iQ},duplicate:function(){return iP},extend:function(){return iE},extract:function(){return ik},flap:function(){return iV},flatMap:function(){return iM},flatten:function(){return iF},foldMap:function(){return iW},getEq:function(){return iY},getShow:function(){return iG},identity:function(){return ot},let:function(){return i3},map:function(){return ix},of:function(){return iw},reduce:function(){return iL},reduceRight:function(){return iD},sequence:function(){return iA},traverse:function(){return iN}});var j={};n.r(j);var q={};n.r(q),n.d(q,{ApT:function(){return oP},Applicative:function(){return o_},Apply:function(){return oy},Chain:function(){return ob},ChainRec:function(){return oC},Do:function(){return oO},FromIO:function(){return ox},Functor:function(){return op},Monad:function(){return oT},MonadIO:function(){return oR},Pointed:function(){return oh},URI:function(){return ol},ap:function(){return ou},apFirst:function(){return ov},apS:function(){return ok},apSecond:function(){return og},as:function(){return od},asUnit:function(){return os},bind:function(){return oE},bindTo:function(){return ow},chain:function(){return oA},chainFirst:function(){return oU},flap:function(){return om},flatMap:function(){return oc},flatten:function(){return of},fromIO:function(){return oI},getMonoid:function(){return oG},getSemigroup:function(){return oq},io:function(){return oj},let:function(){return oM},map:function(){return oo},of:function(){return oa},sequenceArray:function(){return oN},tap:function(){return oS},traverseArray:function(){return oD},traverseArrayWithIndex:function(){return oW},traverseReadonlyArrayWithIndex:function(){return oL},traverseReadonlyNonEmptyArrayWithIndex:function(){return oF}});var G={};n.r(G),n.d(G,{Alt:function(){return uK},ApT:function(){return ah},Applicative:function(){return ax},ApplicativePar:function(){return uW},ApplicativeSeq:function(){return uD},ApplyPar:function(){return uE},Bifunctor:function(){return uM},Chain:function(){return uN},Do:function(){return ac},FromEither:function(){return uU},FromIO:function(){return uj},Functor:function(){return uR},Monad:function(){return uA},MonadIO:function(){return uV},MonadThrow:function(){return uB},Pointed:function(){return uw},URI:function(){return u_},alt:function(){return uy},altW:function(){return uv},ap:function(){return ul},apFirst:function(){return uk},apFirstW:function(){return uP},apS:function(){return as},apSW:function(){return am},apSecond:function(){return uF},apSecondW:function(){return uL},apW:function(){return up},as:function(){return uC},asUnit:function(){return ux},bimap:function(){return ua},bind:function(){return ap},bindTo:function(){return af},bindW:function(){return ad},bracket:function(){return au},bracketW:function(){return aa},chain:function(){return aO},chainEitherK:function(){return u9},chainEitherKW:function(){return u6},chainFirst:function(){return aM},chainFirstEitherK:function(){return ae},chainFirstEitherKW:function(){return at},chainFirstIOK:function(){return uz},chainFirstW:function(){return aE},chainIOK:function(){return u3},chainOptionK:function(){return uJ},chainOptionKW:function(){return uZ},chainW:function(){return aw},filterOrElse:function(){return ar},filterOrElseW:function(){return ai},flap:function(){return uO},flatMap:function(){return us},flatMapEither:function(){return u5},flatMapIO:function(){return u4},flatMapNullable:function(){return u8},flatMapOption:function(){return u7},flatten:function(){return uh},flattenW:function(){return um},fold:function(){return oZ},foldW:function(){return o0},fromEither:function(){return oH},fromEitherK:function(){return ao},fromIO:function(){return oz},fromIOK:function(){return uH},fromOption:function(){return uX},fromOptionK:function(){return u$},fromPredicate:function(){return an},getAltIOValidation:function(){return uT},getApplicativeIOValidation:function(){return ub},getApplyMonoid:function(){return aW},getApplySemigroup:function(){return aL},getCompactable:function(){return uS},getFilterable:function(){return uI},getIOValidation:function(){return aN},getOrElse:function(){return o1},getOrElseW:function(){return o2},getSemigroup:function(){return aD},ioEither:function(){return aF},left:function(){return oY},leftIO:function(){return oB},let:function(){return al},liftNullable:function(){return u0},liftOption:function(){return u1},map:function(){return uo},mapBoth:function(){return uu},mapError:function(){return uc},mapLeft:function(){return uf},match:function(){return oX},matchE:function(){return oJ},matchEW:function(){return oQ},matchW:function(){return o$},of:function(){return ud},orElse:function(){return o4},orElseFirst:function(){return ak},orElseFirstIOK:function(){return o6},orElseFirstW:function(){return aP},orElseW:function(){return o3},orLeft:function(){return ue},right:function(){return oK},rightIO:function(){return oV},sequenceArray:function(){return aS},sequenceSeqArray:function(){return aC},swap:function(){return ut},tap:function(){return uq},tapEither:function(){return uG},tapError:function(){return o9},tapIO:function(){return uY},throwError:function(){return ug},toUnion:function(){return o5},traverseArray:function(){return aT},traverseArrayWithIndex:function(){return ab},traverseReadonlyArrayWithIndex:function(){return av},traverseReadonlyArrayWithIndexSeq:function(){return a_},traverseReadonlyNonEmptyArrayWithIndex:function(){return ay},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ag},traverseSeqArray:function(){return aR},traverseSeqArrayWithIndex:function(){return aI},tryCatch:function(){return o8},tryCatchK:function(){return o7}});var Y={};n.r(Y),n.d(Y,{alt:function(){return a1},ap:function(){return aZ},chain:function(){return aQ},chainNullableK:function(){return aY},chainOptionK:function(){return aV},flatMap:function(){return a0},fromEither:function(){return aH},fromF:function(){return aj},fromNullable:function(){return aq},fromNullableK:function(){return aG},fromOptionK:function(){return aK},fromPredicate:function(){return aB},getOptionM:function(){return a2},getOrElse:function(){return a$},map:function(){return aJ},match:function(){return az},matchE:function(){return aX},some:function(){return aA},zero:function(){return aU}});var K={};n.r(K),n.d(K,{Alt:function(){return cH},Alternative:function(){return c$},ApT:function(){return ff},Applicative:function(){return cj},Apply:function(){return cN},Chain:function(){return cq},Compactable:function(){return cQ},Do:function(){return fi},Filterable:function(){return c0},FromEither:function(){return cG},FromIO:function(){return cY},Functor:function(){return cP},Monad:function(){return cJ},MonadIO:function(){return cZ},Pointed:function(){return cD},URI:function(){return ck},Zero:function(){return cz},alt:function(){return cg},altW:function(){return c_},ap:function(){return cm},apFirst:function(){return cA},apS:function(){return fc},apSecond:function(){return cU},as:function(){return cF},asUnit:function(){return cL},bind:function(){return fa},bindTo:function(){return fo},chain:function(){return fd},chainEitherK:function(){return ft},chainFirst:function(){return fs},chainFirstEitherK:function(){return fn},chainFirstIOK:function(){return c6},chainIOK:function(){return c9},chainNullableK:function(){return cp},chainOptionK:function(){return fr},compact:function(){return cS},filter:function(){return cR},filterMap:function(){return cC},flap:function(){return cW},flatMap:function(){return cy},flatMapEither:function(){return c5},flatMapIO:function(){return c8},flatMapNullable:function(){return c4},flatMapOption:function(){return c7},flatten:function(){return cv},fold:function(){return cr},fromEither:function(){return a3},fromEitherK:function(){return fe},fromIO:function(){return a9},fromIOEither:function(){return a6},fromIOK:function(){return c3},fromNullable:function(){return cf},fromNullableK:function(){return cl},fromOption:function(){return a4},fromOptionK:function(){return cd},fromPredicate:function(){return a5},getOrElse:function(){return co},getOrElseW:function(){return cu},guard:function(){return cX},let:function(){return fu},map:function(){return cs},match:function(){return ce},matchE:function(){return cn},matchEW:function(){return ci},matchW:function(){return ct},none:function(){return cT},of:function(){return ch},partition:function(){return cx},partitionMap:function(){return cO},separate:function(){return cI},some:function(){return a7},tap:function(){return cK},tapEither:function(){return cV},tapIO:function(){return cB},toNullable:function(){return cc},toUndefined:function(){return ca},traverseReadonlyArrayWithIndex:function(){return fp},traverseReadonlyNonEmptyArrayWithIndex:function(){return fl},zero:function(){return cb}});var V={};n.r(V),n.d(V,{IORef:function(){return fm},newIORef:function(){return fh}});var B={};n.r(B);var H={};n.r(H),n.d(H,{parse:function(){return fy},stringify:function(){return fv}});var z={};n.r(z);var X={};n.r(X);var $={};n.r($);var J={};n.r(J);var Z={};n.r(Z);var Q={};n.r(Q);var ee={};n.r(ee);var et={};n.r(et),n.d(et,{Eq:function(){return fC},Monoid:function(){return fO},Semigroup:function(){return fx},eqOrdering:function(){return fk},invert:function(){return fM},match:function(){return fI},matchW:function(){return fS},monoidOrdering:function(){return fP},reverse:function(){return fR},semigroupOrdering:function(){return fE},sign:function(){return fw}});var en={};n.r(en);var er={};n.r(er);var ei={};n.r(ei),n.d(ei,{random:function(){return fL},randomBool:function(){return fN},randomElem:function(){return fA},randomInt:function(){return fW},randomRange:function(){return fD}});var eo={};n.r(eo),n.d(eo,{Alt:function(){return lU},ApT:function(){return pd},Applicative:function(){return lE},Apply:function(){return lC},Bifunctor:function(){return lA},Chain:function(){return lk},Do:function(){return po},FromEither:function(){return lF},FromReader:function(){return lL},Functor:function(){return lb},Monad:function(){return lP},MonadThrow:function(){return lV},Pointed:function(){return lR},URI:function(){return lh},alt:function(){return ld},altW:function(){return ls},ap:function(){return lu},apFirst:function(){return lx},apFirstW:function(){return lO},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lw},apSecondW:function(){return lM},apW:function(){return la},as:function(){return lT},asUnit:function(){return lS},ask:function(){return lj},asks:function(){return lq},asksReaderEither:function(){return f2},asksReaderEitherW:function(){return f1},bimap:function(){return lr},bind:function(){return pc},bindTo:function(){return pu},bindW:function(){return pf},chain:function(){return pg},chainEitherK:function(){return l5},chainEitherKW:function(){return l4},chainFirst:function(){return pb},chainFirstEitherK:function(){return l3},chainFirstEitherKW:function(){return l9},chainFirstReaderK:function(){return lY},chainFirstReaderKW:function(){return lK},chainFirstW:function(){return pT},chainOptionK:function(){return lz},chainOptionKW:function(){return lX},chainReaderK:function(){return l6},chainReaderKW:function(){return pe},chainW:function(){return p_},filterOrElse:function(){return pn},filterOrElseW:function(){return pr},flap:function(){return lI},flatMap:function(){return lf},flatMapEither:function(){return l8},flatMapNullable:function(){return l1},flatMapOption:function(){return l2},flatMapReader:function(){return l7},flatten:function(){return lp},flattenW:function(){return ll},fold:function(){return fz},foldW:function(){return f$},fromEither:function(){return fY},fromEitherK:function(){return pi},fromOption:function(){return lB},fromOptionK:function(){return lH},fromPredicate:function(){return pt},fromReader:function(){return fK},fromReaderK:function(){return lG},getAltReaderValidation:function(){return l_},getApplicativeReaderValidation:function(){return lg},getApplyMonoid:function(){return px},getApplySemigroup:function(){return pC},getCompactable:function(){return ly},getFilterable:function(){return lv},getOrElse:function(){return fJ},getOrElseW:function(){return fZ},getReaderValidation:function(){return pw},getSemigroup:function(){return pO},left:function(){return fU},leftReader:function(){return fG},let:function(){return pa},liftNullable:function(){return lZ},liftOption:function(){return lQ},local:function(){return f0},map:function(){return lt},mapBoth:function(){return ln},mapError:function(){return li},mapLeft:function(){return lo},match:function(){return fV},matchE:function(){return fH},matchEW:function(){return fX},matchW:function(){return fB},of:function(){return lc},orElse:function(){return f8},orElseFirst:function(){return pS},orElseFirstW:function(){return pI},orElseW:function(){return f7},orLeft:function(){return f4},readerEither:function(){return pR},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pv},swap:function(){return f3},tap:function(){return lW},tapEither:function(){return lD},tapError:function(){return f5},tapReader:function(){return lN},throwError:function(){return lm},toUnion:function(){return fQ},traverseArray:function(){return py},traverseArrayWithIndex:function(){return ph},traverseReadonlyArrayWithIndex:function(){return pm},traverseReadonlyNonEmptyArrayWithIndex:function(){return ps}});var eu={};n.r(eu),n.d(eu,{ap:function(){return pk},chain:function(){return pP},flatMap:function(){return pF},fromNaturalTransformation:function(){return pW},fromReader:function(){return pL},getReaderM:function(){return pD},map:function(){return pE},of:function(){return pM}});var ea={};n.r(ea),n.d(ea,{ApT:function(){return dx},Applicative:function(){return p4},Apply:function(){return p8},Chain:function(){return p3},Do:function(){return db},FromIO:function(){return de},FromReader:function(){return dt},Functor:function(){return pZ},Monad:function(){return p9},MonadIO:function(){return p6},Pointed:function(){return p2},URI:function(){return pJ},ap:function(){return pV},apFirst:function(){return p7},apS:function(){return dR},apSW:function(){return dC},apSecond:function(){return p5},apW:function(){return pB},as:function(){return pQ},asUnit:function(){return p0},ask:function(){return ds},asks:function(){return dm},asksReaderIO:function(){return pq},asksReaderIOW:function(){return pj},bind:function(){return dS},bindTo:function(){return dT},bindW:function(){return dI},chain:function(){return dP},chainFirst:function(){return dL},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dg},chainFirstReaderKW:function(){return d_},chainFirstW:function(){return dW},chainIOK:function(){return dp},chainReaderK:function(){return dy},chainReaderKW:function(){return dv},chainW:function(){return dF},flap:function(){return p1},flatMap:function(){return pz},flatMapIO:function(){return di},flatMapReader:function(){return du},flatten:function(){return p$},flattenW:function(){return pX},fromIO:function(){return pA},fromIOK:function(){return dl},fromReader:function(){return pN},fromReaderK:function(){return dh},local:function(){return pU},map:function(){return pK},of:function(){return pH},sequenceArray:function(){return dk},tap:function(){return da},tapIO:function(){return dc},tapReader:function(){return df},traverseArray:function(){return dE},traverseArrayWithIndex:function(){return dM},traverseReadonlyArrayWithIndex:function(){return dw},traverseReadonlyNonEmptyArrayWithIndex:function(){return dO}});var ec={};n.r(ec),n.d(ec,{ApT:function(){return sh},ApplicativePar:function(){return d2},ApplicativeSeq:function(){return d7},ApplyPar:function(){return dQ},ApplySeq:function(){return d8},Chain:function(){return d5},Do:function(){return sl},FromIO:function(){return se},FromTask:function(){return sc},Functor:function(){return dz},Monad:function(){return d4},MonadIO:function(){return d3},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dB},ap:function(){return dG},apFirst:function(){return d0},apS:function(){return sm},apSecond:function(){return d1},as:function(){return dX},asUnit:function(){return d$},bind:function(){return ss},bindTo:function(){return sp},chain:function(){return sx},chainFirst:function(){return sO},chainFirstIOK:function(){return sa},chainIOK:function(){return su},delay:function(){return dN},flap:function(){return dJ},flatMap:function(){return dK},flatMapIO:function(){return sn},flatten:function(){return dV},fromIO:function(){return dD},fromIOK:function(){return so},fromTask:function(){return d9},getMonoid:function(){return sk},getRaceMonoid:function(){return dH},getSemigroup:function(){return sE},let:function(){return sd},map:function(){return dq},never:function(){return sf},of:function(){return dY},sequenceArray:function(){return sS},sequenceSeqArray:function(){return sC},tap:function(){return sr},tapIO:function(){return si},task:function(){return sw},taskSeq:function(){return sM},traverseArray:function(){return sT},traverseArrayWithIndex:function(){return sb},traverseReadonlyArrayWithIndex:function(){return sv},traverseReadonlyArrayWithIndexSeq:function(){return s_},traverseReadonlyNonEmptyArrayWithIndex:function(){return sy},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sg},traverseSeqArray:function(){return sR},traverseSeqArrayWithIndex:function(){return sI}});var ef={};n.r(ef),n.d(ef,{ApT:function(){return mj},ApplicativePar:function(){return s7},ApplicativeSeq:function(){return s4},ApplyPar:function(){return s1},ApplySeq:function(){return s5},Chain:function(){return s3},Do:function(){return mF},FromIO:function(){return mt},FromReader:function(){return mr},FromTask:function(){return mn},Functor:function(){return s$},Monad:function(){return s9},MonadIO:function(){return s6},MonadTask:function(){return me},Pointed:function(){return s0},URI:function(){return sX},ap:function(){return sY},apFirst:function(){return s2},apS:function(){return mA},apSW:function(){return mU},apSecond:function(){return s8},apW:function(){return sK},as:function(){return sJ},asUnit:function(){return sZ},ask:function(){return mg},asks:function(){return m_},asksReaderTask:function(){return sA},asksReaderTaskW:function(){return sN},bind:function(){return mD},bindTo:function(){return mL},bindW:function(){return mN},chain:function(){return m$},chainFirst:function(){return mZ},chainFirstIOK:function(){return mv},chainFirstReaderIOK:function(){return mM},chainFirstReaderIOKW:function(){return mw},chainFirstReaderK:function(){return mI},chainFirstReaderKW:function(){return mR},chainFirstTaskK:function(){return mP},chainFirstW:function(){return mQ},chainIOK:function(){return my},chainReaderIOK:function(){return mO},chainReaderIOKW:function(){return mx},chainReaderK:function(){return mT},chainReaderKW:function(){return mS},chainTaskK:function(){return mk},chainW:function(){return mJ},flap:function(){return sQ},flatMap:function(){return sB},flatMapIO:function(){return mu},flatMapReader:function(){return mc},flatMapReaderIO:function(){return mf},flatMapTask:function(){return ma},flatten:function(){return sz},flattenW:function(){return sH},fromIO:function(){return sL},fromIOK:function(){return mh},fromReader:function(){return sP},fromReaderIO:function(){return sW},fromReaderIOK:function(){return mC},fromReaderK:function(){return mb},fromTask:function(){return sF},fromTaskK:function(){return mE},getMonoid:function(){return m7},getSemigroup:function(){return m8},let:function(){return mW},local:function(){return sD},map:function(){return sG},of:function(){return sV},readerTask:function(){return m1},readerTaskSeq:function(){return m2},run:function(){return m5},sequenceArray:function(){return mH},sequenceSeqArray:function(){return m0},tap:function(){return ml},tapIO:function(){return mp},tapReader:function(){return md},tapReaderIO:function(){return mm},tapTask:function(){return ms},traverseArray:function(){return mB},traverseArrayWithIndex:function(){return mV},traverseReadonlyArrayWithIndex:function(){return mG},traverseReadonlyArrayWithIndexSeq:function(){return mK},traverseReadonlyNonEmptyArrayWithIndex:function(){return mq},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return mY},traverseSeqArray:function(){return mX},traverseSeqArrayWithIndex:function(){return mz}});var el={};n.r(el),n.d(el,{Alt:function(){return yg},ApT:function(){return y3},ApplicativePar:function(){return yn},ApplicativeSeq:function(){return yi},ApplyPar:function(){return h3},ApplySeq:function(){return yr},Bifunctor:function(){return yv},Chain:function(){return yo},Do:function(){return y0},FromEither:function(){return yl},FromIO:function(){return yp},FromTask:function(){return yd},Functor:function(){return h2},Monad:function(){return yu},MonadIO:function(){return ya},MonadTask:function(){return yc},MonadThrow:function(){return yf},Pointed:function(){return h4},URI:function(){return hJ},alt:function(){return hH},altW:function(){return hz},ap:function(){return hG},apFirst:function(){return h9},apFirstW:function(){return h6},apS:function(){return y5},apSW:function(){return y4},apSecond:function(){return ye},apSecondW:function(){return yt},apW:function(){return hY},as:function(){return h8},asUnit:function(){return h7},bimap:function(){return hU},bind:function(){return y8},bindTo:function(){return y1},bindW:function(){return y7},bracket:function(){return yZ},bracketW:function(){return yQ},chain:function(){return vc},chainEitherK:function(){return yW},chainEitherKW:function(){return yD},chainFirst:function(){return vl},chainFirstEitherK:function(){return yN},chainFirstEitherKW:function(){return yA},chainFirstIOK:function(){return yV},chainFirstTaskK:function(){return yz},chainFirstW:function(){return vp},chainIOEitherK:function(){return y$},chainIOEitherKW:function(){return yX},chainIOK:function(){return yK},chainNullableK:function(){return hT},chainOptionK:function(){return yT},chainOptionKW:function(){return yS},chainTaskK:function(){return yH},chainTaskOptionK:function(){return hk},chainTaskOptionKW:function(){return hE},chainW:function(){return vf},filterOrElse:function(){return yj},filterOrElseW:function(){return yq},flap:function(){return h5},flatMap:function(){return hK},flatMapEither:function(){return yE},flatMapIO:function(){return yk},flatMapIOEither:function(){return yF},flatMapNullable:function(){return yw},flatMapOption:function(){return yM},flatMapTask:function(){return yP},flatMapTaskOption:function(){return yL},flatten:function(){return hB},flattenW:function(){return hV},fold:function(){return hp},foldW:function(){return hs},fromEither:function(){return ho},fromEitherK:function(){return yG},fromIO:function(){return hr},fromIOEither:function(){return hu},fromIOEitherK:function(){return hP},fromIOK:function(){return yY},fromNullable:function(){return h_},fromNullableK:function(){return hb},fromOption:function(){return y_},fromOptionK:function(){return yb},fromPredicate:function(){return yU},fromTask:function(){return hi},fromTaskK:function(){return yB},fromTaskOption:function(){return ha},fromTaskOptionK:function(){return hM},getAltTaskValidation:function(){return hQ},getApplicativeTaskValidation:function(){return hZ},getApplyMonoid:function(){return vv},getApplySemigroup:function(){return vy},getCompactable:function(){return h0},getFilterable:function(){return h1},getOrElse:function(){return hm},getOrElseW:function(){return hh},getSemigroup:function(){return vg},getTaskValidation:function(){return v_},left:function(){return m3},leftIO:function(){return hn},leftTask:function(){return he},let:function(){return y2},liftNullable:function(){return yR},liftOption:function(){return yC},map:function(){return hN},mapBoth:function(){return hA},mapError:function(){return hj},mapLeft:function(){return hq},match:function(){return hc},matchE:function(){return hl},matchEW:function(){return hd},matchW:function(){return hf},of:function(){return hX},orElse:function(){return hS},orElseFirst:function(){return vd},orElseFirstIOK:function(){return hC},orElseFirstTaskK:function(){return hx},orElseFirstW:function(){return vs},orElseW:function(){return hI},orLeft:function(){return hO},right:function(){return m9},rightIO:function(){return ht},rightTask:function(){return m6},sequenceArray:function(){return vi},sequenceSeqArray:function(){return va},swap:function(){return hw},tap:function(){return ys},tapEither:function(){return ym},tapError:function(){return hR},tapIO:function(){return yh},tapTask:function(){return yy},taskEither:function(){return vm},taskEitherSeq:function(){return vh},taskify:function(){return yJ},throwError:function(){return h$},toUnion:function(){return hg},traverseArray:function(){return vr},traverseArrayWithIndex:function(){return vn},traverseReadonlyArrayWithIndex:function(){return y6},traverseReadonlyArrayWithIndexSeq:function(){return vt},traverseReadonlyNonEmptyArrayWithIndex:function(){return y9},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ve},traverseSeqArray:function(){return vu},traverseSeqArrayWithIndex:function(){return vo},tryCatch:function(){return hy},tryCatchK:function(){return hv}});var ep={};n.r(ep),n.d(ep,{Alt:function(){return gQ},ApT:function(){return _5},ApplicativePar:function(){return gk},ApplicativeSeq:function(){return gF},ApplyPar:function(){return gx},ApplySeq:function(){return gP},Bifunctor:function(){return gZ},Chain:function(){return gL},Do:function(){return _Z},FromEither:function(){return gU},FromIO:function(){return gj},FromReader:function(){return gG},FromTask:function(){return gq},Functor:function(){return gT},Monad:function(){return gW},MonadIO:function(){return gD},MonadTask:function(){return gN},MonadThrow:function(){return gA},Pointed:function(){return gC},URI:function(){return gy},alt:function(){return gs},altW:function(){return gm},ap:function(){return ga},apFirst:function(){return gO},apFirstW:function(){return gw},apS:function(){return _8},apSW:function(){return _7},apSecond:function(){return gM},apSecondW:function(){return gE},apW:function(){return gc},as:function(){return gS},asUnit:function(){return gI},ask:function(){return g0},asks:function(){return g1},asksReaderTaskEither:function(){return vQ},asksReaderTaskEitherW:function(){return vZ},bimap:function(){return gi},bind:function(){return _1},bindTo:function(){return _Q},bindW:function(){return _2},bracket:function(){return _$},bracketW:function(){return _J},chain:function(){return bu},chainEitherK:function(){return _R},chainEitherKW:function(){return _C},chainFirst:function(){return bc},chainFirstEitherK:function(){return _x},chainFirstEitherKW:function(){return _O},chainFirstIOK:function(){return _A},chainFirstReaderEitherK:function(){return g4},chainFirstReaderEitherKW:function(){return g5},chainFirstReaderIOK:function(){return _i},chainFirstReaderIOKW:function(){return _r},chainFirstReaderK:function(){return g8},chainFirstReaderKW:function(){return g7},chainFirstReaderTaskK:function(){return _t},chainFirstReaderTaskKW:function(){return _e},chainFirstTaskEitherK:function(){return g9},chainFirstTaskEitherKW:function(){return g3},chainFirstTaskK:function(){return _q},chainFirstW:function(){return bf},chainIOEitherK:function(){return _H},chainIOEitherKW:function(){return _B},chainIOK:function(){return _N},chainNullableK:function(){return v$},chainOptionK:function(){return _a},chainOptionKW:function(){return _c},chainReaderEitherK:function(){return _X},chainReaderEitherKW:function(){return _z},chainReaderIOK:function(){return _V},chainReaderIOKW:function(){return _K},chainReaderK:function(){return _G},chainReaderKW:function(){return _Y},chainReaderTaskK:function(){return _k},chainReaderTaskKW:function(){return _E},chainTaskEitherK:function(){return _M},chainTaskEitherKW:function(){return _w},chainTaskK:function(){return _j},chainW:function(){return ba},filterOrElse:function(){return _F},filterOrElseW:function(){return _L},flap:function(){return gR},flatMap:function(){return gl},flatMapEither:function(){return _h},flatMapIO:function(){return _g},flatMapIOEither:function(){return _S},flatMapNullable:function(){return _s},flatMapOption:function(){return _m},flatMapReader:function(){return _b},flatMapReaderEither:function(){return _I},flatMapReaderIO:function(){return _T},flatMapReaderTask:function(){return _v},flatMapTask:function(){return __},flatMapTaskEither:function(){return _y},flatten:function(){return gd},flattenW:function(){return gp},fold:function(){return vG},foldW:function(){return vK},fromEither:function(){return vF},fromEitherK:function(){return _W},fromIO:function(){return vW},fromIOEither:function(){return vN},fromIOEitherK:function(){return v5},fromIOK:function(){return _D},fromNullable:function(){return vz},fromNullableK:function(){return vX},fromOption:function(){return _o},fromOptionK:function(){return _u},fromPredicate:function(){return _P},fromReader:function(){return vL},fromReaderEither:function(){return vA},fromReaderEitherK:function(){return v3},fromReaderIOK:function(){return _n},fromReaderK:function(){return g2},fromReaderTaskK:function(){return g6},fromTask:function(){return vD},fromTaskEither:function(){return vb},fromTaskEitherK:function(){return v4},fromTaskK:function(){return _U},getAltReaderTaskValidation:function(){return gb},getApplicativeReaderTaskValidation:function(){return g_},getApplyMonoid:function(){return bh},getApplySemigroup:function(){return bm},getCompactable:function(){return gv},getFilterable:function(){return gg},getOrElse:function(){return vV},getOrElseW:function(){return vB},getReaderTaskValidation:function(){return bv},getSemigroup:function(){return by},left:function(){return vT},leftIO:function(){return vE},leftReader:function(){return vx},leftReaderIO:function(){return vP},leftReaderTask:function(){return vw},leftTask:function(){return vR},let:function(){return _0},liftNullable:function(){return _l},liftOption:function(){return _p},local:function(){return vJ},map:function(){return gn},mapBoth:function(){return gr},mapError:function(){return go},mapLeft:function(){return gu},match:function(){return vU},matchE:function(){return vq},matchEW:function(){return vY},matchW:function(){return vj},of:function(){return gf},orElse:function(){return v0},orElseFirst:function(){return bl},orElseFirstW:function(){return bp},orElseW:function(){return v1},orLeft:function(){return v8},readerTaskEither:function(){return bd},readerTaskEitherSeq:function(){return bs},right:function(){return vS},rightIO:function(){return vM},rightReader:function(){return vC},rightReaderIO:function(){return vk},rightReaderTask:function(){return vO},rightTask:function(){return vI},run:function(){return bg},sequenceArray:function(){return bn},sequenceSeqArray:function(){return bo},swap:function(){return v7},tap:function(){return gY},tapEither:function(){return gK},tapError:function(){return v2},tapIO:function(){return gV},tapReader:function(){return gH},tapReaderEither:function(){return gz},tapReaderIO:function(){return gJ},tapReaderTask:function(){return g$},tapTask:function(){return gB},tapTaskEither:function(){return gX},throwError:function(){return gh},toUnion:function(){return vH},traverseArray:function(){return bt},traverseArrayWithIndex:function(){return be},traverseReadonlyArrayWithIndex:function(){return _3},traverseReadonlyArrayWithIndexSeq:function(){return _6},traverseReadonlyNonEmptyArrayWithIndex:function(){return _4},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return _9},traverseSeqArray:function(){return bi},traverseSeqArrayWithIndex:function(){return br}});var ed={};n.r(ed),n.d(ed,{Bifunctor:function(){return b5},Comonad:function(){return b3},Foldable:function(){return b9},Functor:function(){return b1},Semigroupoid:function(){return b4},Traversable:function(){return b6},URI:function(){return b0},bimap:function(){return bG},compose:function(){return bV},duplicate:function(){return bz},extend:function(){return bB},extract:function(){return bH},flap:function(){return b2},foldMap:function(){return b$},fst:function(){return bR},getApplicative:function(){return bM},getApply:function(){return bO},getChain:function(){return bE},getChainRec:function(){return bP},getMonad:function(){return bk},map:function(){return b8},mapFst:function(){return bY},mapLeft:function(){return b7},mapSnd:function(){return bK},readonlyTuple:function(){return Te},reduce:function(){return bX},reduceRight:function(){return bJ},sequence:function(){return bQ},snd:function(){return bC},swap:function(){return bx},traverse:function(){return bZ}});var es={};n.r(es),n.d(es,{Compactable:function(){return Sg},Filterable:function(){return S_},FilterableWithIndex:function(){return Sb},Foldable:function(){return Sw},FoldableWithIndex:function(){return SM},Functor:function(){return Ss},FunctorWithIndex:function(){return Sh},Traversable:function(){return SE},TraversableWithIndex:function(){return Sk},URI:function(){return Sf},Witherable:function(){return SL},collect:function(){return Tf},compact:function(){return Sa},deleteAt:function(){return Tm},difference:function(){return TK},elem:function(){return Tq},empty:function(){return SW},every:function(){return TU},filter:function(){return Se},filterMap:function(){return St},filterMapWithIndex:function(){return TF},filterWithIndex:function(){return TL},flap:function(){return Sm},foldMap:function(){return So},foldMapWithIndex:function(){return TI},fromEntries:function(){return TN},fromFoldable:function(){return TW},fromFoldableMap:function(){return TA},getDifferenceMagma:function(){return SO},getEq:function(){return Sp},getFoldable:function(){return Sy},getFoldableWithIndex:function(){return Sv},getIntersectionSemigroup:function(){return Sx},getMonoid:function(){return Sd},getShow:function(){return Sl},getTraversable:function(){return ST},getTraversableWithIndex:function(){return SS},getUnionMonoid:function(){return SC},getUnionSemigroup:function(){return SR},getWitherable:function(){return SI},has:function(){return Ts},hasOwnProperty:function(){return SN},insertAt:function(){return SD},intersection:function(){return TY},isEmpty:function(){return Tu},isSubrecord:function(){return Tg},keys:function(){return Tc},lookup:function(){return T_},map:function(){return TT},mapWithIndex:function(){return Tb},modifyAt:function(){return Ty},partition:function(){return Sn},partitionMap:function(){return Sr},partitionMapWithIndex:function(){return Tk},partitionWithIndex:function(){return TP},pop:function(){return Tv},record:function(){return SA},reduce:function(){return Si},reduceRight:function(){return Su},reduceRightWithIndex:function(){return TR},reduceWithIndex:function(){return TS},separate:function(){return Sc},sequence:function(){return Tw},singleton:function(){return TC},size:function(){return To},some:function(){return Tj},toArray:function(){return Tl},toEntries:function(){return TD},toUnfoldable:function(){return Tp},traverse:function(){return TO},traverseWithIndex:function(){return Tx},union:function(){return TG},updateAt:function(){return Th},upsertAt:function(){return Td},wilt:function(){return TE},wither:function(){return TM}});var em={};n.r(em),n.d(em,{and:function(){return SK},compose:function(){return SB},fromEitherK:function(){return Sj},fromOptionK:function(){return SU},id:function(){return Sq},not:function(){return SG},or:function(){return SY},zero:function(){return SV}});var eh={};n.r(eh),n.d(eh,{getFunctionRing:function(){return S$},getTupleRing:function(){return SX},negate:function(){return Sz},tuple:function(){return SH}});var ey={};n.r(ey);var ev={};n.r(ev),n.d(ev,{getFunctionSemiring:function(){return SJ}});var eg={};n.r(eg),n.d(eg,{getStructShow:function(){return S2},getTupleShow:function(){return S1},showBoolean:function(){return S8},showNumber:function(){return S5},showString:function(){return S7},struct:function(){return SQ},tuple:function(){return S0}});var e_={};n.r(e_),n.d(e_,{ap:function(){return S9},chain:function(){return S6},evaluate:function(){return Ir},execute:function(){return Ii},flatMap:function(){return Ie},fromF:function(){return In},fromState:function(){return It},getStateM:function(){return Io},map:function(){return S3},of:function(){return S4}});var eb={};n.r(eb),n.d(eb,{Alt:function(){return Rk},Applicative:function(){return Rc},Apply:function(){return Rr},Bifunctor:function(){return RE},Chain:function(){return Rf},FromEither:function(){return RT},FromIO:function(){return RS},FromReader:function(){return RR},FromState:function(){return Rl},FromTask:function(){return RI},Functor:function(){return I9},Monad:function(){return Rv},MonadIO:function(){return Rg},MonadTask:function(){return R_},MonadThrow:function(){return Rb},Pointed:function(){return Rn},URI:function(){return I3},alt:function(){return I5},altW:function(){return I7},ap:function(){return Iq},apFirst:function(){return Ri},apFirstW:function(){return Ro},apS:function(){return Cr},apSW:function(){return Ci},apSecond:function(){return Ru},apSecondW:function(){return Ra},apW:function(){return IG},as:function(){return I6},asUnit:function(){return Re},ask:function(){return RP},asks:function(){return RF},asksStateReaderTaskEither:function(){return IO},asksStateReaderTaskEitherW:function(){return Ix},bimap:function(){return IU},bind:function(){return Ct},bindTo:function(){return R6},bindW:function(){return Cn},chain:function(){return Cl},chainEitherK:function(){return RY},chainEitherKW:function(){return RK},chainFirst:function(){return Cd},chainFirstEitherK:function(){return RV},chainFirstEitherKW:function(){return RB},chainFirstIOK:function(){return RQ},chainFirstReaderK:function(){return RN},chainFirstReaderKW:function(){return RA},chainFirstTaskK:function(){return R4},chainFirstW:function(){return Cs},chainIOEitherK:function(){return R8},chainIOEitherKW:function(){return R2},chainIOK:function(){return RZ},chainOptionK:function(){return Rq},chainOptionKW:function(){return RG},chainReaderK:function(){return RW},chainReaderKW:function(){return RD},chainReaderTaskEitherK:function(){return IP},chainReaderTaskEitherKW:function(){return Ik},chainStateK:function(){return Ry},chainTaskEitherK:function(){return R1},chainTaskEitherKW:function(){return R0},chainTaskK:function(){return R5},chainW:function(){return Cp},evalState:function(){return Cy},evaluate:function(){return R3},execState:function(){return Cv},execute:function(){return R9},filterOrElse:function(){return Rz},filterOrElseW:function(){return RX},flap:function(){return Rt},flatMap:function(){return IV},flatMapEither:function(){return IZ},flatMapIO:function(){return Iz},flatMapIOEither:function(){return IJ},flatMapOption:function(){return IQ},flatMapReader:function(){return I$},flatMapReaderTaskEither:function(){return I0},flatMapState:function(){return I1},flatMapTask:function(){return IX},flatMapTaskEither:function(){return IH},flatten:function(){return I8},flattenW:function(){return I2},fromEither:function(){return Iy},fromEitherK:function(){return R$},fromIO:function(){return Ig},fromIOEither:function(){return IS},fromIOEitherK:function(){return Iw},fromIOK:function(){return RJ},fromOption:function(){return RU},fromOptionK:function(){return Rj},fromPredicate:function(){return RH},fromReader:function(){return Iv},fromReaderEither:function(){return II},fromReaderK:function(){return RL},fromReaderTaskEither:function(){return IR},fromReaderTaskEitherK:function(){return IE},fromState:function(){return Ib},fromStateK:function(){return Rh},fromTask:function(){return I_},fromTaskEither:function(){return IT},fromTaskEitherK:function(){return IM},fromTaskK:function(){return R7},get:function(){return Rp},gets:function(){return Rm},left:function(){return Iu},leftIO:function(){return Is},leftReader:function(){return Ip},leftState:function(){return Ih},leftTask:function(){return If},let:function(){return Ce},local:function(){return IC},map:function(){return IA},mapLeft:function(){return Ij},modify:function(){return Rs},of:function(){return IY},put:function(){return Rd},right:function(){return Ia},rightIO:function(){return Id},rightReader:function(){return Il},rightState:function(){return Im},rightTask:function(){return Ic},run:function(){return Cg},sequenceArray:function(){return Cf},stateReaderTaskEither:function(){return Cm},stateReaderTaskEitherSeq:function(){return Ch},tap:function(){return RC},tapEither:function(){return Rx},tapIO:function(){return RO},tapReader:function(){return RM},tapTask:function(){return Rw},throwError:function(){return I4},traverseArray:function(){return Cc},traverseArrayWithIndex:function(){return Ca},traverseReadonlyArrayWithIndex:function(){return Cu},traverseReadonlyNonEmptyArrayWithIndex:function(){return Co}});var eT={};n.r(eT),n.d(eT,{Comonad:function(){return Ck},Functor:function(){return CM},URI:function(){return Cw},duplicate:function(){return Cx},experiment:function(){return CS},extend:function(){return CR},extract:function(){return CC},flap:function(){return CE},map:function(){return CO},peeks:function(){return CT},seek:function(){return C_},seeks:function(){return Cb},store:function(){return CP}});var eS={};n.r(eS),n.d(eS,{fanOut:function(){return CL},fanout:function(){return CD},split:function(){return CF},splitStrong:function(){return CW}});var eI={};n.r(eI),n.d(eI,{evolve:function(){return CA},getAssignSemigroup:function(){return CN}});var eR={};n.r(eR),n.d(eR,{Alt:function(){return xj},Alternative:function(){return xY},ApT:function(){return x6},ApplicativePar:function(){return xw},ApplicativeSeq:function(){return xk},ApplyPar:function(){return xC},ApplySeq:function(){return xE},Chain:function(){return xP},Compactable:function(){return xH},Do:function(){return x7},Filterable:function(){return xz},FromEither:function(){return xF},FromIO:function(){return xL},FromTask:function(){return xW},Functor:function(){return xb},Monad:function(){return xK},MonadIO:function(){return xV},MonadTask:function(){return xB},Pointed:function(){return xR},URI:function(){return x_},Zero:function(){return xq},alt:function(){return xu},altW:function(){return xa},ap:function(){return C6},apFirst:function(){return xx},apS:function(){return x9},apSecond:function(){return xO},as:function(){return xT},asUnit:function(){return xS},bind:function(){return x3},bindTo:function(){return x5},chain:function(){return Ol},chainEitherK:function(){return xQ},chainFirst:function(){return Op},chainFirstEitherK:function(){return x0},chainFirstIOK:function(){return xJ},chainFirstTaskK:function(){return x8},chainIOK:function(){return x$},chainNullableK:function(){return C5},chainOptionK:function(){return C3},chainTaskK:function(){return x2},compact:function(){return xl},filter:function(){return xd},filterMap:function(){return xs},flap:function(){return xI},flatMap:function(){return xt},flatMapIO:function(){return xr},flatMapTask:function(){return xi},flatten:function(){return xo},fold:function(){return C$},foldW:function(){return CZ},fromEither:function(){return CY},fromEitherK:function(){return xZ},fromIO:function(){return CK},fromIOK:function(){return xX},fromNullable:function(){return C1},fromNullableK:function(){return C7},fromOption:function(){return CG},fromOptionK:function(){return C4},fromPredicate:function(){return Cq},fromTask:function(){return CV},fromTaskEither:function(){return CB},fromTaskK:function(){return x1},getOrElse:function(){return CQ},getOrElseW:function(){return C0},guard:function(){return xG},let:function(){return x4},map:function(){return C9},match:function(){return CH},matchE:function(){return CX},matchEW:function(){return CJ},matchW:function(){return Cz},none:function(){return xf},of:function(){return xe},partition:function(){return xm},partitionMap:function(){return xh},separate:function(){return xp},sequenceArray:function(){return Ou},sequenceSeqArray:function(){return Of},some:function(){return Cj},tap:function(){return xD},tapEither:function(){return xN},tapIO:function(){return xA},tapTask:function(){return xU},traverseArray:function(){return Oo},traverseArrayWithIndex:function(){return Oi},traverseReadonlyArrayWithIndex:function(){return Ot},traverseReadonlyArrayWithIndexSeq:function(){return Or},traverseReadonlyNonEmptyArrayWithIndex:function(){return Oe},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return On},traverseSeqArray:function(){return Oc},traverseSeqArrayWithIndex:function(){return Oa},tryCatch:function(){return C2},tryCatchK:function(){return C8},zero:function(){return xc}});var eC={};n.r(eC),n.d(eC,{ApT:function(){return wo},Bifunctor:function(){return O8},Foldable:function(){return O5},FromEither:function(){return O3},FromThese:function(){return O7},Functor:function(){return O0},Pointed:function(){return O2},Traversable:function(){return O4},URI:function(){return OQ},bimap:function(){return OK},both:function(){return Ov},elem:function(){return wt},exists:function(){return wn},flap:function(){return O1},fold:function(){return OT},foldMap:function(){return Oz},foldW:function(){return O_},fromOption:function(){return O6},fromOptionK:function(){return we},fromOptions:function(){return OD},fromPredicate:function(){return O9},getApplicative:function(){return OO},getApply:function(){return Ox},getChain:function(){return Ow},getEq:function(){return OR},getLeft:function(){return OE},getLeftOnly:function(){return OL},getMonad:function(){return OM},getRight:function(){return Ok},getRightOnly:function(){return OW},getSemigroup:function(){return OC},getShow:function(){return OI},isBoth:function(){return Om},isLeft:function(){return Od},isRight:function(){return Os},left:function(){return Oh},leftOrBoth:function(){return OP},map:function(){return OB},mapLeft:function(){return OV},match:function(){return Ob},matchW:function(){return Og},of:function(){return OZ},reduce:function(){return OH},reduceRight:function(){return OX},right:function(){return Oy},rightOrBoth:function(){return OF},sequence:function(){return OJ},swap:function(){return OS},these:function(){return wc},toTuple:function(){return wi},toTuple2:function(){return wr},traverse:function(){return O$},traverseReadonlyArrayWithIndex:function(){return wa},traverseReadonlyNonEmptyArrayWithIndex:function(){return wu}});var ex={};n.r(ex),n.d(ex,{ap:function(){return wh},bimap:function(){return wv},both:function(){return wp},chain:function(){return wy},getTheseM:function(){return wI},left:function(){return wl},leftF:function(){return ws},map:function(){return wm},mapLeft:function(){return wg},match:function(){return w_},matchE:function(){return wb},right:function(){return wf},rightF:function(){return wd},swap:function(){return wT},toTuple2:function(){return wS}});var eO={};n.r(eO),n.d(eO,{ApT:function(){return Mu},Bifunctor:function(){return w7},FromEither:function(){return w5},FromIO:function(){return Mt},FromTask:function(){return Mr},FromThese:function(){return w6},Functor:function(){return w1},Pointed:function(){return w8},URI:function(){return w$},bifunctorTaskThese:function(){return Md},bimap:function(){return wH},both:function(){return wx},flap:function(){return w2},fold:function(){return wU},foldW:function(){return wq},fromEither:function(){return wk},fromIO:function(){return wF},fromIOEither:function(){return wL},fromIOK:function(){return Mn},fromOption:function(){return w4},fromOptionK:function(){return w3},fromPredicate:function(){return w9},fromTask:function(){return wW},fromTaskK:function(){return Mi},fromThese:function(){return wP},fromTheseK:function(){return Me},functorTaskThese:function(){return Mp},getApplicative:function(){return wZ},getApply:function(){return wJ},getChain:function(){return wQ},getMonad:function(){return w0},getSemigroup:function(){return Mh},left:function(){return wR},leftIO:function(){return wE},leftTask:function(){return ww},map:function(){return wB},mapLeft:function(){return wz},match:function(){return wD},matchE:function(){return wA},matchEW:function(){return wj},matchW:function(){return wN},of:function(){return wX},right:function(){return wC},rightIO:function(){return wM},rightTask:function(){return wO},swap:function(){return wG},taskThese:function(){return Mm},toTuple:function(){return Ms},toTuple2:function(){return Mo},traverseReadonlyArrayWithIndex:function(){return Mc},traverseReadonlyArrayWithIndexSeq:function(){return Ml},traverseReadonlyNonEmptyArrayWithIndex:function(){return Ma},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Mf}});var ew={};n.r(ew),n.d(ew,{Functor:function(){return MR},URI:function(){return MI},censor:function(){return M_},flap:function(){return MC},getComonad:function(){return Mb},listen:function(){return Mv},listens:function(){return Mg},map:function(){return MS},traced:function(){return Mx},tracks:function(){return My}});var eM={};n.r(eM),n.d(eM,{getTraversableComposition:function(){return MM},sequence:function(){return Mw},traverse:function(){return MO}});var eE={};n.r(eE);var ek={};n.r(ek),n.d(ek,{Applicative:function(){return Ei},Apply:function(){return Et},Chain:function(){return Eo},Comonad:function(){return El},Do:function(){return Ep},Foldable:function(){return Ec},Functor:function(){return M9},Monad:function(){return Eu},Pointed:function(){return Ee},Traversable:function(){return Ef},URI:function(){return M3},ap:function(){return Mz},apFirst:function(){return En},apS:function(){return Eh},apSecond:function(){return Er},bind:function(){return Em},bindTo:function(){return Ed},chain:function(){return Eg},chainFirst:function(){return Ea},drawForest:function(){return ML},drawTree:function(){return MW},duplicate:function(){return MJ},elem:function(){return Ey},exists:function(){return Ev},extend:function(){return M$},extract:function(){return M8},flap:function(){return M6},flatMap:function(){return MX},flatten:function(){return MZ},fold:function(){return Mj},foldMap:function(){return M1},getEq:function(){return MP},getShow:function(){return Mk},let:function(){return Es},make:function(){return ME},map:function(){return MQ},of:function(){return M4},reduce:function(){return M0},reduceRight:function(){return M2},sequence:function(){return M5},traverse:function(){return M7},tree:function(){return E_},unfoldForest:function(){return MN},unfoldForestM:function(){return MU},unfoldTree:function(){return MD},unfoldTreeM:function(){return MA}});var eP={};n.r(eP),n.d(eP,{Bifunctor:function(){return EQ},Comonad:function(){return E1},Foldable:function(){return E2},Functor:function(){return EJ},Semigroupoid:function(){return E0},Traversable:function(){return E8},URI:function(){return E$},bimap:function(){return EA},compose:function(){return Eq},duplicate:function(){return EY},extend:function(){return EG},extract:function(){return EK},flap:function(){return EZ},foldMap:function(){return EV},fst:function(){return Eb},getApplicative:function(){return EC},getApply:function(){return EI},getChain:function(){return Ex},getChainRec:function(){return Ew},getMonad:function(){return EO},map:function(){return E7},mapFst:function(){return EU},mapLeft:function(){return E5},mapSnd:function(){return Ej},reduce:function(){return EB},reduceRight:function(){return EH},sequence:function(){return EX},snd:function(){return ET},swap:function(){return ES},traverse:function(){return Ez},tuple:function(){return E4}});var eF={};n.r(eF);var eL={};n.r(eL),n.d(eL,{getValidationM:function(){return E3}});var eW={};n.r(eW),n.d(eW,{Monoid:function(){return E6},Semigroup:function(){return E9}});var eD={};n.r(eD),n.d(eD,{Functor:function(){return ks},URI:function(){return ka},censor:function(){return ki},evalWriter:function(){return kv},evaluate:function(){return kh},execWriter:function(){return kg},execute:function(){return ky},flap:function(){return km},getApplicative:function(){return kl},getApply:function(){return kf},getChain:function(){return kp},getMonad:function(){return kd},getPointed:function(){return kc},listen:function(){return kt},listens:function(){return kr},map:function(){return ku},pass:function(){return kn},tell:function(){return ke},writer:function(){return k_}});var eN={};function eA(e){return function(t){return function(n){return n.reduce(function(t,n){return e.alt(t,function(){return n})},t)}}}n.r(eN),n.d(eN,{getWriterM:function(){return kb}});var eU=n(42925);function ej(e){return eA(e)(e.zero())}function eq(e){var t=(0,eU.getApplySemigroup)(e);return function(n){var r=t(n);return{concat:function(t,n){return e.alt(r.concat(t,n),function(){return e.alt(t,function(){return n})})},empty:e.zero()}}}var eG=n(46111),eY=n(1358),eK=function(e){return"boolean"==typeof e},eV=function(e,t){return function(n){return n?t():e()}},eB=eV,eH=eB,ez=eH,eX={equals:function(e,t){return e===t}},e$={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},eJ={concat:function(e,t){return e&&t}},eZ={concat:function(e,t){return e||t}},eQ={concat:eJ.concat,empty:!0},e0={concat:eZ.concat,empty:!1},e1={equals:eX.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},e2={show:function(e){return JSON.stringify(e)}},e8=n(42275),e7=function(e){return{meet:function(t,n){return e.join(t,n)},join:function(t,n){return e.meet(t,n)},zero:e.one,one:e.zero,implies:function(t,n){return e.join(e.not(t),n)},not:e.not}},e5={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},e4=e7,e3={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},e9=e8.getBooleanAlgebra,e6=n(5586),te=function(e){return e6.clamp(e)(e.bottom,e.top)},tt=function(e){var t=e6.reverse(e);return{equals:t.equals,compare:t.compare,top:e.bottom,bottom:e.top}},tn={equals:e6.ordNumber.equals,compare:e6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(e){return{meet:(0,e6.min)(e),join:(0,e6.max)(e)}}function ti(e){var t=tr(e);return function(e,n){return{join:t.join,meet:t.meet,zero:e,one:n}}}var to=n(88543),tu=n(56661);function ta(e,t){return function(n,r){return t.compose(e.right(r),e.left(n))}}function tc(e,t){var n=ta(e,t);return function(r,i){return t.compose(e.promap(t.id(),function(e){return"Left"===e._tag?e.left:e.right},e8.identity),n(r,i))}}function tf(e){return ta(e,e)}function tl(e){return tc(e,e)}var tp=n(67560),td=n(20492),ts=n(34219);function tm(e,t){return function(n){return e.map(n,t.compact)}}function th(e,t,n){var r=tm(e,t),i=(0,tp.map)(e,n);return function(e){return ts.separated(r((0,e8.pipe)(e,i(td.getLeft))),r((0,e8.pipe)(e,i(td.getRight))))}}function ty(e,t){return{map:(0,tp.getFunctorComposition)(e,t).map,compact:tm(e,t),separate:th(e,t,t)}}var tv=function(e){return function(){return console.log(e)}},tg=function(e){return function(){return console.warn(e)}},t_=function(e){return function(){return console.error(e)}},tb=function(e){return function(){return console.info(e)}},tT=n(90817),tS=n(76627),tI={equals:function(e,t){return e.valueOf()===t.valueOf()}},tR={equals:function(e,t){return e.getDate()===t.getDate()}},tC={equals:function(e,t){return e.getMonth()===t.getMonth()}},tx={equals:function(e,t){return e.getFullYear()===t.getFullYear()}},tO=(0,e8.pipe)(tS.Ord,e6.contramap(function(e){return e.valueOf()})),tw=function(){return new Date},tM=function(){return new Date().getTime()},tE=n(81878);function tk(e){return(0,e8.flow)(tE.right,e.of)}function tP(e){return(0,e8.flow)(tE.left,e.of)}function tF(e){return function(t){return e.map(t,tE.right)}}function tL(e){return function(t){return e.map(t,tE.left)}}function tW(e){return function(t){return(0,e8.flow)(tE.fromNullable(t),e.of)}}function tD(e){var t=tW(e);return function(e){var n=t(e);return function(e){return(0,e8.flow)(e,n)}}}function tN(e){var t=tj(e),n=tD(e);return function(e){var r=n(e);return function(e){return t(r(e))}}}function tA(e){return(0,tp.map)(e,tE.Functor)}function tU(e){return(0,eU.ap)(e,tE.Apply)}function tj(e){var t=tq(e);return function(e){return function(n){return t(n,e)}}}function tq(e){return function(t,n){return e.chain(t,function(t){return tE.isLeft(t)?e.of(t):n(t.right)})}}function tG(e){return function(t){return function(n){return e.chain(n,function(n){return tE.isLeft(n)?t():e.of(n)})}}}function tY(e){var t=tK(e);return function(e,n){return function(r){return t(r,e,n)}}}function tK(e){return function(t,n,r){return e.map(t,tE.bimap(n,r))}}function tV(e){var t=tB(e);return function(e){return function(n){return t(n,e)}}}function tB(e){return function(t,n){return e.map(t,tE.mapLeft(n))}}function tH(e,t){return function(n){return function(r){return e.chain(r,tE.match(function(r){return e.map(n(),tE.mapLeft(function(e){return t.concat(r,e)}))},tk(e)))}}}function tz(e){return function(t,n){return function(r){return e.map(r,tE.match(t,n))}}}function tX(e){return function(t,n){return function(r){return e.chain(r,tE.match(t,n))}}}function t$(e){return function(t){return function(n){return e.chain(n,tE.match(t,e.of))}}}function tJ(e){return function(t){return function(n){return e.chain(n,function(n){return tE.isLeft(n)?t(n.left):e.of(n)})}}}function tZ(e){var t=tQ(e);return function(e){return function(n){return t(n,e)}}}function tQ(e){var t=tJ(e);return function(n,r){return(0,e8.pipe)(n,t(function(t){return e.map(r(t),function(e){return tE.isLeft(e)?e:tE.left(t)})}))}}function t0(e){return function(t){return function(n){return e.chain(n,tE.match(function(n){return e.map(t(n),tE.left)},function(t){return e.of(tE.right(t))}))}}}function t1(e){return function(t){return e.map(t,tE.swap)}}function t2(e){return function(t){return e.map(t,tE.toUnion)}}function t8(e){var t=tU(e),n=tA(e),r=tj(e),i=tG(e),o=tY(e),u=tV(e),a=tX(e),c=t$(e),f=tJ(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:tk(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},alt:function(e,t){return(0,e8.pipe)(e,i(t))},bimap:function(e,t,n){return(0,e8.pipe)(e,o(t,n))},mapLeft:function(e,t){return(0,e8.pipe)(e,u(t))},fold:function(e,t,n){return(0,e8.pipe)(e,a(t,n))},getOrElse:function(e,t){return(0,e8.pipe)(e,c(t))},orElse:function(e,t){return(0,e8.pipe)(e,f(t))},swap:t1(e),rightM:tF(e),leftM:tL(e),left:tP(e)}}var t7=n(47797),t5=n(65191);function t4(e,t){var n=t.zero,r=function(i,o){return e.equals(o,n)?i:r(o,t.mod(i,o))};return r}function t3(e,t){var n=t.zero,r=t4(e,t);return function(i,o){return e.equals(i,n)||e.equals(o,n)?n:t.div(t.mul(i,o),r(i,o))}}var t9={add:function(e,t){return e+t},zero:0,mul:function(e,t){return e*t},one:1,sub:function(e,t){return e-t},degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}},t6=n(88491);function ne(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filter(e,n)})}}}function nt(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filterMap(e,n)})}}}function nn(e,t){var n=ne(e,t);return function(e){var t=n((0,t6.not)(e)),r=n(e);return function(e){return(0,ts.separated)(t(e),r(e))}}}function nr(e,t){var n=nt(e,t);return function(e){return function(t){return(0,ts.separated)((0,e8.pipe)(t,n(function(t){return(0,td.getLeft)(e(t))})),(0,e8.pipe)(t,n(function(t){return(0,td.getRight)(e(t))})))}}}function ni(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=tm(e,t),i=th(e,t,t),o=ne(e,t),u=nt(e,t),a=nn(e,t),c=nr(e,t);return{map:n,compact:r,separate:i,filter:function(e,t){return(0,e8.pipe)(e,o(t))},filterMap:function(e,t){return(0,e8.pipe)(e,u(t))},partition:function(e,t){return(0,e8.pipe)(e,a(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,c(t))}}}function no(e,t){return function(n,r){return function(i){return e.reduce(i,n,function(e,n){return t.reduce(n,e,r)})}}}function nu(e,t){return function(n){var r=e.foldMap(n),i=t.foldMap(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function na(e,t){return function(n,r){return function(i){return e.reduceRight(i,n,function(e,n){return t.reduceRight(e,n,r)})}}}function nc(e,t){return function(n,r){return function(i){return t.reduce(i,e.of(n),function(t,n){return e.chain(t,function(e){return r(e,n)})})}}}function nf(e,t){return function(n,r){return t.reduce(r,{init:!0,acc:e.empty},function(t,r){var i=t.init,o=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:e.concat(e.concat(o,n),r)}}).acc}}function nl(e){return function(t){return e.reduce(t,[],function(e,t){return e.push(t),e})}}function np(e,t){var n=e.of(void 0);return function(r,i){return t.reduce(r,n,function(t,n){var r;return r=i(n),e.ap(e.map(t,e8.constant),r)})}}function nd(e,t){return function(n,r,i){return t.reduce(n,e.of(r),function(t,n){return e.chain(t,function(e){return i(e,n)})})}}var ns=nl;function nm(e,t){var n=no(e,t),r=nu(e,t),i=na(e,t);return{reduce:function(e,t,r){return(0,e8.pipe)(e,n(t,r))},foldMap:function(e){var t=r(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,e8.pipe)(e,i(t,n))}}}function nh(e,t){return function(n,r){return function(i){return e.reduceWithIndex(i,n,function(e,n,i){return t.reduceWithIndex(i,n,function(t,n,i){return r([e,t],n,i)})})}}}function ny(e,t){return function(n){var r=e.foldMapWithIndex(n),i=t.foldMapWithIndex(n);return function(e){return function(t){return r(t,function(t,n){return i(n,function(n,r){return e([t,n],r)})})}}}}function nv(e,t){return function(n,r){return function(i){return e.reduceRightWithIndex(i,n,function(e,n,i){return t.reduceRightWithIndex(n,i,function(t,n,i){return r([e,t],n,i)})})}}}function ng(e,t){var n=nm(e,t),r=nh(e,t),i=ny(e,t),o=nv(e,t);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(e,t,n){return(0,e8.pipe)(e,r(t,n))},foldMapWithIndex:function(e){var t=i(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,e8.pipe)(e,o(t,n))}}}var n_=n(25162);function nb(e){return function(t){return(0,e8.flow)(t,e.fromIO)}}function nT(e,t){return function(n){var r=(0,e8.flow)(n,e.fromIO);return function(e){return t.chain(e,r)}}}function nS(e,t){var n=nI(e,t);return function(e){return function(t){return n(t,e)}}}function nI(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromIO))}}var nR=n(97963),nC=function(){return e8.identity},nx=e8.identity,nO=function(e){return function(t){return function(n){return t(e(n))}}},nw=function(e){return function(t){return e(t)(t)}},nM=nw,nE=function(e,t){return(0,e8.pipe)(e,nL(t))},nk=function(e,t){return(0,e8.pipe)(e,nD(t))},nP=function(e,t){return(0,e8.pipe)(e,nq(t))},nF=function(e,t,n){return(0,e8.pipe)(e,nG(t,n))},nL=function(e){return function(t){return function(n){return e(t(n))}}},nW=function(e){return function(t){return function(n){return t(n)(e(n))}}},nD=nW,nN=e8.constant,nA=(0,e8.dual)(2,function(e,t){return function(n){return t(e(n))(n)}}),nU=nA(e8.identity),nj=nU,nq=function(e){return function(t){return(0,e8.flow)(e,t)}},nG=function(e,t){return function(n){return function(r){return t(n(e(r)))}}},nY=function(){return e8.identity},nK=function(e){return function(t){var n=t[0],r=t[1];return[e(n),r]}},nV=function(e){return function(t){return[t[0],e(t[1])]}},nB=function(e){return tE.fold(function(t){return nR.t$(e(t))},tE.right)},nH=function(e){return tE.fold(tE.left,function(t){return nR.F2(e(t))})},nz="Reader",nX={URI:nz,map:nE},n$=(0,tp.flap)(nX),nJ={URI:nz,of:nN},nZ={URI:nz,map:nE,ap:nk},nQ=(0,eU.apFirst)(nZ),n0=nQ,n1=(0,eU.apSecond)(nZ),n2=n1,n8={URI:nz,map:nE,ap:nk,of:nN},n7={URI:nz,map:nE,ap:nk,chain:nA},n5={URI:nz,map:nE,of:nN,ap:nk,chain:nA},n4=(0,e8.dual)(2,to.tap(n7)),n3={URI:nz,map:nE,promap:nF},n9={URI:nz,compose:nP,id:nY},n6={URI:nz,map:nE,promap:nF,first:nK,second:nV},re={URI:nz,map:nE,promap:nF,left:nB,right:nH},rt=(0,tp.bindTo)(nX),rn=(0,tp.let)(nX),rr=to.bind(n7),ri=rr,ro=nN(nR.F4),ru=(0,eU.apS)(nZ),ra=ru,rc=nN(nR.Xl),rf=function(e){return function(t){return function(n){for(var r=[e(0,nR.YM(t))(n)],i=1;i<t.length;i++)r.push(e(i,t[i])(n));return r}}},rl=function(e){var t=rf(e);return function(e){return nR.Od(e)?t(e):rc}},rp=rl,rd=function(e){return rl(function(t,n){return e(n)})},rs=rd(e8.identity),rm=nA,rh=nA,ry=n4,rv=n4,rg={URI:nz,map:nE,of:nN,ap:nk,chain:nA,promap:nF,compose:nP,id:nY,first:nK,second:nV,left:nB,right:nH},r_=(0,eU.getApplySemigroup)(nZ),rb=(0,eG.getApplicativeMonoid)(n8);function rT(e){return function(){return e.fromReader(nC())}}function rS(e){return e.fromReader}function rI(e){return function(t){return(0,e8.flow)(t,e.fromReader)}}function rR(e,t){var n=rI(e);return function(e){return function(r){return t.chain(r,n(e))}}}function rC(e,t){var n=rx(e,t);return function(e){return function(t){return n(t,e)}}}function rx(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromReader))}}var rO=function(){return function(e){return[e,e]}},rw=function(e){return function(){return[void 0,e]}},rM=function(e){return function(t){return[void 0,e(t)]}},rE=function(e){return function(t){return[e(t),t]}},rk=function(e,t){return(0,e8.pipe)(e,rF(t))},rP=function(e,t){return(0,e8.pipe)(e,rL(t))},rF=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},rL=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=e(r[1]),u=o[0],a=o[1];return[i(u),a]}}},rW=function(e){return function(t){return[e,t]}},rD=(0,e8.dual)(2,function(e,t){return function(n){var r=e(n),i=r[0],o=r[1];return t(i)(o)}}),rN=rD(e8.identity),rA="State",rU={URI:rA,map:rk},rj=(0,tp.flap)(rU),rq={URI:rA,of:rW},rG={URI:rA,map:rk,ap:rP},rY=(0,eU.apFirst)(rG),rK=(0,eU.apSecond)(rG),rV={URI:rA,map:rk,ap:rP,of:rW},rB={URI:rA,map:rk,ap:rP,chain:rD},rH={URI:rA,map:rk,ap:rP,of:rW,chain:rD},rz=(0,e8.dual)(2,to.tap(rB)),rX={URI:rA,fromState:e8.identity},r$=function(e){return function(t){return t(e)[0]}},rJ=function(e){return function(t){return t(e)[1]}},rZ=(0,tp.bindTo)(rU),rQ=(0,tp.let)(rU),r0=to.bind(rB),r1=(0,eU.apS)(rG),r2=function(e){return function(t){return function(n){for(var r=e(0,nR.YM(t))(n),i=r[0],o=r[1],u=[i],a=o,c=1;c<t.length;c++){var f=e(c,t[c])(a),l=f[0],p=f[1];u.push(l),a=p}return[u,a]}}},r8=function(e){var t=r2(e);return function(e){return nR.Od(e)?t(e):rW(nR.Xl)}},r7=r8,r5=function(e){return r8(function(t,n){return e(n)})},r4=r5(e8.identity),r3=rD,r9=rz,r6=function(e,t){return e(t)[0]},ie=function(e,t){return e(t)[1]},it=rH;function ir(e){return function(){return e.fromState(rO())}}function ii(e){return function(t){return e.fromState(rw(t))}}function io(e){return(0,e8.flow)(rM,e.fromState)}function iu(e){return(0,e8.flow)(rE,e.fromState)}function ia(e){return function(t){return(0,e8.flow)(t,e.fromState)}}function ic(e,t){var n=ia(e);return function(e){return function(r){return t.chain(r,n(e))}}}function il(e){return function(t){return(0,e8.flow)(t,e.fromTask)}}function ip(e,t){return function(n){var r=(0,e8.flow)(n,e.fromTask);return function(e){return t.chain(e,r)}}}function id(e,t){var n=is(e,t);return function(e){return function(t){return n(t,e)}}}function is(e,t){var n=(0,to.tap)(t);return function(t,r){return n(t,(0,e8.flow)(r,e.fromTask))}}function im(e){return function(t){return(0,e8.flow)(t,e.fromThese)}}function ih(e,t){return function(n){return function(r){return e.mapWithIndex(r,function(e,r){return t.mapWithIndex(r,function(t,r){return n([e,t],r)})})}}}function iy(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=ih(e,t);return{map:n,mapWithIndex:function(e,t){return(0,e8.pipe)(e,r(t))}}}var iv=function(e,t){return(0,e8.pipe)(e,ix(t))},ig=function(e,t){return(0,e8.pipe)(e,iO(t))},i_=function(e,t,n){return(0,e8.pipe)(e,iL(t,n))},ib=function(e){return function(t,n){return(0,e8.pipe)(t,iW(e)(n))}},iT=function(e,t,n){return(0,e8.pipe)(e,iD(t,n))},iS=function(e,t){return(0,e8.pipe)(e,ij(t))},iI=function(e,t){return(0,e8.pipe)(e,iE(t))},iR=function(e){var t=iN(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},iC=tu.tailRec,ix=function(e){return function(t){return e(t)}},iO=function(e){return function(t){return t(e)}},iw=e8.identity,iM=(0,e8.dual)(2,function(e,t){return t(e)}),iE=function(e){return function(t){return e(t)}},ik=e8.identity,iP=iE(e8.identity),iF=iM(e8.identity),iL=function(e,t){return function(n){return t(e,n)}},iW=function(){return function(e){return function(t){return e(t)}}},iD=function(e,t){return function(n){return t(n,e)}},iN=function(e){return function(t){return function(n){return e.map(t(n),e8.identity)}}},iA=function(e){return function(t){return e.map(t,e8.identity)}},iU=function(){return e8.identity},ij=iU,iq="Identity",iG=e8.identity,iY=e8.identity,iK={URI:iq,map:iv},iV=(0,tp.flap)(iK),iB={URI:iq,of:iw},iH={URI:iq,map:iv,ap:ig},iz=(0,eU.apFirst)(iH),iX=(0,eU.apSecond)(iH),i$={URI:iq,map:iv,ap:ig,of:iw},iJ={URI:iq,map:iv,ap:ig,chain:iM},iZ={URI:iq,map:iv,ap:ig,of:iw,chain:iM},iQ=(0,to.chainFirst)(iJ),i0={URI:iq,reduce:i_,foldMap:ib,reduceRight:iT},i1={URI:iq,map:iv,reduce:i_,foldMap:ib,reduceRight:iT,traverse:iR,sequence:iA},i2={URI:iq,map:iv,alt:iS},i8={URI:iq,map:iv,extend:iI,extract:ik},i7={URI:iq,map:iv,ap:ig,chain:iM,chainRec:iC},i5=iw(nR.F4),i4=(0,tp.bindTo)(iK),i3=(0,tp.let)(iK),i9=(0,to.bind)(iJ),i6=(0,eU.apS)(iH),oe=iM,ot={URI:iq,map:iv,ap:ig,of:iw,chain:iM,reduce:i_,foldMap:ib,reduceRight:iT,traverse:iR,sequence:iA,alt:iS,extract:ik,extend:iI,chainRec:iC},on=function(e,t){return function(){return t(e())}},or=function(e,t){return function(){return e()(t())}},oi=function(e,t){return function(){for(var n=t(e)();"Left"===n._tag;)n=t(n.left)();return n.right}},oo=function(e){return function(t){return on(t,e)}},ou=function(e){return function(t){return or(t,e)}},oa=e8.constant,oc=(0,e8.dual)(2,function(e,t){return function(){return t(e())()}}),of=oc(e8.identity),ol="IO",op={URI:ol,map:on},od=(0,e8.dual)(2,(0,tp.as)(op)),os=(0,tp.asUnit)(op),om=(0,tp.flap)(op),oh={URI:ol,of:oa},oy={URI:ol,map:on,ap:or},ov=(0,eU.apFirst)(oy),og=(0,eU.apSecond)(oy),o_={URI:ol,map:on,ap:or,of:oa},ob={URI:ol,map:on,ap:or,chain:oc},oT={URI:ol,map:on,ap:or,of:oa,chain:oc},oS=(0,e8.dual)(2,to.tap(ob)),oI=e8.identity,oR={URI:ol,map:on,ap:or,of:oa,chain:oc,fromIO:oI},oC={URI:ol,map:on,ap:or,chain:oc,chainRec:oi},ox={URI:ol,fromIO:e8.identity},oO=oa(nR.F4),ow=(0,tp.bindTo)(op),oM=(0,tp.let)(op),oE=to.bind(ob),ok=(0,eU.apS)(oy),oP=oa(nR.Xl),oF=function(e){return function(t){return function(){for(var n=[e(0,nR.YM(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},oL=function(e){var t=oF(e);return function(e){return nR.Od(e)?t(e):oP}},oW=oL,oD=function(e){return oL(function(t,n){return e(n)})},oN=oD(e8.identity),oA=oc,oU=oS,oj={URI:ol,map:on,of:oa,ap:or,chain:oc,fromIO:oI,chainRec:oi},oq=(0,eU.getApplySemigroup)(oy),oG=(0,eG.getApplicativeMonoid)(o_),oY=tP(oh),oK=tk(oh),oV=tF(op),oB=tL(op),oH=oa,oz=oV,oX=tz(op),o$=oX,oJ=tX(oT),oZ=oJ,oQ=oJ,o0=oQ,o1=t$(oT),o2=o1,o8=function(e,t){return function(){return tE.tryCatch(e,t)}},o7=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return o8(function(){return e.apply(void 0,n)},t)}},o5=t2(op),o4=tJ(oT),o3=o4,o9=(0,e8.dual)(2,tQ(oT)),o6=function(e){return o9(uH(e))},ue=t0(oT),ut=t1(op),un=function(e,t){return(0,e8.pipe)(e,uo(t))},ur=function(e,t){return(0,e8.pipe)(e,ul(t))},ui=function(e,t){return(0,e8.pipe)(e,uy(t))},uo=tA(op),uu=(0,e8.dual)(3,tK(op)),ua=uu,uc=(0,e8.dual)(2,tB(op)),uf=uc,ul=tU(oy),up=ul,ud=oK,us=(0,e8.dual)(2,tq(oT)),um=us(e8.identity),uh=um,uy=tG(oT),uv=uy,ug=oY,u_="IOEither";function ub(e){var t=(0,eU.ap)(oy,tE.getApplicativeValidation(e));return{URI:u_,_E:void 0,map:un,ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:ud}}function uT(e){var t=tH(oT,e);return{URI:u_,_E:void 0,map:un,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var uS=function(e){var t=tE.getCompactable(e);return{URI:u_,_E:void 0,compact:tm(op,t),separate:th(op,t,tE.Functor)}};function uI(e){var t=tE.getFilterable(e),n=uS(e),r=ne(op,t),i=nt(op,t),o=nn(op,t),u=nr(op,t);return{URI:u_,_E:void 0,map:un,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}var uR={URI:u_,map:un},uC=(0,e8.dual)(2,(0,tp.as)(uR)),ux=(0,tp.asUnit)(uR),uO=(0,tp.flap)(uR),uw={URI:u_,of:ud},uM={URI:u_,bimap:uu,mapLeft:uc},uE={URI:u_,map:un,ap:ur},uk=(0,eU.apFirst)(uE),uP=uk,uF=(0,eU.apSecond)(uE),uL=uF,uW={URI:u_,map:un,ap:ur,of:ud},uD={URI:u_,map:un,ap:function(e,t){return us(e,function(e){return(0,e8.pipe)(t,uo(e))})},of:ud},uN={URI:u_,map:un,ap:ur,chain:us},uA={URI:u_,map:un,ap:ur,of:ud,chain:us},uU={URI:u_,fromEither:oH},uj={URI:u_,fromIO:oz},uq=(0,e8.dual)(2,to.tap(uN)),uG=(0,e8.dual)(2,(0,n_.tapEither)(uU,uN)),uY=(0,e8.dual)(2,nI(uj,uN)),uK={URI:u_,map:un,alt:ui},uV={URI:u_,map:un,ap:ur,of:ud,chain:us,fromIO:oz},uB={URI:u_,map:un,ap:ur,of:ud,chain:us,throwError:ug},uH=nb(uj),uz=uY,uX=(0,n_.fromOption)(uU),u$=(0,n_.fromOptionK)(uU),uJ=(0,n_.chainOptionK)(uU,uN),uZ=uJ,uQ={fromEither:uU.fromEither},u0=nR.uL(uQ),u1=nR.WE(uQ),u2={flatMap:us},u8=nR.ny(uQ,u2),u7=nR.hU(uQ,u2),u5=nR.iu(uQ,u2),u4=nR.we({fromIO:oz},u2),u3=u4,u9=u5,u6=u5,ae=uG,at=uG,an=(0,n_.fromPredicate)(uU),ar=(0,n_.filterOrElse)(uU,uN),ai=ar,ao=(0,n_.fromEitherK)(uU),au=function(e,t,n){return aa(e,t,n)},aa=function(e,t,n){return us(e,function(e){return oc(t(e),function(t){return us(n(e,t),function(){return oa(t)})})})},ac=ud(nR.F4),af=(0,tp.bindTo)(uR),al=(0,tp.let)(uR),ap=to.bind(uN),ad=ap,as=(0,eU.apS)(uE),am=as,ah=ud(nR.Xl),ay=function(e){return(0,e8.flow)(oF(e),oo(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},av=function(e){var t=ay(e);return function(e){return nR.Od(e)?t(e):ah}},ag=function(e){return function(t){return function(){var n=e(0,nR.YM(t))();if(nR.nM(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(nR.nM(o))return o;r.push(o.right)}return nR.F2(r)}}},a_=function(e){var t=ag(e);return function(e){return nR.Od(e)?t(e):ah}},ab=av,aT=function(e){return av(function(t,n){return e(n)})},aS=aT(e8.identity),aI=a_,aR=function(e){return a_(function(t,n){return e(n)})},aC=aR(e8.identity),ax=uW,aO=us,aw=us,aM=uq,aE=uq,ak=o9,aP=o9,aF={URI:u_,bimap:uu,mapLeft:uc,map:un,of:ud,ap:ur,chain:us,alt:ui,fromIO:oz,throwError:ug},aL=(0,eU.getApplySemigroup)(uE),aW=(0,eG.getApplicativeMonoid)(uW),aD=function(e){return(0,eU.getApplySemigroup)(oy)(tE.getSemigroup(e))};function aN(e){var t=ub(e),n=uT(e);return{URI:u_,_E:void 0,map:un,ap:t.ap,of:ud,chain:us,bimap:uu,mapLeft:uc,alt:n.alt,fromIO:oz,throwError:ug}}function aA(e){return(0,e8.flow)(td.some,e.of)}function aU(e){return(0,e8.constant)(e.of(td.none))}function aj(e){return function(t){return e.map(t,td.some)}}function aq(e){return(0,e8.flow)(td.fromNullable,e.of)}function aG(e){var t=aq(e);return function(e){return(0,e8.flow)(e,t)}}function aY(e){var t=aQ(e),n=aG(e);return function(e){return t(n(e))}}function aK(e){return function(t){return(0,e8.flow)(t,e.of)}}function aV(e){var t=aQ(e),n=aK(e);return function(e){return t(n(e))}}function aB(e){return function(t){return function(n){return e.of(td.fromPredicate(t)(n))}}}function aH(e){return(0,e8.flow)(td.fromEither,e.of)}function az(e){return function(t,n){return function(r){return e.map(r,td.match(t,n))}}}function aX(e){return function(t,n){return function(r){return e.chain(r,td.match(t,n))}}}function a$(e){return function(t){return function(n){return e.chain(n,td.match(t,e.of))}}}function aJ(e){return(0,tp.map)(e,td.Functor)}function aZ(e){return(0,eU.ap)(e,td.Apply)}function aQ(e){var t=a0(e);return function(e){return function(n){return t(n,e)}}}function a0(e){var t=aU(e);return function(n,r){return e.chain(n,td.match(function(){return t()},r))}}function a1(e){var t=aA(e);return function(n){return function(r){return e.chain(r,td.match(n,t))}}}function a2(e){var t=aZ(e),n=aJ(e),r=aQ(e),i=a1(e),o=aX(e),u=a$(e),a=aU(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:aA(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},alt:function(e,t){return(0,e8.pipe)(e,i(t))},fold:function(e,t,n){return(0,e8.pipe)(e,o(t,n))},getOrElse:function(e,t){return(0,e8.pipe)(e,u(t))},fromM:aj(e),none:function(){return a()}}}var a8=n(28957),a7=aA(oh),a5=aB(oh),a4=oa,a3=aH(oh),a9=aj(op),a6=oo(td.fromEither),ce=az(op),ct=ce,cn=aX(ob),cr=cn,ci=cn,co=a$(oT),cu=co,ca=oo(td.toUndefined),cc=oo(td.toNullable),cf=aq(oh),cl=aG(oh),cp=aY(oT),cd=aK(oh),cs=aJ(op),cm=aZ(oy),ch=a7,cy=(0,e8.dual)(2,a0(oT)),cv=cy(e8.identity),cg=a1(oT),c_=cg,cb=aU(oh),cT=cb(),cS=tm(op,td.Compactable),cI=th(op,td.Compactable,td.Functor),cR=ne(op,td.Filterable),cC=nt(op,td.Filterable),cx=nn(op,td.Filterable),cO=nr(op,td.Filterable),cw=function(e,t){return(0,e8.pipe)(e,cs(t))},cM=function(e,t){return(0,e8.pipe)(e,cm(t))},cE=function(e,t){return(0,e8.pipe)(e,cg(t))},ck="IOOption",cP={URI:ck,map:cw},cF=(0,e8.dual)(2,(0,tp.as)(cP)),cL=(0,tp.asUnit)(cP),cW=(0,tp.flap)(cP),cD={URI:ck,of:ch},cN={URI:ck,map:cw,ap:cM},cA=(0,eU.apFirst)(cN),cU=(0,eU.apSecond)(cN),cj={URI:ck,map:cw,ap:cM,of:ch},cq={URI:ck,map:cw,ap:cM,chain:cy},cG={URI:ck,fromEither:a3},cY={URI:ck,fromIO:a9},cK=(0,e8.dual)(2,to.tap(cq)),cV=(0,e8.dual)(2,(0,n_.tapEither)(cG,cq)),cB=(0,e8.dual)(2,nI(cY,cq)),cH={URI:ck,map:cw,alt:cE},cz={URI:ck,zero:cb},cX=(0,a8.guard)(cz,cD),c$={URI:ck,map:cw,ap:cM,of:ch,alt:cE,zero:cb},cJ={URI:ck,map:cw,ap:cM,of:ch,chain:cy},cZ={URI:ck,map:cw,ap:cM,of:ch,chain:cy,fromIO:a9},cQ={URI:ck,compact:cS,separate:cI},c0={URI:ck,map:cw,compact:cS,separate:cI,filter:function(e,t){return(0,e8.pipe)(e,cR(t))},filterMap:function(e,t){return(0,e8.pipe)(e,cC(t))},partition:function(e,t){return(0,e8.pipe)(e,cx(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,cO(t))}},c1={flatMap:cy},c2={fromIO:cY.fromIO},c8=nR.we(c2,c1),c7=(0,e8.dual)(2,function(e,t){return cy(e,cd(t))}),c5=nR.iu({fromEither:a3},c1),c4=(0,e8.dual)(2,function(e,t){return cy(e,cl(t))}),c3=nb(cY),c9=c8,c6=cB,fe=(0,n_.fromEitherK)(cG),ft=c5,fn=cV,fr=c7,fi=ch(nR.F4),fo=(0,tp.bindTo)(cP),fu=(0,tp.let)(cP),fa=to.bind(cq),fc=(0,eU.apS)(cN),ff=ch(nR.Xl),fl=function(e){return(0,e8.flow)(oF(e),oo(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},fp=function(e){var t=fl(e);return function(e){return nR.Od(e)?t(e):ff}},fd=cy,fs=cK,fm=function(){function e(e){var t=this;this.value=e,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return e.prototype.write=function(e){var t=this;return function(){t.value=e}},e.prototype.modify=function(e){var t=this;return function(){t.value=e(t.value)}},e}();function fh(e){return function(){return new fm(e)}}var fy=function(e){return(0,tE.tryCatch)(function(){return JSON.parse(e)},e8.identity)},fv=function(e){return(0,tE.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e8.identity)},fg=n(76113),f_=n(55116),fb=n(96576),fT=n(43586),fS=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},fI=fS,fR=function(e){return -1===e?1:1===e?-1:0},fC={equals:function(e,t){return e===t}},fx={concat:function(e,t){return 0!==e?e:t}},fO={concat:fx.concat,empty:0},fw=function(e){return e<=-1?-1:e>=1?1:0},fM=fR,fE=fx,fk=fC,fP=fO,fF=n(18896),fL=function(){return Math.random()};function fW(e,t){return(0,e8.pipe)(fL,oo(function(n){return Math.floor((t-e+1)*n+e)}))}function fD(e,t){return(0,e8.pipe)(fL,oo(function(n){return(t-e)*n+e}))}var fN=(0,e8.pipe)(fL,oo(function(e){return e<.5})),fA=function(e){return(0,e8.pipe)(fW(0,e.length-1),oo(function(t){return e[t]}))},fU=tP(nJ),fj=tk(nJ),fq=tF(nX),fG=tL(nX),fY=nN,fK=fq,fV=tz(nX),fB=fV,fH=tX(n5),fz=fH,fX=fH,f$=fX,fJ=t$(n5),fZ=fJ,fQ=t2(nX),f0=nO,f1=nw,f2=f1,f8=tJ(n5),f7=f8,f5=(0,e8.dual)(2,tQ(n5)),f4=t0(n5),f3=t1(nX),f9=function(e,t){return(0,e8.pipe)(e,lt(t))},f6=function(e,t){return(0,e8.pipe)(e,lu(t))},le=function(e,t){return(0,e8.pipe)(e,ld(t))},lt=tA(nX),ln=(0,e8.dual)(3,tK(nX)),lr=ln,li=(0,e8.dual)(2,tB(nX)),lo=li,lu=tU(nZ),la=lu,lc=fj,lf=(0,e8.dual)(2,tq(n5)),ll=lf(e8.identity),lp=ll,ld=tG(n5),ls=ld,lm=fU,lh="ReaderEither",ly=function(e){var t=tE.getCompactable(e);return{URI:lh,_E:void 0,compact:tm(nX,t),separate:th(nX,t,tE.Functor)}};function lv(e){var t=tE.getFilterable(e),n=ly(e),r=ne(nX,t),i=nt(nX,t),o=nn(nX,t),u=nr(nX,t);return{URI:lh,_E:void 0,map:f9,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}function lg(e){var t=(0,eU.ap)(nZ,tE.getApplicativeValidation(e));return{URI:lh,_E:void 0,map:f9,ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:lc}}function l_(e){var t=tH(n5,e);return{URI:lh,_E:void 0,map:f9,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var lb={URI:lh,map:f9},lT=(0,e8.dual)(2,(0,tp.as)(lb)),lS=(0,tp.asUnit)(lb),lI=(0,tp.flap)(lb),lR={URI:lh,of:lc},lC={URI:lh,map:f9,ap:f6},lx=(0,eU.apFirst)(lC),lO=lx,lw=(0,eU.apSecond)(lC),lM=lw,lE={URI:lh,map:f9,ap:f6,of:lc},lk={URI:lh,map:f9,ap:f6,chain:lf},lP={URI:lh,map:f9,ap:f6,of:lc,chain:lf},lF={URI:lh,fromEither:fY},lL={URI:lh,fromReader:fK},lW=(0,e8.dual)(2,to.tap(lk)),lD=(0,e8.dual)(2,(0,n_.tapEither)(lF,lk)),lN=(0,e8.dual)(2,rx(lL,lk)),lA={URI:lh,bimap:ln,mapLeft:li},lU={URI:lh,map:f9,alt:le},lj=rT(lL),lq=rS(lL),lG=rI(lL),lY=lN,lK=lN,lV={URI:lh,map:f9,ap:f6,of:lc,chain:lf,throwError:lm},lB=(0,n_.fromOption)(lF),lH=(0,n_.fromOptionK)(lF),lz=(0,n_.chainOptionK)(lF,lk),lX=lz,l$={fromEither:lF.fromEither},lJ={fromReader:lL.fromReader},lZ=nR.uL(l$),lQ=nR.WE(l$),l0={flatMap:lf},l1=nR.ny(l$,l0),l2=nR.hU(l$,l0),l8=nR.iu(l$,l0),l7=nR.on(lJ,l0),l5=l8,l4=l8,l3=lD,l9=lD,l6=l7,pe=l7,pt=(0,n_.fromPredicate)(lF),pn=(0,n_.filterOrElse)(lF,lk),pr=pn,pi=(0,n_.fromEitherK)(lF),po=lc(nR.F4),pu=(0,tp.bindTo)(lb),pa=(0,tp.let)(lb),pc=to.bind(lk),pf=pc,pl=(0,eU.apS)(lC),pp=pl,pd=lc(nR.Xl),ps=function(e){return(0,e8.flow)(rf(e),nL(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},pm=function(e){var t=ps(e);return function(e){return nR.Od(e)?t(e):pd}},ph=pm,py=function(e){return pm(function(t,n){return e(n)})},pv=py(e8.identity),pg=lf,p_=lf,pb=lW,pT=lW,pS=f5,pI=f5,pR={URI:lh,bimap:ln,mapLeft:li,map:f9,of:lc,ap:f6,chain:lf,alt:le,throwError:fU},pC=(0,eU.getApplySemigroup)(lC),px=(0,eG.getApplicativeMonoid)(lE),pO=function(e){return(0,eU.getApplySemigroup)(nZ)(tE.getSemigroup(e))};function pw(e){var t=lg(e),n=l_(e);return{URI:lh,_E:void 0,map:f9,ap:t.ap,of:lc,chain:lf,bimap:ln,mapLeft:li,alt:n.alt,throwError:lm}}function pM(e){return function(t){return function(){return e.of(t)}}}function pE(e){return function(t){return function(n){return function(r){return e.map(n(r),t)}}}}function pk(e){return function(t){return function(n){return function(r){return e.ap(n(r),t(r))}}}}function pP(e){var t=pF(e);return function(e){return function(n){return t(n,e)}}}function pF(e){return function(t,n){return function(r){return e.chain(t(r),function(e){return n(e)(r)})}}}function pL(e){return function(t){return(0,e8.flow)(t,e.of)}}function pW(e){return function(t){return(0,e8.flow)(t,e)}}function pD(e){var t=pk(e),n=pE(e),r=pP(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:pM(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},ask:function(){return e.of},asks:function(t){return(0,e8.flow)(t,e.of)},local:function(e,t){return function(n){return e(t(n))}},fromReader:pL(e),fromM:function(e){return function(){return e}}}}var pN=pL(oh),pA=nN,pU=nO,pj=nw,pq=pj,pG=function(e,t){return(0,e8.pipe)(e,pK(t))},pY=function(e,t){return(0,e8.pipe)(e,pV(t))},pK=pE(op),pV=pk(oy),pB=pV,pH=pM(oh),pz=(0,e8.dual)(2,pF(oT)),pX=pz(e8.identity),p$=pX,pJ="ReaderIO",pZ={URI:pJ,map:pG},pQ=(0,e8.dual)(2,(0,tp.as)(pZ)),p0=(0,tp.asUnit)(pZ),p1=(0,tp.flap)(pZ),p2={URI:pJ,of:pH},p8={URI:pJ,map:pG,ap:pY},p7=(0,eU.apFirst)(p8),p5=(0,eU.apSecond)(p8),p4={URI:pJ,map:pG,ap:pY,of:pH},p3={URI:pJ,map:pG,ap:pY,chain:pz},p9={URI:pJ,map:pG,of:pH,ap:pY,chain:pz},p6={URI:pJ,map:pG,of:pH,ap:pY,chain:pz,fromIO:pA},de={URI:pJ,fromIO:pA},dt={URI:pJ,fromReader:pN},dn={flatMap:pz},dr={fromIO:de.fromIO},di=nR.we(dr,dn),du=nR.on({fromReader:pN},dn),da=(0,e8.dual)(2,to.tap(p3)),dc=(0,e8.dual)(2,nI(de,p3)),df=(0,e8.dual)(2,rx(dt,p3)),dl=nb(de),dp=di,dd=dc,ds=rT(dt),dm=rS(dt),dh=rI(dt),dy=du,dv=du,dg=df,d_=df,db=pH(nR.F4),dT=(0,tp.bindTo)(pZ),dS=to.bind(p3),dI=dS,dR=(0,eU.apS)(p8),dC=dR,dx=pH(nR.Xl),dO=function(e){return(0,e8.flow)(rf(e),nL(oF(e8.SK)))},dw=function(e){var t=dO(e);return function(e){return nR.Od(e)?t(e):dx}},dM=dw,dE=function(e){return dw(function(t,n){return e(n)})},dk=dE(e8.identity),dP=pz,dF=pz,dL=da,dW=da,dD=function(e){return function(){return Promise.resolve().then(e)}};function dN(e){return function(t){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(t).then(n)},e)})}}}var dA=function(e,t){return(0,e8.pipe)(e,dq(t))},dU=function(e,t){return(0,e8.pipe)(e,dG(t))},dj=function(e,t){return dK(e,function(e){return(0,e8.pipe)(t,dq(e))})},dq=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},dG=function(e){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(e)]).then(function(e){return(0,e[0])(e[1])})}}},dY=function(e){return function(){return Promise.resolve(e)}},dK=(0,e8.dual)(2,function(e,t){return function(){return Promise.resolve().then(e).then(function(e){return t(e)()})}}),dV=dK(e8.identity),dB="Task";function dH(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:sf}}var dz={URI:dB,map:dA},dX=(0,e8.dual)(2,(0,tp.as)(dz)),d$=(0,tp.asUnit)(dz),dJ=(0,tp.flap)(dz),dZ={URI:dB,of:dY},dQ={URI:dB,map:dA,ap:dU},d0=(0,eU.apFirst)(dQ),d1=(0,eU.apSecond)(dQ),d2={URI:dB,map:dA,ap:dU,of:dY},d8={URI:dB,map:dA,ap:dj},d7={URI:dB,map:dA,ap:dj,of:dY},d5={URI:dB,map:dA,ap:dU,chain:dK},d4={URI:dB,map:dA,of:dY,ap:dU,chain:dK},d3={URI:dB,map:dA,of:dY,ap:dU,chain:dK,fromIO:dD},d9=e8.identity,d6={URI:dB,map:dA,of:dY,ap:dU,chain:dK,fromIO:dD,fromTask:d9},se={URI:dB,fromIO:dD},st={fromIO:se.fromIO},sn=nR.we(st,{flatMap:dK}),sr=(0,e8.dual)(2,to.tap(d5)),si=(0,e8.dual)(2,nI(se,d5)),so=nb(se),su=sn,sa=si,sc={URI:dB,fromIO:dD,fromTask:d9},sf=function(){return new Promise(function(e){})},sl=dY(nR.F4),sp=(0,tp.bindTo)(dz),sd=(0,tp.let)(dz),ss=to.bind(d5),sm=(0,eU.apS)(dQ),sh=dY(nR.Xl),sy=function(e){return function(t){return function(){return Promise.all(t.map(function(t,n){return Promise.resolve().then(function(){return e(n,t)()})}))}}},sv=function(e){var t=sy(e);return function(e){return nR.Od(e)?t(e):sh}},sg=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(t){return Promise.resolve().then(e(r+1,n)).then(function(e){return t.push(e),t})})},Promise.resolve().then(e(0,nR.YM(t))).then(nR.ri))}}},s_=function(e){var t=sg(e);return function(e){return nR.Od(e)?t(e):sh}},sb=sv,sT=function(e){return sv(function(t,n){return e(n)})},sS=sT(e8.identity),sI=s_,sR=function(e){return s_(function(t,n){return e(n)})},sC=sR(e8.identity),sx=dK,sO=sr,sw={URI:dB,map:dA,of:dY,ap:dU,chain:dK,fromIO:dD,fromTask:d9},sM={URI:dB,map:dA,of:dY,ap:dj,chain:dK,fromIO:dD,fromTask:d9},sE=(0,eU.getApplySemigroup)(d8),sk=(0,eG.getApplicativeMonoid)(d7),sP=pL(dZ),sF=nN,sL=(0,e8.flow)(dD,sF),sW=nL(dD),sD=nO,sN=nw,sA=sN,sU=function(e,t){return(0,e8.pipe)(e,sG(t))},sj=function(e,t){return(0,e8.pipe)(e,sY(t))},sq=function(e,t){return sB(e,function(e){return(0,e8.pipe)(t,sG(e))})},sG=pE(dz),sY=pk(dQ),sK=sY,sV=pM(dZ),sB=(0,e8.dual)(2,pF(d4)),sH=sB(e8.identity),sz=sH,sX="ReaderTask",s$={URI:sX,map:sU},sJ=(0,e8.dual)(2,(0,tp.as)(s$)),sZ=(0,tp.asUnit)(s$),sQ=(0,tp.flap)(s$),s0={URI:sX,of:sV},s1={URI:sX,map:sU,ap:sj},s2=(0,eU.apFirst)(s1),s8=(0,eU.apSecond)(s1),s7={URI:sX,map:sU,ap:sj,of:sV},s5={URI:sX,map:sU,ap:sq},s4={URI:sX,map:sU,ap:sq,of:sV},s3={URI:sX,map:sU,ap:sj,chain:sB},s9={URI:sX,map:sU,of:sV,ap:sj,chain:sB},s6={URI:sX,map:sU,of:sV,ap:sj,chain:sB,fromIO:sL},me={URI:sX,map:sU,of:sV,ap:sj,chain:sB,fromIO:sL,fromTask:sF},mt={URI:sX,fromIO:sL},mn={URI:sX,fromIO:sL,fromTask:sF},mr={URI:sX,fromReader:sP},mi={flatMap:sB},mo={fromIO:mt.fromIO},mu=nR.we(mo,mi),ma=nR.D9({fromTask:sF},mi),mc=nR.on({fromReader:sP},mi),mf=(0,e8.dual)(2,function(e,t){return sB(e,mC(t))}),ml=(0,e8.dual)(2,to.tap(s3)),mp=(0,e8.dual)(2,nI(mt,s3)),md=(0,e8.dual)(2,rx(mr,s3)),ms=(0,e8.dual)(2,is(mn,s3)),mm=(0,e8.dual)(2,function(e,t){return ml(e,mC(t))}),mh=nb(mt),my=mu,mv=mp,mg=rT(mr),m_=rS(mr),mb=rI(mr),mT=mc,mS=mc,mI=md,mR=md,mC=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sW(e.apply(void 0,t))}},mx=mf,mO=mf,mw=mm,mM=mm,mE=il(mn),mk=ma,mP=ms,mF=sV(nR.F4),mL=(0,tp.bindTo)(s$),mW=(0,tp.let)(s$),mD=to.bind(s3),mN=mD,mA=(0,eU.apS)(s1),mU=mA,mj=sV(nR.Xl),mq=function(e){return(0,e8.flow)(rf(e),nL(sy(e8.SK)))},mG=function(e){var t=mq(e);return function(e){return nR.Od(e)?t(e):mj}},mY=function(e){return(0,e8.flow)(rf(e),nL(sg(e8.SK)))},mK=function(e){var t=mY(e);return function(e){return nR.Od(e)?t(e):mj}},mV=mG,mB=function(e){return mG(function(t,n){return e(n)})},mH=mB(e8.identity),mz=mK,mX=function(e){return mK(function(t,n){return e(n)})},m$=sB,mJ=sB,mZ=ml,mQ=ml,m0=mX(e8.identity),m1={URI:sX,map:sU,of:sV,ap:sj,chain:sB,fromIO:sL,fromTask:sF},m2={URI:sX,map:sU,of:sV,ap:sq,chain:sB,fromIO:sL,fromTask:sF},m8=(0,eU.getApplySemigroup)(s5),m7=(0,eG.getApplicativeMonoid)(s4);function m5(e,t){return e(t)()}var m4=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m3=tP(dZ),m9=tk(dZ),m6=tF(dz),he=tL(dz),ht=(0,e8.flow)(dD,m6),hn=(0,e8.flow)(dD,he),hr=ht,hi=m6,ho=dY,hu=dD,ha=function(e){return dq(tE.fromOption(e))},hc=tz(dz),hf=hc,hl=tX(d4),hp=hl,hd=hl,hs=hd,hm=t$(d4),hh=hm,hy=function(e,t){return function(){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n;return m4(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e().then(nR.F2)];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,nR.t$(t(n))];case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function u(e){try{c(o.next(e))}catch(e){t(e)}}function a(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(u,a)}c((o=o.apply(n,r||[])).next())})}},hv=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return hy(function(){return e.apply(void 0,n)},t)}},hg=t2(dz),h_=tW(dZ),hb=tD(dZ),hT=tN(d4),hS=tJ(d4),hI=hS,hR=(0,e8.dual)(2,tQ(d4)),hC=function(e){return hR(yY(e))},hx=function(e){return hR(yB(e))},hO=t0(d4),hw=t1(dz),hM=function(e){var t=ha(e);return function(e){return(0,e8.flow)(e,t)}},hE=function(e){return function(t){return function(n){return hK(n,hM(e)(t))}}},hk=hE,hP=function(e){return(0,e8.flow)(e,hu)},hF=function(e,t){return(0,e8.pipe)(e,hN(t))},hL=function(e,t){return(0,e8.pipe)(e,hG(t))},hW=function(e,t){return hK(e,function(e){return(0,e8.pipe)(t,hN(e))})},hD=function(e,t){return(0,e8.pipe)(e,hH(t))},hN=tA(dz),hA=(0,e8.dual)(3,tK(dz)),hU=hA,hj=(0,e8.dual)(2,tB(dz)),hq=hj,hG=tU(dQ),hY=hG,hK=(0,e8.dual)(2,tq(d4)),hV=hK(e8.identity),hB=hV,hH=tG(d4),hz=hH,hX=m9,h$=m3,hJ="TaskEither";function hZ(e,t){var n=(0,eU.ap)(e,tE.getApplicativeValidation(t));return{URI:hJ,_E:void 0,map:hF,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:hX}}function hQ(e){var t=tH(d4,e);return{URI:hJ,_E:void 0,map:hF,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var h0=function(e){var t=tE.getCompactable(e);return{URI:hJ,_E:void 0,compact:tm(dz,t),separate:th(dz,t,tE.Functor)}};function h1(e){var t=tE.getFilterable(e),n=h0(e),r=ne(dz,t),i=nt(dz,t),o=nn(dz,t),u=nr(dz,t);return{URI:hJ,_E:void 0,map:hF,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}var h2={URI:hJ,map:hF},h8=(0,e8.dual)(2,(0,tp.as)(h2)),h7=(0,tp.asUnit)(h2),h5=(0,tp.flap)(h2),h4={URI:hJ,of:hX},h3={URI:hJ,map:hF,ap:hL},h9=(0,eU.apFirst)(h3),h6=h9,ye=(0,eU.apSecond)(h3),yt=ye,yn={URI:hJ,map:hF,ap:hL,of:hX},yr={URI:hJ,map:hF,ap:hW},yi={URI:hJ,map:hF,ap:hW,of:hX},yo={URI:hJ,map:hF,ap:hL,chain:hK},yu={URI:hJ,map:hF,ap:hL,chain:hK,of:hX},ya={URI:hJ,map:hF,ap:hL,chain:hK,of:hX,fromIO:hr},yc={URI:hJ,map:hF,ap:hL,chain:hK,of:hX,fromIO:hr,fromTask:hi},yf={URI:hJ,map:hF,ap:hL,chain:hK,of:hX,throwError:h$},yl={URI:hJ,fromEither:ho},yp={URI:hJ,fromIO:hr},yd={URI:hJ,fromIO:hr,fromTask:hi},ys=(0,e8.dual)(2,to.tap(yo)),ym=(0,e8.dual)(2,(0,n_.tapEither)(yl,yo)),yh=(0,e8.dual)(2,nI(yp,yo)),yy=(0,e8.dual)(2,is(yd,yo)),yv={URI:hJ,bimap:hA,mapLeft:hj},yg={URI:hJ,map:hF,alt:hD},y_=(0,n_.fromOption)(yl),yb=(0,n_.fromOptionK)(yl),yT=(0,n_.chainOptionK)(yl,yo),yS=yT,yI={fromEither:yl.fromEither},yR=nR.uL(yI),yC=nR.WE(yI),yx={flatMap:hK},yO={fromIO:yp.fromIO},yw=nR.ny(yI,yx),yM=nR.hU(yI,yx),yE=nR.iu(yI,yx),yk=nR.we(yO,yx),yP=nR.D9({fromTask:hi},yx),yF=(0,e8.dual)(2,function(e,t){return hK(e,hP(t))}),yL=(0,e8.dual)(3,function(e,t,n){return hK(e,function(e){return ha(function(){return n(e)})(t(e))})}),yW=yE,yD=yE,yN=ym,yA=ym,yU=(0,n_.fromPredicate)(yl),yj=(0,n_.filterOrElse)(yl,yo),yq=yj,yG=(0,n_.fromEitherK)(yl),yY=nb(yp),yK=yk,yV=yh,yB=il(yd),yH=yP,yz=yy,yX=yF,y$=yF;function yJ(e){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){e.apply(null,t.concat(function(e,t){return null!=e?n(nR.t$(e)):n(nR.F2(t))}))})}}}var yZ=function(e,t,n){return yQ(e,t,n)},yQ=function(e,t,n){return hK(e,function(e){return dK(t(e),function(t){return hK(n(e,t),function(){return dY(t)})})})},y0=hX(nR.F4),y1=(0,tp.bindTo)(h2),y2=(0,tp.let)(h2),y8=to.bind(yo),y7=y8,y5=(0,eU.apS)(h3),y4=y5,y3=hX(nR.Xl),y9=function(e){return(0,e8.flow)(sy(e),dq(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},y6=function(e){var t=y9(e);return function(e){return nR.Od(e)?t(e):y3}},ve=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nR.nM(i)?t:e(r+1,n)().then(function(e){return nR.nM(e)?e:(i.right.push(e.right),i)})})},e(0,nR.YM(t))().then(tE.map(nR.ri)))}}},vt=function(e){var t=ve(e);return function(e){return nR.Od(e)?t(e):y3}},vn=y6,vr=function(e){return y6(function(t,n){return e(n)})},vi=vr(e8.identity),vo=vt,vu=function(e){return vt(function(t,n){return e(n)})},va=vu(e8.identity),vc=hK,vf=hK,vl=ys,vp=ys,vd=hR,vs=hR,vm={URI:hJ,bimap:hA,mapLeft:hj,map:hF,of:hX,ap:hL,chain:hK,alt:hD,fromIO:hr,fromTask:hi,throwError:h$},vh={URI:hJ,bimap:hA,mapLeft:hj,map:hF,of:hX,ap:hW,chain:hK,alt:hD,fromIO:hr,fromTask:hi,throwError:h$},vy=(0,eU.getApplySemigroup)(yr),vv=(0,eG.getApplicativeMonoid)(yi),vg=function(e){return(0,eU.getApplySemigroup)(d8)(tE.getSemigroup(e))};function v_(e){var t=hZ(d2,e),n=hQ(e);return{URI:hJ,_E:void 0,map:hF,ap:t.ap,of:hX,chain:hK,bimap:hA,mapLeft:hj,alt:n.alt,fromIO:hr,fromTask:hi,throwError:h$}}var vb=nN,vT=tP(s0),vS=tk(s0),vI=(0,e8.flow)(m6,vb),vR=(0,e8.flow)(he,vb),vC=function(e){return(0,e8.flow)(e,m9)},vx=function(e){return(0,e8.flow)(e,m3)},vO=tF(s$),vw=tL(s$),vM=(0,e8.flow)(ht,vb),vE=(0,e8.flow)(hn,vb),vk=function(e){return(0,e8.flow)(e,ht)},vP=function(e){return(0,e8.flow)(e,hn)},vF=sV,vL=vC,vW=vM,vD=vI,vN=(0,e8.flow)(hu,vb),vA=function(e){return(0,e8.flow)(e,ho)},vU=tz(s$),vj=vU,vq=tX(s3),vG=vq,vY=vq,vK=vY,vV=t$(s9),vB=vV,vH=t2(s$),vz=tW(s0),vX=tD(s0),v$=tN(s9),vJ=nO,vZ=nw,vQ=vZ,v0=tJ(s9),v1=v0,v2=(0,e8.dual)(2,tQ(s9)),v8=t0(s9),v7=t1(s$),v5=function(e){return(0,e8.flow)(e,vN)},v4=function(e){return(0,e8.flow)(e,vb)},v3=function(e){return(0,e8.flow)(e,vA)},v9=function(e,t){return(0,e8.pipe)(e,gn(t))},v6=function(e,t){return(0,e8.pipe)(e,ga(t))},ge=function(e,t){return gl(e,function(e){return(0,e8.pipe)(t,gn(e))})},gt=function(e,t){return(0,e8.pipe)(e,gs(t))},gn=tA(s$),gr=(0,e8.dual)(3,tK(s$)),gi=gr,go=(0,e8.dual)(2,tB(s$)),gu=go,ga=tU(s1),gc=ga,gf=vS,gl=(0,e8.dual)(2,tq(s9)),gp=gl(e8.identity),gd=gp,gs=tG(s9),gm=gs,gh=vT,gy="ReaderTaskEither",gv=function(e){var t=tE.getCompactable(e);return{URI:gy,_E:void 0,compact:tm(s$,t),separate:th(s$,t,tE.Functor)}};function gg(e){var t=tE.getFilterable(e),n=gv(e),r=ne(s$,t),i=nt(s$,t),o=nn(s$,t),u=nr(s$,t);return{URI:gy,_E:void 0,map:v9,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e8.pipe)(e,r(t))},filterMap:function(e,t){return(0,e8.pipe)(e,i(t))},partition:function(e,t){return(0,e8.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,u(t))}}}function g_(e,t){var n=(0,eU.ap)(nZ,hZ(e,t));return{URI:gy,_E:void 0,map:v9,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:gf}}function gb(e){var t=tH(s9,e);return{URI:gy,_E:void 0,map:v9,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var gT={URI:gy,map:v9},gS=(0,e8.dual)(2,(0,tp.as)(gT)),gI=(0,tp.asUnit)(gT),gR=(0,tp.flap)(gT),gC={URI:gy,of:gf},gx={URI:gy,map:v9,ap:v6},gO=(0,eU.apFirst)(gx),gw=gO,gM=(0,eU.apSecond)(gx),gE=gM,gk={URI:gy,map:v9,ap:v6,of:gf},gP={URI:gy,map:v9,ap:ge},gF={URI:gy,map:v9,ap:ge,of:gf},gL={URI:gy,map:v9,ap:v6,chain:gl},gW={URI:gy,map:v9,ap:v6,chain:gl,of:gf},gD={URI:gy,map:v9,ap:v6,chain:gl,of:gf,fromIO:vW},gN={URI:gy,map:v9,ap:v6,chain:gl,of:gf,fromIO:vW,fromTask:vD},gA={URI:gy,map:v9,ap:v6,chain:gl,of:gf,throwError:gh},gU={URI:gy,fromEither:vF},gj={URI:gy,fromIO:vW},gq={URI:gy,fromIO:vW,fromTask:vD},gG={URI:gy,fromReader:vL},gY=(0,e8.dual)(2,to.tap(gL)),gK=(0,e8.dual)(2,(0,n_.tapEither)(gU,gL)),gV=(0,e8.dual)(2,nI(gj,gL)),gB=(0,e8.dual)(2,is(gq,gL)),gH=(0,e8.dual)(2,rx(gG,gL)),gz=(0,e8.dual)(2,function(e,t){return gY(e,v3(t))}),gX=(0,e8.dual)(2,function(e,t){return gY(e,v4(t))}),g$=(0,e8.dual)(2,function(e,t){return gY(e,g6(t))}),gJ=(0,e8.dual)(2,function(e,t){return gY(e,_n(t))}),gZ={URI:gy,bimap:gr,mapLeft:go},gQ={URI:gy,map:v9,alt:gt},g0=rT(gG),g1=rS(gG),g2=rI(gG),g8=gH,g7=gH,g5=gz,g4=gz,g3=gX,g9=gX,g6=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return vO(e.apply(void 0,t))}},_e=g$,_t=g$,_n=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return vk(e.apply(void 0,t))}},_r=gJ,_i=gJ,_o=(0,n_.fromOption)(gU),_u=(0,n_.fromOptionK)(gU),_a=(0,n_.chainOptionK)(gU,gL),_c=_a,_f={fromEither:gU.fromEither},_l=nR.uL(_f),_p=nR.WE(_f),_d={flatMap:gl},_s=nR.ny(_f,_d),_m=nR.hU(_f,_d),_h=nR.iu(_f,_d),_y=(0,e8.dual)(2,function(e,t){return gl(e,v4(t))}),_v=(0,e8.dual)(2,function(e,t){return gl(e,g6(t))}),_g=nR.we({fromIO:vW},_d),__=nR.D9({fromTask:vD},_d),_b=nR.on({fromReader:vL},_d),_T=(0,e8.dual)(2,function(e,t){return gl(e,_n(t))}),_S=(0,e8.dual)(2,function(e,t){return gl(e,v5(t))}),_I=(0,e8.dual)(2,function(e,t){return gl(e,v3(t))}),_R=_h,_C=_h,_x=gK,_O=gK,_w=_y,_M=_y,_E=_v,_k=_v,_P=(0,n_.fromPredicate)(gU),_F=(0,n_.filterOrElse)(gU,gL),_L=_F,_W=(0,n_.fromEitherK)(gU),_D=nb(gj),_N=_g,_A=gV,_U=il(gq),_j=__,_q=gB,_G=_b,_Y=_b,_K=_T,_V=_T,_B=_S,_H=_S,_z=_I,_X=_I;function _$(e,t,n){return _J(e,t,n)}function _J(e,t,n){return function(r){return yQ(e(r),function(e){return t(e)(r)},function(e,t){return n(e,t)(r)})}}var _Z=gf(nR.F4),_Q=(0,tp.bindTo)(gT),_0=(0,tp.let)(gT),_1=to.bind(gL),_2=_1,_8=(0,eU.apS)(gx),_7=_8,_5=gf(nR.Xl),_4=function(e){return(0,e8.flow)(rf(e),nL(y9(e8.SK)))},_3=function(e){var t=_4(e);return function(e){return nR.Od(e)?t(e):_5}},_9=function(e){return(0,e8.flow)(rf(e),nL(ve(e8.SK)))},_6=function(e){var t=_9(e);return function(e){return nR.Od(e)?t(e):_5}},be=_3,bt=function(e){return _3(function(t,n){return e(n)})},bn=bt(e8.identity),br=_6,bi=function(e){return _6(function(t,n){return e(n)})},bo=bi(e8.identity),bu=gl,ba=gl,bc=gY,bf=gY,bl=v2,bp=v2,bd={URI:gy,map:v9,of:gf,ap:v6,chain:gl,alt:gt,bimap:gr,mapLeft:go,fromIO:vW,fromTask:vD,throwError:gh},bs={URI:gy,map:v9,of:gf,ap:ge,chain:gl,alt:gt,bimap:gr,mapLeft:go,fromIO:vW,fromTask:vD,throwError:gh},bm=(0,eU.getApplySemigroup)(gP),bh=(0,eG.getApplicativeMonoid)(gF),by=function(e){return(0,eU.getApplySemigroup)(s5)(tE.getSemigroup(e))};function bv(e){var t=g_(d2,e),n=gb(e);return{URI:gy,_E:void 0,map:v9,of:gf,chain:gl,bimap:gr,mapLeft:go,ap:t.ap,alt:n.alt,fromIO:vW,fromTask:vD,throwError:gh}}function bg(e,t){return e(t)()}var b_=n(31583),bb=n(13512),bT=n(28350),bS=n(97054),bI=n(99156);function bR(e){return e[0]}function bC(e){return e[1]}var bx=function(e){return[bC(e),e[0]]};function bO(e){return{URI:b0,_E:void 0,map:bL,ap:function(t,n){return[t[0](n[0]),e.concat(bC(t),bC(n))]}}}var bw=function(e){return function(t){return[t,e.empty]}};function bM(e){return{URI:b0,_E:void 0,map:bL,ap:bO(e).ap,of:bw(e)}}function bE(e){return{URI:b0,_E:void 0,map:bL,ap:bO(e).ap,chain:function(t,n){var r=n(t[0]),i=r[0],o=r[1];return[i,e.concat(bC(t),o)]}}}function bk(e){var t=bE(e);return{URI:b0,_E:void 0,map:bL,ap:t.ap,chain:t.chain,of:bw(e)}}function bP(e){var t=bE(e);return{URI:b0,_E:void 0,map:bL,ap:t.ap,chain:t.chain,chainRec:function(t,n){for(var r=n(t),i=e.empty,o=r[0];"Left"===o._tag;)i=e.concat(i,bC(r)),o=(r=n(o.left))[0];return[o.right,e.concat(i,bC(r))]}}}var bF=function(e,t){return(0,e8.pipe)(e,bV(t))},bL=function(e,t){return(0,e8.pipe)(e,bY(t))},bW=function(e,t,n){return(0,e8.pipe)(e,bG(t,n))},bD=function(e,t){return(0,e8.pipe)(e,bK(t))},bN=function(e,t){return(0,e8.pipe)(e,bB(t))},bA=function(e,t,n){return(0,e8.pipe)(e,bX(t,n))},bU=function(e){var t=b$(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},bj=function(e,t,n){return(0,e8.pipe)(e,bJ(t,n))},bq=function(e){var t=bZ(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},bG=function(e,t){return function(n){return[t(n[0]),e(bC(n))]}},bY=function(e){return function(t){return[e(t[0]),bC(t)]}},bK=function(e){return function(t){return[t[0],e(bC(t))]}},bV=function(e){return function(t){return[t[0],bC(e)]}},bB=function(e){return function(t){return[e(t),bC(t)]}},bH=bR,bz=bB(e8.identity),bX=function(e,t){return function(n){return t(e,n[0])}},b$=function(){return function(e){return function(t){return e(t[0])}}},bJ=function(e,t){return function(n){return t(n[0],e)}},bZ=function(e){return function(t){return function(n){return e.map(t(n[0]),function(e){return[e,bC(n)]})}}},bQ=function(e){return function(t){return e.map(t[0],function(e){return[e,bC(t)]})}},b0="ReadonlyTuple",b1={URI:b0,map:bL},b2=(0,tp.flap)(b1),b8=bY,b7=bK,b5={URI:b0,bimap:bW,mapLeft:bD},b4={URI:b0,compose:bF},b3={URI:b0,map:bL,extend:bN,extract:bH},b9={URI:b0,reduce:bA,foldMap:bU,reduceRight:bj},b6={URI:b0,map:bL,reduce:bA,foldMap:bU,reduceRight:bj,traverse:bq,sequence:bQ},Te={URI:b0,compose:bF,map:bL,bimap:bW,mapLeft:bD,extract:bH,extend:bN,reduce:bA,foldMap:bU,reduceRight:bj,traverse:bq,sequence:bQ},Tt=n(3291),Tn=n(57029),Tr=n(76511),Ti=function(){return(Ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},To=bS.size,Tu=bS.isEmpty,Ta=function(e){return function(t){return Object.keys(t).sort(e.compare)}},Tc=Ta(Tn.Ord);function Tf(e){if("function"==typeof e)return Tf(Tn.Ord)(e);var t=Ta(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var Tl=Tf(Tn.Ord)(function(e,t){return[e,t]});function Tp(e){return function(t){var n=Tl(t),r=n.length;return e.unfold(0,function(e){return e<r?nR.G([n[e],e+1]):nR.YP})}}var Td=bS.upsertAt,Ts=bS.has;function Tm(e){return function(t){if(!nR.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var Th=function(e,t){return Ty(e,function(){return t})},Ty=function(e,t){return function(n){if(!Ts(e,n))return nR.YP;var r=Object.assign({},n);return r[e]=t(n[e]),nR.G(r)}};function Tv(e){var t=Tm(e);return function(n){var r=T_(e,n);return nR.Wi(r)?nR.YP:nR.G([r.value,t(n)])}}var Tg=bS.isSubrecord,T_=bS.lookup,Tb=bS.mapWithIndex,TT=bS.map;function TS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bS.reduceWithIndex(e[0]):bS.reduceWithIndex(Tn.Ord).apply(void 0,e)}function TI(e){return"compare"in e?bS.foldMapWithIndex(e):bS.foldMapWithIndex(Tn.Ord)(e)}function TR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bS.reduceRightWithIndex(e[0]):bS.reduceRightWithIndex(Tn.Ord).apply(void 0,e)}var TC=bS.singleton;function Tx(e){return bS.traverseWithIndex(e)}function TO(e){return bS.traverse(e)}function Tw(e){return bS.sequence(e)}var TM=function(e){var t=TO(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Sa)}}},TE=function(e){var t=TO(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Sc)}}},Tk=bS.partitionMapWithIndex;function TP(e){return bS.partitionWithIndex(e)}var TF=bS.filterMapWithIndex;function TL(e){return bS.filterWithIndex(e)}function TW(e,t){return bS.fromFoldable(e,t)}var TD=Tl,TN=function(e){return TW(Tt.last(),eY.Foldable)(e)};function TA(e,t){return bS.fromFoldableMap(e,t)}var TU=bS.every,Tj=bS.some,Tq=bS.elem,TG=function(e){var t=bS.union(e);return function(e){return function(n){return Tu(n)?Ti({},e):Tu(e)?Ti({},n):t(e)(n)}}},TY=function(e){return function(t){return function(n){return Tu(n)||Tu(t)?{}:bS.intersection(e)(t)(n)}}},TK=function(e){return function(t){return Tu(t)?Ti({},e):Tu(e)?Ti({},t):bS.difference(e)(t)}},TV=bS._map,TB=bS._mapWithIndex,TH=bS._reduce,Tz=bS._foldMap,TX=bS._reduceRight,T$=bS._filter,TJ=bS._filterMap,TZ=bS._partition,TQ=bS._partitionMap,T0=bS._reduceWithIndex,T1=bS._foldMapWithIndex,T2=bS._reduceRightWithIndex,T8=bS._partitionMapWithIndex,T7=bS._partitionWithIndex,T5=bS._filterMapWithIndex,T4=bS._filterWithIndex,T3=bS._traverse,T9=bS._sequence,T6=function(e){return function(t){var n=Ta(e);return function(e,r){var i=n(e);if(0===i.length)return t.of({});for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){return e[n]=t,e}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},Se=bS.filter,St=bS.filterMap,Sn=bS.partition,Sr=bS.partitionMap;function Si(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bS.reduce(e[0]):bS.reduce(Tn.Ord).apply(void 0,e)}function So(e){return"compare"in e?bS.foldMap(e):bS.foldMap(Tn.Ord)(e)}function Su(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bS.reduceRight(e[0]):bS.reduceRight(Tn.Ord).apply(void 0,e)}var Sa=bS.compact,Sc=bS.separate,Sf="Record";function Sl(e){return"compare"in e?bS.getShow(e):bS.getShow(Tn.Ord)(e)}var Sp=bS.getEq,Sd=bS.getMonoid,Ss={URI:Sf,map:TV},Sm=(0,tp.flap)(Ss),Sh={URI:Sf,map:TV,mapWithIndex:TB},Sy=function(e){return{URI:Sf,reduce:TH(e),foldMap:Tz(e),reduceRight:TX(e)}},Sv=function(e){return{URI:Sf,reduce:TH(e),foldMap:Tz(e),reduceRight:TX(e),reduceWithIndex:T0(e),foldMapWithIndex:T1(e),reduceRightWithIndex:T2(e)}},Sg={URI:Sf,compact:Sa,separate:Sc},S_={URI:Sf,map:TV,compact:Sa,separate:Sc,filter:T$,filterMap:TJ,partition:TZ,partitionMap:TQ},Sb={URI:Sf,map:TV,mapWithIndex:TB,compact:Sa,separate:Sc,filter:T$,filterMap:TJ,partition:TZ,partitionMap:TQ,filterMapWithIndex:T5,filterWithIndex:T4,partitionMapWithIndex:T8,partitionWithIndex:T7},ST=function(e){return{URI:Sf,map:TV,reduce:TH(e),foldMap:Tz(e),reduceRight:TX(e),traverse:T3(e),sequence:T9(e)}},SS=function(e){return{URI:Sf,map:TV,mapWithIndex:TB,reduce:TH(e),foldMap:Tz(e),reduceRight:TX(e),reduceWithIndex:T0(e),foldMapWithIndex:T1(e),reduceRightWithIndex:T2(e),traverse:T3(e),sequence:T9(e),traverseWithIndex:T6(e)}},SI=function(e){var t=ST(e);return{URI:Sf,map:TV,reduce:TH(e),foldMap:Tz(e),reduceRight:TX(e),traverse:t.traverse,sequence:t.sequence,compact:Sa,separate:Sc,filter:T$,filterMap:TJ,partition:TZ,partitionMap:TQ,wither:(0,Tr.witherDefault)(t,Sg),wilt:(0,Tr.wiltDefault)(t,Sg)}},SR=function(e){var t=TG(e);return{concat:function(e,n){return t(n)(e)}}},SC=function(e){return{concat:SR(e).concat,empty:{}}},Sx=function(e){var t=TY(e);return{concat:function(e,n){return t(n)(e)}}},SO=function(){return{concat:function(e,t){return TK(t)(e)}}},Sw={URI:Sf,reduce:TH(Tn.Ord),foldMap:Tz(Tn.Ord),reduceRight:TX(Tn.Ord)},SM={URI:Sf,reduce:TH(Tn.Ord),foldMap:Tz(Tn.Ord),reduceRight:TX(Tn.Ord),reduceWithIndex:T0(Tn.Ord),foldMapWithIndex:T1(Tn.Ord),reduceRightWithIndex:T2(Tn.Ord)},SE={URI:Sf,map:TV,reduce:TH(Tn.Ord),foldMap:Tz(Tn.Ord),reduceRight:TX(Tn.Ord),traverse:T3(Tn.Ord),sequence:Tw},Sk={URI:Sf,map:TV,mapWithIndex:TB,reduce:TH(Tn.Ord),foldMap:Tz(Tn.Ord),reduceRight:TX(Tn.Ord),reduceWithIndex:T0(Tn.Ord),foldMapWithIndex:T1(Tn.Ord),reduceRightWithIndex:T2(Tn.Ord),traverse:T3(Tn.Ord),sequence:Tw,traverseWithIndex:T6(Tn.Ord)},SP=(0,Tr.witherDefault)(SE,Sg),SF=(0,Tr.wiltDefault)(SE,Sg),SL={URI:Sf,map:TV,reduce:TH(Tn.Ord),foldMap:Tz(Tn.Ord),reduceRight:TX(Tn.Ord),traverse:T3(Tn.Ord),sequence:Tw,compact:Sa,separate:Sc,filter:T$,filterMap:TJ,partition:TZ,partitionMap:TQ,wither:SP,wilt:SF},SW={},SD=Td,SN=bS.hasOwnProperty,SA={URI:Sf,map:TV,reduce:TH(Tn.Ord),foldMap:Tz(Tn.Ord),reduceRight:TX(Tn.Ord),traverse:T3(Tn.Ord),sequence:Tw,compact:Sa,separate:Sc,filter:T$,filterMap:TJ,partition:TZ,partitionMap:TQ,mapWithIndex:TB,reduceWithIndex:T0(Tn.Ord),foldMapWithIndex:T1(Tn.Ord),reduceRightWithIndex:T2(Tn.Ord),filterMapWithIndex:T5,filterWithIndex:T4,partitionMapWithIndex:T8,partitionWithIndex:T7,traverseWithIndex:T6(Tn.Ord),wither:SP,wilt:SF},SU=function(e){return function(t){return nR.pC(e(t))}},Sj=function(e){return function(t){return nR.tO(e(t))}},Sq=function(){return function(e){return!0}},SG=function(e){return function(t){return!e(t)}},SY=function(e){return function(t){return function(n){return t(n)||e(n)}}},SK=function(e){return function(t){return function(n){return t(n)&&e(n)}}},SV=function(){return function(e){return!1}},SB=function(e){return function(t){return function(n){return t(n)&&e(n)}}},SH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{add:function(t,n){return e.map(function(e,r){return e.add(t[r],n[r])})},zero:e.map(function(e){return e.zero}),mul:function(t,n){return e.map(function(e,r){return e.mul(t[r],n[r])})},one:e.map(function(e){return e.one}),sub:function(t,n){return e.map(function(e,r){return e.sub(t[r],n[r])})}}},Sz=function(e){return function(t){return e.sub(e.zero,t)}},SX=SH,S$=e8.getRing,SJ=e8.getSemiring,SZ=n(1214),SQ=function(e){return{show:function(t){var n="{";for(var r in e)nR.e$.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},S0=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,n){return e[n].show(t)}).join(", "),"]")}}},S1=S0,S2=SQ,S8={show:function(e){return JSON.stringify(e)}},S7={show:function(e){return JSON.stringify(e)}},S5={show:function(e){return JSON.stringify(e)}};function S4(e){return function(t){return function(n){return e.of([t,n])}}}function S3(e){return function(t){return function(n){return function(r){return e.map(n(r),function(e){var n=e[0],r=e[1];return[t(n),r]})}}}}function S9(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(n){var r=n[0],i=n[1];return e.map(t(i),function(e){var t=e[0],n=e[1];return[r(t),n]})})}}}}function S6(e){var t=Ie(e);return function(e){return function(n){return t(n,e)}}}function Ie(e){return function(t,n){return function(r){return e.chain(t(r),function(e){var t=e[0],r=e[1];return n(t)(r)})}}}function It(e){return function(t){return function(n){return e.of(t(n))}}}function In(e){return function(t){return function(n){return e.map(t,function(e){return[e,n]})}}}function Ir(e){return function(t){return function(n){return e.map(n(t),function(e){return e[0]})}}}function Ii(e){return function(t){return function(n){return e.map(n(t),bC)}}}function Io(e){var t=S9(e),n=S3(e),r=S6(e),i=Ir(e),o=Ii(e);return{map:function(e,t){return(0,e8.pipe)(e,n(t))},ap:function(e,n){return(0,e8.pipe)(e,t(n))},of:S4(e),chain:function(e,t){return(0,e8.pipe)(e,r(t))},get:function(){return function(t){return e.of([t,t])}},put:function(t){return function(){return e.of([void 0,t])}},modify:function(t){return function(n){return e.of([void 0,t(n)])}},gets:function(t){return function(n){return e.of([t(n),n])}},fromState:It(e),fromM:In(e),evalState:function(e,t){return(0,e8.pipe)(e,i(t))},execState:function(e,t){return(0,e8.pipe)(e,o(t))}}}var Iu=function(e){return function(){return vT(e)}},Ia=S4(gC);function Ic(e){return IR(vI(e))}function If(e){return IR(vR(e))}function Il(e){return IR(vC(e))}function Ip(e){return IR(vx(e))}function Id(e){return IR(vM(e))}function Is(e){return IR(vE(e))}var Im=function(e){return(0,e8.flow)(e,vS)},Ih=function(e){return function(t){return vT(e(t)[0])}},Iy=tE.match(function(e){return Iu(e)},Ia),Iv=Il,Ig=Id,I_=Ic,Ib=It(gC),IT=function(e){return IR(vb(e))},IS=function(e){return IR(vN(e))},II=function(e){return IR(vA(e))},IR=In(gT),IC=function(e){return function(t){return(0,e8.flow)(t,nO(e))}},Ix=function(e){return function(t){return function(n){return e(n)(t)(n)}}},IO=Ix,Iw=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IS(e.apply(void 0,t))}},IM=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IT(e.apply(void 0,t))}},IE=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IR(e.apply(void 0,t))}},Ik=function(e){return function(t){return IV(t,IE(e))}},IP=Ik,IF=function(e,t){return(0,e8.pipe)(e,IA(t))},IL=function(e,t){return(0,e8.pipe)(e,Iq(t))},IW=function(e,t){return function(n){return(0,e8.pipe)(e(n),gs(function(){return t()(n)}))}},ID=function(e,t,n){return function(r){return(0,e8.pipe)(e(r),gi(t,function(e){var t=e[0],r=e[1];return[n(t),r]}))}},IN=function(e,t){return function(n){return(0,e8.pipe)(e(n),gu(t))}},IA=S3(gT),IU=function(e,t){return function(n){return ID(n,e,t)}},Ij=function(e){return function(t){return IN(t,e)}},Iq=S9(gL),IG=Iq,IY=Ia,IK={fromEither:Iy},IV=(0,e8.dual)(2,Ie(gW)),IB={flatMap:IV},IH=(0,e8.dual)(2,function(e,t){return IV(e,function(e){return IM(t)(e)})}),Iz=nR.we({fromIO:Ig},IB),IX=nR.D9({fromTask:I_},IB),I$=nR.on({fromReader:Iv},IB),IJ=(0,e8.dual)(2,function(e,t){return IV(e,function(e){return Iw(t)(e)})}),IZ=(0,e8.dual)(2,nR.iu(IK,IB)),IQ=nR.hU(IK,IB),I0=(0,e8.dual)(2,function(e,t){return IV(e,function(e){return IE(t)(e)})}),I1=(0,e8.dual)(2,function(e,t){return IV(e,Rh(t))}),I2=IV(e8.identity),I8=I2,I7=function(e){return function(t){return function(n){return(0,e8.pipe)(t(n),gm(function(){return e()(n)}))}}},I5=I7,I4=Iu,I3="StateReaderTaskEither",I9={URI:I3,map:IF},I6=(0,e8.dual)(2,(0,tp.as)(I9)),Re=(0,tp.asUnit)(I9),Rt=(0,tp.flap)(I9),Rn={URI:I3,of:IY},Rr={URI:I3,map:IF,ap:IL},Ri=(0,eU.apFirst)(Rr),Ro=Ri,Ru=(0,eU.apSecond)(Rr),Ra=Ru,Rc={URI:I3,map:IF,ap:IL,of:IY},Rf={URI:I3,map:IF,ap:IL,chain:IV},Rl={URI:I3,fromState:Ib},Rp=ir(Rl),Rd=ii(Rl),Rs=io(Rl),Rm=iu(Rl),Rh=ia(Rl),Ry=ic(Rl,Rf),Rv={URI:I3,map:IF,ap:IL,of:IY,chain:IV},Rg={URI:I3,map:IF,ap:IL,of:IY,chain:IV,fromIO:Ig},R_={URI:I3,map:IF,ap:IL,of:IY,chain:IV,fromIO:Ig,fromTask:I_},Rb={URI:I3,map:IF,ap:IL,of:IY,chain:IV,throwError:I4},RT={URI:I3,fromEither:Iy},RS={URI:I3,fromIO:Ig},RI={URI:I3,fromIO:Ig,fromTask:I_},RR={URI:I3,fromReader:Iv},RC=(0,e8.dual)(2,to.tap(Rf)),Rx=(0,e8.dual)(2,(0,n_.tapEither)(RT,Rf)),RO=(0,e8.dual)(2,nI(RS,Rf)),Rw=(0,e8.dual)(2,is(RI,Rf)),RM=(0,e8.dual)(2,rx(RR,Rf)),RE={URI:I3,bimap:ID,mapLeft:IN},Rk={URI:I3,map:IF,alt:IW},RP=rT(RR),RF=rS(RR),RL=rI(RR),RW=I$,RD=I$,RN=RM,RA=RM,RU=(0,n_.fromOption)(RT),Rj=(0,n_.fromOptionK)(RT),Rq=(0,n_.chainOptionK)(RT,Rf),RG=Rq,RY=IZ,RK=IZ,RV=Rx,RB=Rx,RH=(0,n_.fromPredicate)(RT),Rz=(0,n_.filterOrElse)(RT,Rf),RX=Rz,R$=(0,n_.fromEitherK)(RT),RJ=nb(RS),RZ=Iz,RQ=RO,R0=IH,R1=IH,R2=IJ,R8=IJ,R7=il(RI),R5=IX,R4=Rw,R3=Ir(gT),R9=Ii(gT),R6=(0,tp.bindTo)(I9),Ce=(0,tp.let)(I9),Ct=to.bind(Rf),Cn=Ct,Cr=(0,eU.apS)(Rr),Ci=Cr,Co=function(e){return function(t){return function(n){return function(r){return function(){return nR.Gb(t).reduce(function(t,n,i){return t.then(function(o){return nR.nM(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(nR.nM(e))return e;var t=e.right,n=t[0],r=t[1];return o.right[0].push(n),o.right[1]=r,o})})},e(0,nR.YM(t))(n)(r)().then(tE.map(function(e){return[[e[0]],e[1]]})))}}}}},Cu=function(e){var t=Co(e);return function(e){return nR.Od(e)?t(e):IY(nR.Xl)}},Ca=Cu,Cc=function(e){return Cu(function(t,n){return e(n)})},Cf=Cc(e8.identity),Cl=IV,Cp=IV,Cd=RC,Cs=RC,Cm={URI:I3,map:IF,of:IY,ap:IL,chain:IV,bimap:ID,mapLeft:IN,alt:IW,fromIO:Ig,fromTask:I_,throwError:I4},Ch={URI:I3,map:IF,of:IY,ap:IL,chain:IV,bimap:ID,mapLeft:IN,alt:IW,fromIO:Ig,fromTask:I_,throwError:I4},Cy=function(e,t){return(0,e8.pipe)(e(t),gn(function(e){return e[0]}))},Cv=function(e,t){return(0,e8.pipe)(e(t),gn(function(e){return e[0],e[1]}))};function Cg(e,t,n){return e(t)(n)()}function C_(e){return function(t){return{peek:t.peek,pos:e}}}function Cb(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}}function CT(e){return function(t){return t.peek(e(t.pos))}}function CS(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}}var CI=function(e,t){return(0,e8.pipe)(e,CO(t))},CR=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},CC=function(e){return e.peek(e.pos)},Cx=CR(e8.identity),CO=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},Cw="Store",CM={URI:Cw,map:CI},CE=(0,tp.flap)(CM),Ck={URI:Cw,map:CI,extend:function(e,t){return(0,e8.pipe)(e,CR(t))},extract:CC},CP=Ck;function CF(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function CL(e,t){var n=CF(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),e8.identity,function(e){return[e,e]}))}}function CW(e){return CF(e,e)}function CD(e){return CL(e,e)}var CN=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},CA=function(e){return function(t){var n={};for(var r in t)nR.e$.call(t,r)&&(n[r]=e[r](t[r]));return n}},CU=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},Cj=aA(dZ),Cq=aB(dZ),CG=dY,CY=aH(dZ),CK=function(e){return CV(dD(e))},CV=aj(dz),CB=dq(td.fromEither),CH=az(dz),Cz=CH,CX=aX(d5),C$=CX,CJ=CX,CZ=CJ,CQ=a$(d4),C0=CQ,C1=aq(dZ),C2=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return CU(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(nR.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,nR.YP];case 3:return[2]}})},new(r||(r=Promise))(function(e,o){function u(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(u,a)}c((i=i.apply(t,n||[])).next())})}},C8=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return C2(function(){return e.apply(void 0,t)})}},C7=aG(dZ),C5=aY(d4),C4=aK(dZ),C3=aV(d4),C9=aJ(dz),C6=aZ(dQ),xe=Cj,xt=(0,e8.dual)(2,a0(d4)),xn={flatMap:xt},xr=nR.we({fromIO:CK},xn),xi=nR.D9({fromTask:CV},xn),xo=xt(e8.identity),xu=a1(d4),xa=xu,xc=aU(dZ),xf=xc(),xl=tm(dz,td.Compactable),xp=th(dz,td.Compactable,td.Functor),xd=ne(dz,td.Filterable),xs=nt(dz,td.Filterable),xm=nn(dz,td.Filterable),xh=nr(dz,td.Filterable),xy=function(e,t){return(0,e8.pipe)(e,C9(t))},xv=function(e,t){return(0,e8.pipe)(e,C6(t))},xg=function(e,t){return(0,e8.pipe)(e,xu(t))},x_="TaskOption",xb={URI:x_,map:xy},xT=(0,e8.dual)(2,(0,tp.as)(xb)),xS=(0,tp.asUnit)(xb),xI=(0,tp.flap)(xb),xR={URI:x_,of:xe},xC={URI:x_,map:xy,ap:xv},xx=(0,eU.apFirst)(xC),xO=(0,eU.apSecond)(xC),xw={URI:x_,map:xy,ap:xv,of:xe},xM=function(e,t){return xt(e,function(e){return(0,e8.pipe)(t,C9(e))})},xE={URI:x_,map:xy,ap:xM},xk={URI:x_,map:xy,ap:xM,of:xe},xP={URI:x_,map:xy,ap:xv,chain:xt},xF={URI:x_,fromEither:CY},xL={URI:x_,fromIO:CK},xW={URI:x_,fromIO:CK,fromTask:CV},xD=(0,e8.dual)(2,to.tap(xP)),xN=(0,e8.dual)(2,(0,n_.tapEither)(xF,xP)),xA=(0,e8.dual)(2,nI(xL,xP)),xU=(0,e8.dual)(2,is(xW,xP)),xj={URI:x_,map:xy,alt:xg},xq={URI:x_,zero:xc},xG=(0,a8.guard)(xq,xR),xY={URI:x_,map:xy,ap:xv,of:xe,alt:xg,zero:xc},xK={URI:x_,map:xy,ap:xv,of:xe,chain:xt},xV={URI:x_,map:xy,ap:xv,of:xe,chain:xt,fromIO:CK},xB={URI:x_,map:xy,ap:xv,of:xe,chain:xt,fromIO:CK,fromTask:CV},xH={URI:x_,compact:xl,separate:xp},xz={URI:x_,map:xy,compact:xl,separate:xp,filter:function(e,t){return(0,e8.pipe)(e,xd(t))},filterMap:function(e,t){return(0,e8.pipe)(e,xs(t))},partition:function(e,t){return(0,e8.pipe)(e,xm(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,xh(t))}},xX=nb(xL),x$=xr,xJ=xA,xZ=(0,n_.fromEitherK)(xF),xQ=(0,n_.chainEitherK)(xF,xP),x0=xN,x1=il(xW),x2=xi,x8=xU,x7=xe(nR.F4),x5=(0,tp.bindTo)(xb),x4=(0,tp.let)(xb),x3=to.bind(xP),x9=(0,eU.apS)(xC),x6=xe(nR.Xl),Oe=function(e){return(0,e8.flow)(sy(e),dq(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},Ot=function(e){var t=Oe(e);return function(e){return nR.Od(e)?t(e):x6}},On=function(e){return function(t){return function(){return nR.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nR.Wi(i)?t:e(r+1,n)().then(function(e){return nR.Wi(e)?e:(i.value.push(e.value),i)})})},e(0,nR.YM(t))().then(td.map(nR.ri)))}}},Or=function(e){var t=On(e);return function(e){return nR.Od(e)?t(e):x6}},Oi=Ot,Oo=function(e){return Ot(function(t,n){return e(n)})},Ou=Oo(e8.identity),Oa=Or,Oc=function(e){return Or(function(t,n){return e(n)})},Of=Oc(e8.identity),Ol=xt,Op=xD,Od=function(e){return"Left"===e._tag},Os=function(e){return"Right"===e._tag};function Om(e){return"Both"===e._tag}function Oh(e){return{_tag:"Left",left:e}}function Oy(e){return{_tag:"Right",right:e}}function Ov(e,t){return{_tag:"Both",left:e,right:t}}var Og=function(e,t,n){return function(r){switch(r._tag){case"Left":return e(r.left);case"Right":return t(r.right);case"Both":return n(r.left,r.right)}}},O_=Og,Ob=Og,OT=Ob,OS=Ob(Oy,Oh,function(e,t){return Ov(t,e)});function OI(e,t){return{show:Ob(function(t){return"left(".concat(e.show(t),")")},function(e){return"right(".concat(t.show(e),")")},function(n,r){return"both(".concat(e.show(n),", ").concat(t.show(r),")")})}}function OR(e,t){return(0,t5.fromEquals)(function(n,r){return Od(n)?Od(r)&&e.equals(n.left,r.left):Os(n)?Os(r)&&t.equals(n.right,r.right):Om(r)&&e.equals(n.left,r.left)&&t.equals(n.right,r.right)})}function OC(e,t){return{concat:function(n,r){return Od(n)?Od(r)?Oh(e.concat(n.left,r.left)):Os(r)?Ov(n.left,r.right):Ov(e.concat(n.left,r.left),r.right):Os(n)?Od(r)?Ov(r.left,n.right):Os(r)?Oy(t.concat(n.right,r.right)):Ov(r.left,t.concat(n.right,r.right)):Od(r)?Ov(e.concat(n.left,r.left),n.right):Os(r)?Ov(n.left,t.concat(n.right,r.right)):Ov(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var Ox=function(e){return{URI:OQ,_E:void 0,map:ON,ap:function(t,n){return Od(t)?Od(n)?Oh(e.concat(t.left,n.left)):Os(n)?Oh(t.left):Oh(e.concat(t.left,n.left)):Os(t)?Od(n)?Oh(n.left):Os(n)?Oy(t.right(n.right)):Ov(n.left,t.right(n.right)):Od(n)?Oh(e.concat(t.left,n.left)):Os(n)?Ov(t.left,t.right(n.right)):Ov(e.concat(t.left,n.left),t.right(n.right))}}};function OO(e){return{URI:OQ,_E:void 0,map:ON,ap:Ox(e).ap,of:OZ}}function Ow(e){return{URI:OQ,_E:void 0,map:ON,ap:Ox(e).ap,chain:function(t,n){if(Od(t))return t;if(Os(t))return n(t.right);var r=n(t.right);return Od(r)?Oh(e.concat(t.left,r.left)):Os(r)?Ov(t.left,r.right):Ov(e.concat(t.left,r.left),r.right)}}}function OM(e){var t=Ow(e);return{URI:OQ,_E:void 0,map:ON,of:OZ,ap:t.ap,chain:t.chain,throwError:Oh}}function OE(e){return Od(e)?nR.G(e.left):Os(e)?nR.YP:nR.G(e.left)}function Ok(e){return Od(e)?nR.YP:(Os(e),nR.G(e.right))}function OP(e){return function(t){return nR.Wi(t)?Oh(e):Ov(e,t.value)}}function OF(e){return function(t){return nR.Wi(t)?Oy(e):Ov(t.value,e)}}function OL(e){return Od(e)?nR.G(e.left):nR.YP}function OW(e){return Os(e)?nR.G(e.right):nR.YP}var OD=function(e,t){return nR.Wi(e)?nR.Wi(t)?nR.YP:nR.G(Oy(t.value)):nR.Wi(t)?nR.G(Oh(e.value)):nR.G(Ov(e.value,t.value))},ON=function(e,t){return(0,e8.pipe)(e,OB(t))},OA=function(e,t,n){return(0,e8.pipe)(e,OK(t,n))},OU=function(e,t){return(0,e8.pipe)(e,OV(t))},Oj=function(e,t,n){return(0,e8.pipe)(e,OH(t,n))},Oq=function(e){var t=Oz(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},OG=function(e,t,n){return(0,e8.pipe)(e,OX(t,n))},OY=function(e){var t=O$(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},OK=function(e,t){return function(n){return Od(n)?Oh(e(n.left)):Os(n)?Oy(t(n.right)):Ov(e(n.left),t(n.right))}},OV=function(e){return function(t){return Od(t)?Oh(e(t.left)):Om(t)?Ov(e(t.left),t.right):t}},OB=function(e){return function(t){return Od(t)?t:Os(t)?Oy(e(t.right)):Ov(t.left,e(t.right))}},OH=function(e,t){return function(n){return Od(n)?e:t(e,n.right)}},Oz=function(e){return function(t){return function(n){return Od(n)?e.empty:t(n.right)}}},OX=function(e,t){return function(n){return Od(n)?e:t(n.right,e)}},O$=function(e){return function(t){return function(n){return Od(n)?e.of(n):Os(n)?e.map(t(n.right),Oy):e.map(t(n.right),function(e){return Ov(n.left,e)})}}},OJ=function(e){return function(t){return Od(t)?e.of(t):Os(t)?e.map(t.right,Oy):e.map(t.right,function(e){return Ov(t.left,e)})}},OZ=Oy,OQ="These",O0={URI:OQ,map:ON},O1=(0,tp.flap)(O0),O2={URI:OQ,of:OZ},O8={URI:OQ,bimap:OA,mapLeft:OU},O7={URI:OQ,fromThese:e8.identity},O5={URI:OQ,reduce:Oj,foldMap:Oq,reduceRight:OG},O4={URI:OQ,map:ON,reduce:Oj,foldMap:Oq,reduceRight:OG,traverse:OY,sequence:OJ},O3={URI:OQ,fromEither:e8.identity},O9=(0,n_.fromPredicate)(O3),O6=(0,n_.fromOption)(O3),we=(0,n_.fromOptionK)(O3),wt=function(e){return function(t){return function(n){return!Od(n)&&e.equals(t,n.right)}}},wn=function(e){return function(t){return!Od(t)&&e(t.right)}},wr=function(e,t){return function(n){return Od(n)?[n.left,t()]:Os(n)?[e(),n.right]:[n.left,n.right]}},wi=function(e,t){return wr(function(){return e},function(){return t})},wo=OZ(nR.Xl),wu=function(e){return function(t){return function(n){var r=nR.YP,i=t(0,nR.YM(n));if(Od(i))return i;Om(i)&&(r=nR.G(i.left));for(var o=[i.right],u=1;u<n.length;u++){var a=t(u,n[u]);if(Od(a))return a;Om(a)&&(r=nR.Wi(r)?nR.G(a.left):nR.G(e.concat(r.value,a.left))),o.push(a.right)}return nR.Wi(r)?Oy(o):Ov(r.value,o)}}},wa=function(e){return function(t){var n=wu(e)(t);return function(e){return nR.Od(e)?n(e):wo}}},wc={URI:OQ,map:ON,bimap:OA,mapLeft:OU,reduce:Oj,foldMap:Oq,reduceRight:OG,traverse:OY,sequence:OJ};function wf(e){return(0,e8.flow)(Oy,e.of)}function wl(e){return(0,e8.flow)(Oh,e.of)}function wp(e){return(0,e8.flow)(Ov,e.of)}function wd(e){return function(t){return e.map(t,Oy)}}function ws(e){return function(t){return e.map(t,Oh)}}function wm(e){return(0,tp.map)(e,O0)}function wh(e,t){return(0,eU.ap)(e,Ox(t))}function wy(e,t){var n=wl(e);return function(r){return function(i){return e.chain(i,Ob(n,r,function(n,i){return e.map(r(i),Ob(function(e){return Oh(t.concat(n,e))},function(e){return Ov(n,e)},function(e,r){return Ov(t.concat(n,e),r)}))}))}}}function wv(e){return function(t,n){return function(r){return e.map(r,OK(t,n))}}}function wg(e){return function(t){return function(n){return e.map(n,OV(t))}}}function w_(e){return function(t,n,r){return function(i){return e.map(i,Ob(t,n,r))}}}function wb(e){return function(t,n,r){return function(i){return e.chain(i,Ob(t,n,r))}}}function wT(e){return function(t){return e.map(t,OS)}}function wS(e){return function(t,n){return function(r){return e.map(r,wr(t,n))}}}function wI(e){var t=wm(e),n=wv(e),r=wg(e),i=wb(e),o=wS(e),u=wf(e),a=function(e,n){return(0,e8.pipe)(e,t(n))};return{map:a,bimap:function(e,t,r){return(0,e8.pipe)(e,n(t,r))},mapLeft:function(e,t){return(0,e8.pipe)(e,r(t))},fold:function(e,t,n,r){return(0,e8.pipe)(e,i(t,n,r))},swap:wT(e),rightM:wd(e),leftM:ws(e),left:wl(e),right:wf(e),both:wp(e),toTuple:function(e,t,n){return(0,e8.pipe)(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=wh(e,t),r=wy(e,t);return{_E:void 0,map:a,of:u,ap:function(e,t){return(0,e8.pipe)(e,n(t))},chain:function(e,t){return(0,e8.pipe)(e,r(t))}}}}}var wR=wl(dZ),wC=wf(dZ),wx=wp(dZ),wO=wd(dz),ww=ws(dz),wM=(0,e8.flow)(dD,wO),wE=(0,e8.flow)(dD,ww),wk=dY,wP=dY,wF=wM,wL=dD,wW=wO,wD=w_(dz),wN=wD,wA=wb(d4),wU=wA,wj=wU,wq=wj,wG=wT(dz),wY=function(e,t){return(0,e8.pipe)(e,wB(t))},wK=function(e,t,n){return(0,e8.pipe)(e,wH(t,n))},wV=function(e,t){return(0,e8.pipe)(e,wz(t))},wB=wm(dz),wH=wv(dz),wz=wg(dz),wX=wC,w$="TaskThese",wJ=function(e,t){var n=wh(e,t);return{URI:w$,_E:void 0,map:wY,ap:function(e,t){return(0,e8.pipe)(e,n(t))}}};function wZ(e,t){return{URI:w$,_E:void 0,map:wY,ap:wJ(e,t).ap,of:wX}}function wQ(e){var t=wJ(d2,e),n=wy(d4,e);return{URI:w$,_E:void 0,map:wY,ap:t.ap,chain:function(e,t){return(0,e8.pipe)(e,n(t))}}}function w0(e){var t=wZ(d2,e),n=wQ(e);return{URI:w$,_E:void 0,map:wY,ap:t.ap,of:wX,chain:n.chain,fromIO:wF,fromTask:wW}}var w1={URI:w$,map:wY},w2=(0,tp.flap)(w1),w8={URI:w$,of:wX},w7={URI:w$,bimap:wK,mapLeft:wV},w5={URI:w$,fromEither:wk},w4=(0,n_.fromOption)(w5),w3=(0,n_.fromOptionK)(w5),w9=(0,n_.fromPredicate)(w5),w6={URI:w$,fromThese:wP},Me=im(w6),Mt={URI:w$,fromIO:wF},Mn=nb(Mt),Mr={URI:w$,fromIO:wF,fromTask:wW},Mi=il(Mr),Mo=wS(dz),Mu=wX(nR.Xl),Ma=function(e){var t=wu(e);return function(e){return(0,e8.flow)(sy(e),dq(t(e8.SK)))}},Mc=function(e){return function(t){var n=Ma(e)(t);return function(e){return nR.Od(e)?n(e):Mu}}},Mf=function(e){return function(t){return function(n){return function(){return nR.Gb(n).reduce(function(n,r,i){return n.then(function(o){return Od(o)?n:t(i+1,r)().then(function(t){if(Od(t))return t;if(Om(t)){var n=o.right;return n.push(t.right),Om(o)?Ov(e.concat(o.left,t.left),n):Ov(t.left,n)}return o.right.push(t.right),o})})},t(0,nR.YM(n))().then(OB(nR.ri)))}}}},Ml=function(e){return function(t){var n=Mf(e)(t);return function(e){return nR.Od(e)?n(e):Mu}}},Mp={URI:w$,map:wY},Md={URI:w$,bimap:wK,mapLeft:wV},Ms=function(e,t){return Mo(function(){return e},function(){return t})},Mm={URI:w$,map:wY,bimap:wK,mapLeft:wV},Mh=function(e,t){return(0,eU.getApplySemigroup)(d8)(OC(e,t))};function My(e,t){return function(n){return n(t(n(e.empty)))}}function Mv(e){return function(t){return[e(t),t]}}function Mg(e){return function(t){return function(n){return[t(n),e(n)]}}}function M_(e){return function(t){return function(n){return t(e(n))}}}function Mb(e){return{URI:MI,_E:void 0,map:MT,extend:function(t,n){return function(r){return n(function(n){return t(e.concat(r,n))})}},extract:function(t){return t(e.empty)}}}var MT=function(e,t){return(0,e8.pipe)(e,MS(t))},MS=function(e){return function(t){return function(n){return e(t(n))}}},MI="Traced",MR={URI:MI,map:MT},MC=(0,tp.flap)(MR),Mx=MR;function MO(e,t){return function(n){var r=e.traverse(n),i=t.traverse(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function Mw(e,t){return function(n){var r=e.sequence(n),i=t.sequence(n);return function(t){return r(e.map(t,i))}}}function MM(e,t){var n=(0,tp.getFunctorComposition)(e,t).map,r=nm(e,t),i=MO(e,t),o=Mw(e,t);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(e){var t=i(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},sequence:function(e){var t=o(e);return function(e){return(0,e8.pipe)(e,t)}}}}function ME(e,t){return void 0===t&&(t=[]),{value:e,forest:t}}function Mk(e){var t=function(n){return eY.isEmpty(n.forest)?"make(".concat(e.show(n.value),")"):"make(".concat(e.show(n.value),", [").concat(n.forest.map(t).join(", "),"])")};return{show:t}}function MP(e){var t,n=(0,t5.fromEquals)(function(n,r){return e.equals(n.value,r.value)&&t.equals(n.forest,r.forest)});return t=eY.getEq(n),n}var MF=function(e,t){for(var n,r="",i=t.length,o=0;o<i;o++){n=t[o];var u=o===i-1;r+=e+(u?"└":"├")+"─ "+n.value+MF(e+(i>1&&!u?"│ ":" "),n.forest)}return r};function ML(e){return MF("\n",e)}function MW(e){return e.value+ML(e.forest)}function MD(e,t){var n=t(e);return{value:n[0],forest:MN(n[1],t)}}function MN(e,t){return e.map(function(e){return MD(e,t)})}function MA(e){var t=MU(e);return function(n,r){return e.chain(r(n),function(n){var i=n[0],o=n[1];return e.map(t(o,r),function(e){return{value:i,forest:e}})})}}function MU(e){var t=eY.traverse(e);return function(n,r){return(0,e8.pipe)(n,t(function(t){return MA(e)(t,r)}))}}function Mj(e){var t=function(n){return e(n.value,n.forest.map(t))};return t}var Mq=function(e,t){return(0,e8.pipe)(e,MQ(t))},MG=function(e,t){return MX(e,function(e){return(0,e8.pipe)(t,MQ(e))})},MY=function(e,t,n){return(0,e8.pipe)(e,M0(t,n))},MK=function(e){var t=M1(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},MV=function(e,t,n){return(0,e8.pipe)(e,M2(t,n))},MB=function(e,t){return(0,e8.pipe)(e,M$(t))},MH=function(e){var t=M7(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},Mz=function(e){return function(t){return MG(t,e)}},MX=(0,e8.dual)(2,function(e,t){var n=t(e.value),r=n.value,i=n.forest;return{value:r,forest:(0,eY.getMonoid().concat)(i,e.forest.map(MX(t)))}}),M$=function(e){return function(t){return{value:e(t),forest:t.forest.map(M$(e))}}},MJ=M$(e8.identity),MZ=MX(e8.identity),MQ=function(e){return function(t){return{value:e(t.value),forest:t.forest.map(MQ(e))}}},M0=function(e,t){return function(n){for(var r=t(e,n.value),i=n.forest.length,o=0;o<i;o++)r=(0,e8.pipe)(n.forest[o],M0(r,t));return r}},M1=function(e){return function(t){return M0(e.empty,function(n,r){return e.concat(n,t(r))})}},M2=function(e,t){return function(n){for(var r=e,i=n.forest.length,o=i-1;o>=0;o--)r=(0,e8.pipe)(n.forest[o],M2(r,t));return t(n.value,r)}},M8=function(e){return e.value},M7=function(e){var t=eY.traverse(e),n=function(r){return function(i){return e.ap(e.map(r(i.value),function(e){return function(t){return{value:e,forest:t}}}),(0,e8.pipe)(i.forest,t(n(r))))}};return n},M5=function(e){return M7(e)(e8.identity)},M4=function(e){return ME(e)},M3="Tree",M9={URI:M3,map:Mq},M6=(0,tp.flap)(M9),Ee={URI:M3,of:M4},Et={URI:M3,map:Mq,ap:MG},En=(0,eU.apFirst)(Et),Er=(0,eU.apSecond)(Et),Ei={URI:M3,map:Mq,ap:MG,of:M4},Eo={URI:M3,map:Mq,ap:MG,chain:MX},Eu={URI:M3,map:Mq,ap:MG,of:M4,chain:MX},Ea=(0,to.chainFirst)(Eo),Ec={URI:M3,reduce:MY,foldMap:MK,reduceRight:MV},Ef={URI:M3,map:Mq,reduce:MY,foldMap:MK,reduceRight:MV,traverse:MH,sequence:M5},El={URI:M3,map:Mq,extend:MB,extract:M8},Ep=M4(nR.F4),Ed=(0,tp.bindTo)(M9),Es=(0,tp.let)(M9),Em=(0,to.bind)(Eo),Eh=(0,eU.apS)(Et);function Ey(e){var t=function(n,r){return e.equals(n,r.value)||r.forest.some(function(e){return t(n,e)})};return t}var Ev=function(e){return function(t){return e(t.value)||t.forest.some(Ev(e))}},Eg=MX,E_={URI:M3,map:Mq,of:M4,ap:MG,chain:MX,reduce:MY,foldMap:MK,reduceRight:MV,traverse:MH,sequence:M5,extract:M8,extend:MB},Eb=bR,ET=bC,ES=function(e){return[ET(e),Eb(e)]};function EI(e){return{URI:E$,_E:void 0,map:EE,ap:function(t,n){return[Eb(t)(Eb(n)),e.concat(ET(t),ET(n))]}}}var ER=function(e){return function(t){return[t,e.empty]}};function EC(e){var t=EI(e);return{URI:E$,_E:void 0,map:t.map,ap:t.ap,of:ER(e)}}function Ex(e){var t=EI(e);return{URI:E$,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r=n(Eb(t)),i=r[0],o=r[1];return[i,e.concat(ET(t),o)]}}}function EO(e){var t=Ex(e);return{URI:E$,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:ER(e)}}function Ew(e){var t=Ex(e);return{URI:E$,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,chainRec:function(t,n){for(var r=n(t),i=e.empty,o=Eb(r);"Left"===o._tag;)i=e.concat(i,ET(r)),o=Eb(r=n(o.left));return[o.right,e.concat(i,ET(r))]}}}var EM=function(e,t){return(0,e8.pipe)(e,Eq(t))},EE=function(e,t){return(0,e8.pipe)(e,EU(t))},Ek=function(e,t,n){return(0,e8.pipe)(e,EA(t,n))},EP=function(e,t){return(0,e8.pipe)(e,Ej(t))},EF=function(e,t){return(0,e8.pipe)(e,EG(t))},EL=function(e,t,n){return(0,e8.pipe)(e,EB(t,n))},EW=function(e){var t=EV(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},ED=function(e,t,n){return(0,e8.pipe)(e,EH(t,n))};function EN(e){var t=Ez(e);return function(e,n){return(0,e8.pipe)(e,t(n))}}var EA=function(e,t){return function(n){return[t(Eb(n)),e(ET(n))]}},EU=function(e){return function(t){return[e(Eb(t)),ET(t)]}},Ej=function(e){return function(t){return[Eb(t),e(ET(t))]}},Eq=function(e){return function(t){return[Eb(t),ET(e)]}},EG=function(e){return function(t){return[e(t),ET(t)]}},EY=EG(e8.identity),EK=bH,EV=b$,EB=bX,EH=bJ,Ez=function(e){return function(t){return function(n){return e.map(t(Eb(n)),function(e){return[e,ET(n)]})}}},EX=function(e){return function(t){return e.map(Eb(t),function(e){return[e,ET(t)]})}},E$="Tuple",EJ={URI:E$,map:EE},EZ=(0,tp.flap)(EJ),EQ={URI:E$,bimap:Ek,mapLeft:EP},E0={URI:E$,compose:EM},E1={URI:E$,map:EE,extend:EF,extract:EK},E2={URI:E$,reduce:EL,foldMap:EW,reduceRight:ED},E8={URI:E$,map:EE,reduce:EL,foldMap:EW,reduceRight:ED,traverse:EN,sequence:EX},E7=EU,E5=Ej,E4={URI:E$,compose:EM,map:EE,bimap:Ek,mapLeft:EP,extract:EK,extend:EF,reduce:EL,foldMap:EW,reduceRight:ED,traverse:EN,sequence:EX};function E3(e,t){var n=(0,eG.getApplicativeComposition)(t,tE.getApplicativeValidation(e));return{map:n.map,ap:n.ap,of:n.of,chain:function(e,n){return t.chain(e,function(e){return nR.nM(e)?t.of(nR.t$(e.left)):n(e.right)})},alt:function(n,r){return t.chain(n,function(n){return nR.tO(n)?t.of(n):t.map(r(),function(t){return nR.nM(t)?nR.t$(e.concat(n.left,t.left)):t})})}}}var E9=Tt.constant(void 0),E6={concat:E9.concat,empty:void 0},ke=function(e){return function(){return[void 0,e]}},kt=function(e){return function(){var t=e(),n=t[0],r=t[1];return[[n,r],r]}},kn=function(e){return function(){var t=e(),n=t[0];return[n[0],(0,n[1])(t[1])]}},kr=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[[r,e(i)],i]}}},ki=function(e){return function(t){return function(){var n=t();return[n[0],e(n[1])]}}},ko=function(e,t){return(0,e8.pipe)(e,ku(t))},ku=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[e(r),i]}}},ka="Writer",kc=function(e){return{URI:ka,_E:void 0,of:function(t){return function(){return[t,e.empty]}}}},kf=function(e){return{URI:ka,_E:void 0,map:ko,ap:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(),a=u[0],c=u[1];return[i(a),e.concat(o,c)]}}}},kl=function(e){var t=kf(e),n=kc(e);return{URI:ka,_E:void 0,map:ko,ap:t.ap,of:n.of}};function kp(e){return{URI:ka,_E:void 0,map:ko,ap:kf(e).ap,chain:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(i)(),a=u[0],c=u[1];return[a,e.concat(o,c)]}}}}function kd(e){var t=kl(e),n=kp(e);return{URI:ka,_E:void 0,map:ko,ap:t.ap,of:t.of,chain:n.chain}}var ks={URI:ka,map:ko},km=(0,tp.flap)(ks),kh=function(e){return e()[0]},ky=function(e){return e()[1]},kv=function(e){return e()[0]},kg=function(e){return e()[1]},k_=ks;function kb(e){var t=function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[n(t),r]})}};return{map:t,evalWriter:function(t){return e.map(t(),function(e){return e[0]})},execWriter:function(t){return e.map(t(),function(e){return e[0],e[1]})},tell:function(t){return function(){return e.of([void 0,t])}},listen:function(t){return function(){return e.map(t(),function(e){var t=e[0],n=e[1];return[[t,n],n]})}},pass:function(t){return function(){return e.map(t(),function(e){var t=e[0];return[t[0],(0,t[1])(e[1])]})}},listens:function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[[t,n(r)],r]})}},censor:function(t,n){return function(){return e.map(t(),function(e){return[e[0],n(e[1])]})}},getMonad:function(n){return{_E:void 0,map:t,of:function(t){return function(){return e.of([t,n.empty])}},ap:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(),function(e){var t=e[0],r=e[1];return[i(t),n.concat(o,r)]})})}},chain:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(i)(),function(e){var t=e[0],r=e[1];return[t,n.concat(o,r)]})})}}}}}}},97963:function(e,t,n){n.d(t,{D9:function(){return O},F2:function(){return d},F4:function(){return g},G:function(){return c},Gb:function(){return y},Od:function(){return m},WE:function(){return S},Wi:function(){return o},Xl:function(){return v},YM:function(){return h},YP:function(){return a},e$:function(){return _},hU:function(){return R},iu:function(){return C},nM:function(){return f},ny:function(){return I},on:function(){return w},pC:function(){return u},r1:function(){return b},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return T},we:function(){return x}});var r=n(42275),i=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e){return"None"===e._tag},u=function(e){return"Some"===e._tag},a={_tag:"None"},c=function(e){return{_tag:"Some",value:e}},f=function(e){return"Left"===e._tag},l=function(e){return"Right"===e._tag},p=function(e){return{_tag:"Left",left:e}},d=function(e){return{_tag:"Right",right:e}},s=function(e){return[e]},m=function(e){return e.length>0},h=function(e){return e[0]},y=function(e){return e.slice(1)},v=[],g={},_=Object.prototype.hasOwnProperty,b=function(e){return i([e[0]],e.slice(1),!0)},T=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return e.fromEither(null==o?p(n.apply(void 0,r)):d(o))}}},S=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return e.fromEither(o(u)?p(n.apply(void 0,r)):d(u.value))}}},I=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,T(e)(r,i))})},R=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,S(e)(r,i))})},C=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})},x=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})},O=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})},w=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})}},76627:function(e,t,n){n.r(t),n.d(t,{Bounded:function(){return u},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return o},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(e){return"number"==typeof e},i={equals:function(e,t){return e===t}},o={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},u={equals:i.equals,compare:o.compare,top:1/0,bottom:-1/0},a={show:function(e){return JSON.stringify(e)}},c={concat:function(e,t){return e-t}},f={concat:function(e,t){return e+t}},l={concat:function(e,t){return e*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:c.concat,degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},18896:function(e,t,n){n.r(t),n.d(t,{alt:function(){return b},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return E},contramap:function(){return a},extend:function(){return s},filter:function(){return T},filterMap:function(){return S},filterMapWithIndex:function(){return x},filterWithIndex:function(){return C},foldMap:function(){return h},foldMapWithIndex:function(){return g},map:function(){return u},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return I},partitionMap:function(){return R},partitionMapWithIndex:function(){return w},partitionWithIndex:function(){return O},pipe:function(){return P},pipeable:function(){return k},promap:function(){return M},reduce:function(){return m},reduceRight:function(){return y},reduceRightWithIndex:function(){return _},reduceWithIndex:function(){return v}});var r=n(42925),i=n(88543),o=n(42275);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function m(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function h(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function y(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function v(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function g(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function _(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function b(e){return function(t){return function(n){return e.alt(n,t)}}}function T(e){return function(t){return function(n){return e.filter(n,t)}}}function S(e){return function(t){return function(n){return e.filterMap(n,t)}}}function I(e){return function(t){return function(n){return e.partition(n,t)}}}function R(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function C(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function x(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function O(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function w(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function M(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function E(e){return function(t){return function(n){return e.compose(n,t)}}}function k(e){var t={};return"function"==typeof e.map&&(t.map=u(e)),"function"==typeof e.contramap&&(t.contramap=a(e)),"function"==typeof e.mapWithIndex&&(t.mapWithIndex=c(e)),"function"==typeof e.ap&&(t.ap=f(e),t.apFirst=(0,r.apFirst)(e),t.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(t.chain=l(e),t.chainFirst=(0,i.chainFirst)(e),t.flatten=t.chain(o.identity)),"function"==typeof e.bimap&&(t.bimap=p(e),t.mapLeft=d(e)),"function"==typeof e.extend&&(t.extend=s(e),t.duplicate=t.extend(o.identity)),"function"==typeof e.reduce&&(t.reduce=m(e),t.foldMap=h(e),t.reduceRight=y(e)),"function"==typeof e.reduceWithIndex&&(t.reduceWithIndex=v(e),t.foldMapWithIndex=g(e),t.reduceRightWithIndex=_(e)),"function"==typeof e.alt&&(t.alt=b(e)),"function"==typeof e.compact&&(t.compact=e.compact,t.separate=e.separate),"function"==typeof e.filter&&(t.filter=T(e),t.filterMap=S(e),t.partition=I(e),t.partitionMap=R(e)),"function"==typeof e.filterWithIndex&&(t.filterWithIndex=C(e),t.filterMapWithIndex=x(e),t.partitionWithIndex=O(e),t.partitionMapWithIndex=w(e)),"function"==typeof e.promap&&(t.promap=M(e)),"function"==typeof e.compose&&(t.compose=E(e)),"function"==typeof e.throwError&&(t.fromOption=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},t.fromEither=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},t.fromPredicate=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},t.filterOrElse=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}}),t}var P=o.pipe},57029:function(e,t,n){n.r(t),n.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return o},Show:function(){return f},empty:function(){return u},endsWith:function(){return I},includes:function(){return T},isEmpty:function(){return g},isString:function(){return l},replace:function(){return s},size:function(){return _},slice:function(){return v},split:function(){return b},startsWith:function(){return S},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return m},trimLeft:function(){return h},trimRight:function(){return y}});var r=n(28350),i={equals:function(e,t){return e===t}},o={concat:function(e,t){return e+t}},u="",a={concat:o.concat,empty:u},c={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},f={show:function(e){return JSON.stringify(e)}},l=function(e){return"string"==typeof e},p=function(e){return e.toUpperCase()},d=function(e){return e.toLowerCase()},s=function(e,t){return function(n){return n.replace(e,t)}},m=function(e){return e.trim()},h=function(e){return e.trimLeft()},y=function(e){return e.trimRight()},v=function(e,t){return function(n){return n.slice(e,t)}},g=function(e){return 0===e.length},_=function(e){return e.length},b=function(e){return function(t){var n=t.split(e);return(0,r.isNonEmpty)(n)?n:[t]}},T=function(e,t){return function(n){return n.includes(e,t)}},S=function(e,t){return function(n){return n.startsWith(e,t)}},I=function(e,t){return function(n){return n.endsWith(e,t)}}},91756:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=n(93145),i=n(14632),o=n(8762);t.getApplicativeMonoid=function(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}},t.getApplicativeComposition=function(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},93145:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var u=n(14632),a=o(n(5309));function c(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):c(e,t-1,i)}}t.ap=function(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}},t.apFirst=function(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}},t.apSecond=function(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}},t.apS=function(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}},t.getApplySemigroup=function(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}};var f={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};t.sequenceT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=t.length,i=(a.has.call(f,r)||(f[r]=c(u.tuple,r-1,[])),f[r]),o=e.map(t[0],i),l=1;l<r;l++)o=e.ap(o,t[l]);return o}},t.sequenceS=function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return c(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},92425:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(93145),a=n(18222),c=n(57756),f=n(14632),l=n(8762),p=o(n(5309)),d=o(n(7219)),s=o(n(78703)),m=n(4773),h=n(69706),y=n(3899);t.isEmpty=function(e){return 0===e.length},t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW,t.makeBy=function(e,t){return e<=0?[]:d.makeBy(t)(e)},t.replicate=function(e,n){return(0,t.makeBy)(e,function(){return n})},t.fromPredicate=function(e){return function(t){return e(t)?[t]:[]}},t.fromOption=function(e){return p.isNone(e)?[]:[e.value]},t.fromEither=function(e){return p.isLeft(e)?[]:[e.right]},t.matchW=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}},t.match=t.matchW,t.matchLeftW=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.head(r),d.tail(r)):e()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.init(r),d.last(r)):e()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},t.scanLeft=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},t.scanRight=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},t.size=function(e){return e.length},t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last,t.tail=function(e){return(0,t.isNonEmpty)(e)?p.some(d.tail(e)):p.none},t.init=function(e){return(0,t.isNonEmpty)(e)?p.some(d.init(e)):p.none},t.takeLeft=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):n.slice(0,e)}},t.takeRight=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):0===e?[]:n.slice(-e)}},t.takeLeftWhile=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}};var v=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function g(e){var n=d.union(e);return function(r,i){if(void 0===i){var o=g(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function _(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=_(e);return function(e){return i(e,t)}}return t.filter(function(e){return n(e,r)})}}function b(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=b(e);return function(e){return i(e,t)}}return t.filter(function(e){return!n(e,r)})}}t.spanLeft=function(e){return function(n){var r=(0,t.splitAt)(v(n,e))(n);return{init:r[0],rest:r[1]}}},t.dropLeft=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(e,n.length)}},t.dropRight=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(0,n.length-e)}},t.dropLeftWhile=function(e){return function(t){return t.slice(v(t,e))}},t.findIndex=s.findIndex,t.findFirst=function(e){return s.findFirst(e)},t.findFirstMap=s.findFirstMap,t.findLast=function(e){return s.findLast(e)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex,t.copy=function(e){return e.slice()},t.insertAt=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}},t.updateAt=function(e,n){return(0,t.modifyAt)(e,function(){return n})},t.deleteAt=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?p.none:p.some((0,t.unsafeDeleteAt)(e,n))}},t.modifyAt=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}},t.reverse=function(e){return(0,t.isEmpty)(e)?[]:e.slice().reverse()},t.rights=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(e){return function(n){return n.length<=1?(0,t.copy)(n):n.slice().sort(e.compare)}},t.zipWith=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})},t.unzip=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},t.prependAll=function(e){var n=d.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}},t.intersperse=function(e){var n=d.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}},t.rotate=function(e){var n=d.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}},t.elem=s.elem,t.uniq=function(e){var n=d.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}},t.sortBy=function(e){var n=d.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}},t.chop=function(e){var n=d.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}},t.splitAt=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?d.splitAt(e)(n):(0,t.isEmpty)(n)?[(0,t.copy)(n),[]]:[[],(0,t.copy)(n)]}},t.chunksOf=function(e){var n=d.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}},t.fromOptionK=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}},t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(d.head(o),function(n){return i((0,f.pipe)(e,(0,t.append)(n)),d.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:[]};return i([],e)},t.concatW=function(e){return function(n){return(0,t.isEmpty)(n)?(0,t.copy)(e):(0,t.isEmpty)(e)?(0,t.copy)(n):n.concat(e)}},t.concat=t.concatW,t.union=g,t.intersection=_,t.difference=b;var T=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},S=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},I=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},R=function(e,n){return(0,f.pipe)(e,(0,t.filter)(n))},C=function(e,n){return(0,f.pipe)(e,(0,t.filterMap)(n))},x=function(e,n){return(0,f.pipe)(e,(0,t.partition)(n))},O=function(e,n){return(0,f.pipe)(e,(0,t.partitionMap)(n))},w=function(e,n){return(0,f.pipe)(e,(0,t.partitionWithIndex)(n))},M=function(e,n){return(0,f.pipe)(e,(0,t.partitionMapWithIndex)(n))},E=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},k=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},P=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},F=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},L=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},W=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},D=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},N=function(e,n){return(0,f.pipe)(e,(0,t.filterMapWithIndex)(n))},A=function(e,n){return(0,f.pipe)(e,(0,t.filterWithIndex)(n))},U=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},j=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},q=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},G=s._chainRecDepthFirst,Y=s._chainRecBreadthFirst;t.of=d.of,t.zero=function(){return[]},t.map=function(e){return function(t){return t.map(function(t){return e(t)})}},t.ap=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})},t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(f.identity),t.mapWithIndex=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},t.filterMapWithIndex=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);p.isSome(i)&&n.push(i.value)}return n}},t.filterMap=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})},t.compact=(0,t.filterMap)(f.identity),t.separate=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,m.separated)(t,n)},t.filter=function(e){return function(t){return t.filter(e)}},t.partition=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})},t.partitionWithIndex=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,m.separated)(n,r)}},t.partitionMap=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})},t.partitionMapWithIndex=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,m.separated)(n,r)}},t.altW=function(e){return function(t){return t.concat(e())}},t.alt=t.altW,t.filterWithIndex=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},t.extend=function(e){return function(t){return t.map(function(n,r){return e(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(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}},t.sequence=function(e){return function(n){return k(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),r)})}},t.traverseWithIndex=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(r,o))})}},t.wither=function(e){var t=K(e);return function(e){return function(n){return t(n,e)}}},t.wilt=function(e){var t=V(e);return function(e){return function(n){return t(n,e)}}},t.unfold=function(e,t){for(var n=[],r=e;;){var i=t(r);if(p.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},t.URI="Array",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:function(e,t){return e.concat(t)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}},t.getEq=s.getEq,t.getOrd=s.getOrd,t.getUnionSemigroup=function(e){var t=g(e);return{concat:function(e,n){return t(n)(e)}}},t.getUnionMonoid=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:[]}},t.getIntersectionSemigroup=function(e){var t=_(e);return{concat:function(e,n){return t(n)(e)}}},t.getDifferenceMagma=function(e){var t=b(e);return{concat:function(e,n){return t(n)(e)}}},t.Functor={URI:t.URI,map:T},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:T,mapWithIndex:S},t.Apply={URI:t.URI,map:T,ap:I},t.apFirst=(0,u.apFirst)(t.Apply),t.apSecond=(0,u.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:T,ap:I,of:t.of},t.Chain={URI:t.URI,map:T,ap:I,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:T,ap:I,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:T,alt:E},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,y.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:T,ap:I,of:t.of,alt:E,zero:t.zero},t.Extend={URI:t.URI,map:T,extend:U},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:T,compact:t.compact,separate:t.separate,filter:R,filterMap:C,partition:x,partitionMap:O},t.FilterableWithIndex={URI:t.URI,map:T,mapWithIndex:S,compact:t.compact,separate:t.separate,filter:R,filterMap:C,partition:x,partitionMap:O,partitionMapWithIndex:M,partitionWithIndex:w,filterMapWithIndex:N,filterWithIndex:A},t.Foldable={URI:t.URI,reduce:k,foldMap:P,reduceRight:F},t.FoldableWithIndex={URI:t.URI,reduce:k,foldMap:P,reduceRight:F,reduceWithIndex:L,foldMapWithIndex:W,reduceRightWithIndex:D},t.Traversable={URI:t.URI,map:T,reduce:k,foldMap:P,reduceRight:F,traverse:j,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:T,mapWithIndex:S,reduce:k,foldMap:P,reduceRight:F,reduceWithIndex:L,foldMapWithIndex:W,reduceRightWithIndex:D,traverse:j,sequence:t.sequence,traverseWithIndex:q};var K=(0,h.witherDefault)(t.Traversable,t.Compactable),V=(0,h.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:T,compact:t.compact,separate:t.separate,filter:R,filterMap:C,partition:x,partitionMap:O,reduce:k,foldMap:P,reduceRight:F,traverse:j,sequence:t.sequence,wither:K,wilt:V},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:T,ap:I,chain:t.flatMap,chainRec:G},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:T,ap:I,chain:t.flatMap,chainRec:Y},t.filterE=(0,h.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt,t.unsafeUpdateAt=function(e,n,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(e,n,r):[]},t.unsafeDeleteAt=function(e,t){var n=t.slice();return n.splice(e,1),n},t.every=s.every,t.some=function(e){return function(t){return t.some(e)}},t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var B=(0,l.let)(t.Functor);t.let=B,t.bind=(0,a.bind)(t.Chain),t.apS=(0,u.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:T,ap:I,of:t.of,chain:t.flatMap,filter:R,filterMap:C,partition:x,partitionMap:O,mapWithIndex:S,partitionMapWithIndex:M,partitionWithIndex:w,filterMapWithIndex:N,filterWithIndex:A,alt:E,zero:t.zero,unfold:t.unfold,reduce:k,foldMap:P,reduceRight:F,traverse:j,sequence:t.sequence,reduceWithIndex:L,foldMapWithIndex:W,reduceRightWithIndex:D,traverseWithIndex:q,extend:U,wither:K,wilt:V}},18222:function(e,t){function n(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(e){var t=n(e);return function(e){return function(n){return t(n,e)}}},t.tap=n,t.bind=function(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}},71166:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0,t.tailRec=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right}},87412:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(91756),a=n(93145),c=o(n(18222)),f=n(71166),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),m=n(4773),h=n(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(e,n){return(0,t.isLeft)(e)?e:n(e.right)});var y=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},v=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},g=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},_=function(e){return function(n,r){var i=(0,t.foldMap)(e);return(0,p.pipe)(n,i(r))}},b=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},T=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},S=function(e,n,r){return(0,p.pipe)(e,(0,t.bimap)(n,r))},I=function(e,n){return(0,p.pipe)(e,(0,t.mapLeft)(n))},R=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},C=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},x=function(e,n){return(0,f.tailRec)(n(e),function(e){return(0,t.isLeft)(e)?(0,t.right)((0,t.left)(e.left)):(0,t.isLeft)(e.right)?(0,t.left)(n(e.right.left)):(0,t.right)((0,t.right)(e.right.right))})};t.URI="Either",t.getShow=function(e,n){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(e.show(r.left),")"):"right(".concat(n.show(r.right),")")}}},t.getEq=function(e,n){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&e.equals(r.left,i.left):(0,t.isRight)(i)&&n.equals(r.right,i.right))}}},t.getSemigroup=function(e){return{concat:function(n,r){return(0,t.isLeft)(r)?n:(0,t.isLeft)(n)?r:(0,t.right)(e.concat(n.right,r.right))}}},t.getCompactable=function(e){var n=(0,t.left)(e.empty);return{URI:t.URI,_E:void 0,compact:function(e){return(0,t.isLeft)(e)?e:"None"===e.right._tag?n:(0,t.right)(e.right.value)},separate:function(e){return(0,t.isLeft)(e)?(0,m.separated)(e,e):(0,t.isLeft)(e.right)?(0,m.separated)((0,t.right)(e.right.left),n):(0,m.separated)(n,(0,t.right)(e.right.right))}}},t.getFilterable=function(e){var n=(0,t.left)(e.empty),r=(0,t.getCompactable)(e),i=r.compact,o=r.separate;return{URI:t.URI,_E:void 0,map:y,compact:i,separate:o,filter:function(e,r){return(0,t.isLeft)(e)?e:r(e.right)?e:n},filterMap:function(e,r){if((0,t.isLeft)(e))return e;var i=r(e.right);return"None"===i._tag?n:(0,t.right)(i.value)},partition:function(e,r){return(0,t.isLeft)(e)?(0,m.separated)(e,e):r(e.right)?(0,m.separated)(n,(0,t.right)(e.right)):(0,m.separated)((0,t.right)(e.right),n)},partitionMap:function(e,r){if((0,t.isLeft)(e))return(0,m.separated)(e,e);var i=r(e.right);return(0,t.isLeft)(i)?(0,m.separated)((0,t.right)(i.left),n):(0,m.separated)(n,(0,t.right)(i.right))}}},t.getWitherable=function(e){var n=(0,t.getFilterable)(e),r=(0,t.getCompactable)(e);return{URI:t.URI,_E:void 0,map:y,compact:n.compact,separate:n.separate,filter:n.filter,filterMap:n.filterMap,partition:n.partition,partitionMap:n.partitionMap,traverse:T,sequence:t.sequence,reduce:g,foldMap:_,reduceRight:b,wither:(0,h.witherDefault)(t.Traversable,r),wilt:(0,h.wiltDefault)(t.Traversable,r)}},t.getApplicativeValidation=function(e){return{URI:t.URI,_E:void 0,map:y,ap:function(n,r){return(0,t.isLeft)(n)?(0,t.isLeft)(r)?(0,t.left)(e.concat(n.left,r.left)):n:(0,t.isLeft)(r)?r:(0,t.right)(n.right(r.right))},of:t.of}},t.getAltValidation=function(e){return{URI:t.URI,_E:void 0,map:y,alt:function(n,r){if((0,t.isRight)(n))return n;var i=r();return(0,t.isLeft)(i)?(0,t.left)(e.concat(n.left,i.left)):i}}},t.map=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n.right))}},t.Functor={URI:t.URI,map:y},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(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.isLeft)(e)?e:(0,t.right)(n.right(e.right))}},t.ap=t.apW,t.Apply={URI:t.URI,map:y,ap:v},t.Applicative={URI:t.URI,map:y,ap:v,of:t.of},t.Chain={URI:t.URI,map:y,ap:v,chain:t.flatMap},t.Monad={URI:t.URI,map:y,ap:v,of:t.of,chain:t.flatMap},t.reduce=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(e,r.right)}},t.foldMap=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.empty:n(r.right)}}},t.reduceRight=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(r.right,e)}},t.Foldable={URI:t.URI,reduce:g,foldMap:_,reduceRight:b},t.traverse=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.of((0,t.left)(r.left)):e.map(n(r.right),t.right)}}},t.sequence=function(e){return function(n){return(0,t.isLeft)(n)?e.of((0,t.left)(n.left)):e.map(n.right,t.right)}},t.Traversable={URI:t.URI,map:y,reduce:g,foldMap:_,reduceRight:b,traverse:T,sequence:t.sequence},t.bimap=function(e,n){return function(r){return(0,t.isLeft)(r)?(0,t.left)(e(r.left)):(0,t.right)(n(r.right))}},t.mapLeft=function(e){return function(n){return(0,t.isLeft)(n)?(0,t.left)(e(n.left)):n}},t.Bifunctor={URI:t.URI,bimap:S,mapLeft:I},t.altW=function(e){return function(n){return(0,t.isLeft)(n)?e():n}},t.alt=t.altW,t.Alt={URI:t.URI,map:y,alt:R},t.extend=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n))}},t.Extend={URI:t.URI,map:y,extend:C},t.ChainRec={URI:t.URI,map:y,ap:v,chain:t.flatMap,chainRec:x},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:y,ap:v,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(e,n){return function(r){return(0,t.isLeft)(r)?e(r.left):n(r.right)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n.right}},t.getOrElse=t.getOrElseW,t.flap=(0,d.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apFirstW=t.apFirst,t.apSecond=(0,a.apSecond)(t.Apply),t.apSecondW=t.apSecond,t.tap=(0,p.dual)(2,c.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(e){return(0,t.isLeft)(e)?(0,t.right)(e.left):(0,t.left)(e.right)},t.orElseW=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n}},t.orElse=t.orElseW,t.fromNullable=function(e){return function(n){return null==n?(0,t.left)(e):(0,t.right)(n)}},t.tryCatch=function(e,n){try{return(0,t.right)(e())}catch(e){return(0,t.left)(n(e))}},t.tryCatchK=function(e,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return e.apply(void 0,r)},n)}},t.fromNullableK=function(e){var n=(0,t.fromNullable)(e);return function(e){return(0,p.flow)(e,n)}},t.chainNullableK=function(e){var n=(0,t.fromNullableK)(e);return function(e){return(0,t.flatMap)(n(e))}},t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(e){return e instanceof Error?e:Error(String(e))},t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isLeft)(i)&&n.equals(r,i.right)}},t.exists=function(e){return function(n){return!(0,t.isLeft)(n)&&e(n.right)}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var M=(0,d.let)(t.Functor);t.let=M,t.bind=c.bind(t.Chain),t.bindW=t.bind,t.apS=(0,a.apS)(t.Apply),t.apSW=t.apS,t.ApT=(0,t.of)(s.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(e){return function(n){var r=e(0,s.head(n));if((0,t.isLeft)(r))return r;for(var i=[r.right],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isLeft)(u))return u;i.push(u.right)}return(0,t.right)(i)}},t.traverseReadonlyArrayWithIndex=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return s.isNonEmpty(e)?n(e):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})},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(e,n){return(0,t.tryCatch)(function(){return JSON.parse(e)},n)},t.stringifyJSON=function(e,n){return(0,t.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n)},t.either={URI:t.URI,map:y,of:t.of,ap:v,chain:t.flatMap,reduce:g,foldMap:_,reduceRight:b,traverse:T,sequence:t.sequence,bimap:S,mapLeft:I,alt:R,extend:C,chainRec:x,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative),t.getValidationSemigroup=function(e,n){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(e))(n)},t.getValidationMonoid=function(e,n){return(0,u.getApplicativeMonoid)((0,t.getApplicativeValidation)(e))(n)},t.getValidation=function(e){var n=(0,t.getApplicativeValidation)(e).ap,r=(0,t.getAltValidation)(e).alt;return{URI:t.URI,_E:void 0,map:y,of:t.of,chain:t.flatMap,bimap:S,mapLeft:I,reduce:g,foldMap:_,reduceRight:b,extend:C,traverse:T,sequence:t.sequence,chainRec:x,throwError:t.throwError,ap:n,alt:r}}},8190:function(e,t,n){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=n(14632);t.fromEquals=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},t.struct=function(e){return(0,t.fromEquals)(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},t.tuple=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromEquals)(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},t.contramap=function(e){return function(n){return(0,t.fromEquals)(function(t,r){return n.equals(e(t),e(r))})}},t.URI="Eq",t.eqStrict={equals:function(e,t){return e===t}};var i={equals:function(){return!0}};t.getSemigroup=function(){return{concat:function(e,n){return(0,t.fromEquals)(function(t,r){return e.equals(t,r)&&n.equals(t,r)})}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:i}},t.Contravariant={URI:t.URI,contramap:function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))}},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(e,t){return e.valueOf()===t.valueOf()}}},57756:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(18222),a=n(14632),c=o(n(5309));function f(e){return function(t){return function(n){return e.fromEither(c.isNone(n)?c.left(t()):c.right(n.value))}}}function l(e){var t=f(e);return function(e){var n=t(e);return function(e){return(0,a.flow)(e,n)}}}function p(e){return function(t){return(0,a.flow)(t,e.fromEither)}}function d(e,t){var n=p(e),r=(0,u.tap)(t);return function(e,t){return r(e,n(t))}}t.fromOption=f,t.fromPredicate=function(e){return function(t,n){return function(r){return e.fromEither(t(r)?c.right(r):c.left(n(r)))}}},t.fromOptionK=l,t.chainOptionK=function(e,t){var n=l(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}},t.fromEitherK=p,t.chainEitherK=function(e,t){var n=p(e);return function(e){return function(r){return t.chain(r,n(e))}}},t.chainFirstEitherK=function(e,t){var n=d(e,t);return function(e){return function(t){return n(t,e)}}},t.filterOrElse=function(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=n(14632);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t,n){return e.map(t,function(){return n})}}t.map=i,t.flap=function(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}},t.bindTo=function(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}},t.let=function(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}},t.getFunctorComposition=function(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}},t.as=o,t.asUnit=function(e){var t=o(e);return function(e){return t(e,void 0)}}},73540:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0,t.reverse=function(e){return{concat:function(t,n){return e.concat(n,t)}}},t.filterFirst=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},t.filterSecond=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},t.endo=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},t.concatAll=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}}},7219:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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 a=n(93145),c=n(18222),f=n(14632),l=n(8762),p=o(n(5309)),d=n(83235),s=o(n(84612));function m(e){return function(t){return t.concat(e)}}function h(e,t){return t?e.concat(t):function(t){return t.concat(e)}}function y(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}t.isNonEmpty=function(e){return e.length>0},t.isOutOfBound=function(e,t){return e<0||e>=t.length},t.prependW=function(e){return function(t){return u([e],t,!0)}},t.prepend=t.prependW,t.appendW=function(e){return function(t){return u(u([],t,!0),[e],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(e,0,n),i}return[n]},t.unsafeUpdateAt=function(e,n,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[e]=n,i},t.uniq=function(e){return function(n){if(1===n.length)return(0,t.copy)(n);for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}},t.sortBy=function(e){if((0,t.isNonEmpty)(e)){var n=(0,d.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return t.copy},t.union=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,f.pipe)(t,h(e)))}}},t.rotate=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return(0,t.copy)(n);if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,f.pipe)(a,h(u))}},t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray,t.fromArray=function(e){return(0,t.isNonEmpty)(e)?p.some(e):p.none},t.makeBy=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},t.replicate=function(e){return(0,t.makeBy)(function(){return e})},t.range=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]},t.unprepend=function(e){return[(0,t.head)(e),(0,t.tail)(e)]},t.unappend=function(e){return[(0,t.init)(e),(0,t.last)(e)]},t.concatW=m,t.concat=h,t.reverse=function(e){return u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)},t.group=y,t.groupBy=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);p.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}},t.sort=function(e){return function(t){return t.slice().sort(e.compare)}},t.insertAt=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}},t.updateAt=function(e,n){return(0,t.modifyAt)(e,function(){return n})},t.modifyAt=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}},t.copy=t.fromReadonlyNonEmptyArray,t.of=function(e){return[e]},t.zipWith=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})},t.unzip=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},t.prependAll=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},t.intersperse=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):(0,t.copy)(n)}},t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap,t.chainWithIndex=function(e){return function(n){for(var r=(0,t.fromReadonlyNonEmptyArray)(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}},t.chop=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}},t.splitAt=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[(0,t.copy)(n),[]]:[(0,f.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}},t.chunksOf=function(e){return(0,t.chop)((0,t.splitAt)(e))};var v=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},g=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},_=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},b=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},T=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},S=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},I=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},R=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},C=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},x=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},O=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},w=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},M=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}};t.altW=function(e){return function(t){return(0,f.pipe)(t,m(e()))}},t.alt=t.altW,t.ap=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})},t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.extend=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}},t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity),t.map=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})},t.mapWithIndex=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}},t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex,t.traverse=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}},t.sequence=function(e){return(0,t.traverseWithIndex)(e)(function(e,t){return t})},t.traverseWithIndex=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}},t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow,t.getSemigroup=function(){return{concat:h}},t.getEq=s.getEq,t.getUnionSemigroup=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}},t.Functor={URI:t.URI,map:v},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:v,mapWithIndex:g},t.Apply={URI:t.URI,map:v,ap:_},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:v,ap:_,of:t.of},t.Chain={URI:t.URI,map:v,ap:_,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:v,ap:_,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:T,foldMap:S,reduceRight:I},t.FoldableWithIndex={URI:t.URI,reduce:T,foldMap:S,reduceRight:I,reduceWithIndex:x,foldMapWithIndex:O,reduceRightWithIndex:w},t.Traversable={URI:t.URI,map:v,reduce:T,foldMap:S,reduceRight:I,traverse:R,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:v,mapWithIndex:g,reduce:T,foldMap:S,reduceRight:I,traverse:R,sequence:t.sequence,reduceWithIndex:x,foldMapWithIndex:O,reduceRightWithIndex:w,traverseWithIndex:M},t.Alt={URI:t.URI,map:v,alt:C},t.Comonad={URI:t.URI,map:v,extend:b,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,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head,t.tail=function(e){return e.slice(1)},t.last=s.last,t.init=function(e){return e.slice(0,-1)},t.min=s.min,t.max=s.max,t.concatAll=function(e){return function(t){return t.reduce(e.concat)}},t.matchLeft=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}},t.matchRight=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}},t.modifyHead=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}},t.updateHead=function(e){return(0,t.modifyHead)(function(){return e})},t.modifyLast=function(e){return function(n){return(0,f.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}},t.updateLast=function(e){return(0,t.modifyLast)(function(){return e})},t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=y(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):[]}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})},t.filterWithIndex=function(e){return function(n){return(0,t.fromArray)(n.filter(function(t,n){return e(n,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,f.pipe)(n,(0,t.prepend)(e))},t.snoc=function(e,n){return(0,f.pipe)(e,(0,t.append)(n))},t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:v,mapWithIndex:g,ap:_,chain:t.flatMap,extend:b,extract:t.extract,reduce:T,foldMap:S,reduceRight:I,traverse:R,sequence:t.sequence,reduceWithIndex:x,foldMapWithIndex:O,reduceRightWithIndex:w,traverseWithIndex:M,alt:C}},72720:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(91756),a=n(93145),c=o(n(18222)),f=n(57756),l=n(14632),p=n(8762),d=o(n(5309)),s=n(87612),m=n(98744),h=n(4773),y=n(69706),v=n(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(e){return function(n){return e(n)?(0,t.some)(n):t.none}},t.getLeft=function(e){return"Right"===e._tag?t.none:(0,t.some)(e.left)},t.getRight=function(e){return"Left"===e._tag?t.none:(0,t.some)(e.right)};var g=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},_=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},b=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},T=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},S=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},I=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},R=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},C=function(e,n){return(0,l.pipe)(e,(0,t.filter)(n))},x=function(e,n){return(0,l.pipe)(e,(0,t.filterMap)(n))},O=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},w=function(e,n){return(0,l.pipe)(e,(0,t.partition)(n))},M=function(e,n){return(0,l.pipe)(e,(0,t.partitionMap)(n))};t.URI="Option",t.getShow=function(e){return{show:function(n){return(0,t.isNone)(n)?"none":"some(".concat(e.show(n.value),")")}}},t.getEq=function(e){return{equals:function(n,r){return n===r||((0,t.isNone)(n)?(0,t.isNone)(r):!(0,t.isNone)(r)&&e.equals(n.value,r.value))}}},t.getOrd=function(e){return{equals:(0,t.getEq)(e).equals,compare:function(n,r){return n===r?0:(0,t.isSome)(n)?(0,t.isSome)(r)?e.compare(n.value,r.value):1:-1}}},t.getMonoid=function(e){return{concat:function(n,r){return(0,t.isNone)(n)?r:(0,t.isNone)(r)?n:(0,t.some)(e.concat(n.value,r.value))},empty:t.none}},t.map=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n.value))}},t.Functor={URI:t.URI,map:g},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(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.isNone)(e)?t.none:(0,t.some)(n.value(e.value))}},t.Apply={URI:t.URI,map:g,ap:_},t.Applicative={URI:t.URI,map:g,ap:_,of:t.of},t.flatMap=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?t.none:n(e.value)}),t.Chain={URI:t.URI,map:g,ap:_,chain:t.flatMap},t.Monad={URI:t.URI,map:g,ap:_,of:t.of,chain:t.flatMap},t.reduce=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(e,r.value)}},t.foldMap=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.empty:n(r.value)}}},t.reduceRight=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(r.value,e)}},t.Foldable={URI:t.URI,reduce:b,foldMap:T,reduceRight:S},t.orElse=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?n():e}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:g,alt:R},t.zero=function(){return t.none},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:g,ap:_,of:t.of,alt:R,zero:t.zero},t.extend=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n))}},t.Extend={URI:t.URI,map:g,extend:O},t.compact=(0,t.flatMap)(l.identity);var E=(0,h.separated)(t.none,t.none);t.separate=function(e){return(0,t.isNone)(e)?E:(0,h.separated)((0,t.getLeft)(e.value),(0,t.getRight)(e.value))},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.filter=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)?n:t.none}},t.filterMap=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)}},t.partition=function(e){return function(t){return(0,h.separated)(C(t,(0,s.not)(e)),C(t,e))}},t.partitionMap=function(e){return(0,l.flow)((0,t.map)(e),t.separate)},t.Filterable={URI:t.URI,map:g,compact:t.compact,separate:t.separate,filter:C,filterMap:x,partition:w,partitionMap:M},t.traverse=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.of(t.none):e.map(n(r.value),t.some)}}},t.sequence=function(e){return function(n){return(0,t.isNone)(n)?e.of(t.none):e.map(n.value,t.some)}},t.Traversable={URI:t.URI,map:g,reduce:b,foldMap:T,reduceRight:S,traverse:I,sequence:t.sequence};var k=(0,y.witherDefault)(t.Traversable,t.Compactable),P=(0,y.wiltDefault)(t.Traversable,t.Compactable);t.wither=function(e){var t=k(e);return function(e){return function(n){return t(n,e)}}},t.wilt=function(e){var t=P(e);return function(e){return function(n){return t(n,e)}}},t.Witherable={URI:t.URI,map:g,reduce:b,foldMap:T,reduceRight:S,traverse:I,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:x,partition:w,partitionMap:M,wither:k,wilt:P},t.throwError=function(){return t.none},t.MonadThrow={URI:t.URI,map:g,ap:_,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(e){return"None"===e._tag},t.matchW=function(e,n){return function(r){return(0,t.isNone)(r)?e():n(r.value)}},t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match,t.getOrElseW=function(e){return function(n){return(0,t.isNone)(n)?e():n.value}},t.getOrElse=t.getOrElseW,t.flap=(0,p.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.flatten=t.compact,t.tap=(0,l.dual)(2,c.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(e){return null==e?t.none:(0,t.some)(e)},t.tryCatch=function(e){try{return(0,t.some)(e())}catch(e){return t.none}},t.tryCatchK=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.tryCatch)(function(){return e.apply(void 0,n)})}},t.fromNullableK=function(e){return(0,l.flow)(e,t.fromNullable)},t.chainNullableK=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.fromNullable)(e(n.value))}},t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isNone)(i)&&n.equals(r,i.value)}},t.exists=function(e){return function(n){return!(0,t.isNone)(n)&&e(n.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=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray),t.traverseReadonlyNonEmptyArrayWithIndex=function(e){return function(n){var r=e(0,d.head(n));if((0,t.isNone)(r))return t.none;for(var i=[r.value],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isNone)(u))return t.none;i.push(u.value)}return(0,t.some)(i)}},t.traverseReadonlyArrayWithIndex=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return d.isNonEmpty(e)?n(e):t.ApT}},t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex,t.traverseArray=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})},t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(e){return function(n){return(0,t.isSome)(e(n))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:g,of:t.of,ap:_,chain:t.flatMap,reduce:b,foldMap:T,reduceRight:S,traverse:I,sequence:t.sequence,zero:t.zero,alt:R,extend:O,compact:t.compact,separate:t.separate,filter:C,filterMap:x,partition:w,partitionMap:M,wither:k,wilt:P,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative),t.getFirstMonoid=function(){return(0,t.getMonoid)((0,m.first)())},t.getLastMonoid=function(){return(0,t.getMonoid)((0,m.last)())}},83235:function(e,t,n){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=n(8190),i=n(14632);t.equalsDefault=function(e){return function(t,n){return t===n||0===e(t,n)}},t.fromCompare=function(e){return{equals:(0,t.equalsDefault)(e),compare:function(t,n){return t===n?0:e(t,n)}}},t.tuple=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromCompare)(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},t.reverse=function(e){return(0,t.fromCompare)(function(t,n){return e.compare(n,t)})},t.contramap=function(e){return function(n){return(0,t.fromCompare)(function(t,r){return n.compare(e(t),e(r))})}},t.URI="Ord",t.getSemigroup=function(){return{concat:function(e,n){return(0,t.fromCompare)(function(t,r){var i=e.compare(t,r);return 0!==i?i:n.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(e,n){return(0,i.pipe)(e,(0,t.contramap)(n))}},t.trivial={equals:i.constTrue,compare:(0,i.constant)(0)},t.equals=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},t.lt=function(e){return function(t,n){return -1===e.compare(t,n)}},t.gt=function(e){return function(t,n){return 1===e.compare(t,n)}},t.leq=function(e){return function(t,n){return 1!==e.compare(t,n)}},t.geq=function(e){return function(t,n){return -1!==e.compare(t,n)}},t.min=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},t.max=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},t.clamp=function(e){var n=(0,t.min)(e),r=(0,t.max)(e);return function(e,t){return function(i){return r(n(i,t),e)}}},t.between=function(e){var n=(0,t.lt)(e),r=(0,t.gt)(e);return function(e,t){return function(i){return!(n(i,e)||r(i,t))}}},t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var o={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};t.ordBoolean=o,t.ordString=o,t.ordNumber=o,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(e){return e.valueOf()}))},87612:function(e,t,n){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=n(14632);t.contramap=function(e){return function(t){return(0,r.flow)(e,t)}},t.URI="Predicate",t.getSemigroupAny=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.or)(n))}}},t.getMonoidAny=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}},t.getSemigroupAll=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.and)(n))}}},t.getMonoidAll=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}},t.Contravariant={URI:t.URI,contramap:function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))}},t.not=function(e){return function(t){return!e(t)}},t.or=function(e){return function(t){return function(n){return t(n)||e(n)}}},t.and=function(e){return function(t){return function(n){return t(n)&&e(n)}}}},78703:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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 a=n(93145),c=n(18222),f=n(8190),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),m=o(n(40457)),h=n(83235),y=o(n(84612)),v=n(4773),g=n(69706),_=n(3899);t.isEmpty=function(e){return 0===e.length},t.isNonEmpty=y.isNonEmpty,t.prepend=y.prepend,t.prependW=y.prependW,t.append=y.append,t.appendW=y.appendW,t.makeBy=function(e,n){return e<=0?t.empty:y.makeBy(n)(e)},t.replicate=function(e,n){return(0,t.makeBy)(e,function(){return n})},t.fromPredicate=function(e){return function(n){return e(n)?[n]:t.empty}},t.fromOption=function(e){return s.isNone(e)?t.empty:[e.value]},t.fromEither=function(e){return s.isLeft(e)?t.empty:[e.right]},t.matchW=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}},t.match=t.matchW,t.matchLeftW=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(y.head(r),y.tail(r)):e()}},t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft,t.matchRightW=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(y.init(r),y.last(r)):e()}},t.matchRight=t.matchRightW,t.foldRight=t.matchRight,t.chainWithIndex=function(e){return function(n){if((0,t.isEmpty)(n))return t.empty;for(var r=[],i=0;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}},t.scanLeft=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},t.scanRight=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},t.size=function(e){return e.length},t.isOutOfBound=y.isOutOfBound,t.lookup=function e(n,r){return void 0===r?function(t){return e(n,t)}:(0,t.isOutOfBound)(n,r)?s.none:s.some(r[n])},t.head=function(e){return(0,t.isNonEmpty)(e)?s.some(y.head(e)):s.none},t.last=function(e){return(0,t.isNonEmpty)(e)?s.some(y.last(e)):s.none},t.tail=function(e){return(0,t.isNonEmpty)(e)?s.some(y.tail(e)):s.none},t.init=function(e){return(0,t.isNonEmpty)(e)?s.some(y.init(e)):s.none},t.takeLeft=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(0,e)}},t.takeRight=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(-e)}},t.takeLeftWhile=function(e){return function(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];if(!e(o))break;r.push(o)}var u=r.length;return u===n.length?n:0===u?t.empty:r}};var b=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function T(e){return function(t,n){if(void 0===n){var r,i=T(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}function S(e){var n=y.union(e);return function(r,i){if(void 0===i){var o=S(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?r:i}}function I(e){var t=T(e);return function(n,r){if(void 0===r){var i=I(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function R(e){var t=T(e);return function(n,r){if(void 0===r){var i=R(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}t.spanLeft=function(e){return function(n){var r=(0,t.splitAt)(b(n,e))(n);return{init:r[0],rest:r[1]}}},t.dropLeft=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(e,n.length)}},t.dropRight=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(0,n.length-e)}},t.dropLeftWhile=function(e){return function(n){var r=b(n,e);return 0===r?n:r===n.length?t.empty:n.slice(r)}},t.findIndex=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(n);return s.none}},t.findFirst=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(t[n]);return s.none}},t.findFirstMap=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(s.isSome(r))return r}return s.none}},t.findLast=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(t[n]);return s.none}},t.findLastMap=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(s.isSome(r))return r}return s.none}},t.findLastIndex=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(n);return s.none}},t.insertAt=function(e,t){return function(n){return e<0||e>n.length?s.none:s.some(y.unsafeInsertAt(e,t,n))}},t.updateAt=function(e,n){return(0,t.modifyAt)(e,function(){return n})},t.deleteAt=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?s.none:s.some((0,t.unsafeDeleteAt)(e,n))}},t.modifyAt=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?s.none:s.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}},t.reverse=function(e){return e.length<=1?e:e.slice().reverse()},t.rights=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},t.lefts=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},t.sort=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},t.zipWith=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})},t.unzip=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},t.prependAll=function(e){var n=y.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}},t.intersperse=function(e){var n=y.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}},t.rotate=function(e){var n=y.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}},t.elem=T,t.uniq=function(e){var n=y.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}},t.sortBy=function(e){var n=y.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}},t.chop=function(e){var n=y.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}},t.splitAt=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?y.splitAt(e)(n):(0,t.isEmpty)(n)?[n,t.empty]:[t.empty,n]}},t.chunksOf=function(e){var n=y.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}},t.fromOptionK=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}},t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(y.head(o),function(n){return i((0,p.pipe)(e,(0,t.append)(n)),y.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:t.empty};return i(t.empty,e)},t.concatW=function(e){return function(n){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}},t.concat=t.concatW,t.union=S,t.intersection=I,t.difference=R;var C=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},x=function(e,n){return(0,p.pipe)(e,(0,t.mapWithIndex)(n))},O=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},w=function(e,n){return(0,p.pipe)(e,(0,t.filter)(n))},M=function(e,n){return(0,p.pipe)(e,(0,t.filterMap)(n))},E=function(e,n){return(0,p.pipe)(e,(0,t.partition)(n))},k=function(e,n){return(0,p.pipe)(e,(0,t.partitionMap)(n))},P=function(e,n){return(0,p.pipe)(e,(0,t.partitionWithIndex)(n))},F=function(e,n){return(0,p.pipe)(e,(0,t.partitionMapWithIndex)(n))},L=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},W=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},D=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},N=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},A=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceWithIndex)(n,r))},U=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},j=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},q=function(e,n){return(0,p.pipe)(e,(0,t.filterMapWithIndex)(n))},G=function(e,n){return(0,p.pipe)(e,(0,t.filterWithIndex)(n))},Y=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},K=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},V=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}};t._chainRecDepthFirst=function(e,n){return(0,p.pipe)(e,(0,t.chainRecDepthFirst)(n))},t._chainRecBreadthFirst=function(e,n){return(0,p.pipe)(e,(0,t.chainRecBreadthFirst)(n))},t.of=y.of,t.zero=function(){return t.empty},t.altW=function(e){return function(t){return t.concat(e())}},t.alt=t.altW,t.ap=function(e){return(0,t.flatMap)(function(n){return(0,p.pipe)(e,(0,t.map)(n))})},t.flatMap=(0,p.dual)(2,function(e,n){return(0,p.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(p.identity),t.map=function(e){return function(t){return t.map(function(t){return e(t)})}},t.mapWithIndex=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},t.separate=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,v.separated)(t,n)},t.filter=function(e){return function(t){return t.filter(e)}},t.filterMapWithIndex=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);s.isSome(i)&&n.push(i.value)}return n}},t.filterMap=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})},t.compact=(0,t.filterMap)(p.identity),t.partition=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})},t.partitionWithIndex=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,v.separated)(n,r)}},t.partitionMap=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})},t.partitionMapWithIndex=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,v.separated)(n,r)}},t.filterWithIndex=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},t.extend=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},t.duplicate=(0,t.extend)(p.identity),t.foldMapWithIndex=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},t.reduce=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})},t.foldMap=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}},t.reduceWithIndex=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},t.reduceRight=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})},t.reduceRightWithIndex=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},t.traverse=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}},t.sequence=function(e){return function(n){return W(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),r)})}},t.traverseWithIndex=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),n(r,o))})}},t.wither=function(e){var t=B(e);return function(e){return function(n){return t(n,e)}}},t.wilt=function(e){var t=H(e);return function(e){return function(n){return t(n,e)}}},t.unfold=function(e,t){for(var n=[],r=e;;){var i=t(r);if(s.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},t.URI="ReadonlyArray",t.getShow=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:function(e,n){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}}},t.getMonoid=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}},t.getEq=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},t.getOrd=function(e){return(0,h.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return m.Ord.compare(r,i)})},t.getUnionSemigroup=function(e){var t=S(e);return{concat:function(e,n){return t(n)(e)}}},t.getUnionMonoid=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:t.empty}},t.getIntersectionSemigroup=function(e){var t=I(e);return{concat:function(e,n){return t(n)(e)}}},t.getDifferenceMagma=function(e){var t=R(e);return{concat:function(e,n){return t(n)(e)}}},t.Functor={URI:t.URI,map:C},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:C,mapWithIndex:x},t.Apply={URI:t.URI,map:C,ap:O},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:C,ap:O,of:t.of},t.Chain={URI:t.URI,map:C,ap:O,chain:t.flatMap},t.Monad={URI:t.URI,map:C,ap:O,of:t.of,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:C,alt:L},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,_.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:C,ap:O,of:t.of,alt:L,zero:t.zero},t.Extend={URI:t.URI,map:C,extend:Y},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:C,compact:t.compact,separate:t.separate,filter:w,filterMap:M,partition:E,partitionMap:k},t.FilterableWithIndex={URI:t.URI,map:C,mapWithIndex:x,compact:t.compact,separate:t.separate,filter:w,filterMap:M,partition:E,partitionMap:k,partitionMapWithIndex:F,partitionWithIndex:P,filterMapWithIndex:q,filterWithIndex:G},t.Foldable={URI:t.URI,reduce:W,foldMap:D,reduceRight:N},t.FoldableWithIndex={URI:t.URI,reduce:W,foldMap:D,reduceRight:N,reduceWithIndex:A,foldMapWithIndex:U,reduceRightWithIndex:j},t.Traversable={URI:t.URI,map:C,reduce:W,foldMap:D,reduceRight:N,traverse:K,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:C,mapWithIndex:x,reduce:W,foldMap:D,reduceRight:N,reduceWithIndex:A,foldMapWithIndex:U,reduceRightWithIndex:j,traverse:K,sequence:t.sequence,traverseWithIndex:V},t.chainRecDepthFirst=function(e){return function(t){for(var n=u([],e(t),!0),r=[];n.length>0;){var i=n.shift();s.isLeft(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},t.ChainRecDepthFirst={URI:t.URI,map:C,ap:O,chain:t.flatMap,chainRec:t._chainRecDepthFirst},t.chainRecBreadthFirst=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){s.isLeft(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}},t.ChainRecBreadthFirst={URI:t.URI,map:C,ap:O,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var B=(0,g.witherDefault)(t.Traversable,t.Compactable),H=(0,g.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:C,compact:t.compact,separate:t.separate,filter:w,filterMap:M,partition:E,partitionMap:k,reduce:W,foldMap:D,reduceRight:N,traverse:K,sequence:t.sequence,wither:B,wilt:H},t.filterE=(0,g.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=y.unsafeInsertAt,t.unsafeUpdateAt=function(e,n,r){return(0,t.isNonEmpty)(r)?y.unsafeUpdateAt(e,n,r):r},t.unsafeDeleteAt=function(e,t){var n=t.slice();return n.splice(e,1),n},t.toArray=function(e){return e.slice()},t.fromArray=function(e){return(0,t.isEmpty)(e)?t.empty:e.slice()},t.empty=y.empty,t.every=function(e){return function(t){return t.every(e)}},t.some=function(e){return function(t){return t.some(e)}},t.exists=t.some,t.intercalate=function(e){var n=y.intercalate(e);return function(r){return(0,t.match)(function(){return e.empty},n(r))}},t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var z=(0,d.let)(t.Functor);t.let=z,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.chain=t.flatMap,t.range=y.range,t.cons=y.cons,t.snoc=y.snoc,t.prependToAll=t.prependAll,t.readonlyArray={URI:t.URI,compact:t.compact,separate:t.separate,map:C,ap:O,of:t.of,chain:t.flatMap,filter:w,filterMap:M,partition:E,partitionMap:k,mapWithIndex:x,partitionMapWithIndex:F,partitionWithIndex:P,filterMapWithIndex:q,filterWithIndex:G,alt:L,zero:t.zero,unfold:t.unfold,reduce:W,foldMap:D,reduceRight:N,traverse:K,sequence:t.sequence,reduceWithIndex:A,foldMapWithIndex:U,reduceRightWithIndex:j,traverseWithIndex:V,extend:Y,wither:B,wilt:H}},84612:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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 a=n(93145),c=n(18222),f=n(8190),l=n(14632),p=n(8762),d=o(n(5309)),s=n(83235),m=o(n(98744));function h(e){return function(t){return t.concat(e)}}function y(e,t){return t?e.concat(t):function(t){return t.concat(e)}}function v(e){return function(n){var r=n.length;if(0===r)return t.empty;for(var i=[],o=n[0],u=[o],a=1;a<r;a++){var c=n[a];e.equals(c,o)?u.push(c):(i.push(u),u=[o=c])}return i.push(u),i}}t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty,t.isOutOfBound=function(e,t){return e<0||e>=t.length},t.prependW=function(e){return function(t){return u([e],t,!0)}},t.prepend=t.prependW,t.appendW=function(e){return function(t){return u(u([],t,!0),[e],!1)}},t.append=t.appendW,t.unsafeInsertAt=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(e,0,n),i}return[n]},t.unsafeUpdateAt=function(e,t,n){if(n[e]===t)return n;var r=d.fromReadonlyNonEmptyArray(n);return r[e]=t,r},t.uniq=function(e){return function(n){if(1===n.length)return n;for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}},t.sortBy=function(e){if((0,t.isNonEmpty)(e)){var n=(0,s.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return l.identity},t.union=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,l.pipe)(t,y(e)))}}},t.rotate=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return n;if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,l.pipe)(a,y(u))}},t.fromReadonlyArray=function(e){return(0,t.isNonEmpty)(e)?d.some(e):d.none},t.makeBy=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},t.replicate=function(e){return(0,t.makeBy)(function(){return e})},t.range=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]},t.unprepend=function(e){return[(0,t.head)(e),(0,t.tail)(e)]},t.unappend=function(e){return[(0,t.init)(e),(0,t.last)(e)]},t.fromArray=function(e){return(0,t.fromReadonlyArray)(e.slice())},t.concatW=h,t.concat=y,t.reverse=function(e){return 1===e.length?e:u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)},t.group=v,t.groupBy=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);d.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}},t.sort=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},t.updateAt=function(e,n){return(0,t.modifyAt)(e,function(){return n})},t.modifyAt=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?d.none:d.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}},t.zipWith=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})},t.unzip=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},t.prependAll=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},t.intersperse=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):n}},t.chainWithIndex=function(e){return function(n){for(var r=d.fromReadonlyNonEmptyArray(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}},t.chop=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}},t.splitAt=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[n,t.empty]:[(0,l.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}},t.chunksOf=function(e){return(0,t.chop)((0,t.splitAt)(e))};var g=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},_=function(e,n){return(0,l.pipe)(e,(0,t.mapWithIndex)(n))},b=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},T=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},S=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},I=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},R=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},C=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},x=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},O=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceWithIndex)(n,r))},w=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},M=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},E=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}};t.of=d.singleton,t.altW=function(e){return function(t){return(0,l.pipe)(t,h(e()))}},t.alt=t.altW,t.ap=function(e){return(0,t.flatMap)(function(n){return(0,l.pipe)(e,(0,t.map)(n))})},t.flatMap=(0,l.dual)(2,function(e,n){return(0,l.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.extend=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}},t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity),t.map=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})},t.mapWithIndex=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}},t.reduce=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})},t.foldMap=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},t.reduceRight=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})},t.reduceWithIndex=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},t.foldMapWithIndex=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},t.reduceRightWithIndex=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},t.traverse=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}},t.sequence=function(e){return(0,t.traverseWithIndex)(e)(l.SK)},t.traverseWithIndex=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,l.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}},t.extract=d.head,t.URI="ReadonlyNonEmptyArray",t.getShow=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},t.getSemigroup=function(){return{concat:y}},t.getEq=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},t.getUnionSemigroup=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}},t.Functor={URI:t.URI,map:g},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:g,mapWithIndex:_},t.Apply={URI:t.URI,map:g,ap:b},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.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,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:g,ap:b,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:S,foldMap:I,reduceRight:R},t.FoldableWithIndex={URI:t.URI,reduce:S,foldMap:I,reduceRight:R,reduceWithIndex:O,foldMapWithIndex:w,reduceRightWithIndex:M},t.Traversable={URI:t.URI,map:g,reduce:S,foldMap:I,reduceRight:R,traverse:C,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:g,mapWithIndex:_,reduce:S,foldMap:I,reduceRight:R,traverse:C,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:w,reduceRightWithIndex:M,traverseWithIndex:E},t.Alt={URI:t.URI,map:g,alt:x},t.Comonad={URI:t.URI,map:g,extend:T,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,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail,t.last=function(e){return e[e.length-1]},t.init=function(e){return e.slice(0,-1)},t.min=function(e){var t=m.min(e);return function(e){return e.reduce(t.concat)}},t.max=function(e){var t=m.max(e);return function(e){return e.reduce(t.concat)}},t.concatAll=function(e){return function(t){return t.reduce(e.concat)}},t.matchLeft=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}},t.matchRight=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}},t.modifyHead=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}},t.updateHead=function(e){return(0,t.modifyHead)(function(){return e})},t.modifyLast=function(e){return function(n){return(0,l.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}},t.updateLast=function(e){return(0,t.modifyLast)(function(){return e})},t.intercalate=function(e){var n=(0,t.concatAll)(e);return function(e){return(0,l.flow)((0,t.intersperse)(e),n)}},t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=v(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):t.empty}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})},t.filterWithIndex=function(e){return function(n){return(0,t.fromReadonlyArray)(n.filter(function(t,n){return e(n,t)}))}},t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,l.pipe)(n,(0,t.prepend)(e))},t.snoc=function(e,t){return(0,l.pipe)(e,y([t]))},t.insertAt=function(e,n){return function(r){return e<0||e>r.length?d.none:d.some((0,t.unsafeInsertAt)(e,n,r))}},t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:g,mapWithIndex:_,ap:b,chain:t.flatMap,extend:T,extract:t.extract,reduce:S,foldMap:I,reduceRight:R,traverse:C,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:w,reduceRightWithIndex:M,traverseWithIndex:E,alt:x}},98744:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),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 u=n(14632),a=o(n(5309)),c=o(n(73540)),f=o(n(83235));t.min=function(e){return{concat:f.min(e)}},t.max=function(e){return{concat:f.max(e)}},t.constant=function(e){return{concat:function(){return e}}},t.reverse=c.reverse,t.struct=function(e){return{concat:function(t,n){var r={};for(var i in e)a.has.call(e,i)&&(r[i]=e[i].concat(t[i],n[i]));return r}}},t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},t.intercalate=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},t.first=function(){return{concat:u.identity}},t.last=function(){return{concat:function(e,t){return t}}},t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0),t.getObjectSemigroup=function(){return{concat:function(e,t){return Object.assign({},e,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(e){var n=(0,t.concatAll)(e);return function(e,t){return void 0===t?n(e):n(e)(t)}},t.semigroupAll={concat:function(e,t){return e&&t}},t.semigroupAny={concat:function(e,t){return e||t}},t.getFunctionSemigroup=u.getSemigroup,t.semigroupString={concat:function(e,t){return e+t}},t.semigroupSum={concat:function(e,t){return e+t}},t.semigroupProduct={concat:function(e,t){return e*t}}},4773:function(e,t,n){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=n(14632),i=n(8762);t.separated=function(e,t){return{left:e,right:t}},t.map=function(e){return function(n){return(0,t.separated)((0,t.left)(n),e((0,t.right)(n)))}},t.mapLeft=function(e){return function(n){return(0,t.separated)(e((0,t.left)(n)),(0,t.right)(n))}},t.bimap=function(e,n){return function(r){return(0,t.separated)(e((0,t.left)(r)),n((0,t.right)(r)))}},t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:function(e,n){return(0,r.pipe)(e,(0,t.mapLeft)(n))},bimap:function(e,n,i){return(0,r.pipe)(e,(0,t.bimap)(n,i))}},t.Functor={URI:t.URI,map:function(e,n){return(0,r.pipe)(e,(0,t.map)(n))}},t.flap=(0,i.flap)(t.Functor),t.left=function(e){return e.left},t.right=function(e){return e.right}},69706:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var u=o(n(5309));t.wiltDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}},t.witherDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}},t.filterE=function(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?u.some(n):u.none})})}}}}},3899:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(e,t){return function(n){return n?t.of(void 0):e.zero()}}},14632:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function r(e){return e}function i(e){return function(){return e}}function o(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function u(e){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(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},t.getSemigroup=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},t.getMonoid=function(e){var n=(0,t.getSemigroup)(e);return function(){return{concat:n().concat,empty:function(){return e.empty}}}},t.getSemiring=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},t.getRing=function(e){var n=(0,t.getSemiring)(e);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},t.apply=function(e){return function(t){return t(e)}},t.identity=r,t.unsafeCoerce=r,t.constant=i,t.constTrue=i(!0),t.constFalse=i(!1),t.constNull=i(null),t.constUndefined=i(void 0),t.constVoid=t.constUndefined,t.flip=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}},t.flow=o,t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},t.increment=function(e){return e+1},t.decrement=function(e){return e-1},t.absurd=u,t.tupled=function(e){return function(t){return e.apply(void 0,t)}},t.untupled=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}},t.pipe=function(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=u,t.SK=function(e,t){return t},t.not=function(e){return function(t){return!e(t)}},t.getEndomorphismMonoid=function(){return{concat:function(e,t){return o(e,t)},empty:r}},t.dual=function(e,t){var r="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?t.apply(this,e):function(r){return t.apply(void 0,n([r],e,!1))}}}},5309:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.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 i=n(14632);t.isNone=function(e){return"None"===e._tag},t.isSome=function(e){return"Some"===e._tag},t.none={_tag:"None"},t.some=function(e){return{_tag:"Some",value:e}},t.isLeft=function(e){return"Left"===e._tag},t.isRight=function(e){return"Right"===e._tag},t.left=function(e){return{_tag:"Left",left:e}},t.right=function(e){return{_tag:"Right",right:e}},t.singleton=function(e){return[e]},t.isNonEmpty=function(e){return e.length>0},t.head=function(e){return e[0]},t.tail=function(e){return e.slice(1)},t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty,t.fromReadonlyNonEmptyArray=function(e){return r([e[0]],e.slice(1),!0)},t.liftNullable=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither(null==u?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u))}}},t.liftOption=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither((0,t.isNone)(u)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u.value))}}},t.flatMapNullable=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftNullable)(e)(i,o))})},t.flatMapOption=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftOption)(e)(i,o))})},t.flatMapEither=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})},t.flatMapIO=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})},t.flatMapTask=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})},t.flatMapReader=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})}},40457:function(e,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(e){return"number"==typeof e},t.Eq={equals:function(e,t){return e===t}},t.Ord={equals:t.Eq.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(e){return JSON.stringify(e)}},t.MagmaSub={concat:function(e,t){return e-t}},t.SemigroupSum={concat:function(e,t){return e+t}},t.SemigroupProduct={concat:function(e,t){return e*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(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},67794:function(e,t,n){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=n(93145),i=n(18222),o=n(14632);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function m(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function h(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function y(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function v(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function g(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function _(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function b(e){return function(t){return function(n){return e.alt(n,t)}}}function T(e){return function(t){return function(n){return e.filter(n,t)}}}function S(e){return function(t){return function(n){return e.filterMap(n,t)}}}function I(e){return function(t){return function(n){return e.partition(n,t)}}}function R(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function C(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function x(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function O(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function w(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function M(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function E(e){return function(t){return function(n){return e.compose(n,t)}}}t.map=u,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=m,t.foldMap=h,t.reduceRight=y,t.reduceWithIndex=v,t.foldMapWithIndex=g,t.reduceRightWithIndex=_,t.alt=b,t.filter=T,t.filterMap=S,t.partition=I,t.partitionMap=R,t.filterWithIndex=C,t.filterMapWithIndex=x,t.partitionWithIndex=O,t.partitionMapWithIndex=w,t.promap=M,t.compose=E,t.pipeable=function(e){var t={};return"function"==typeof e.map&&(t.map=u(e)),"function"==typeof e.contramap&&(t.contramap=a(e)),"function"==typeof e.mapWithIndex&&(t.mapWithIndex=c(e)),"function"==typeof e.ap&&(t.ap=f(e),t.apFirst=(0,r.apFirst)(e),t.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(t.chain=l(e),t.chainFirst=(0,i.chainFirst)(e),t.flatten=t.chain(o.identity)),"function"==typeof e.bimap&&(t.bimap=p(e),t.mapLeft=d(e)),"function"==typeof e.extend&&(t.extend=s(e),t.duplicate=t.extend(o.identity)),"function"==typeof e.reduce&&(t.reduce=m(e),t.foldMap=h(e),t.reduceRight=y(e)),"function"==typeof e.reduceWithIndex&&(t.reduceWithIndex=v(e),t.foldMapWithIndex=g(e),t.reduceRightWithIndex=_(e)),"function"==typeof e.alt&&(t.alt=b(e)),"function"==typeof e.compact&&(t.compact=e.compact,t.separate=e.separate),"function"==typeof e.filter&&(t.filter=T(e),t.filterMap=S(e),t.partition=I(e),t.partitionMap=R(e)),"function"==typeof e.filterWithIndex&&(t.filterWithIndex=C(e),t.filterMapWithIndex=x(e),t.partitionWithIndex=O(e),t.partitionMapWithIndex=w(e)),"function"==typeof e.promap&&(t.promap=M(e)),"function"==typeof e.compose&&(t.compose=E(e)),"function"==typeof e.throwError&&(t.fromOption=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},t.fromEither=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},t.fromPredicate=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},t.filterOrElse=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}}),t},t.pipe=o.pipe},23284:function(e,t,n){n.r(t),n.d(t,{BigIntFromString:function(){return ty},BooleanFromNumber:function(){return tg},BooleanFromString:function(){return te},DateFromISOString:function(){return e1},DateFromNumber:function(){return e7},DateFromUnixTime:function(){return tu},IntFromString:function(){return tc},Json:function(){return tp},JsonArray:function(){return tf},JsonFromString:function(){return td},JsonRecord:function(){return tl},NonEmptyString:function(){return u},NumberFromString:function(){return ta},UUID:function(){return e9},clone:function(){return e8},date:function(){return v},either:function(){return th},fromNewtype:function(){return e$},fromNullable:function(){return e6},fromRefinement:function(){return y},getLenses:function(){return ti},mapFromEntries:function(){return tT},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return eQ},optionFromNullable:function(){return e0},readonlyMapFromEntries:function(){return tS},readonlyNonEmptyArray:function(){return e2},readonlySetFromArray:function(){return h},regexp:function(){return to},setFromArray:function(){return m},withEncode:function(){return tv},withFallback:function(){return e4},withMessage:function(){return tt},withValidate:function(){return e5}});var r={};n.r(r),n.d(r,{Category:function(){return eO},Invariant:function(){return eC},Semigroupoid:function(){return ex},URI:function(){return eR},asOptional:function(){return J},asTraversal:function(){return Z},atKey:function(){return eh},component:function(){return ep},compose:function(){return Q},composeIso:function(){return et},composeLens:function(){return ee},composeOptional:function(){return er},composePrism:function(){return en},composeTraversal:function(){return ei},filter:function(){return ec},findFirst:function(){return eb},findFirstNonEmpty:function(){return eT},fromNullable:function(){return ea},id:function(){return $},imap:function(){return eS},index:function(){return ed},indexNonEmpty:function(){return es},key:function(){return em},left:function(){return eg},lens:function(){return X},modify:function(){return eo},modifyF:function(){return eu},prop:function(){return ef},props:function(){return el},right:function(){return ev},some:function(){return ey},traverse:function(){return e_}});var i=n(47361),o=n(87830),u=o.brand(o.string,function(e){return e.length>0},"NonEmptyString"),a=n(43586),c=n(1358),f=n(18896),l=n(81878),p=n(20492);function d(e,t){void 0===t&&(t="NonEmptyArray<"+e.name+">");var n=o.array(e);return new o.Type(t,function(e){return n.is(e)&&(0,c.isNonEmpty)(e)},function(e,t){return(0,f.pipe)(n.validate(e,t),(0,l.chain)(function(n){var r=(0,a.fromArray)(n);return(0,p.isNone)(r)?o.failure(e,t):o.success(r.value)}))},(0,a.map)(e.encode))}var s=n(1214);function m(e,t,n){void 0===n&&(n="Set<"+e.name+">");var r=o.array(e),i=(0,s.toArray)(t),u=(0,s.fromArray)(t);return new o.Type(n,function(t){return t instanceof Set&&(0,s.every)(e.is)(t)},function(e,t){return(0,f.pipe)(r.validate(e,t),(0,l.chain)(function(n){var r=u(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return r.encode(i(e))})}function h(e,t,n){return void 0===n&&(n="ReadonlySet<"+e.name+">"),m(e,t,n)}function y(e,t){return new o.Type(e,t,function(e,n){return t(e)?o.success(e):o.failure(e,n)},o.identity)}var v=y("Date",function(e){return e instanceof Date}),g=n(42275),_=n(90817),b=n(96576),T=n(31583),S=n(97054),I=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},R=function(e){return x(e.get,(0,g.flow)(e.reverseGet,g.constant))},C=function(e){return D((0,g.flow)(e.get,p.some),(0,g.flow)(e.reverseGet,g.constant))},x=function(e,t){return{get:e,set:t}},O=function(e){return D((0,g.flow)(e.get,p.some),e.set)},w=function(e){return function(t){return x(function(n){return e.get(t.get(n))},function(n){return function(r){return t.set(e.set(n)(t.get(r)))(r)}})}},M=function(e){return function(t){return U(k(e))(O(t))}},E=function(e,t){return{getOption:e,reverseGet:t}},k=function(e){return D(e.getOption,function(t){return F(t)(e)})},P=function(e){return q(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return F(t)(e)(r)})}))}}})},F=function(e){var t;return t=function(){return e},function(e){return function(n){var r;return(0,f.pipe)((r=n,(0,f.pipe)(e.getOption(r),p.map(function(n){var i=t(n);return i===n?r:e.reverseGet(i)}))),p.getOrElse(function(){return n}))}}},L=function(e){return E(p.fromPredicate(e),g.identity)},W=function(){return E(g.identity,p.some)},D=function(e,t){return{getOption:e,set:t}},N=function(e){return function(t){return function(n){return(0,f.pipe)(t.getOption(n),p.map(function(r){var i=e(r);return i===r?n:t.set(i)(n)}))}}},A=function(e){return function(t){var n=N(e)(t);return function(e){return(0,f.pipe)(n(e),p.getOrElse(function(){return e}))}}},U=function(e){return function(t){return D((0,g.flow)(t.getOption,p.chain(e.getOption)),function(n){return A(e.set(n))(t)})}},j=function(e,t,n){if(n[e]===t)return n;var r=I([n[0]],n.slice(1),!0);return r[e]=t,r},q=function(e){return{modifyF:e}};function G(e){return function(t){return q(function(n){return function(r){return t.modifyF(n)(e.modifyF(n)(r))}})}}var Y={URI:"Identity",map:function(e,t){return t(e)},of:g.identity,ap:function(e,t){return e(t)}},K=function(e){return{index:e}},V=function(e){return{at:e}},B=function(e,t){return{get:e,reverseGet:t}},H=function(e){return E((0,g.flow)(e.get,p.some),e.reverseGet)},z=function(e){return q(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.reverseGet(t)})}}})},X=x,$=function(){return x(g.identity,g.constant)},J=O,Z=function(e){return q(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.set(t)(r)})}}})},Q=w,ee=Q,et=(0,g.flow)(R,Q),en=M,er=function(e){return(0,g.flow)(J,U(e))},ei=function(e){return(0,g.flow)(Z,G(e))},eo=function(e){return function(t){return function(n){var r=t.get(n),i=e(r);return r===i?n:t.set(i)(n)}}};function eu(e){return function(t){return function(n){return function(r){return(0,f.pipe)(n.get(r),t,function(t){return e.map(t,function(e){return n.set(e)(r)})})}}}}var ea=function(e){return en(E(p.fromNullable,g.identity))(e)};function ec(e){return en(L(e))}var ef=function(e){return function(t){return x(function(n){return t.get(n)[e]},function(n){return function(r){var i,o=t.get(r);return n===o[e]?r:t.set(Object.assign({},o,((i={})[e]=n,i)))(r)}})}},el=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return x(function(n){for(var r=t.get(n),i={},o=0;o<e.length;o++){var u=e[o];i[u]=r[u]}return i},function(n){return function(r){for(var i=t.get(r),o=0;o<e.length;o++){var u=e[o];if(n[u]!==i[u])return t.set(Object.assign({},i,n))(r)}return r}})}},ep=function(e){return function(t){return x(function(n){return t.get(n)[e]},function(n){return function(r){var i=t.get(r);if(n===i[e])return r;var o=i.slice();return o[e]=n,t.set(o)(r)}})}},ed=function(e){return(0,g.flow)(J,function(t){return(0,f.pipe)(t,U(K(function(e){return D(function(t){return T.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(T.lookup(e,n),p.fold(function(){return n},function(){return T.unsafeUpdateAt(e,t,n)}))}})}).index(e)))})},es=function(e){return(0,g.flow)(J,function(t){return(0,f.pipe)(t,U(K(function(e){return D(function(t){return T.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(T.lookup(e,n),p.fold(function(){return n},function(){return j(e,t,n)}))}})}).index(e)))})},em=function(e){return(0,g.flow)(J,function(t){return(0,f.pipe)(t,U(K(function(e){return D(function(t){return S.lookup(e,t)},function(t){return function(n){return n[e]===t||p.isNone(S.lookup(e,n))?n:S.insertAt(e,t)(n)}})}).index(e)))})},eh=function(e){return function(t){return(0,f.pipe)(t,w(V(function(e){return x(function(t){return S.lookup(e,t)},p.fold(function(){return S.deleteAt(e)},function(t){return S.insertAt(e,t)}))}).at(e)))}},ey=en(W()),ev=en(E(p.fromEither,l.right)),eg=en(E(function(e){return l.isLeft(e)?p.some(e.left):p.none},l.left));function e_(e){return(0,g.flow)(Z,G(q(function(t){var n="Identity"===t.URI?e.map:e.traverse(t);return function(e){return function(t){return n(t,e)}}})))}function eb(e){return er(D(T.findFirst(e),function(t){return function(n){return(0,f.pipe)(T.findIndex(e)(n),p.fold(function(){return n},function(e){return T.unsafeUpdateAt(e,t,n)}))}}))}function eT(e){return er(D(T.findFirst(e),function(t){return function(n){return(0,f.pipe)(T.findIndex(e)(n),p.fold(function(){return n},function(e){return j(e,t,n)}))}}))}var eS=function(e,t){return function(n){return eI(n,e,t)}},eI=function(e,t,n){return X((0,g.flow)(e.get,t),(0,g.flow)(n,e.set))},eR="monocle-ts/Lens",eC={URI:eR,imap:eI},ex={URI:eR,compose:function(e,t){return Q(e)(t)}},eO={URI:eR,compose:ex.compose,id:$},ew=function(e){return q(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return e.set(t)(r)})}))}}})},eM=function(e){return function(t){return E((0,g.flow)(t.getOption,p.chain(e.getOption)),(0,g.flow)(e.reverseGet,t.reverseGet))}},eE=function(e){return function(t){return t.modifyF(Y)(e)}},ek=function(e){return new eA(e.get,e.reverseGet)},eP=function(e){return new eU(e.get,e.set)},eF=function(e){return new ej(e.getOption,e.reverseGet)},eL=function(e){return new eG(e.getOption,e.set)},eW=function(e){return new eY(e.modifyF)},eD=function(e){return new eV(function(t){return eL(e.index(t))})},eN=function(e,t,n){var r;return n===e[t]?e:Object.assign({},e,((r={})[t]=n,r))},eA=function(){function e(e,t){this.get=e,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return e.prototype.reverse=function(){return ek(B(this.reverseGet,this.get))},e.prototype.modify=function(e){var t;return t=this,function(n){return t.reverseGet(e(t.get(n)))}},e.prototype.asLens=function(){return eP(R(this))},e.prototype.asPrism=function(){return eF(H(this))},e.prototype.asOptional=function(){return eL(C(this))},e.prototype.asTraversal=function(){return eW(z(this))},e.prototype.asFold=function(){var e=this;return new eH(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.asGetter=function(){var e=this;return new eB(function(t){return e.get(t)})},e.prototype.asSetter=function(){var e=this;return new ez(function(t){return e.modify(t)})},e.prototype.compose=function(e){var t;return ek((t=this,B((0,g.flow)(t.get,e.get),(0,g.flow)(e.reverseGet,t.reverseGet))))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return eP((0,f.pipe)(this,R,Q(e)))},e.prototype.composePrism=function(e){return eF((0,f.pipe)(this,H,eM(e)))},e.prototype.composeOptional=function(e){return eL((0,f.pipe)(this,C,U(e)))},e.prototype.composeTraversal=function(e){return eW((0,f.pipe)(this,z,G(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e}(),eU=function(){function e(e,t){this.get=e,this.set=t,this._tag="Lens"}return e.fromPath=function(){var t=e.fromProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromProp=function(){return function(e){return eP((0,f.pipe)($(),ef(e)))}},e.fromProps=function(){return function(e){return eP((0,f.pipe)($(),el.apply(r,e)))}},e.fromNullableProp=function(){return function(t,n){return new e(function(e){var r=(0,p.fromNullable)(e[t]);return(0,p.isNone)(r)?n:r.value},function(e){return function(n){return eN(n,t,e)}})}},e.prototype.modify=function(e){return eo(e)(this)},e.prototype.asOptional=function(){return eL(J(this))},e.prototype.asTraversal=function(){return eW(Z(this))},e.prototype.asSetter=function(){var e=this;return new ez(function(t){return e.modify(t)})},e.prototype.asGetter=function(){var e=this;return new eB(function(t){return e.get(t)})},e.prototype.asFold=function(){var e=this;return new eH(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(e){return eP(Q(e)(this))},e.prototype.composeLens=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeOptional=function(e){return eL((0,f.pipe)(this,J,U(e)))},e.prototype.composeTraversal=function(e){return eW((0,f.pipe)(this,Z,G(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eP((0,f.pipe)(this,Q((0,f.pipe)(e,R))))},e.prototype.composePrism=function(e){return eL(en(e)(this))},e}(),ej=function(){function e(e,t){this.getOption=e,this.reverseGet=t,this._tag="Prism"}return e.fromPredicate=function(e){return eF(L(e))},e.some=function(){return eq},e.prototype.modify=function(e){var t=this;return function(n){var r=t.modifyOption(e)(n);return(0,p.isNone)(r)?n:r.value}},e.prototype.modifyOption=function(e){var t=this;return function(n){return p.option.map(t.getOption(n),function(r){var i=e(r);return i===r?n:t.reverseGet(i)})}},e.prototype.set=function(e){return this.modify(function(){return e})},e.prototype.asOptional=function(){return eL(k(this))},e.prototype.asTraversal=function(){return eW(P(this))},e.prototype.asSetter=function(){var e=this;return new ez(function(t){return e.modify(t)})},e.prototype.asFold=function(){var e=this;return new eH(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.compose=function(e){return eF(eM(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return eL((0,f.pipe)(this,k,U(e)))},e.prototype.composeTraversal=function(e){return eW((0,f.pipe)(this,P,G(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eF((0,f.pipe)(this,eM((0,f.pipe)(e,H))))},e.prototype.composeLens=function(e){return eL(U(O(e))(k(this)))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eq=new ej(g.identity,p.some),eG=function(){function e(e,t){this.getOption=e,this.set=t,this._tag="Optional"}return e.fromPath=function(){var t=e.fromNullableProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromNullableProp=function(){return function(t){return new e(function(e){return(0,p.fromNullable)(e[t])},function(e){return function(n){return null==n[t]?n:eN(n,t,e)}})}},e.fromOptionProp=function(){var e=eU.fromProp();return function(t){return e(t).composePrism(eq)}},e.prototype.modify=function(e){return A(e)(this)},e.prototype.modifyOption=function(e){return N(e)(this)},e.prototype.asTraversal=function(){return eW(ew(this))},e.prototype.asFold=function(){var e=this;return new eH(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.asSetter=function(){var e=this;return new ez(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eL(U(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return eW((0,f.pipe)(this,ew,G(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeLens=function(e){return eL((0,f.pipe)(this,U((0,f.pipe)(e,J))))},e.prototype.composePrism=function(e){return eL((0,f.pipe)(this,U((0,f.pipe)(e,k))))},e.prototype.composeIso=function(e){return eL((0,f.pipe)(this,U((0,f.pipe)(e,C))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eY=function(){function e(e){this.modifyF=e,this._tag="Traversal"}return e.prototype.modify=function(e){return eE(e)(this)},e.prototype.set=function(e){return eE(function(){return e})(this)},e.prototype.filter=function(e){return eW(G(P(L(e)))(this))},e.prototype.asFold=function(){var e=this;return new eH(function(t){return function(n){return e.modifyF((0,_.getApplicative)(t))(function(e){return(0,_.make)(n(e))})}})},e.prototype.asSetter=function(){var e=this;return new ez(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eW(G(e)(this))},e.prototype.composeTraversal=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeOptional=function(e){return this.compose(e.asTraversal())},e.prototype.composeLens=function(e){return eW((0,f.pipe)(this,G((0,f.pipe)(e,Z))))},e.prototype.composePrism=function(e){return eW((0,f.pipe)(this,G((0,f.pipe)(e,P))))},e.prototype.composeIso=function(e){return eW((0,f.pipe)(this,G((0,f.pipe)(e,z))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eK=function(){function e(e){this.at=e,this._tag="At"}return e.prototype.fromIso=function(e){var t,n;return n=this,t=V(function(t){return(0,f.pipe)(e,R,w(n.at(t)))}),new eK(function(e){return eP(t.at(e))})},e}(),eV=function(){function e(e){this.index=e,this._tag="Index"}return e.fromAt=function(e){return eD(K(function(t){return M(W())(e.at(t))}))},e.prototype.fromIso=function(e){var t;return eD((t=this,K(function(n){return(0,f.pipe)(e,C,U(t.index(n)))})))},e}(),eB=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new eH(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(t){var n=this;return new e(function(e){return t.get(n.get(e))})},e.prototype.composeGetter=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeLens=function(e){return this.compose(e.asGetter())},e.prototype.composeIso=function(e){return this.compose(e.asGetter())},e.prototype.composeTraversal=function(e){return this.asFold().compose(e.asFold())},e.prototype.composeOptional=function(e){return this.asFold().compose(e.asFold())},e.prototype.composePrism=function(e){return this.asFold().compose(e.asFold())},e}(),eH=function(){function e(e){this.foldMap=e,this._tag="Fold",this.getAll=e(c.getMonoid())(c.of),this.exist=e(b.monoidAny),this.all=e(b.monoidAll),this.foldMapFirst=e((0,p.getFirstMonoid)())}return e.prototype.compose=function(t){var n=this;return new e(function(e){return function(r){return n.foldMap(e)(t.foldMap(e)(r))}})},e.prototype.composeFold=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.compose(e.asFold())},e.prototype.composeTraversal=function(e){return this.compose(e.asFold())},e.prototype.composeOptional=function(e){return this.compose(e.asFold())},e.prototype.composeLens=function(e){return this.compose(e.asFold())},e.prototype.composePrism=function(e){return this.compose(e.asFold())},e.prototype.composeIso=function(e){return this.compose(e.asFold())},e.prototype.find=function(e){return this.foldMapFirst((0,p.fromPredicate)(e))},e.prototype.headOption=function(e){return this.find(function(){return!0})(e)},e}(),ez=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify((0,g.constant)(e))},e.prototype.compose=function(t){var n=this;return new e(function(e){return n.modify(t.modify(e))})},e.prototype.composeSetter=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return this.compose(e.asSetter())},e.prototype.composeOptional=function(e){return this.compose(e.asSetter())},e.prototype.composeLens=function(e){return this.compose(e.asSetter())},e.prototype.composePrism=function(e){return this.compose(e.asSetter())},e.prototype.composeIso=function(e){return this.compose(e.asSetter())},e}(),eX=new eA(g.unsafeCoerce,g.unsafeCoerce);function e$(e,t){return void 0===t&&(t="fromNewtype("+e.name+")"),new o.Type(t,function(t){return e.is(t)},function(t,n){return(0,f.pipe)(e.validate(t,n),(0,l.map)(eX.wrap))},function(t){return e.encode(eX.unwrap(t))})}var eJ=o.strict({_tag:o.literal("None")},"None"),eZ=o.literal("Some");function eQ(e,t){return void 0===t&&(t="Option<"+e.name+">"),o.union([eJ,o.strict({_tag:eZ,value:e},"Some<"+e.name+">")],t)}function e0(e,t){return void 0===t&&(t="Option<"+e.name+">"),new o.Type(t,eQ(e).is,function(t,n){return null==t?o.success(p.none):(0,f.pipe)(e.validate(t,n),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(e.encode)))})}var e1=new o.Type("DateFromISOString",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.toISOString()});function e2(e,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+e.name+">"),d(e,t)}function e8(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}var e7=new o.Type("DateFromNumber",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.getTime()});function e5(e,t,n){void 0===n&&(n=e.name);var r=e8(e);return r.validate=t,r.decode=function(e){return t(e,o.getDefaultContext(r))},r.name=n,r}function e4(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),e5(e,function(n,r){return(0,l.orElse)(function(){return o.success(t)})(e.validate(n,r))},n)}var e3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,e9=o.brand(o.string,function(e){return e3.test(e)},"UUID");function e6(e,t,n){return void 0===n&&(n="fromNullable("+e.name+")"),e5(e,function(n,r){return null==n?o.success(t):e.validate(n,r)},n)}var te=new o.Type("BooleanFromString",o.boolean.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){return"true"===n?o.success(!0):"false"===n?o.success(!1):o.failure(e,t)}))},String);function tt(e,t){return e5(e,function(n,r){return(0,l.mapLeft)(function(){return[{value:n,context:r,message:t(n,r),actual:n}]})(e.validate(n,r))})}function tn(e){switch(e._tag){case"InterfaceType":return e.props;case"ExactType":return tn(e.type)}}var tr=eU.fromProp();function ti(e){var t={};for(var n in tn(e))t[n]=tr(n);return t}var to=y("RegExp",function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}),tu=new o.Type("DateFromUnixTime",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.Int.validate(e,t),(0,l.chain)(function(n){var r=new Date(1e3*n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return Math.floor(e.getTime()/1e3)}),ta=new o.Type("NumberFromString",o.number.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=+n;return isNaN(r)||""===n.trim()?o.failure(e,t):o.success(r)}))},String),tc=new o.Type("IntFromString",o.Int.is,function(e,t){return(0,f.pipe)(ta.validate(e,t),(0,l.chain)(function(n){return o.Int.is(n)?o.success(n):o.failure(e,t)}))},ta.encode),tf=o.recursion("JsonArray",function(){return o.readonlyArray(tp)}),tl=o.recursion("JsonRecord",function(){return o.record(o.string,tp)}),tp=o.union([o.boolean,o.number,o.string,o.null,tf,tl],"Json"),td=new o.Type("JsonFromString",tp.is,function(e,t){try{return o.success(JSON.parse(e))}catch(n){return o.failure(e,t)}},function(e){return JSON.stringify(e)}),ts=o.literal("Left"),tm=o.literal("Right");function th(e,t,n){return void 0===n&&(n="Either<"+e.name+", "+t.name+">"),o.union([o.strict({_tag:ts,left:e},"Left<"+e.name+">"),o.strict({_tag:tm,right:t},"Right<"+e.name+">")],n)}var ty=new o.Type("BigIntFromString",function(e){return"bigint"==typeof e},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){if(!u.is(n.trim()))return o.failure(e,t);try{return o.success(BigInt(n))}catch(n){return o.failure(e,t)}}))},String);function tv(e,t,n){return void 0===n&&(n=e.name),new o.Type(n,e.is,e.validate,t)}var tg=new o.Type("BooleanFromNumber",o.boolean.is,function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.map)(function(e){return 0!==e}))},Number),t_=n(55116),tb=n(3291);function tT(e,t,n,r){void 0===r&&(r="Map<"+e.name+", "+n.name+">");var i,u,a=o.array(o.tuple([e,n])),f=(0,t_.toArray)(t),p=(0,t_.fromFoldable)(t,(0,tb.getLastSemigroup)(),c.Foldable),d=(i=e.is,u=n.is,function(e){for(var t,n=e.entries();!(t=n.next()).done;)if(!1===i(t.value[0])||!1===u(t.value[1]))return!1;return!0});return new o.Type(r,function(e){return e instanceof Map&&d(e)},function(e,t){return(0,g.pipe)(a.validate(e,t),(0,l.chain)(function(n){var r=p(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return a.encode(f(e))})}function tS(e,t,n,r){return void 0===r&&(r="ReadonlyMap<"+e.name+", "+n.name+">"),tT(e,t,n,r)}},47361:function(e,t,n){n.r(t),n.d(t,{mapOutput:function(){return i}});var r=n(87830);function i(e,t,n){return void 0===n&&(n=e.name),new r.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},11621:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var u=o(n(87830)),a=n(59054),c=n(67794),f=n(87412);t.IntFromString=new u.Type("IntFromString",u.Int.is,function(e,t){return c.pipe(a.NumberFromString.validate(e,t),f.chain(function(n){return u.Int.is(n)?u.success(n):u.failure(e,t)}))},a.NumberFromString.encode)},59054:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var u=o(n(87830)),a=n(67794),c=n(87412);t.NumberFromString=new u.Type("NumberFromString",u.number.is,function(e,t){return a.pipe(u.string.validate(e,t),c.chain(function(n){var r=+n;return isNaN(r)||""===n.trim()?u.failure(e,t):u.success(r)}))},String)},62886:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}},2932:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var u=o(n(87830));t.mapOutput=function(e,t,n){return void 0===n&&(n=e.name),new u.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},69624:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var u=o(n(87830)),a=n(40308),c=n(87412);t.withFallback=function(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),a.withValidate(e,function(n,r){return c.orElse(function(){return u.success(t)})(e.validate(n,r))},n)}},40308:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var u=o(n(87830)),a=n(62886);t.withValidate=function(e,t,n){void 0===n&&(n=e.name);var r=a.clone(e);return r.validate=t,r.decode=function(e){return t(e,u.getDefaultContext(r))},r.name=n,r}},87830:function(e,t,n){n.r(t),n.d(t,{AnyArrayType:function(){return J},AnyDictionaryType:function(){return Q},AnyType:function(){return eW},Array:function(){return Z},ArrayType:function(){return el},BigIntType:function(){return H},BooleanType:function(){return X},Dictionary:function(){return eY},DictionaryType:function(){return ey},ExactType:function(){return eM},Function:function(){return eP},FunctionType:function(){return ek},Int:function(){return ea},Integer:function(){return eA},InterfaceType:function(){return ed},IntersectionType:function(){return eb},KeyofType:function(){return er},LiteralType:function(){return et},NeverType:function(){return eF},NullType:function(){return W},NumberType:function(){return V},ObjectType:function(){return eK},PartialType:function(){return em},ReadonlyArrayType:function(){return ex},ReadonlyType:function(){return eR},RecursiveType:function(){return ec},RefinementType:function(){return eo},StrictType:function(){return eH},StringType:function(){return Y},TaggedUnionType:function(){return eU},TupleType:function(){return eS},Type:function(){return p},UndefinedType:function(){return N},UnionType:function(){return eg},UnknownArray:function(){return Z},UnknownRecord:function(){return ee},UnknownType:function(){return q},VoidType:function(){return U},alias:function(){return eX},any:function(){return eD},appendContext:function(){return h},array:function(){return ep},bigint:function(){return z},boolean:function(){return $},brand:function(){return eu},clean:function(){return ez},dictionary:function(){return eB},emptyTags:function(){return x},exact:function(){return eE},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return m},getDefaultContext:function(){return eG},getDomainKeys:function(){return S},getFunctionName:function(){return s},getIndex:function(){return L},getTags:function(){return F},getValidationError:function(){return eq},identity:function(){return d},interface:function(){return es},intersection:function(){return eT},keyof:function(){return ei},literal:function(){return en},mergeAll:function(){return R},never:function(){return eL},null:function(){return D},nullType:function(){return D},number:function(){return B},object:function(){return eV},partial:function(){return eh},readonly:function(){return eC},readonlyArray:function(){return eO},record:function(){return ev},recursion:function(){return ef},refinement:function(){return eN},strict:function(){return ew},string:function(){return K},success:function(){return l},taggedUnion:function(){return ej},tuple:function(){return eI},type:function(){return es},undefined:function(){return A},union:function(){return e_},unknown:function(){return G},void:function(){return j},voidType:function(){return j}});var r,i=n(81878),o=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(e,t,n){return c([{value:e,context:t,message:n}])},l=i.right,p=function(){function e(e,t,n,r){this.name=e,this.is=t,this.validate=n,this.encode=r,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,n){var r=this;return void 0===n&&(n="pipe(".concat(this.name,", ").concat(t.name,")")),new e(n,t.is,function(e,n){var o=r.validate(e,n);return(0,i.isLeft)(o)?o:t.validate(o.right,n)},this.encode===d&&t.encode===d?d:function(e){return r.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),d=function(e){return e};function s(e){return e.displayName||e.name||"<function".concat(e.length,">")}function m(e,t){return{key:e,type:t}}function h(e,t,n,r){for(var i=e.length,o=Array(i+1),u=0;u<i;u++)o[u]=e[u];return o[i]={key:t,type:n,actual:r},o}function y(e,t){for(var n=t.length,r=0;r<n;r++)e.push(t[r])}var v=Object.prototype.hasOwnProperty;function g(e){return Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")}function _(e){for(var t=0;t<e.length;t++)if(e[t].encode!==d)return!1;return!0}function b(e){return"{ ".concat(g(e)," }")}function T(e){return"Partial<".concat(e,">")}function S(e){var t;if(M(e)){var n=e.value;if(K.is(n))return(t={})[n]=null,t}else{if("KeyofType"===e._tag)return e.keys;if(k(e)){var r=e.types.map(function(e){return S(e)});return r.some(A.is)?void 0:Object.assign.apply(Object,a([{}],r,!1))}}}function I(e){return"("+e.map(function(e){return e.name}).join(" | ")+")"}function R(e,t){for(var n=!0,r=!0,i=!ee.is(e),o=0;o<t.length;o++){var u=t[o];u!==e&&(n=!1),ee.is(u)&&(r=!1)}if(n)return e;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var u=t[c];for(var f in u)(!v.call(a,f)||i||u[f]!==e[f])&&(a[f]=u[f])}return a}function C(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,i={},o=0;o<n.length;o++){var u=n[o];v.call(t,u)?i[u]=e[u]:r=!0}return r?i:e}var x={};function O(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];-1!==t.indexOf(i)&&n.push(i)}return n}function w(e){return"AnyType"===e._tag}function M(e){return"LiteralType"===e._tag}function E(e){return"InterfaceType"===e._tag}function k(e){return"UnionType"===e._tag}var P=[];function F(e){if(-1!==P.indexOf(e))return x;if(E(e)||"StrictType"===e._tag){var t=x;for(var n in e.props){var r=e.props[n];M(r)&&(t===x&&(t={}),t[n]=[r.value])}return t}if("ExactType"===e._tag||"RefinementType"===e._tag)return F(e.type);if("IntersectionType"===e._tag)return e.types.reduce(function(e,t){return function(e,t){if(e===x)return t;if(t===x)return e;var n=Object.assign({},e);for(var r in t)if(v.call(e,r)){var i=O(e[r],t[r]);if(i.length>0)n[r]=i;else{n=x;break}}else n[r]=t[r];return n}(e,F(t))},x);if(k(e))return e.types.slice(1).reduce(function(e,t){return function(e,t){if(e===x||t===x)return x;var n=x;for(var r in e)v.call(t,r)&&0===O(e[r],t[r]).length&&(n===x&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,F(t))},F(e.types[0]));if("RecursiveType"===e._tag){P.push(e);var i=F(e.type);return P.pop(),i}return x}function L(e){for(var t=F(e[0]),n=Object.keys(t),r=e.length,i=0;i<n.length;i++){var o=function(n){for(var i=t[n].slice(),o=[t[n]],u=1;u<r;u++){var a=F(e[u])[n];if(void 0===a||a.some(function(e){return -1!==i.indexOf(e)}))return"continue-keys";i.push.apply(i,a),o.push(a)}return{value:[n,o]}}(n[i]);if("object"==typeof o)return o.value;if("continue-keys"===o)continue}}var W=function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NullType",t}return o(t,e),t}(p),D=new W,N=function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="UndefinedType",t}return o(t,e),t}(p),A=new N,U=function(e){function t(){var t=e.call(this,"void",A.is,A.validate,d)||this;return t._tag="VoidType",t}return o(t,e),t}(p),j=new U,q=function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},l,d)||this;return t._tag="UnknownType",t}return o(t,e),t}(p),G=new q,Y=function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="StringType",t}return o(t,e),t}(p),K=new Y,V=function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NumberType",t}return o(t,e),t}(p),B=new V,H=function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BigIntType",t}return o(t,e),t}(p),z=new H,X=function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BooleanType",t}return o(t,e),t}(p),$=new X,J=function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyArrayType",t}return o(t,e),t}(p),Z=new J,Q=function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyDictionaryType",t}return o(t,e),t}(p),ee=new Q,et=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.value=o,u._tag="LiteralType",u}return o(t,e),t}(p);function en(e,t){void 0===t&&(t=JSON.stringify(e));var n=function(t){return t===e};return new et(t,n,function(t,r){return n(t)?l(e):f(t,r)},d,e)}var er=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.keys=o,u._tag="KeyofType",u}return o(t,e),t}(p);function ei(e,t){void 0===t&&(t=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(" | "));var n=function(t){return K.is(t)&&v.call(e,t)};return new er(t,n,function(e,t){return n(e)?l(e):f(e,t)},d,e)}var eo=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.type=o,a.predicate=u,a._tag="RefinementType",a}return o(t,e),t}(p);function eu(e,t,n){return eN(e,t,n)}var ea=eN(B,function(e){return Number.isInteger(e)},"Int"),ec=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.runDefinition=o,u._tag="RecursiveType",u}return o(t,e),t}(p);function ef(e,t){var n,r=function(){return n||((n=t(i)).name=e),n},i=new ec(e,function(e){return r().is(e)},function(e,t){return r().validate(e,t)},function(e){return r().encode(e)},r);return i}Object.defineProperty(ec.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var el=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ArrayType",u}return o(t,e),t}(p);function ep(e,t){return void 0===t&&(t="Array<".concat(e.name,">")),new el(t,function(t){return Z.is(t)&&t.every(e.is)},function(t,n){var r=Z.validate(t,n);if((0,i.isLeft)(r))return r;for(var o=r.right,u=o.length,a=o,f=[],p=0;p<u;p++){var d=o[p],s=e.validate(d,h(n,String(p),e,d));if((0,i.isLeft)(s))y(f,s.left);else{var m=s.right;m!==d&&(a===o&&(a=o.slice()),a[p]=m)}}return f.length>0?c(f):l(a)},e.encode===d?d:function(t){return t.map(e.encode)},e)}var ed=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="InterfaceType",u}return o(t,e),t}(p);function es(e,t){void 0===t&&(t=b(e));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new ed(t,function(e){if(ee.is(e)){for(var t=0;t<o;t++){var i=n[t],u=e[i];if(void 0===u&&!v.call(e,i)||!r[t].is(u))return!1}return!0}return!1},function(e,t){var a=ee.validate(e,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var m=n[s],g=p[m],_=r[s],b=_.validate(g,h(t,m,_,g));if((0,i.isLeft)(b))y(d,b.left);else{var T=b.right;T===g&&(void 0!==T||v.call(p,m))||(p===f&&(p=u({},f)),p[m]=T)}}return d.length>0?c(d):l(p)},_(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=r[i].encode;c!==d&&(t[a]=c(e[a]))}return t},e)}var em=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="PartialType",u}return o(t,e),t}(p);function eh(e,t){void 0===t&&(t=T(b(e)));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new em(t,function(t){if(ee.is(t)){for(var r=0;r<o;r++){var i=n[r],u=t[i];if(void 0!==u&&!e[i].is(u))return!1}return!0}return!1},function(t,r){var a=ee.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var m=n[s],v=p[m],g=e[m],_=g.validate(v,h(r,m,g,v));if((0,i.isLeft)(_))void 0!==v&&y(d,_.left);else{var b=_.right;b!==v&&(p===f&&(p=u({},f)),p[m]=b)}}return d.length>0?c(d):l(p)},_(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=e[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},e)}var ey=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.domain=o,a.codomain=u,a._tag="DictionaryType",a}return o(t,e),t}(p);function ev(e,t,n){var r,o,u,a,p=S(e);return p?(r=Object.keys(p),void 0===(o=n)&&(o="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),u=r.length,new ey(o,function(e){return ee.is(e)&&r.every(function(n){return t.is(e[n])})},function(e,n){var o=ee.validate(e,n);if((0,i.isLeft)(o))return o;for(var a=o.right,f={},p=[],d=!1,s=0;s<u;s++){var m=r[s],v=a[m],g=t.validate(v,h(n,m,t,v));if((0,i.isLeft)(g))y(p,g.left);else{var _=g.right;d=d||_!==v,f[m]=_}}return p.length>0?c(p):l(d||Object.keys(a).length!==u?f:a)},t.encode===d?d:function(e){for(var n={},i=0;i<u;i++){var o=r[i];n[o]=t.encode(e[o])}return n},e,t)):(void 0===(a=n)&&(a="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),new ey(a,function(n){return ee.is(n)?Object.keys(n).every(function(r){return e.is(r)&&t.is(n[r])}):w(t)&&Array.isArray(n)},function(n,r){if(ee.is(n)){for(var o={},u=[],a=Object.keys(n),p=a.length,d=!1,s=0;s<p;s++){var m=a[s],v=n[m],g=e.validate(m,h(r,m,e,m));if((0,i.isLeft)(g))y(u,g.left);else{var _=g.right;d=d||_!==m,m=_;var b=t.validate(v,h(r,m,t,v));if((0,i.isLeft)(b))y(u,b.left);else{var T=b.right;d=d||T!==v,o[m]=T}}}return u.length>0?c(u):l(d?o:n)}return w(t)&&Array.isArray(n)?l(n):f(n,r)},e.encode===d&&t.encode===d?d:function(n){for(var r={},i=Object.keys(n),o=i.length,u=0;u<o;u++){var a=i[u];r[String(e.encode(a))]=t.encode(n[a])}return r},e,t))}var eg=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="UnionType",u}return o(t,e),t}(p);function e_(e,t){void 0===t&&(t=I(e));var n=L(e);if(void 0===n||!(e.length>0))return new eg(t,function(t){return e.some(function(e){return e.is(t)})},function(t,n){for(var r=[],o=0;o<e.length;o++){var u=e[o],a=u.validate(t,h(n,String(o),u,t));if(!(0,i.isLeft)(a))return l(a.right);y(r,a.left)}return c(r)},_(e)?d:function(n){for(var r=0;r<e.length;r++){var i=e[r];if(i.is(n))return i.encode(n)}throw Error("no codec found to encode value in union type ".concat(t))},e);var r=n[0],o=n[1],u=o.length,a=function(e){for(var t=0;t<u;t++)if(-1!==o[t].indexOf(e))return t};return new eU(t,function(t){if(ee.is(t)){var n=a(t[r]);return void 0!==n&&e[n].is(t)}return!1},function(t,n){var o=ee.validate(t,n);if((0,i.isLeft)(o))return o;var u=o.right,c=a(u[r]);if(void 0===c)return f(t,n);var l=e[c];return l.validate(u,h(n,String(c),l,u))},_(e)?d:function(n){var i=a(n[r]);if(void 0!==i)return e[i].encode(n);throw Error("no codec found to encode value in union codec ".concat(t))},e,r)}var eb=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="IntersectionType",u}return o(t,e),t}(p);function eT(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var n=e.length;return new eb(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?l:function(t,r){for(var o=[],u=[],a=0;a<n;a++){var f=e[a],p=f.validate(t,h(r,String(a),f,t));(0,i.isLeft)(p)?y(u,p.left):o.push(p.right)}return u.length>0?c(u):l(R(t,o))},0===e.length?d:function(t){return R(t,e.map(function(e){return e.encode(t)}))},e)}var eS=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="TupleType",u}return o(t,e),t}(p);function eI(e,t){void 0===t&&(t="[".concat(e.map(function(e){return e.name}).join(", "),"]"));var n=e.length;return new eS(t,function(t){return Z.is(t)&&t.length===n&&e.every(function(e,n){return e.is(t[n])})},function(t,r){var o=Z.validate(t,r);if((0,i.isLeft)(o))return o;for(var u=o.right,a=u.length>n?u.slice(0,n):u,f=[],p=0;p<n;p++){var d=u[p],s=e[p],m=s.validate(d,h(r,String(p),s,d));if((0,i.isLeft)(m))y(f,m.left);else{var v=m.right;v!==d&&(a===u&&(a=u.slice()),a[p]=v)}}return f.length>0?c(f):l(a)},_(e)?d:function(t){return e.map(function(e,n){return e.encode(t[n])})},e)}var eR=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyType",u}return o(t,e),t}(p);function eC(e,t){return void 0===t&&(t="Readonly<".concat(e.name,">")),new eR(t,e.is,e.validate,e.encode,e)}var ex=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyArrayType",u}return o(t,e),t}(p);function eO(e,t){void 0===t&&(t="ReadonlyArray<".concat(e.name,">"));var n=ep(e);return new ex(t,n.is,n.validate,n.encode,e)}var ew=function(e,t){return eE(es(e),t)},eM=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ExactType",u}return o(t,e),t}(p);function eE(e,t){void 0===t&&(t=E(e)?"{| ".concat(g(e.props)," |}"):"PartialType"===e._tag?T("{| ".concat(g(e.props)," |}")):"Exact<".concat(e.name,">"));var n=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,n){return Object.assign(t,e(n))},{})}}(e);return new eM(t,e.is,function(t,r){var o=ee.validate(t,r);if((0,i.isLeft)(o))return o;var u=e.validate(t,r);return(0,i.isLeft)(u)?u:(0,i.right)(C(u.right,n))},function(t){return e.encode(C(t,n))},e)}var ek=function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="FunctionType",t}return o(t,e),t}(p),eP=new ek,eF=function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return f(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return o(t,e),t}(p),eL=new eF,eW=function(e){function t(){var t=e.call(this,"any",function(e){return!0},l,d)||this;return t._tag="AnyType",t}return o(t,e),t}(p),eD=new eW;function eN(e,t,n){return void 0===n&&(n="(".concat(e.name," | ").concat(s(t),")")),new eo(n,function(n){return e.is(n)&&t(n)},function(n,r){var o=e.validate(n,r);if((0,i.isLeft)(o))return o;var u=o.right;return t(u)?l(u):f(u,r)},e.encode,e,t)}var eA=eN(B,Number.isInteger,"Integer"),eU=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i,o)||this;return a.tag=u,a}return o(t,e),t}(eg),ej=function(e,t,n){void 0===n&&(n=I(t));var r=e_(t,n);return r instanceof eU?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new eU(n,r.is,r.validate,r.encode,t,e))},eq=function(e,t){return{value:e,context:t}},eG=function(e){return[{key:"",type:e}]},eY=ee,eK=function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="ObjectType",t}return o(t,e),t}(p),eV=new eK,eB=ev,eH=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="StrictType",u}return o(t,e),t}(p);function ez(e){return e}function eX(e){return function(){return e}}},77883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var n="html";t.FORMAT_HTML=n;var r="plain";t.FORMAT_PLAIN=r;var i=[n,r];t.FORMATS=i},779:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(e,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 n="words";t.UNIT_WORDS=n;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var o="sentence";t.UNIT_SENTENCE=o;var u="paragraphs";t.UNIT_PARAGRAPHS=u;var a="paragraph";t.UNIT_PARAGRAPH=a;var c=[n,r,i,o,u,a];t.UNITS=c},90783:function(e,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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=n(77883),o=n(29688),u=n(90783),a=(r=n(55548))&&r.__esModule?r:{default:r};t.loremIpsum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,n=void 0===t?1:t,r=e.format,c=void 0===r?i.FORMAT_PLAIN:r,f=e.paragraphLowerBound,l=e.paragraphUpperBound,p=e.random,d=e.sentenceLowerBound,s=e.sentenceUpperBound,m=e.units,h=void 0===m?o.UNIT_SENTENCES:m,y=e.words,v=void 0===y?u.WORDS:y,g=e.suffix,_=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:v,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===g?"":g);switch(h){case o.UNIT_PARAGRAPHS:case o.UNIT_PARAGRAPH:return _.generateParagraphs(n);case o.UNIT_SENTENCES:case o.UNIT_SENTENCE:return _.generateSentences(n);case o.UNIT_WORDS:case o.UNIT_WORD:return _.generateWords(n);default:return""}}},55548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(77883),o=n(779),u=(r=n(40928))&&r.__esModule?r:{default:r},a=n(23749),c=function(){var e;function t(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,a=arguments.length>2?arguments[2]:void 0;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.format=o,this.suffix=a,n=void 0,(e="generator")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,-1===i.FORMATS.indexOf(o.toLowerCase()))throw Error("".concat(o," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new u.default(r)}return e=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?o.LINE_ENDINGS.WIN32:o.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===i.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map(function(e){return t.formatString(e)})}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=c},40928:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(90783),i=n(23749);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){var e;function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.sentencesPerParagraph,i=void 0===n?{max:7,min:3}:n,u=e.wordsPerSentence,a=void 0===u?{max:15,min:5}:u,c=e.random,f=(e.seed,e.words),l=void 0===f?r.WORDS:f;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),o(this,"sentencesPerParagraph",void 0),o(this,"wordsPerSentence",void 0),o(this,"random",void 0),o(this,"words",void 0),i.min>i.max)throw Error("Minimum number of sentences per paragraph (".concat(i.min,") cannot exceed maximum (").concat(i.max,")."));if(a.min>a.max)throw Error("Minimum number of words per sentence (".concat(a.min,") cannot exceed maximum (").concat(a.max,")."));this.sentencesPerParagraph=i,this.words=l,this.wordsPerSentence=a,this.random=c||Math.random}return e=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,n=this.wordsPerSentence,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.pluckRandomWord()," ").concat(e)},"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,i.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,n=this.sentencesPerParagraph,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.generateRandomSentence()," ").concat(e)},"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();t.default=u},79998:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)}},23749:function(e,t,n){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 i.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return c.default}});var r=f(n(79998)),i=f(n(18077)),o=f(n(66002)),u=f(n(89759)),a=f(n(13385)),c=f(n(74523));function f(e){return e&&e.__esModule?e:{default:e}}},18077:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){return!!e.exports}},66002:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var e=!1;try{e="ReactNative"===navigator.product}catch(t){e=!1}return e}},89759:function(e,t,n){var r=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(36021);t.default=function(){var e=!1;try{e=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){e=!1}return e}},13385:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map(function(e,t){return t})}},74523:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(13385))&&r.__esModule?r:{default:r};t.default=function(e,t){return(0,i.default)(e).map(function(){return t()})}},58831:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(64379);t.ArrowContainer=function(e){var t=e.childRect,n=e.popoverRect,a=e.position,c=e.arrowColor,f=e.arrowSize,l=e.arrowClassName,p=e.arrowStyle,d=e.className,s=e.children,m=e.style,h=u.useArrowContainer({childRect:t,popoverRect:n,position:a,arrowColor:c,arrowSize:f}),y=h.arrowContainerStyle,v=h.arrowStyle,g=o.useMemo(function(){return r(r({},y),m)},[y,m]),_=o.useMemo(function(){return r(r({},v),p)},[v,p]);return i.jsxs("div",r({className:d,style:g},{children:[i.jsx("div",{style:_,className:l},void 0),s]}),void 0)}},19909:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(44635),a=n(27574),c=n(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=n(70414),l=n(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=n(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=o.forwardRef(function(e,t){var n=e.isOpen,l=e.children,p=e.content,s=e.positions,m=e.align,h=void 0===m?"center":m,y=e.padding,v=void 0===y?0:y,g=e.reposition,_=void 0===g||g,b=e.parentElement,T=void 0===b?window.document.body:b,S=e.boundaryElement,I=void 0===S?T:S,R=e.containerClassName,C=e.containerStyle,x=e.contentLocation,O=e.boundaryInset,w=void 0===O?0:O,M=e.onClickOutside,E=e.clickOutsideCapture,k=void 0!==E&&E,P=f.useMemoizedArray(void 0===s?d:s),F=o.useRef(!1),L=o.useRef(),W=o.useRef(),D=o.useRef(_),N=o.useRef(),A=o.useState({align:h,nudgedLeft:0,nudgedTop:0,position:P[0],padding:v,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:w,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),U=A[0],j=A[1],q=o.useCallback(function(e){return j(e)},[]),G=c.usePopover({isOpen:n,childRef:N,containerClassName:void 0===R?"react-tiny-popover-container":R,parentElement:T,boundaryElement:I,contentLocation:x,positions:P,align:h,padding:v,boundaryInset:w,reposition:_,onPositionPopover:q}),Y=G.positionPopover,K=G.popoverRef,V=G.scoutRef;o.useLayoutEffect(function(){var e=!0,t=function(){var r,i;if(n&&e){var o=null===(r=null==N?void 0:N.current)||void 0===r?void 0:r.getBoundingClientRect(),u=null===(i=null==K?void 0:K.current)||void 0===i?void 0:i.getBoundingClientRect();null==o||null==u||a.rectsAreEqual(o,{top:U.childRect.top,left:U.childRect.left,width:U.childRect.width,height:U.childRect.height,bottom:U.childRect.top+U.childRect.height,right:U.childRect.left+U.childRect.width})&&u.width===U.popoverRect.width&&u.height===U.popoverRect.height&&U.padding===v&&U.align===h&&P===L.current&&x===W.current&&_===D.current||Y(),P!==L.current&&(L.current=P),x!==W.current&&(W.current=x),_!==D.current&&(D.current=_),e&&window.requestAnimationFrame(t)}F.current=n};return window.requestAnimationFrame(t),function(){e=!1}},[h,x,n,v,K,U.align,U.childRect.height,U.childRect.left,U.childRect.top,U.childRect.width,U.padding,U.popoverRect.height,U.popoverRect.width,Y,P,_]),o.useEffect(function(){var e=K.current;return Object.assign(e.style,C),function(){Object.keys(null!=C?C:{}).forEach(function(t){return delete e.style[t]})}},[C,n,K]);var B=o.useCallback(function(e){var t,r;!n||(null===(t=K.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=N.current)||void 0===r?void 0:r.contains(e.target))||null==M||M(e)},[n,M,K]),H=o.useCallback(function(){N.current&&window.requestAnimationFrame(function(){return Y()})},[Y]);o.useEffect(function(){var e=T.ownerDocument.body;return e.addEventListener("click",B,k),e.addEventListener("contextmenu",B,k),e.addEventListener("resize",H),function(){e.removeEventListener("click",B,k),e.removeEventListener("contextmenu",B,k),e.removeEventListener("resize",H)}},[k,B,H,T]);var z=o.useCallback(function(e){N.current=e,null!=t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))},[t]);return i.jsxs(i.Fragment,{children:[o.cloneElement(l,{ref:z}),n?i.jsx(u.PopoverPortal,r({element:K.current,scoutElement:V.current,container:T},{children:"function"==typeof p?p(U):p}),void 0):null]},void 0)});t.Popover=o.forwardRef(function(e,t){return"undefined"==typeof window?e.children:i.jsx(s,r({},e,{ref:t}),void 0)})},44635:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=n(2784),i=n(28316);t.PopoverPortal=function(e){var t=e.container,n=e.element,o=e.scoutElement,u=e.children;return r.useLayoutEffect(function(){return t.appendChild(n),t.appendChild(o),function(){t.removeChild(n),t.removeChild(o)}},[t,n,o]),i.createPortal(u,n)}},64379:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=n(2784);t.useArrowContainer=function(e){var t=e.childRect,n=e.popoverRect,o=e.position,u=e.arrowSize,a=e.arrowColor;return{arrowContainerStyle:i.useMemo(function(){return{padding:u}},[u]),arrowStyle:i.useMemo(function(){return r({position:"absolute"},function(){var e=2*u,r=t.top-n.top+t.height/2-e/2,i=t.left-n.left+t.width/2-e/2,c=n.width-u,f=n.height-u;switch(i=(i=i<u?u:i)+e>c?c-e:i,r=Number.isNaN(r=(r=r<u?u:r)+e>f?f-e:r)?0:r,i=Number.isNaN(i)?0:i,o){case"right":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderRight:u+"px solid "+a,left:0,top:r};case"left":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderLeft:u+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderBottom:u+"px solid "+a,top:0,left:i};case"top":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderTop:u+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,u,t.height,t.left,t.top,t.width,n.height,n.left,n.top,n.width,o])}}},79601:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=n(2784),i=n(27574);t.useElementRef=function(e,t){var n=r.useRef(),o=r.useMemo(function(){return i.createContainer(t,e)},[e,t]);return n.current=o,n}},70414:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=n(2784);t.useMemoizedArray=function(e){var t=r.useRef(e);return r.useMemo(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var n=0;n<e.length;n+=1)if(e[n]!==t.current[n])return t.current=e,e;return t.current},[e])}},61462:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=n(2784),i=n(27574),o=n(79601),u={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};t.usePopover=function(e){var t=e.isOpen,n=e.childRef,c=e.positions,f=e.containerClassName,l=e.parentElement,p=e.contentLocation,d=e.align,s=e.padding,m=e.reposition,h=e.boundaryInset,y=e.boundaryElement,v=e.onPositionPopover,g=o.useElementRef(f,u),_=o.useElementRef("react-tiny-popover-scout",a),b=r.useCallback(function(e){var r,o,u=void 0===e?{}:e,a=u.positionIndex,f=void 0===a?0:a,T=u.parentRect,S=void 0===T?l.getBoundingClientRect():T,I=u.childRect,R=void 0===I?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():I,C=u.scoutRect,x=void 0===C?null===(o=null==_?void 0:_.current)||void 0===o?void 0:o.getBoundingClientRect():C,O=u.popoverRect,w=void 0===O?g.current.getBoundingClientRect():O,M=u.boundaryRect,E=void 0===M?y===l?S:y.getBoundingClientRect():M;if(R&&S&&t){if(p){var k="function"==typeof p?p({childRect:R,popoverRect:w,parentRect:S,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,P=k.top,F=k.left,L=Math.round(S.left+F-x.left),W=Math.round(S.top+P-x.top);g.current.style.transform="translate("+L+"px, "+W+"px)",v({childRect:R,popoverRect:w,parentRect:S,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var D=f===c.length,N=D?c[0]:c[f],A=i.getNewPopoverRect({childRect:R,popoverRect:w,boundaryRect:E,position:N,align:d,padding:s,reposition:m},h),U=A.rect;if(A.boundaryViolation&&m&&!D){b({positionIndex:f+1,childRect:R,popoverRect:w,parentRect:S,boundaryRect:E});return}var j=U.top,q=U.left,G=U.width,Y=U.height,K=m&&!D,V=i.getNudgedPopoverRect(U,E,h),B=V.left,H=V.top,z=j,X=q;K&&(z=H,X=B),z=Math.round(z-x.top),X=Math.round(X-x.left),g.current.style.transform="translate("+X+"px, "+z+"px)";var $={top:E.top+h-z,left:E.left+h-X,right:X+G-E.right+h,bottom:z+Y-E.bottom+h};v({childRect:R,popoverRect:{top:z,left:X,width:G,height:Y,right:X+G,bottom:z+Y},parentRect:S,boundaryRect:E,position:N,align:d,padding:s,nudgedTop:H-j,nudgedLeft:B-q,boundaryInset:h,violations:{top:$.top<=0?0:$.top,left:$.left<=0?0:$.left,right:$.right<=0?0:$.right,bottom:$.bottom<=0?0:$.bottom},hasViolations:$.top>0||$.left>0||$.right>0||$.bottom>0})}},[l,n,_,g,y,t,p,c,d,s,m,h,v]);return{positionPopover:b,popoverRef:g,scoutRef:_}}},27574:function(e,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(e,t){return e===t||(null==e?void 0:e.bottom)===(null==t?void 0:t.bottom)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.left)===(null==t?void 0:t.left)&&(null==e?void 0:e.right)===(null==t?void 0:t.right)&&(null==e?void 0:e.top)===(null==t?void 0:t.top)&&(null==e?void 0:e.width)===(null==t?void 0:t.width)},t.createContainer=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n},t.popoverRectForPosition=function(e,t,n,r,i){var o,u,a=t.left+t.width/2,c=t.top+t.height/2,f=n.width,l=n.height;switch(e){case"left":o=c-l/2,u=t.left-r-f,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;case"bottom":o=t.bottom+r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f);break;case"right":o=c-l/2,u=t.right+r,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;default:o=t.top-l-r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f)}return{top:o,left:u,width:f,height:l,right:u+f,bottom:o+l}},t.getNewPopoverRect=function(e,n){var r=e.position,i=e.align,o=e.childRect,u=e.popoverRect,a=e.boundaryRect,c=e.padding,f=e.reposition,l=t.popoverRectForPosition(r,o,u,c,i),p=f&&("top"===r&&l.top<a.top+n||"left"===r&&l.left<a.left+n||"right"===r&&l.right>a.right-n||"bottom"===r&&l.bottom>a.bottom-n);return{rect:l,boundaryViolation:p}},t.getNudgedPopoverRect=function(e,t,n){var r=t.top+n,i=t.left+n,o=t.right-n,u=t.bottom-n,a=e.top<r?r:e.top;a=a+e.height>u?u-e.height:a;var c=e.left<i?i:e.left;return{top:a,left:c=c+e.width>o?o-e.width:c,width:e.width,height:e.height,right:c+e.width,bottom:a+e.height}}},80734:function(e,t,n){var r,i=n(1710);function o(e){if(!Object.prototype.hasOwnProperty.call(u.message,e))throw Error("invalid status code: "+e);return u.message[e]}function u(e){if("number"==typeof e)return o(e);if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(u.code,t))throw Error('invalid status message: "'+e+'"');return u.code[t]}(e):o(t)}e.exports=u,u.message=i,u.code=(r={},Object.keys(i).forEach(function(e){var t=i[e],n=Number(e);r[t.toLowerCase()]=n}),r),u.codes=Object.keys(i).map(function(e){return Number(e)}),u.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},u.empty={204:!0,205:!0,304:!0},u.retry={502:!0,503:!0,504:!0}},60130:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.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 i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(n(27343)),i=d(n(46076)),o=d(n(85854)),u=d(n(95899)),a=d(n(15384)),c=d(n(25791)),f=d(n(77888)),l=d(n(49926)),p=d(n(9964));function d(e){return e&&e.__esModule?e:{default:e}}},2763:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let n=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let t=0;t<e.length;t+=16){let n=i,d=f,s=l,m=p;i=o(i,f,l,p,e[t],7,-680876936),p=o(p,i,f,l,e[t+1],12,-389564586),l=o(l,p,i,f,e[t+2],17,606105819),f=o(f,l,p,i,e[t+3],22,-1044525330),i=o(i,f,l,p,e[t+4],7,-176418897),p=o(p,i,f,l,e[t+5],12,1200080426),l=o(l,p,i,f,e[t+6],17,-1473231341),f=o(f,l,p,i,e[t+7],22,-45705983),i=o(i,f,l,p,e[t+8],7,1770035416),p=o(p,i,f,l,e[t+9],12,-1958414417),l=o(l,p,i,f,e[t+10],17,-42063),f=o(f,l,p,i,e[t+11],22,-1990404162),i=o(i,f,l,p,e[t+12],7,1804603682),p=o(p,i,f,l,e[t+13],12,-40341101),l=o(l,p,i,f,e[t+14],17,-1502002290),f=o(f,l,p,i,e[t+15],22,1236535329),i=u(i,f,l,p,e[t+1],5,-165796510),p=u(p,i,f,l,e[t+6],9,-1069501632),l=u(l,p,i,f,e[t+11],14,643717713),f=u(f,l,p,i,e[t],20,-373897302),i=u(i,f,l,p,e[t+5],5,-701558691),p=u(p,i,f,l,e[t+10],9,38016083),l=u(l,p,i,f,e[t+15],14,-660478335),f=u(f,l,p,i,e[t+4],20,-405537848),i=u(i,f,l,p,e[t+9],5,568446438),p=u(p,i,f,l,e[t+14],9,-1019803690),l=u(l,p,i,f,e[t+3],14,-187363961),f=u(f,l,p,i,e[t+8],20,1163531501),i=u(i,f,l,p,e[t+13],5,-1444681467),p=u(p,i,f,l,e[t+2],9,-51403784),l=u(l,p,i,f,e[t+7],14,1735328473),f=u(f,l,p,i,e[t+12],20,-1926607734),i=a(i,f,l,p,e[t+5],4,-378558),p=a(p,i,f,l,e[t+8],11,-2022574463),l=a(l,p,i,f,e[t+11],16,1839030562),f=a(f,l,p,i,e[t+14],23,-35309556),i=a(i,f,l,p,e[t+1],4,-1530992060),p=a(p,i,f,l,e[t+4],11,1272893353),l=a(l,p,i,f,e[t+7],16,-155497632),f=a(f,l,p,i,e[t+10],23,-1094730640),i=a(i,f,l,p,e[t+13],4,681279174),p=a(p,i,f,l,e[t],11,-358537222),l=a(l,p,i,f,e[t+3],16,-722521979),f=a(f,l,p,i,e[t+6],23,76029189),i=a(i,f,l,p,e[t+9],4,-640364487),p=a(p,i,f,l,e[t+12],11,-421815835),l=a(l,p,i,f,e[t+15],16,530742520),f=a(f,l,p,i,e[t+2],23,-995338651),i=c(i,f,l,p,e[t],6,-198630844),p=c(p,i,f,l,e[t+7],10,1126891415),l=c(l,p,i,f,e[t+14],15,-1416354905),f=c(f,l,p,i,e[t+5],21,-57434055),i=c(i,f,l,p,e[t+12],6,1700485571),p=c(p,i,f,l,e[t+3],10,-1894986606),l=c(l,p,i,f,e[t+10],15,-1051523),f=c(f,l,p,i,e[t+1],21,-2054922799),i=c(i,f,l,p,e[t+8],6,1873313359),p=c(p,i,f,l,e[t+15],10,-30611744),l=c(l,p,i,f,e[t+6],15,-1560198380),f=c(f,l,p,i,e[t+13],21,1309151649),i=c(i,f,l,p,e[t+4],6,-145523070),p=c(p,i,f,l,e[t+11],10,-1120210379),l=c(l,p,i,f,e[t+2],15,718787259),f=c(f,l,p,i,e[t+9],21,-343485551),i=r(i,n),f=r(f,d),l=r(l,s),p=r(p,m)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},74267:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},15384:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9964:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888))&&r.__esModule?r:{default:r};t.default=function(e){let t;if(!(0,i.default)(e))throw TypeError("Invalid UUID");let n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},76678:function(e,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(e,t){let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="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 n(r)};let r=new Uint8Array(16)},13254:function(e,t){function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let i=Math.ceil((e.length/4+2)/16),o=Array(i);for(let t=0;t<i;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];o[t]=n}o[i-1][14]=(e.length-1)*8/4294967296,o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<i;++e){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=o[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let u=r[0],a=r[1],c=r[2],f=r[3],l=r[4];for(let e=0;e<80;++e){let r=Math.floor(e/20),o=n(u,5)+function(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}(r,a,c,f)+l+t[r]+i[e]>>>0;l=f,f=c,c=n(a,30)>>>0,a=u,u=o}r[0]=r[0]+u>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>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(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=u;var r,i=(r=n(77888))&&r.__esModule?r:{default:r};let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function u(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}t.default=function(e,t=0){let n=u(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}},27343:function(e,t,n){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,u=(o=n(41874))&&o.__esModule?o:{default:o},a=n(49926);let c=0,f=0;t.default=function(e,t,n){let o=t&&n||0,l=t||Array(16),p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==d){let t=e.random||(e.rng||u.default)();null==p&&(p=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=i=(t[6]<<8|t[7])&16383)}let s=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,h=s-c+(m-f)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||s>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=s,f=m,i=d;let y=((268435455&(s+=122192928e5))*1e4+m)%4294967296;l[o++]=y>>>24&255,l[o++]=y>>>16&255,l[o++]=y>>>8&255,l[o++]=255&y;let v=s/4294967296*1e4&268435455;l[o++]=v>>>8&255,l[o++]=255&v,l[o++]=v>>>24&15|16,l[o++]=v>>>16&255,l[o++]=d>>>8|128,l[o++]=255&d;for(let e=0;e<6;++e)l[o+e]=p[e];return t||(0,a.unsafeStringify)(l)}},46076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(2763));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},18679:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let e=0;e<16;++e)u[a+e]=f[e];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(e){}return r.DNS=u,r.URL=a,r};var r,i=n(49926),o=(r=n(9964))&&r.__esModule?r:{default:r};let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},85854:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(74267)),i=u(n(41874)),o=n(49926);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();let u=(e=e||{}).random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=u[e];return t}return(0,o.unsafeStringify)(u)}},95899:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(13254));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},77888:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(76678))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},25791:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},16:function(e,t,n){n.d(t,{SH:function(){return V}}),(r=o||(o={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=u||(u={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,o,u,a,c,f,l,p,d=n(80734);(a||(a={})).Connect="connect",(c||(c={})).Ready="ready";var s=Object.defineProperty,m=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t,n)=>(m(e,"symbol"!=typeof t?t+"":t,n),n);class y extends Error{constructor(e){super(e.msg),h(this,"response"),this.response=e}}class v extends Error{constructor(){super("Connection timed out")}}class g extends Error{constructor(e){super("Too many concurrent requests"),h(this,"request"),this.request=e}}class _ extends Error{constructor(e){super(`Request \`${e.requestID}\` timed out`),h(this,"request"),this.request=e}}class b extends Error{}class T extends Error{constructor(){super("Port is not set")}}class S extends Error{constructor(){super("Channel is not set")}}let I=0,R=(e,t,n="")=>({requestID:`${n}${I++}`,type:e,data:t}),C=(e,t,n=200)=>{var r;if(n>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=d.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},x=(e,t,n=400)=>{var r;if(n<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=d.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},O=e=>{if("object"!=typeof e||null===e)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof e}\``);if(Object.keys(e).every(e=>["requestID","type","data","status","msg","error"].includes(e))){if("string"!=typeof e.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof e.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(e)}`);return e},w=e=>"type"in e,M=e=>!("type"in e),E=e=>M(e)&&!("error"in e);var k=Object.defineProperty,P=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t,n)=>(P(e,"symbol"!=typeof t?t+"":t,n),n);let L={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class W{constructor(e,t){F(this,"requestHandlers"),F(this,"options"),F(this,"_port",null),F(this,"_pendingRequests",new Map),this.requestHandlers=e,this.options={...L,...t}}get port(){if(!this._port)throw new T;return this._port}set port(e){this._port&&(this._port.onmessage=null),this._port=e,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(e,t){return R(e,t,this.options.requestIDPrefix)}async onMessage(e){this.options.debug&&console.debug(e.data);try{let t=O(e.data);if(w(t)){if(this.requestHandlers[t.type])try{let e=await this.requestHandlers[t.type](t,{success:C.bind(this,t.requestID),error:x.bind(this,t.requestID)});this.postResponse(e)}catch(e){this.postResponse(x(t.requestID,e,500))}else this.postResponse(x(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(e){if(e instanceof TypeError)console.warn(e.message);else throw e}}postRequest(e,t=e=>this.port.postMessage(e),n={}){if(this.options.debug&&console.debug(e),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new g(e);return new Promise((r,i)=>{let o=setTimeout(()=>{this._pendingRequests.has(e.requestID)&&this._pendingRequests.delete(e.requestID),i(new _(e))},n.timeout||this.options.defaultTimeout);this._pendingRequests.set(e.requestID,e=>{clearTimeout(o),E(e)?r(e):i(new y(e))}),t(e)})}postResponse(e,t=e=>this.port.postMessage(e)){return this.options.debug&&console.debug(e),t(e),e}}var D=Object.defineProperty,N=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>(N(e,"symbol"!=typeof t?t+"":t,n),n);let U={connectTimeout:2e4,requestIDPrefix:"emitter-"};class j extends W{constructor(e,t,n){super(t,{...U,...n}),A(this,"_target"),A(this,"_channel",null),A(this,"_receiverReady",""),A(this,"_receiverReadyCallback",null),A(this,"_connected",!1),this._target=e,window.addEventListener("message",e=>{this._onPublicMessage(e)})}get channel(){if(!this._channel)throw new S;return this._channel}set channel(e){this._channel=e,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(e={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,n)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return n(Error("Target window is not available"));let r=setTimeout(()=>{n(new v)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let n=this.createRequestMessage(a.Connect,e),i=await this.postRequest(n,e=>{this._target.contentWindow.postMessage(e,"*",[this.channel.port2])});this.postResponse(C(this._receiverReady,void 0),e=>{this._target.contentWindow.postMessage(e,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(e){if(e.source===this._target.contentWindow)try{let t=O(e.data);if(w(t)){if(this.options.debug&&console.debug(e.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let e=this._receiverReadyCallback();this._receiverReadyCallback=null,await e}}else this.postResponse(x(t.requestID,void 0),t=>{e.source.postMessage(t,e.origin)})}}catch(e){if(e instanceof TypeError);else throw e}}postFormattedRequest(e,t,n={}){if(!this._connected)throw new b("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(e,t),void 0,n)}}var q=Object.defineProperty,G=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>(G(e,"symbol"!=typeof t?t+"":t,n),n);let K={requestIDPrefix:"client-"};class V extends j{constructor(e,t,n){var r,i;let a=(null==n?void 0:n.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(e,{[o.SetActiveSlice]:(e,t)=>t.success(),[o.SetSliceZoneSize]:(e,t)=>t.success(),...t},{...K,...n,debug:a}),Y(this,f,async()=>await this.postFormattedRequest(u.Ping)),Y(this,l,async e=>await this.postFormattedRequest(u.SetSliceZone,e)),Y(this,p,async e=>await this.postFormattedRequest(u.ScrollToSlice,e)),a&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(i=window.prismic.sliceSimulator).client||(i.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=u.Ping,l=u.SetSliceZone,p=u.ScrollToSlice,o.SetActiveSlice,o.SetSliceZoneSize},25865:function(e,t,n){n.d(t,{S:function(){return m}});var r=n(78298),i=n(681),o=n(21895),u=n(63248),a=class extends u.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let o=t.queryKey,u=t.queryHash??(0,r.Rm)(o,t),a=this.get(u);return a||(a=new i.A({cache:this,queryKey:o,queryHash:u,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(80457),f=class extends u.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#n=Date.now()}#t;#n;build(e,t,n){let r=new c.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=l(e),n=this.#t.get(t)??[];n.push(e),this.#t.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=l(e);if(this.#t.has(t)){let n=this.#t.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#t.delete(t):this.#t.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(l(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(l(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function l(e){return e.options.scope?.id??String(e.mutationId)}var p=n(25777),d=n(63965);function s(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var m=class{#r;#i;#o;#u;#a;#c;#f;#l;constructor(e={}){this.#r=e.queryCache||new a,this.#i=e.mutationCache||new f,this.#o=e.defaultOptions||{},this.#u=new Map,this.#a=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#f=p.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=d.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#f?.(),this.#f=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),i=this.#r.build(this,n);return e.revalidateIfStale&&i.isStaleByTime((0,r.KC)(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#r.get(i.queryHash),u=o?.state.data,a=(0,r.SE)(t,u);if(void 0!==a)return this.#r.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r,r={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return o.V.batch(()=>{if(this.#r.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let i=async()=>{let n;let i=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,u=e.state.data?.pages||[],a=e.state.data?.pageParams||[],c=!1,f=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},l=(0,r.cG)(e.options,e.fetchOptions),p=async(t,n,i)=>{if(c)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,direction:i?"backward":"forward",meta:e.options.meta};f(o);let u=await l(o),{maxPages:a}=e.options,p=i?r.Ht:r.VX;return{pages:p(t.pages,u,a),pageParams:p(t.pageParams,n,a)}};if(o&&u.length){let e="backward"===o,t={pages:u,pageParams:a},r=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:s)(i,t);n=await p(t,r,e)}else{n=await p({pages:[],pageParams:[]},a[0]??i.initialPageParam);let e=t??u.length;for(let t=1;t<e;t++){let e=s(i,n);if(null==e)break;n=await p(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=i}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return d.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#i}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#u.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#u.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#a.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#a.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_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(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#i.clear()}}},19108:function(e){e.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>&#39;s thoughts on Gatsby&#39;s success and how they&#39;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>&mdash; 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&amp;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>&mdash; 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&#39;re launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&amp;ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow&#39;s Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can&#39;t tell you any further details for now, but here&#39;s a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>&mdash; 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 &#39;Wall Street Bets&#39; using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&amp;ref_src=twsrc%5Etfw\\">#reddit</a> and we won&#39;t make it private.<br><br>Just asking for some friends...</p>&mdash; 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"}}]')},88416:function(e){e.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}}]')},15542:function(e){e.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}]')},93953:function(e){e.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"]')},83777:function(e){e.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(e){e.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"}')}}]);