slice-machine-ui 2.7.2-beta.2 → 2.8.0

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.
Files changed (75) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/NHNPoIm5ZybAGepO-LVh5/_buildManifest.js +1 -0
  3. package/out/_next/static/chunks/{150-84da9b485587e8c4.js → 150-96a0c443c430ec4b.js} +1 -1
  4. package/out/_next/static/chunks/18539003-9b393c900c89e552.js +22 -0
  5. package/out/_next/static/chunks/372-cfee53700e416e09.js +1 -0
  6. package/out/_next/static/chunks/441-76bd8e7cf8cc22da.js +12 -0
  7. package/out/_next/static/chunks/588-d017e0fe2a651a87.js +1 -0
  8. package/out/_next/static/chunks/{918-38ab72e6ee071fec.js → 591-a272f15a4bf9830a.js} +2 -2
  9. package/out/_next/static/chunks/{479-6205c85aa978fc0b.js → 627-092c9e4c99442c08.js} +2 -2
  10. package/out/_next/static/chunks/750-aa35f21031ee1f96.js +1 -0
  11. package/out/_next/static/chunks/{772-58d0c8f8ae1c6791.js → 772-db5f72095641ec1d.js} +1 -1
  12. package/out/_next/static/chunks/{882-1ccb9dbd9bd4734b.js → 882-32959ffa63fa455c.js} +1 -1
  13. package/out/_next/static/chunks/pages/{_app-8405076cd58a41f0.js → _app-51bef5d3c62d085e.js} +156 -154
  14. package/out/_next/static/chunks/pages/{changelog-f9055af0d38a0c24.js → changelog-86f30b15d852e710.js} +1 -1
  15. package/out/_next/static/chunks/pages/changes-6c05ef623617785e.js +1 -0
  16. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-2eb64c9ea82fcd0a.js → [customTypeId]-fd2416081ef2ffca.js} +1 -1
  17. package/out/_next/static/chunks/pages/{custom-types-ddc20cfdd8049c04.js → custom-types-5de2dd7b9b93236e.js} +1 -1
  18. package/out/_next/static/chunks/pages/{index-17f953c11b46cb20.js → index-2d7f95201a656c12.js} +1 -1
  19. package/out/_next/static/chunks/pages/{labs-867606e5aff179cd.js → labs-81cf5c5f09fa0bda.js} +1 -1
  20. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-e5a5e6b345081e0a.js → [pageTypeId]-59e143620505f73f.js} +1 -1
  21. package/out/_next/static/chunks/pages/settings-80e0d6f1c79282d3.js +1 -0
  22. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-783b6577bd4e3728.js → simulator-908e779f6d24760d.js} +1 -1
  23. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-0b6162eb591ee324.js +1 -0
  24. package/out/_next/static/chunks/pages/{slices-0f6e50acfb5957ed.js → slices-317ec2bd3451566e.js} +1 -1
  25. package/out/_next/static/css/{22103e0fe77e9b53.css → 4e475d945cf8a890.css} +1 -1
  26. package/out/_next/static/css/850c81be38195a0f.css +1 -0
  27. package/out/_next/static/css/{00e9fba6d8022425.css → 9d17b7d9f44c5c5d.css} +1 -1
  28. package/out/_next/static/css/{cc20f7c46912c5dc.css → e5c7f63f02ff4d0f.css} +1 -1
  29. package/out/_next/static/css/{7f2ebc8f03a13272.css → e5f781f20e24a5ea.css} +1 -1
  30. package/out/changelog.html +1 -1
  31. package/out/changes.html +1 -1
  32. package/out/custom-types/[customTypeId].html +1 -1
  33. package/out/custom-types.html +1 -1
  34. package/out/index.html +1 -1
  35. package/out/labs.html +1 -1
  36. package/out/page-types/[pageTypeId].html +1 -1
  37. package/out/settings.html +1 -1
  38. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  39. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  40. package/out/slices.html +1 -1
  41. package/package.json +9 -10
  42. package/src/components/BlankSlate/BlankSlate.module.css +0 -10
  43. package/src/components/BlankSlate/BlankSlate.module.css.d.ts +0 -1
  44. package/src/components/BlankSlate/BlankSlate.tsx +2 -2
  45. package/src/components/Breadcrumb/Breadcrumb.module.css +0 -4
  46. package/src/components/Breadcrumb/Breadcrumb.module.css.d.ts +0 -1
  47. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -2
  48. package/src/components/ContentTabs/ContentTabs.tsx +2 -1
  49. package/src/components/FieldSet/FieldSet.module.css +0 -8
  50. package/src/components/FieldSet/FieldSet.module.css.d.ts +0 -2
  51. package/src/components/FieldSet/FieldSet.tsx +2 -7
  52. package/src/components/SideNav/SideNavEnvironmentSelector.tsx +2 -1
  53. package/src/features/builder/AddFieldDropdown.tsx +1 -1
  54. package/src/features/documentation/MarkdownRenderer/index.tsx +4 -2
  55. package/src/features/onboarding/OnboardingProgressStepper.tsx +2 -1
  56. package/src/features/sync/components/AutoSyncStatusIndicator.tsx +5 -1
  57. package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +3 -0
  58. package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +3 -0
  59. package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +3 -0
  60. package/src/legacy/lib/models/common/widgets/Link/Form.jsx +43 -3
  61. package/src/legacy/lib/models/common/widgets/Link/components.tsx +56 -0
  62. package/src/legacy/lib/models/common/widgets/Link/index.ts +8 -3
  63. package/src/legacy/lib/models/common/widgets/LinkToMedia/Form.jsx +14 -1
  64. package/src/legacy/lib/models/common/widgets/LinkToMedia/index.ts +1 -0
  65. package/out/_next/static/E30Hv5Nt7vNi3zj5fcpLn/_buildManifest.js +0 -1
  66. package/out/_next/static/chunks/18539003-080f6b8eec027936.js +0 -22
  67. package/out/_next/static/chunks/372-a86e2c479a721702.js +0 -1
  68. package/out/_next/static/chunks/441-126d623f1b578785.js +0 -12
  69. package/out/_next/static/chunks/50-586dc7ab5e584e76.js +0 -1
  70. package/out/_next/static/chunks/764-e040bcebe6027fea.js +0 -1
  71. package/out/_next/static/chunks/pages/changes-72a49635f1ee5057.js +0 -1
  72. package/out/_next/static/chunks/pages/settings-0edb6f6c78439c20.js +0 -1
  73. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-68074c174d83cf1e.js +0 -1
  74. package/out/_next/static/css/34067e4b880866ca.css +0 -1
  75. /package/out/_next/static/{E30Hv5Nt7vNi3zj5fcpLn → NHNPoIm5ZybAGepO-LVh5}/_ssgManifest.js +0 -0
@@ -0,0 +1,12 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[441],{15952:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),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.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 g=(u[t.groupLangId]||[]).filter(e=>e.id!==t.id).map(e=>p(e)),v=((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:g,data:v,...c?t.metadata:{}}},renderWidgetV1:d(e),renderWidgetV2:s(e),renderV2:(t,n,r,o,u,c,f,d,h,y)=>{var g,v;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!==(g=n.data.uid)&&void 0!==g?g:null,url:null!==(v=e.LinkResolver.buildUrl({linkResolver:h,pageType:n.type,masterLang:r,brokenRoute:d,doc:n}))&&void 0!==v?v: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(87783);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(87783),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(87783).__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(87783),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(87783).__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(87783),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(87783),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(87783),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(87783).__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(87783);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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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});t.AnyLinkDef=new u.Type("AnyLinkDef",e=>"any"===e.select,e=>(0,o.pipe)(a.decode(e),i.either.map(e=>({select:null,allowText:e.allowText}))),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(87783).__importStar(n(87830));t.DocumentLinkDef=r.intersection([r.strict({select:r.literal("document"),customtypes:r.readonlyArray(r.string)}),r.partial({allowText:r.boolean})]),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(87783).__importStar(n(87830));t.MediaLinkDef=r.intersection([r.strict({select:r.literal("media")}),r.partial({allowText:r.boolean})]),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(87783).__importStar(n(87830));t.WebLinkDef=r.intersection([r.strict({select:r.literal("web")}),r.partial({allowText:r.boolean})]),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(87783),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(87783).__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),g=n(24698),v=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,v.TimestampDef,p.LinkDef])},56156:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=n(87783),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(87783),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(87783),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(87783),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(87783),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)},24698:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=n(87783),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(87783),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(87783);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(24698),t),r.__exportStar(n(49437),t)},3094:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=n(87783),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(87783),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(87783),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(87783).__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(87783),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(87783);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(87783);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(87783).__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(87783);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(87783),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(87783).__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(87783).__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):{}})})},65082:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),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 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 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 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 return null}})},12706:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(16211),o=n(71659),u=n(621),a=r.__importDefault(n(937)),c=r.__importDefault(n(65082));function f(e){return void 0!==e&&e.TYPE===o.GroupType?e:void 0}function l(e){return void 0!==e&&e.TYPE!==o.GroupType?e:void 0}t.default=e=>(0,u.withObjectRenderers)({renderV1:(t,n)=>(0,i.isGroupContent)(t)?(0,a.default)(e).renderV1(t,f(n)):(0,c.default)(e).renderV1(t,l(n)),renderV2(t,n,r){return"Group"!==t.type&&(0,i.isNestableContent)(n)?(0,c.default)(e).renderV2(t,n,l(r)):"Group"===t.type&&(0,i.isGroupContent)(n)?(0,a.default)(e).renderV2(t,n,f(r)):this.renderDefault(t)},renderDefault:t=>"Group"===t.type?(0,a.default)(e).renderDefault(t):(0,c.default)(e).renderDefault(t),renderMocks(t,n){return(0,i.isNestableContent)(n)&&"Group"!==t.type?(0,c.default)(e).renderMocks(t,n):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,a.default)(e).renderMocks(t,n):this.renderDefault(t)}})},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(87783);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=>({renderV1(t){try{return{type:"IntegrationFields",value:e.Extension.encoders.integrationFields.encode(t.value)}}catch(e){return{value:{}}}},renderV2(t,n){try{return e.Extension.encoders.integrationFields.encode(n.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=>({type:"Link.any",value:{...e.text&&{text:e.text}}}),renderV2:(e,t)=>({link_type:"Any",...e.allowText&&t.text&&{text:t.text}}),renderMocks(e,t){return this.renderV2(e,t)}}},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{...r.FilledDocumentLinkContent.is(e)&&{id:e.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...n.allowText&&e.text&&{text:e.text}}}t.BROKEN_CUSTOM_TYPE="broken_type",t.default=e=>({renderV1(n,i){try{if(r.FilledDocumentLinkContent.is(n)){let t=e.Extension.DocEncoder.encodeDocId(n.id,null==i?void 0:i.uuid,[n.text]);return{type:"Link.document",value:e.Extension.encoders.documentLinks.encode(t)}}return{type:"Link.document",value:{...n.text&&{text:n.text}}}}catch(e){return{type:"Link.document",value:{...r.FilledDocumentLinkContent.is(n)&&{id:n.id,tags:[]},type:t.BROKEN_CUSTOM_TYPE,isBroken:!0,...n.text&&{text:n.text}}}}},renderV2(t,n,i){try{let o=t.allowText?n.text:void 0;if(r.FilledDocumentLinkContent.is(n)){let t=e.Extension.DocEncoder.encodeDocId(n.id,null==i?void 0:i.uuid,[o]);return e.Extension.encoders.documentLinks.encode(t)}return{link_type:"Document",...o&&{text:o}}}catch(e){return o(n,t)}},renderMocks(e,t){if(r.FilledDocumentLinkContent.is(t)){let n=i.DocumentLinkDef.is(e)&&e.customtypes[0]||"mock";return{id:t.id,...e.allowText&&t.text&&{text:t.text},link_type:"Document",type:n,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}return o(t,e)}})},15802:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16211);t.default={renderV1:e=>({type:"Link.web",value:{...r.FilledExternalLinkContent.is(e)&&{url:e.url,..."string"==typeof e.target&&{target:e.target}},...e.text&&{text:e.text}}}),renderV2:(e,t)=>({link_type:"Web",...r.FilledExternalLinkContent.is(t)&&{url:t.url,..."string"==typeof t.target&&{target:t.target}},...e.allowText&&t.text&&{text:t.text}}),renderMocks(e,t){return this.renderV2(e,t)}}},50632:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16211);t.default=e=>({renderV1:t=>({type:"Link.file",value:{file:{kind:t.kind,...r.FilledFileLinkContent.is(t)&&{url:e.urlRewriter.rewriteFileUrl(t.url),name:t.name,size:t.size},...t.text&&{text:t.text}}}}),renderV2:(t,n)=>({link_type:"Media",kind:n.kind,...r.FilledFileLinkContent.is(n)&&{id:n.id,url:e.urlRewriter.rewriteFileUrl(n.url),name:n.name,size:n.size},...t.allowText&&n.text&&{text:n.text}}),renderMocks(e,t){return this.renderV2(e,t)}})},83434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16211);t.default=e=>({renderV1:t=>({type:"Link.image",value:{image:{kind:t.kind,...r.FilledImageLinkContent.is(t)&&{id:t.id,url:e.urlRewriter.optimizeImageUrl(t.url),name:t.name,size:t.size,width:t.width,height:t.height},...t.text&&{text:t.text}}}}),renderV2:(t,n)=>({link_type:"Media",kind:n.kind,...r.FilledImageLinkContent.is(n)&&{id:n.id,url:e.urlRewriter.optimizeImageUrl(n.url),name:n.name,size:n.size,width:n.width,height:n.height},...t.allowText&&n.text&&{text:n.text}}),renderMocks(e,t){return this.renderV2(e,t)}})},1666:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Link.media",value:{...e.text&&{text:e.text}}}),renderV2:(e,t)=>({link_type:"Media",...e.allowText&&t.text&&{text:t.text}}),renderMocks(e,t){return this.renderV2(e,t)}}},57777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=n(87783),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){if("ImageLink"===t.value.__TYPE__)return(0,f.default)(e).renderV1(t.value);if("DocumentLink"===t.value.__TYPE__)return(0,u.default)(e).renderV1(t.value,n);if("FileLink"===t.value.__TYPE__)return(0,c.default)(e).renderV1(t.value);if("ExternalLink"===t.value.__TYPE__)return a.default.renderV1(t.value);if("MediaLink"===t.value.__TYPE__)return l.default.renderV1(t.value);if("AnyLink"===t.value.__TYPE__)return o.default.renderV1(t.value);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,n,r){return((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ImageLink"===n.value.__TYPE__?(0,f.default)(e).renderV2(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,u.default)(e).renderV2(t.config,n.value,r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,c.default)(e).renderV2(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?a.default.renderV2(t.config,n.value):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"MediaLink"===n.value.__TYPE__?l.default.renderV2(t.config,n.value):(0,i.isAnyLinkDef)(t)&&"AnyLink"===n.value.__TYPE__?o.default.renderV2(t.config,n.value):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){return((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ImageLink"===n.value.__TYPE__?(0,f.default)(e).renderMocks(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,u.default)(e).renderMocks(t.config,n.value):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,c.default)(e).renderMocks(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?a.default.renderMocks(t.config,n.value):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"MediaLink"===n.value.__TYPE__?l.default.renderMocks(t.config,n.value):(0,i.isAnyLinkDef)(t)&&"AnyLink"===n.value.__TYPE__?o.default.renderMocks(t.config,n.value):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(87783),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):t===u.ApiVersion.v2?(0,f.default)(n).renderV2((0,a.defaultLink)(l(e)),e,void 0):t===u.ApiVersion.mocks?(0,f.default)(n).renderMocks((0,a.defaultLink)(l(e)),e):void 0}t.default=e=>({renderBlock:t=>n=>{if((0,i.checkImageBlock)(t)){let r=t.data.linkTo?{linkTo:p({__TYPE__:"LinkContent",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(87783),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))})},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.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}})},24485:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),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(87783).__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(87783),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(87783),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(87783),i=n(16211),o=n(42275),u=n(92425),a=r.__importStar(n(20492)),c=n(81681),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(87783).__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(87783);(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(87783),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(35264);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 g({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);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 v(e,t){let n=l.StaticCustomType.is(t)?y(t):t;return Object.values((0,l.collectSharedSlices)(n)).some(e=>!!e.legacyPaths)?g({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:v(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=g,t.collectWidgets=function(e,t){let n={};return g({document:e})({transformWidget:({content:e,path:r})=>{let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=v},35264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,n(87783).__importStar)(n(87830)),i=n(54249);t.FieldOrSliceType=r.union([i.FieldType,i.SlicesTypes]);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(87783),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(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(96742),f=n(35264),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=t.GroupContent.is,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 f=null==n?void 0:n[r];return(a=f&&(null==f?void 0:f.type)!==c.GroupFieldType||o.__TYPE__!==t.GroupContentType?i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:o}):m({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:o})(i))&&((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(87783),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(87783).__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(87783);(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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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=u.intersection([u.strict({kind:u.string,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}))]),d=new u.Type("FilledImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.FilledImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.FilledImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p]);let s=u.union([u.intersection([p,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("image"),text:u.string})]),m=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>s.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),s]),t.FileLinkType="FileLink";let h=u.exact(u.intersection([u.type({kind:u.string,id:u.string,url:u.string,name:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:c.StringOrNull})])),y=new u.Type("FilledFileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.FilledFileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>h.encode(e));t.FilledFileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),h]);let g=u.union([u.intersection([h,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("file"),text:u.string})]),v=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(g.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>g.encode(e));t.FileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),g]),t.MediaLinkType="MediaLink";let _=u.strict({kind:u.literal("media"),text:u.string}),b=new u.Type("MediaLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.MediaLinkType,e=>(0,o.pipe)(_.decode(e),i.either.map(e=>t.MediaLinkContent.encode({...e,__TYPE__:t.MediaLinkType}))),e=>_.encode(e));t.MediaLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.MediaLinkType)}),_]),t.DocumentLinkType="DocumentLink";let S=u.strict({id:c.NonEmptyString}),T=new u.Type("FilledDocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(S.decode(e),i.either.map(e=>t.FilledDocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>S.encode(e));t.FilledDocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),S]);let I=u.union([u.intersection([S,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("document"),text:u.string})]),w=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(I.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>I.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),I]),t.ExternalLinkType="ExternalLink";let x=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}))})])),R=new u.Type("FilledExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(x.decode(e),i.either.map(e=>t.FilledExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>x.encode(e));t.FilledExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),x]);let O=u.union([u.intersection([x,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("web"),text:u.string})]),C=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(O.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>O.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),O]),t.AnyLinkType="AnyLink";let M=u.strict({text:u.string}),E=new u.Type("AnyLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.AnyLinkType,e=>(0,o.pipe)(M.decode(e),i.either.map(e=>t.AnyLinkContent.encode({...e,__TYPE__:t.AnyLinkType}))),e=>M.encode(e));t.AnyLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.AnyLinkType)}),M]),t.LinkContentType="LinkContent",t.isLinkContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.LinkLegacy=u.union([m,v,w,C,b,E]),t.LinkContentLegacy=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}})),t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=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([d,y,T,R]),t.FilledLinkContentLegacy=e=>new u.Type("FilledLinkLegacy",t.isFilledLinkContent,e=>(0,o.pipe)(t.FilledLinkLegacy.decode(e),i.either.map(e=>t.FilledLinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.FilledLinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}})),t.FilledLink=u.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=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(87783),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(29474),y=n(93783);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,h.RichTextContent,y.SeparatorContent]),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,h.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,y.isSeparatorContent)(e)||(0,u.isEmptyContent)(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,h.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,y.SeparatorLegacy)(e);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 h.RichTextContentType:return(0,h.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 y.SeparatorContentType:return(0,y.SeparatorLegacy)(e).encode(t);default:return}}})},3110:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=n(87783),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")}),g=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,g]),t.SpanLegacy=a.union([h(m.FilledLinkLegacy),y,g]),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 v=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=v(m.FilledLink);let _=v(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})])),S=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 T=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=T(t.Span);let I=T(t.SpanLegacy),w=a.union([S,_,I]);t.BlockLegacy=new a.Type("BlockLegacy",e=>S.is(e)||_.is(e)||I.is(e),e=>w.decode(e),e=>t.ImageBlock.is(e)?_.encode(e):t.EmbedBlock.is(e)?S.encode(e):I.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.isRichTextContent=t.RichTextContentType=void 0;let r=n(87783),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;let f=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)(f.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:f.encode(t.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(87783).__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)})},12750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);(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(29474),t),(0,r.__exportStar)(n(93783),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(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35264),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(87783).__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(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(96742),l=n(35264),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 g=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)(g.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.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(87783).__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(87783).__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(87783),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(87783),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(47320),f=n(35264),l=n(31952),p=n(12750),d=n(77184),s=n(77822),m=n(96865),h=n(914),y=n(463);function g(e){return(0,m.isCompositeSliceContent)(e.widget)}function v(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=g,t.isSimpleSliceItemContent=v,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})=>g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):v(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(87783),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(87783);(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(87783);(0,r.__exportStar)(n(48925),t),(0,r.__exportStar)(n(1645),t),(0,r.__exportStar)(n(35264),t)},72186:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(1645);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},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(87783),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(87783).__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"},14881: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(87783);(0,r.__exportStar)(n(10505),t),(0,r.__exportStar)(n(14881),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(87783);(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(87783).__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(87783).__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(87783).__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.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(87783);(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(87783).__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(87783).__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(87783).__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(87783).__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(87783).__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(87783),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(87783).__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(87783),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})),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(87783).__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),g=n(4575),v=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,g.Text,v.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(87783).__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(87783).__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(87783),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(87783).__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(87783).__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})]))},4575:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,n(87783).__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(87783).__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(87783);(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(4575),t),(0,r.__exportStar)(n(37842),t)},62291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),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(87783).__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(87783).__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(87783).__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(87783).__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(87783).__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(87783).__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(87783).__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(87783);(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(87783),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(87783);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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783),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(87783).__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(87783),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(87783).__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(87783).__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(87783),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(87783),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(87783).__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(87783),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(87783),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(87783);(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}})},81681: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(42104)),i=d(n(17564)),o=d(n(21105)),u=d(n(28331)),a=d(n(67565)),c=d(n(3341)),f=d(n(88087)),l=d(n(70507)),p=d(n(72333));function d(e){return e&&e.__esModule?e:{default:e}}},86243: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))}},49030: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}},67565:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},72333:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88087))&&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}},88403: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},93827: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)},39852: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]]}},70507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=u;var r,i=(r=n(88087))&&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}},42104:function(e,t,n){let r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,u=(o=n(93827))&&o.__esModule?o:{default:o},a=n(70507);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 g=s/4294967296*1e4&268435455;l[o++]=g>>>8&255,l[o++]=255&g,l[o++]=g>>>24&15|16,l[o++]=g>>>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)}},17564:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(37967)),i=o(n(86243));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},37967: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(70507),o=(r=n(72333))&&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},21105:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(49030)),i=u(n(93827)),o=n(70507);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)}},28331:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(37967)),i=o(n(39852));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},88087:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88403))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},3341:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88087))&&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)}},80832:function(e,t,n){function r(e,t){return e.filter((e,n)=>n!==t)}function i(e){return e[e.length-1]}function o(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return!n.has(r)&&(n.add(r),!0)})}function u(e,t,n){if(t===n||a(e,t)||a(e,n))return e;let r=e.slice(),i=r.splice(t,1)[0];return r.splice(n,0,i),r}function a(e,t){return t<0||t>=e.length}function c(e,t,n=1){return Array.from({length:(t-e)/n+1},(t,r)=>e+r*n)}function f(e,...t){let n=e.slice();return 0===t.length&&(t=[e=>e]),n.sort((e,n)=>{for(let r of t){let t=r(e),i=r(n);if(null==t)return 1;if(null==i)return -1;if("string"==typeof t&&"string"==typeof i){let e=t.localeCompare(i);if(0!==e)return e}else if("number"==typeof t&&"number"==typeof i){if(t<i)return -1;if(t>i)return 1}}return 0}),n}n.d(t,{$E:function(){return r},DY:function(){return f},Z$:function(){return i},mN:function(){return o},pB:function(){return u},w6:function(){return c}})},91493:function(e,t,n){function r(e){return e instanceof HTMLElement}n.d(t,{Re:function(){return r},Xb:function(){return i}});let i={isAvailable:()=>{let e="__$$__test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}},has:e=>!!i.read(e),read:e=>{try{return window.localStorage.getItem(e)??void 0}catch{return}},write:(e,t)=>{try{window.localStorage.setItem(e,t),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}catch{}},readJSON:(e,t)=>{try{let n=i.read(e);if(!n)return;let r=JSON.parse(n),o=t.safeParse(r);return o.success?o.data:void 0}catch{return}},subscribe:e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e))}},11232:function(e,t,n){function r(e){let t=new Date(e);return isNaN(t.getTime())?void 0:t}function i(e,t="en-US"){let n=new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric"}),r=new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}),i=n.format(e),o=r.format(e).toLocaleLowerCase();return`${i} ${o}`}n.d(t,{_L:function(){return i},_O:function(){return r}})},19245:function(e,t,n){n.d(t,{WY:function(){return i},xb:function(){return a}});var r=n(97867);async function i(e,t){let{okType:n,signal:i,headers:a,body:c,timeout:f=15e3,...l}=t,p=new Headers(a);!p.has("Content-Type")&&c&&p.set("Content-Type","application/json"),"multipart/form-data"===p.get("Content-Type")&&p.delete("Content-Type");let d=u();d&&p.set("Authorization",`Bearer ${d}`);let s="application/json"===p.get("Content-Type")?JSON.stringify(c):c,m=!1;try{let u=t.method&&"GET"!==t.method?void 0:new AbortController,a=function(e){let t=new AbortController;function n(){for(let r of(t.abort(),e))r.removeEventListener("abort",n)}for(let t of e){if(t.aborted){n();break}t.addEventListener("abort",n)}return t.signal}([null==u?void 0:u.signal,i].filter(r.$));u&&setTimeout(()=>{m=!0,u.abort()},f);let c=await fetch(e,{...l,body:s,headers:p,signal:a}),{status:d}=c,h=c.clone(),y=await c.json().catch(e=>h.text());if(c.ok){let t=n.safeParse(y);if(!t.success)throw new o(e,{type:"validation",status:d,cause:t.error});return t.data}throw new o(e,{type:"http",status:d,body:y})}catch(t){var h;throw t instanceof o?t:t instanceof DOMException&&"AbortError"===t.name?new o(e,{type:m?"timeout":"abort"}):new o(e,{type:"unknown",cause:t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:t,online:navigator.onLine,connectionType:null==(h=navigator.connection)?void 0:h.effectiveType})}}class o extends Error{constructor(e,t){super(JSON.stringify({url:e,...t},null,2)),this.detail=t,this.name="RequestError"}}let u=()=>"";function a(e){return"token"===e?"omit":"include"}},87248:function(e,t,n){n.d(t,{vM:function(){return r}});function r(e,t){let n=new Map,r=0;for(let i of e){let e=t(i,r++),o=n.get(e);o?o.push(i):n.set(e,[i])}return n}},59131:function(e,t,n){function r(e,t){let{min:n,max:r}=t;return void 0!==n&&e<n?n:void 0!==r&&e>r?r:e}n.d(t,{d:function(){return o},u:function(){return r}});let i=0;function o(){return i++}},34736:function(e,t,n){function r(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function i(e,...t){let n={...e};return t.forEach(e=>{delete n[e]}),n}function o(e){return Object.keys(e)}n.d(t,{Q8:function(){return r},XP:function(){return o},ud:function(){return i}})},32001:function(e,t,n){n.d(t,{$P:function(){return c},DX:function(){return l},NW:function(){return o},Nr:function(){return u},R9:function(){return i},Yz:function(){return p},pQ:function(){return a},vW:function(){return f}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useLayoutEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function o(){let[e,t]=(0,r.useState)({});return(0,r.useCallback)(()=>t({}),[])}function u(e,t,n){let i=(0,r.useRef)(!1);a(e,()=>{i.current=!0}),(0,r.useEffect)(()=>{if(!i.current)return;i.current=!1;let r=setTimeout(()=>n(e),t);return()=>clearTimeout(r)},[n,t,e])}function a(e,t){let[n,i]=(0,r.useState)(e);n!==e&&(i(e),t(e))}function c(e){let{ms:t=300,startTransition:n=e=>e(),synchronize:o=!1}=e,a=e.synchronize?e.state:e.initialState,[c,f]=(0,r.useState)(a),[l,p]=(0,r.useState)(a);return u(c,t,i(()=>n(()=>p(c)))),o&&c!==a&&f(a),{debouncedValue:l,set:f,value:c}}function f(e){(0,r.useEffect)(()=>{function t(){"hidden"!==document.visibilityState&&e()}return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)})}function l(e,t){return!!(e.current&&t instanceof Node)&&e.current.contains(t)}function p(e,t){let n=i(e);(0,r.useEffect)(()=>{if(null!==t){let e=setInterval(function(){n()},t);return()=>clearInterval(e)}return()=>{}},[t,n])}},34234:function(e,t,n){function r(e,t){for(let n of e)if(t(n))return!0;return!1}function i(e,t){let n=new Set;for(let r of e.values())n.add(t(r));return n}function o(e){let t=e.values().next();if(!t.done)return t.value}function u(...e){return e.reduce((e,t)=>new Set([...e,...t]),new Set)}function a(e,t){for(let n of e)if(t(n))return n}n.d(t,{G:function(){return r},G0:function(){return u},Ps:function(){return o},UI:function(){return i},sE:function(){return a}})},47304:function(e,t,n){n.d(t,{kC:function(){return i},td:function(){return function e(t){if(t<0)return`-${e(Math.abs(t))}`;if(1===t)return"1 byte";let n="bytes",i=[n,"KB","MB","GB","TB"],o=(0,r.u)(Math.floor(Math.log(t)/Math.log(1024)),{min:0,max:i.length-1}),u=i[o]??n;return`${(t/Math.pow(1024,o)).toFixed(0===o?0:2)} ${u}`}},tx:function(){return o}});var r=n(59131);function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){return e.length<=t?e:`${null==e?void 0:e.slice(0,t).trim()}...`}},65662:function(e,t,n){n.d(t,{Nk:function(){return v},Fs:function(){return h},gw:function(){return u},YC:function(){return c},NN:function(){return _},q_:function(){return a},QT:function(){return o}});var r=n(2784),i=n(32001);function o(e,t){var n;(function(e,t){let n=(0,i.NW)();(0,i.vW)(()=>{var r;let i=m.getFetcherConfig(e).revalidationStrategy;(null==i?void 0:i.type)!=="never"&&null!=i&&i.onFocus&&null!=(r=s(e,t))&&r.then(n).catch(()=>{})})})(e,t),d(e,function(n){return y(e,t)===y(e,n)}),function(e,t){let n=(0,r.useContext)(v);if(!n){console.warn("It is not recommended to use editor-support->Suspense without a editor-ui->ErrorBoundary above it.");return}n.registerRequest(e,t)}(e,t);let o=m.get(e,t);if(!o)throw function(e,t){let{promise:n,start:r}=l(e,t);return m.set(e,t,{state:"fetching",promise:n,start:r,args:t}),n}(e,t);if("fetching"===o.state)throw o.promise;if(o.ok)return o.stale&&(null==(n=s(e,t,"wasStale"))||n.then(()=>f(e,t)).catch(()=>{})),o.body;throw o.error}async function u(e,t){var n;return null==(n=s(e,t))?void 0:n.then(()=>f(e,t)).catch(()=>{})}function a(e){d(e,()=>!0);let t=m.getFetcherMap(e);return t?[...t.values()].flatMap(e=>"fetching"===e.state?[]:e.ok?e.body:[]):[]}function c(e,t){let n=m.getFetcherMap(e);if(n){for(let[e,r]of n){if("fetched"!==r.state||!r.ok)continue;let i=t(r.body);void 0===i?n.delete(e):n.set(e,{...r,body:i})}f(e)}}function f(e,t){g.forEach(n=>n(e,t))}function l(e,t){let n;let r=m.getFetcherMap(e),{concurrency:i}=m.getFetcherConfig(e);if(!r||function(e,t){let n=0,r=e.next();for(;!r.done;)t(r.value)&&n++,r=e.next();return n}(r.values(),b)<i)return{promise:p(e,t)};let[o,u]=[new Promise(e=>{n=e}),()=>n()];return{promise:o.then(()=>p(e,t)),start:u}}function p(e,t){return e(...t).then(n=>{var r;return m.set(e,t,{state:"fetched",ok:!0,body:n,args:t,stale:null==(r=m.get(e,t))?void 0:r.stale}),n}).catch(n=>{var r;m.set(e,t,{state:"fetched",ok:!1,error:n,args:t,stale:null==(r=m.get(e,t))?void 0:r.stale})}).finally(()=>{let t=m.getFetcherMap(e);if(!t)return;let n=function(e,t){let n=e.next();for(;!n.done;){if(t(n.value))return n.value;n=e.next()}}(t.values(),S);null==n||n.start()})}function d(e,t){let n=(0,i.NW)();(0,r.useEffect)(()=>{function r(r,i){e===r&&(i&&!t(i)||n())}return g.push(r),()=>{let e=g.indexOf(r);g.splice(e,1)}},[e,n,t])}function s(e,t,n){let r=m.get(e,t);if(!r||"fetched"!==r.state)return;let{promise:i,start:o}=l(e,t);return m.set(e,t,{...r,state:"revalidating",stale:"wasStale"===n?void 0:r.stale,promise:i,start:o}),i}let m=function(){let e=new Map,t=new Map,n={cacheCapacity:500,revalidationStrategy:{type:"swr",onFocus:!0},concurrency:10};function r(t){return e.get(t)??n}return{get(e,n){let r=y(e,n),i=t.get(e);if(!i||!i.has(r))return;let o=i.get(r);return i.delete(r),void 0!==o&&i.set(r,o),o},getFetcherMap:e=>t.get(e),set(e,n,i){let o=t.get(e);o||(o=new Map,t.set(e,o));let u=r(e),a=y(e,n);o.size!==u.cacheCapacity||o.has(a)||o.delete(o.keys().next().value),o.set(a,i)},has(e,n){let r=y(e,n),i=t.get(e),o=null==i?void 0:i.get(r);if(!o)return!1;let u="fetched"===o.state,a="revalidating"===o.state&&o.ok;return u||a},getFetcherConfig:r,registerFetcherConfig(t,r){e.set(t,{...n,...r})},clear(e,n){if(!n){t.delete(e);return}let r=t.get(e);if(!r)return;let i=y(e,n);r.delete(i)},clearAll(){t.clear()},clearAllFetcherConfigs(){e.clear()}}}(),h=m;function y(e,t){let n=e.length-t.length;if(0===n)return t.join(`
4
+ `);let r=[...t];for(let e=0;e<n;e++)r.push(void 0);return r.join(`
5
+ `)}let g=[],v=(0,r.createContext)(void 0);function _(e){let{fetcher:t,requestParams:n,validator:r,onCacheInvalidated:o,every:u=null}=e;function a(e){let i=e??n,u=m.get(t,i);t(...i).then(e=>{(null==u?void 0:u.state)==="fetched"&&u.ok&&r(e,u.body)&&o()}).catch(e=>console.warn(e))}return(0,i.vW)(a),(0,i.Yz)(a,u),{revalidateData:a}}function b(e){return"fetching"===e.state||"revalidating"===e.state}function S(e){return b(e)&&!!e.start}},97867:function(e,t,n){n.d(t,{$:function(){return r}});function r(e){return null!=e}},4727:function(e,t,n){n.d(t,{S$:function(){return o},aO:function(){return u},ju:function(){return i}});var r=n(47304);function i(e){try{return new URL(e)}catch{return}}function o(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(r.kC)[0]??""}catch{return""}}function u(e){let{params:t}=e;return Object.entries(t).reduce((e,[t,n])=>void 0!==n?{...e,[t]:n}:e,{})}},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(23535),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(78948);(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(78948).__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(33832),i=n(23535),o=n(62283),u=n(93103);function a(e,n){return e.map(([e,r])=>{let a=null==n?void 0:n[e];if(r.type===i.GroupFieldType){if(a&&a.type!==i.GroupFieldType)throw new o.IncompatibleMockConfigError(a.type,r.type);return[e,t.GroupMock.generate(r,a)]}if(a&&a.type!==r.type)throw new o.IncompatibleMockConfigError(a.type,r.type);return[e,u.NestableWidgetMock.generate(r,a)]})}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(74982),i=n(74982),o=n(23535),u=n(74702),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(74982),i=n(60130),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(74982),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(78948);(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(74982),i=n(74702);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(74982),i=n(74982),o=n(74702);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(74982),i=n(74702);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(78948),i=n(74982),o=n(74702),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(78948),i=n(74982),o=n(74702),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(78948),i=n(74982),o=n(74702),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"}}}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(74982),i=n(74702);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(74982),i=n(15801);t.DocumentLinkMock={generate(e,t){var n;let o;if(null==t?void 0:t.value)o=t.value;else{let t=(null===(n=e.config)||void 0===n?void 0:n.allowText)?(0,i.slug)():void 0;o={__TYPE__:"DocumentLink",id:"mock_document_id",...t&&{text:t}}}return r.DocumentLinkContent.encode(o)}}},79241:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=n(78948),i=n(74982),o=(0,r.__importDefault)(n(83777)),u=n(15801);t.ExternalLinkMock={generate(e,t){var n;let r;if(null==t?void 0:t.value)r=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;r={__TYPE__:"ExternalLink",url:t,...i&&{text:i}}}return i.ExternalLinkContent.encode(r)}}},25891:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=n(74982),i=n(15801);t.MediaLinkMock={generate(e,t){var n,o;let u;if(null==t?void 0:t.value)u=t.value;else{let a=(null===(n=e.config)||void 0===n?void 0:n.allowText)?(0,i.slug)():void 0;u=null!==(o=null==t?void 0:t.value)&&void 0!==o?o:{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"file",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0",...a&&{text:a}}}return r.FileLinkContent.encode(u)}}},33610:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=n(78948),i=n(74982),o=n(74702),u=n(50107),a=n(79241),c=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 u.DocumentLinkMock.generate(e);case"web":default:return a.ExternalLinkMock.generate(e,(null==t?void 0:t.value)&&t.value);case"media":return c.MediaLinkMock.generate(e,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,value:n}},applyPatch(e){var t;return e.diff.op===o.DiffOperation.Removed?{result:void 0}:"Link"===e.diff.value.type?{result:this.patch(e.diff,(0,i.isLinkContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Link"?e.config:void 0)}: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(74982),i=n(74702);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(74982),i=n(74702);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)}}}},13319:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=t.LoremDefaultConfig=void 0;let r=n(23535),i=n(72788),o=n(15801);t.LoremDefaultConfig={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."},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."},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"}},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)=>{let r=new i.LoremIpsum(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 r.generateParagraphs(1)}}},35650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=n(78948),i=n(74982),o=n(23535),u=n(74702),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)).value(i);return Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>u.map(e=>{if(c.RichTextMockConfig.isText(e))return{type:e,content:{text:c.RichTextMockConfig.generateText(e,c.LoremDefaultConfig)}};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(74982),i=n(74702),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(74982),i=n(74702);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)}}}},44395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=n(74982),i=n(74702),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(74982),i=n(74702);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(78948),i=n(74702),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(35650),y=n(20999),g=n(14259),v=n(44395),_=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(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){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":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 h.RichTextMock.generate(e,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return y.SelectMock.generate(e,(null==t?void 0:t.type)==="Select"?t:void 0);case"Text":return v.TextMock.generate(e,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return _.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},b=u.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||_.TimestampMock.applyPatch(r)||y.SelectMock.applyPatch(r)||m.RangeMock.applyPatch(r)||v.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||o.BooleanMock.applyPatch(r)||h.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);return null==b?void 0:b.result}}},25242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=n(78948),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(78948),i=n(88985),o=n(23535),u=n(60130),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}}},32387: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,[])}},9085: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}},97381: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}},55962: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)}},70402:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(35002),o=RegExp("^[^<>]+$");t.WidgetKey=(0,i.refineType)(r.string,"WidgetKey",e=>0===e.length||o.test(e))},31289:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(9085),t),(0,r.__exportStar)(n(97381),t),(0,r.__exportStar)(n(70402),t)},20168: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(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(32387),f=n(31289),l=n(23535),p=n(33832),d=n(3845);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 g({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);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 v(e,t){let n=l.StaticCustomType.is(t)?y(t):t;return Object.values((0,l.collectSharedSlices)(n)).some(e=>!!e.legacyPaths)?g({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:v(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=g,t.collectWidgets=function(e,t){let n={};return g({document:e})({transformWidget:({content:e,path:r})=>{let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=v},3845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(99814);t.FieldOrSliceType=r.union([i.FieldType,i.SlicesTypes]);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)}},82646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);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)})},22443: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(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23535),f=n(3845),l=n(58237),p=n(91366),d=n(22583);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=t.GroupContent.is,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 f=null==n?void 0:n[r];return(a=f&&(null==f?void 0:f.type)!==c.GroupFieldType||o.__TYPE__!==t.GroupContentType?i({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:o}):m({path:u.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:f,content:o})(i))&&((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},40174:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);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})},93057:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(22443),o=n(91366),u=n(83592),a=n(40174);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)}}})},33832:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(82646),t),(0,r.__exportStar)(n(22443),t),(0,r.__exportStar)(n(91366),t),(0,r.__exportStar)(n(83592),t),(0,r.__exportStar)(n(40174),t),(0,r.__exportStar)(n(93057),t)},47451: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(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);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}},11836: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(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(8597),c=n(58237);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})])},77124:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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)})},62544:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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)})},83768:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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)})},8944:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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)})},13221:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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}},38295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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)})},79137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929);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)})},84929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},86649:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(77124),u=n(62544),a=n(83768),c=n(8944),f=n(13221),l=n(38295),p=n(79137);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(77124),t),(0,r.__exportStar)(n(84929),t),(0,r.__exportStar)(n(62544),t),(0,r.__exportStar)(n(83768),t),(0,r.__exportStar)(n(8944),t),(0,r.__exportStar)(n(13221),t),(0,r.__exportStar)(n(38295),t),(0,r.__exportStar)(n(79137),t)},48896:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(58237);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)})])},15764: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(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(17160),c=n(8597),f=n(58237);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)})])},9583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);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})},72202: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(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(8597),f=n(35002),l=n(58237);t.ImageLinkType="ImageLink";let p=u.intersection([u.strict({kind:u.string,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}))]),d=new u.Type("FilledImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.FilledImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.FilledImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p]);let s=u.union([u.intersection([p,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("image"),text:u.string})]),m=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>s.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),s]),t.FileLinkType="FileLink";let h=u.exact(u.intersection([u.type({kind:u.string,id:u.string,url:u.string,name:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:c.StringOrNull})])),y=new u.Type("FilledFileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(h.decode(e),i.either.map(e=>t.FilledFileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>h.encode(e));t.FilledFileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),h]);let g=u.union([u.intersection([h,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("file"),text:u.string})]),v=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(g.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>g.encode(e));t.FileLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.FileLinkType)}),g]),t.MediaLinkType="MediaLink";let _=u.strict({kind:u.literal("media"),text:u.string}),b=new u.Type("MediaLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.MediaLinkType,e=>(0,o.pipe)(_.decode(e),i.either.map(e=>t.MediaLinkContent.encode({...e,__TYPE__:t.MediaLinkType}))),e=>_.encode(e));t.MediaLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.MediaLinkType)}),_]),t.DocumentLinkType="DocumentLink";let S=u.strict({id:c.NonEmptyString}),T=new u.Type("FilledDocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(S.decode(e),i.either.map(e=>t.FilledDocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>S.encode(e));t.FilledDocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),S]);let I=u.union([u.intersection([S,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("document"),text:u.string})]),w=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(I.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>I.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),I]),t.ExternalLinkType="ExternalLink";let x=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}))})])),R=new u.Type("FilledExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(x.decode(e),i.either.map(e=>t.FilledExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>x.encode(e));t.FilledExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),x]);let O=u.union([u.intersection([x,u.exact(u.partial({text:u.string}))]),u.strict({kind:u.literal("web"),text:u.string})]),C=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(O.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>O.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),O]),t.AnyLinkType="AnyLink";let M=u.strict({text:u.string}),E=new u.Type("AnyLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.AnyLinkType,e=>(0,o.pipe)(M.decode(e),i.either.map(e=>t.AnyLinkContent.encode({...e,__TYPE__:t.AnyLinkType}))),e=>M.encode(e));t.AnyLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.AnyLinkType)}),M]),t.LinkContentType="LinkContent",t.isLinkContent=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.LinkLegacy=u.union([m,v,w,C,b,E]),t.LinkContentLegacy=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}})),t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=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([d,y,T,R]),t.FilledLinkContentLegacy=e=>new u.Type("FilledLinkLegacy",t.isFilledLinkContent,e=>(0,o.pipe)(t.FilledLinkLegacy.decode(e),i.either.map(e=>t.FilledLinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.FilledLinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}})),t.FilledLink=u.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.FilledLink})},65090:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(82646),a=n(47451),c=n(11836),f=n(86649),l=n(84929),p=n(48896),d=n(15764),s=n(9583),m=n(72202),h=n(89040),y=n(68507);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,h.RichTextContent,y.SeparatorContent]),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,h.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,m.isLinkContent)(e)||(0,y.isSeparatorContent)(e)||(0,u.isEmptyContent)(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,h.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,y.SeparatorLegacy)(e);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 h.RichTextContentType:return(0,h.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 y.SeparatorContentType:return(0,y.SeparatorLegacy)(e).encode(t);default:return}}})},71741:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(44613),l=n(8597),p=n(35002),d=n(11836),s=n(15764),m=n(72202),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")}),g=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,g]),t.SpanLegacy=a.union([h(m.FilledLinkLegacy),y,g]),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 v=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=v(m.FilledLink);let _=v(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})])),S=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 T=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=T(t.Span);let I=T(t.SpanLegacy),w=a.union([S,_,I]);t.BlockLegacy=new a.Type("BlockLegacy",e=>S.is(e)||_.is(e)||I.is(e),e=>w.decode(e),e=>t.ImageBlock.is(e)?_.encode(e):t.EmbedBlock.is(e)?S.encode(e):I.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},89040:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237),c=n(71741);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;let f=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(71741),t),t.RichTextLegacy=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:f.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}))},68507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(58237);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)})},91366:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(47451),t),(0,r.__exportStar)(n(11836),t),(0,r.__exportStar)(n(86649),t),(0,r.__exportStar)(n(48896),t),(0,r.__exportStar)(n(15764),t),(0,r.__exportStar)(n(9583),t),(0,r.__exportStar)(n(72202),t),(0,r.__exportStar)(n(65090),t),(0,r.__exportStar)(n(89040),t),(0,r.__exportStar)(n(68507),t)},53422: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(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(22443),p=n(91366),d=n(22583),s=n(53034);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)},[])}),[])}}}},53034:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(22443),o=n(91366);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)},74951: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(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(23535),l=n(3845),p=n(58237),d=n(22443),s=n(91366),m=n(22583),h=n(53034),y=n(12238);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;let g=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)(g.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.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}}})}}},27835: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(98227).__importStar)(n(87830)),i=n(22443),o=n(91366);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:[]}}}},12238:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(23535),o=n(22443),u=n(91366);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)},21925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(53422),u=n(74951),a=n(27835);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(53422),t),(0,r.__exportStar)(n(74951),t),(0,r.__exportStar)(n(27835),t),(0,r.__exportStar)(n(12238),t)},57495: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(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35002),f=n(3845),l=n(22443),p=n(91366),d=n(22583),s=n(21925),m=n(53422),h=n(74951),y=n(27835);function g(e){return(0,m.isCompositeSliceContent)(e.widget)}function v(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=g,t.isSimpleSliceItemContent=v,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})=>g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateCompositeSlice)(e,t):v(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,y.migrateSimpleSlice)(e,t):t},8059: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(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(32387),c=n(23535),f=n(58237),l=n(53422),p=n(74951),d=n(27835),s=n(57495);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}})}}},83592:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(21925),t),(0,r.__exportStar)(n(57495),t),(0,r.__exportStar)(n(8059),t)},22583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(23535),i=n(22443),o=n(91366);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))}},74982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(20168),t),(0,r.__exportStar)(n(33832),t),(0,r.__exportStar)(n(3845),t)},58237:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(33832);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},17896: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(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=n(22453);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:
6
+ ${t.join("\n")}
7
+ `}}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},{})}},22453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(31289),o=n(53039);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)}),{})}},5480: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"},89408:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(35566),i=n(5480),o=n(62961);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}}}},62961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(35566),i=n(10673),o=n(5480);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}}}},83095:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},74702:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(5480),t),(0,r.__exportStar)(n(89408),t),(0,r.__exportStar)(n(62961),t),(0,r.__exportStar)(n(83095),t)},23535:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(17896),t),(0,r.__exportStar)(n(74702),t),(0,r.__exportStar)(n(22453),t),(0,r.__exportStar)(n(99814),t)},10673: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(98227).__importStar)(n(87830)),i=n(31289),o=n(8597),u=n(30961);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]))},63437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},53039: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(98227).__importStar)(n(87830)),i=n(10673),o=n(44613),u=n(30961),a=n(78110),c=n(63437);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.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}}}},99814:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(10673),t),(0,r.__exportStar)(n(44613),t),(0,r.__exportStar)(n(77666),t),(0,r.__exportStar)(n(30324),t),(0,r.__exportStar)(n(63437),t),(0,r.__exportStar)(n(53039),t)},66014:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},2330:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},77352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},53142:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},46068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},65694:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597),u=(0,r.__importDefault)(n(71747));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})]))},60337:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},64907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),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})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig})]))},30961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(66014),o=n(2330),u=n(77352),a=n(53142),c=n(46068),f=n(65694),l=n(60337),p=n(64907),d=n(16879),s=n(61490),m=n(48483),h=n(44284),y=n(29881),g=n(36732),v=n(48903);t.NestableWidget=r.union([o.Color,i.BooleanField,a.Embed,c.GeoPoint,u.Date,d.Number,s.Range,m.RichText,h.Select,y.Separator,g.Text,v.Timestamp,p.Link,f.Image,l.IntegrationField])},16879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(59054),o=n(8597);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})]))},61490:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(59054),o=n(8597);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})]))},48483: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(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(8597),f=(0,r.__importDefault)(n(71747));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})]))},44284:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},29881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},36732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},48903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(8597);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})]))},44613:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(66014),t),(0,r.__exportStar)(n(2330),t),(0,r.__exportStar)(n(77352),t),(0,r.__exportStar)(n(53142),t),(0,r.__exportStar)(n(46068),t),(0,r.__exportStar)(n(65694),t),(0,r.__exportStar)(n(60337),t),(0,r.__exportStar)(n(64907),t),(0,r.__exportStar)(n(30961),t),(0,r.__exportStar)(n(16879),t),(0,r.__exportStar)(n(61490),t),(0,r.__exportStar)(n(48483),t),(0,r.__exportStar)(n(44284),t),(0,r.__exportStar)(n(29881),t),(0,r.__exportStar)(n(36732),t),(0,r.__exportStar)(n(48903),t)},71747:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(8597),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},77666: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(71747);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(31289),o=n(8597),u=n(30961);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}},97442:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(10673),o=n(30961);t.LegacySlice=r.union([o.NestableWidget,i.NestedGroup]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},32233: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(98227).__importStar)(n(87830)),i=n(69624),o=n(31289),u=n(30961),a=n(19288);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}},73194:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(32233);t.SharedSliceRef=r.exact(r.type({type:r.literal(i.SharedSliceType)}))},42738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryWidget=t.SlicePrimaryWidget=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(10673),o=n(44613);t.SlicePrimaryWidget=r.union([o.NestableWidget,i.Group]),t.isSlicePrimaryWidget=e=>o.NestableWidget.is(e)||i.Group.is(e)},78110: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(98227).__importStar)(n(87830)),i=n(31289),o=n(8597),u=n(26417),a=n(97442),c=n(32233),f=n(73194);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}},51945:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=(0,n(98227).__importStar)(n(87830)),i=n(26417),o=n(32233);t.SlicesTypes=r.keyof({[i.CompositeSliceType]:null,[o.SharedSliceType]:null})},30324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(26417),t),(0,r.__exportStar)(n(97442),t),(0,r.__exportStar)(n(32233),t),(0,r.__exportStar)(n(73194),t),(0,r.__exportStar)(n(42738),t),(0,r.__exportStar)(n(19288),t),(0,r.__exportStar)(n(78110),t),(0,r.__exportStar)(n(51945),t)},18949: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}},{})}},17160: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(98227),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)}),{})}},35566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(98227);t.HexaColorCode=(0,r.__importStar)(n(55962)),t.Arrays=(0,r.__importStar)(n(18949)),t.Objects=(0,r.__importStar)(n(17160))},19841: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(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(35002);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([]))),()=>[])},89394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(8597);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())},23954:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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)},72113:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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())},35541:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(19841);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)},62990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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)},64678:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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)},19528:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(98227).__importStar)(n(87830)),i=n(35002);t.default=(0,i.withCustomError)((0,i.refineType)(r.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},89448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(89793));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)},33805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(98227).__importStar)(n(87830)),i=n(35002);t.default=(0,i.nullable)(r.number)},13670:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(98227).__importStar)(n(87830)),i=n(19841);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))},32047:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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)},80990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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)},89793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=(0,n(98227).__importStar)(n(87830)),i=n(35002);t.default=(0,i.nullable)(r.string)},38729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),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)},35002: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(98227),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)))}},8597: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(98227);(0,r.__exportStar)(n(19841),t);var i=n(89394);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(23954);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(72113);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(35541),t),t.Function=(0,r.__importStar)(n(35002));var a=n(62990);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(64678);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(19528);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(89448);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(33805);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(13670);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(32047);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=n(80990);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=n(89793);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}})},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 tB},Alternative:function(){return tz},Applicative:function(){return tU},Apply:function(){return tD},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t5},Compactable:function(){return t$},Do:function(){return nf},Extend:function(){return tH},Filterable:function(){return tX},FilterableWithIndex:function(){return tJ},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return ne},Functor:function(){return tF},FunctorWithIndex:function(){return tL},Monad:function(){return tG},Pointed:function(){return tW},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tT},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 v},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 t4},chainRecDepthFirst:function(){return t3},chainWithIndex:function(){return P},chop:function(){return eb},chunksOf:function(){return eT},compact:function(){return e9},comprehension:function(){return ew},concat:function(){return eR},concatW:function(){return ex},cons:function(){return ng},copy:function(){return er},deleteAt:function(){return eu},difference:function(){return eM},dropLeft:function(){return H},dropLeftWhile:function(){return X},dropRight:function(){return $},duplicate:function(){return tf},elem:function(){return eg},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 e4},filterMapWithIndex:function(){return e5},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 tP},flatMap:function(){return e8},flatten:function(){return e7},foldLeft:function(){return M},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return F},fromEither:function(){return w},fromEitherK:function(){return nt},fromOption:function(){return I},fromOptionK:function(){return eI},fromPredicate:function(){return T},getDifferenceMagma:function(){return tk},getEq:function(){return tR},getIntersectionSemigroup:function(){return tE},getMonoid:function(){return tx},getOrd:function(){return tO},getSemigroup:function(){return tw},getShow:function(){return tI},getUnionMonoid:function(){return tM},getUnionSemigroup:function(){return tC},guard:function(){return tK},head:function(){return U},init:function(){return G},insertAt:function(){return ei},intercalate:function(){return nc},intersection:function(){return eC},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 e3},match:function(){return R},matchLeft:function(){return C},matchLeftW:function(){return O},matchRight:function(){return k},matchRightW:function(){return E},matchW:function(){return x},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 g},range:function(){return nh},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return th},reduceWithIndex:function(){return ts},replicate:function(){return S},reverse:function(){return ec},rights:function(){return ef},rotate:function(){return ey},scanLeft:function(){return W},scanRight:function(){return L},separate:function(){return e6},sequence:function(){return tg},size:function(){return D},snoc:function(){return nv},some:function(){return nu},sort:function(){return ep},sortBy:function(){return e_},spanLeft:function(){return z},splitAt:function(){return eS},tail:function(){return q},takeLeft:function(){return Y},takeLeftWhile:function(){return V},takeRight:function(){return B},traverse:function(){return ty},traverseWithIndex:function(){return tv},unfold:function(){return tS},union:function(){return eO},uniq:function(){return ev},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,g=f.prependW,v=f.append,_=f.appendW,b=function(e,t){return e<=0?[]:f.makeBy(t)(e)},S=function(e,t){return b(e,function(){return t})};function T(e){return function(t){return e(t)?[t]:[]}}var I=function(e){return c.Wi(e)?[]:[e.value]},w=function(e){return c.nM(e)?[]:[e.right]},x=function(e,t){return function(n){return h(n)?t(n):e()}},R=x,O=function(e,t){return function(n){return h(n)?t(f.head(n),f.tail(n)):e()}},C=O,M=C,E=function(e,t){return function(n){return h(n)?t(f.init(n),f.last(n)):e()}},k=E,F=k,P=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},W=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}},L=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)}},B=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 K=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function z(e){return function(t){var n=eS(K(t,e))(t);return{init:n[0],rest:n[1]}}}var H=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(e,t.length)}},$=function(e){return function(t){return e<=0||m(t)?er(t):e>=t.length?[]:t.slice(0,t.length-e)}};function X(e){return function(t){return t.slice(K(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)}},eg=l.elem,ev=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):[]}},eS=function(e){return function(t){return e>=1&&h(t)?f.splitAt(e)(t):m(t)?[er(t),[]]:[[],er(t)]}},eT=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 ew(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,v(t)),f.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)}var ex=function(e){return function(t){return m(t)?er(e):m(e)?er(t):t.concat(e)}},eR=ex;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 eC(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,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)})}}var eE=function(e,t){return(0,u.pipe)(e,e1(t))},ek=function(e,t){return(0,u.pipe)(e,e3(t))},eF=function(e,t){return(0,u.pipe)(e,e2(t))},eP=function(e,t){return(0,u.pipe)(e,te(t))},eW=function(e,t){return(0,u.pipe)(e,e4(t))},eL=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))},eB=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))},eK=function(e,t){return(0,u.pipe)(e,e5(t))},ez=function(e,t){return(0,u.pipe)(e,ta(t))},eH=function(e,t){return(0,u.pipe)(e,tc(t))},e$=function(e){var t=ty(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eX=function(e){var t=tv(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,P(function(e,n){return t(n,e)}))}),e7=e8(u.identity),e3=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e5=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}},e4=function(e){return e5(function(t,n){return e(n)})},e9=e4(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=tv(e);return function(e){return t(function(t,n){return e(n)})}},tg=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,v(t))}}),n)})}},tv=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,v(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)}}},tS=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},tT="Array",tI=l.getShow,tw=function(){return{concat:function(e,t){return e.concat(t)}}},tx=function(){return{concat:tw().concat,empty:[]}},tR=l.getEq,tO=l.getOrd,tC=function(e){var t=eO(e);return{concat:function(e,n){return t(n)(e)}}},tM=function(e){return{concat:tC(e).concat,empty:[]}},tE=function(e){var t=eC(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)}}},tF={URI:tT,map:eE},tP=(0,a.flap)(tF),tW={URI:tT,of:eQ},tL={URI:tT,map:eE,mapWithIndex:ek},tD={URI:tT,map:eE,ap:eF},tN=(0,r.apFirst)(tD),tA=(0,r.apSecond)(tD),tU={URI:tT,map:eE,ap:eF,of:eQ},tj={URI:tT,map:eE,ap:eF,chain:e8},tq=(0,i.chainFirst)(tj),tG={URI:tT,map:eE,ap:eF,of:eQ,chain:e8},tY={URI:tT,unfold:tS},tB={URI:tT,map:eE,alt:eU},tV={URI:tT,zero:e0},tK=(0,s.guard)(tV,tW),tz={URI:tT,map:eE,ap:eF,of:eQ,alt:eU,zero:e0},tH={URI:tT,map:eE,extend:eH},t$={URI:tT,compact:e9,separate:e6},tX={URI:tT,map:eE,compact:e9,separate:e6,filter:eP,filterMap:eW,partition:eL,partitionMap:eD},tJ={URI:tT,map:eE,mapWithIndex:ek,compact:e9,separate:e6,filter:eP,filterMap:eW,partition:eL,partitionMap:eD,partitionMapWithIndex:eA,partitionWithIndex:eN,filterMapWithIndex:eK,filterWithIndex:ez},tZ={URI:tT,reduce:ej,foldMap:eq,reduceRight:eG},tQ={URI:tT,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eV},t0={URI:tT,map:eE,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:tg},t1={URI:tT,map:eE,mapWithIndex:ek,reduce:ej,foldMap:eq,reduceRight:eG,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eV,traverse:e$,sequence:tg,traverseWithIndex:eX},t2=(0,d.witherDefault)(t0,t$),t8=(0,d.wiltDefault)(t0,t$),t7={URI:tT,map:eE,compact:e9,separate:e6,filter:eP,filterMap:eW,partition:eL,partitionMap:eD,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:tg,wither:t2,wilt:t8},t3=l.chainRecDepthFirst,t5={URI:tT,map:eE,ap:eF,chain:e8,chainRec:eJ},t4=l.chainRecBreadthFirst,t9={URI:tT,map:eE,ap:eF,chain:e8,chainRec:eZ},t6=(0,d.filterE)(t7),ne={URI:tT,fromEither:w},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)(tF),np=(0,a.let)(tF),nd=(0,i.bind)(tj),ns=(0,r.apS)(tD),nm=e8,nh=f.range,ny=[],ng=f.cons,nv=f.snoc,n_=em,nb={URI:tT,compact:e9,separate:e6,map:eE,ap:eF,of:eQ,chain:e8,filter:eP,filterMap:eW,partition:eL,partitionMap:eD,mapWithIndex:ek,partitionMapWithIndex:eA,partitionWithIndex:eN,filterMapWithIndex:eK,filterWithIndex:ez,alt:eU,zero:e0,unfold:tS,reduce:ej,foldMap:eq,reduceRight:eG,traverse:e$,sequence:tg,reduceWithIndex:eY,foldMapWithIndex:eB,reduceRightWithIndex:eV,traverseWithIndex:eX,extend:eH,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 R},bimap:function(){return w},const_:function(){return k},contramap:function(){return T},flap:function(){return C},getApplicative:function(){return g},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 x}});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:R,_E:void 0,map:_,ap:function(t,n){return o(e.concat(t,n))}}}function g(e){var t=y(e);return{URI:R,_E:void 0,map:t.map,ap:t.ap,of:function(){return o(e.empty)}}}var v=function(e,t){return(0,r.pipe)(e,T(t))},_=function(e,t){return(0,r.pipe)(e,I(t))},b=function(e,t,n){return(0,r.pipe)(e,w(t,n))},S=function(e,t){return(0,r.pipe)(e,x(t))},T=function(){return r.unsafeCoerce},I=function(){return r.unsafeCoerce},w=function(e){return function(t){return o(e(t))}},x=function(e){return function(t){return o(e(t))}},R="Const",O={URI:R,map:_},C=(0,i.flap)(O),M={URI:R,contramap:v},E={URI:R,bimap:b,mapLeft:S},k={URI:R,map:_,contramap:v,bimap:b,mapLeft:S}},81878:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eu},ApT:function(){return e4},Applicative:function(){return V},Apply:function(){return B},Bifunctor:function(){return er},Chain:function(){return K},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 z},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 ew},apFirstW:function(){return ex},apS:function(){return e3},apSW:function(){return e5},apSecond:function(){return eR},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 eX},chainOptionK:function(){return eP},chainOptionKW:function(){return eW},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 $},foldW:function(){return ev},fromNullable:function(){return eK},fromNullableK:function(){return e$},fromOption:function(){return em},fromOptionK:function(){return eF},fromPredicate:function(){return es},getAltValidation:function(){return L},getApplicativeValidation:function(){return W},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return k},getEq:function(){return M},getFilterable:function(){return F},getOrElse:function(){return eT},getOrElseW:function(){return eS},getSemigroup:function(){return E},getShow:function(){return C},getValidation:function(){return tm},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return P},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 eg},of:function(){return j},orElse:function(){return eV},orElseW:function(){return eB},parseJSON:function(){return ta},reduce:function(){return H},reduceRight:function(){return X},right:function(){return m},sequence:function(){return Q},sequenceArray:function(){return tn},stringifyJSON:function(){return tc},swap:function(){return eY},tap:function(){return eC},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 ez},tryCatchK:function(){return eH}});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))},g=function(e,t){return(0,c.pipe)(e,Y(t))},v=function(e,t,n){return(0,c.pipe)(e,H(t,n))},_=function(e){return function(t,n){var r=$(e);return(0,c.pipe)(t,r(n))}},b=function(e,t,n){return(0,c.pipe)(e,X(t,n))},S=function(e){var t=Z(e);return function(e,n){return(0,c.pipe)(e,t(n))}},T=function(e,t,n){return(0,c.pipe)(e,et(t,n))},I=function(e,t){return(0,c.pipe)(e,en(t))},w=function(e,t){return(0,c.pipe)(e,eo(t))},x=function(e,t){return(0,c.pipe)(e,ea(t))},R=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",C=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))}}},F=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))}}},P=function(e){var t=F(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:S,sequence:Q,reduce:v,foldMap:_,reduceRight:b,wither:(0,d.witherDefault)(ee,n),wilt:(0,d.wiltDefault)(ee,n)}},W=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}},L=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,B={URI:O,map:y,ap:g},V={URI:O,map:y,ap:g,of:j},K={URI:O,map:y,ap:g,chain:h},z={URI:O,map:y,ap:g,of:j,chain:h},H=function(e,t){return function(n){return eh(n)?e:t(e,n.right)}},$=function(e){return function(t){return function(n){return eh(n)?e.empty:t(n.right)}}},X=function(e,t){return function(n){return eh(n)?e:t(n.right,e)}},J={URI:O,reduce:v,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:v,foldMap:_,reduceRight:b,traverse:S,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:T,mapLeft:I},ei=function(e){return function(t){return eh(t)?e():t}},eo=ei,eu={URI:O,map:y,alt:w},ea=function(e){return function(t){return eh(t)?t:m(e(t))}},ec={URI:O,map:y,extend:x},ef={URI:O,map:y,ap:g,chain:h,chainRec:R},el=s,ep={URI:O,map:y,ap:g,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,eg=function(e,t){return function(n){return eh(n)?e(n.left):t(n.right)}},ev=eg,e_=eg,eb=e_,eS=function(e){return function(t){return eh(t)?e(t.left):t.right}},eT=eS,eI=(0,f.flap)(N),ew=(0,i.apFirst)(B),ex=ew,eR=(0,i.apSecond)(B),eO=eR,eC=(0,c.dual)(2,o.tap(K)),eM=h(c.identity),eE=eM,ek=ea(c.identity),eF=(0,a.fromOptionK)(ed),eP=(0,a.chainOptionK)(ed,K),eW=eP,eL={fromEither:ed.fromEither},eD=l.uL(eL),eN=l.WE(eL),eA={flatMap:h},eU=l.ny(eL,eA),ej=l.hU(eL,eA),eq=(0,a.filterOrElse)(ed,K),eG=eq,eY=function(e){return eh(e)?m(e.left):s(e.right)},eB=function(e){return function(t){return eh(t)?e(t.left):t}},eV=eB,eK=function(e){return function(t){return null==t?s(e):m(t)}},ez=function(e,t){try{return m(e())}catch(e){return s(t(e))}},eH=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ez(function(){return e.apply(void 0,n)},t)}},e$=function(e){var t=eK(e);return function(e){return(0,c.flow)(e,t)}},eX=function(e){var t=e$(e);return function(e){return h(t(e))}},eJ=ev(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(K),e7=e8,e3=(0,i.apS)(B),e5=e3,e4=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):e4}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(c.identity),tr=h,ti=h,to=eC,tu=eC;function ta(e,t){return ez(function(){return JSON.parse(e)},t)}var tc=function(e,t){return ez(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:g,chain:h,reduce:v,foldMap:_,reduceRight:b,traverse:S,sequence:Q,bimap:T,mapLeft:I,alt:w,extend:x,chainRec:R,throwError:el},tl=(0,i.getApplySemigroup)(B),tp=(0,r.getApplicativeMonoid)(V),td=function(e,t){return(0,i.getApplySemigroup)(W(e))(t)},ts=function(e,t){return(0,r.getApplicativeMonoid)(W(e))(t)};function tm(e){return{URI:O,_E:void 0,map:y,of:j,chain:h,bimap:T,mapLeft:I,reduce:v,foldMap:_,reduceRight:b,extend:x,traverse:S,sequence:Q,chainRec:R,throwError:el,ap:W(e).ap,alt:L(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 g},eqBoolean:function(){return v},eqDate:function(){return S},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,g=s,v=f,_=f,b=f,S={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 eg},URI:function(){return et},collect:function(){return v},compact:function(){return z},deleteAt:function(){return T},difference:function(){return ew},elem:function(){return h},empty:function(){return ex},filter:function(){return H},filterMap:function(){return $},filterMapWithIndex:function(){return D},filterWithIndex:function(){return N},flap:function(){return ev},foldMap:function(){return ef},foldMapWithIndex:function(){return es},fromFoldable:function(){return F},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 eR},intersection:function(){return eI},isEmpty:function(){return s},isSubmap:function(){return C},keys:function(){return y},lookup:function(){return O},lookupWithKey:function(){return R},map:function(){return X},mapWithIndex:function(){return J},map_:function(){return eO},member:function(){return m},modifyAt:function(){return w},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return W},partitionWithIndex:function(){return L},pop:function(){return x},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 eT},updateAt:function(){return I},upsertAt:function(){return S},values:function(){return g}});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)}},g=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function v(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 v(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 S=function(e){var t=R(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}}},T=function(e){var t=R(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=w(e);return function(e,n){return t(e,function(){return n})}},w=function(e){var t=R(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 x(e){var t=O(e),n=T(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 R(e){return function(t,n){if(void 0===n){var r,i=R(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,C=a.isSubmap,M=a.getEq;function E(e,t){var n=R(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 F(e,t,n){return function(r){var i=R(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 P=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,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 L(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 P(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 B(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 K(e,function(e,n){return t(n)})},Y=function(e,t){return(0,r.pipe)(e,N(t))},B=function(e,t){return(0,r.pipe)(e,D(t))},V=function(e,t){return(0,r.pipe)(e,L(t))},K=function(e,t){return(0,r.pipe)(e,W(t))},z=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},H=function(e){return function(t){return U(t,e)}},$=function(e){return function(t){return j(t,e)}},X=function(e){return function(t){return A(t,e)}},J=function(e){return function(t){return P(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=eT(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=ew(e);return{concat:function(e,n){return t(n)(e)}}}};function eu(){return{URI:et,_E:void 0,map:A,mapWithIndex:P,compact:z,separate:ee,filter:U,filterMap:j,partition:q,partitionMap:G,partitionMapWithIndex:K,partitionWithIndex:V,filterMapWithIndex:B,filterWithIndex:Y}}function ea(e){var t=ey(e);return{URI:et,_E:void 0,map:A,compact:z,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:P,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:P,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}},eg={URI:et,map:A},ev=(0,i.flap)(eg),e_={URI:et,compact:z,separate:ee},eb={URI:et,map:A,compact:z,separate:ee,filter:U,filterMap:j,partition:q,partitionMap:G},eS=function(e){return new Map(e)},eT=function(e,t){var n=a.union(e,t);return function(e){return function(t){return s(t)?eS(e):s(e)?eS(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)}}},ew=function(e){var t=a.difference(e);return function(e){return function(n){return s(n)?eS(e):s(e)?eS(n):t(e)(n)}}},ex=new Map,eR=S,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 T},getJoinMonoid:function(){return g},getMeetMonoid:function(){return v},getStructMonoid:function(){return h},getTupleMonoid:function(){return m},max:function(){return c},min:function(){return a},monoidAll:function(){return b},monoidAny:function(){return S},monoidProduct:function(){return R},monoidString:function(){return w},monoidSum:function(){return x},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,g=c,v=a,_=d,b={concat:u.semigroupAll.concat,empty:!0},S={concat:u.semigroupAny.concat,empty:!1},T=i.getMonoid,I=function(){return f((0,r.getMonoid)())},w={concat:u.semigroupString.concat,empty:""},x={concat:u.semigroupSum.concat,empty:0},R={concat:u.semigroupProduct.concat,empty:1}},43586:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ez},Applicative:function(){return eU},Apply:function(){return eD},Chain:function(){return ej},Comonad:function(){return eH},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eB},Functor:function(){return eF},FunctorWithIndex:function(){return eL},Monad:function(){return eG},Pointed:function(){return eW},Traversable:function(){return eV},TraversableWithIndex:function(){return eK},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 eX},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return z},chop:function(){return H},chunksOf:function(){return X},concat:function(){return k},concatAll:function(){return e5},concatW:function(){return E},cons:function(){return tl},copy:function(){return U},duplicate:function(){return eh},extend:function(){return em},extract:function(){return eR},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eP},flatMap:function(){return es},flatten:function(){return ey},fold:function(){return ts},foldMap:function(){return K},foldMapWithIndex:function(){return V},fromArray:function(){return w},fromReadonlyNonEmptyArray:function(){return I},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return eC},getUnionSemigroup:function(){return ek},group:function(){return P},groupBy:function(){return W},groupSort:function(){return to},head:function(){return e0},init:function(){return e8},insertAt:function(){return D},intercalate:function(){return tr},intersperse:function(){return B},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return e2},let:function(){return eJ},makeBy:function(){return x},map:function(){return eg},mapWithIndex:function(){return ev},matchLeft:function(){return e4},matchRight:function(){return e9},max:function(){return e3},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 eS},reduceRightWithIndex:function(){return eT},reduceWithIndex:function(){return eb},replicate:function(){return R},reverse:function(){return F},rotate:function(){return T},sequence:function(){return ew},snoc:function(){return tp},sort:function(){return L},sortBy:function(){return b},splitAt:function(){return $},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return ex},unappend:function(){return M},uncons:function(){return tc},union:function(){return S},uniq:function(){return _},unprepend:function(){return C},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return v},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,g=function(e,t,n){if(p(n)){var r=I(n);return r.splice(e,0,t),r}return[t]},v=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 L(e.reduce(t.concat,t.empty))}return U},S=function(e){var t=_(e);return function(e){return function(n){return t((0,o.pipe)(n,k(e)))}}},T=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 T(r-n)(t);var i=$(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,k(u))}},I=a.r1,w=function(e){return p(e)?a.G(e):a.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}},R=function(e){return x(function(){return e})},O=function(e,t){return e<=t?x(function(t){return e+t})(t-e+1):[e]},C=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 F=function(e){return l([e2(e)],e.slice(0,-1).reverse(),!0)};function P(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 W=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}},L=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(g(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(v(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}},B=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,K=f.foldMap,z=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}},H=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}},$=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)]}},X=function(e){return H($(e))},J=function(e,t){return(0,o.pipe)(e,eg(t))},Z=function(e,t){return(0,o.pipe)(e,ev(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=K(e);return function(e,n){return(0,o.pipe)(e,t(n))}},er=function(e,t,n){return(0,o.pipe)(e,eS(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,eT(t,n))},ef=function(e){var t=ex(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,eg(t))})},es=(0,o.dual)(2,function(e,t){return(0,o.pipe)(e,z(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),eg=function(e){return ev(function(t,n){return e(n)})},ev=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,eS=f.reduceRight,eT=f.reduceRightWithIndex,eI=function(e){var t=ex(e);return function(e){return t(function(t,n){return e(n)})}},ew=function(e){return ex(e)(function(e,t){return t})},ex=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}}},eR=f.head,eO="NonEmptyArray",eC=f.getShow,eM=function(){return{concat:k}},eE=f.getEq,ek=function(e){var t=S(e);return{concat:function(e,n){return t(n)(e)}}},eF={URI:eO,map:J},eP=(0,u.flap)(eF),eW={URI:eO,of:j},eL={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},eB={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:ew},eK={URI:eO,map:J,mapWithIndex:Z,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:ew,reduceWithIndex:eu,foldMapWithIndex:ea,reduceRightWithIndex:ec,traverseWithIndex:ef},ez={URI:eO,map:J,alt:eo},eH={URI:eO,map:J,extend:ee,extract:eR},e$=j(a.F4),eX=(0,u.bindTo)(eF),eJ=(0,u.let)(eF),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,e3=f.max,e5=function(e){return function(t){return t.reduce(e.concat)}},e4=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=L(e),n=P(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 w(t.filter(function(t,n){return e(n,t)}))}},tc=C,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:eR,reduce:et,foldMap:en,reduceRight:er,traverse:ei,sequence:ew,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 e4},Applicative:function(){return V},Apply:function(){return B},Chain:function(){return z},Compactable:function(){return ed},Do:function(){return e2},Extend:function(){return ec},Filterable:function(){return eg},Foldable:function(){return Z},FromEither:function(){return eM},Functor:function(){return A},Monad:function(){return H},MonadThrow:function(){return eO},Pointed:function(){return G},Traversable:function(){return eb},URI:function(){return F},Witherable:function(){return ex},Zero:function(){return ei},alt:function(){return et},altW:function(){return ee},ap:function(){return Y},apFirst:function(){return eU},apS:function(){return e5},apSecond:function(){return ej},as:function(){return U},asUnit:function(){return j},bind:function(){return e3},bindTo:function(){return e8},chain:function(){return tr},chainEitherK:function(){return eK},chainFirst:function(){return ti},chainFirstEitherK:function(){return ez},chainNullableK:function(){return eZ},compact:function(){return ef},duplicate:function(){return eB},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 K},flatten:function(){return eq},fold:function(){return eL},foldMap:function(){return X},foldW:function(){return eP},fromEither:function(){return eC},fromEitherK:function(){return eV},fromNullable:function(){return eH},fromNullableK:function(){return eJ},fromPredicate:function(){return g},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return W},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return v},getMonoid:function(){return D},getOrElse:function(){return eN},getOrElseW:function(){return eD},getOrd:function(){return L},getRefinement:function(){return to},getRight:function(){return _},getShow:function(){return P},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 eW},matchW:function(){return eF},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 $},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 eR},toNullable:function(){return eQ},toUndefined:function(){return e0},traverse:function(){return ev},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return te},traverseReadonlyArrayWithIndex:function(){return e6},traverseReadonlyNonEmptyArrayWithIndex:function(){return e9},tryCatch:function(){return e$},tryCatchK:function(){return eX},wilt:function(){return ew},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 g(e){return function(t){return e(t)?y(t):h}}var v=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))},S=function(e,t){return(0,a.pipe)(e,Y(t))},T=function(e,t,n){return(0,a.pipe)(e,$(t,n))},I=function(e){var t=X(e);return function(e,n){return(0,a.pipe)(e,t(n))}},w=function(e,t,n){return(0,a.pipe)(e,J(t,n))},x=function(e){var t=ev(e);return function(e,n){return(0,a.pipe)(e,t(n))}},R=function(e,t){return(0,a.pipe)(e,et(t))},O=function(e,t){return(0,a.pipe)(e,es(t))},C=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))},F="Option",P=function(e){return{show:function(t){return ek(t)?"none":"some(".concat(e.show(t.value),")")}}},W=function(e){return{equals:function(t,n){return t===n||(ek(t)?ek(n):!ek(n)&&e.equals(t.value,n.value))}}},L=function(e){return{equals:W(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:F,map:b},U=(0,a.dual)(2,(0,c.as)(A)),j=(0,c.asUnit)(A),q=y,G={URI:F,of:q},Y=function(e){return function(t){return ek(t)?h:ek(e)?h:y(t.value(e.value))}},B={URI:F,map:b,ap:S},V={URI:F,map:b,ap:S,of:q},K=(0,a.dual)(2,function(e,t){return ek(e)?h:t(e.value)}),z={URI:F,map:b,ap:S,chain:K},H={URI:F,map:b,ap:S,of:q,chain:K},$=function(e,t){return function(n){return ek(n)?e:t(e,n.value)}},X=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:F,reduce:T,foldMap:I,reduceRight:w},Q=(0,a.dual)(2,function(e,t){return ek(e)?t():e}),ee=Q,et=Q,en={URI:F,map:b,alt:R},er=function(){return h},ei={URI:F,zero:er},eo=(0,m.guard)(ei,G),eu={URI:F,map:b,ap:S,of:q,alt:R,zero:er},ea=function(e){return function(t){return ek(t)?h:y(e(t))}},ec={URI:F,map:b,extend:M},ef=K(a.identity),el=(0,d.separated)(h,h),ep=function(e){return ek(e)?el:(0,d.separated)(v(e.value),_(e.value))},ed={URI:F,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)},eg={URI:F,map:b,compact:ef,separate:ep,filter:O,filterMap:C,partition:E,partitionMap:k},ev=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:F,map:b,reduce:T,foldMap:I,reduceRight:w,traverse:x,sequence:e_},eS=(0,s.witherDefault)(eb,ed),eT=(0,s.wiltDefault)(eb,ed),eI=function(e){var t=eS(e);return function(e){return function(n){return t(n,e)}}},ew=function(e){var t=eT(e);return function(e){return function(n){return t(n,e)}}},ex={URI:F,map:b,reduce:T,foldMap:I,reduceRight:w,traverse:x,sequence:e_,compact:ef,separate:ep,filter:O,filterMap:C,partition:E,partitionMap:k,wither:eS,wilt:eT},eR=function(){return h},eO={URI:F,map:b,ap:S,of:q,chain:K,throwError:eR},eC=_,eM={URI:F,fromEither:eC},eE=f.pC,ek=function(e){return"None"===e._tag},eF=function(e,t){return function(n){return ek(n)?e():t(n.value)}},eP=eF,eW=eF,eL=eW,eD=function(e){return function(t){return ek(t)?e():t.value}},eN=eD,eA=(0,c.flap)(A),eU=(0,i.apFirst)(B),ej=(0,i.apSecond)(B),eq=ef,eG=(0,a.dual)(2,o.tap(z)),eY=(0,a.dual)(2,(0,u.tapEither)(eM,z)),eB=ea(a.identity),eV=(0,u.fromEitherK)(eM),eK=(0,u.chainEitherK)(eM,z),ez=eY,eH=function(e){return null==e?h:y(e)},e$=function(e){try{return y(e())}catch(e){return h}},eX=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e$(function(){return e.apply(void 0,t)})}},eJ=function(e){return(0,a.flow)(e,eH)},eZ=function(e){return function(t){return ek(t)?h:eH(e(t.value))}},eQ=eW(a.constNull,a.identity),e0=eW(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),e3=o.bind(z),e5=(0,i.apS)(B),e4=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):e4}},te=e6,tt=function(e){return e6(function(t,n){return e(n)})},tn=tt(a.identity),tr=K,ti=eG;function to(e){return function(t){return eE(e(t))}}var tu=eZ,ta={URI:F,map:b,of:q,ap:S,chain:K,reduce:T,foldMap:I,reduceRight:w,traverse:x,sequence:e_,zero:er,alt:R,extend:M,compact:ef,separate:ep,filter:O,filterMap:C,partition:E,partitionMap:k,wither:eS,wilt:eT,throwError:eR},tc=(0,i.getApplySemigroup)(B),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 T},contramap:function(){return f},equals:function(){return h},equalsDefault:function(){return o},fromCompare:function(){return u},geq:function(){return _},getDualOrd:function(){return x},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return w},gt:function(){return g},leq:function(){return v},lt:function(){return y},max:function(){return S},min:function(){return b},ord:function(){return R},ordBoolean:function(){return C},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)}},g=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)}},_=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}},S=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},T=function(e){var t=b(e),n=S(e);return function(e,r){return function(i){return n(t(i,r),e)}}},I=function(e){var t=y(e),n=g(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},w=a,x=c,R=s,O={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},C=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 tH},Applicative:function(){return tj},Apply:function(){return tN},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t5},ChainRecDepthFirst:function(){return t7},Compactable:function(){return tX},Do:function(){return ns},Extend:function(){return t$},Filterable:function(){return tJ},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return nt},Functor:function(){return tP},FunctorWithIndex:function(){return tD},Monad:function(){return tG},Pointed:function(){return tL},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tI},Unfoldable:function(){return tB},Witherable:function(){return t6},Zero:function(){return tK},_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 ng},apSecond:function(){return tU},append:function(){return S},appendW:function(){return T},bind:function(){return ny},bindTo:function(){return nm},chain:function(){return nv},chainFirst:function(){return tY},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t8},chainWithIndex:function(){return D},chop:function(){return eS},chunksOf:function(){return eI},compact:function(){return tr},comprehension:function(){return ex},concat:function(){return eO},concatW:function(){return eR},cons:function(){return nb},deleteAt:function(){return ea},difference:function(){return eE},dropLeft:function(){return X},dropLeftWhile:function(){return Z},dropRight:function(){return J},duplicate:function(){return tl},elem:function(){return ev},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 tW},flatMap:function(){return e3},flatten:function(){return e5},foldLeft:function(){return F},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return L},fromArray:function(){return na},fromEither:function(){return O},fromEitherK:function(){return nn},fromOption:function(){return R},fromOptionK:function(){return ew},fromPredicate:function(){return x},getDifferenceMagma:function(){return tF},getEq:function(){return tO},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tR},getOrd:function(){return tC},getSemigroup:function(){return tx},getShow:function(){return tw},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tM},guard:function(){return tz},head:function(){return q},init:function(){return B},insertAt:function(){return eo},intercalate:function(){return nd},intersection:function(){return eM},intersperse:function(){return ey},isEmpty:function(){return g},isNonEmpty:function(){return v},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 e4},mapWithIndex:function(){return e9},match:function(){return M},matchLeft:function(){return k},matchLeftW:function(){return E},matchRight:function(){return W},matchRightW:function(){return P},matchW:function(){return C},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 nT},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 w},reverse:function(){return ef},rights:function(){return el},rotate:function(){return eg},scanLeft:function(){return N},scanRight:function(){return A},separate:function(){return e6},sequence:function(){return tv},size:function(){return U},snoc:function(){return nS},some:function(){return nl},sort:function(){return ed},sortBy:function(){return eb},spanLeft:function(){return $},splitAt:function(){return eT},tail:function(){return Y},takeLeft:function(){return V},takeLeftWhile:function(){return z},takeRight:function(){return K},toArray:function(){return nu},traverse:function(){return tg},traverseWithIndex:function(){return t_},unfold:function(){return tT},union:function(){return eC},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 tS},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))},g=function(e){return 0===e.length},v=d.isNonEmpty,_=d.prepend,b=d.prependW,S=d.append,T=d.appendW,I=function(e,t){return e<=0?nc:d.makeBy(t)(e)},w=function(e,t){return I(e,function(){return t})};function x(e){return function(t){return e(t)?[t]:nc}}var R=function(e){return f.Wi(e)?nc:[e.value]},O=function(e){return f.nM(e)?nc:[e.right]},C=function(e,t){return function(n){return v(n)?t(n):e()}},M=C,E=function(e,t){return function(n){return v(n)?t(d.head(n),d.tail(n)):e()}},k=E,F=k,P=function(e,t){return function(n){return v(n)?t(d.init(n),d.last(n)):e()}},W=P,L=W,D=function(e){return function(t){if(g(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 v(e)?f.G(d.head(e)):f.YP},G=function(e){return v(e)?f.G(d.last(e)):f.YP},Y=function(e){return v(e)?f.G(d.tail(e)):f.YP},B=function(e){return v(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)}},K=function(e){return function(t){return j(e,t)?t:0===e?nc:t.slice(-e)}};function z(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 H=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function $(e){return function(t){var n=eT(H(t,e))(t);return{init:n[0],rest:n[1]}}}var X=function(e){return function(t){return e<=0||g(t)?t:e>=t.length?nc:t.slice(e,t.length)}},J=function(e){return function(t){return e<=0||g(t)?t:e>=t.length?nc:t.slice(0,t.length-e)}};function Z(e){return function(t){var n=H(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 v(e)?t(e):e}},ey=function(e){var t=d.intersperse(e);return function(e){return v(e)?t(e):e}},eg=function(e){var t=d.rotate(e);return function(e){return v(e)?t(e):e}};function ev(e){return function(t,n){if(void 0===n){var r,i=ev(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 v(e)?t(e):e}},eb=function(e){var t=d.sortBy(e);return function(e){return v(e)?t(e):e}},eS=function(e){var t=d.chop(e);return function(e){return v(e)?t(e):nc}},eT=function(e){return function(t){return e>=1&&v(t)?d.splitAt(e)(t):g(t)?[t,nc]:[nc,t]}},eI=function(e){var t=d.chunksOf(e);return function(e){return v(e)?t(e):nc}},ew=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return R(e.apply(void 0,t))}};function ex(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return v(i)?e3(d.head(i),function(t){return r((0,a.pipe)(e,S(t)),d.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:nc};return r(nc,e)}var eR=function(e){return function(t){return g(t)?e:g(e)?t:t.concat(e)}},eO=eR;function eC(e){var t=d.union(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return v(n)&&v(r)?t(r)(n):v(n)?n: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)})}}function eE(e){var t=ev(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,e4(t))},eF=function(e,t){return(0,a.pipe)(e,e9(t))},eP=function(e,t){return(0,a.pipe)(e,e7(t))},eW=function(e,t){return(0,a.pipe)(e,te(t))},eL=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))},eB=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))}},eK=function(e,t,n){return(0,a.pipe)(e,ty(t,n))},ez=function(e,t){return(0,a.pipe)(e,tt(t))},eH=function(e,t){return(0,a.pipe)(e,tc(t))},e$=function(e,t){return(0,a.pipe)(e,tf(t))},eX=function(e){var t=tg(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,t3(t))},e0=d.of,e1=function(){return nc},e2=function(e){return function(t){return t.concat(e())}},e8=e2,e7=function(e){return e3(function(t){return(0,a.pipe)(e,e4(t))})},e3=(0,a.dual)(2,function(e,t){return(0,a.pipe)(e,D(function(e,n){return t(n,e)}))}),e5=e3(a.identity),e4=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)}},tg=function(e){var t=t_(e);return function(e){return t(function(t,n){return e(n)})}},tv=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,S(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,S(t))}}),t(n,i))})}},tb=function(e){var t=t4(e);return function(e){return function(n){return t(n,e)}}},tS=function(e){var t=t9(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(f.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tI="ReadonlyArray",tw=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},tx=function(){return{concat:function(e,t){return g(e)?t:g(t)?e:e.concat(t)}}},tR=function(){return{concat:tx().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])})})},tC=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=eC(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)}}},tF=function(e){var t=eE(e);return{concat:function(e,n){return t(n)(e)}}},tP={URI:tI,map:ek},tW=(0,c.flap)(tP),tL={URI:tI,of:e0},tD={URI:tI,map:ek,mapWithIndex:eF},tN={URI:tI,map:ek,ap:eP},tA=(0,r.apFirst)(tN),tU=(0,r.apSecond)(tN),tj={URI:tI,map:ek,ap:eP,of:e0},tq={URI:tI,map:ek,ap:eP,chain:e3},tG={URI:tI,map:ek,ap:eP,of:e0,chain:e3},tY=(0,i.chainFirst)(tq),tB={URI:tI,unfold:tT},tV={URI:tI,map:ek,alt:ej},tK={URI:tI,zero:e1},tz=(0,h.guard)(tK,tL),tH={URI:tI,map:ek,ap:eP,of:e0,alt:ej,zero:e1},t$={URI:tI,map:ek,extend:e$},tX={URI:tI,compact:tr,separate:e6},tJ={URI:tI,map:ek,compact:tr,separate:e6,filter:eW,filterMap:eL,partition:eD,partitionMap:eN},tZ={URI:tI,map:ek,mapWithIndex:eF,compact:tr,separate:e6,filter:eW,filterMap:eL,partition:eD,partitionMap:eN,partitionMapWithIndex:eU,partitionWithIndex:eA,filterMapWithIndex:ez,filterWithIndex:eH},tQ={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY},t0={URI:tI,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eB,foldMapWithIndex:eV,reduceRightWithIndex:eK},t1={URI:tI,map:ek,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tv},t2={URI:tI,map:ek,mapWithIndex:eF,reduce:eq,foldMap:eG,reduceRight:eY,reduceWithIndex:eB,foldMapWithIndex:eV,reduceRightWithIndex:eK,traverse:eX,sequence:tv,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:eP,chain:e3,chainRec:eZ},t3=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}},t5={URI:tI,map:ek,ap:eP,chain:e3,chainRec:eQ},t4=(0,m.witherDefault)(t1,tX),t9=(0,m.wiltDefault)(t1,tX),t6={URI:tI,map:ek,compact:tr,separate:e6,filter:eW,filterMap:eL,partition:eD,partitionMap:eN,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tv,wither:t4,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 v(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 g(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)(tP),nh=(0,c.let)(tP),ny=(0,i.bind)(tq),ng=(0,r.apS)(tN),nv=e3,n_=d.range,nb=d.cons,nS=d.snoc,nT=eh,nI={URI:tI,compact:tr,separate:e6,map:ek,ap:eP,of:e0,chain:e3,filter:eW,filterMap:eL,partition:eD,partitionMap:eN,mapWithIndex:eF,partitionMapWithIndex:eU,partitionWithIndex:eA,filterMapWithIndex:ez,filterWithIndex:eH,alt:ej,zero:e1,unfold:tT,reduce:eq,foldMap:eG,reduceRight:eY,traverse:eX,sequence:tv,reduceWithIndex:eB,foldMapWithIndex:eV,reduceRightWithIndex:eK,traverseWithIndex:eJ,extend:e$,wither:t4,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 v},compact:function(){return H},deleteAt:function(){return T},difference:function(){return eR},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 $},filterMap:function(){return X},filterMapWithIndex:function(){return N},filterWithIndex:function(){return A},flap:function(){return ef},foldMap:function(){return em},foldMapWithIndex:function(){return ev},fromFoldable:function(){return P},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 eS},getTraversableWithIndex:function(){return eT},getUnionMonoid:function(){return ei},getUnionSemigroup:function(){return er},getWitherable:function(){return eI},insertAt:function(){return eO},intersection:function(){return ex},isEmpty:function(){return m},isSubmap:function(){return C},keys:function(){return y},lookup:function(){return O},lookupWithKey:function(){return R},map:function(){return J},mapWithIndex:function(){return Z},member:function(){return h},modifyAt:function(){return w},partition:function(){return Q},partitionMap:function(){return ee},partitionMapWithIndex:function(){return L},partitionWithIndex:function(){return D},pop:function(){return x},readonlyMap:function(){return eC},reduce:function(){return es},reduceRight:function(){return eh},reduceRightWithIndex:function(){return e_},reduceWithIndex:function(){return eg},separate:function(){return et},singleton:function(){return F},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return _},toUnfoldable:function(){return b},union:function(){return ew},updateAt:function(){return I},upsertAt:function(){return S},values:function(){return g}});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)}},g=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function v(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 v(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 S=function(e){var t=R(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}}},T=function(e){var t=R(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=w(e);return function(e,n){return t(e,function(){return n})}},w=function(e){var t=R(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 x(e){var t=O(e),n=T(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 R(e){return function(t,n){if(void 0===n){var r,i=R(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=R(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 C(e,t){var n=R(e);return function(r,i){if(void 0===i){var o,a=C(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=C(e,t);return(0,r.fromEquals)(function(e,t){return n(e,t)&&n(t,e)})}function k(e,t){var n=R(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 F=function(e,t){return new Map([[e,t]])};function P(e,t,n){return function(r){var i=R(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 W=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,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 W(e,function(e,n){return t(n)})},j=function(e,t){return B(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 K(e,function(e,n){return t(n)})},Y=function(e,t){return z(e,function(e,n){return t(n)})},B=function(e,t){return(0,i.pipe)(e,A(t))},V=function(e,t){return(0,i.pipe)(e,N(t))},K=function(e,t){return(0,i.pipe)(e,D(t))},z=function(e,t){return(0,i.pipe)(e,L(t))},H=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},$=function(e){return function(t){return j(t,e)}},X=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 W(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=ew(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=ex(e,t);return{concat:function(e,t){return n(t)(e)}}},eu=function(e){return function(){var t=eR(e);return{concat:function(e,n){return t(n)(e)}}}};function ea(){return{URI:en,_E:void 0,map:U,mapWithIndex:W,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y,partitionMapWithIndex:z,partitionWithIndex:K,filterMapWithIndex:V,filterWithIndex:B}}var ec={URI:en,map:U},ef=(0,o.flap)(ec),el=function(){return{URI:en,_E:void 0,map:U,mapWithIndex:W}},ep={URI:en,compact:H,separate:et},ed={URI:en,map:U,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y},es=function(e){var t=eg(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},em=function(e){var t=ev(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))}}},eg=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}}},ev=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=eg(e),r=ev(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))}}},eS=function(e){var t=eT(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}},eT=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:W,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=eT(e);return{URI:en,_E:void 0,map:U,compact:H,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:W,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 ew=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}}},ex=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}}},eR=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=S,eC={URI:en,map:U,compact:H,separate:et,filter:j,filterMap:q,partition:G,partitionMap:Y}},28350:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ez},Applicative:function(){return eU},Apply:function(){return eD},Chain:function(){return ej},Comonad:function(){return eH},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eB},Functor:function(){return eF},FunctorWithIndex:function(){return eL},Monad:function(){return eG},Pointed:function(){return eW},Traversable:function(){return eV},TraversableWithIndex:function(){return eK},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 v},appendW:function(){return g},bind:function(){return eZ},bindTo:function(){return eX},chain:function(){return ti},chainFirst:function(){return eq},chainWithIndex:function(){return B},chop:function(){return V},chunksOf:function(){return z},concat:function(){return P},concatAll:function(){return e5},concatW:function(){return F},cons:function(){return tl},duplicate:function(){return es},empty:function(){return d},extend:function(){return ed},extract:function(){return eR},filter:function(){return tu},filterWithIndex:function(){return ta},flap:function(){return eP},flatMap:function(){return ep},flatten:function(){return em},fold:function(){return tm},foldMap:function(){return ev},foldMapWithIndex:function(){return eS},fromArray:function(){return k},fromReadonlyArray:function(){return x},getEq:function(){return eE},getSemigroup:function(){return eM},getShow:function(){return eC},getUnionSemigroup:function(){return ek},group:function(){return L},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 R},map:function(){return eh},mapWithIndex:function(){return ey},matchLeft:function(){return e4},matchRight:function(){return e9},max:function(){return e3},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 C},readonlyNonEmptyArray:function(){return th},reduce:function(){return eg},reduceRight:function(){return e_},reduceRightWithIndex:function(){return eT},reduceWithIndex:function(){return eb},replicate:function(){return O},reverse:function(){return W},rotate:function(){return w},sequence:function(){return ew},snoc:function(){return tp},sort:function(){return N},sortBy:function(){return T},splitAt:function(){return K},tail:function(){return e1},traverse:function(){return eI},traverseWithIndex:function(){return ex},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return S},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,g=function(e){return function(t){return p(p([],t,!0),[e],!1)}},v=g,_=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},S=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}},T=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=S(e);return function(e){return function(n){return t((0,u.pipe)(n,P(e)))}}},w=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 w(r-n)(t);var i=K(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,P(o))}},x=function(e){return s(e)?c.G(e):c.YP},R=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 R(function(){return e})},C=function(e,t){return e<=t?R(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 x(e.slice())};function F(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var W=function(e){return 1===e.length?e:p([e2(e)],e.slice(0,-1).reverse(),!0)};function L(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}},B=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}},K=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)]}},z=function(e){return V(K(e))},H=function(e,t){return(0,u.pipe)(e,eh(t))},$=function(e,t){return(0,u.pipe)(e,ey(t))},X=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,eg(t,n))},Q=function(e){var t=ev(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=eS(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eo=function(e,t,n){return(0,u.pipe)(e,eT(t,n))},eu=function(e){var t=ex(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,F(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,B(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}},eg=function(e,t){return eb(e,function(e,n,r){return t(n,r)})},ev=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 eT(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)}},eS=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]))}}},eT=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},eI=function(e){var t=ex(e);return function(e){return t(function(t,n){return e(n)})}},ew=function(e){return ex(e)(u.SK)},ex=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,v(t))}}),t(i,n[i]));return r}}},eR=c.YM,eO="ReadonlyNonEmptyArray",eC=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},eM=function(){return{concat:P}},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)}}},eF={URI:eO,map:H},eP=(0,a.flap)(eF),eW={URI:eO,of:ea},eL={URI:eO,map:H,mapWithIndex:$},eD={URI:eO,map:H,ap:X},eN=(0,r.apFirst)(eD),eA=(0,r.apSecond)(eD),eU={URI:eO,map:H,ap:X,of:ea},ej={URI:eO,map:H,ap:X,chain:ep},eq=(0,i.chainFirst)(ej),eG={URI:eO,map:H,ap:X,of:ea,chain:ep},eY={URI:eO,reduce:Z,foldMap:Q,reduceRight:ee},eB={URI:eO,reduce:Z,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},eV={URI:eO,map:H,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:ew},eK={URI:eO,map:H,mapWithIndex:$,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:ew,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},ez={URI:eO,map:H,alt:en},eH={URI:eO,map:H,extend:J,extract:eR},e$=ea(c.F4),eX=(0,a.bindTo)(eF),eJ=(0,a.let)(eF),eZ=(0,i.bind)(ej),eQ=(0,r.apS)(eD),e0=eR,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)}},e3=function(e){var t=l.max(e);return function(e){return e.reduce(t.concat)}},e5=function(e){return function(t){return t.reduce(e.concat)}},e4=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),v(e(e2(t))))}},tn=function(e){return tt(function(){return e})},tr=function(e){var t=e5(e);return function(e){return(0,u.flow)(Y(e),t)}},ti=ep;function to(e){var t=N(e),n=L(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 x(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,P([t]))},td=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(_(e,t,n))}},ts=G,tm=e5,th={URI:eO,of:ea,map:H,mapWithIndex:$,ap:X,chain:ep,extend:J,extract:eR,reduce:Z,foldMap:Q,reduceRight:ee,traverse:et,sequence:ew,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},97054:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return eW},Filterable:function(){return eL},FilterableWithIndex:function(){return eD},Foldable:function(){return eB},FoldableWithIndex:function(){return eV},Functor:function(){return eM},FunctorWithIndex:function(){return ek},Traversable:function(){return eK},TraversableWithIndex:function(){return ez},URI:function(){return eR},Witherable:function(){return eX},_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 ew},deleteAt:function(){return S},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 z},filter:function(){return eg},filterMap:function(){return ev},filterMapWithIndex:function(){return q},filterWithIndex:function(){return G},flap:function(){return eE},foldMap:function(){return eT},foldMapWithIndex:function(){return k},fromEntries:function(){return K},fromFoldable:function(){return Y},fromFoldableMap:function(){return B},fromRecord:function(){return l},getDifferenceMagma:function(){return eY},getEq:function(){return eO},getFoldable:function(){return eF},getFoldableWithIndex:function(){return eP},getIntersectionSemigroup:function(){return eG},getMonoid:function(){return eC},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 X},isEmpty:function(){return s},isSubrecord:function(){return x},keys:function(){return h},lookup:function(){return R},map:function(){return M},mapWithIndex:function(){return C},modifyAt:function(){return I},partition:function(){return e_},partitionMap:function(){return eb},partitionMapWithIndex:function(){return U},partitionWithIndex:function(){return j},pop:function(){return w},readonlyRecord:function(){return eQ},reduce:function(){return eS},reduceRight:function(){return eI},reduceRightWithIndex:function(){return F},reduceWithIndex:function(){return E},separate:function(){return ex},sequence:function(){return D},singleton:function(){return P},size:function(){return d},some:function(){return H},toEntries:function(){return V},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return v},traverse:function(){return L},traverseWithIndex:function(){return W},union:function(){return $},updateAt:function(){return T},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 g=y(c.Ord)(function(e,t){return[e,t]});function v(e){return function(t){var n=g(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 S(e){return function(t){if(!u.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var T=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 w(e){var t=S(e);return function(n){var r=R(e,n);return u.Wi(r)?u.YP:u.G([r.value,t(n)])}}function x(e){return function(t,n){if(void 0===n){var r=x(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 R(e,t){return void 0===t?function(t){return R(e,t)}:u.e$.call(t,e)?u.G(t[e]):u.YP}var O={};function C(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 C(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 F(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return F(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 P=function(e,t){var n;return(n={})[e]=t,n};function W(e){var t=ey(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function L(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=L(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),ew)}}},A=function(e){var t=L(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),ex)}}};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=B(e,t);return function(e){return n(e,i.identity)}}function B(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=g,K=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function z(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function H(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}var $=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}}},X=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,C(t))},ee=function(e){var t=eS(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},et=function(e){return function(t){var n=eT(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,eg(t))},ei=function(e,t){return(0,i.pipe)(e,ev(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=F(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}}},eg=function(e){return G(function(t,n){return e(n)})},ev=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 eS(){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 eS(c.Ord).apply(void 0,e)}function eT(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 eT(c.Ord)(e)}function eI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=F(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 ew=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},ex=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)},eR="ReadonlyRecord";function eO(e){var t=x(e);return(0,r.fromEquals)(function(e,n){return t(e)(n)&&t(n)(e)})}function eC(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:eR,map:Z},eE=(0,o.flap)(eM),ek={URI:eR,map:Z,mapWithIndex:Q},eF=function(e){return{URI:eR,reduce:ee(e),foldMap:et(e),reduceRight:en(e)}},eP=function(e){return{URI:eR,reduce:ee(e),foldMap:et(e),reduceRight:en(e),reduceWithIndex:ea(e),foldMapWithIndex:ec(e),reduceRightWithIndex:ef(e)}},eW={URI:eR,compact:ew,separate:ex},eL={URI:eR,map:Z,compact:ew,separate:ex,filter:er,filterMap:ei,partition:eo,partitionMap:eu},eD={URI:eR,map:Z,mapWithIndex:Q,compact:ew,separate:ex,filter:er,filterMap:ei,partition:eo,partitionMap:eu,filterMapWithIndex:ed,filterWithIndex:es,partitionMapWithIndex:el,partitionWithIndex:ep},eN=function(e){return{URI:eR,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:em(e),sequence:eh(e)}},eA=function(e){return{URI:eR,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:eR,map:Z,reduce:ee(e),foldMap:et(e),reduceRight:en(e),traverse:t.traverse,sequence:t.sequence,compact:ew,separate:ex,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:(0,f.witherDefault)(t,eW),wilt:(0,f.wiltDefault)(t,eW)}},ej=function(e){var t=$(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=X(e);return{concat:function(e,n){return t(n)(e)}}},eY=function(){return{concat:function(e,t){return J(t)(e)}}},eB={URI:eR,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord)},eV={URI:eR,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),reduceWithIndex:ea(c.Ord),foldMapWithIndex:ec(c.Ord),reduceRightWithIndex:ef(c.Ord)},eK={URI:eR,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:D},ez={URI:eR,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)},eH=(0,f.witherDefault)(eK,eW),e$=(0,f.wiltDefault)(eK,eW),eX={URI:eR,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:D,compact:ew,separate:ex,filter:er,filterMap:ei,partition:eo,partitionMap:eu,wither:eH,wilt:e$},eJ=_;function eZ(e,t){return u.e$.call(void 0===t?this:t,e)}var eQ={URI:eR,map:Z,reduce:ee(c.Ord),foldMap:et(c.Ord),reduceRight:en(c.Ord),traverse:em(c.Ord),sequence:D,compact:ew,separate:ex,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:eH,wilt:e$}},99156:function(e,t,n){n.r(t),n.d(t,{URI:function(){return D},chain:function(){return d},compact:function(){return x},difference:function(){return v},elem:function(){return W},empty:function(){return C},every:function(){return F},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 T},intersection:function(){return y},isEmpty:function(){return M},isSubset:function(){return P},map:function(){return p},partition:function(){return m},partitionMap:function(){return g},reduce:function(){return _},reduceRight:function(){return S},remove:function(){return I},separate:function(){return R},singleton:function(){return c},size:function(){return E},some:function(){return k},toReadonlyArray:function(){return L},toSet:function(){return l},toggle:function(){return w},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=W(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=W(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=W(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=W(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=W(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 C;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function g(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=W(e),l=W(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 v(e){var t=W(e);return function(n,r){if(void 0===r){var i=v(e);return function(e){return i(e,n)}}return s(function(e){return!t(e,r)})(n)}}function _(e){var t=L(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function b(e,t){var n=L(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var S=function(e){var t=L(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function T(e){var t=W(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)}}},w=function(e){var t=W(e),n=I(e),r=T(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},x=function(e){return O(e)(i.identity)};function R(e,t){return function(n){var r=W(e),i=W(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=W(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 C=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 F(e){return(0,o.not)(k((0,o.not)(e)))}function P(e){var t=W(e);return function(n,r){if(void 0===r){var i=P(e);return function(e){return i(e,n)}}return F(function(e){return t(e,r)})(n)}}function W(e){return function(t,n){if(void 0===n){var r,i=W(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 L=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=P(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:C}},q=function(e){return{concat:y(e)}},G=function(e){return{concat:v(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 R},getJoinSemigroup:function(){return w},getLastSemigroup:function(){return _},getMeetSemigroup:function(){return x},getObjectSemigroup:function(){return v},getStructSemigroup:function(){return T},getTupleSemigroup:function(){return S},intercalate:function(){return s},last:function(){return h},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return C},semigroupAny:function(){return M},semigroupProduct:function(){return P},semigroupString:function(){return k},semigroupSum:function(){return F},semigroupVoid:function(){return g},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,g=f(void 0),v=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},_=h,b=m,S=d,T=p,I=l,w=c,x=a,R=s;function O(e){var t=y(e);return function(e,n){return void 0===n?t(e):t(e)(n)}}var C={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}},F={concat:function(e,t){return e+t}},P={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 C},difference:function(){return h},elem:function(){return N},empty:function(){return k},every:function(){return L},filter:function(){return l},filterMap:function(){return E},foldMap:function(){return S},fromArray:function(){return O},getDifferenceMagma:function(){return _},getEq:function(){return a},getIntersectionSemigroup:function(){return v},getShow:function(){return u},getUnionMonoid:function(){return g},getUnionSemigroup:function(){return y},insert:function(){return w},intersection:function(){return s},isEmpty:function(){return F},isSubset:function(){return D},map:function(){return c},partition:function(){return p},partitionMap:function(){return m},reduce:function(){return b},reduceRight:function(){return T},remove:function(){return x},separate:function(){return M},singleton:function(){return I},size:function(){return P},some:function(){return W},subset:function(){return U},toArray:function(){return A},toggle:function(){return R},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(F(n))return r;if(F(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(F(n)||F(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)}},g=function(e){return{concat:y(e).concat,empty:new Set}},v=function(e){return{concat:s(e)}},_=function(e){return{concat:h(e)}},b=i.reduce,S=i.foldMap,T=i.reduceRight,I=function(e){return new Set([e])};function w(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 x=function(e){return function(t){return function(n){return l(function(n){return!e.equals(t,n)})(n)}}},R=function(e){var t=N(e),n=x(e),r=w(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}},C=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,F=function(e){return 0===e.size},P=function(e){return e.size},W=i.some,L=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 C},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 g},constant:function(){return d},decrement:function(){return T},dual:function(){return k},flip:function(){return v},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 S},not:function(){return M},pipe:function(){return R},tuple:function(){return b},tupled:function(){return w},unsafeCoerce:function(){return p},untupled:function(){return x}});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),g=y;function v(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 S(e){return e+1}function T(e){return e-1}function I(e){throw Error("Called `absurd` function which should be uncallable")}function w(e){return function(t){return e.apply(void 0,t)}}function x(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}function R(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,C=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 g},console:function(){return v},const:function(){return tS},contravariant:function(){return _},date:function(){return b},distributiveLattice:function(){return f},either:function(){return tE},eitherT:function(){return S},endomorphism:function(){return t7},eq:function(){return t3},extend:function(){return T},field:function(){return I},filterable:function(){return w},filterableWithIndex:function(){return x},foldable:function(){return R},foldableWithIndex:function(){return O},fromEither:function(){return n_},fromIO:function(){return C},fromReader:function(){return E},fromState:function(){return F},fromTask:function(){return P},fromThese:function(){return W},function:function(){return e8},functor:function(){return tp},functorWithIndex:function(){return L},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 B},ioRef:function(){return V},joinSemilattice:function(){return K},json:function(){return z},lattice:function(){return H},magma:function(){return fv},map:function(){return f_},meetSemilattice:function(){return $},monad:function(){return X},monadIO:function(){return J},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return fb},naturalTransformation:function(){return ee},nonEmptyArray:function(){return fS},number:function(){return tT},option:function(){return td},optionT:function(){return Y},ord:function(){return e6},ordering:function(){return et},pipeable:function(){return fP},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 bS},readonlyRecord:function(){return bT},readonlySet:function(){return bI},readonlyTuple:function(){return ed},record:function(){return es},refinement:function(){return em},ring:function(){return eh},semigroup:function(){return St},semigroupoid:function(){return ey},semiring:function(){return eg},separated:function(){return ts},set:function(){return TZ},show:function(){return ev},state:function(){return k},stateReaderTaskEither:function(){return eb},stateT:function(){return e_},store:function(){return eS},string:function(){return Sn},strong:function(){return eT},struct:function(){return eI},task:function(){return ec},taskEither:function(){return el},taskOption:function(){return ew},taskThese:function(){return eO},these:function(){return ex},theseT:function(){return eR},traced:function(){return eC},traversable:function(){return eM},traversableWithIndex:function(){return eE},tree:function(){return ek},tuple:function(){return eF},unfoldable:function(){return eP},validationT:function(){return eW},void:function(){return eL},witherable:function(){return Sr},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 eX},Eq:function(){return e$},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 eH},foldW:function(){return eK},isBoolean:function(){return eB},match:function(){return ez},matchW:function(){return eV}});var a={};n.r(a),n.d(a,{booleanAlgebraBoolean:function(){return e4},booleanAlgebraVoid:function(){return e3},getDualBooleanAlgebra:function(){return e5},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 g={};n.r(g),n.d(g,{compact:function(){return tm},getCompactableComposition:function(){return ty},separate:function(){return th}});var v={};n.r(v),n.d(v,{error:function(){return t_},info:function(){return tb},log:function(){return tg},warn:function(){return tv}});var _={};n.r(_);var b={};n.r(b),n.d(b,{Eq:function(){return tI},Ord:function(){return tO},create:function(){return tC},eqDate:function(){return tw},eqMonth:function(){return tx},eqYear:function(){return tR},now:function(){return tM}});var S={};n.r(S),n.d(S,{alt:function(){return tG},altValidation:function(){return tz},ap:function(){return tU},bimap:function(){return tY},chain:function(){return tj},chainNullableK:function(){return tN},flatMap:function(){return tq},fromNullable:function(){return tL},fromNullableK:function(){return tD},getEitherM:function(){return t8},getOrElse:function(){return tX},left:function(){return tF},leftF:function(){return tW},map:function(){return tA},mapBoth:function(){return tB},mapError:function(){return tK},mapLeft:function(){return tV},match:function(){return tH},matchE:function(){return t$},orElse:function(){return tJ},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tk},rightF:function(){return tP},swap:function(){return t1},tapError:function(){return tQ},toUnion:function(){return t2}});var T={};n.r(T);var I={};n.r(I),n.d(I,{fieldNumber:function(){return t9},gcd:function(){return t5},lcm:function(){return t4}});var w={};n.r(w),n.d(w,{filter:function(){return ne},filterMap:function(){return nt},getFilterableComposition:function(){return ni},partition:function(){return nn},partitionMap:function(){return nr}});var x={};n.r(x);var R={};n.r(R),n.d(R,{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 nv},reduceRightWithIndex:function(){return ng},reduceWithIndex:function(){return nh}});var C={};n.r(C),n.d(C,{chainFirstIOK:function(){return nT},chainIOK:function(){return nS},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 n$},Monad:function(){return n3},Pointed:function(){return nJ},Profunctor:function(){return n4},Strong:function(){return n6},URI:function(){return nH},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 nL},ask:function(){return nx},asks:function(){return nR},asksReader:function(){return nM},asksReaderW:function(){return nC},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rh},chainFirst:function(){return ry},chainFirstW:function(){return rg},chainW:function(){return rm},compose:function(){return nq},first:function(){return nB},flap:function(){return nX},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 nK},let:function(){return rn},local:function(){return nO},map:function(){return nW},of:function(){return nN},promap:function(){return nG},reader:function(){return rv},right:function(){return nz},second:function(){return nV},sequenceArray:function(){return rs},tap:function(){return n5},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 rS},asks:function(){return rT},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rw},fromReaderK:function(){return rI},tapReader:function(){return rR}});var k={};n.r(k),n.d(k,{Applicative:function(){return rV},Apply:function(){return rG},Chain:function(){return rK},FromState:function(){return r$},Functor:function(){return rU},Monad:function(){return rz},Pointed:function(){return rq},URI:function(){return rA},ap:function(){return rW},apFirst:function(){return rY},apS:function(){return r1},apSecond:function(){return rB},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r4},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rX},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 rP},modify:function(){return rM},of:function(){return rL},put:function(){return rC},sequenceArray:function(){return r5},state:function(){return it},tap:function(){return rH},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r7},traverseReadonlyArrayWithIndex:function(){return r8},traverseReadonlyNonEmptyArrayWithIndex:function(){return r2}});var F={};n.r(F),n.d(F,{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 P={};n.r(P),n.d(P,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var W={};n.r(W),n.d(W,{fromTheseK:function(){return im}});var L={};n.r(L),n.d(L,{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 iX},Apply:function(){return iz},Chain:function(){return iJ},ChainRec:function(){return i7},Comonad:function(){return i8},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iB},Monad:function(){return iZ},Pointed:function(){return iK},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iU},ap:function(){return iO},apFirst:function(){return iH},apS:function(){return i6},apSecond:function(){return i$},bind:function(){return i9},bindTo:function(){return i5},chain:function(){return oe},chainFirst:function(){return iQ},duplicate:function(){return iF},extend:function(){return iE},extract:function(){return ik},flap:function(){return iV},flatMap:function(){return iM},flatten:function(){return iP},foldMap:function(){return iL},getEq:function(){return iY},getShow:function(){return iG},identity:function(){return ot},let:function(){return i4},map:function(){return iR},of:function(){return iC},reduce:function(){return iW},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 oF},Applicative:function(){return o_},Apply:function(){return oy},Chain:function(){return ob},ChainRec:function(){return ox},Do:function(){return oO},FromIO:function(){return oR},Functor:function(){return op},Monad:function(){return oS},MonadIO:function(){return ow},Pointed:function(){return oh},URI:function(){return ol},ap:function(){return ou},apFirst:function(){return og},apS:function(){return ok},apSecond:function(){return ov},as:function(){return od},asUnit:function(){return os},bind:function(){return oE},bindTo:function(){return oC},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 oT},traverseArray:function(){return oD},traverseArrayWithIndex:function(){return oL},traverseReadonlyArrayWithIndex:function(){return oW},traverseReadonlyNonEmptyArrayWithIndex:function(){return oP}});var G={};n.r(G),n.d(G,{Alt:function(){return uB},ApT:function(){return ah},Applicative:function(){return aR},ApplicativePar:function(){return uL},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 uw},Monad:function(){return uA},MonadIO:function(){return uV},MonadThrow:function(){return uK},Pointed:function(){return uC},URI:function(){return u_},alt:function(){return uy},altW:function(){return ug},ap:function(){return ul},apFirst:function(){return uk},apFirstW:function(){return uF},apS:function(){return as},apSW:function(){return am},apSecond:function(){return uP},apSecondW:function(){return uW},apW:function(){return up},as:function(){return ux},asUnit:function(){return uR},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 uH},chainFirstW:function(){return aE},chainIOK:function(){return u4},chainOptionK:function(){return uJ},chainOptionKW:function(){return uZ},chainW:function(){return aC},filterOrElse:function(){return ar},filterOrElseW:function(){return ai},flap:function(){return uO},flatMap:function(){return us},flatMapEither:function(){return u3},flatMapIO:function(){return u5},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 oz},fromEitherK:function(){return ao},fromIO:function(){return oH},fromIOK:function(){return uz},fromOption:function(){return u$},fromOptionK:function(){return uX},fromPredicate:function(){return an},getAltIOValidation:function(){return uS},getApplicativeIOValidation:function(){return ub},getApplyMonoid:function(){return aL},getApplySemigroup:function(){return aW},getCompactable:function(){return uT},getFilterable:function(){return uI},getIOValidation:function(){return aN},getOrElse:function(){return o1},getOrElseW:function(){return o2},getSemigroup:function(){return aD},ioEither:function(){return aP},left:function(){return oY},leftIO:function(){return oK},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 o$},matchE:function(){return oJ},matchEW:function(){return oQ},matchW:function(){return oX},of:function(){return ud},orElse:function(){return o5},orElseFirst:function(){return ak},orElseFirstIOK:function(){return o6},orElseFirstW:function(){return aF},orElseW:function(){return o4},orLeft:function(){return ue},right:function(){return oB},rightIO:function(){return oV},sequenceArray:function(){return aT},sequenceSeqArray:function(){return ax},swap:function(){return ut},tap:function(){return uq},tapEither:function(){return uG},tapError:function(){return o9},tapIO:function(){return uY},throwError:function(){return uv},toUnion:function(){return o3},traverseArray:function(){return aS},traverseArrayWithIndex:function(){return ab},traverseReadonlyArrayWithIndex:function(){return ag},traverseReadonlyArrayWithIndexSeq:function(){return a_},traverseReadonlyNonEmptyArrayWithIndex:function(){return ay},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return av},traverseSeqArray:function(){return aw},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 az},fromF:function(){return aj},fromNullable:function(){return aq},fromNullableK:function(){return aG},fromOptionK:function(){return aB},fromPredicate:function(){return aK},getOptionM:function(){return a2},getOrElse:function(){return aX},map:function(){return aJ},match:function(){return aH},matchE:function(){return a$},some:function(){return aA},zero:function(){return aU}});var B={};n.r(B),n.d(B,{Alt:function(){return cz},Alternative:function(){return cX},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 cF},Monad:function(){return cJ},MonadIO:function(){return cZ},Pointed:function(){return cD},URI:function(){return ck},Zero:function(){return cH},alt:function(){return cv},altW:function(){return c_},ap:function(){return cm},apFirst:function(){return cA},apS:function(){return fc},apSecond:function(){return cU},as:function(){return cP},asUnit:function(){return cW},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 cT},filter:function(){return cw},filterMap:function(){return cx},flap:function(){return cL},flatMap:function(){return cy},flatMapEither:function(){return c3},flatMapIO:function(){return c8},flatMapNullable:function(){return c5},flatMapOption:function(){return c7},flatten:function(){return cg},fold:function(){return cr},fromEither:function(){return a4},fromEitherK:function(){return fe},fromIO:function(){return a9},fromIOEither:function(){return a6},fromIOK:function(){return c4},fromNullable:function(){return cf},fromNullableK:function(){return cl},fromOption:function(){return a5},fromOptionK:function(){return cd},fromPredicate:function(){return a3},getOrElse:function(){return co},getOrElseW:function(){return cu},guard:function(){return c$},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 cS},of:function(){return ch},partition:function(){return cR},partitionMap:function(){return cO},separate:function(){return cI},some:function(){return a7},tap:function(){return cB},tapEither:function(){return cV},tapIO:function(){return cK},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 K={};n.r(K);var z={};n.r(z),n.d(z,{parse:function(){return fy},stringify:function(){return fg}});var H={};n.r(H);var $={};n.r($);var X={};n.r(X);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 fx},Monoid:function(){return fO},Semigroup:function(){return fR},eqOrdering:function(){return fk},invert:function(){return fM},match:function(){return fI},matchW:function(){return fT},monoidOrdering:function(){return fF},reverse:function(){return fw},semigroupOrdering:function(){return fE},sign:function(){return fC}});var en={};n.r(en);var er={};n.r(er);var ei={};n.r(ei),n.d(ei,{random:function(){return fW},randomBool:function(){return fN},randomElem:function(){return fA},randomInt:function(){return fL},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 lx},Bifunctor:function(){return lA},Chain:function(){return lk},Do:function(){return po},FromEither:function(){return lP},FromReader:function(){return lW},Functor:function(){return lb},Monad:function(){return lF},MonadThrow:function(){return lV},Pointed:function(){return lw},URI:function(){return lh},alt:function(){return ld},altW:function(){return ls},ap:function(){return lu},apFirst:function(){return lR},apFirstW:function(){return lO},apS:function(){return pl},apSW:function(){return pp},apSecond:function(){return lC},apSecondW:function(){return lM},apW:function(){return la},as:function(){return lS},asUnit:function(){return lT},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 pv},chainEitherK:function(){return l3},chainEitherKW:function(){return l5},chainFirst:function(){return pb},chainFirstEitherK:function(){return l4},chainFirstEitherKW:function(){return l9},chainFirstReaderK:function(){return lY},chainFirstReaderKW:function(){return lB},chainFirstW:function(){return pS},chainOptionK:function(){return lH},chainOptionKW:function(){return l$},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 fH},foldW:function(){return fX},fromEither:function(){return fY},fromEitherK:function(){return pi},fromOption:function(){return lK},fromOptionK:function(){return lz},fromPredicate:function(){return pt},fromReader:function(){return fB},fromReaderK:function(){return lG},getAltReaderValidation:function(){return l_},getApplicativeReaderValidation:function(){return lv},getApplyMonoid:function(){return pR},getApplySemigroup:function(){return px},getCompactable:function(){return ly},getFilterable:function(){return lg},getOrElse:function(){return fJ},getOrElseW:function(){return fZ},getReaderValidation:function(){return pC},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 fz},matchEW:function(){return f$},matchW:function(){return fK},of:function(){return lc},orElse:function(){return f8},orElseFirst:function(){return pT},orElseFirstW:function(){return pI},orElseW:function(){return f7},orLeft:function(){return f5},readerEither:function(){return pw},right:function(){return fj},rightReader:function(){return fq},sequenceArray:function(){return pg},swap:function(){return f4},tap:function(){return lL},tapEither:function(){return lD},tapError:function(){return f3},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 pF},flatMap:function(){return pP},fromNaturalTransformation:function(){return pL},fromReader:function(){return pW},getReaderM:function(){return pD},map:function(){return pE},of:function(){return pM}});var ea={};n.r(ea),n.d(ea,{ApT:function(){return dR},Applicative:function(){return p5},Apply:function(){return p8},Chain:function(){return p4},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 dw},apSW:function(){return dx},apSecond:function(){return p3},apW:function(){return pK},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 dT},bindTo:function(){return dS},bindW:function(){return dI},chain:function(){return dF},chainFirst:function(){return dW},chainFirstIOK:function(){return dd},chainFirstReaderK:function(){return dv},chainFirstReaderKW:function(){return d_},chainFirstW:function(){return dL},chainIOK:function(){return dp},chainReaderK:function(){return dy},chainReaderKW:function(){return dg},chainW:function(){return dP},flap:function(){return p1},flatMap:function(){return pH},flatMapIO:function(){return di},flatMapReader:function(){return du},flatten:function(){return pX},flattenW:function(){return p$},fromIO:function(){return pA},fromIOK:function(){return dl},fromReader:function(){return pN},fromReaderK:function(){return dh},local:function(){return pU},map:function(){return pB},of:function(){return pz},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 dC},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 d3},Do:function(){return sl},FromIO:function(){return se},FromTask:function(){return sc},Functor:function(){return dH},Monad:function(){return d5},MonadIO:function(){return d4},MonadTask:function(){return d6},Pointed:function(){return dZ},URI:function(){return dK},ap:function(){return dG},apFirst:function(){return d0},apS:function(){return sm},apSecond:function(){return d1},as:function(){return d$},asUnit:function(){return dX},bind:function(){return ss},bindTo:function(){return sp},chain:function(){return sR},chainFirst:function(){return sO},chainFirstIOK:function(){return sa},chainIOK:function(){return su},delay:function(){return dN},flap:function(){return dJ},flatMap:function(){return dB},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 dz},getSemigroup:function(){return sE},let:function(){return sd},map:function(){return dq},never:function(){return sf},of:function(){return dY},sequenceArray:function(){return sT},sequenceSeqArray:function(){return sx},tap:function(){return sr},tapIO:function(){return si},task:function(){return sC},taskSeq:function(){return sM},traverseArray:function(){return sS},traverseArrayWithIndex:function(){return sb},traverseReadonlyArrayWithIndex:function(){return sg},traverseReadonlyArrayWithIndexSeq:function(){return s_},traverseReadonlyNonEmptyArrayWithIndex:function(){return sy},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sv},traverseSeqArray:function(){return sw},traverseSeqArrayWithIndex:function(){return sI}});var ef={};n.r(ef),n.d(ef,{ApT:function(){return mj},ApplicativePar:function(){return s7},ApplicativeSeq:function(){return s5},ApplyPar:function(){return s1},ApplySeq:function(){return s3},Chain:function(){return s4},Do:function(){return mP},FromIO:function(){return mt},FromReader:function(){return mr},FromTask:function(){return mn},Functor:function(){return sX},Monad:function(){return s9},MonadIO:function(){return s6},MonadTask:function(){return me},Pointed:function(){return s0},URI:function(){return s$},ap:function(){return sY},apFirst:function(){return s2},apS:function(){return mA},apSW:function(){return mU},apSecond:function(){return s8},apW:function(){return sB},as:function(){return sJ},asUnit:function(){return sZ},ask:function(){return mv},asks:function(){return m_},asksReaderTask:function(){return sA},asksReaderTaskW:function(){return sN},bind:function(){return mD},bindTo:function(){return mW},bindW:function(){return mN},chain:function(){return mX},chainFirst:function(){return mZ},chainFirstIOK:function(){return mg},chainFirstReaderIOK:function(){return mM},chainFirstReaderIOKW:function(){return mC},chainFirstReaderK:function(){return mI},chainFirstReaderKW:function(){return mw},chainFirstTaskK:function(){return mF},chainFirstW:function(){return mQ},chainIOK:function(){return my},chainReaderIOK:function(){return mO},chainReaderIOKW:function(){return mR},chainReaderK:function(){return mS},chainReaderKW:function(){return mT},chainTaskK:function(){return mk},chainW:function(){return mJ},flap:function(){return sQ},flatMap:function(){return sK},flatMapIO:function(){return mu},flatMapReader:function(){return mc},flatMapReaderIO:function(){return mf},flatMapTask:function(){return ma},flatten:function(){return sH},flattenW:function(){return sz},fromIO:function(){return sW},fromIOK:function(){return mh},fromReader:function(){return sF},fromReaderIO:function(){return sL},fromReaderIOK:function(){return mx},fromReaderK:function(){return mb},fromTask:function(){return sP},fromTaskK:function(){return mE},getMonoid:function(){return m7},getSemigroup:function(){return m8},let:function(){return mL},local:function(){return sD},map:function(){return sG},of:function(){return sV},readerTask:function(){return m1},readerTaskSeq:function(){return m2},run:function(){return m3},sequenceArray:function(){return mz},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 mK},traverseArrayWithIndex:function(){return mV},traverseReadonlyArrayWithIndex:function(){return mG},traverseReadonlyArrayWithIndexSeq:function(){return mB},traverseReadonlyNonEmptyArrayWithIndex:function(){return mq},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return mY},traverseSeqArray:function(){return m$},traverseSeqArrayWithIndex:function(){return mH}});var el={};n.r(el),n.d(el,{Alt:function(){return yv},ApT:function(){return y4},ApplicativePar:function(){return yn},ApplicativeSeq:function(){return yi},ApplyPar:function(){return h4},ApplySeq:function(){return yr},Bifunctor:function(){return yg},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 h5},URI:function(){return hJ},alt:function(){return hz},altW:function(){return hH},ap:function(){return hG},apFirst:function(){return h9},apFirstW:function(){return h6},apS:function(){return y3},apSW:function(){return y5},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 gc},chainEitherK:function(){return yL},chainEitherKW:function(){return yD},chainFirst:function(){return gl},chainFirstEitherK:function(){return yN},chainFirstEitherKW:function(){return yA},chainFirstIOK:function(){return yV},chainFirstTaskK:function(){return yH},chainFirstW:function(){return gp},chainIOEitherK:function(){return yX},chainIOEitherKW:function(){return y$},chainIOK:function(){return yB},chainNullableK:function(){return hS},chainOptionK:function(){return yS},chainOptionKW:function(){return yT},chainTaskK:function(){return yz},chainTaskOptionK:function(){return hk},chainTaskOptionKW:function(){return hE},chainW:function(){return gf},filterOrElse:function(){return yj},filterOrElseW:function(){return yq},flap:function(){return h3},flatMap:function(){return hB},flatMapEither:function(){return yE},flatMapIO:function(){return yk},flatMapIOEither:function(){return yP},flatMapNullable:function(){return yC},flatMapOption:function(){return yM},flatMapTask:function(){return yF},flatMapTaskOption:function(){return yW},flatten:function(){return hK},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 hF},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 yK},fromTaskOption:function(){return ha},fromTaskOptionK:function(){return hM},getAltTaskValidation:function(){return hQ},getApplicativeTaskValidation:function(){return hZ},getApplyMonoid:function(){return gg},getApplySemigroup:function(){return gy},getCompactable:function(){return h0},getFilterable:function(){return h1},getOrElse:function(){return hm},getOrElseW:function(){return hh},getSemigroup:function(){return gv},getTaskValidation:function(){return g_},left:function(){return m4},leftIO:function(){return hn},leftTask:function(){return he},let:function(){return y2},liftNullable:function(){return yw},liftOption:function(){return yx},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 h$},orElse:function(){return hT},orElseFirst:function(){return gd},orElseFirstIOK:function(){return hx},orElseFirstTaskK:function(){return hR},orElseFirstW:function(){return gs},orElseW:function(){return hI},orLeft:function(){return hO},right:function(){return m9},rightIO:function(){return ht},rightTask:function(){return m6},sequenceArray:function(){return gi},sequenceSeqArray:function(){return ga},swap:function(){return hC},tap:function(){return ys},tapEither:function(){return ym},tapError:function(){return hw},tapIO:function(){return yh},tapTask:function(){return yy},taskEither:function(){return gm},taskEitherSeq:function(){return gh},taskify:function(){return yJ},throwError:function(){return hX},toUnion:function(){return hv},traverseArray:function(){return gr},traverseArrayWithIndex:function(){return gn},traverseReadonlyArrayWithIndex:function(){return y6},traverseReadonlyArrayWithIndexSeq:function(){return gt},traverseReadonlyNonEmptyArrayWithIndex:function(){return y9},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ge},traverseSeqArray:function(){return gu},traverseSeqArrayWithIndex:function(){return go},tryCatch:function(){return hy},tryCatchK:function(){return hg}});var ep={};n.r(ep),n.d(ep,{Alt:function(){return vQ},ApT:function(){return _3},ApplicativePar:function(){return vk},ApplicativeSeq:function(){return vP},ApplyPar:function(){return vR},ApplySeq:function(){return vF},Bifunctor:function(){return vZ},Chain:function(){return vW},Do:function(){return _Z},FromEither:function(){return vU},FromIO:function(){return vj},FromReader:function(){return vG},FromTask:function(){return vq},Functor:function(){return vS},Monad:function(){return vL},MonadIO:function(){return vD},MonadTask:function(){return vN},MonadThrow:function(){return vA},Pointed:function(){return vx},URI:function(){return vy},alt:function(){return vs},altW:function(){return vm},ap:function(){return va},apFirst:function(){return vO},apFirstW:function(){return vC},apS:function(){return _8},apSW:function(){return _7},apSecond:function(){return vM},apSecondW:function(){return vE},apW:function(){return vc},as:function(){return vT},asUnit:function(){return vI},ask:function(){return v0},asks:function(){return v1},asksReaderTaskEither:function(){return gQ},asksReaderTaskEitherW:function(){return gZ},bimap:function(){return vi},bind:function(){return _1},bindTo:function(){return _Q},bindW:function(){return _2},bracket:function(){return _X},bracketW:function(){return _J},chain:function(){return bu},chainEitherK:function(){return _w},chainEitherKW:function(){return _x},chainFirst:function(){return bc},chainFirstEitherK:function(){return _R},chainFirstEitherKW:function(){return _O},chainFirstIOK:function(){return _A},chainFirstReaderEitherK:function(){return v5},chainFirstReaderEitherKW:function(){return v3},chainFirstReaderIOK:function(){return _i},chainFirstReaderIOKW:function(){return _r},chainFirstReaderK:function(){return v8},chainFirstReaderKW:function(){return v7},chainFirstReaderTaskK:function(){return _t},chainFirstReaderTaskKW:function(){return _e},chainFirstTaskEitherK:function(){return v9},chainFirstTaskEitherKW:function(){return v4},chainFirstTaskK:function(){return _q},chainFirstW:function(){return bf},chainIOEitherK:function(){return _z},chainIOEitherKW:function(){return _K},chainIOK:function(){return _N},chainNullableK:function(){return gX},chainOptionK:function(){return _a},chainOptionKW:function(){return _c},chainReaderEitherK:function(){return _$},chainReaderEitherKW:function(){return _H},chainReaderIOK:function(){return _V},chainReaderIOKW:function(){return _B},chainReaderK:function(){return _G},chainReaderKW:function(){return _Y},chainReaderTaskK:function(){return _k},chainReaderTaskKW:function(){return _E},chainTaskEitherK:function(){return _M},chainTaskEitherKW:function(){return _C},chainTaskK:function(){return _j},chainW:function(){return ba},filterOrElse:function(){return _P},filterOrElseW:function(){return _W},flap:function(){return vw},flatMap:function(){return vl},flatMapEither:function(){return _h},flatMapIO:function(){return _v},flatMapIOEither:function(){return _T},flatMapNullable:function(){return _s},flatMapOption:function(){return _m},flatMapReader:function(){return _b},flatMapReaderEither:function(){return _I},flatMapReaderIO:function(){return _S},flatMapReaderTask:function(){return _g},flatMapTask:function(){return __},flatMapTaskEither:function(){return _y},flatten:function(){return vd},flattenW:function(){return vp},fold:function(){return gG},foldW:function(){return gB},fromEither:function(){return gP},fromEitherK:function(){return _L},fromIO:function(){return gL},fromIOEither:function(){return gN},fromIOEitherK:function(){return g3},fromIOK:function(){return _D},fromNullable:function(){return gH},fromNullableK:function(){return g$},fromOption:function(){return _o},fromOptionK:function(){return _u},fromPredicate:function(){return _F},fromReader:function(){return gW},fromReaderEither:function(){return gA},fromReaderEitherK:function(){return g4},fromReaderIOK:function(){return _n},fromReaderK:function(){return v2},fromReaderTaskK:function(){return v6},fromTask:function(){return gD},fromTaskEither:function(){return gb},fromTaskEitherK:function(){return g5},fromTaskK:function(){return _U},getAltReaderTaskValidation:function(){return vb},getApplicativeReaderTaskValidation:function(){return v_},getApplyMonoid:function(){return bh},getApplySemigroup:function(){return bm},getCompactable:function(){return vg},getFilterable:function(){return vv},getOrElse:function(){return gV},getOrElseW:function(){return gK},getReaderTaskValidation:function(){return bg},getSemigroup:function(){return by},left:function(){return gS},leftIO:function(){return gE},leftReader:function(){return gR},leftReaderIO:function(){return gF},leftReaderTask:function(){return gC},leftTask:function(){return gw},let:function(){return _0},liftNullable:function(){return _l},liftOption:function(){return _p},local:function(){return gJ},map:function(){return vn},mapBoth:function(){return vr},mapError:function(){return vo},mapLeft:function(){return vu},match:function(){return gU},matchE:function(){return gq},matchEW:function(){return gY},matchW:function(){return gj},of:function(){return vf},orElse:function(){return g0},orElseFirst:function(){return bl},orElseFirstW:function(){return bp},orElseW:function(){return g1},orLeft:function(){return g8},readerTaskEither:function(){return bd},readerTaskEitherSeq:function(){return bs},right:function(){return gT},rightIO:function(){return gM},rightReader:function(){return gx},rightReaderIO:function(){return gk},rightReaderTask:function(){return gO},rightTask:function(){return gI},run:function(){return bv},sequenceArray:function(){return bn},sequenceSeqArray:function(){return bo},swap:function(){return g7},tap:function(){return vY},tapEither:function(){return vB},tapError:function(){return g2},tapIO:function(){return vV},tapReader:function(){return vz},tapReaderEither:function(){return vH},tapReaderIO:function(){return vJ},tapReaderTask:function(){return vX},tapTask:function(){return vK},tapTaskEither:function(){return v$},throwError:function(){return vh},toUnion:function(){return gz},traverseArray:function(){return bt},traverseArrayWithIndex:function(){return be},traverseReadonlyArrayWithIndex:function(){return _4},traverseReadonlyArrayWithIndexSeq:function(){return _6},traverseReadonlyNonEmptyArrayWithIndex:function(){return _5},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return _9},traverseSeqArray:function(){return bi},traverseSeqArrayWithIndex:function(){return br}});var ed={};n.r(ed),n.d(ed,{Bifunctor:function(){return b3},Comonad:function(){return b4},Foldable:function(){return b9},Functor:function(){return b1},Semigroupoid:function(){return b5},Traversable:function(){return b6},URI:function(){return b0},bimap:function(){return bG},compose:function(){return bV},duplicate:function(){return bH},extend:function(){return bK},extract:function(){return bz},flap:function(){return b2},foldMap:function(){return bX},fst:function(){return bw},getApplicative:function(){return bM},getApply:function(){return bO},getChain:function(){return bE},getChainRec:function(){return bF},getMonad:function(){return bk},map:function(){return b8},mapFst:function(){return bY},mapLeft:function(){return b7},mapSnd:function(){return bB},readonlyTuple:function(){return Se},reduce:function(){return b$},reduceRight:function(){return bJ},sequence:function(){return bQ},snd:function(){return bx},swap:function(){return bR},traverse:function(){return bZ}});var es={};n.r(es),n.d(es,{Compactable:function(){return Tv},Filterable:function(){return T_},FilterableWithIndex:function(){return Tb},Foldable:function(){return TC},FoldableWithIndex:function(){return TM},Functor:function(){return Ts},FunctorWithIndex:function(){return Th},Traversable:function(){return TE},TraversableWithIndex:function(){return Tk},URI:function(){return Tf},Witherable:function(){return TW},collect:function(){return Sf},compact:function(){return Ta},deleteAt:function(){return Sm},difference:function(){return SB},elem:function(){return Sq},empty:function(){return TL},every:function(){return SU},filter:function(){return Te},filterMap:function(){return Tt},filterMapWithIndex:function(){return SP},filterWithIndex:function(){return SW},flap:function(){return Tm},foldMap:function(){return To},foldMapWithIndex:function(){return SI},fromEntries:function(){return SN},fromFoldable:function(){return SL},fromFoldableMap:function(){return SA},getDifferenceMagma:function(){return TO},getEq:function(){return Tp},getFoldable:function(){return Ty},getFoldableWithIndex:function(){return Tg},getIntersectionSemigroup:function(){return TR},getMonoid:function(){return Td},getShow:function(){return Tl},getTraversable:function(){return TS},getTraversableWithIndex:function(){return TT},getUnionMonoid:function(){return Tx},getUnionSemigroup:function(){return Tw},getWitherable:function(){return TI},has:function(){return Ss},hasOwnProperty:function(){return TN},insertAt:function(){return TD},intersection:function(){return SY},isEmpty:function(){return Su},isSubrecord:function(){return Sv},keys:function(){return Sc},lookup:function(){return S_},map:function(){return SS},mapWithIndex:function(){return Sb},modifyAt:function(){return Sy},partition:function(){return Tn},partitionMap:function(){return Tr},partitionMapWithIndex:function(){return Sk},partitionWithIndex:function(){return SF},pop:function(){return Sg},record:function(){return TA},reduce:function(){return Ti},reduceRight:function(){return Tu},reduceRightWithIndex:function(){return Sw},reduceWithIndex:function(){return ST},separate:function(){return Tc},sequence:function(){return SC},singleton:function(){return Sx},size:function(){return So},some:function(){return Sj},toArray:function(){return Sl},toEntries:function(){return SD},toUnfoldable:function(){return Sp},traverse:function(){return SO},traverseWithIndex:function(){return SR},union:function(){return SG},updateAt:function(){return Sh},upsertAt:function(){return Sd},wilt:function(){return SE},wither:function(){return SM}});var em={};n.r(em),n.d(em,{and:function(){return TB},compose:function(){return TK},fromEitherK:function(){return Tj},fromOptionK:function(){return TU},id:function(){return Tq},not:function(){return TG},or:function(){return TY},zero:function(){return TV}});var eh={};n.r(eh),n.d(eh,{getFunctionRing:function(){return TX},getTupleRing:function(){return T$},negate:function(){return TH},tuple:function(){return Tz}});var ey={};n.r(ey);var eg={};n.r(eg),n.d(eg,{getFunctionSemiring:function(){return TJ}});var ev={};n.r(ev),n.d(ev,{getStructShow:function(){return T2},getTupleShow:function(){return T1},showBoolean:function(){return T8},showNumber:function(){return T3},showString:function(){return T7},struct:function(){return TQ},tuple:function(){return T0}});var e_={};n.r(e_),n.d(e_,{ap:function(){return T9},chain:function(){return T6},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 T4},of:function(){return T5}});var eb={};n.r(eb),n.d(eb,{Alt:function(){return wk},Applicative:function(){return wc},Apply:function(){return wr},Bifunctor:function(){return wE},Chain:function(){return wf},FromEither:function(){return wS},FromIO:function(){return wT},FromReader:function(){return ww},FromState:function(){return wl},FromTask:function(){return wI},Functor:function(){return I9},Monad:function(){return wg},MonadIO:function(){return wv},MonadTask:function(){return w_},MonadThrow:function(){return wb},Pointed:function(){return wn},URI:function(){return I4},alt:function(){return I3},altW:function(){return I7},ap:function(){return Iq},apFirst:function(){return wi},apFirstW:function(){return wo},apS:function(){return xr},apSW:function(){return xi},apSecond:function(){return wu},apSecondW:function(){return wa},apW:function(){return IG},as:function(){return I6},asUnit:function(){return we},ask:function(){return wF},asks:function(){return wP},asksStateReaderTaskEither:function(){return IO},asksStateReaderTaskEitherW:function(){return IR},bimap:function(){return IU},bind:function(){return xt},bindTo:function(){return w6},bindW:function(){return xn},chain:function(){return xl},chainEitherK:function(){return wY},chainEitherKW:function(){return wB},chainFirst:function(){return xd},chainFirstEitherK:function(){return wV},chainFirstEitherKW:function(){return wK},chainFirstIOK:function(){return wQ},chainFirstReaderK:function(){return wN},chainFirstReaderKW:function(){return wA},chainFirstTaskK:function(){return w5},chainFirstW:function(){return xs},chainIOEitherK:function(){return w8},chainIOEitherKW:function(){return w2},chainIOK:function(){return wZ},chainOptionK:function(){return wq},chainOptionKW:function(){return wG},chainReaderK:function(){return wL},chainReaderKW:function(){return wD},chainReaderTaskEitherK:function(){return IF},chainReaderTaskEitherKW:function(){return Ik},chainStateK:function(){return wy},chainTaskEitherK:function(){return w1},chainTaskEitherKW:function(){return w0},chainTaskK:function(){return w3},chainW:function(){return xp},evalState:function(){return xy},evaluate:function(){return w4},execState:function(){return xg},execute:function(){return w9},filterOrElse:function(){return wH},filterOrElseW:function(){return w$},flap:function(){return wt},flatMap:function(){return IV},flatMapEither:function(){return IZ},flatMapIO:function(){return IH},flatMapIOEither:function(){return IJ},flatMapOption:function(){return IQ},flatMapReader:function(){return IX},flatMapReaderTaskEither:function(){return I0},flatMapState:function(){return I1},flatMapTask:function(){return I$},flatMapTaskEither:function(){return Iz},flatten:function(){return I8},flattenW:function(){return I2},fromEither:function(){return Iy},fromEitherK:function(){return wX},fromIO:function(){return Iv},fromIOEither:function(){return IT},fromIOEitherK:function(){return IC},fromIOK:function(){return wJ},fromOption:function(){return wU},fromOptionK:function(){return wj},fromPredicate:function(){return wz},fromReader:function(){return Ig},fromReaderEither:function(){return II},fromReaderK:function(){return wW},fromReaderTaskEither:function(){return Iw},fromReaderTaskEitherK:function(){return IE},fromState:function(){return Ib},fromStateK:function(){return wh},fromTask:function(){return I_},fromTaskEither:function(){return IS},fromTaskEitherK:function(){return IM},fromTaskK:function(){return w7},get:function(){return wp},gets:function(){return wm},left:function(){return Iu},leftIO:function(){return Is},leftReader:function(){return Ip},leftState:function(){return Ih},leftTask:function(){return If},let:function(){return xe},local:function(){return Ix},map:function(){return IA},mapLeft:function(){return Ij},modify:function(){return ws},of:function(){return IY},put:function(){return wd},right:function(){return Ia},rightIO:function(){return Id},rightReader:function(){return Il},rightState:function(){return Im},rightTask:function(){return Ic},run:function(){return xv},sequenceArray:function(){return xf},stateReaderTaskEither:function(){return xm},stateReaderTaskEitherSeq:function(){return xh},tap:function(){return wx},tapEither:function(){return wR},tapIO:function(){return wO},tapReader:function(){return wM},tapTask:function(){return wC},throwError:function(){return I5},traverseArray:function(){return xc},traverseArrayWithIndex:function(){return xa},traverseReadonlyArrayWithIndex:function(){return xu},traverseReadonlyNonEmptyArrayWithIndex:function(){return xo}});var eS={};n.r(eS),n.d(eS,{Comonad:function(){return xk},Functor:function(){return xM},URI:function(){return xC},duplicate:function(){return xR},experiment:function(){return xT},extend:function(){return xw},extract:function(){return xx},flap:function(){return xE},map:function(){return xO},peeks:function(){return xS},seek:function(){return x_},seeks:function(){return xb},store:function(){return xF}});var eT={};n.r(eT),n.d(eT,{fanOut:function(){return xW},fanout:function(){return xD},split:function(){return xP},splitStrong:function(){return xL}});var eI={};n.r(eI),n.d(eI,{evolve:function(){return xA},getAssignSemigroup:function(){return xN}});var ew={};n.r(ew),n.d(ew,{Alt:function(){return Rj},Alternative:function(){return RY},ApT:function(){return R6},ApplicativePar:function(){return RC},ApplicativeSeq:function(){return Rk},ApplyPar:function(){return Rx},ApplySeq:function(){return RE},Chain:function(){return RF},Compactable:function(){return Rz},Do:function(){return R7},Filterable:function(){return RH},FromEither:function(){return RP},FromIO:function(){return RW},FromTask:function(){return RL},Functor:function(){return Rb},Monad:function(){return RB},MonadIO:function(){return RV},MonadTask:function(){return RK},Pointed:function(){return Rw},URI:function(){return R_},Zero:function(){return Rq},alt:function(){return Ru},altW:function(){return Ra},ap:function(){return x6},apFirst:function(){return RR},apS:function(){return R9},apSecond:function(){return RO},as:function(){return RS},asUnit:function(){return RT},bind:function(){return R4},bindTo:function(){return R3},chain:function(){return Ol},chainEitherK:function(){return RQ},chainFirst:function(){return Op},chainFirstEitherK:function(){return R0},chainFirstIOK:function(){return RJ},chainFirstTaskK:function(){return R8},chainIOK:function(){return RX},chainNullableK:function(){return x3},chainOptionK:function(){return x4},chainTaskK:function(){return R2},compact:function(){return Rl},filter:function(){return Rd},filterMap:function(){return Rs},flap:function(){return RI},flatMap:function(){return Rt},flatMapIO:function(){return Rr},flatMapTask:function(){return Ri},flatten:function(){return Ro},fold:function(){return xX},foldW:function(){return xZ},fromEither:function(){return xY},fromEitherK:function(){return RZ},fromIO:function(){return xB},fromIOK:function(){return R$},fromNullable:function(){return x1},fromNullableK:function(){return x7},fromOption:function(){return xG},fromOptionK:function(){return x5},fromPredicate:function(){return xq},fromTask:function(){return xV},fromTaskEither:function(){return xK},fromTaskK:function(){return R1},getOrElse:function(){return xQ},getOrElseW:function(){return x0},guard:function(){return RG},let:function(){return R5},map:function(){return x9},match:function(){return xz},matchE:function(){return x$},matchEW:function(){return xJ},matchW:function(){return xH},none:function(){return Rf},of:function(){return Re},partition:function(){return Rm},partitionMap:function(){return Rh},separate:function(){return Rp},sequenceArray:function(){return Ou},sequenceSeqArray:function(){return Of},some:function(){return xj},tap:function(){return RD},tapEither:function(){return RN},tapIO:function(){return RA},tapTask:function(){return RU},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 x2},tryCatchK:function(){return x8},zero:function(){return Rc}});var ex={};n.r(ex),n.d(ex,{ApT:function(){return Co},Bifunctor:function(){return O8},Foldable:function(){return O3},FromEither:function(){return O4},FromThese:function(){return O7},Functor:function(){return O0},Pointed:function(){return O2},Traversable:function(){return O5},URI:function(){return OQ},bimap:function(){return OB},both:function(){return Og},elem:function(){return Ct},exists:function(){return Cn},flap:function(){return O1},fold:function(){return OS},foldMap:function(){return OH},foldW:function(){return O_},fromOption:function(){return O6},fromOptionK:function(){return Ce},fromOptions:function(){return OD},fromPredicate:function(){return O9},getApplicative:function(){return OO},getApply:function(){return OR},getChain:function(){return OC},getEq:function(){return Ow},getLeft:function(){return OE},getLeftOnly:function(){return OW},getMonad:function(){return OM},getRight:function(){return Ok},getRightOnly:function(){return OL},getSemigroup:function(){return Ox},getShow:function(){return OI},isBoth:function(){return Om},isLeft:function(){return Od},isRight:function(){return Os},left:function(){return Oh},leftOrBoth:function(){return OF},map:function(){return OK},mapLeft:function(){return OV},match:function(){return Ob},matchW:function(){return Ov},of:function(){return OZ},reduce:function(){return Oz},reduceRight:function(){return O$},right:function(){return Oy},rightOrBoth:function(){return OP},sequence:function(){return OJ},swap:function(){return OT},these:function(){return Cc},toTuple:function(){return Ci},toTuple2:function(){return Cr},traverse:function(){return OX},traverseReadonlyArrayWithIndex:function(){return Ca},traverseReadonlyNonEmptyArrayWithIndex:function(){return Cu}});var eR={};n.r(eR),n.d(eR,{ap:function(){return Ch},bimap:function(){return Cg},both:function(){return Cp},chain:function(){return Cy},getTheseM:function(){return CI},left:function(){return Cl},leftF:function(){return Cs},map:function(){return Cm},mapLeft:function(){return Cv},match:function(){return C_},matchE:function(){return Cb},right:function(){return Cf},rightF:function(){return Cd},swap:function(){return CS},toTuple2:function(){return CT}});var eO={};n.r(eO),n.d(eO,{ApT:function(){return Mu},Bifunctor:function(){return C7},FromEither:function(){return C3},FromIO:function(){return Mt},FromTask:function(){return Mr},FromThese:function(){return C6},Functor:function(){return C1},Pointed:function(){return C8},URI:function(){return CX},bifunctorTaskThese:function(){return Md},bimap:function(){return Cz},both:function(){return CR},flap:function(){return C2},fold:function(){return CU},foldW:function(){return Cq},fromEither:function(){return Ck},fromIO:function(){return CP},fromIOEither:function(){return CW},fromIOK:function(){return Mn},fromOption:function(){return C5},fromOptionK:function(){return C4},fromPredicate:function(){return C9},fromTask:function(){return CL},fromTaskK:function(){return Mi},fromThese:function(){return CF},fromTheseK:function(){return Me},functorTaskThese:function(){return Mp},getApplicative:function(){return CZ},getApply:function(){return CJ},getChain:function(){return CQ},getMonad:function(){return C0},getSemigroup:function(){return Mh},left:function(){return Cw},leftIO:function(){return CE},leftTask:function(){return CC},map:function(){return CK},mapLeft:function(){return CH},match:function(){return CD},matchE:function(){return CA},matchEW:function(){return Cj},matchW:function(){return CN},of:function(){return C$},right:function(){return Cx},rightIO:function(){return CM},rightTask:function(){return CO},swap:function(){return CG},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 eC={};n.r(eC),n.d(eC,{Functor:function(){return Mw},URI:function(){return MI},censor:function(){return M_},flap:function(){return Mx},getComonad:function(){return Mb},listen:function(){return Mg},listens:function(){return Mv},map:function(){return MT},traced:function(){return MR},tracks:function(){return My}});var eM={};n.r(eM),n.d(eM,{getTraversableComposition:function(){return MM},sequence:function(){return MC},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 M4},ap:function(){return MH},apFirst:function(){return En},apS:function(){return Eh},apSecond:function(){return Er},bind:function(){return Em},bindTo:function(){return Ed},chain:function(){return Ev},chainFirst:function(){return Ea},drawForest:function(){return MW},drawTree:function(){return ML},duplicate:function(){return MJ},elem:function(){return Ey},exists:function(){return Eg},extend:function(){return MX},extract:function(){return M8},flap:function(){return M6},flatMap:function(){return M$},flatten:function(){return MZ},fold:function(){return Mj},foldMap:function(){return M1},getEq:function(){return MF},getShow:function(){return Mk},let:function(){return Es},make:function(){return ME},map:function(){return MQ},of:function(){return M5},reduce:function(){return M0},reduceRight:function(){return M2},sequence:function(){return M3},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 eF={};n.r(eF),n.d(eF,{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 EX},bimap:function(){return EA},compose:function(){return Eq},duplicate:function(){return EY},extend:function(){return EG},extract:function(){return EB},flap:function(){return EZ},foldMap:function(){return EV},fst:function(){return Eb},getApplicative:function(){return Ex},getApply:function(){return EI},getChain:function(){return ER},getChainRec:function(){return EC},getMonad:function(){return EO},map:function(){return E7},mapFst:function(){return EU},mapLeft:function(){return E3},mapSnd:function(){return Ej},reduce:function(){return EK},reduceRight:function(){return Ez},sequence:function(){return E$},snd:function(){return ES},swap:function(){return ET},traverse:function(){return EH},tuple:function(){return E5}});var eP={};n.r(eP);var eW={};n.r(eW),n.d(eW,{getValidationM:function(){return E4}});var eL={};n.r(eL),n.d(eL,{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 kg},evaluate:function(){return kh},execWriter:function(){return kv},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),eB=function(e){return"boolean"==typeof e},eV=function(e,t){return function(n){return n?t():e()}},eK=eV,ez=eK,eH=ez,e$={equals:function(e,t){return e===t}},eX={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:e$.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}},e3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},e5=e7,e4={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 tg=function(e){return function(){return console.log(e)}},tv=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)}},tS=n(90817),tT=n(76627),tI={equals:function(e,t){return e.valueOf()===t.valueOf()}},tw={equals:function(e,t){return e.getDate()===t.getDate()}},tx={equals:function(e,t){return e.getMonth()===t.getMonth()}},tR={equals:function(e,t){return e.getFullYear()===t.getFullYear()}},tO=(0,e8.pipe)(tT.Ord,e6.contramap(function(e){return e.valueOf()})),tC=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 tF(e){return(0,e8.flow)(tE.left,e.of)}function tP(e){return function(t){return e.map(t,tE.right)}}function tW(e){return function(t){return e.map(t,tE.left)}}function tL(e){return function(t){return(0,e8.flow)(tE.fromNullable(t),e.of)}}function tD(e){var t=tL(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=tB(e);return function(e,n){return function(r){return t(r,e,n)}}}function tB(e){return function(t,n,r){return e.map(t,tE.bimap(n,r))}}function tV(e){var t=tK(e);return function(e){return function(n){return t(n,e)}}}function tK(e){return function(t,n){return e.map(t,tE.mapLeft(n))}}function tz(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 tH(e){return function(t,n){return function(r){return e.map(r,tE.match(t,n))}}}function t$(e){return function(t,n){return function(r){return e.chain(r,tE.match(t,n))}}}function tX(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=t$(e),c=tX(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:tP(e),leftM:tW(e),left:tF(e)}}var t7=n(47797),t3=n(65191);function t5(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 t4(e,t){var n=t.zero,r=t5(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 ng(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 nv(e,t){var n=nm(e,t),r=nh(e,t),i=ny(e,t),o=ng(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 nS(e,t){return function(n){var r=(0,e8.flow)(n,e.fromIO);return function(e){return t.chain(e,r)}}}function nT(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 nw=n(97963),nx=function(){return e8.identity},nR=e8.identity,nO=function(e){return function(t){return function(n){return t(e(n))}}},nC=function(e){return function(t){return e(t)(t)}},nM=nC,nE=function(e,t){return(0,e8.pipe)(e,nW(t))},nk=function(e,t){return(0,e8.pipe)(e,nD(t))},nF=function(e,t){return(0,e8.pipe)(e,nq(t))},nP=function(e,t,n){return(0,e8.pipe)(e,nG(t,n))},nW=function(e){return function(t){return function(n){return e(t(n))}}},nL=function(e){return function(t){return function(n){return t(n)(e(n))}}},nD=nL,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},nB=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])]}},nK=function(e){return tE.fold(function(t){return nw.t$(e(t))},tE.right)},nz=function(e){return tE.fold(tE.left,function(t){return nw.F2(e(t))})},nH="Reader",n$={URI:nH,map:nE},nX=(0,tp.flap)(n$),nJ={URI:nH,of:nN},nZ={URI:nH,map:nE,ap:nk},nQ=(0,eU.apFirst)(nZ),n0=nQ,n1=(0,eU.apSecond)(nZ),n2=n1,n8={URI:nH,map:nE,ap:nk,of:nN},n7={URI:nH,map:nE,ap:nk,chain:nA},n3={URI:nH,map:nE,of:nN,ap:nk,chain:nA},n5=(0,e8.dual)(2,to.tap(n7)),n4={URI:nH,map:nE,promap:nP},n9={URI:nH,compose:nF,id:nY},n6={URI:nH,map:nE,promap:nP,first:nB,second:nV},re={URI:nH,map:nE,promap:nP,left:nK,right:nz},rt=(0,tp.bindTo)(n$),rn=(0,tp.let)(n$),rr=to.bind(n7),ri=rr,ro=nN(nw.F4),ru=(0,eU.apS)(nZ),ra=ru,rc=nN(nw.Xl),rf=function(e){return function(t){return function(n){for(var r=[e(0,nw.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 nw.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=n5,rg=n5,rv={URI:nH,map:nE,of:nN,ap:nk,chain:nA,promap:nP,compose:nF,id:nY,first:nB,second:nV,left:nK,right:nz},r_=(0,eU.getApplySemigroup)(nZ),rb=(0,eG.getApplicativeMonoid)(n8);function rS(e){return function(){return e.fromReader(nx())}}function rT(e){return e.fromReader}function rI(e){return function(t){return(0,e8.flow)(t,e.fromReader)}}function rw(e,t){var n=rI(e);return function(e){return function(r){return t.chain(r,n(e))}}}function rx(e,t){var n=rR(e,t);return function(e){return function(t){return n(t,e)}}}function rR(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]}},rC=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,rP(t))},rF=function(e,t){return(0,e8.pipe)(e,rW(t))},rP=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},rW=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]}}},rL=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:rL},rG={URI:rA,map:rk,ap:rF},rY=(0,eU.apFirst)(rG),rB=(0,eU.apSecond)(rG),rV={URI:rA,map:rk,ap:rF,of:rL},rK={URI:rA,map:rk,ap:rF,chain:rD},rz={URI:rA,map:rk,ap:rF,of:rL,chain:rD},rH=(0,e8.dual)(2,to.tap(rK)),r$={URI:rA,fromState:e8.identity},rX=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(rK),r1=(0,eU.apS)(rG),r2=function(e){return function(t){return function(n){for(var r=e(0,nw.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 nw.Od(e)?t(e):rL(nw.Xl)}},r7=r8,r3=function(e){return r8(function(t,n){return e(n)})},r5=r3(e8.identity),r4=rD,r9=rH,r6=function(e,t){return e(t)[0]},ie=function(e,t){return e(t)[1]},it=rz;function ir(e){return function(){return e.fromState(rO())}}function ii(e){return function(t){return e.fromState(rC(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 ig=function(e,t){return(0,e8.pipe)(e,iR(t))},iv=function(e,t){return(0,e8.pipe)(e,iO(t))},i_=function(e,t,n){return(0,e8.pipe)(e,iW(t,n))},ib=function(e){return function(t,n){return(0,e8.pipe)(t,iL(e)(n))}},iS=function(e,t,n){return(0,e8.pipe)(e,iD(t,n))},iT=function(e,t){return(0,e8.pipe)(e,ij(t))},iI=function(e,t){return(0,e8.pipe)(e,iE(t))},iw=function(e){var t=iN(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},ix=tu.tailRec,iR=function(e){return function(t){return e(t)}},iO=function(e){return function(t){return t(e)}},iC=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,iF=iE(e8.identity),iP=iM(e8.identity),iW=function(e,t){return function(n){return t(e,n)}},iL=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,iB={URI:iq,map:ig},iV=(0,tp.flap)(iB),iK={URI:iq,of:iC},iz={URI:iq,map:ig,ap:iv},iH=(0,eU.apFirst)(iz),i$=(0,eU.apSecond)(iz),iX={URI:iq,map:ig,ap:iv,of:iC},iJ={URI:iq,map:ig,ap:iv,chain:iM},iZ={URI:iq,map:ig,ap:iv,of:iC,chain:iM},iQ=(0,to.chainFirst)(iJ),i0={URI:iq,reduce:i_,foldMap:ib,reduceRight:iS},i1={URI:iq,map:ig,reduce:i_,foldMap:ib,reduceRight:iS,traverse:iw,sequence:iA},i2={URI:iq,map:ig,alt:iT},i8={URI:iq,map:ig,extend:iI,extract:ik},i7={URI:iq,map:ig,ap:iv,chain:iM,chainRec:ix},i3=iC(nw.F4),i5=(0,tp.bindTo)(iB),i4=(0,tp.let)(iB),i9=(0,to.bind)(iJ),i6=(0,eU.apS)(iz),oe=iM,ot={URI:iq,map:ig,ap:iv,of:iC,chain:iM,reduce:i_,foldMap:ib,reduceRight:iS,traverse:iw,sequence:iA,alt:iT,extract:ik,extend:iI,chainRec:ix},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},og=(0,eU.apFirst)(oy),ov=(0,eU.apSecond)(oy),o_={URI:ol,map:on,ap:or,of:oa},ob={URI:ol,map:on,ap:or,chain:oc},oS={URI:ol,map:on,ap:or,of:oa,chain:oc},oT=(0,e8.dual)(2,to.tap(ob)),oI=e8.identity,ow={URI:ol,map:on,ap:or,of:oa,chain:oc,fromIO:oI},ox={URI:ol,map:on,ap:or,chain:oc,chainRec:oi},oR={URI:ol,fromIO:e8.identity},oO=oa(nw.F4),oC=(0,tp.bindTo)(op),oM=(0,tp.let)(op),oE=to.bind(ob),ok=(0,eU.apS)(oy),oF=oa(nw.Xl),oP=function(e){return function(t){return function(){for(var n=[e(0,nw.YM(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},oW=function(e){var t=oP(e);return function(e){return nw.Od(e)?t(e):oF}},oL=oW,oD=function(e){return oW(function(t,n){return e(n)})},oN=oD(e8.identity),oA=oc,oU=oT,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=tF(oh),oB=tk(oh),oV=tP(op),oK=tW(op),oz=oa,oH=oV,o$=tH(op),oX=o$,oJ=t$(oS),oZ=oJ,oQ=oJ,o0=oQ,o1=tX(oS),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)}},o3=t2(op),o5=tJ(oS),o4=o5,o9=(0,e8.dual)(2,tQ(oS)),o6=function(e){return o9(uz(e))},ue=t0(oS),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,tB(op)),ua=uu,uc=(0,e8.dual)(2,tK(op)),uf=uc,ul=tU(oy),up=ul,ud=oB,us=(0,e8.dual)(2,tq(oS)),um=us(e8.identity),uh=um,uy=tG(oS),ug=uy,uv=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 uS(e){var t=tz(oS,e);return{URI:u_,_E:void 0,map:un,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var uT=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=uT(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 uw={URI:u_,map:un},ux=(0,e8.dual)(2,(0,tp.as)(uw)),uR=(0,tp.asUnit)(uw),uO=(0,tp.flap)(uw),uC={URI:u_,of:ud},uM={URI:u_,bimap:uu,mapLeft:uc},uE={URI:u_,map:un,ap:ur},uk=(0,eU.apFirst)(uE),uF=uk,uP=(0,eU.apSecond)(uE),uW=uP,uL={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:oz},uj={URI:u_,fromIO:oH},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)),uB={URI:u_,map:un,alt:ui},uV={URI:u_,map:un,ap:ur,of:ud,chain:us,fromIO:oH},uK={URI:u_,map:un,ap:ur,of:ud,chain:us,throwError:uv},uz=nb(uj),uH=uY,u$=(0,n_.fromOption)(uU),uX=(0,n_.fromOptionK)(uU),uJ=(0,n_.chainOptionK)(uU,uN),uZ=uJ,uQ={fromEither:uU.fromEither},u0=nw.uL(uQ),u1=nw.WE(uQ),u2={flatMap:us},u8=nw.ny(uQ,u2),u7=nw.hU(uQ,u2),u3=nw.iu(uQ,u2),u5=nw.we({fromIO:oH},u2),u4=u5,u9=u3,u6=u3,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(nw.F4),af=(0,tp.bindTo)(uw),al=(0,tp.let)(uw),ap=to.bind(uN),ad=ap,as=(0,eU.apS)(uE),am=as,ah=ud(nw.Xl),ay=function(e){return(0,e8.flow)(oP(e),oo(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},ag=function(e){var t=ay(e);return function(e){return nw.Od(e)?t(e):ah}},av=function(e){return function(t){return function(){var n=e(0,nw.YM(t))();if(nw.nM(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(nw.nM(o))return o;r.push(o.right)}return nw.F2(r)}}},a_=function(e){var t=av(e);return function(e){return nw.Od(e)?t(e):ah}},ab=ag,aS=function(e){return ag(function(t,n){return e(n)})},aT=aS(e8.identity),aI=a_,aw=function(e){return a_(function(t,n){return e(n)})},ax=aw(e8.identity),aR=uL,aO=us,aC=us,aM=uq,aE=uq,ak=o9,aF=o9,aP={URI:u_,bimap:uu,mapLeft:uc,map:un,of:ud,ap:ur,chain:us,alt:ui,fromIO:oH,throwError:uv},aW=(0,eU.getApplySemigroup)(uE),aL=(0,eG.getApplicativeMonoid)(uL),aD=function(e){return(0,eU.getApplySemigroup)(oy)(tE.getSemigroup(e))};function aN(e){var t=ub(e),n=uS(e);return{URI:u_,_E:void 0,map:un,ap:t.ap,of:ud,chain:us,bimap:uu,mapLeft:uc,alt:n.alt,fromIO:oH,throwError:uv}}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 aB(e){return function(t){return(0,e8.flow)(t,e.of)}}function aV(e){var t=aQ(e),n=aB(e);return function(e){return t(n(e))}}function aK(e){return function(t){return function(n){return e.of(td.fromPredicate(t)(n))}}}function az(e){return(0,e8.flow)(td.fromEither,e.of)}function aH(e){return function(t,n){return function(r){return e.map(r,td.match(t,n))}}}function a$(e){return function(t,n){return function(r){return e.chain(r,td.match(t,n))}}}function aX(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=a$(e),u=aX(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),a3=aK(oh),a5=oa,a4=az(oh),a9=aj(op),a6=oo(td.fromEither),ce=aH(op),ct=ce,cn=a$(ob),cr=cn,ci=cn,co=aX(oS),cu=co,ca=oo(td.toUndefined),cc=oo(td.toNullable),cf=aq(oh),cl=aG(oh),cp=aY(oS),cd=aB(oh),cs=aJ(op),cm=aZ(oy),ch=a7,cy=(0,e8.dual)(2,a0(oS)),cg=cy(e8.identity),cv=a1(oS),c_=cv,cb=aU(oh),cS=cb(),cT=tm(op,td.Compactable),cI=th(op,td.Compactable,td.Functor),cw=ne(op,td.Filterable),cx=nt(op,td.Filterable),cR=nn(op,td.Filterable),cO=nr(op,td.Filterable),cC=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,cv(t))},ck="IOOption",cF={URI:ck,map:cC},cP=(0,e8.dual)(2,(0,tp.as)(cF)),cW=(0,tp.asUnit)(cF),cL=(0,tp.flap)(cF),cD={URI:ck,of:ch},cN={URI:ck,map:cC,ap:cM},cA=(0,eU.apFirst)(cN),cU=(0,eU.apSecond)(cN),cj={URI:ck,map:cC,ap:cM,of:ch},cq={URI:ck,map:cC,ap:cM,chain:cy},cG={URI:ck,fromEither:a4},cY={URI:ck,fromIO:a9},cB=(0,e8.dual)(2,to.tap(cq)),cV=(0,e8.dual)(2,(0,n_.tapEither)(cG,cq)),cK=(0,e8.dual)(2,nI(cY,cq)),cz={URI:ck,map:cC,alt:cE},cH={URI:ck,zero:cb},c$=(0,a8.guard)(cH,cD),cX={URI:ck,map:cC,ap:cM,of:ch,alt:cE,zero:cb},cJ={URI:ck,map:cC,ap:cM,of:ch,chain:cy},cZ={URI:ck,map:cC,ap:cM,of:ch,chain:cy,fromIO:a9},cQ={URI:ck,compact:cT,separate:cI},c0={URI:ck,map:cC,compact:cT,separate:cI,filter:function(e,t){return(0,e8.pipe)(e,cw(t))},filterMap:function(e,t){return(0,e8.pipe)(e,cx(t))},partition:function(e,t){return(0,e8.pipe)(e,cR(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,cO(t))}},c1={flatMap:cy},c2={fromIO:cY.fromIO},c8=nw.we(c2,c1),c7=(0,e8.dual)(2,function(e,t){return cy(e,cd(t))}),c3=nw.iu({fromEither:a4},c1),c5=(0,e8.dual)(2,function(e,t){return cy(e,cl(t))}),c4=nb(cY),c9=c8,c6=cK,fe=(0,n_.fromEitherK)(cG),ft=c3,fn=cV,fr=c7,fi=ch(nw.F4),fo=(0,tp.bindTo)(cF),fu=(0,tp.let)(cF),fa=to.bind(cq),fc=(0,eU.apS)(cN),ff=ch(nw.Xl),fl=function(e){return(0,e8.flow)(oP(e),oo(td.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},fp=function(e){var t=fl(e);return function(e){return nw.Od(e)?t(e):ff}},fd=cy,fs=cB,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)},fg=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)},fv=n(76113),f_=n(55116),fb=n(96576),fS=n(43586),fT=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},fI=fT,fw=function(e){return -1===e?1:1===e?-1:0},fx={equals:function(e,t){return e===t}},fR={concat:function(e,t){return 0!==e?e:t}},fO={concat:fR.concat,empty:0},fC=function(e){return e<=-1?-1:e>=1?1:0},fM=fw,fE=fR,fk=fx,fF=fO,fP=n(18896),fW=function(){return Math.random()};function fL(e,t){return(0,e8.pipe)(fW,oo(function(n){return Math.floor((t-e+1)*n+e)}))}function fD(e,t){return(0,e8.pipe)(fW,oo(function(n){return(t-e)*n+e}))}var fN=(0,e8.pipe)(fW,oo(function(e){return e<.5})),fA=function(e){return(0,e8.pipe)(fL(0,e.length-1),oo(function(t){return e[t]}))},fU=tF(nJ),fj=tk(nJ),fq=tP(n$),fG=tW(n$),fY=nN,fB=fq,fV=tH(n$),fK=fV,fz=t$(n3),fH=fz,f$=fz,fX=f$,fJ=tX(n3),fZ=fJ,fQ=t2(n$),f0=nO,f1=nC,f2=f1,f8=tJ(n3),f7=f8,f3=(0,e8.dual)(2,tQ(n3)),f5=t0(n3),f4=t1(n$),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(n$),ln=(0,e8.dual)(3,tB(n$)),lr=ln,li=(0,e8.dual)(2,tK(n$)),lo=li,lu=tU(nZ),la=lu,lc=fj,lf=(0,e8.dual)(2,tq(n3)),ll=lf(e8.identity),lp=ll,ld=tG(n3),ls=ld,lm=fU,lh="ReaderEither",ly=function(e){var t=tE.getCompactable(e);return{URI:lh,_E:void 0,compact:tm(n$,t),separate:th(n$,t,tE.Functor)}};function lg(e){var t=tE.getFilterable(e),n=ly(e),r=ne(n$,t),i=nt(n$,t),o=nn(n$,t),u=nr(n$,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 lv(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=tz(n3,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},lS=(0,e8.dual)(2,(0,tp.as)(lb)),lT=(0,tp.asUnit)(lb),lI=(0,tp.flap)(lb),lw={URI:lh,of:lc},lx={URI:lh,map:f9,ap:f6},lR=(0,eU.apFirst)(lx),lO=lR,lC=(0,eU.apSecond)(lx),lM=lC,lE={URI:lh,map:f9,ap:f6,of:lc},lk={URI:lh,map:f9,ap:f6,chain:lf},lF={URI:lh,map:f9,ap:f6,of:lc,chain:lf},lP={URI:lh,fromEither:fY},lW={URI:lh,fromReader:fB},lL=(0,e8.dual)(2,to.tap(lk)),lD=(0,e8.dual)(2,(0,n_.tapEither)(lP,lk)),lN=(0,e8.dual)(2,rR(lW,lk)),lA={URI:lh,bimap:ln,mapLeft:li},lU={URI:lh,map:f9,alt:le},lj=rS(lW),lq=rT(lW),lG=rI(lW),lY=lN,lB=lN,lV={URI:lh,map:f9,ap:f6,of:lc,chain:lf,throwError:lm},lK=(0,n_.fromOption)(lP),lz=(0,n_.fromOptionK)(lP),lH=(0,n_.chainOptionK)(lP,lk),l$=lH,lX={fromEither:lP.fromEither},lJ={fromReader:lW.fromReader},lZ=nw.uL(lX),lQ=nw.WE(lX),l0={flatMap:lf},l1=nw.ny(lX,l0),l2=nw.hU(lX,l0),l8=nw.iu(lX,l0),l7=nw.on(lJ,l0),l3=l8,l5=l8,l4=lD,l9=lD,l6=l7,pe=l7,pt=(0,n_.fromPredicate)(lP),pn=(0,n_.filterOrElse)(lP,lk),pr=pn,pi=(0,n_.fromEitherK)(lP),po=lc(nw.F4),pu=(0,tp.bindTo)(lb),pa=(0,tp.let)(lb),pc=to.bind(lk),pf=pc,pl=(0,eU.apS)(lx),pp=pl,pd=lc(nw.Xl),ps=function(e){return(0,e8.flow)(rf(e),nW(tE.traverseReadonlyNonEmptyArrayWithIndex(e8.SK)))},pm=function(e){var t=ps(e);return function(e){return nw.Od(e)?t(e):pd}},ph=pm,py=function(e){return pm(function(t,n){return e(n)})},pg=py(e8.identity),pv=lf,p_=lf,pb=lL,pS=lL,pT=f3,pI=f3,pw={URI:lh,bimap:ln,mapLeft:li,map:f9,of:lc,ap:f6,chain:lf,alt:le,throwError:fU},px=(0,eU.getApplySemigroup)(lx),pR=(0,eG.getApplicativeMonoid)(lE),pO=function(e){return(0,eU.getApplySemigroup)(nZ)(tE.getSemigroup(e))};function pC(e){var t=lv(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 pF(e){var t=pP(e);return function(e){return function(n){return t(n,e)}}}function pP(e){return function(t,n){return function(r){return e.chain(t(r),function(e){return n(e)(r)})}}}function pW(e){return function(t){return(0,e8.flow)(t,e.of)}}function pL(e){return function(t){return(0,e8.flow)(t,e)}}function pD(e){var t=pk(e),n=pE(e),r=pF(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:pW(e),fromM:function(e){return function(){return e}}}}var pN=pW(oh),pA=nN,pU=nO,pj=nC,pq=pj,pG=function(e,t){return(0,e8.pipe)(e,pB(t))},pY=function(e,t){return(0,e8.pipe)(e,pV(t))},pB=pE(op),pV=pk(oy),pK=pV,pz=pM(oh),pH=(0,e8.dual)(2,pP(oS)),p$=pH(e8.identity),pX=p$,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:pz},p8={URI:pJ,map:pG,ap:pY},p7=(0,eU.apFirst)(p8),p3=(0,eU.apSecond)(p8),p5={URI:pJ,map:pG,ap:pY,of:pz},p4={URI:pJ,map:pG,ap:pY,chain:pH},p9={URI:pJ,map:pG,of:pz,ap:pY,chain:pH},p6={URI:pJ,map:pG,of:pz,ap:pY,chain:pH,fromIO:pA},de={URI:pJ,fromIO:pA},dt={URI:pJ,fromReader:pN},dn={flatMap:pH},dr={fromIO:de.fromIO},di=nw.we(dr,dn),du=nw.on({fromReader:pN},dn),da=(0,e8.dual)(2,to.tap(p4)),dc=(0,e8.dual)(2,nI(de,p4)),df=(0,e8.dual)(2,rR(dt,p4)),dl=nb(de),dp=di,dd=dc,ds=rS(dt),dm=rT(dt),dh=rI(dt),dy=du,dg=du,dv=df,d_=df,db=pz(nw.F4),dS=(0,tp.bindTo)(pZ),dT=to.bind(p4),dI=dT,dw=(0,eU.apS)(p8),dx=dw,dR=pz(nw.Xl),dO=function(e){return(0,e8.flow)(rf(e),nW(oP(e8.SK)))},dC=function(e){var t=dO(e);return function(e){return nw.Od(e)?t(e):dR}},dM=dC,dE=function(e){return dC(function(t,n){return e(n)})},dk=dE(e8.identity),dF=pH,dP=pH,dW=da,dL=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 dB(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)}},dB=(0,e8.dual)(2,function(e,t){return function(){return Promise.resolve().then(e).then(function(e){return t(e)()})}}),dV=dB(e8.identity),dK="Task";function dz(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:sf}}var dH={URI:dK,map:dA},d$=(0,e8.dual)(2,(0,tp.as)(dH)),dX=(0,tp.asUnit)(dH),dJ=(0,tp.flap)(dH),dZ={URI:dK,of:dY},dQ={URI:dK,map:dA,ap:dU},d0=(0,eU.apFirst)(dQ),d1=(0,eU.apSecond)(dQ),d2={URI:dK,map:dA,ap:dU,of:dY},d8={URI:dK,map:dA,ap:dj},d7={URI:dK,map:dA,ap:dj,of:dY},d3={URI:dK,map:dA,ap:dU,chain:dB},d5={URI:dK,map:dA,of:dY,ap:dU,chain:dB},d4={URI:dK,map:dA,of:dY,ap:dU,chain:dB,fromIO:dD},d9=e8.identity,d6={URI:dK,map:dA,of:dY,ap:dU,chain:dB,fromIO:dD,fromTask:d9},se={URI:dK,fromIO:dD},st={fromIO:se.fromIO},sn=nw.we(st,{flatMap:dB}),sr=(0,e8.dual)(2,to.tap(d3)),si=(0,e8.dual)(2,nI(se,d3)),so=nb(se),su=sn,sa=si,sc={URI:dK,fromIO:dD,fromTask:d9},sf=function(){return new Promise(function(e){})},sl=dY(nw.F4),sp=(0,tp.bindTo)(dH),sd=(0,tp.let)(dH),ss=to.bind(d3),sm=(0,eU.apS)(dQ),sh=dY(nw.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)()})}))}}},sg=function(e){var t=sy(e);return function(e){return nw.Od(e)?t(e):sh}},sv=function(e){return function(t){return function(){return nw.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,nw.YM(t))).then(nw.ri))}}},s_=function(e){var t=sv(e);return function(e){return nw.Od(e)?t(e):sh}},sb=sg,sS=function(e){return sg(function(t,n){return e(n)})},sT=sS(e8.identity),sI=s_,sw=function(e){return s_(function(t,n){return e(n)})},sx=sw(e8.identity),sR=dB,sO=sr,sC={URI:dK,map:dA,of:dY,ap:dU,chain:dB,fromIO:dD,fromTask:d9},sM={URI:dK,map:dA,of:dY,ap:dj,chain:dB,fromIO:dD,fromTask:d9},sE=(0,eU.getApplySemigroup)(d8),sk=(0,eG.getApplicativeMonoid)(d7),sF=pW(dZ),sP=nN,sW=(0,e8.flow)(dD,sP),sL=nW(dD),sD=nO,sN=nC,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 sK(e,function(e){return(0,e8.pipe)(t,sG(e))})},sG=pE(dH),sY=pk(dQ),sB=sY,sV=pM(dZ),sK=(0,e8.dual)(2,pP(d5)),sz=sK(e8.identity),sH=sz,s$="ReaderTask",sX={URI:s$,map:sU},sJ=(0,e8.dual)(2,(0,tp.as)(sX)),sZ=(0,tp.asUnit)(sX),sQ=(0,tp.flap)(sX),s0={URI:s$,of:sV},s1={URI:s$,map:sU,ap:sj},s2=(0,eU.apFirst)(s1),s8=(0,eU.apSecond)(s1),s7={URI:s$,map:sU,ap:sj,of:sV},s3={URI:s$,map:sU,ap:sq},s5={URI:s$,map:sU,ap:sq,of:sV},s4={URI:s$,map:sU,ap:sj,chain:sK},s9={URI:s$,map:sU,of:sV,ap:sj,chain:sK},s6={URI:s$,map:sU,of:sV,ap:sj,chain:sK,fromIO:sW},me={URI:s$,map:sU,of:sV,ap:sj,chain:sK,fromIO:sW,fromTask:sP},mt={URI:s$,fromIO:sW},mn={URI:s$,fromIO:sW,fromTask:sP},mr={URI:s$,fromReader:sF},mi={flatMap:sK},mo={fromIO:mt.fromIO},mu=nw.we(mo,mi),ma=nw.D9({fromTask:sP},mi),mc=nw.on({fromReader:sF},mi),mf=(0,e8.dual)(2,function(e,t){return sK(e,mx(t))}),ml=(0,e8.dual)(2,to.tap(s4)),mp=(0,e8.dual)(2,nI(mt,s4)),md=(0,e8.dual)(2,rR(mr,s4)),ms=(0,e8.dual)(2,is(mn,s4)),mm=(0,e8.dual)(2,function(e,t){return ml(e,mx(t))}),mh=nb(mt),my=mu,mg=mp,mv=rS(mr),m_=rT(mr),mb=rI(mr),mS=mc,mT=mc,mI=md,mw=md,mx=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sL(e.apply(void 0,t))}},mR=mf,mO=mf,mC=mm,mM=mm,mE=il(mn),mk=ma,mF=ms,mP=sV(nw.F4),mW=(0,tp.bindTo)(sX),mL=(0,tp.let)(sX),mD=to.bind(s4),mN=mD,mA=(0,eU.apS)(s1),mU=mA,mj=sV(nw.Xl),mq=function(e){return(0,e8.flow)(rf(e),nW(sy(e8.SK)))},mG=function(e){var t=mq(e);return function(e){return nw.Od(e)?t(e):mj}},mY=function(e){return(0,e8.flow)(rf(e),nW(sv(e8.SK)))},mB=function(e){var t=mY(e);return function(e){return nw.Od(e)?t(e):mj}},mV=mG,mK=function(e){return mG(function(t,n){return e(n)})},mz=mK(e8.identity),mH=mB,m$=function(e){return mB(function(t,n){return e(n)})},mX=sK,mJ=sK,mZ=ml,mQ=ml,m0=m$(e8.identity),m1={URI:s$,map:sU,of:sV,ap:sj,chain:sK,fromIO:sW,fromTask:sP},m2={URI:s$,map:sU,of:sV,ap:sq,chain:sK,fromIO:sW,fromTask:sP},m8=(0,eU.getApplySemigroup)(s3),m7=(0,eG.getApplicativeMonoid)(s5);function m3(e,t){return e(t)()}var m5=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])}}},m4=tF(dZ),m9=tk(dZ),m6=tP(dH),he=tW(dH),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=tH(dH),hf=hc,hl=t$(d5),hp=hl,hd=hl,hs=hd,hm=tX(d5),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 m5(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e().then(nw.F2)];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,nw.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())})}},hg=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)}},hv=t2(dH),h_=tL(dZ),hb=tD(dZ),hS=tN(d5),hT=tJ(d5),hI=hT,hw=(0,e8.dual)(2,tQ(d5)),hx=function(e){return hw(yY(e))},hR=function(e){return hw(yK(e))},hO=t0(d5),hC=t1(dH),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 hB(n,hM(e)(t))}}},hk=hE,hF=function(e){return(0,e8.flow)(e,hu)},hP=function(e,t){return(0,e8.pipe)(e,hN(t))},hW=function(e,t){return(0,e8.pipe)(e,hG(t))},hL=function(e,t){return hB(e,function(e){return(0,e8.pipe)(t,hN(e))})},hD=function(e,t){return(0,e8.pipe)(e,hz(t))},hN=tA(dH),hA=(0,e8.dual)(3,tB(dH)),hU=hA,hj=(0,e8.dual)(2,tK(dH)),hq=hj,hG=tU(dQ),hY=hG,hB=(0,e8.dual)(2,tq(d5)),hV=hB(e8.identity),hK=hV,hz=tG(d5),hH=hz,h$=m9,hX=m4,hJ="TaskEither";function hZ(e,t){var n=(0,eU.ap)(e,tE.getApplicativeValidation(t));return{URI:hJ,_E:void 0,map:hP,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:h$}}function hQ(e){var t=tz(d5,e);return{URI:hJ,_E:void 0,map:hP,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(dH,t),separate:th(dH,t,tE.Functor)}};function h1(e){var t=tE.getFilterable(e),n=h0(e),r=ne(dH,t),i=nt(dH,t),o=nn(dH,t),u=nr(dH,t);return{URI:hJ,_E:void 0,map:hP,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:hP},h8=(0,e8.dual)(2,(0,tp.as)(h2)),h7=(0,tp.asUnit)(h2),h3=(0,tp.flap)(h2),h5={URI:hJ,of:h$},h4={URI:hJ,map:hP,ap:hW},h9=(0,eU.apFirst)(h4),h6=h9,ye=(0,eU.apSecond)(h4),yt=ye,yn={URI:hJ,map:hP,ap:hW,of:h$},yr={URI:hJ,map:hP,ap:hL},yi={URI:hJ,map:hP,ap:hL,of:h$},yo={URI:hJ,map:hP,ap:hW,chain:hB},yu={URI:hJ,map:hP,ap:hW,chain:hB,of:h$},ya={URI:hJ,map:hP,ap:hW,chain:hB,of:h$,fromIO:hr},yc={URI:hJ,map:hP,ap:hW,chain:hB,of:h$,fromIO:hr,fromTask:hi},yf={URI:hJ,map:hP,ap:hW,chain:hB,of:h$,throwError:hX},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)),yg={URI:hJ,bimap:hA,mapLeft:hj},yv={URI:hJ,map:hP,alt:hD},y_=(0,n_.fromOption)(yl),yb=(0,n_.fromOptionK)(yl),yS=(0,n_.chainOptionK)(yl,yo),yT=yS,yI={fromEither:yl.fromEither},yw=nw.uL(yI),yx=nw.WE(yI),yR={flatMap:hB},yO={fromIO:yp.fromIO},yC=nw.ny(yI,yR),yM=nw.hU(yI,yR),yE=nw.iu(yI,yR),yk=nw.we(yO,yR),yF=nw.D9({fromTask:hi},yR),yP=(0,e8.dual)(2,function(e,t){return hB(e,hF(t))}),yW=(0,e8.dual)(3,function(e,t,n){return hB(e,function(e){return ha(function(){return n(e)})(t(e))})}),yL=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),yB=yk,yV=yh,yK=il(yd),yz=yF,yH=yy,y$=yP,yX=yP;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(nw.t$(e)):n(nw.F2(t))}))})}}}var yZ=function(e,t,n){return yQ(e,t,n)},yQ=function(e,t,n){return hB(e,function(e){return dB(t(e),function(t){return hB(n(e,t),function(){return dY(t)})})})},y0=h$(nw.F4),y1=(0,tp.bindTo)(h2),y2=(0,tp.let)(h2),y8=to.bind(yo),y7=y8,y3=(0,eU.apS)(h4),y5=y3,y4=h$(nw.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 nw.Od(e)?t(e):y4}},ge=function(e){return function(t){return function(){return nw.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nw.nM(i)?t:e(r+1,n)().then(function(e){return nw.nM(e)?e:(i.right.push(e.right),i)})})},e(0,nw.YM(t))().then(tE.map(nw.ri)))}}},gt=function(e){var t=ge(e);return function(e){return nw.Od(e)?t(e):y4}},gn=y6,gr=function(e){return y6(function(t,n){return e(n)})},gi=gr(e8.identity),go=gt,gu=function(e){return gt(function(t,n){return e(n)})},ga=gu(e8.identity),gc=hB,gf=hB,gl=ys,gp=ys,gd=hw,gs=hw,gm={URI:hJ,bimap:hA,mapLeft:hj,map:hP,of:h$,ap:hW,chain:hB,alt:hD,fromIO:hr,fromTask:hi,throwError:hX},gh={URI:hJ,bimap:hA,mapLeft:hj,map:hP,of:h$,ap:hL,chain:hB,alt:hD,fromIO:hr,fromTask:hi,throwError:hX},gy=(0,eU.getApplySemigroup)(yr),gg=(0,eG.getApplicativeMonoid)(yi),gv=function(e){return(0,eU.getApplySemigroup)(d8)(tE.getSemigroup(e))};function g_(e){var t=hZ(d2,e),n=hQ(e);return{URI:hJ,_E:void 0,map:hP,ap:t.ap,of:h$,chain:hB,bimap:hA,mapLeft:hj,alt:n.alt,fromIO:hr,fromTask:hi,throwError:hX}}var gb=nN,gS=tF(s0),gT=tk(s0),gI=(0,e8.flow)(m6,gb),gw=(0,e8.flow)(he,gb),gx=function(e){return(0,e8.flow)(e,m9)},gR=function(e){return(0,e8.flow)(e,m4)},gO=tP(sX),gC=tW(sX),gM=(0,e8.flow)(ht,gb),gE=(0,e8.flow)(hn,gb),gk=function(e){return(0,e8.flow)(e,ht)},gF=function(e){return(0,e8.flow)(e,hn)},gP=sV,gW=gx,gL=gM,gD=gI,gN=(0,e8.flow)(hu,gb),gA=function(e){return(0,e8.flow)(e,ho)},gU=tH(sX),gj=gU,gq=t$(s4),gG=gq,gY=gq,gB=gY,gV=tX(s9),gK=gV,gz=t2(sX),gH=tL(s0),g$=tD(s0),gX=tN(s9),gJ=nO,gZ=nC,gQ=gZ,g0=tJ(s9),g1=g0,g2=(0,e8.dual)(2,tQ(s9)),g8=t0(s9),g7=t1(sX),g3=function(e){return(0,e8.flow)(e,gN)},g5=function(e){return(0,e8.flow)(e,gb)},g4=function(e){return(0,e8.flow)(e,gA)},g9=function(e,t){return(0,e8.pipe)(e,vn(t))},g6=function(e,t){return(0,e8.pipe)(e,va(t))},ve=function(e,t){return vl(e,function(e){return(0,e8.pipe)(t,vn(e))})},vt=function(e,t){return(0,e8.pipe)(e,vs(t))},vn=tA(sX),vr=(0,e8.dual)(3,tB(sX)),vi=vr,vo=(0,e8.dual)(2,tK(sX)),vu=vo,va=tU(s1),vc=va,vf=gT,vl=(0,e8.dual)(2,tq(s9)),vp=vl(e8.identity),vd=vp,vs=tG(s9),vm=vs,vh=gS,vy="ReaderTaskEither",vg=function(e){var t=tE.getCompactable(e);return{URI:vy,_E:void 0,compact:tm(sX,t),separate:th(sX,t,tE.Functor)}};function vv(e){var t=tE.getFilterable(e),n=vg(e),r=ne(sX,t),i=nt(sX,t),o=nn(sX,t),u=nr(sX,t);return{URI:vy,_E:void 0,map:g9,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 v_(e,t){var n=(0,eU.ap)(nZ,hZ(e,t));return{URI:vy,_E:void 0,map:g9,ap:function(e,t){return(0,e8.pipe)(e,n(t))},of:vf}}function vb(e){var t=tz(s9,e);return{URI:vy,_E:void 0,map:g9,alt:function(e,n){return(0,e8.pipe)(e,t(n))}}}var vS={URI:vy,map:g9},vT=(0,e8.dual)(2,(0,tp.as)(vS)),vI=(0,tp.asUnit)(vS),vw=(0,tp.flap)(vS),vx={URI:vy,of:vf},vR={URI:vy,map:g9,ap:g6},vO=(0,eU.apFirst)(vR),vC=vO,vM=(0,eU.apSecond)(vR),vE=vM,vk={URI:vy,map:g9,ap:g6,of:vf},vF={URI:vy,map:g9,ap:ve},vP={URI:vy,map:g9,ap:ve,of:vf},vW={URI:vy,map:g9,ap:g6,chain:vl},vL={URI:vy,map:g9,ap:g6,chain:vl,of:vf},vD={URI:vy,map:g9,ap:g6,chain:vl,of:vf,fromIO:gL},vN={URI:vy,map:g9,ap:g6,chain:vl,of:vf,fromIO:gL,fromTask:gD},vA={URI:vy,map:g9,ap:g6,chain:vl,of:vf,throwError:vh},vU={URI:vy,fromEither:gP},vj={URI:vy,fromIO:gL},vq={URI:vy,fromIO:gL,fromTask:gD},vG={URI:vy,fromReader:gW},vY=(0,e8.dual)(2,to.tap(vW)),vB=(0,e8.dual)(2,(0,n_.tapEither)(vU,vW)),vV=(0,e8.dual)(2,nI(vj,vW)),vK=(0,e8.dual)(2,is(vq,vW)),vz=(0,e8.dual)(2,rR(vG,vW)),vH=(0,e8.dual)(2,function(e,t){return vY(e,g4(t))}),v$=(0,e8.dual)(2,function(e,t){return vY(e,g5(t))}),vX=(0,e8.dual)(2,function(e,t){return vY(e,v6(t))}),vJ=(0,e8.dual)(2,function(e,t){return vY(e,_n(t))}),vZ={URI:vy,bimap:vr,mapLeft:vo},vQ={URI:vy,map:g9,alt:vt},v0=rS(vG),v1=rT(vG),v2=rI(vG),v8=vz,v7=vz,v3=vH,v5=vH,v4=v$,v9=v$,v6=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return gO(e.apply(void 0,t))}},_e=vX,_t=vX,_n=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return gk(e.apply(void 0,t))}},_r=vJ,_i=vJ,_o=(0,n_.fromOption)(vU),_u=(0,n_.fromOptionK)(vU),_a=(0,n_.chainOptionK)(vU,vW),_c=_a,_f={fromEither:vU.fromEither},_l=nw.uL(_f),_p=nw.WE(_f),_d={flatMap:vl},_s=nw.ny(_f,_d),_m=nw.hU(_f,_d),_h=nw.iu(_f,_d),_y=(0,e8.dual)(2,function(e,t){return vl(e,g5(t))}),_g=(0,e8.dual)(2,function(e,t){return vl(e,v6(t))}),_v=nw.we({fromIO:gL},_d),__=nw.D9({fromTask:gD},_d),_b=nw.on({fromReader:gW},_d),_S=(0,e8.dual)(2,function(e,t){return vl(e,_n(t))}),_T=(0,e8.dual)(2,function(e,t){return vl(e,g3(t))}),_I=(0,e8.dual)(2,function(e,t){return vl(e,g4(t))}),_w=_h,_x=_h,_R=vB,_O=vB,_C=_y,_M=_y,_E=_g,_k=_g,_F=(0,n_.fromPredicate)(vU),_P=(0,n_.filterOrElse)(vU,vW),_W=_P,_L=(0,n_.fromEitherK)(vU),_D=nb(vj),_N=_v,_A=vV,_U=il(vq),_j=__,_q=vK,_G=_b,_Y=_b,_B=_S,_V=_S,_K=_T,_z=_T,_H=_I,_$=_I;function _X(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=vf(nw.F4),_Q=(0,tp.bindTo)(vS),_0=(0,tp.let)(vS),_1=to.bind(vW),_2=_1,_8=(0,eU.apS)(vR),_7=_8,_3=vf(nw.Xl),_5=function(e){return(0,e8.flow)(rf(e),nW(y9(e8.SK)))},_4=function(e){var t=_5(e);return function(e){return nw.Od(e)?t(e):_3}},_9=function(e){return(0,e8.flow)(rf(e),nW(ge(e8.SK)))},_6=function(e){var t=_9(e);return function(e){return nw.Od(e)?t(e):_3}},be=_4,bt=function(e){return _4(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=vl,ba=vl,bc=vY,bf=vY,bl=g2,bp=g2,bd={URI:vy,map:g9,of:vf,ap:g6,chain:vl,alt:vt,bimap:vr,mapLeft:vo,fromIO:gL,fromTask:gD,throwError:vh},bs={URI:vy,map:g9,of:vf,ap:ve,chain:vl,alt:vt,bimap:vr,mapLeft:vo,fromIO:gL,fromTask:gD,throwError:vh},bm=(0,eU.getApplySemigroup)(vF),bh=(0,eG.getApplicativeMonoid)(vP),by=function(e){return(0,eU.getApplySemigroup)(s3)(tE.getSemigroup(e))};function bg(e){var t=v_(d2,e),n=vb(e);return{URI:vy,_E:void 0,map:g9,of:vf,chain:vl,bimap:vr,mapLeft:vo,ap:t.ap,alt:n.alt,fromIO:gL,fromTask:gD,throwError:vh}}function bv(e,t){return e(t)()}var b_=n(31583),bb=n(13512),bS=n(28350),bT=n(97054),bI=n(99156);function bw(e){return e[0]}function bx(e){return e[1]}var bR=function(e){return[bx(e),e[0]]};function bO(e){return{URI:b0,_E:void 0,map:bW,ap:function(t,n){return[t[0](n[0]),e.concat(bx(t),bx(n))]}}}var bC=function(e){return function(t){return[t,e.empty]}};function bM(e){return{URI:b0,_E:void 0,map:bW,ap:bO(e).ap,of:bC(e)}}function bE(e){return{URI:b0,_E:void 0,map:bW,ap:bO(e).ap,chain:function(t,n){var r=n(t[0]),i=r[0],o=r[1];return[i,e.concat(bx(t),o)]}}}function bk(e){var t=bE(e);return{URI:b0,_E:void 0,map:bW,ap:t.ap,chain:t.chain,of:bC(e)}}function bF(e){var t=bE(e);return{URI:b0,_E:void 0,map:bW,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,bx(r)),o=(r=n(o.left))[0];return[o.right,e.concat(i,bx(r))]}}}var bP=function(e,t){return(0,e8.pipe)(e,bV(t))},bW=function(e,t){return(0,e8.pipe)(e,bY(t))},bL=function(e,t,n){return(0,e8.pipe)(e,bG(t,n))},bD=function(e,t){return(0,e8.pipe)(e,bB(t))},bN=function(e,t){return(0,e8.pipe)(e,bK(t))},bA=function(e,t,n){return(0,e8.pipe)(e,b$(t,n))},bU=function(e){var t=bX(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(bx(n))]}},bY=function(e){return function(t){return[e(t[0]),bx(t)]}},bB=function(e){return function(t){return[t[0],e(bx(t))]}},bV=function(e){return function(t){return[t[0],bx(e)]}},bK=function(e){return function(t){return[e(t),bx(t)]}},bz=bw,bH=bK(e8.identity),b$=function(e,t){return function(n){return t(e,n[0])}},bX=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,bx(n)]})}}},bQ=function(e){return function(t){return e.map(t[0],function(e){return[e,bx(t)]})}},b0="ReadonlyTuple",b1={URI:b0,map:bW},b2=(0,tp.flap)(b1),b8=bY,b7=bB,b3={URI:b0,bimap:bL,mapLeft:bD},b5={URI:b0,compose:bP},b4={URI:b0,map:bW,extend:bN,extract:bz},b9={URI:b0,reduce:bA,foldMap:bU,reduceRight:bj},b6={URI:b0,map:bW,reduce:bA,foldMap:bU,reduceRight:bj,traverse:bq,sequence:bQ},Se={URI:b0,compose:bP,map:bW,bimap:bL,mapLeft:bD,extract:bz,extend:bN,reduce:bA,foldMap:bU,reduceRight:bj,traverse:bq,sequence:bQ},St=n(3291),Sn=n(57029),Sr=n(76511),Si=function(){return(Si=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)},So=bT.size,Su=bT.isEmpty,Sa=function(e){return function(t){return Object.keys(t).sort(e.compare)}},Sc=Sa(Sn.Ord);function Sf(e){if("function"==typeof e)return Sf(Sn.Ord)(e);var t=Sa(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 Sl=Sf(Sn.Ord)(function(e,t){return[e,t]});function Sp(e){return function(t){var n=Sl(t),r=n.length;return e.unfold(0,function(e){return e<r?nw.G([n[e],e+1]):nw.YP})}}var Sd=bT.upsertAt,Ss=bT.has;function Sm(e){return function(t){if(!nw.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var Sh=function(e,t){return Sy(e,function(){return t})},Sy=function(e,t){return function(n){if(!Ss(e,n))return nw.YP;var r=Object.assign({},n);return r[e]=t(n[e]),nw.G(r)}};function Sg(e){var t=Sm(e);return function(n){var r=S_(e,n);return nw.Wi(r)?nw.YP:nw.G([r.value,t(n)])}}var Sv=bT.isSubrecord,S_=bT.lookup,Sb=bT.mapWithIndex,SS=bT.map;function ST(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bT.reduceWithIndex(e[0]):bT.reduceWithIndex(Sn.Ord).apply(void 0,e)}function SI(e){return"compare"in e?bT.foldMapWithIndex(e):bT.foldMapWithIndex(Sn.Ord)(e)}function Sw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bT.reduceRightWithIndex(e[0]):bT.reduceRightWithIndex(Sn.Ord).apply(void 0,e)}var Sx=bT.singleton;function SR(e){return bT.traverseWithIndex(e)}function SO(e){return bT.traverse(e)}function SC(e){return bT.sequence(e)}var SM=function(e){var t=SO(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Ta)}}},SE=function(e){var t=SO(e);return function(n){return function(r){return e.map((0,e8.pipe)(r,t(n)),Tc)}}},Sk=bT.partitionMapWithIndex;function SF(e){return bT.partitionWithIndex(e)}var SP=bT.filterMapWithIndex;function SW(e){return bT.filterWithIndex(e)}function SL(e,t){return bT.fromFoldable(e,t)}var SD=Sl,SN=function(e){return SL(St.last(),eY.Foldable)(e)};function SA(e,t){return bT.fromFoldableMap(e,t)}var SU=bT.every,Sj=bT.some,Sq=bT.elem,SG=function(e){var t=bT.union(e);return function(e){return function(n){return Su(n)?Si({},e):Su(e)?Si({},n):t(e)(n)}}},SY=function(e){return function(t){return function(n){return Su(n)||Su(t)?{}:bT.intersection(e)(t)(n)}}},SB=function(e){return function(t){return Su(t)?Si({},e):Su(e)?Si({},t):bT.difference(e)(t)}},SV=bT._map,SK=bT._mapWithIndex,Sz=bT._reduce,SH=bT._foldMap,S$=bT._reduceRight,SX=bT._filter,SJ=bT._filterMap,SZ=bT._partition,SQ=bT._partitionMap,S0=bT._reduceWithIndex,S1=bT._foldMapWithIndex,S2=bT._reduceRightWithIndex,S8=bT._partitionMapWithIndex,S7=bT._partitionWithIndex,S3=bT._filterMapWithIndex,S5=bT._filterWithIndex,S4=bT._traverse,S9=bT._sequence,S6=function(e){return function(t){var n=Sa(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}}},Te=bT.filter,Tt=bT.filterMap,Tn=bT.partition,Tr=bT.partitionMap;function Ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bT.reduce(e[0]):bT.reduce(Sn.Ord).apply(void 0,e)}function To(e){return"compare"in e?bT.foldMap(e):bT.foldMap(Sn.Ord)(e)}function Tu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bT.reduceRight(e[0]):bT.reduceRight(Sn.Ord).apply(void 0,e)}var Ta=bT.compact,Tc=bT.separate,Tf="Record";function Tl(e){return"compare"in e?bT.getShow(e):bT.getShow(Sn.Ord)(e)}var Tp=bT.getEq,Td=bT.getMonoid,Ts={URI:Tf,map:SV},Tm=(0,tp.flap)(Ts),Th={URI:Tf,map:SV,mapWithIndex:SK},Ty=function(e){return{URI:Tf,reduce:Sz(e),foldMap:SH(e),reduceRight:S$(e)}},Tg=function(e){return{URI:Tf,reduce:Sz(e),foldMap:SH(e),reduceRight:S$(e),reduceWithIndex:S0(e),foldMapWithIndex:S1(e),reduceRightWithIndex:S2(e)}},Tv={URI:Tf,compact:Ta,separate:Tc},T_={URI:Tf,map:SV,compact:Ta,separate:Tc,filter:SX,filterMap:SJ,partition:SZ,partitionMap:SQ},Tb={URI:Tf,map:SV,mapWithIndex:SK,compact:Ta,separate:Tc,filter:SX,filterMap:SJ,partition:SZ,partitionMap:SQ,filterMapWithIndex:S3,filterWithIndex:S5,partitionMapWithIndex:S8,partitionWithIndex:S7},TS=function(e){return{URI:Tf,map:SV,reduce:Sz(e),foldMap:SH(e),reduceRight:S$(e),traverse:S4(e),sequence:S9(e)}},TT=function(e){return{URI:Tf,map:SV,mapWithIndex:SK,reduce:Sz(e),foldMap:SH(e),reduceRight:S$(e),reduceWithIndex:S0(e),foldMapWithIndex:S1(e),reduceRightWithIndex:S2(e),traverse:S4(e),sequence:S9(e),traverseWithIndex:S6(e)}},TI=function(e){var t=TS(e);return{URI:Tf,map:SV,reduce:Sz(e),foldMap:SH(e),reduceRight:S$(e),traverse:t.traverse,sequence:t.sequence,compact:Ta,separate:Tc,filter:SX,filterMap:SJ,partition:SZ,partitionMap:SQ,wither:(0,Sr.witherDefault)(t,Tv),wilt:(0,Sr.wiltDefault)(t,Tv)}},Tw=function(e){var t=SG(e);return{concat:function(e,n){return t(n)(e)}}},Tx=function(e){return{concat:Tw(e).concat,empty:{}}},TR=function(e){var t=SY(e);return{concat:function(e,n){return t(n)(e)}}},TO=function(){return{concat:function(e,t){return SB(t)(e)}}},TC={URI:Tf,reduce:Sz(Sn.Ord),foldMap:SH(Sn.Ord),reduceRight:S$(Sn.Ord)},TM={URI:Tf,reduce:Sz(Sn.Ord),foldMap:SH(Sn.Ord),reduceRight:S$(Sn.Ord),reduceWithIndex:S0(Sn.Ord),foldMapWithIndex:S1(Sn.Ord),reduceRightWithIndex:S2(Sn.Ord)},TE={URI:Tf,map:SV,reduce:Sz(Sn.Ord),foldMap:SH(Sn.Ord),reduceRight:S$(Sn.Ord),traverse:S4(Sn.Ord),sequence:SC},Tk={URI:Tf,map:SV,mapWithIndex:SK,reduce:Sz(Sn.Ord),foldMap:SH(Sn.Ord),reduceRight:S$(Sn.Ord),reduceWithIndex:S0(Sn.Ord),foldMapWithIndex:S1(Sn.Ord),reduceRightWithIndex:S2(Sn.Ord),traverse:S4(Sn.Ord),sequence:SC,traverseWithIndex:S6(Sn.Ord)},TF=(0,Sr.witherDefault)(TE,Tv),TP=(0,Sr.wiltDefault)(TE,Tv),TW={URI:Tf,map:SV,reduce:Sz(Sn.Ord),foldMap:SH(Sn.Ord),reduceRight:S$(Sn.Ord),traverse:S4(Sn.Ord),sequence:SC,compact:Ta,separate:Tc,filter:SX,filterMap:SJ,partition:SZ,partitionMap:SQ,wither:TF,wilt:TP},TL={},TD=Sd,TN=bT.hasOwnProperty,TA={URI:Tf,map:SV,reduce:Sz(Sn.Ord),foldMap:SH(Sn.Ord),reduceRight:S$(Sn.Ord),traverse:S4(Sn.Ord),sequence:SC,compact:Ta,separate:Tc,filter:SX,filterMap:SJ,partition:SZ,partitionMap:SQ,mapWithIndex:SK,reduceWithIndex:S0(Sn.Ord),foldMapWithIndex:S1(Sn.Ord),reduceRightWithIndex:S2(Sn.Ord),filterMapWithIndex:S3,filterWithIndex:S5,partitionMapWithIndex:S8,partitionWithIndex:S7,traverseWithIndex:S6(Sn.Ord),wither:TF,wilt:TP},TU=function(e){return function(t){return nw.pC(e(t))}},Tj=function(e){return function(t){return nw.tO(e(t))}},Tq=function(){return function(e){return!0}},TG=function(e){return function(t){return!e(t)}},TY=function(e){return function(t){return function(n){return t(n)||e(n)}}},TB=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TV=function(){return function(e){return!1}},TK=function(e){return function(t){return function(n){return t(n)&&e(n)}}},Tz=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])})}}},TH=function(e){return function(t){return e.sub(e.zero,t)}},T$=Tz,TX=e8.getRing,TJ=e8.getSemiring,TZ=n(1214),TQ=function(e){return{show:function(t){var n="{";for(var r in e)nw.e$.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},T0=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(", "),"]")}}},T1=T0,T2=TQ,T8={show:function(e){return JSON.stringify(e)}},T7={show:function(e){return JSON.stringify(e)}},T3={show:function(e){return JSON.stringify(e)}};function T5(e){return function(t){return function(n){return e.of([t,n])}}}function T4(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 T9(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 T6(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),bx)}}}function Io(e){var t=T9(e),n=T4(e),r=T6(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:T5(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 gS(e)}},Ia=T5(vx);function Ic(e){return Iw(gI(e))}function If(e){return Iw(gw(e))}function Il(e){return Iw(gx(e))}function Ip(e){return Iw(gR(e))}function Id(e){return Iw(gM(e))}function Is(e){return Iw(gE(e))}var Im=function(e){return(0,e8.flow)(e,gT)},Ih=function(e){return function(t){return gS(e(t)[0])}},Iy=tE.match(function(e){return Iu(e)},Ia),Ig=Il,Iv=Id,I_=Ic,Ib=It(vx),IS=function(e){return Iw(gb(e))},IT=function(e){return Iw(gN(e))},II=function(e){return Iw(gA(e))},Iw=In(vS),Ix=function(e){return function(t){return(0,e8.flow)(t,nO(e))}},IR=function(e){return function(t){return function(n){return e(n)(t)(n)}}},IO=IR,IC=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IT(e.apply(void 0,t))}},IM=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IS(e.apply(void 0,t))}},IE=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Iw(e.apply(void 0,t))}},Ik=function(e){return function(t){return IV(t,IE(e))}},IF=Ik,IP=function(e,t){return(0,e8.pipe)(e,IA(t))},IW=function(e,t){return(0,e8.pipe)(e,Iq(t))},IL=function(e,t){return function(n){return(0,e8.pipe)(e(n),vs(function(){return t()(n)}))}},ID=function(e,t,n){return function(r){return(0,e8.pipe)(e(r),vi(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),vu(t))}},IA=T4(vS),IU=function(e,t){return function(n){return ID(n,e,t)}},Ij=function(e){return function(t){return IN(t,e)}},Iq=T9(vW),IG=Iq,IY=Ia,IB={fromEither:Iy},IV=(0,e8.dual)(2,Ie(vL)),IK={flatMap:IV},Iz=(0,e8.dual)(2,function(e,t){return IV(e,function(e){return IM(t)(e)})}),IH=nw.we({fromIO:Iv},IK),I$=nw.D9({fromTask:I_},IK),IX=nw.on({fromReader:Ig},IK),IJ=(0,e8.dual)(2,function(e,t){return IV(e,function(e){return IC(t)(e)})}),IZ=(0,e8.dual)(2,nw.iu(IB,IK)),IQ=nw.hU(IB,IK),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,wh(t))}),I2=IV(e8.identity),I8=I2,I7=function(e){return function(t){return function(n){return(0,e8.pipe)(t(n),vm(function(){return e()(n)}))}}},I3=I7,I5=Iu,I4="StateReaderTaskEither",I9={URI:I4,map:IP},I6=(0,e8.dual)(2,(0,tp.as)(I9)),we=(0,tp.asUnit)(I9),wt=(0,tp.flap)(I9),wn={URI:I4,of:IY},wr={URI:I4,map:IP,ap:IW},wi=(0,eU.apFirst)(wr),wo=wi,wu=(0,eU.apSecond)(wr),wa=wu,wc={URI:I4,map:IP,ap:IW,of:IY},wf={URI:I4,map:IP,ap:IW,chain:IV},wl={URI:I4,fromState:Ib},wp=ir(wl),wd=ii(wl),ws=io(wl),wm=iu(wl),wh=ia(wl),wy=ic(wl,wf),wg={URI:I4,map:IP,ap:IW,of:IY,chain:IV},wv={URI:I4,map:IP,ap:IW,of:IY,chain:IV,fromIO:Iv},w_={URI:I4,map:IP,ap:IW,of:IY,chain:IV,fromIO:Iv,fromTask:I_},wb={URI:I4,map:IP,ap:IW,of:IY,chain:IV,throwError:I5},wS={URI:I4,fromEither:Iy},wT={URI:I4,fromIO:Iv},wI={URI:I4,fromIO:Iv,fromTask:I_},ww={URI:I4,fromReader:Ig},wx=(0,e8.dual)(2,to.tap(wf)),wR=(0,e8.dual)(2,(0,n_.tapEither)(wS,wf)),wO=(0,e8.dual)(2,nI(wT,wf)),wC=(0,e8.dual)(2,is(wI,wf)),wM=(0,e8.dual)(2,rR(ww,wf)),wE={URI:I4,bimap:ID,mapLeft:IN},wk={URI:I4,map:IP,alt:IL},wF=rS(ww),wP=rT(ww),wW=rI(ww),wL=IX,wD=IX,wN=wM,wA=wM,wU=(0,n_.fromOption)(wS),wj=(0,n_.fromOptionK)(wS),wq=(0,n_.chainOptionK)(wS,wf),wG=wq,wY=IZ,wB=IZ,wV=wR,wK=wR,wz=(0,n_.fromPredicate)(wS),wH=(0,n_.filterOrElse)(wS,wf),w$=wH,wX=(0,n_.fromEitherK)(wS),wJ=nb(wT),wZ=IH,wQ=wO,w0=Iz,w1=Iz,w2=IJ,w8=IJ,w7=il(wI),w3=I$,w5=wC,w4=Ir(vS),w9=Ii(vS),w6=(0,tp.bindTo)(I9),xe=(0,tp.let)(I9),xt=to.bind(wf),xn=xt,xr=(0,eU.apS)(wr),xi=xr,xo=function(e){return function(t){return function(n){return function(r){return function(){return nw.Gb(t).reduce(function(t,n,i){return t.then(function(o){return nw.nM(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(nw.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,nw.YM(t))(n)(r)().then(tE.map(function(e){return[[e[0]],e[1]]})))}}}}},xu=function(e){var t=xo(e);return function(e){return nw.Od(e)?t(e):IY(nw.Xl)}},xa=xu,xc=function(e){return xu(function(t,n){return e(n)})},xf=xc(e8.identity),xl=IV,xp=IV,xd=wx,xs=wx,xm={URI:I4,map:IP,of:IY,ap:IW,chain:IV,bimap:ID,mapLeft:IN,alt:IL,fromIO:Iv,fromTask:I_,throwError:I5},xh={URI:I4,map:IP,of:IY,ap:IW,chain:IV,bimap:ID,mapLeft:IN,alt:IL,fromIO:Iv,fromTask:I_,throwError:I5},xy=function(e,t){return(0,e8.pipe)(e(t),vn(function(e){return e[0]}))},xg=function(e,t){return(0,e8.pipe)(e(t),vn(function(e){return e[0],e[1]}))};function xv(e,t,n){return e(t)(n)()}function x_(e){return function(t){return{peek:t.peek,pos:e}}}function xb(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}}function xS(e){return function(t){return t.peek(e(t.pos))}}function xT(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}}var xI=function(e,t){return(0,e8.pipe)(e,xO(t))},xw=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},xx=function(e){return e.peek(e.pos)},xR=xw(e8.identity),xO=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},xC="Store",xM={URI:xC,map:xI},xE=(0,tp.flap)(xM),xk={URI:xC,map:xI,extend:function(e,t){return(0,e8.pipe)(e,xw(t))},extract:xx},xF=xk;function xP(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function xW(e,t){var n=xP(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),e8.identity,function(e){return[e,e]}))}}function xL(e){return xP(e,e)}function xD(e){return xW(e,e)}var xN=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},xA=function(e){return function(t){var n={};for(var r in t)nw.e$.call(t,r)&&(n[r]=e[r](t[r]));return n}},xU=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])}}},xj=aA(dZ),xq=aK(dZ),xG=dY,xY=az(dZ),xB=function(e){return xV(dD(e))},xV=aj(dH),xK=dq(td.fromEither),xz=aH(dH),xH=xz,x$=a$(d3),xX=x$,xJ=x$,xZ=xJ,xQ=aX(d5),x0=xQ,x1=aq(dZ),x2=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return xU(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(nw.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,nw.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())})}},x8=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return x2(function(){return e.apply(void 0,t)})}},x7=aG(dZ),x3=aY(d5),x5=aB(dZ),x4=aV(d5),x9=aJ(dH),x6=aZ(dQ),Re=xj,Rt=(0,e8.dual)(2,a0(d5)),Rn={flatMap:Rt},Rr=nw.we({fromIO:xB},Rn),Ri=nw.D9({fromTask:xV},Rn),Ro=Rt(e8.identity),Ru=a1(d5),Ra=Ru,Rc=aU(dZ),Rf=Rc(),Rl=tm(dH,td.Compactable),Rp=th(dH,td.Compactable,td.Functor),Rd=ne(dH,td.Filterable),Rs=nt(dH,td.Filterable),Rm=nn(dH,td.Filterable),Rh=nr(dH,td.Filterable),Ry=function(e,t){return(0,e8.pipe)(e,x9(t))},Rg=function(e,t){return(0,e8.pipe)(e,x6(t))},Rv=function(e,t){return(0,e8.pipe)(e,Ru(t))},R_="TaskOption",Rb={URI:R_,map:Ry},RS=(0,e8.dual)(2,(0,tp.as)(Rb)),RT=(0,tp.asUnit)(Rb),RI=(0,tp.flap)(Rb),Rw={URI:R_,of:Re},Rx={URI:R_,map:Ry,ap:Rg},RR=(0,eU.apFirst)(Rx),RO=(0,eU.apSecond)(Rx),RC={URI:R_,map:Ry,ap:Rg,of:Re},RM=function(e,t){return Rt(e,function(e){return(0,e8.pipe)(t,x9(e))})},RE={URI:R_,map:Ry,ap:RM},Rk={URI:R_,map:Ry,ap:RM,of:Re},RF={URI:R_,map:Ry,ap:Rg,chain:Rt},RP={URI:R_,fromEither:xY},RW={URI:R_,fromIO:xB},RL={URI:R_,fromIO:xB,fromTask:xV},RD=(0,e8.dual)(2,to.tap(RF)),RN=(0,e8.dual)(2,(0,n_.tapEither)(RP,RF)),RA=(0,e8.dual)(2,nI(RW,RF)),RU=(0,e8.dual)(2,is(RL,RF)),Rj={URI:R_,map:Ry,alt:Rv},Rq={URI:R_,zero:Rc},RG=(0,a8.guard)(Rq,Rw),RY={URI:R_,map:Ry,ap:Rg,of:Re,alt:Rv,zero:Rc},RB={URI:R_,map:Ry,ap:Rg,of:Re,chain:Rt},RV={URI:R_,map:Ry,ap:Rg,of:Re,chain:Rt,fromIO:xB},RK={URI:R_,map:Ry,ap:Rg,of:Re,chain:Rt,fromIO:xB,fromTask:xV},Rz={URI:R_,compact:Rl,separate:Rp},RH={URI:R_,map:Ry,compact:Rl,separate:Rp,filter:function(e,t){return(0,e8.pipe)(e,Rd(t))},filterMap:function(e,t){return(0,e8.pipe)(e,Rs(t))},partition:function(e,t){return(0,e8.pipe)(e,Rm(t))},partitionMap:function(e,t){return(0,e8.pipe)(e,Rh(t))}},R$=nb(RW),RX=Rr,RJ=RA,RZ=(0,n_.fromEitherK)(RP),RQ=(0,n_.chainEitherK)(RP,RF),R0=RN,R1=il(RL),R2=Ri,R8=RU,R7=Re(nw.F4),R3=(0,tp.bindTo)(Rb),R5=(0,tp.let)(Rb),R4=to.bind(RF),R9=(0,eU.apS)(Rx),R6=Re(nw.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 nw.Od(e)?t(e):R6}},On=function(e){return function(t){return function(){return nw.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nw.Wi(i)?t:e(r+1,n)().then(function(e){return nw.Wi(e)?e:(i.value.push(e.value),i)})})},e(0,nw.YM(t))().then(td.map(nw.ri)))}}},Or=function(e){var t=On(e);return function(e){return nw.Od(e)?t(e):R6}},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=Rt,Op=RD,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 Og(e,t){return{_tag:"Both",left:e,right:t}}var Ov=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_=Ov,Ob=Ov,OS=Ob,OT=Ob(Oy,Oh,function(e,t){return Og(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 Ow(e,t){return(0,t3.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 Ox(e,t){return{concat:function(n,r){return Od(n)?Od(r)?Oh(e.concat(n.left,r.left)):Os(r)?Og(n.left,r.right):Og(e.concat(n.left,r.left),r.right):Os(n)?Od(r)?Og(r.left,n.right):Os(r)?Oy(t.concat(n.right,r.right)):Og(r.left,t.concat(n.right,r.right)):Od(r)?Og(e.concat(n.left,r.left),n.right):Os(r)?Og(n.left,t.concat(n.right,r.right)):Og(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var OR=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)):Og(n.left,t.right(n.right)):Od(n)?Oh(e.concat(t.left,n.left)):Os(n)?Og(t.left,t.right(n.right)):Og(e.concat(t.left,n.left),t.right(n.right))}}};function OO(e){return{URI:OQ,_E:void 0,map:ON,ap:OR(e).ap,of:OZ}}function OC(e){return{URI:OQ,_E:void 0,map:ON,ap:OR(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)?Og(t.left,r.right):Og(e.concat(t.left,r.left),r.right)}}}function OM(e){var t=OC(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)?nw.G(e.left):Os(e)?nw.YP:nw.G(e.left)}function Ok(e){return Od(e)?nw.YP:(Os(e),nw.G(e.right))}function OF(e){return function(t){return nw.Wi(t)?Oh(e):Og(e,t.value)}}function OP(e){return function(t){return nw.Wi(t)?Oy(e):Og(t.value,e)}}function OW(e){return Od(e)?nw.G(e.left):nw.YP}function OL(e){return Os(e)?nw.G(e.right):nw.YP}var OD=function(e,t){return nw.Wi(e)?nw.Wi(t)?nw.YP:nw.G(Oy(t.value)):nw.Wi(t)?nw.G(Oh(e.value)):nw.G(Og(e.value,t.value))},ON=function(e,t){return(0,e8.pipe)(e,OK(t))},OA=function(e,t,n){return(0,e8.pipe)(e,OB(t,n))},OU=function(e,t){return(0,e8.pipe)(e,OV(t))},Oj=function(e,t,n){return(0,e8.pipe)(e,Oz(t,n))},Oq=function(e){var t=OH(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},OG=function(e,t,n){return(0,e8.pipe)(e,O$(t,n))},OY=function(e){var t=OX(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},OB=function(e,t){return function(n){return Od(n)?Oh(e(n.left)):Os(n)?Oy(t(n.right)):Og(e(n.left),t(n.right))}},OV=function(e){return function(t){return Od(t)?Oh(e(t.left)):Om(t)?Og(e(t.left),t.right):t}},OK=function(e){return function(t){return Od(t)?t:Os(t)?Oy(e(t.right)):Og(t.left,e(t.right))}},Oz=function(e,t){return function(n){return Od(n)?e:t(e,n.right)}},OH=function(e){return function(t){return function(n){return Od(n)?e.empty:t(n.right)}}},O$=function(e,t){return function(n){return Od(n)?e:t(n.right,e)}},OX=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 Og(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 Og(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},O3={URI:OQ,reduce:Oj,foldMap:Oq,reduceRight:OG},O5={URI:OQ,map:ON,reduce:Oj,foldMap:Oq,reduceRight:OG,traverse:OY,sequence:OJ},O4={URI:OQ,fromEither:e8.identity},O9=(0,n_.fromPredicate)(O4),O6=(0,n_.fromOption)(O4),Ce=(0,n_.fromOptionK)(O4),Ct=function(e){return function(t){return function(n){return!Od(n)&&e.equals(t,n.right)}}},Cn=function(e){return function(t){return!Od(t)&&e(t.right)}},Cr=function(e,t){return function(n){return Od(n)?[n.left,t()]:Os(n)?[e(),n.right]:[n.left,n.right]}},Ci=function(e,t){return Cr(function(){return e},function(){return t})},Co=OZ(nw.Xl),Cu=function(e){return function(t){return function(n){var r=nw.YP,i=t(0,nw.YM(n));if(Od(i))return i;Om(i)&&(r=nw.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=nw.Wi(r)?nw.G(a.left):nw.G(e.concat(r.value,a.left))),o.push(a.right)}return nw.Wi(r)?Oy(o):Og(r.value,o)}}},Ca=function(e){return function(t){var n=Cu(e)(t);return function(e){return nw.Od(e)?n(e):Co}}},Cc={URI:OQ,map:ON,bimap:OA,mapLeft:OU,reduce:Oj,foldMap:Oq,reduceRight:OG,traverse:OY,sequence:OJ};function Cf(e){return(0,e8.flow)(Oy,e.of)}function Cl(e){return(0,e8.flow)(Oh,e.of)}function Cp(e){return(0,e8.flow)(Og,e.of)}function Cd(e){return function(t){return e.map(t,Oy)}}function Cs(e){return function(t){return e.map(t,Oh)}}function Cm(e){return(0,tp.map)(e,O0)}function Ch(e,t){return(0,eU.ap)(e,OR(t))}function Cy(e,t){var n=Cl(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 Og(n,e)},function(e,r){return Og(t.concat(n,e),r)}))}))}}}function Cg(e){return function(t,n){return function(r){return e.map(r,OB(t,n))}}}function Cv(e){return function(t){return function(n){return e.map(n,OV(t))}}}function C_(e){return function(t,n,r){return function(i){return e.map(i,Ob(t,n,r))}}}function Cb(e){return function(t,n,r){return function(i){return e.chain(i,Ob(t,n,r))}}}function CS(e){return function(t){return e.map(t,OT)}}function CT(e){return function(t,n){return function(r){return e.map(r,Cr(t,n))}}}function CI(e){var t=Cm(e),n=Cg(e),r=Cv(e),i=Cb(e),o=CT(e),u=Cf(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:CS(e),rightM:Cd(e),leftM:Cs(e),left:Cl(e),right:Cf(e),both:Cp(e),toTuple:function(e,t,n){return(0,e8.pipe)(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=Ch(e,t),r=Cy(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 Cw=Cl(dZ),Cx=Cf(dZ),CR=Cp(dZ),CO=Cd(dH),CC=Cs(dH),CM=(0,e8.flow)(dD,CO),CE=(0,e8.flow)(dD,CC),Ck=dY,CF=dY,CP=CM,CW=dD,CL=CO,CD=C_(dH),CN=CD,CA=Cb(d5),CU=CA,Cj=CU,Cq=Cj,CG=CS(dH),CY=function(e,t){return(0,e8.pipe)(e,CK(t))},CB=function(e,t,n){return(0,e8.pipe)(e,Cz(t,n))},CV=function(e,t){return(0,e8.pipe)(e,CH(t))},CK=Cm(dH),Cz=Cg(dH),CH=Cv(dH),C$=Cx,CX="TaskThese",CJ=function(e,t){var n=Ch(e,t);return{URI:CX,_E:void 0,map:CY,ap:function(e,t){return(0,e8.pipe)(e,n(t))}}};function CZ(e,t){return{URI:CX,_E:void 0,map:CY,ap:CJ(e,t).ap,of:C$}}function CQ(e){var t=CJ(d2,e),n=Cy(d5,e);return{URI:CX,_E:void 0,map:CY,ap:t.ap,chain:function(e,t){return(0,e8.pipe)(e,n(t))}}}function C0(e){var t=CZ(d2,e),n=CQ(e);return{URI:CX,_E:void 0,map:CY,ap:t.ap,of:C$,chain:n.chain,fromIO:CP,fromTask:CL}}var C1={URI:CX,map:CY},C2=(0,tp.flap)(C1),C8={URI:CX,of:C$},C7={URI:CX,bimap:CB,mapLeft:CV},C3={URI:CX,fromEither:Ck},C5=(0,n_.fromOption)(C3),C4=(0,n_.fromOptionK)(C3),C9=(0,n_.fromPredicate)(C3),C6={URI:CX,fromThese:CF},Me=im(C6),Mt={URI:CX,fromIO:CP},Mn=nb(Mt),Mr={URI:CX,fromIO:CP,fromTask:CL},Mi=il(Mr),Mo=CT(dH),Mu=C$(nw.Xl),Ma=function(e){var t=Cu(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 nw.Od(e)?n(e):Mu}}},Mf=function(e){return function(t){return function(n){return function(){return nw.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)?Og(e.concat(o.left,t.left),n):Og(t.left,n)}return o.right.push(t.right),o})})},t(0,nw.YM(n))().then(OK(nw.ri)))}}}},Ml=function(e){return function(t){var n=Mf(e)(t);return function(e){return nw.Od(e)?n(e):Mu}}},Mp={URI:CX,map:CY},Md={URI:CX,bimap:CB,mapLeft:CV},Ms=function(e,t){return Mo(function(){return e},function(){return t})},Mm={URI:CX,map:CY,bimap:CB,mapLeft:CV},Mh=function(e,t){return(0,eU.getApplySemigroup)(d8)(Ox(e,t))};function My(e,t){return function(n){return n(t(n(e.empty)))}}function Mg(e){return function(t){return[e(t),t]}}function Mv(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:MS,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 MS=function(e,t){return(0,e8.pipe)(e,MT(t))},MT=function(e){return function(t){return function(n){return e(t(n))}}},MI="Traced",Mw={URI:MI,map:MS},Mx=(0,tp.flap)(Mw),MR=Mw;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 MC(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=MC(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 MF(e){var t,n=(0,t3.fromEquals)(function(n,r){return e.equals(n.value,r.value)&&t.equals(n.forest,r.forest)});return t=eY.getEq(n),n}var MP=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+MP(e+(i>1&&!u?"│ ":" "),n.forest)}return r};function MW(e){return MP("\n",e)}function ML(e){return e.value+MW(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 M$(e,function(e){return(0,e8.pipe)(t,MQ(e))})},MY=function(e,t,n){return(0,e8.pipe)(e,M0(t,n))},MB=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))},MK=function(e,t){return(0,e8.pipe)(e,MX(t))},Mz=function(e){var t=M7(e);return function(e,n){return(0,e8.pipe)(e,t(n))}},MH=function(e){return function(t){return MG(t,e)}},M$=(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(M$(t)))}}),MX=function(e){return function(t){return{value:e(t),forest:t.forest.map(MX(e))}}},MJ=MX(e8.identity),MZ=M$(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},M3=function(e){return M7(e)(e8.identity)},M5=function(e){return ME(e)},M4="Tree",M9={URI:M4,map:Mq},M6=(0,tp.flap)(M9),Ee={URI:M4,of:M5},Et={URI:M4,map:Mq,ap:MG},En=(0,eU.apFirst)(Et),Er=(0,eU.apSecond)(Et),Ei={URI:M4,map:Mq,ap:MG,of:M5},Eo={URI:M4,map:Mq,ap:MG,chain:M$},Eu={URI:M4,map:Mq,ap:MG,of:M5,chain:M$},Ea=(0,to.chainFirst)(Eo),Ec={URI:M4,reduce:MY,foldMap:MB,reduceRight:MV},Ef={URI:M4,map:Mq,reduce:MY,foldMap:MB,reduceRight:MV,traverse:Mz,sequence:M3},El={URI:M4,map:Mq,extend:MK,extract:M8},Ep=M5(nw.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 Eg=function(e){return function(t){return e(t.value)||t.forest.some(Eg(e))}},Ev=M$,E_={URI:M4,map:Mq,of:M5,ap:MG,chain:M$,reduce:MY,foldMap:MB,reduceRight:MV,traverse:Mz,sequence:M3,extract:M8,extend:MK},Eb=bw,ES=bx,ET=function(e){return[ES(e),Eb(e)]};function EI(e){return{URI:EX,_E:void 0,map:EE,ap:function(t,n){return[Eb(t)(Eb(n)),e.concat(ES(t),ES(n))]}}}var Ew=function(e){return function(t){return[t,e.empty]}};function Ex(e){var t=EI(e);return{URI:EX,_E:void 0,map:t.map,ap:t.ap,of:Ew(e)}}function ER(e){var t=EI(e);return{URI:EX,_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(ES(t),o)]}}}function EO(e){var t=ER(e);return{URI:EX,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:Ew(e)}}function EC(e){var t=ER(e);return{URI:EX,_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,ES(r)),o=Eb(r=n(o.left));return[o.right,e.concat(i,ES(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))},EF=function(e,t){return(0,e8.pipe)(e,Ej(t))},EP=function(e,t){return(0,e8.pipe)(e,EG(t))},EW=function(e,t,n){return(0,e8.pipe)(e,EK(t,n))},EL=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,Ez(t,n))};function EN(e){var t=EH(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(ES(n))]}},EU=function(e){return function(t){return[e(Eb(t)),ES(t)]}},Ej=function(e){return function(t){return[Eb(t),e(ES(t))]}},Eq=function(e){return function(t){return[Eb(t),ES(e)]}},EG=function(e){return function(t){return[e(t),ES(t)]}},EY=EG(e8.identity),EB=bz,EV=bX,EK=b$,Ez=bJ,EH=function(e){return function(t){return function(n){return e.map(t(Eb(n)),function(e){return[e,ES(n)]})}}},E$=function(e){return function(t){return e.map(Eb(t),function(e){return[e,ES(t)]})}},EX="Tuple",EJ={URI:EX,map:EE},EZ=(0,tp.flap)(EJ),EQ={URI:EX,bimap:Ek,mapLeft:EF},E0={URI:EX,compose:EM},E1={URI:EX,map:EE,extend:EP,extract:EB},E2={URI:EX,reduce:EW,foldMap:EL,reduceRight:ED},E8={URI:EX,map:EE,reduce:EW,foldMap:EL,reduceRight:ED,traverse:EN,sequence:E$},E7=EU,E3=Ej,E5={URI:EX,compose:EM,map:EE,bimap:Ek,mapLeft:EF,extract:EB,extend:EP,reduce:EW,foldMap:EL,reduceRight:ED,traverse:EN,sequence:E$};function E4(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 nw.nM(e)?t.of(nw.t$(e.left)):n(e.right)})},alt:function(n,r){return t.chain(n,function(n){return nw.tO(n)?t.of(n):t.map(r(),function(t){return nw.nM(t)?nw.t$(e.concat(n.left,t.left)):t})})}}}var E9=St.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]},kg=function(e){return e()[0]},kv=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 v},G:function(){return c},Gb:function(){return y},Od:function(){return m},WE:function(){return T},Wi:function(){return o},Xl:function(){return g},YM:function(){return h},YP:function(){return a},e$:function(){return _},hU:function(){return w},iu:function(){return x},nM:function(){return f},ny:function(){return I},on:function(){return C},pC:function(){return u},r1:function(){return b},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return S},we:function(){return R}});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)},g=[],v={},_=Object.prototype.hasOwnProperty,b=function(e){return i([e[0]],e.slice(1),!0)},S=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))}}},T=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,S(e)(r,i))})},w=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,T(e)(r,i))})},x=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})},R=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))})})},C=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 S},filterMap:function(){return T},filterMapWithIndex:function(){return R},filterWithIndex:function(){return x},foldMap:function(){return h},foldMapWithIndex:function(){return v},map:function(){return u},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return I},partitionMap:function(){return w},partitionMapWithIndex:function(){return C},partitionWithIndex:function(){return O},pipe:function(){return F},pipeable:function(){return k},promap:function(){return M},reduce:function(){return m},reduceRight:function(){return y},reduceRightWithIndex:function(){return _},reduceWithIndex:function(){return g}});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 g(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function v(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 S(e){return function(t){return function(n){return e.filter(n,t)}}}function T(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 w(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function x(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function R(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 C(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=g(e),t.foldMapWithIndex=v(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=S(e),t.filterMap=T(e),t.partition=I(e),t.partitionMap=w(e)),"function"==typeof e.filterWithIndex&&(t.filterWithIndex=x(e),t.filterMapWithIndex=R(e),t.partitionWithIndex=O(e),t.partitionMapWithIndex=C(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 F=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 S},isEmpty:function(){return v},isString:function(){return l},replace:function(){return s},size:function(){return _},slice:function(){return g},split:function(){return b},startsWith:function(){return T},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()},g=function(e,t){return function(n){return n.slice(e,t)}},v=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]}},S=function(e,t){return function(n){return n.includes(e,t)}},T=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 g=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function v(e){var n=d.union(e);return function(r,i){if(void 0===i){var o=v(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)(g(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(g(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=v,t.intersection=_,t.difference=b;var S=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},T=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))},w=function(e,n){return(0,f.pipe)(e,(0,t.filter)(n))},x=function(e,n){return(0,f.pipe)(e,(0,t.filterMap)(n))},R=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))},C=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))},F=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},P=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},W=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},L=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=B(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=v(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:S},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:S,mapWithIndex:T},t.Apply={URI:t.URI,map:S,ap:I},t.apFirst=(0,u.apFirst)(t.Apply),t.apSecond=(0,u.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:S,ap:I,of:t.of},t.Chain={URI:t.URI,map:S,ap:I,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:S,ap:I,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:S,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:S,ap:I,of:t.of,alt:E,zero:t.zero},t.Extend={URI:t.URI,map:S,extend:U},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:S,compact:t.compact,separate:t.separate,filter:w,filterMap:x,partition:R,partitionMap:O},t.FilterableWithIndex={URI:t.URI,map:S,mapWithIndex:T,compact:t.compact,separate:t.separate,filter:w,filterMap:x,partition:R,partitionMap:O,partitionMapWithIndex:M,partitionWithIndex:C,filterMapWithIndex:N,filterWithIndex:A},t.Foldable={URI:t.URI,reduce:k,foldMap:F,reduceRight:P},t.FoldableWithIndex={URI:t.URI,reduce:k,foldMap:F,reduceRight:P,reduceWithIndex:W,foldMapWithIndex:L,reduceRightWithIndex:D},t.Traversable={URI:t.URI,map:S,reduce:k,foldMap:F,reduceRight:P,traverse:j,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:S,mapWithIndex:T,reduce:k,foldMap:F,reduceRight:P,reduceWithIndex:W,foldMapWithIndex:L,reduceRightWithIndex:D,traverse:j,sequence:t.sequence,traverseWithIndex:q};var B=(0,h.witherDefault)(t.Traversable,t.Compactable),V=(0,h.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:S,compact:t.compact,separate:t.separate,filter:w,filterMap:x,partition:R,partitionMap:O,reduce:k,foldMap:F,reduceRight:P,traverse:j,sequence:t.sequence,wither:B,wilt:V},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:S,ap:I,chain:t.flatMap,chainRec:G},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:S,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 K=(0,l.let)(t.Functor);t.let=K,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:S,ap:I,of:t.of,chain:t.flatMap,filter:w,filterMap:x,partition:R,partitionMap:O,mapWithIndex:T,partitionMapWithIndex:M,partitionWithIndex:C,filterMapWithIndex:N,filterWithIndex:A,alt:E,zero:t.zero,unfold:t.unfold,reduce:k,foldMap:F,reduceRight:P,traverse:j,sequence:t.sequence,reduceWithIndex:W,foldMapWithIndex:L,reduceRightWithIndex:D,traverseWithIndex:q,extend:U,wither:B,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))},g=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},v=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))},S=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},T=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))},w=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},x=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},R=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:S,sequence:t.sequence,reduce:v,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:g},t.Applicative={URI:t.URI,map:y,ap:g,of:t.of},t.Chain={URI:t.URI,map:y,ap:g,chain:t.flatMap},t.Monad={URI:t.URI,map:y,ap:g,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:v,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:v,foldMap:_,reduceRight:b,traverse:S,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:T,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:w},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:x},t.ChainRec={URI:t.URI,map:y,ap:g,chain:t.flatMap,chainRec:R},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:y,ap:g,of:t.of,chain:t.flatMap,throwError:t.throwError},t.FromEither={URI:t.URI,fromEither:p.identity},t.fromPredicate=(0,l.fromPredicate)(t.FromEither),t.fromOption=(0,l.fromOption)(t.FromEither),t.isLeft=s.isLeft,t.isRight=s.isRight,t.matchW=function(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 C={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(O,C),t.flatMapOption=s.flatMapOption(O,C),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:g,chain:t.flatMap,reduce:v,foldMap:_,reduceRight:b,traverse:S,sequence:t.sequence,bimap:T,mapLeft:I,alt:w,extend:x,chainRec:R,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:T,mapLeft:I,reduce:v,foldMap:_,reduceRight:b,extend:x,traverse:S,sequence:t.sequence,chainRec:R,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 g=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},v=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))},S=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},T=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))},w=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},x=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},R=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))}},C=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:g},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:g,mapWithIndex:v},t.Apply={URI:t.URI,map:g,ap:_},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:g,ap:_,of:t.of},t.Chain={URI:t.URI,map:g,ap:_,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:g,ap:_,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:S,foldMap:T,reduceRight:I},t.FoldableWithIndex={URI:t.URI,reduce:S,foldMap:T,reduceRight:I,reduceWithIndex:R,foldMapWithIndex:O,reduceRightWithIndex:C},t.Traversable={URI:t.URI,map:g,reduce:S,foldMap:T,reduceRight:I,traverse:w,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:g,mapWithIndex:v,reduce:S,foldMap:T,reduceRight:I,traverse:w,sequence:t.sequence,reduceWithIndex:R,foldMapWithIndex:O,reduceRightWithIndex:C,traverseWithIndex:M},t.Alt={URI:t.URI,map:g,alt:x},t.Comonad={URI:t.URI,map:g,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:g,mapWithIndex:v,ap:_,chain:t.flatMap,extend:b,extract:t.extract,reduce:S,foldMap:T,reduceRight:I,traverse:w,sequence:t.sequence,reduceWithIndex:R,foldMapWithIndex:O,reduceRightWithIndex:C,traverseWithIndex:M,alt:x}},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),g=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 v=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))},S=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},T=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))}},w=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},x=function(e,n){return(0,l.pipe)(e,(0,t.filter)(n))},R=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))},C=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:v},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:v,ap:_},t.Applicative={URI:t.URI,map:v,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:v,ap:_,chain:t.flatMap},t.Monad={URI:t.URI,map:v,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:S,reduceRight:T},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:v,alt:w},t.zero=function(){return t.none},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,g.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:v,ap:_,of:t.of,alt:w,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:v,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)(x(t,(0,s.not)(e)),x(t,e))}},t.partitionMap=function(e){return(0,l.flow)((0,t.map)(e),t.separate)},t.Filterable={URI:t.URI,map:v,compact:t.compact,separate:t.separate,filter:x,filterMap:R,partition:C,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:v,reduce:b,foldMap:S,reduceRight:T,traverse:I,sequence:t.sequence};var k=(0,y.witherDefault)(t.Traversable,t.Compactable),F=(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=F(e);return function(e){return function(n){return t(n,e)}}},t.Witherable={URI:t.URI,map:v,reduce:b,foldMap:S,reduceRight:T,traverse:I,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:x,filterMap:R,partition:C,partitionMap:M,wither:k,wilt:F},t.throwError=function(){return t.none},t.MonadThrow={URI:t.URI,map:v,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 P=(0,p.let)(t.Functor);t.let=P,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:v,of:t.of,ap:_,chain:t.flatMap,reduce:b,foldMap:S,reduceRight:T,traverse:I,sequence:t.sequence,zero:t.zero,alt:w,extend:O,compact:t.compact,separate:t.separate,filter:x,filterMap:R,partition:C,partitionMap:M,wither:k,wilt:F,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)),g=n(4773),v=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 S(e){return function(t,n){if(void 0===n){var r,i=S(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 T(e){var n=y.union(e);return function(r,i){if(void 0===i){var o=T(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=S(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 w(e){var t=S(e);return function(n,r){if(void 0===r){var i=w(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=S,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=T,t.intersection=I,t.difference=w;var x=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},R=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))},C=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))},F=function(e,n){return(0,p.pipe)(e,(0,t.partitionWithIndex)(n))},P=function(e,n){return(0,p.pipe)(e,(0,t.partitionMapWithIndex)(n))},W=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},L=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))},B=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,g.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,g.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,g.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 L(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=K(e);return function(e){return function(n){return t(n,e)}}},t.wilt=function(e){var t=z(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=T(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=w(e);return{concat:function(e,n){return t(n)(e)}}},t.Functor={URI:t.URI,map:x},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:x,mapWithIndex:R},t.Apply={URI:t.URI,map:x,ap:O},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:x,ap:O,of:t.of},t.Chain={URI:t.URI,map:x,ap:O,chain:t.flatMap},t.Monad={URI:t.URI,map:x,ap:O,of:t.of,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:x,alt:W},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,_.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:x,ap:O,of:t.of,alt:W,zero:t.zero},t.Extend={URI:t.URI,map:x,extend:Y},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:C,filterMap:M,partition:E,partitionMap:k},t.FilterableWithIndex={URI:t.URI,map:x,mapWithIndex:R,compact:t.compact,separate:t.separate,filter:C,filterMap:M,partition:E,partitionMap:k,partitionMapWithIndex:P,partitionWithIndex:F,filterMapWithIndex:q,filterWithIndex:G},t.Foldable={URI:t.URI,reduce:L,foldMap:D,reduceRight:N},t.FoldableWithIndex={URI:t.URI,reduce:L,foldMap:D,reduceRight:N,reduceWithIndex:A,foldMapWithIndex:U,reduceRightWithIndex:j},t.Traversable={URI:t.URI,map:x,reduce:L,foldMap:D,reduceRight:N,traverse:B,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:x,mapWithIndex:R,reduce:L,foldMap:D,reduceRight:N,reduceWithIndex:A,foldMapWithIndex:U,reduceRightWithIndex:j,traverse:B,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:x,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:x,ap:O,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var K=(0,v.witherDefault)(t.Traversable,t.Compactable),z=(0,v.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:x,compact:t.compact,separate:t.separate,filter:C,filterMap:M,partition:E,partitionMap:k,reduce:L,foldMap:D,reduceRight:N,traverse:B,sequence:t.sequence,wither:K,wilt:z},t.filterE=(0,v.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 H=(0,d.let)(t.Functor);t.let=H,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:x,ap:O,of:t.of,chain:t.flatMap,filter:C,filterMap:M,partition:E,partitionMap:k,mapWithIndex:R,partitionMapWithIndex:P,partitionWithIndex:F,filterMapWithIndex:q,filterWithIndex:G,alt:W,zero:t.zero,unfold:t.unfold,reduce:L,foldMap:D,reduceRight:N,traverse:B,sequence:t.sequence,reduceWithIndex:A,foldMapWithIndex:U,reduceRightWithIndex:j,traverseWithIndex:V,extend:Y,wither:K,wilt:z}},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 g(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=g,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 v=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))},S=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},T=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))}},w=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},x=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))},O=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceWithIndex)(n,r))},C=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:v},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:v,mapWithIndex:_},t.Apply={URI:t.URI,map:v,ap:b},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:v,ap:b,of:t.of},t.Chain={URI:t.URI,map:v,ap:b,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:v,ap:b,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:T,foldMap:I,reduceRight:w},t.FoldableWithIndex={URI:t.URI,reduce:T,foldMap:I,reduceRight:w,reduceWithIndex:O,foldMapWithIndex:C,reduceRightWithIndex:M},t.Traversable={URI:t.URI,map:v,reduce:T,foldMap:I,reduceRight:w,traverse:x,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:v,mapWithIndex:_,reduce:T,foldMap:I,reduceRight:w,traverse:x,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:C,reduceRightWithIndex:M,traverseWithIndex:E},t.Alt={URI:t.URI,map:v,alt:R},t.Comonad={URI:t.URI,map:v,extend:S,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=g(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:v,mapWithIndex:_,ap:b,chain:t.flatMap,extend:S,extract:t.extract,reduce:T,foldMap:I,reduceRight:w,traverse:x,sequence:t.sequence,reduceWithIndex:O,foldMapWithIndex:C,reduceRightWithIndex:M,traverseWithIndex:E,alt:R}},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 g(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function v(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 S(e){return function(t){return function(n){return e.filter(n,t)}}}function T(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 w(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function x(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function R(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 C(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=g,t.foldMapWithIndex=v,t.reduceRightWithIndex=_,t.alt=b,t.filter=S,t.filterMap=T,t.partition=I,t.partitionMap=w,t.filterWithIndex=x,t.filterMapWithIndex=R,t.partitionWithIndex=O,t.partitionMapWithIndex=C,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=g(e),t.foldMapWithIndex=v(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=S(e),t.filterMap=T(e),t.partition=I(e),t.partitionMap=w(e)),"function"==typeof e.filterWithIndex&&(t.filterWithIndex=x(e),t.filterMapWithIndex=R(e),t.partitionWithIndex=O(e),t.partitionMapWithIndex=C(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 tv},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 g},either:function(){return th},fromNewtype:function(){return eX},fromNullable:function(){return e6},fromRefinement:function(){return y},getLenses:function(){return ti},mapFromEntries:function(){return tS},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return eQ},optionFromNullable:function(){return e0},readonlyMapFromEntries:function(){return tT},readonlyNonEmptyArray:function(){return e2},readonlySetFromArray:function(){return h},regexp:function(){return to},setFromArray:function(){return m},withEncode:function(){return tg},withFallback:function(){return e5},withMessage:function(){return tt},withValidate:function(){return e3}});var r={};n.r(r),n.d(r,{Category:function(){return eO},Invariant:function(){return ex},Semigroupoid:function(){return eR},URI:function(){return ew},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 eS},fromNullable:function(){return ea},id:function(){return X},imap:function(){return eT},index:function(){return ed},indexNonEmpty:function(){return es},key:function(){return em},left:function(){return ev},lens:function(){return $},modify:function(){return eo},modifyF:function(){return eu},prop:function(){return ef},props:function(){return el},right:function(){return eg},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 g=y("Date",function(e){return e instanceof Date}),v=n(42275),_=n(90817),b=n(96576),S=n(31583),T=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))},w=function(e){return R(e.get,(0,v.flow)(e.reverseGet,v.constant))},x=function(e){return D((0,v.flow)(e.get,p.some),(0,v.flow)(e.reverseGet,v.constant))},R=function(e,t){return{get:e,set:t}},O=function(e){return D((0,v.flow)(e.get,p.some),e.set)},C=function(e){return function(t){return R(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 P(t)(e)})},F=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 P(t)(e)(r)})}))}}})},P=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}))}}},W=function(e){return E(p.fromPredicate(e),v.identity)},L=function(){return E(v.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,v.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:v.identity,ap:function(e,t){return e(t)}},B=function(e){return{index:e}},V=function(e){return{at:e}},K=function(e,t){return{get:e,reverseGet:t}},z=function(e){return E((0,v.flow)(e.get,p.some),e.reverseGet)},H=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)})}}})},$=R,X=function(){return R(v.identity,v.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=C,ee=Q,et=(0,v.flow)(w,Q),en=M,er=function(e){return(0,v.flow)(J,U(e))},ei=function(e){return(0,v.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,v.identity))(e)};function ec(e){return en(W(e))}var ef=function(e){return function(t){return R(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 R(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 R(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,v.flow)(J,function(t){return(0,f.pipe)(t,U(B(function(e){return D(function(t){return S.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(S.lookup(e,n),p.fold(function(){return n},function(){return S.unsafeUpdateAt(e,t,n)}))}})}).index(e)))})},es=function(e){return(0,v.flow)(J,function(t){return(0,f.pipe)(t,U(B(function(e){return D(function(t){return S.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(S.lookup(e,n),p.fold(function(){return n},function(){return j(e,t,n)}))}})}).index(e)))})},em=function(e){return(0,v.flow)(J,function(t){return(0,f.pipe)(t,U(B(function(e){return D(function(t){return T.lookup(e,t)},function(t){return function(n){return n[e]===t||p.isNone(T.lookup(e,n))?n:T.insertAt(e,t)(n)}})}).index(e)))})},eh=function(e){return function(t){return(0,f.pipe)(t,C(V(function(e){return R(function(t){return T.lookup(e,t)},p.fold(function(){return T.deleteAt(e)},function(t){return T.insertAt(e,t)}))}).at(e)))}},ey=en(L()),eg=en(E(p.fromEither,l.right)),ev=en(E(function(e){return l.isLeft(e)?p.some(e.left):p.none},l.left));function e_(e){return(0,v.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(S.findFirst(e),function(t){return function(n){return(0,f.pipe)(S.findIndex(e)(n),p.fold(function(){return n},function(e){return S.unsafeUpdateAt(e,t,n)}))}}))}function eS(e){return er(D(S.findFirst(e),function(t){return function(n){return(0,f.pipe)(S.findIndex(e)(n),p.fold(function(){return n},function(e){return j(e,t,n)}))}}))}var eT=function(e,t){return function(n){return eI(n,e,t)}},eI=function(e,t,n){return $((0,v.flow)(e.get,t),(0,v.flow)(n,e.set))},ew="monocle-ts/Lens",ex={URI:ew,imap:eI},eR={URI:ew,compose:function(e,t){return Q(e)(t)}},eO={URI:ew,compose:eR.compose,id:X},eC=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,v.flow)(t.getOption,p.chain(e.getOption)),(0,v.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)},eF=function(e){return new eU(e.get,e.set)},eP=function(e){return new ej(e.getOption,e.reverseGet)},eW=function(e){return new eG(e.getOption,e.set)},eL=function(e){return new eY(e.modifyF)},eD=function(e){return new eV(function(t){return eW(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(K(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 eF(w(this))},e.prototype.asPrism=function(){return eP(z(this))},e.prototype.asOptional=function(){return eW(x(this))},e.prototype.asTraversal=function(){return eL(H(this))},e.prototype.asFold=function(){var e=this;return new ez(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.asGetter=function(){var e=this;return new eK(function(t){return e.get(t)})},e.prototype.asSetter=function(){var e=this;return new eH(function(t){return e.modify(t)})},e.prototype.compose=function(e){var t;return ek((t=this,K((0,v.flow)(t.get,e.get),(0,v.flow)(e.reverseGet,t.reverseGet))))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return eF((0,f.pipe)(this,w,Q(e)))},e.prototype.composePrism=function(e){return eP((0,f.pipe)(this,z,eM(e)))},e.prototype.composeOptional=function(e){return eW((0,f.pipe)(this,x,U(e)))},e.prototype.composeTraversal=function(e){return eL((0,f.pipe)(this,H,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 eF((0,f.pipe)(X(),ef(e)))}},e.fromProps=function(){return function(e){return eF((0,f.pipe)(X(),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 eW(J(this))},e.prototype.asTraversal=function(){return eL(Z(this))},e.prototype.asSetter=function(){var e=this;return new eH(function(t){return e.modify(t)})},e.prototype.asGetter=function(){var e=this;return new eK(function(t){return e.get(t)})},e.prototype.asFold=function(){var e=this;return new ez(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(e){return eF(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 eW((0,f.pipe)(this,J,U(e)))},e.prototype.composeTraversal=function(e){return eL((0,f.pipe)(this,Z,G(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eF((0,f.pipe)(this,Q((0,f.pipe)(e,w))))},e.prototype.composePrism=function(e){return eW(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 eP(W(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 eW(k(this))},e.prototype.asTraversal=function(){return eL(F(this))},e.prototype.asSetter=function(){var e=this;return new eH(function(t){return e.modify(t)})},e.prototype.asFold=function(){var e=this;return new ez(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 eP(eM(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return eW((0,f.pipe)(this,k,U(e)))},e.prototype.composeTraversal=function(e){return eL((0,f.pipe)(this,F,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 eP((0,f.pipe)(this,eM((0,f.pipe)(e,z))))},e.prototype.composeLens=function(e){return eW(U(O(e))(k(this)))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eq=new ej(v.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 eL(eC(this))},e.prototype.asFold=function(){var e=this;return new ez(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 eH(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eW(U(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return eL((0,f.pipe)(this,eC,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 eW((0,f.pipe)(this,U((0,f.pipe)(e,J))))},e.prototype.composePrism=function(e){return eW((0,f.pipe)(this,U((0,f.pipe)(e,k))))},e.prototype.composeIso=function(e){return eW((0,f.pipe)(this,U((0,f.pipe)(e,x))))},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 eL(G(F(W(e)))(this))},e.prototype.asFold=function(){var e=this;return new ez(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 eH(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eL(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 eL((0,f.pipe)(this,G((0,f.pipe)(e,Z))))},e.prototype.composePrism=function(e){return eL((0,f.pipe)(this,G((0,f.pipe)(e,F))))},e.prototype.composeIso=function(e){return eL((0,f.pipe)(this,G((0,f.pipe)(e,H))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eB=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,w,C(n.at(t)))}),new eB(function(e){return eF(t.at(e))})},e}(),eV=function(){function e(e){this.index=e,this._tag="Index"}return e.fromAt=function(e){return eD(B(function(t){return M(L())(e.at(t))}))},e.prototype.fromIso=function(e){var t;return eD((t=this,B(function(n){return(0,f.pipe)(e,x,U(t.index(n)))})))},e}(),eK=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new ez(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}(),ez=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}(),eH=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify((0,v.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}(),e$=new eA(v.unsafeCoerce,v.unsafeCoerce);function eX(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)(e$.wrap))},function(t){return e.encode(e$.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 e3(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 e5(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),e3(e,function(n,r){return(0,l.orElse)(function(){return o.success(t)})(e.validate(n,r))},n)}var e4=/^[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 e4.test(e)},"UUID");function e6(e,t,n){return void 0===n&&(n="fromNullable("+e.name+")"),e3(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 e3(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 tg(e,t,n){return void 0===n&&(n=e.name),new o.Type(n,e.is,e.validate,t)}var tv=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 tS(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,v.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 tT(e,t,n,r){return void 0===r&&(r="ReadonlyMap<"+e.name+", "+n.name+">"),tS(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 eL},Array:function(){return Z},ArrayType:function(){return el},BigIntType:function(){return z},BooleanType:function(){return $},Dictionary:function(){return eY},DictionaryType:function(){return ey},ExactType:function(){return eM},Function:function(){return eF},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 eP},NullType:function(){return L},NumberType:function(){return V},ObjectType:function(){return eB},PartialType:function(){return em},ReadonlyArrayType:function(){return eR},ReadonlyType:function(){return ew},RecursiveType:function(){return ec},RefinementType:function(){return eo},StrictType:function(){return ez},StringType:function(){return Y},TaggedUnionType:function(){return eU},TupleType:function(){return eT},Type:function(){return p},UndefinedType:function(){return N},UnionType:function(){return ev},UnknownArray:function(){return Z},UnknownRecord:function(){return ee},UnknownType:function(){return q},VoidType:function(){return U},alias:function(){return e$},any:function(){return eD},appendContext:function(){return h},array:function(){return ep},bigint:function(){return H},boolean:function(){return X},brand:function(){return eu},clean:function(){return eH},dictionary:function(){return eK},emptyTags:function(){return R},exact:function(){return eE},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return m},getDefaultContext:function(){return eG},getDomainKeys:function(){return T},getFunctionName:function(){return s},getIndex:function(){return W},getTags:function(){return P},getValidationError:function(){return eq},identity:function(){return d},interface:function(){return es},intersection:function(){return eS},keyof:function(){return ei},literal:function(){return en},mergeAll:function(){return w},never:function(){return eW},null:function(){return D},nullType:function(){return D},number:function(){return K},object:function(){return eV},partial:function(){return eh},readonly:function(){return ex},readonlyArray:function(){return eO},record:function(){return eg},recursion:function(){return ef},refinement:function(){return eN},strict:function(){return eC},string:function(){return B},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 g=Object.prototype.hasOwnProperty;function v(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(v(e)," }")}function S(e){return"Partial<".concat(e,">")}function T(e){var t;if(M(e)){var n=e.value;if(B.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 T(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 w(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)(!g.call(a,f)||i||u[f]!==e[f])&&(a[f]=u[f])}return a}function x(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,i={},o=0;o<n.length;o++){var u=n[o];g.call(t,u)?i[u]=e[u]:r=!0}return r?i:e}var R={};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 C(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 F=[];function P(e){if(-1!==F.indexOf(e))return R;if(E(e)||"StrictType"===e._tag){var t=R;for(var n in e.props){var r=e.props[n];M(r)&&(t===R&&(t={}),t[n]=[r.value])}return t}if("ExactType"===e._tag||"RefinementType"===e._tag)return P(e.type);if("IntersectionType"===e._tag)return e.types.reduce(function(e,t){return function(e,t){if(e===R)return t;if(t===R)return e;var n=Object.assign({},e);for(var r in t)if(g.call(e,r)){var i=O(e[r],t[r]);if(i.length>0)n[r]=i;else{n=R;break}}else n[r]=t[r];return n}(e,P(t))},R);if(k(e))return e.types.slice(1).reduce(function(e,t){return function(e,t){if(e===R||t===R)return R;var n=R;for(var r in e)g.call(t,r)&&0===O(e[r],t[r]).length&&(n===R&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,P(t))},P(e.types[0]));if("RecursiveType"===e._tag){F.push(e);var i=P(e.type);return F.pop(),i}return R}function W(e){for(var t=P(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=P(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 L=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 L,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),B=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),K=new V,z=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),H=new z,$=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),X=new $,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 B.is(t)&&g.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(K,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&&!g.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],v=p[m],_=r[s],b=_.validate(v,h(t,m,_,v));if((0,i.isLeft)(b))y(d,b.left);else{var S=b.right;S===v&&(void 0!==S||g.call(p,m))||(p===f&&(p=u({},f)),p[m]=S)}}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=S(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],g=p[m],v=e[m],_=v.validate(g,h(r,m,v,g));if((0,i.isLeft)(_))void 0!==g&&y(d,_.left);else{var b=_.right;b!==g&&(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 eg(e,t,n){var r,o,u,a,p=T(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],g=a[m],v=t.validate(g,h(n,m,t,g));if((0,i.isLeft)(v))y(p,v.left);else{var _=v.right;d=d||_!==g,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])}):C(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],g=n[m],v=e.validate(m,h(r,m,e,m));if((0,i.isLeft)(v))y(u,v.left);else{var _=v.right;d=d||_!==m,m=_;var b=t.validate(g,h(r,m,t,g));if((0,i.isLeft)(b))y(u,b.left);else{var S=b.right;d=d||S!==g,o[m]=S}}}return u.length>0?c(u):l(d?o:n)}return C(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 ev=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=W(e);if(void 0===n||!(e.length>0))return new ev(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 eS(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(w(t,o))},0===e.length?d:function(t){return w(t,e.map(function(e){return e.encode(t)}))},e)}var eT=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 eT(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 g=m.right;g!==d&&(a===u&&(a=u.slice()),a[p]=g)}}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 ew=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 ex(e,t){return void 0===t&&(t="Readonly<".concat(e.name,">")),new ew(t,e.is,e.validate,e.encode,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="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 eR(t,n.is,n.validate,n.encode,e)}var eC=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(v(e.props)," |}"):"PartialType"===e._tag?S("{| ".concat(v(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)(x(u.right,n))},function(t){return e.encode(x(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),eF=new ek,eP=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),eW=new eP,eL=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 eL;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(K,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}(ev),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,eB=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 eB,eK=eg,ez=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 eH(e){return e}function e$(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,g=void 0===y?u.WORDS:y,v=e.suffix,_=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:g,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===v?"":v);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,g=h.arrowStyle,v=o.useMemo(function(){return r(r({},y),m)},[y,m]),_=o.useMemo(function(){return r(r({},g),p)},[g,p]);return i.jsxs("div",r({className:d,style:v},{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,g=void 0===y?0:y,v=e.reposition,_=void 0===v||v,b=e.parentElement,S=void 0===b?window.document.body:b,T=e.boundaryElement,I=void 0===T?S:T,w=e.containerClassName,x=e.containerStyle,R=e.contentLocation,O=e.boundaryInset,C=void 0===O?0:O,M=e.onClickOutside,E=e.clickOutsideCapture,k=void 0!==E&&E,F=f.useMemoizedArray(void 0===s?d:s),P=o.useRef(!1),W=o.useRef(),L=o.useRef(),D=o.useRef(_),N=o.useRef(),A=o.useState({align:h,nudgedLeft:0,nudgedTop:0,position:F[0],padding:g,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:C,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===w?"react-tiny-popover-container":w,parentElement:S,boundaryElement:I,contentLocation:R,positions:F,align:h,padding:g,boundaryInset:C,reposition:_,onPositionPopover:q}),Y=G.positionPopover,B=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==B?void 0:B.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===g&&U.align===h&&F===W.current&&R===L.current&&_===D.current||Y(),F!==W.current&&(W.current=F),R!==L.current&&(L.current=R),_!==D.current&&(D.current=_),e&&window.requestAnimationFrame(t)}P.current=n};return window.requestAnimationFrame(t),function(){e=!1}},[h,R,n,g,B,U.align,U.childRect.height,U.childRect.left,U.childRect.top,U.childRect.width,U.padding,U.popoverRect.height,U.popoverRect.width,Y,F,_]),o.useEffect(function(){var e=B.current;return Object.assign(e.style,x),function(){Object.keys(null!=x?x:{}).forEach(function(t){return delete e.style[t]})}},[x,n,B]);var K=o.useCallback(function(e){var t,r;!n||(null===(t=B.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,B]),z=o.useCallback(function(){N.current&&window.requestAnimationFrame(function(){return Y()})},[Y]);o.useEffect(function(){var e=S.ownerDocument.body;return e.addEventListener("click",K,k),e.addEventListener("contextmenu",K,k),e.addEventListener("resize",z),function(){e.removeEventListener("click",K,k),e.removeEventListener("contextmenu",K,k),e.removeEventListener("resize",z)}},[k,K,z,S]);var H=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:H}),n?i.jsx(u.PopoverPortal,r({element:B.current,scoutElement:V.current,container:S},{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,g=e.onPositionPopover,v=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,S=u.parentRect,T=void 0===S?l.getBoundingClientRect():S,I=u.childRect,w=void 0===I?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():I,x=u.scoutRect,R=void 0===x?null===(o=null==_?void 0:_.current)||void 0===o?void 0:o.getBoundingClientRect():x,O=u.popoverRect,C=void 0===O?v.current.getBoundingClientRect():O,M=u.boundaryRect,E=void 0===M?y===l?T:y.getBoundingClientRect():M;if(w&&T&&t){if(p){var k="function"==typeof p?p({childRect:w,popoverRect:C,parentRect:T,boundaryRect:E,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:h,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,F=k.top,P=k.left,W=Math.round(T.left+P-R.left),L=Math.round(T.top+F-R.top);v.current.style.transform="translate("+W+"px, "+L+"px)",g({childRect:w,popoverRect:C,parentRect:T,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:w,popoverRect:C,boundaryRect:E,position:N,align:d,padding:s,reposition:m},h),U=A.rect;if(A.boundaryViolation&&m&&!D){b({positionIndex:f+1,childRect:w,popoverRect:C,parentRect:T,boundaryRect:E});return}var j=U.top,q=U.left,G=U.width,Y=U.height,B=m&&!D,V=i.getNudgedPopoverRect(U,E,h),K=V.left,z=V.top,H=j,$=q;B&&(H=z,$=K),H=Math.round(H-R.top),$=Math.round($-R.left),v.current.style.transform="translate("+$+"px, "+H+"px)";var X={top:E.top+h-H,left:E.left+h-$,right:$+G-E.right+h,bottom:H+Y-E.bottom+h};g({childRect:w,popoverRect:{top:H,left:$,width:G,height:Y,right:$+G,bottom:H+Y},parentRect:T,boundaryRect:E,position:N,align:d,padding:s,nudgedTop:z-j,nudgedLeft:K-q,boundaryInset:h,violations:{top:X.top<=0?0:X.top,left:X.left<=0?0:X.left,right:X.right<=0?0:X.right,bottom:X.bottom<=0?0:X.bottom},hasViolations:X.top>0||X.left>0||X.right>0||X.bottom>0})}},[l,n,_,v,y,t,p,c,d,s,m,h,g]);return{positionPopover:b,popoverRef:v,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){/*!
8
+ * statuses
9
+ * Copyright(c) 2014 Jonathan Ong
10
+ * Copyright(c) 2016 Douglas Christopher Wilson
11
+ * MIT Licensed
12
+ */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]]}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 g=s/4294967296*1e4&268435455;l[o++]=g>>>8&255,l[o++]=255&g,l[o++]=g>>>24&15|16,l[o++]=g>>>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)}},87783:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return R},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return k},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return F},__createBinding:function(){return y},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return O},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return v}});var 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 i(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)}var o=function(){return(o=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)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var y=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(a=u(y.get))&&(p.get=a),(a=u(y.set))&&(p.set=a),(a=u(y.init))&&i.unshift(a)}else(a=u(y))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(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])}}}var y=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]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(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 I(e){return this instanceof I?(this.v=e,this):new I(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;(n=i[e](t)).value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(e){l(o[0][3],e)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(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)&&y(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:y,__exportStar:g,__values:v,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:R,__makeTemplateObject:O,__importStar:M,__importDefault:E,__classPrivateFieldGet:k,__classPrivateFieldSet:F,__classPrivateFieldIn:P}},78948:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return R},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return k},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return F},__createBinding:function(){return y},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return O},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return v}});var 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 i(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)}var o=function(){return(o=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)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var y=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(a=u(y.get))&&(p.get=a),(a=u(y.set))&&(p.set=a),(a=u(y.init))&&i.unshift(a)}else(a=u(y))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(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])}}}var y=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]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(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 I(e){return this instanceof I?(this.v=e,this):new I(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;(n=i[e](t)).value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(e){l(o[0][3],e)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(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)&&y(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:y,__exportStar:g,__values:v,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:R,__makeTemplateObject:O,__importStar:M,__importDefault:E,__classPrivateFieldGet:k,__classPrivateFieldSet:F,__classPrivateFieldIn:P}},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 g extends Error{constructor(){super("Connection timed out")}}class v 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 S extends Error{constructor(){super("Port is not set")}}class T extends Error{constructor(){super("Channel is not set")}}let I=0,w=(e,t,n="")=>({requestID:`${n}${I++}`,type:e,data:t}),x=(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}},R=(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},C=e=>"type"in e,M=e=>!("type"in e),E=e=>M(e)&&!("error"in e);var k=Object.defineProperty,F=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>(F(e,"symbol"!=typeof t?t+"":t,n),n);let W={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class L{constructor(e,t){P(this,"requestHandlers"),P(this,"options"),P(this,"_port",null),P(this,"_pendingRequests",new Map),this.requestHandlers=e,this.options={...W,...t}}get port(){if(!this._port)throw new S;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 w(e,t,this.options.requestIDPrefix)}async onMessage(e){this.options.debug&&console.debug(e.data);try{let t=O(e.data);if(C(t)){if(this.requestHandlers[t.type])try{let e=await this.requestHandlers[t.type](t,{success:x.bind(this,t.requestID),error:R.bind(this,t.requestID)});this.postResponse(e)}catch(e){this.postResponse(R(t.requestID,e,500))}else this.postResponse(R(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 v(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 L{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 T;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 g)},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(x(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(C(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(R(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 B={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},{...B,...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},98227:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return R},__await:function(){return I},__awaiter:function(){return m},__classPrivateFieldGet:function(){return k},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return F},__createBinding:function(){return y},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return E},__importStar:function(){return M},__makeTemplateObject:function(){return O},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return T},__spreadArrays:function(){return S},__values:function(){return v}});var 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 i(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)}var o=function(){return(o=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)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var y=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(a=u(y.get))&&(p.get=a),(a=u(y.set))&&(p.set=a),(a=u(y.init))&&i.unshift(a)}else(a=u(y))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function h(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])}}}var y=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]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function T(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 I(e){return this instanceof I?(this.v=e,this):new I(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;(n=i[e](t)).value instanceof I?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(e){l(o[0][3],e)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(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)&&y(t,e,n);return C(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:y,__exportStar:g,__values:v,__read:_,__spread:b,__spreadArrays:S,__spreadArray:T,__await:I,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:R,__makeTemplateObject:O,__importStar:M,__importDefault:E,__classPrivateFieldGet:k,__classPrivateFieldSet:F,__classPrivateFieldIn:P}},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"}')}}]);