@teambit/mdx 0.0.732 → 0.0.733

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 (28) hide show
  1. package/artifacts/__bit_junit.xml +4 -4
  2. package/artifacts/env-template/public/{78.js → 178.js} +15 -3
  3. package/artifacts/env-template/public/22.js +75 -0
  4. package/artifacts/env-template/public/{295.js → 831.js} +137 -97
  5. package/artifacts/env-template/public/{516.js → 894.js} +19 -8
  6. package/artifacts/env-template/public/assets-manifest.json +23 -22
  7. package/artifacts/env-template/public/compositions.76579a4031b6ab7f8d97.js +5 -0
  8. package/artifacts/env-template/public/compositions.html +1 -1
  9. package/artifacts/env-template/public/overview.ce9f858d141832a4b1a7.js +5 -0
  10. package/artifacts/env-template/public/overview.html +1 -1
  11. package/artifacts/env-template/public/preview-root.cae437fb4632692eb0d3.js +5 -0
  12. package/artifacts/env-template/public/static/css/831.a9bd16a4.css +1 -0
  13. package/artifacts/env-template/public/static/css/overview.a3d70d4f.css +1 -0
  14. package/artifacts/env-template/public/static/css/previewRoot.e10bd7b4.css +1 -0
  15. package/artifacts/preview/teambit_mdx_mdx-preview.js +2 -2
  16. package/{compositions-1654399579544.js → compositions-1654572446572.js} +0 -0
  17. package/{overview-1654399579544.js → overview-1654572446572.js} +0 -0
  18. package/package-tar/teambit-mdx-0.0.733.tgz +0 -0
  19. package/package.json +16 -16
  20. package/{preview-1654399579544.js → preview-1654572446572.js} +2 -2
  21. package/artifacts/env-template/public/588.js +0 -84
  22. package/artifacts/env-template/public/677.js +0 -16
  23. package/artifacts/env-template/public/compositions.04e0ad8f0222d51a7148.js +0 -1
  24. package/artifacts/env-template/public/overview.b8901e16d26b5b65029f.js +0 -5
  25. package/artifacts/env-template/public/preview-root.6a3506f543bf6963ef28.js +0 -1
  26. package/artifacts/env-template/public/static/css/295.7441e099.css +0 -1
  27. package/artifacts/env-template/public/static/css/previewRoot.c0db5bec.css +0 -1
  28. package/package-tar/teambit-mdx-0.0.732.tgz +0 -0
@@ -0,0 +1,75 @@
1
+ (self.webpackChunk_teambit_legacy=self.webpackChunk_teambit_legacy||[]).push([[22],{31099:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Error=void 0;const react_1=__importDefault(__webpack_require__(45993)),classnames_1=__importDefault(__webpack_require__(80722)),error_module_scss_1=__importDefault(__webpack_require__(61363));function Error2(props){const{className,children}=props,rest=__rest(props,["className","children"]);return children?react_1.default.createElement("div",Object.assign({className:classnames_1.default(error_module_scss_1.default.error,className)},rest),children):null}exports.Error=Error2},97164:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(31099),exports)},80722:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},65648:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFetchDocs=void 0;var use_fetch_docs_1=__webpack_require__(13479);Object.defineProperty(exports,"useFetchDocs",{enumerable:!0,get:function(){return use_fetch_docs_1.useFetchDocs}})},13479:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFetchDocs=void 0;const react_1=__webpack_require__(45993),graphql_request_1=__webpack_require__(28687),component_1=__webpack_require__(68211),GQL_SERVER="/graphql",DOCS_QUERY=(0,graphql_request_1.gql)`
6
+ query getComponentDocs($id: String!) {
7
+ getHost {
8
+ id
9
+ get(id: $id) {
10
+ id {
11
+ name
12
+ version
13
+ scope
14
+ }
15
+ aspects {
16
+ id
17
+ icon
18
+ data
19
+ }
20
+ displayName
21
+ packageName
22
+ elementsUrl
23
+ description
24
+ labels
25
+ compositions {
26
+ identifier
27
+ }
28
+ preview {
29
+ includesEnvTemplate
30
+ }
31
+ }
32
+ getDocs(id: $id) {
33
+ abstract
34
+ properties {
35
+ name
36
+ description
37
+ required
38
+ type
39
+ default: defaultValue {
40
+ value
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ `;function useFetchDocs(componentId){const[data,setData]=(0,react_1.useState)(void 0),[loading,setLoading]=(0,react_1.useState)(!1),[error,setError]=(0,react_1.useState)(void 0);return(0,react_1.useEffect)(()=>{setLoading(!0);const variables={id:componentId};(0,graphql_request_1.request)(GQL_SERVER,DOCS_QUERY,variables).then(result=>{setData({component:component_1.ComponentModel.from(result.getHost.get),docs:result.getHost.getDocs}),setLoading(!1)}).catch(e=>{setError(e),setLoading(!1)})},[componentId]),{data,loading,error}}exports.useFetchDocs=useFetchDocs},26446:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconFont=void 0;const react_1=__importDefault(__webpack_require__(45993)),EMBED_LINK="https://d1azc1qln24ryf.cloudfront.net/158286/Bit/style-cf.css";function IconFont(props){const{query="cr084i"}=props;return react_1.default.createElement("link",{rel:"stylesheet",href:`${EMBED_LINK}?${query}`})}exports.IconFont=IconFont},11545:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconFont=void 0;var icon_font_1=__webpack_require__(26446);Object.defineProperty(exports,"IconFont",{enumerable:!0,get:function(){return icon_font_1.IconFont}})},12156:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(11432),exports)},11432:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Playground=void 0;const react_1=__importDefault(__webpack_require__(45993)),classnames_1=__importDefault(__webpack_require__(1358)),react_live_1=__webpack_require__(24475),base_ui_surfaces_split_pane_split_pane_1=__webpack_require__(38577),base_ui_surfaces_split_pane_hover_splitter_1=__webpack_require__(73624),react_use_dimensions_1=__importDefault(__webpack_require__(32941)),use_debounce_1=__webpack_require__(41041),oceanicNext_1=__importDefault(__webpack_require__(22215)),base_ui_input_error_1=__webpack_require__(97164),react_playground_module_scss_1=__importDefault(__webpack_require__(73640));function Playground(_a){var{code,scope,style}=_a,rest=__rest(_a,["code","scope","style"]);const[ref,{width}]=react_use_dimensions_1.default(),placement=+use_debounce_1.useDebounce(width,300,{leading:!0})[0]<=500?base_ui_surfaces_split_pane_split_pane_1.Layout.columnReverse:base_ui_surfaces_split_pane_split_pane_1.Layout.row,isInColumnView=placement==="column reverse";return width?react_1.default.createElement(react_live_1.LiveProvider,{code,scope,theme:oceanicNext_1.default},react_1.default.createElement("div",{style,ref,className:react_playground_module_scss_1.default.playground},react_1.default.createElement(base_ui_surfaces_split_pane_split_pane_1.SplitPane,{className:react_playground_module_scss_1.default.main,size:"50%",layout:placement},react_1.default.createElement(base_ui_surfaces_split_pane_split_pane_1.Pane,{className:classnames_1.default(react_playground_module_scss_1.default.codePane,isInColumnView&&react_playground_module_scss_1.default.column)},react_1.default.createElement("div",{className:react_playground_module_scss_1.default.editorWrapper},react_1.default.createElement(react_live_1.LiveEditor,{className:classnames_1.default(react_playground_module_scss_1.default.editor)}))),react_1.default.createElement(base_ui_surfaces_split_pane_hover_splitter_1.HoverSplitter,{className:react_playground_module_scss_1.default.splitter}),react_1.default.createElement(base_ui_surfaces_split_pane_split_pane_1.Pane,{className:classnames_1.default(react_playground_module_scss_1.default.previewPane,isInColumnView&&react_playground_module_scss_1.default.column)},react_1.default.createElement("div",{className:react_playground_module_scss_1.default.previewBox},react_1.default.createElement(react_live_1.LivePreview,null),react_1.default.createElement(react_live_1.LiveError,{className:classnames_1.default(base_ui_input_error_1.Error,react_playground_module_scss_1.default.error,isInColumnView&&react_playground_module_scss_1.default.column)})))))):react_1.default.createElement("div",{ref})}exports.Playground=Playground},1358:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
47
+ Copyright (c) 2018 Jed Watson.
48
+ Licensed under the MIT License (MIT), see
49
+ http://jedwatson.github.io/classnames
50
+ */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},41041:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{useDebounce:()=>useDebounce,useDebouncedCallback:()=>useDebouncedCallback});var index_exposed=__webpack_require__(45993);function useDebouncedCallback(callback,delay,options){options===void 0&&(options={});var maxWait=options.maxWait,maxWaitHandler=(0,index_exposed.useRef)(null),maxWaitArgs=(0,index_exposed.useRef)([]),leading=options.leading,trailing=options.trailing===void 0?!0:options.trailing,leadingCall=(0,index_exposed.useRef)(!1),functionTimeoutHandler=(0,index_exposed.useRef)(null),isComponentUnmounted=(0,index_exposed.useRef)(!1),debouncedFunction=(0,index_exposed.useRef)(callback);debouncedFunction.current=callback;var cancelDebouncedCallback=(0,index_exposed.useCallback)(function(){clearTimeout(functionTimeoutHandler.current),clearTimeout(maxWaitHandler.current),maxWaitHandler.current=null,maxWaitArgs.current=[],functionTimeoutHandler.current=null,leadingCall.current=!1},[]);(0,index_exposed.useEffect)(function(){return isComponentUnmounted.current=!1,function(){isComponentUnmounted.current=!0}},[]);var debouncedCallback=(0,index_exposed.useCallback)(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];maxWaitArgs.current=args,clearTimeout(functionTimeoutHandler.current),leadingCall.current&&(leadingCall.current=!1),!functionTimeoutHandler.current&&leading&&!leadingCall.current&&(debouncedFunction.current.apply(debouncedFunction,args),leadingCall.current=!0),functionTimeoutHandler.current=setTimeout(function(){var shouldCallFunction=!0;leading&&leadingCall.current&&(shouldCallFunction=!1),cancelDebouncedCallback(),!isComponentUnmounted.current&&trailing&&shouldCallFunction&&debouncedFunction.current.apply(debouncedFunction,args)},delay),maxWait&&!maxWaitHandler.current&&trailing&&(maxWaitHandler.current=setTimeout(function(){var args2=maxWaitArgs.current;cancelDebouncedCallback(),isComponentUnmounted.current||debouncedFunction.current.apply(null,args2)},maxWait))},[maxWait,delay,cancelDebouncedCallback,leading,trailing]),callPending=(0,index_exposed.useCallback)(function(){!functionTimeoutHandler.current||(debouncedFunction.current.apply(null,maxWaitArgs.current),cancelDebouncedCallback())},[cancelDebouncedCallback]);return[debouncedCallback,cancelDebouncedCallback,callPending]}function valueEquality(left,right){return left===right}function useDebounce(value,delay,options){var eq=options&&options.equalityFn?options.equalityFn:valueEquality,_a=(0,index_exposed.useState)(value),state=_a[0],dispatch=_a[1],_b=useDebouncedCallback((0,index_exposed.useCallback)(function(value2){return dispatch(value2)},[]),delay,options),callback=_b[0],cancel=_b[1],callPending=_b[2],previousValue=(0,index_exposed.useRef)(value);return(0,index_exposed.useEffect)(function(){eq(previousValue.current,value)||(callback(value),previousValue.current=value)},[value,callback,eq]),[state,cancel,callPending]}},5029:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Anchor=void 0;const react_1=__importDefault(__webpack_require__(45993)),classnames_1=__importDefault(__webpack_require__(5886)),evangelist_elements_icon_1=__webpack_require__(94161),anchor_module_scss_1=__importDefault(__webpack_require__(519));function Anchor(props){const href=props.href&&`#${props.href}`;return react_1.default.createElement("a",Object.assign({},props,{id:props.href,href,className:(0,classnames_1.default)(props.className,anchor_module_scss_1.default.anchor)}),react_1.default.createElement(evangelist_elements_icon_1.Icon,{of:"anchor",className:anchor_module_scss_1.default.anchorIcon}))}exports.Anchor=Anchor},62082:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(5029),exports)},53586:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Icon=void 0;const react_1=__importDefault(__webpack_require__(45993)),base_ui_elements_icon_1=__webpack_require__(48318),iconSetPrefix="bitcon";function Icon(_a){var{className,of:iconName}=_a,rest=__rest(_a,["className","of"]);return react_1.default.createElement(base_ui_elements_icon_1.BaseIcon,Object.assign({of:`${iconSetPrefix}-${iconName}`,className,"data-bit-id":"teambit.evangelist/elements/icon"},rest))}exports.Icon=Icon},94161:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(53586),exports)},5886:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
51
+ Copyright (c) 2018 Jed Watson.
52
+ Licensed under the MIT License (MIT), see
53
+ http://jedwatson.github.io/classnames
54
+ */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},95966:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinkedHeading=void 0;var linked_heading_1=__webpack_require__(74595);Object.defineProperty(exports,"LinkedHeading",{enumerable:!0,get:function(){return linked_heading_1.LinkedHeading}})},74595:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinkedHeading=void 0;const react_1=__importDefault(__webpack_require__(45993)),classnames_1=__importDefault(__webpack_require__(85648)),documenter_ui_heading_1=__webpack_require__(54822),documenter_ui_anchor_1=__webpack_require__(62082),linked_heading_module_scss_1=__importDefault(__webpack_require__(43289));function LinkedHeading(_a){var{children,link,size,element="h3",className}=_a,rest=__rest(_a,["children","link","size","element","className"]);const Element=headerElement(element);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(linked_heading_module_scss_1.default.linkedHeading,className)},rest),react_1.default.createElement(Element,{className:linked_heading_module_scss_1.default.heading,size,id:link},children),link&&react_1.default.createElement(documenter_ui_anchor_1.Anchor,{className:linked_heading_module_scss_1.default.anchor,href:link}))}exports.LinkedHeading=LinkedHeading;const headerElement=element=>{switch(element){case"h1":return documenter_ui_heading_1.H1;case"h2":return documenter_ui_heading_1.H2;case"h3":return documenter_ui_heading_1.H3;case"h4":return documenter_ui_heading_1.H4;case"h5":return documenter_ui_heading_1.H5;case"h6":return documenter_ui_heading_1.H6;default:return documenter_ui_heading_1.H3}}},53832:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;const react_1=__importDefault(__webpack_require__(45993));function Heading(_a){var{element="h1"}=_a,rest=__rest(_a,["element"]);const Element=element;return react_1.default.createElement(Element,Object.assign({"data-bit-id":"teambit.base-ui/text/heading"},rest))}exports.Heading=Heading},11285:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;var heading_1=__webpack_require__(53832);Object.defineProperty(exports,"Heading",{enumerable:!0,get:function(){return heading_1.Heading}})},94079:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.H6=exports.H5=exports.H4=exports.H3=exports.H2=exports.H1=void 0;const react_1=__importDefault(__webpack_require__(45993)),classnames_1=__importDefault(__webpack_require__(85648)),base_ui_text_heading_1=__webpack_require__(11285),heading_sizes_module_scss_1=__importDefault(__webpack_require__(67846)),heading_module_scss_1=__importDefault(__webpack_require__(62534));function H1(props){return react_1.default.createElement(base_ui_text_heading_1.Heading,Object.assign({element:"h1"},props,{className:(0,classnames_1.default)(heading_module_scss_1.default.h1,heading_sizes_module_scss_1.default[props.size||"lg"],props.className)}))}exports.H1=H1;function H2(props){return react_1.default.createElement(base_ui_text_heading_1.Heading,Object.assign({element:"h2"},props,{className:(0,classnames_1.default)(heading_module_scss_1.default.h2,heading_sizes_module_scss_1.default[props.size||"lg"],props.className)}))}exports.H2=H2;function H3(props){return react_1.default.createElement(base_ui_text_heading_1.Heading,Object.assign({element:"h3"},props,{className:(0,classnames_1.default)(heading_module_scss_1.default.h3,heading_sizes_module_scss_1.default[props.size||"md"],props.className)}))}exports.H3=H3;function H4(props){return react_1.default.createElement(base_ui_text_heading_1.Heading,Object.assign({element:"h4"},props,{className:(0,classnames_1.default)(heading_module_scss_1.default.h4,heading_sizes_module_scss_1.default[props.size||"sm"],props.className)}))}exports.H4=H4;function H5(props){return react_1.default.createElement(base_ui_text_heading_1.Heading,Object.assign({element:"h5"},props,{className:(0,classnames_1.default)(heading_module_scss_1.default.h5,heading_sizes_module_scss_1.default[props.size||"xs"],props.className)}))}exports.H5=H5;function H6(props){return react_1.default.createElement(base_ui_text_heading_1.Heading,Object.assign({element:"h6"},props,{className:(0,classnames_1.default)(heading_module_scss_1.default.h6,heading_sizes_module_scss_1.default[props.size||"xxs"],props.className)}))}exports.H6=H6},54822:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.H6=exports.H5=exports.H4=exports.H3=exports.H2=exports.H1=void 0;var heading_1=__webpack_require__(94079);Object.defineProperty(exports,"H1",{enumerable:!0,get:function(){return heading_1.H1}}),Object.defineProperty(exports,"H2",{enumerable:!0,get:function(){return heading_1.H2}}),Object.defineProperty(exports,"H3",{enumerable:!0,get:function(){return heading_1.H3}}),Object.defineProperty(exports,"H4",{enumerable:!0,get:function(){return heading_1.H4}}),Object.defineProperty(exports,"H5",{enumerable:!0,get:function(){return heading_1.H5}}),Object.defineProperty(exports,"H6",{enumerable:!0,get:function(){return heading_1.H6}})},85648:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
55
+ Copyright (c) 2018 Jed Watson.
56
+ Licensed under the MIT License (MIT), see
57
+ http://jedwatson.github.io/classnames
58
+ */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},84213:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Base=void 0;const react_1=__importDefault(__webpack_require__(45993)),react_error_boundary_1=__webpack_require__(35800),classnames_1=__importDefault(__webpack_require__(94184)),ramda_adjunct_1=__webpack_require__(50203),base_ui_utils_composer_1=__webpack_require__(57166),mdx_ui_mdx_layout_1=__webpack_require__(74749),react_ui_error_fallback_1=__webpack_require__(32334),react_2=__webpack_require__(32750),component_ui_hooks_use_fetch_docs_1=__webpack_require__(65648),base_module_scss_1=__importDefault(__webpack_require__(51913)),compositions_summary_1=__webpack_require__(35712),examples_overview_1=__webpack_require__(9265),properties_1=__webpack_require__(76989),defaultDocs={examples:[],labels:[],abstract:""};function Base(_a){var{docs=defaultDocs,componentId,compositions,renderingContext}=_a,rest=__rest(_a,["docs","componentId","compositions","renderingContext"]);const{loading,error,data}=(0,component_ui_hooks_use_fetch_docs_1.useFetchDocs)(componentId),{providers=[]}=renderingContext.get(react_2.ReactAspect.id)||{};if(!data||loading||loading)return null;if(error)throw error;const{docs:docsModel}=data,{properties}=docsModel,{examples=[]}=docs,Content=(0,ramda_adjunct_1.isFunction)(docs.default)?docs.default:()=>null;return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(base_module_scss_1.default.docsMainBlock)},rest),react_1.default.createElement(react_error_boundary_1.ErrorBoundary,{FallbackComponent:react_ui_error_fallback_1.ErrorFallback},react_1.default.createElement(base_ui_utils_composer_1.Composer,{components:providers},react_1.default.createElement(react_error_boundary_1.ErrorBoundary,{FallbackComponent:react_ui_error_fallback_1.ErrorFallback},Content.isMDXComponent?react_1.default.createElement(mdx_ui_mdx_layout_1.MDXLayout,{className:base_module_scss_1.default.mdx},react_1.default.createElement(Content,null)):react_1.default.createElement(Content,null)),react_1.default.createElement(compositions_summary_1.CompositionsSummary,{compositions,className:base_module_scss_1.default.compositionSection,compositionCardClass:base_module_scss_1.default.compositionCard}),react_1.default.createElement(examples_overview_1.ExamplesOverview,{examples:Content.examples||examples}),react_1.default.createElement(properties_1.Properties,{properties}))))}exports.Base=Base},35712:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsSummary=void 0;const compositions_1=__webpack_require__(32552),documenter_ui_linked_heading_1=__webpack_require__(95966),documenter_ui_section_1=__webpack_require__(78415),react_1=__importDefault(__webpack_require__(45993));function CompositionsSummary(_a){var{compositions,compositionCardClass}=_a,rest=__rest(_a,["compositions","compositionCardClass"]);return!compositions||Object.keys(compositions).length===0?null:react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,"Compositions"),react_1.default.createElement(compositions_1.CompositionsOverview,{compositions,compositionCardClass}))}exports.CompositionsSummary=CompositionsSummary},61286:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsApp=void 0;const react_1=__importDefault(__webpack_require__(45993)),documenter_theme_theme_context_1=__webpack_require__(14323),design_theme_icons_font_1=__webpack_require__(11545),base_1=__webpack_require__(84213);function DocsApp({Provider=Noop,docs,componentId,compositions,renderingContext}){return react_1.default.createElement(Provider,null,react_1.default.createElement(documenter_theme_theme_context_1.ThemeContext,null,react_1.default.createElement(design_theme_icons_font_1.IconFont,{query:"q76y7n"}),react_1.default.createElement(base_1.Base,{docs,componentId,compositions,renderingContext})))}exports.DocsApp=DocsApp;function Noop({children}){return react_1.default.createElement(react_1.default.Fragment,null,children)}},30546:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExamplesOverview=void 0;const documenter_ui_linked_heading_1=__webpack_require__(95966),documenter_ui_section_1=__webpack_require__(78415),classnames_1=__importDefault(__webpack_require__(94184)),react_1=__importDefault(__webpack_require__(45993)),jsx_to_string_1=__importDefault(__webpack_require__(53594)),documenter_code_react_playground_1=__webpack_require__(12156),examples_overview_module_scss_1=__importDefault(__webpack_require__(15645));function ExamplesOverview(_a){var{examples}=_a,rest=__rest(_a,["examples"]);return examples.length<=0?null:react_1.default.createElement("div",Object.assign({},rest),examples.map((example,idx)=>react_1.default.createElement(ExampleSection,{key:idx,example})))}exports.ExamplesOverview=ExamplesOverview;function ExampleSection(_a){var{example,className}=_a,rest=__rest(_a,["example","className"]);const code=example.jsx?(0,jsx_to_string_1.default)(example.jsx,{useFunctionCode:!0}):example.code;return react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest,{className:(0,classnames_1.default)(className,examples_overview_module_scss_1.default.exampleSection)}),example.title&&react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,example.title),example.description&&react_1.default.createElement("div",null,example.description),react_1.default.createElement(documenter_code_react_playground_1.Playground,{code,scope:example.scope}))}},9265:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(30546),exports)},79022:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__(45993)),react_dom_1=__importDefault(__webpack_require__(24149)),docs_app_1=__webpack_require__(61286);function DocsRoot(Provider,componentId,docs,compositions,context){react_dom_1.default.render(react_1.default.createElement(docs_app_1.DocsApp,{Provider,compositions,docs,componentId,renderingContext:context}),document.getElementById("root"))}exports.default=DocsRoot},76989:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Properties=void 0;const documenter_ui_linked_heading_1=__webpack_require__(95966),documenter_ui_property_table_1=__webpack_require__(75694),documenter_ui_section_1=__webpack_require__(78415),react_1=__importDefault(__webpack_require__(45993));function Properties({properties}){return properties.length===0?react_1.default.createElement("div",null):react_1.default.createElement(documenter_ui_section_1.Section,null,react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,"Properties"),react_1.default.createElement(documenter_ui_property_table_1.PropTable,{rows:properties}))}exports.Properties=Properties},51127:module=>{function stringify(obj,options){options=options||{};var indent=JSON.stringify([1],null,get(options,"indent",2)).slice(2,-3),addMargin=get(options,"margins",!1),maxLength=indent===""?1/0:get(options,"maxLength",80);return function _stringify(obj2,currentIndent,reserved){obj2&&typeof obj2.toJSON=="function"&&(obj2=obj2.toJSON());var string=JSON.stringify(obj2);if(string===void 0)return string;var length=maxLength-currentIndent.length-reserved;if(string.length<=length){var prettified=prettify(string,addMargin);if(prettified.length<=length)return prettified}if(typeof obj2=="object"&&obj2!==null){var nextIndent=currentIndent+indent,items=[],delimiters,comma=function(array,index2){return index2===array.length-1?0:1};if(Array.isArray(obj2)){for(var index=0;index<obj2.length;index++)items.push(_stringify(obj2[index],nextIndent,comma(obj2,index))||"null");delimiters="[]"}else Object.keys(obj2).forEach(function(key,index2,array){var keyPart=JSON.stringify(key)+": ",value=_stringify(obj2[key],nextIndent,keyPart.length+comma(array,index2));value!==void 0&&items.push(keyPart+value)}),delimiters="{}";if(items.length>0)return[delimiters[0],indent+items.join(`,
59
+ `+nextIndent),delimiters[1]].join(`
60
+ `+currentIndent)}return string}(obj,"",0)}var stringOrChar=/("(?:[^\\"]|\\.)*")|[:,\][}{]/g;function prettify(string,addMargin){var m=addMargin?" ":"",tokens={"{":"{"+m,"[":"["+m,"}":m+"}","]":m+"]",",":", ",":":": "};return string.replace(stringOrChar,function(match,string2){return string2?match:tokens[match]})}function get(options,name,defaultValue){return name in options?options[name]:defaultValue}module.exports=stringify},53594:(module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol=="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_react=__webpack_require__(45993),_react2=_interopRequireDefault(_react),_jsonStringifyPrettyCompact=__webpack_require__(51127),_jsonStringifyPrettyCompact2=_interopRequireDefault(_jsonStringifyPrettyCompact),_immutable=__webpack_require__(89287);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function isDefaultProp(defaultProps,key,value){return defaultProps?defaultProps[key]===value:!1}function stringifyObject(object,opts){var result=void 0;return Array.isArray(object)?result=object.map(function(item){return stringifyObject(item)}):object&&(typeof object>"u"?"undefined":_typeof(object))==="object"?(result={},Object.keys(object).map(function(key){var value=object[key];_react2.default.isValidElement(value)?value=jsxToString(value,opts):Array.isArray(value)?value=value.map(function(item){return stringifyObject(item,opts)}):(typeof value>"u"?"undefined":_typeof(value))==="object"?value=stringifyObject(value,opts):typeof value=="function"&&(value=opts.useFunctionCode?opts.functionNameOnly?value.name.toString():value.toString():"..."),result[key]=value})):result=object,result}var _JSX_REGEXP=/"<.+>"/g;function serializeItem(item,options){var delimit=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,result=void 0;if((0,_immutable.isImmutable)(item))result=serializeItem(item.toJS(),options,delimit);else if(typeof item=="string")result=delimit?"'"+item+"'":item;else if(typeof item=="number"||typeof item=="boolean")result=""+item;else if(Array.isArray(item)){var indentation=new Array(options.spacing+1).join(" "),delimiter=delimit?", ":`
61
+ `+indentation,items=item.map(function(i){return serializeItem(i,options)}).join(delimiter);result=delimit?"["+items+"]":""+items}else _react2.default.isValidElement(item)?result=jsxToString(item,options):(typeof item>"u"?"undefined":_typeof(item))==="object"?(result=(0,_jsonStringifyPrettyCompact2.default)(stringifyObject(item,options)),result=result.replace(_JSX_REGEXP,function(match){return match.slice(1,match.length-1)})):typeof item=="function"&&(result=options.useFunctionCode?options.functionNameOnly?item.name.toString():item.toString():"...");return result}function jsxToString(component,options){var baseOpts={displayName:component.type.displayName||component.type.name||component.type,ignoreProps:[],ignoreTags:[],keyValueOverride:{},spacing:0,detectFunctions:!1},opts=_extends({},baseOpts,options);if(opts.ignoreTags.indexOf(opts.displayName)!==-1)return"";var componentData={name:opts.displayName};if(delete opts.displayName,component.props){var indentation=new Array(opts.spacing+3).join(" ");componentData.props=Object.keys(component.props).filter(function(key){return key!=="children"&&!isDefaultProp(component.type.defaultProps,key,component.props[key])&&opts.ignoreProps.indexOf(key)===-1}).map(function(key){var value=void 0;if(typeof opts.keyValueOverride[key]=="function")value=opts.keyValueOverride[key](component.props[key]);else if(opts.keyValueOverride[key])value=opts.keyValueOverride[key];else{if(opts.shortBooleanSyntax&&typeof component.props[key]=="boolean"&&component.props[key])return key;value=serializeItem(component.props[key],_extends({},opts,{key}))}(typeof value!="string"||value[0]!=="'")&&(value="{"+value+"}");var valueLines=value.split(/\r\n|\r|\n/);return valueLines.length>1&&(value=valueLines.join(`
62
+ `+indentation)),key+"="+value}).join(`
63
+ `+indentation),component.key&&opts.ignoreProps.indexOf("key")===-1&&(componentData.props+="key='"+component.key+"'"),componentData.props.length>0&&(componentData.props=" "+componentData.props)}if(component.props.children){opts.spacing+=2;var _indentation=new Array(opts.spacing+1).join(" ");return Array.isArray(component.props.children)?componentData.children=component.props.children.reduce(function(a,b){return a.concat(b)},[]).filter(function(child){var childShouldBeRemoved=child&&child.type&&opts.ignoreTags.indexOf(child.type.displayName||child.type.name||child.type)===-1;return childShouldBeRemoved}).map(function(child){return serializeItem(child,opts,!1)}).join(`
64
+ `+_indentation):componentData.children=serializeItem(component.props.children,opts,!1),"<"+componentData.name+componentData.props+`>
65
+ `+(""+_indentation+componentData.children+`
66
+ `)+(_indentation.slice(0,-2)+"</"+componentData.name+">")}else return"<"+componentData.name+componentData.props+" />"}exports.default=jsxToString,module.exports=exports.default},89287:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,Collection:()=>Collection,Iterable:()=>Iterable,List:()=>List,Map:()=>Map2,OrderedMap:()=>OrderedMap,OrderedSet:()=>OrderedSet,Range:()=>Range,Record:()=>Record,Repeat:()=>Repeat,Seq:()=>Seq,Set:()=>Set2,Stack:()=>Stack,fromJS:()=>fromJS,get:()=>get,getIn:()=>getIn$1,has:()=>has,hasIn:()=>hasIn$1,hash:()=>hash,is:()=>is,isAssociative:()=>isAssociative,isCollection:()=>isCollection,isImmutable:()=>isImmutable,isIndexed:()=>isIndexed,isKeyed:()=>isKeyed,isList:()=>isList,isMap:()=>isMap,isOrdered:()=>isOrdered,isOrderedMap:()=>isOrderedMap,isOrderedSet:()=>isOrderedSet,isPlainObject:()=>isPlainObject,isRecord:()=>isRecord,isSeq:()=>isSeq,isSet:()=>isSet,isStack:()=>isStack,isValueObject:()=>isValueObject,merge:()=>merge,mergeDeep:()=>mergeDeep$1,mergeDeepWith:()=>mergeDeepWith$1,mergeWith:()=>mergeWith,remove:()=>remove,removeIn:()=>removeIn,set:()=>set,setIn:()=>setIn$1,update:()=>update$1,updateIn:()=>updateIn$1,version:()=>version});var DELETE="delete",SHIFT=5,SIZE=1<<SHIFT,MASK=SIZE-1,NOT_SET={};function MakeRef(){return{value:!1}}function SetRef(ref){ref&&(ref.value=!0)}function OwnerID(){}function ensureSize(iter){return iter.size===void 0&&(iter.size=iter.__iterate(returnTrue)),iter.size}function wrapIndex(iter,index){if(typeof index!="number"){var uint32Index=index>>>0;if(""+uint32Index!==index||uint32Index===4294967295)return NaN;index=uint32Index}return index<0?ensureSize(iter)+index:index}function returnTrue(){return!0}function wholeSlice(begin,end,size){return(begin===0&&!isNeg(begin)||size!==void 0&&begin<=-size)&&(end===void 0||size!==void 0&&end>=size)}function resolveBegin(begin,size){return resolveIndex(begin,size,0)}function resolveEnd(end,size){return resolveIndex(end,size,size)}function resolveIndex(index,size,defaultIndex){return index===void 0?defaultIndex:isNeg(index)?size===1/0?size:Math.max(0,size+index)|0:size===void 0||size===index?index:Math.min(size,index)|0}function isNeg(value){return value<0||value===0&&1/value===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(maybeCollection){return Boolean(maybeCollection&&maybeCollection[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(maybeKeyed){return Boolean(maybeKeyed&&maybeKeyed[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(maybeIndexed){return Boolean(maybeIndexed&&maybeIndexed[IS_INDEXED_SYMBOL])}function isAssociative(maybeAssociative){return isKeyed(maybeAssociative)||isIndexed(maybeAssociative)}var Collection=function(value){return isCollection(value)?value:Seq(value)},KeyedCollection=function(Collection2){function KeyedCollection2(value){return isKeyed(value)?value:KeyedSeq(value)}return Collection2&&(KeyedCollection2.__proto__=Collection2),KeyedCollection2.prototype=Object.create(Collection2&&Collection2.prototype),KeyedCollection2.prototype.constructor=KeyedCollection2,KeyedCollection2}(Collection),IndexedCollection=function(Collection2){function IndexedCollection2(value){return isIndexed(value)?value:IndexedSeq(value)}return Collection2&&(IndexedCollection2.__proto__=Collection2),IndexedCollection2.prototype=Object.create(Collection2&&Collection2.prototype),IndexedCollection2.prototype.constructor=IndexedCollection2,IndexedCollection2}(Collection),SetCollection=function(Collection2){function SetCollection2(value){return isCollection(value)&&!isAssociative(value)?value:SetSeq(value)}return Collection2&&(SetCollection2.__proto__=Collection2),SetCollection2.prototype=Object.create(Collection2&&Collection2.prototype),SetCollection2.prototype.constructor=SetCollection2,SetCollection2}(Collection);Collection.Keyed=KeyedCollection,Collection.Indexed=IndexedCollection,Collection.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(maybeSeq){return Boolean(maybeSeq&&maybeSeq[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(maybeRecord){return Boolean(maybeRecord&&maybeRecord[IS_RECORD_SYMBOL])}function isImmutable(maybeImmutable){return isCollection(maybeImmutable)||isRecord(maybeImmutable)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(maybeOrdered){return Boolean(maybeOrdered&&maybeOrdered[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(next){this.next=next};Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=ITERATE_KEYS,Iterator.VALUES=ITERATE_VALUES,Iterator.ENTRIES=ITERATE_ENTRIES,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(type,k,v,iteratorResult){var value=type===0?k:type===1?v:[k,v];return iteratorResult?iteratorResult.value=value:iteratorResult={value,done:!1},iteratorResult}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(maybeIterable){return Array.isArray(maybeIterable)?!0:!!getIteratorFn(maybeIterable)}function isIterator(maybeIterator){return maybeIterator&&typeof maybeIterator.next=="function"}function getIterator(iterable){var iteratorFn=getIteratorFn(iterable);return iteratorFn&&iteratorFn.call(iterable)}function getIteratorFn(iterable){var iteratorFn=iterable&&(REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL]||iterable[FAUX_ITERATOR_SYMBOL]);if(typeof iteratorFn=="function")return iteratorFn}function isEntriesIterable(maybeIterable){var iteratorFn=getIteratorFn(maybeIterable);return iteratorFn&&iteratorFn===maybeIterable.entries}function isKeysIterable(maybeIterable){var iteratorFn=getIteratorFn(maybeIterable);return iteratorFn&&iteratorFn===maybeIterable.keys}var hasOwnProperty=Object.prototype.hasOwnProperty;function isArrayLike(value){return Array.isArray(value)||typeof value=="string"?!0:value&&typeof value=="object"&&Number.isInteger(value.length)&&value.length>=0&&(value.length===0?Object.keys(value).length===1:value.hasOwnProperty(value.length-1))}var Seq=function(Collection2){function Seq2(value){return value==null?emptySequence():isImmutable(value)?value.toSeq():seqFromValue(value)}return Collection2&&(Seq2.__proto__=Collection2),Seq2.prototype=Object.create(Collection2&&Collection2.prototype),Seq2.prototype.constructor=Seq2,Seq2.prototype.toSeq=function(){return this},Seq2.prototype.toString=function(){return this.__toString("Seq {","}")},Seq2.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq2.prototype.__iterate=function(fn,reverse){var cache=this._cache;if(cache){for(var size=cache.length,i=0;i!==size;){var entry=cache[reverse?size-++i:i++];if(fn(entry[1],entry[0],this)===!1)break}return i}return this.__iterateUncached(fn,reverse)},Seq2.prototype.__iterator=function(type,reverse){var cache=this._cache;if(cache){var size=cache.length,i=0;return new Iterator(function(){if(i===size)return iteratorDone();var entry=cache[reverse?size-++i:i++];return iteratorValue(type,entry[0],entry[1])})}return this.__iteratorUncached(type,reverse)},Seq2}(Collection),KeyedSeq=function(Seq2){function KeyedSeq2(value){return value==null?emptySequence().toKeyedSeq():isCollection(value)?isKeyed(value)?value.toSeq():value.fromEntrySeq():isRecord(value)?value.toSeq():keyedSeqFromValue(value)}return Seq2&&(KeyedSeq2.__proto__=Seq2),KeyedSeq2.prototype=Object.create(Seq2&&Seq2.prototype),KeyedSeq2.prototype.constructor=KeyedSeq2,KeyedSeq2.prototype.toKeyedSeq=function(){return this},KeyedSeq2}(Seq),IndexedSeq=function(Seq2){function IndexedSeq2(value){return value==null?emptySequence():isCollection(value)?isKeyed(value)?value.entrySeq():value.toIndexedSeq():isRecord(value)?value.toSeq().entrySeq():indexedSeqFromValue(value)}return Seq2&&(IndexedSeq2.__proto__=Seq2),IndexedSeq2.prototype=Object.create(Seq2&&Seq2.prototype),IndexedSeq2.prototype.constructor=IndexedSeq2,IndexedSeq2.of=function(){return IndexedSeq2(arguments)},IndexedSeq2.prototype.toIndexedSeq=function(){return this},IndexedSeq2.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq2}(Seq),SetSeq=function(Seq2){function SetSeq2(value){return(isCollection(value)&&!isAssociative(value)?value:IndexedSeq(value)).toSetSeq()}return Seq2&&(SetSeq2.__proto__=Seq2),SetSeq2.prototype=Object.create(Seq2&&Seq2.prototype),SetSeq2.prototype.constructor=SetSeq2,SetSeq2.of=function(){return SetSeq2(arguments)},SetSeq2.prototype.toSetSeq=function(){return this},SetSeq2}(Seq);Seq.isSeq=isSeq,Seq.Keyed=KeyedSeq,Seq.Set=SetSeq,Seq.Indexed=IndexedSeq,Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(IndexedSeq2){function ArraySeq2(array){this._array=array,this.size=array.length}return IndexedSeq2&&(ArraySeq2.__proto__=IndexedSeq2),ArraySeq2.prototype=Object.create(IndexedSeq2&&IndexedSeq2.prototype),ArraySeq2.prototype.constructor=ArraySeq2,ArraySeq2.prototype.get=function(index,notSetValue){return this.has(index)?this._array[wrapIndex(this,index)]:notSetValue},ArraySeq2.prototype.__iterate=function(fn,reverse){for(var array=this._array,size=array.length,i=0;i!==size;){var ii=reverse?size-++i:i++;if(fn(array[ii],ii,this)===!1)break}return i},ArraySeq2.prototype.__iterator=function(type,reverse){var array=this._array,size=array.length,i=0;return new Iterator(function(){if(i===size)return iteratorDone();var ii=reverse?size-++i:i++;return iteratorValue(type,ii,array[ii])})},ArraySeq2}(IndexedSeq),ObjectSeq=function(KeyedSeq2){function ObjectSeq2(object){var keys=Object.keys(object);this._object=object,this._keys=keys,this.size=keys.length}return KeyedSeq2&&(ObjectSeq2.__proto__=KeyedSeq2),ObjectSeq2.prototype=Object.create(KeyedSeq2&&KeyedSeq2.prototype),ObjectSeq2.prototype.constructor=ObjectSeq2,ObjectSeq2.prototype.get=function(key,notSetValue){return notSetValue!==void 0&&!this.has(key)?notSetValue:this._object[key]},ObjectSeq2.prototype.has=function(key){return hasOwnProperty.call(this._object,key)},ObjectSeq2.prototype.__iterate=function(fn,reverse){for(var object=this._object,keys=this._keys,size=keys.length,i=0;i!==size;){var key=keys[reverse?size-++i:i++];if(fn(object[key],key,this)===!1)break}return i},ObjectSeq2.prototype.__iterator=function(type,reverse){var object=this._object,keys=this._keys,size=keys.length,i=0;return new Iterator(function(){if(i===size)return iteratorDone();var key=keys[reverse?size-++i:i++];return iteratorValue(type,key,object[key])})},ObjectSeq2}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(IndexedSeq2){function CollectionSeq2(collection){this._collection=collection,this.size=collection.length||collection.size}return IndexedSeq2&&(CollectionSeq2.__proto__=IndexedSeq2),CollectionSeq2.prototype=Object.create(IndexedSeq2&&IndexedSeq2.prototype),CollectionSeq2.prototype.constructor=CollectionSeq2,CollectionSeq2.prototype.__iterateUncached=function(fn,reverse){if(reverse)return this.cacheResult().__iterate(fn,reverse);var collection=this._collection,iterator=getIterator(collection),iterations=0;if(isIterator(iterator))for(var step;!(step=iterator.next()).done&&fn(step.value,iterations++,this)!==!1;);return iterations},CollectionSeq2.prototype.__iteratorUncached=function(type,reverse){if(reverse)return this.cacheResult().__iterator(type,reverse);var collection=this._collection,iterator=getIterator(collection);if(!isIterator(iterator))return new Iterator(iteratorDone);var iterations=0;return new Iterator(function(){var step=iterator.next();return step.done?step:iteratorValue(type,iterations++,step.value)})},CollectionSeq2}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(value){var seq=maybeIndexedSeqFromValue(value);if(seq)return seq.fromEntrySeq();if(typeof value=="object")return new ObjectSeq(value);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+value)}function indexedSeqFromValue(value){var seq=maybeIndexedSeqFromValue(value);if(seq)return seq;throw new TypeError("Expected Array or collection object of values: "+value)}function seqFromValue(value){var seq=maybeIndexedSeqFromValue(value);if(seq)return isEntriesIterable(value)?seq.fromEntrySeq():isKeysIterable(value)?seq.toSetSeq():seq;if(typeof value=="object")return new ObjectSeq(value);throw new TypeError("Expected Array or collection object of values, or keyed object: "+value)}function maybeIndexedSeqFromValue(value){return isArrayLike(value)?new ArraySeq(value):hasIterator(value)?new CollectionSeq(value):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap(maybeMap){return Boolean(maybeMap&&maybeMap[IS_MAP_SYMBOL])}function isOrderedMap(maybeOrderedMap){return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap)}function isValueObject(maybeValue){return Boolean(maybeValue&&typeof maybeValue.equals=="function"&&typeof maybeValue.hashCode=="function")}function is(valueA,valueB){if(valueA===valueB||valueA!==valueA&&valueB!==valueB)return!0;if(!valueA||!valueB)return!1;if(typeof valueA.valueOf=="function"&&typeof valueB.valueOf=="function"){if(valueA=valueA.valueOf(),valueB=valueB.valueOf(),valueA===valueB||valueA!==valueA&&valueB!==valueB)return!0;if(!valueA||!valueB)return!1}return!!(isValueObject(valueA)&&isValueObject(valueB)&&valueA.equals(valueB))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(a,b){a|=0,b|=0;var c=a&65535,d=b&65535;return c*d+((a>>>16)*d+c*(b>>>16)<<16>>>0)|0};function smi(i32){return i32>>>1&1073741824|i32&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash(o){if(o==null)return hashNullish(o);if(typeof o.hashCode=="function")return smi(o.hashCode(o));var v=valueOf(o);if(v==null)return hashNullish(v);switch(typeof v){case"boolean":return v?1108378657:1108378656;case"number":return hashNumber(v);case"string":return v.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(v):hashString(v);case"object":case"function":return hashJSObj(v);case"symbol":return hashSymbol(v);default:if(typeof v.toString=="function")return hashString(v.toString());throw new Error("Value type "+typeof v+" cannot be hashed.")}}function hashNullish(nullish){return nullish===null?1108378658:1108378659}function hashNumber(n){if(n!==n||n===1/0)return 0;var hash2=n|0;for(hash2!==n&&(hash2^=n*4294967295);n>4294967295;)n/=4294967295,hash2^=n;return smi(hash2)}function cachedHashString(string){var hashed=stringHashCache[string];return hashed===void 0&&(hashed=hashString(string),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[string]=hashed),hashed}function hashString(string){for(var hashed=0,ii=0;ii<string.length;ii++)hashed=31*hashed+string.charCodeAt(ii)|0;return smi(hashed)}function hashSymbol(sym){var hashed=symbolMap[sym];return hashed!==void 0||(hashed=nextHash(),symbolMap[sym]=hashed),hashed}function hashJSObj(obj){var hashed;if(usingWeakMap&&(hashed=weakMap.get(obj),hashed!==void 0)||(hashed=obj[UID_HASH_KEY],hashed!==void 0)||!canDefineProperty&&(hashed=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY],hashed!==void 0||(hashed=getIENodeHash(obj),hashed!==void 0)))return hashed;if(hashed=nextHash(),usingWeakMap)weakMap.set(obj,hashed);else{if(isExtensible!==void 0&&isExtensible(obj)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(canDefineProperty)Object.defineProperty(obj,UID_HASH_KEY,{enumerable:!1,configurable:!1,writable:!1,value:hashed});else if(obj.propertyIsEnumerable!==void 0&&obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable)obj.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},obj.propertyIsEnumerable[UID_HASH_KEY]=hashed;else if(obj.nodeType!==void 0)obj[UID_HASH_KEY]=hashed;else throw new Error("Unable to set a non-enumerable property on object.")}return hashed}var isExtensible=Object.isExtensible,canDefineProperty=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function getIENodeHash(node){if(node&&node.nodeType>0)switch(node.nodeType){case 1:return node.uniqueID;case 9:return node.documentElement&&node.documentElement.uniqueID}}function valueOf(obj){return obj.valueOf!==defaultValueOf&&typeof obj.valueOf=="function"?obj.valueOf(obj):obj}function nextHash(){var nextHash2=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),nextHash2}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(KeyedSeq2){function ToKeyedSequence2(indexed,useKeys){this._iter=indexed,this._useKeys=useKeys,this.size=indexed.size}return KeyedSeq2&&(ToKeyedSequence2.__proto__=KeyedSeq2),ToKeyedSequence2.prototype=Object.create(KeyedSeq2&&KeyedSeq2.prototype),ToKeyedSequence2.prototype.constructor=ToKeyedSequence2,ToKeyedSequence2.prototype.get=function(key,notSetValue){return this._iter.get(key,notSetValue)},ToKeyedSequence2.prototype.has=function(key){return this._iter.has(key)},ToKeyedSequence2.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence2.prototype.reverse=function(){var this$1$1=this,reversedSequence=reverseFactory(this,!0);return this._useKeys||(reversedSequence.valueSeq=function(){return this$1$1._iter.toSeq().reverse()}),reversedSequence},ToKeyedSequence2.prototype.map=function(mapper,context){var this$1$1=this,mappedSequence=mapFactory(this,mapper,context);return this._useKeys||(mappedSequence.valueSeq=function(){return this$1$1._iter.toSeq().map(mapper,context)}),mappedSequence},ToKeyedSequence2.prototype.__iterate=function(fn,reverse){var this$1$1=this;return this._iter.__iterate(function(v,k){return fn(v,k,this$1$1)},reverse)},ToKeyedSequence2.prototype.__iterator=function(type,reverse){return this._iter.__iterator(type,reverse)},ToKeyedSequence2}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(IndexedSeq2){function ToIndexedSequence2(iter){this._iter=iter,this.size=iter.size}return IndexedSeq2&&(ToIndexedSequence2.__proto__=IndexedSeq2),ToIndexedSequence2.prototype=Object.create(IndexedSeq2&&IndexedSeq2.prototype),ToIndexedSequence2.prototype.constructor=ToIndexedSequence2,ToIndexedSequence2.prototype.includes=function(value){return this._iter.includes(value)},ToIndexedSequence2.prototype.__iterate=function(fn,reverse){var this$1$1=this,i=0;return reverse&&ensureSize(this),this._iter.__iterate(function(v){return fn(v,reverse?this$1$1.size-++i:i++,this$1$1)},reverse)},ToIndexedSequence2.prototype.__iterator=function(type,reverse){var this$1$1=this,iterator=this._iter.__iterator(ITERATE_VALUES,reverse),i=0;return reverse&&ensureSize(this),new Iterator(function(){var step=iterator.next();return step.done?step:iteratorValue(type,reverse?this$1$1.size-++i:i++,step.value,step)})},ToIndexedSequence2}(IndexedSeq),ToSetSequence=function(SetSeq2){function ToSetSequence2(iter){this._iter=iter,this.size=iter.size}return SetSeq2&&(ToSetSequence2.__proto__=SetSeq2),ToSetSequence2.prototype=Object.create(SetSeq2&&SetSeq2.prototype),ToSetSequence2.prototype.constructor=ToSetSequence2,ToSetSequence2.prototype.has=function(key){return this._iter.includes(key)},ToSetSequence2.prototype.__iterate=function(fn,reverse){var this$1$1=this;return this._iter.__iterate(function(v){return fn(v,v,this$1$1)},reverse)},ToSetSequence2.prototype.__iterator=function(type,reverse){var iterator=this._iter.__iterator(ITERATE_VALUES,reverse);return new Iterator(function(){var step=iterator.next();return step.done?step:iteratorValue(type,step.value,step.value,step)})},ToSetSequence2}(SetSeq),FromEntriesSequence=function(KeyedSeq2){function FromEntriesSequence2(entries){this._iter=entries,this.size=entries.size}return KeyedSeq2&&(FromEntriesSequence2.__proto__=KeyedSeq2),FromEntriesSequence2.prototype=Object.create(KeyedSeq2&&KeyedSeq2.prototype),FromEntriesSequence2.prototype.constructor=FromEntriesSequence2,FromEntriesSequence2.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence2.prototype.__iterate=function(fn,reverse){var this$1$1=this;return this._iter.__iterate(function(entry){if(entry){validateEntry(entry);var indexedCollection=isCollection(entry);return fn(indexedCollection?entry.get(1):entry[1],indexedCollection?entry.get(0):entry[0],this$1$1)}},reverse)},FromEntriesSequence2.prototype.__iterator=function(type,reverse){var iterator=this._iter.__iterator(ITERATE_VALUES,reverse);return new Iterator(function(){for(;;){var step=iterator.next();if(step.done)return step;var entry=step.value;if(entry){validateEntry(entry);var indexedCollection=isCollection(entry);return iteratorValue(type,indexedCollection?entry.get(0):entry[0],indexedCollection?entry.get(1):entry[1],step)}}})},FromEntriesSequence2}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(collection){var flipSequence=makeSequence(collection);return flipSequence._iter=collection,flipSequence.size=collection.size,flipSequence.flip=function(){return collection},flipSequence.reverse=function(){var reversedSequence=collection.reverse.apply(this);return reversedSequence.flip=function(){return collection.reverse()},reversedSequence},flipSequence.has=function(key){return collection.includes(key)},flipSequence.includes=function(key){return collection.has(key)},flipSequence.cacheResult=cacheResultThrough,flipSequence.__iterateUncached=function(fn,reverse){var this$1$1=this;return collection.__iterate(function(v,k){return fn(k,v,this$1$1)!==!1},reverse)},flipSequence.__iteratorUncached=function(type,reverse){if(type===ITERATE_ENTRIES){var iterator=collection.__iterator(type,reverse);return new Iterator(function(){var step=iterator.next();if(!step.done){var k=step.value[0];step.value[0]=step.value[1],step.value[1]=k}return step})}return collection.__iterator(type===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,reverse)},flipSequence}function mapFactory(collection,mapper,context){var mappedSequence=makeSequence(collection);return mappedSequence.size=collection.size,mappedSequence.has=function(key){return collection.has(key)},mappedSequence.get=function(key,notSetValue){var v=collection.get(key,NOT_SET);return v===NOT_SET?notSetValue:mapper.call(context,v,key,collection)},mappedSequence.__iterateUncached=function(fn,reverse){var this$1$1=this;return collection.__iterate(function(v,k,c){return fn(mapper.call(context,v,k,c),k,this$1$1)!==!1},reverse)},mappedSequence.__iteratorUncached=function(type,reverse){var iterator=collection.__iterator(ITERATE_ENTRIES,reverse);return new Iterator(function(){var step=iterator.next();if(step.done)return step;var entry=step.value,key=entry[0];return iteratorValue(type,key,mapper.call(context,entry[1],key,collection),step)})},mappedSequence}function reverseFactory(collection,useKeys){var this$1$1=this,reversedSequence=makeSequence(collection);return reversedSequence._iter=collection,reversedSequence.size=collection.size,reversedSequence.reverse=function(){return collection},collection.flip&&(reversedSequence.flip=function(){var flipSequence=flipFactory(collection);return flipSequence.reverse=function(){return collection.flip()},flipSequence}),reversedSequence.get=function(key,notSetValue){return collection.get(useKeys?key:-1-key,notSetValue)},reversedSequence.has=function(key){return collection.has(useKeys?key:-1-key)},reversedSequence.includes=function(value){return collection.includes(value)},reversedSequence.cacheResult=cacheResultThrough,reversedSequence.__iterate=function(fn,reverse){var this$1$12=this,i=0;return reverse&&ensureSize(collection),collection.__iterate(function(v,k){return fn(v,useKeys?k:reverse?this$1$12.size-++i:i++,this$1$12)},!reverse)},reversedSequence.__iterator=function(type,reverse){var i=0;reverse&&ensureSize(collection);var iterator=collection.__iterator(ITERATE_ENTRIES,!reverse);return new Iterator(function(){var step=iterator.next();if(step.done)return step;var entry=step.value;return iteratorValue(type,useKeys?entry[0]:reverse?this$1$1.size-++i:i++,entry[1],step)})},reversedSequence}function filterFactory(collection,predicate,context,useKeys){var filterSequence=makeSequence(collection);return useKeys&&(filterSequence.has=function(key){var v=collection.get(key,NOT_SET);return v!==NOT_SET&&!!predicate.call(context,v,key,collection)},filterSequence.get=function(key,notSetValue){var v=collection.get(key,NOT_SET);return v!==NOT_SET&&predicate.call(context,v,key,collection)?v:notSetValue}),filterSequence.__iterateUncached=function(fn,reverse){var this$1$1=this,iterations=0;return collection.__iterate(function(v,k,c){if(predicate.call(context,v,k,c))return iterations++,fn(v,useKeys?k:iterations-1,this$1$1)},reverse),iterations},filterSequence.__iteratorUncached=function(type,reverse){var iterator=collection.__iterator(ITERATE_ENTRIES,reverse),iterations=0;return new Iterator(function(){for(;;){var step=iterator.next();if(step.done)return step;var entry=step.value,key=entry[0],value=entry[1];if(predicate.call(context,value,key,collection))return iteratorValue(type,useKeys?key:iterations++,value,step)}})},filterSequence}function countByFactory(collection,grouper,context){var groups=Map2().asMutable();return collection.__iterate(function(v,k){groups.update(grouper.call(context,v,k,collection),0,function(a){return a+1})}),groups.asImmutable()}function groupByFactory(collection,grouper,context){var isKeyedIter=isKeyed(collection),groups=(isOrdered(collection)?OrderedMap():Map2()).asMutable();collection.__iterate(function(v,k){groups.update(grouper.call(context,v,k,collection),function(a){return a=a||[],a.push(isKeyedIter?[k,v]:v),a})});var coerce=collectionClass(collection);return groups.map(function(arr){return reify(collection,coerce(arr))}).asImmutable()}function sliceFactory(collection,begin,end,useKeys){var originalSize=collection.size;if(wholeSlice(begin,end,originalSize))return collection;var resolvedBegin=resolveBegin(begin,originalSize),resolvedEnd=resolveEnd(end,originalSize);if(resolvedBegin!==resolvedBegin||resolvedEnd!==resolvedEnd)return sliceFactory(collection.toSeq().cacheResult(),begin,end,useKeys);var resolvedSize=resolvedEnd-resolvedBegin,sliceSize;resolvedSize===resolvedSize&&(sliceSize=resolvedSize<0?0:resolvedSize);var sliceSeq=makeSequence(collection);return sliceSeq.size=sliceSize===0?sliceSize:collection.size&&sliceSize||void 0,!useKeys&&isSeq(collection)&&sliceSize>=0&&(sliceSeq.get=function(index,notSetValue){return index=wrapIndex(this,index),index>=0&&index<sliceSize?collection.get(index+resolvedBegin,notSetValue):notSetValue}),sliceSeq.__iterateUncached=function(fn,reverse){var this$1$1=this;if(sliceSize===0)return 0;if(reverse)return this.cacheResult().__iterate(fn,reverse);var skipped=0,isSkipping=!0,iterations=0;return collection.__iterate(function(v,k){if(!(isSkipping&&(isSkipping=skipped++<resolvedBegin)))return iterations++,fn(v,useKeys?k:iterations-1,this$1$1)!==!1&&iterations!==sliceSize}),iterations},sliceSeq.__iteratorUncached=function(type,reverse){if(sliceSize!==0&&reverse)return this.cacheResult().__iterator(type,reverse);if(sliceSize===0)return new Iterator(iteratorDone);var iterator=collection.__iterator(type,reverse),skipped=0,iterations=0;return new Iterator(function(){for(;skipped++<resolvedBegin;)iterator.next();if(++iterations>sliceSize)return iteratorDone();var step=iterator.next();return useKeys||type===ITERATE_VALUES||step.done?step:type===ITERATE_KEYS?iteratorValue(type,iterations-1,void 0,step):iteratorValue(type,iterations-1,step.value[1],step)})},sliceSeq}function takeWhileFactory(collection,predicate,context){var takeSequence=makeSequence(collection);return takeSequence.__iterateUncached=function(fn,reverse){var this$1$1=this;if(reverse)return this.cacheResult().__iterate(fn,reverse);var iterations=0;return collection.__iterate(function(v,k,c){return predicate.call(context,v,k,c)&&++iterations&&fn(v,k,this$1$1)}),iterations},takeSequence.__iteratorUncached=function(type,reverse){var this$1$1=this;if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=collection.__iterator(ITERATE_ENTRIES,reverse),iterating=!0;return new Iterator(function(){if(!iterating)return iteratorDone();var step=iterator.next();if(step.done)return step;var entry=step.value,k=entry[0],v=entry[1];return predicate.call(context,v,k,this$1$1)?type===ITERATE_ENTRIES?step:iteratorValue(type,k,v,step):(iterating=!1,iteratorDone())})},takeSequence}function skipWhileFactory(collection,predicate,context,useKeys){var skipSequence=makeSequence(collection);return skipSequence.__iterateUncached=function(fn,reverse){var this$1$1=this;if(reverse)return this.cacheResult().__iterate(fn,reverse);var isSkipping=!0,iterations=0;return collection.__iterate(function(v,k,c){if(!(isSkipping&&(isSkipping=predicate.call(context,v,k,c))))return iterations++,fn(v,useKeys?k:iterations-1,this$1$1)}),iterations},skipSequence.__iteratorUncached=function(type,reverse){var this$1$1=this;if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=collection.__iterator(ITERATE_ENTRIES,reverse),skipping=!0,iterations=0;return new Iterator(function(){var step,k,v;do{if(step=iterator.next(),step.done)return useKeys||type===ITERATE_VALUES?step:type===ITERATE_KEYS?iteratorValue(type,iterations++,void 0,step):iteratorValue(type,iterations++,step.value[1],step);var entry=step.value;k=entry[0],v=entry[1],skipping&&(skipping=predicate.call(context,v,k,this$1$1))}while(skipping);return type===ITERATE_ENTRIES?step:iteratorValue(type,k,v,step)})},skipSequence}function concatFactory(collection,values){var isKeyedCollection=isKeyed(collection),iters=[collection].concat(values).map(function(v){return isCollection(v)?isKeyedCollection&&(v=KeyedCollection(v)):v=isKeyedCollection?keyedSeqFromValue(v):indexedSeqFromValue(Array.isArray(v)?v:[v]),v}).filter(function(v){return v.size!==0});if(iters.length===0)return collection;if(iters.length===1){var singleton=iters[0];if(singleton===collection||isKeyedCollection&&isKeyed(singleton)||isIndexed(collection)&&isIndexed(singleton))return singleton}var concatSeq=new ArraySeq(iters);return isKeyedCollection?concatSeq=concatSeq.toKeyedSeq():isIndexed(collection)||(concatSeq=concatSeq.toSetSeq()),concatSeq=concatSeq.flatten(!0),concatSeq.size=iters.reduce(function(sum,seq){if(sum!==void 0){var size=seq.size;if(size!==void 0)return sum+size}},0),concatSeq}function flattenFactory(collection,depth,useKeys){var flatSequence=makeSequence(collection);return flatSequence.__iterateUncached=function(fn,reverse){if(reverse)return this.cacheResult().__iterate(fn,reverse);var iterations=0,stopped=!1;function flatDeep(iter,currentDepth){iter.__iterate(function(v,k){return(!depth||currentDepth<depth)&&isCollection(v)?flatDeep(v,currentDepth+1):(iterations++,fn(v,useKeys?k:iterations-1,flatSequence)===!1&&(stopped=!0)),!stopped},reverse)}return flatDeep(collection,0),iterations},flatSequence.__iteratorUncached=function(type,reverse){if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=collection.__iterator(type,reverse),stack=[],iterations=0;return new Iterator(function(){for(;iterator;){var step=iterator.next();if(step.done!==!1){iterator=stack.pop();continue}var v=step.value;if(type===ITERATE_ENTRIES&&(v=v[1]),(!depth||stack.length<depth)&&isCollection(v))stack.push(iterator),iterator=v.__iterator(type,reverse);else return useKeys?step:iteratorValue(type,iterations++,v,step)}return iteratorDone()})},flatSequence}function flatMapFactory(collection,mapper,context){var coerce=collectionClass(collection);return collection.toSeq().map(function(v,k){return coerce(mapper.call(context,v,k,collection))}).flatten(!0)}function interposeFactory(collection,separator){var interposedSequence=makeSequence(collection);return interposedSequence.size=collection.size&&collection.size*2-1,interposedSequence.__iterateUncached=function(fn,reverse){var this$1$1=this,iterations=0;return collection.__iterate(function(v){return(!iterations||fn(separator,iterations++,this$1$1)!==!1)&&fn(v,iterations++,this$1$1)!==!1},reverse),iterations},interposedSequence.__iteratorUncached=function(type,reverse){var iterator=collection.__iterator(ITERATE_VALUES,reverse),iterations=0,step;return new Iterator(function(){return(!step||iterations%2)&&(step=iterator.next(),step.done)?step:iterations%2?iteratorValue(type,iterations++,separator):iteratorValue(type,iterations++,step.value,step)})},interposedSequence}function sortFactory(collection,comparator,mapper){comparator||(comparator=defaultComparator);var isKeyedCollection=isKeyed(collection),index=0,entries=collection.toSeq().map(function(v,k){return[k,v,index++,mapper?mapper(v,k,collection):v]}).valueSeq().toArray();return entries.sort(function(a,b){return comparator(a[3],b[3])||a[2]-b[2]}).forEach(isKeyedCollection?function(v,i){entries[i].length=2}:function(v,i){entries[i]=v[1]}),isKeyedCollection?KeyedSeq(entries):isIndexed(collection)?IndexedSeq(entries):SetSeq(entries)}function maxFactory(collection,comparator,mapper){if(comparator||(comparator=defaultComparator),mapper){var entry=collection.toSeq().map(function(v,k){return[v,mapper(v,k,collection)]}).reduce(function(a,b){return maxCompare(comparator,a[1],b[1])?b:a});return entry&&entry[0]}return collection.reduce(function(a,b){return maxCompare(comparator,a,b)?b:a})}function maxCompare(comparator,a,b){var comp=comparator(b,a);return comp===0&&b!==a&&(b==null||b!==b)||comp>0}function zipWithFactory(keyIter,zipper,iters,zipAll){var zipSequence=makeSequence(keyIter),sizes=new ArraySeq(iters).map(function(i){return i.size});return zipSequence.size=zipAll?sizes.max():sizes.min(),zipSequence.__iterate=function(fn,reverse){for(var iterator=this.__iterator(ITERATE_VALUES,reverse),step,iterations=0;!(step=iterator.next()).done&&fn(step.value,iterations++,this)!==!1;);return iterations},zipSequence.__iteratorUncached=function(type,reverse){var iterators=iters.map(function(i){return i=Collection(i),getIterator(reverse?i.reverse():i)}),iterations=0,isDone=!1;return new Iterator(function(){var steps;return isDone||(steps=iterators.map(function(i){return i.next()}),isDone=zipAll?steps.every(function(s){return s.done}):steps.some(function(s){return s.done})),isDone?iteratorDone():iteratorValue(type,iterations++,zipper.apply(null,steps.map(function(s){return s.value})))})},zipSequence}function reify(iter,seq){return iter===seq?iter:isSeq(iter)?seq:iter.constructor(seq)}function validateEntry(entry){if(entry!==Object(entry))throw new TypeError("Expected [K, V] tuple: "+entry)}function collectionClass(collection){return isKeyed(collection)?KeyedCollection:isIndexed(collection)?IndexedCollection:SetCollection}function makeSequence(collection){return Object.create((isKeyed(collection)?KeyedSeq:isIndexed(collection)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(a,b){return a===void 0&&b===void 0?0:a===void 0?1:b===void 0?-1:a>b?1:a<b?-1:0}function arrCopy(arr,offset){offset=offset||0;for(var len=Math.max(0,arr.length-offset),newArr=new Array(len),ii=0;ii<len;ii++)newArr[ii]=arr[ii+offset];return newArr}function invariant(condition,error){if(!condition)throw new Error(error)}function assertNotInfinite(size){invariant(size!==1/0,"Cannot perform this action with an infinite size.")}function coerceKeyPath(keyPath){if(isArrayLike(keyPath)&&typeof keyPath!="string")return keyPath;if(isOrdered(keyPath))return keyPath.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+keyPath)}var toString=Object.prototype.toString;function isPlainObject(value){if(!value||typeof value!="object"||toString.call(value)!=="[object Object]")return!1;var proto=Object.getPrototypeOf(value);if(proto===null)return!0;for(var parentProto=proto,nextProto=Object.getPrototypeOf(proto);nextProto!==null;)parentProto=nextProto,nextProto=Object.getPrototypeOf(parentProto);return parentProto===proto}function isDataStructure(value){return typeof value=="object"&&(isImmutable(value)||Array.isArray(value)||isPlainObject(value))}function quoteString(value){try{return typeof value=="string"?JSON.stringify(value):String(value)}catch{return JSON.stringify(value)}}function has(collection,key){return isImmutable(collection)?collection.has(key):isDataStructure(collection)&&hasOwnProperty.call(collection,key)}function get(collection,key,notSetValue){return isImmutable(collection)?collection.get(key,notSetValue):has(collection,key)?typeof collection.get=="function"?collection.get(key):collection[key]:notSetValue}function shallowCopy(from){if(Array.isArray(from))return arrCopy(from);var to={};for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);return to}function remove(collection,key){if(!isDataStructure(collection))throw new TypeError("Cannot update non-data-structure value: "+collection);if(isImmutable(collection)){if(!collection.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+collection);return collection.remove(key)}if(!hasOwnProperty.call(collection,key))return collection;var collectionCopy=shallowCopy(collection);return Array.isArray(collectionCopy)?collectionCopy.splice(key,1):delete collectionCopy[key],collectionCopy}function set(collection,key,value){if(!isDataStructure(collection))throw new TypeError("Cannot update non-data-structure value: "+collection);if(isImmutable(collection)){if(!collection.set)throw new TypeError("Cannot update immutable value without .set() method: "+collection);return collection.set(key,value)}if(hasOwnProperty.call(collection,key)&&value===collection[key])return collection;var collectionCopy=shallowCopy(collection);return collectionCopy[key]=value,collectionCopy}function updateIn$1(collection,keyPath,notSetValue,updater){updater||(updater=notSetValue,notSetValue=void 0);var updatedValue=updateInDeeply(isImmutable(collection),collection,coerceKeyPath(keyPath),0,notSetValue,updater);return updatedValue===NOT_SET?notSetValue:updatedValue}function updateInDeeply(inImmutable,existing,keyPath,i,notSetValue,updater){var wasNotSet=existing===NOT_SET;if(i===keyPath.length){var existingValue=wasNotSet?notSetValue:existing,newValue=updater(existingValue);return newValue===existingValue?existing:newValue}if(!wasNotSet&&!isDataStructure(existing))throw new TypeError("Cannot update within non-data-structure value in path ["+keyPath.slice(0,i).map(quoteString)+"]: "+existing);var key=keyPath[i],nextExisting=wasNotSet?NOT_SET:get(existing,key,NOT_SET),nextUpdated=updateInDeeply(nextExisting===NOT_SET?inImmutable:isImmutable(nextExisting),nextExisting,keyPath,i+1,notSetValue,updater);return nextUpdated===nextExisting?existing:nextUpdated===NOT_SET?remove(existing,key):set(wasNotSet?inImmutable?emptyMap():{}:existing,key,nextUpdated)}function setIn$1(collection,keyPath,value){return updateIn$1(collection,keyPath,NOT_SET,function(){return value})}function setIn(keyPath,v){return setIn$1(this,keyPath,v)}function removeIn(collection,keyPath){return updateIn$1(collection,keyPath,function(){return NOT_SET})}function deleteIn(keyPath){return removeIn(this,keyPath)}function update$1(collection,key,notSetValue,updater){return updateIn$1(collection,[key],notSetValue,updater)}function update(key,notSetValue,updater){return arguments.length===1?key(this):update$1(this,key,notSetValue,updater)}function updateIn(keyPath,notSetValue,updater){return updateIn$1(this,keyPath,notSetValue,updater)}function merge$1(){for(var iters=[],len=arguments.length;len--;)iters[len]=arguments[len];return mergeIntoKeyedWith(this,iters)}function mergeWith$1(merger){for(var iters=[],len=arguments.length-1;len-- >0;)iters[len]=arguments[len+1];if(typeof merger!="function")throw new TypeError("Invalid merger function: "+merger);return mergeIntoKeyedWith(this,iters,merger)}function mergeIntoKeyedWith(collection,collections,merger){for(var iters=[],ii=0;ii<collections.length;ii++){var collection$1=KeyedCollection(collections[ii]);collection$1.size!==0&&iters.push(collection$1)}return iters.length===0?collection:collection.toSeq().size===0&&!collection.__ownerID&&iters.length===1?collection.constructor(iters[0]):collection.withMutations(function(collection2){for(var mergeIntoCollection=merger?function(value,key){update$1(collection2,key,NOT_SET,function(oldVal){return oldVal===NOT_SET?value:merger(oldVal,value,key)})}:function(value,key){collection2.set(key,value)},ii2=0;ii2<iters.length;ii2++)iters[ii2].forEach(mergeIntoCollection)})}function merge(collection){for(var sources=[],len=arguments.length-1;len-- >0;)sources[len]=arguments[len+1];return mergeWithSources(collection,sources)}function mergeWith(merger,collection){for(var sources=[],len=arguments.length-2;len-- >0;)sources[len]=arguments[len+2];return mergeWithSources(collection,sources,merger)}function mergeDeep$1(collection){for(var sources=[],len=arguments.length-1;len-- >0;)sources[len]=arguments[len+1];return mergeDeepWithSources(collection,sources)}function mergeDeepWith$1(merger,collection){for(var sources=[],len=arguments.length-2;len-- >0;)sources[len]=arguments[len+2];return mergeDeepWithSources(collection,sources,merger)}function mergeDeepWithSources(collection,sources,merger){return mergeWithSources(collection,sources,deepMergerWith(merger))}function mergeWithSources(collection,sources,merger){if(!isDataStructure(collection))throw new TypeError("Cannot merge into non-data-structure value: "+collection);if(isImmutable(collection))return typeof merger=="function"&&collection.mergeWith?collection.mergeWith.apply(collection,[merger].concat(sources)):collection.merge?collection.merge.apply(collection,sources):collection.concat.apply(collection,sources);for(var isArray=Array.isArray(collection),merged=collection,Collection2=isArray?IndexedCollection:KeyedCollection,mergeItem=isArray?function(value){merged===collection&&(merged=shallowCopy(merged)),merged.push(value)}:function(value,key){var hasVal=hasOwnProperty.call(merged,key),nextVal=hasVal&&merger?merger(merged[key],value,key):value;(!hasVal||nextVal!==merged[key])&&(merged===collection&&(merged=shallowCopy(merged)),merged[key]=nextVal)},i=0;i<sources.length;i++)Collection2(sources[i]).forEach(mergeItem);return merged}function deepMergerWith(merger){function deepMerger(oldValue,newValue,key){return isDataStructure(oldValue)&&isDataStructure(newValue)&&areMergeable(oldValue,newValue)?mergeWithSources(oldValue,[newValue],deepMerger):merger?merger(oldValue,newValue,key):newValue}return deepMerger}function areMergeable(oldDataStructure,newDataStructure){var oldSeq=Seq(oldDataStructure),newSeq=Seq(newDataStructure);return isIndexed(oldSeq)===isIndexed(newSeq)&&isKeyed(oldSeq)===isKeyed(newSeq)}function mergeDeep(){for(var iters=[],len=arguments.length;len--;)iters[len]=arguments[len];return mergeDeepWithSources(this,iters)}function mergeDeepWith(merger){for(var iters=[],len=arguments.length-1;len-- >0;)iters[len]=arguments[len+1];return mergeDeepWithSources(this,iters,merger)}function mergeIn(keyPath){for(var iters=[],len=arguments.length-1;len-- >0;)iters[len]=arguments[len+1];return updateIn$1(this,keyPath,emptyMap(),function(m){return mergeWithSources(m,iters)})}function mergeDeepIn(keyPath){for(var iters=[],len=arguments.length-1;len-- >0;)iters[len]=arguments[len+1];return updateIn$1(this,keyPath,emptyMap(),function(m){return mergeDeepWithSources(m,iters)})}function withMutations(fn){var mutable=this.asMutable();return fn(mutable),mutable.wasAltered()?mutable.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map2=function(KeyedCollection2){function Map3(value){return value==null?emptyMap():isMap(value)&&!isOrdered(value)?value:emptyMap().withMutations(function(map){var iter=KeyedCollection2(value);assertNotInfinite(iter.size),iter.forEach(function(v,k){return map.set(k,v)})})}return KeyedCollection2&&(Map3.__proto__=KeyedCollection2),Map3.prototype=Object.create(KeyedCollection2&&KeyedCollection2.prototype),Map3.prototype.constructor=Map3,Map3.of=function(){for(var keyValues=[],len=arguments.length;len--;)keyValues[len]=arguments[len];return emptyMap().withMutations(function(map){for(var i=0;i<keyValues.length;i+=2){if(i+1>=keyValues.length)throw new Error("Missing value for key: "+keyValues[i]);map.set(keyValues[i],keyValues[i+1])}})},Map3.prototype.toString=function(){return this.__toString("Map {","}")},Map3.prototype.get=function(k,notSetValue){return this._root?this._root.get(0,void 0,k,notSetValue):notSetValue},Map3.prototype.set=function(k,v){return updateMap(this,k,v)},Map3.prototype.remove=function(k){return updateMap(this,k,NOT_SET)},Map3.prototype.deleteAll=function(keys){var collection=Collection(keys);return collection.size===0?this:this.withMutations(function(map){collection.forEach(function(key){return map.remove(key)})})},Map3.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},Map3.prototype.sort=function(comparator){return OrderedMap(sortFactory(this,comparator))},Map3.prototype.sortBy=function(mapper,comparator){return OrderedMap(sortFactory(this,comparator,mapper))},Map3.prototype.map=function(mapper,context){var this$1$1=this;return this.withMutations(function(map2){map2.forEach(function(value,key){map2.set(key,mapper.call(context,value,key,this$1$1))})})},Map3.prototype.__iterator=function(type,reverse){return new MapIterator(this,type,reverse)},Map3.prototype.__iterate=function(fn,reverse){var this$1$1=this,iterations=0;return this._root&&this._root.iterate(function(entry){return iterations++,fn(entry[1],entry[0],this$1$1)},reverse),iterations},Map3.prototype.__ensureOwner=function(ownerID){return ownerID===this.__ownerID?this:ownerID?makeMap(this.size,this._root,ownerID,this.__hash):this.size===0?emptyMap():(this.__ownerID=ownerID,this.__altered=!1,this)},Map3}(KeyedCollection);Map2.isMap=isMap;var MapPrototype=Map2.prototype;MapPrototype[IS_MAP_SYMBOL]=!0,MapPrototype[DELETE]=MapPrototype.remove,MapPrototype.removeAll=MapPrototype.deleteAll,MapPrototype.setIn=setIn,MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn,MapPrototype.update=update,MapPrototype.updateIn=updateIn,MapPrototype.merge=MapPrototype.concat=merge$1,MapPrototype.mergeWith=mergeWith$1,MapPrototype.mergeDeep=mergeDeep,MapPrototype.mergeDeepWith=mergeDeepWith,MapPrototype.mergeIn=mergeIn,MapPrototype.mergeDeepIn=mergeDeepIn,MapPrototype.withMutations=withMutations,MapPrototype.wasAltered=wasAltered,MapPrototype.asImmutable=asImmutable,MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable,MapPrototype["@@transducer/step"]=function(result,arr){return result.set(arr[0],arr[1])},MapPrototype["@@transducer/result"]=function(obj){return obj.asImmutable()};var ArrayMapNode=function(ownerID,entries){this.ownerID=ownerID,this.entries=entries};ArrayMapNode.prototype.get=function(shift,keyHash,key,notSetValue){for(var entries=this.entries,ii=0,len=entries.length;ii<len;ii++)if(is(key,entries[ii][0]))return entries[ii][1];return notSetValue},ArrayMapNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){for(var removed=value===NOT_SET,entries=this.entries,idx=0,len=entries.length;idx<len&&!is(key,entries[idx][0]);idx++);var exists=idx<len;if(exists?entries[idx][1]===value:removed)return this;if(SetRef(didAlter),(removed||!exists)&&SetRef(didChangeSize),!(removed&&entries.length===1)){if(!exists&&!removed&&entries.length>=MAX_ARRAY_MAP_SIZE)return createNodes(ownerID,entries,key,value);var isEditable=ownerID&&ownerID===this.ownerID,newEntries=isEditable?entries:arrCopy(entries);return exists?removed?idx===len-1?newEntries.pop():newEntries[idx]=newEntries.pop():newEntries[idx]=[key,value]:newEntries.push([key,value]),isEditable?(this.entries=newEntries,this):new ArrayMapNode(ownerID,newEntries)}};var BitmapIndexedNode=function(ownerID,bitmap,nodes){this.ownerID=ownerID,this.bitmap=bitmap,this.nodes=nodes};BitmapIndexedNode.prototype.get=function(shift,keyHash,key,notSetValue){keyHash===void 0&&(keyHash=hash(key));var bit=1<<((shift===0?keyHash:keyHash>>>shift)&MASK),bitmap=this.bitmap;return(bitmap&bit)===0?notSetValue:this.nodes[popCount(bitmap&bit-1)].get(shift+SHIFT,keyHash,key,notSetValue)},BitmapIndexedNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){keyHash===void 0&&(keyHash=hash(key));var keyHashFrag=(shift===0?keyHash:keyHash>>>shift)&MASK,bit=1<<keyHashFrag,bitmap=this.bitmap,exists=(bitmap&bit)!==0;if(!exists&&value===NOT_SET)return this;var idx=popCount(bitmap&bit-1),nodes=this.nodes,node=exists?nodes[idx]:void 0,newNode=updateNode(node,ownerID,shift+SHIFT,keyHash,key,value,didChangeSize,didAlter);if(newNode===node)return this;if(!exists&&newNode&&nodes.length>=MAX_BITMAP_INDEXED_SIZE)return expandNodes(ownerID,nodes,bitmap,keyHashFrag,newNode);if(exists&&!newNode&&nodes.length===2&&isLeafNode(nodes[idx^1]))return nodes[idx^1];if(exists&&newNode&&nodes.length===1&&isLeafNode(newNode))return newNode;var isEditable=ownerID&&ownerID===this.ownerID,newBitmap=exists?newNode?bitmap:bitmap^bit:bitmap|bit,newNodes=exists?newNode?setAt(nodes,idx,newNode,isEditable):spliceOut(nodes,idx,isEditable):spliceIn(nodes,idx,newNode,isEditable);return isEditable?(this.bitmap=newBitmap,this.nodes=newNodes,this):new BitmapIndexedNode(ownerID,newBitmap,newNodes)};var HashArrayMapNode=function(ownerID,count,nodes){this.ownerID=ownerID,this.count=count,this.nodes=nodes};HashArrayMapNode.prototype.get=function(shift,keyHash,key,notSetValue){keyHash===void 0&&(keyHash=hash(key));var idx=(shift===0?keyHash:keyHash>>>shift)&MASK,node=this.nodes[idx];return node?node.get(shift+SHIFT,keyHash,key,notSetValue):notSetValue},HashArrayMapNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){keyHash===void 0&&(keyHash=hash(key));var idx=(shift===0?keyHash:keyHash>>>shift)&MASK,removed=value===NOT_SET,nodes=this.nodes,node=nodes[idx];if(removed&&!node)return this;var newNode=updateNode(node,ownerID,shift+SHIFT,keyHash,key,value,didChangeSize,didAlter);if(newNode===node)return this;var newCount=this.count;if(!node)newCount++;else if(!newNode&&(newCount--,newCount<MIN_HASH_ARRAY_MAP_SIZE))return packNodes(ownerID,nodes,newCount,idx);var isEditable=ownerID&&ownerID===this.ownerID,newNodes=setAt(nodes,idx,newNode,isEditable);return isEditable?(this.count=newCount,this.nodes=newNodes,this):new HashArrayMapNode(ownerID,newCount,newNodes)};var HashCollisionNode=function(ownerID,keyHash,entries){this.ownerID=ownerID,this.keyHash=keyHash,this.entries=entries};HashCollisionNode.prototype.get=function(shift,keyHash,key,notSetValue){for(var entries=this.entries,ii=0,len=entries.length;ii<len;ii++)if(is(key,entries[ii][0]))return entries[ii][1];return notSetValue},HashCollisionNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){keyHash===void 0&&(keyHash=hash(key));var removed=value===NOT_SET;if(keyHash!==this.keyHash)return removed?this:(SetRef(didAlter),SetRef(didChangeSize),mergeIntoNode(this,ownerID,shift,keyHash,[key,value]));for(var entries=this.entries,idx=0,len=entries.length;idx<len&&!is(key,entries[idx][0]);idx++);var exists=idx<len;if(exists?entries[idx][1]===value:removed)return this;if(SetRef(didAlter),(removed||!exists)&&SetRef(didChangeSize),removed&&len===2)return new ValueNode(ownerID,this.keyHash,entries[idx^1]);var isEditable=ownerID&&ownerID===this.ownerID,newEntries=isEditable?entries:arrCopy(entries);return exists?removed?idx===len-1?newEntries.pop():newEntries[idx]=newEntries.pop():newEntries[idx]=[key,value]:newEntries.push([key,value]),isEditable?(this.entries=newEntries,this):new HashCollisionNode(ownerID,this.keyHash,newEntries)};var ValueNode=function(ownerID,keyHash,entry){this.ownerID=ownerID,this.keyHash=keyHash,this.entry=entry};ValueNode.prototype.get=function(shift,keyHash,key,notSetValue){return is(key,this.entry[0])?this.entry[1]:notSetValue},ValueNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){var removed=value===NOT_SET,keyMatch=is(key,this.entry[0]);if(keyMatch?value===this.entry[1]:removed)return this;if(SetRef(didAlter),removed){SetRef(didChangeSize);return}return keyMatch?ownerID&&ownerID===this.ownerID?(this.entry[1]=value,this):new ValueNode(ownerID,this.keyHash,[key,value]):(SetRef(didChangeSize),mergeIntoNode(this,ownerID,shift,hash(key),[key,value]))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(fn,reverse){for(var entries=this.entries,ii=0,maxIndex=entries.length-1;ii<=maxIndex;ii++)if(fn(entries[reverse?maxIndex-ii:ii])===!1)return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(fn,reverse){for(var nodes=this.nodes,ii=0,maxIndex=nodes.length-1;ii<=maxIndex;ii++){var node=nodes[reverse?maxIndex-ii:ii];if(node&&node.iterate(fn,reverse)===!1)return!1}},ValueNode.prototype.iterate=function(fn,reverse){return fn(this.entry)};var MapIterator=function(Iterator2){function MapIterator2(map,type,reverse){this._type=type,this._reverse=reverse,this._stack=map._root&&mapIteratorFrame(map._root)}return Iterator2&&(MapIterator2.__proto__=Iterator2),MapIterator2.prototype=Object.create(Iterator2&&Iterator2.prototype),MapIterator2.prototype.constructor=MapIterator2,MapIterator2.prototype.next=function(){for(var type=this._type,stack=this._stack;stack;){var node=stack.node,index=stack.index++,maxIndex=void 0;if(node.entry){if(index===0)return mapIteratorValue(type,node.entry)}else if(node.entries){if(maxIndex=node.entries.length-1,index<=maxIndex)return mapIteratorValue(type,node.entries[this._reverse?maxIndex-index:index])}else if(maxIndex=node.nodes.length-1,index<=maxIndex){var subNode=node.nodes[this._reverse?maxIndex-index:index];if(subNode){if(subNode.entry)return mapIteratorValue(type,subNode.entry);stack=this._stack=mapIteratorFrame(subNode,stack)}continue}stack=this._stack=this._stack.__prev}return iteratorDone()},MapIterator2}(Iterator);function mapIteratorValue(type,entry){return iteratorValue(type,entry[0],entry[1])}function mapIteratorFrame(node,prev){return{node,index:0,__prev:prev}}function makeMap(size,root,ownerID,hash2){var map=Object.create(MapPrototype);return map.size=size,map._root=root,map.__ownerID=ownerID,map.__hash=hash2,map.__altered=!1,map}var EMPTY_MAP;function emptyMap(){return EMPTY_MAP||(EMPTY_MAP=makeMap(0))}function updateMap(map,k,v){var newRoot,newSize;if(map._root){var didChangeSize=MakeRef(),didAlter=MakeRef();if(newRoot=updateNode(map._root,map.__ownerID,0,void 0,k,v,didChangeSize,didAlter),!didAlter.value)return map;newSize=map.size+(didChangeSize.value?v===NOT_SET?-1:1:0)}else{if(v===NOT_SET)return map;newSize=1,newRoot=new ArrayMapNode(map.__ownerID,[[k,v]])}return map.__ownerID?(map.size=newSize,map._root=newRoot,map.__hash=void 0,map.__altered=!0,map):newRoot?makeMap(newSize,newRoot):emptyMap()}function updateNode(node,ownerID,shift,keyHash,key,value,didChangeSize,didAlter){return node?node.update(ownerID,shift,keyHash,key,value,didChangeSize,didAlter):value===NOT_SET?node:(SetRef(didAlter),SetRef(didChangeSize),new ValueNode(ownerID,keyHash,[key,value]))}function isLeafNode(node){return node.constructor===ValueNode||node.constructor===HashCollisionNode}function mergeIntoNode(node,ownerID,shift,keyHash,entry){if(node.keyHash===keyHash)return new HashCollisionNode(ownerID,keyHash,[node.entry,entry]);var idx1=(shift===0?node.keyHash:node.keyHash>>>shift)&MASK,idx2=(shift===0?keyHash:keyHash>>>shift)&MASK,newNode,nodes=idx1===idx2?[mergeIntoNode(node,ownerID,shift+SHIFT,keyHash,entry)]:(newNode=new ValueNode(ownerID,keyHash,entry),idx1<idx2?[node,newNode]:[newNode,node]);return new BitmapIndexedNode(ownerID,1<<idx1|1<<idx2,nodes)}function createNodes(ownerID,entries,key,value){ownerID||(ownerID=new OwnerID);for(var node=new ValueNode(ownerID,hash(key),[key,value]),ii=0;ii<entries.length;ii++){var entry=entries[ii];node=node.update(ownerID,0,void 0,entry[0],entry[1])}return node}function packNodes(ownerID,nodes,count,excluding){for(var bitmap=0,packedII=0,packedNodes=new Array(count),ii=0,bit=1,len=nodes.length;ii<len;ii++,bit<<=1){var node=nodes[ii];node!==void 0&&ii!==excluding&&(bitmap|=bit,packedNodes[packedII++]=node)}return new BitmapIndexedNode(ownerID,bitmap,packedNodes)}function expandNodes(ownerID,nodes,bitmap,including,node){for(var count=0,expandedNodes=new Array(SIZE),ii=0;bitmap!==0;ii++,bitmap>>>=1)expandedNodes[ii]=bitmap&1?nodes[count++]:void 0;return expandedNodes[including]=node,new HashArrayMapNode(ownerID,count+1,expandedNodes)}function popCount(x){return x-=x>>1&1431655765,x=(x&858993459)+(x>>2&858993459),x=x+(x>>4)&252645135,x+=x>>8,x+=x>>16,x&127}function setAt(array,idx,val,canEdit){var newArray=canEdit?array:arrCopy(array);return newArray[idx]=val,newArray}function spliceIn(array,idx,val,canEdit){var newLen=array.length+1;if(canEdit&&idx+1===newLen)return array[idx]=val,array;for(var newArray=new Array(newLen),after=0,ii=0;ii<newLen;ii++)ii===idx?(newArray[ii]=val,after=-1):newArray[ii]=array[ii+after];return newArray}function spliceOut(array,idx,canEdit){var newLen=array.length-1;if(canEdit&&idx===newLen)return array.pop(),array;for(var newArray=new Array(newLen),after=0,ii=0;ii<newLen;ii++)ii===idx&&(after=1),newArray[ii]=array[ii+after];return newArray}var MAX_ARRAY_MAP_SIZE=SIZE/4,MAX_BITMAP_INDEXED_SIZE=SIZE/2,MIN_HASH_ARRAY_MAP_SIZE=SIZE/4,IS_LIST_SYMBOL="@@__IMMUTABLE_LIST__@@";function isList(maybeList){return Boolean(maybeList&&maybeList[IS_LIST_SYMBOL])}var List=function(IndexedCollection2){function List2(value){var empty=emptyList();if(value==null)return empty;if(isList(value))return value;var iter=IndexedCollection2(value),size=iter.size;return size===0?empty:(assertNotInfinite(size),size>0&&size<SIZE?makeList(0,size,SHIFT,null,new VNode(iter.toArray())):empty.withMutations(function(list){list.setSize(size),iter.forEach(function(v,i){return list.set(i,v)})}))}return IndexedCollection2&&(List2.__proto__=IndexedCollection2),List2.prototype=Object.create(IndexedCollection2&&IndexedCollection2.prototype),List2.prototype.constructor=List2,List2.of=function(){return this(arguments)},List2.prototype.toString=function(){return this.__toString("List [","]")},List2.prototype.get=function(index,notSetValue){if(index=wrapIndex(this,index),index>=0&&index<this.size){index+=this._origin;var node=listNodeFor(this,index);return node&&node.array[index&MASK]}return notSetValue},List2.prototype.set=function(index,value){return updateList(this,index,value)},List2.prototype.remove=function(index){return this.has(index)?index===0?this.shift():index===this.size-1?this.pop():this.splice(index,1):this},List2.prototype.insert=function(index,value){return this.splice(index,0,value)},List2.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=SHIFT,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):emptyList()},List2.prototype.push=function(){var values=arguments,oldSize=this.size;return this.withMutations(function(list){setListBounds(list,0,oldSize+values.length);for(var ii=0;ii<values.length;ii++)list.set(oldSize+ii,values[ii])})},List2.prototype.pop=function(){return setListBounds(this,0,-1)},List2.prototype.unshift=function(){var values=arguments;return this.withMutations(function(list){setListBounds(list,-values.length);for(var ii=0;ii<values.length;ii++)list.set(ii,values[ii])})},List2.prototype.shift=function(){return setListBounds(this,1)},List2.prototype.concat=function(){for(var arguments$1=arguments,seqs=[],i=0;i<arguments.length;i++){var argument=arguments$1[i],seq=IndexedCollection2(typeof argument!="string"&&hasIterator(argument)?argument:[argument]);seq.size!==0&&seqs.push(seq)}return seqs.length===0?this:this.size===0&&!this.__ownerID&&seqs.length===1?this.constructor(seqs[0]):this.withMutations(function(list){seqs.forEach(function(seq2){return seq2.forEach(function(value){return list.push(value)})})})},List2.prototype.setSize=function(size){return setListBounds(this,0,size)},List2.prototype.map=function(mapper,context){var this$1$1=this;return this.withMutations(function(list){for(var i=0;i<this$1$1.size;i++)list.set(i,mapper.call(context,list.get(i),i,this$1$1))})},List2.prototype.slice=function(begin,end){var size=this.size;return wholeSlice(begin,end,size)?this:setListBounds(this,resolveBegin(begin,size),resolveEnd(end,size))},List2.prototype.__iterator=function(type,reverse){var index=reverse?this.size:0,values=iterateList(this,reverse);return new Iterator(function(){var value=values();return value===DONE?iteratorDone():iteratorValue(type,reverse?--index:index++,value)})},List2.prototype.__iterate=function(fn,reverse){for(var index=reverse?this.size:0,values=iterateList(this,reverse),value;(value=values())!==DONE&&fn(value,reverse?--index:index++,this)!==!1;);return index},List2.prototype.__ensureOwner=function(ownerID){return ownerID===this.__ownerID?this:ownerID?makeList(this._origin,this._capacity,this._level,this._root,this._tail,ownerID,this.__hash):this.size===0?emptyList():(this.__ownerID=ownerID,this.__altered=!1,this)},List2}(IndexedCollection);List.isList=isList;var ListPrototype=List.prototype;ListPrototype[IS_LIST_SYMBOL]=!0,ListPrototype[DELETE]=ListPrototype.remove,ListPrototype.merge=ListPrototype.concat,ListPrototype.setIn=setIn,ListPrototype.deleteIn=ListPrototype.removeIn=deleteIn,ListPrototype.update=update,ListPrototype.updateIn=updateIn,ListPrototype.mergeIn=mergeIn,ListPrototype.mergeDeepIn=mergeDeepIn,ListPrototype.withMutations=withMutations,ListPrototype.wasAltered=wasAltered,ListPrototype.asImmutable=asImmutable,ListPrototype["@@transducer/init"]=ListPrototype.asMutable=asMutable,ListPrototype["@@transducer/step"]=function(result,arr){return result.push(arr)},ListPrototype["@@transducer/result"]=function(obj){return obj.asImmutable()};var VNode=function(array,ownerID){this.array=array,this.ownerID=ownerID};VNode.prototype.removeBefore=function(ownerID,level,index){if(index===level?1<<level:this.array.length===0)return this;var originIndex=index>>>level&MASK;if(originIndex>=this.array.length)return new VNode([],ownerID);var removingFirst=originIndex===0,newChild;if(level>0){var oldChild=this.array[originIndex];if(newChild=oldChild&&oldChild.removeBefore(ownerID,level-SHIFT,index),newChild===oldChild&&removingFirst)return this}if(removingFirst&&!newChild)return this;var editable=editableVNode(this,ownerID);if(!removingFirst)for(var ii=0;ii<originIndex;ii++)editable.array[ii]=void 0;return newChild&&(editable.array[originIndex]=newChild),editable},VNode.prototype.removeAfter=function(ownerID,level,index){if(index===(level?1<<level:0)||this.array.length===0)return this;var sizeIndex=index-1>>>level&MASK;if(sizeIndex>=this.array.length)return this;var newChild;if(level>0){var oldChild=this.array[sizeIndex];if(newChild=oldChild&&oldChild.removeAfter(ownerID,level-SHIFT,index),newChild===oldChild&&sizeIndex===this.array.length-1)return this}var editable=editableVNode(this,ownerID);return editable.array.splice(sizeIndex+1),newChild&&(editable.array[sizeIndex]=newChild),editable};var DONE={};function iterateList(list,reverse){var left=list._origin,right=list._capacity,tailPos=getTailOffset(right),tail=list._tail;return iterateNodeOrLeaf(list._root,list._level,0);function iterateNodeOrLeaf(node,level,offset){return level===0?iterateLeaf(node,offset):iterateNode(node,level,offset)}function iterateLeaf(node,offset){var array=offset===tailPos?tail&&tail.array:node&&node.array,from=offset>left?0:left-offset,to=right-offset;return to>SIZE&&(to=SIZE),function(){if(from===to)return DONE;var idx=reverse?--to:from++;return array&&array[idx]}}function iterateNode(node,level,offset){var values,array=node&&node.array,from=offset>left?0:left-offset>>level,to=(right-offset>>level)+1;return to>SIZE&&(to=SIZE),function(){for(;;){if(values){var value=values();if(value!==DONE)return value;values=null}if(from===to)return DONE;var idx=reverse?--to:from++;values=iterateNodeOrLeaf(array&&array[idx],level-SHIFT,offset+(idx<<level))}}}}function makeList(origin,capacity,level,root,tail,ownerID,hash2){var list=Object.create(ListPrototype);return list.size=capacity-origin,list._origin=origin,list._capacity=capacity,list._level=level,list._root=root,list._tail=tail,list.__ownerID=ownerID,list.__hash=hash2,list.__altered=!1,list}var EMPTY_LIST;function emptyList(){return EMPTY_LIST||(EMPTY_LIST=makeList(0,0,SHIFT))}function updateList(list,index,value){if(index=wrapIndex(list,index),index!==index)return list;if(index>=list.size||index<0)return list.withMutations(function(list2){index<0?setListBounds(list2,index).set(0,value):setListBounds(list2,0,index+1).set(index,value)});index+=list._origin;var newTail=list._tail,newRoot=list._root,didAlter=MakeRef();return index>=getTailOffset(list._capacity)?newTail=updateVNode(newTail,list.__ownerID,0,index,value,didAlter):newRoot=updateVNode(newRoot,list.__ownerID,list._level,index,value,didAlter),didAlter.value?list.__ownerID?(list._root=newRoot,list._tail=newTail,list.__hash=void 0,list.__altered=!0,list):makeList(list._origin,list._capacity,list._level,newRoot,newTail):list}function updateVNode(node,ownerID,level,index,value,didAlter){var idx=index>>>level&MASK,nodeHas=node&&idx<node.array.length;if(!nodeHas&&value===void 0)return node;var newNode;if(level>0){var lowerNode=node&&node.array[idx],newLowerNode=updateVNode(lowerNode,ownerID,level-SHIFT,index,value,didAlter);return newLowerNode===lowerNode?node:(newNode=editableVNode(node,ownerID),newNode.array[idx]=newLowerNode,newNode)}return nodeHas&&node.array[idx]===value?node:(didAlter&&SetRef(didAlter),newNode=editableVNode(node,ownerID),value===void 0&&idx===newNode.array.length-1?newNode.array.pop():newNode.array[idx]=value,newNode)}function editableVNode(node,ownerID){return ownerID&&node&&ownerID===node.ownerID?node:new VNode(node?node.array.slice():[],ownerID)}function listNodeFor(list,rawIndex){if(rawIndex>=getTailOffset(list._capacity))return list._tail;if(rawIndex<1<<list._level+SHIFT){for(var node=list._root,level=list._level;node&&level>0;)node=node.array[rawIndex>>>level&MASK],level-=SHIFT;return node}}function setListBounds(list,begin,end){begin!==void 0&&(begin|=0),end!==void 0&&(end|=0);var owner=list.__ownerID||new OwnerID,oldOrigin=list._origin,oldCapacity=list._capacity,newOrigin=oldOrigin+begin,newCapacity=end===void 0?oldCapacity:end<0?oldCapacity+end:oldOrigin+end;if(newOrigin===oldOrigin&&newCapacity===oldCapacity)return list;if(newOrigin>=newCapacity)return list.clear();for(var newLevel=list._level,newRoot=list._root,offsetShift=0;newOrigin+offsetShift<0;)newRoot=new VNode(newRoot&&newRoot.array.length?[void 0,newRoot]:[],owner),newLevel+=SHIFT,offsetShift+=1<<newLevel;offsetShift&&(newOrigin+=offsetShift,oldOrigin+=offsetShift,newCapacity+=offsetShift,oldCapacity+=offsetShift);for(var oldTailOffset=getTailOffset(oldCapacity),newTailOffset=getTailOffset(newCapacity);newTailOffset>=1<<newLevel+SHIFT;)newRoot=new VNode(newRoot&&newRoot.array.length?[newRoot]:[],owner),newLevel+=SHIFT;var oldTail=list._tail,newTail=newTailOffset<oldTailOffset?listNodeFor(list,newCapacity-1):newTailOffset>oldTailOffset?new VNode([],owner):oldTail;if(oldTail&&newTailOffset>oldTailOffset&&newOrigin<oldCapacity&&oldTail.array.length){newRoot=editableVNode(newRoot,owner);for(var node=newRoot,level=newLevel;level>SHIFT;level-=SHIFT){var idx=oldTailOffset>>>level&MASK;node=node.array[idx]=editableVNode(node.array[idx],owner)}node.array[oldTailOffset>>>SHIFT&MASK]=oldTail}if(newCapacity<oldCapacity&&(newTail=newTail&&newTail.removeAfter(owner,0,newCapacity)),newOrigin>=newTailOffset)newOrigin-=newTailOffset,newCapacity-=newTailOffset,newLevel=SHIFT,newRoot=null,newTail=newTail&&newTail.removeBefore(owner,0,newOrigin);else if(newOrigin>oldOrigin||newTailOffset<oldTailOffset){for(offsetShift=0;newRoot;){var beginIndex=newOrigin>>>newLevel&MASK;if(beginIndex!==newTailOffset>>>newLevel&MASK)break;beginIndex&&(offsetShift+=(1<<newLevel)*beginIndex),newLevel-=SHIFT,newRoot=newRoot.array[beginIndex]}newRoot&&newOrigin>oldOrigin&&(newRoot=newRoot.removeBefore(owner,newLevel,newOrigin-offsetShift)),newRoot&&newTailOffset<oldTailOffset&&(newRoot=newRoot.removeAfter(owner,newLevel,newTailOffset-offsetShift)),offsetShift&&(newOrigin-=offsetShift,newCapacity-=offsetShift)}return list.__ownerID?(list.size=newCapacity-newOrigin,list._origin=newOrigin,list._capacity=newCapacity,list._level=newLevel,list._root=newRoot,list._tail=newTail,list.__hash=void 0,list.__altered=!0,list):makeList(newOrigin,newCapacity,newLevel,newRoot,newTail)}function getTailOffset(size){return size<SIZE?0:size-1>>>SHIFT<<SHIFT}var OrderedMap=function(Map3){function OrderedMap2(value){return value==null?emptyOrderedMap():isOrderedMap(value)?value:emptyOrderedMap().withMutations(function(map){var iter=KeyedCollection(value);assertNotInfinite(iter.size),iter.forEach(function(v,k){return map.set(k,v)})})}return Map3&&(OrderedMap2.__proto__=Map3),OrderedMap2.prototype=Object.create(Map3&&Map3.prototype),OrderedMap2.prototype.constructor=OrderedMap2,OrderedMap2.of=function(){return this(arguments)},OrderedMap2.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap2.prototype.get=function(k,notSetValue){var index=this._map.get(k);return index!==void 0?this._list.get(index)[1]:notSetValue},OrderedMap2.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):emptyOrderedMap()},OrderedMap2.prototype.set=function(k,v){return updateOrderedMap(this,k,v)},OrderedMap2.prototype.remove=function(k){return updateOrderedMap(this,k,NOT_SET)},OrderedMap2.prototype.__iterate=function(fn,reverse){var this$1$1=this;return this._list.__iterate(function(entry){return entry&&fn(entry[1],entry[0],this$1$1)},reverse)},OrderedMap2.prototype.__iterator=function(type,reverse){return this._list.fromEntrySeq().__iterator(type,reverse)},OrderedMap2.prototype.__ensureOwner=function(ownerID){if(ownerID===this.__ownerID)return this;var newMap=this._map.__ensureOwner(ownerID),newList=this._list.__ensureOwner(ownerID);return ownerID?makeOrderedMap(newMap,newList,ownerID,this.__hash):this.size===0?emptyOrderedMap():(this.__ownerID=ownerID,this.__altered=!1,this._map=newMap,this._list=newList,this)},OrderedMap2}(Map2);OrderedMap.isOrderedMap=isOrderedMap,OrderedMap.prototype[IS_ORDERED_SYMBOL]=!0,OrderedMap.prototype[DELETE]=OrderedMap.prototype.remove;function makeOrderedMap(map,list,ownerID,hash2){var omap=Object.create(OrderedMap.prototype);return omap.size=map?map.size:0,omap._map=map,omap._list=list,omap.__ownerID=ownerID,omap.__hash=hash2,omap.__altered=!1,omap}var EMPTY_ORDERED_MAP;function emptyOrderedMap(){return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(),emptyList()))}function updateOrderedMap(omap,k,v){var map=omap._map,list=omap._list,i=map.get(k),has2=i!==void 0,newMap,newList;if(v===NOT_SET){if(!has2)return omap;list.size>=SIZE&&list.size>=map.size*2?(newList=list.filter(function(entry,idx){return entry!==void 0&&i!==idx}),newMap=newList.toKeyedSeq().map(function(entry){return entry[0]}).flip().toMap(),omap.__ownerID&&(newMap.__ownerID=newList.__ownerID=omap.__ownerID)):(newMap=map.remove(k),newList=i===list.size-1?list.pop():list.set(i,void 0))}else if(has2){if(v===list.get(i)[1])return omap;newMap=map,newList=list.set(i,[k,v])}else newMap=map.set(k,list.size),newList=list.set(list.size,[k,v]);return omap.__ownerID?(omap.size=newMap.size,omap._map=newMap,omap._list=newList,omap.__hash=void 0,omap.__altered=!0,omap):makeOrderedMap(newMap,newList)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(maybeStack){return Boolean(maybeStack&&maybeStack[IS_STACK_SYMBOL])}var Stack=function(IndexedCollection2){function Stack2(value){return value==null?emptyStack():isStack(value)?value:emptyStack().pushAll(value)}return IndexedCollection2&&(Stack2.__proto__=IndexedCollection2),Stack2.prototype=Object.create(IndexedCollection2&&IndexedCollection2.prototype),Stack2.prototype.constructor=Stack2,Stack2.of=function(){return this(arguments)},Stack2.prototype.toString=function(){return this.__toString("Stack [","]")},Stack2.prototype.get=function(index,notSetValue){var head=this._head;for(index=wrapIndex(this,index);head&&index--;)head=head.next;return head?head.value:notSetValue},Stack2.prototype.peek=function(){return this._head&&this._head.value},Stack2.prototype.push=function(){var arguments$1=arguments;if(arguments.length===0)return this;for(var newSize=this.size+arguments.length,head=this._head,ii=arguments.length-1;ii>=0;ii--)head={value:arguments$1[ii],next:head};return this.__ownerID?(this.size=newSize,this._head=head,this.__hash=void 0,this.__altered=!0,this):makeStack(newSize,head)},Stack2.prototype.pushAll=function(iter){if(iter=IndexedCollection2(iter),iter.size===0)return this;if(this.size===0&&isStack(iter))return iter;assertNotInfinite(iter.size);var newSize=this.size,head=this._head;return iter.__iterate(function(value){newSize++,head={value,next:head}},!0),this.__ownerID?(this.size=newSize,this._head=head,this.__hash=void 0,this.__altered=!0,this):makeStack(newSize,head)},Stack2.prototype.pop=function(){return this.slice(1)},Stack2.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},Stack2.prototype.slice=function(begin,end){if(wholeSlice(begin,end,this.size))return this;var resolvedBegin=resolveBegin(begin,this.size),resolvedEnd=resolveEnd(end,this.size);if(resolvedEnd!==this.size)return IndexedCollection2.prototype.slice.call(this,begin,end);for(var newSize=this.size-resolvedBegin,head=this._head;resolvedBegin--;)head=head.next;return this.__ownerID?(this.size=newSize,this._head=head,this.__hash=void 0,this.__altered=!0,this):makeStack(newSize,head)},Stack2.prototype.__ensureOwner=function(ownerID){return ownerID===this.__ownerID?this:ownerID?makeStack(this.size,this._head,ownerID,this.__hash):this.size===0?emptyStack():(this.__ownerID=ownerID,this.__altered=!1,this)},Stack2.prototype.__iterate=function(fn,reverse){var this$1$1=this;if(reverse)return new ArraySeq(this.toArray()).__iterate(function(v,k){return fn(v,k,this$1$1)},reverse);for(var iterations=0,node=this._head;node&&fn(node.value,iterations++,this)!==!1;)node=node.next;return iterations},Stack2.prototype.__iterator=function(type,reverse){if(reverse)return new ArraySeq(this.toArray()).__iterator(type,reverse);var iterations=0,node=this._head;return new Iterator(function(){if(node){var value=node.value;return node=node.next,iteratorValue(type,iterations++,value)}return iteratorDone()})},Stack2}(IndexedCollection);Stack.isStack=isStack;var StackPrototype=Stack.prototype;StackPrototype[IS_STACK_SYMBOL]=!0,StackPrototype.shift=StackPrototype.pop,StackPrototype.unshift=StackPrototype.push,StackPrototype.unshiftAll=StackPrototype.pushAll,StackPrototype.withMutations=withMutations,StackPrototype.wasAltered=wasAltered,StackPrototype.asImmutable=asImmutable,StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable,StackPrototype["@@transducer/step"]=function(result,arr){return result.unshift(arr)},StackPrototype["@@transducer/result"]=function(obj){return obj.asImmutable()};function makeStack(size,head,ownerID,hash2){var map=Object.create(StackPrototype);return map.size=size,map._head=head,map.__ownerID=ownerID,map.__hash=hash2,map.__altered=!1,map}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet(maybeSet){return Boolean(maybeSet&&maybeSet[IS_SET_SYMBOL])}function isOrderedSet(maybeOrderedSet){return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet)}function deepEqual(a,b){if(a===b)return!0;if(!isCollection(b)||a.size!==void 0&&b.size!==void 0&&a.size!==b.size||a.__hash!==void 0&&b.__hash!==void 0&&a.__hash!==b.__hash||isKeyed(a)!==isKeyed(b)||isIndexed(a)!==isIndexed(b)||isOrdered(a)!==isOrdered(b))return!1;if(a.size===0&&b.size===0)return!0;var notAssociative=!isAssociative(a);if(isOrdered(a)){var entries=a.entries();return b.every(function(v,k){var entry=entries.next().value;return entry&&is(entry[1],v)&&(notAssociative||is(entry[0],k))})&&entries.next().done}var flipped=!1;if(a.size===void 0)if(b.size===void 0)typeof a.cacheResult=="function"&&a.cacheResult();else{flipped=!0;var _=a;a=b,b=_}var allEqual=!0,bSize=b.__iterate(function(v,k){if(notAssociative?!a.has(v):flipped?!is(v,a.get(k,NOT_SET)):!is(a.get(k,NOT_SET),v))return allEqual=!1,!1});return allEqual&&a.size===bSize}function mixin(ctor,methods){var keyCopier=function(key){ctor.prototype[key]=methods[key]};return Object.keys(methods).forEach(keyCopier),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(methods).forEach(keyCopier),ctor}function toJS(value){if(!value||typeof value!="object")return value;if(!isCollection(value)){if(!isDataStructure(value))return value;value=Seq(value)}if(isKeyed(value)){var result$1={};return value.__iterate(function(v,k){result$1[k]=toJS(v)}),result$1}var result=[];return value.__iterate(function(v){result.push(toJS(v))}),result}var Set2=function(SetCollection2){function Set3(value){return value==null?emptySet():isSet(value)&&!isOrdered(value)?value:emptySet().withMutations(function(set2){var iter=SetCollection2(value);assertNotInfinite(iter.size),iter.forEach(function(v){return set2.add(v)})})}return SetCollection2&&(Set3.__proto__=SetCollection2),Set3.prototype=Object.create(SetCollection2&&SetCollection2.prototype),Set3.prototype.constructor=Set3,Set3.of=function(){return this(arguments)},Set3.fromKeys=function(value){return this(KeyedCollection(value).keySeq())},Set3.intersect=function(sets){return sets=Collection(sets).toArray(),sets.length?SetPrototype.intersect.apply(Set3(sets.pop()),sets):emptySet()},Set3.union=function(sets){return sets=Collection(sets).toArray(),sets.length?SetPrototype.union.apply(Set3(sets.pop()),sets):emptySet()},Set3.prototype.toString=function(){return this.__toString("Set {","}")},Set3.prototype.has=function(value){return this._map.has(value)},Set3.prototype.add=function(value){return updateSet(this,this._map.set(value,value))},Set3.prototype.remove=function(value){return updateSet(this,this._map.remove(value))},Set3.prototype.clear=function(){return updateSet(this,this._map.clear())},Set3.prototype.map=function(mapper,context){var this$1$1=this,didChanges=!1,newMap=updateSet(this,this._map.mapEntries(function(ref){var v=ref[1],mapped=mapper.call(context,v,v,this$1$1);return mapped!==v&&(didChanges=!0),[mapped,mapped]},context));return didChanges?newMap:this},Set3.prototype.union=function(){for(var iters=[],len=arguments.length;len--;)iters[len]=arguments[len];return iters=iters.filter(function(x){return x.size!==0}),iters.length===0?this:this.size===0&&!this.__ownerID&&iters.length===1?this.constructor(iters[0]):this.withMutations(function(set2){for(var ii=0;ii<iters.length;ii++)SetCollection2(iters[ii]).forEach(function(value){return set2.add(value)})})},Set3.prototype.intersect=function(){for(var iters=[],len=arguments.length;len--;)iters[len]=arguments[len];if(iters.length===0)return this;iters=iters.map(function(iter){return SetCollection2(iter)});var toRemove=[];return this.forEach(function(value){iters.every(function(iter){return iter.includes(value)})||toRemove.push(value)}),this.withMutations(function(set2){toRemove.forEach(function(value){set2.remove(value)})})},Set3.prototype.subtract=function(){for(var iters=[],len=arguments.length;len--;)iters[len]=arguments[len];if(iters.length===0)return this;iters=iters.map(function(iter){return SetCollection2(iter)});var toRemove=[];return this.forEach(function(value){iters.some(function(iter){return iter.includes(value)})&&toRemove.push(value)}),this.withMutations(function(set2){toRemove.forEach(function(value){set2.remove(value)})})},Set3.prototype.sort=function(comparator){return OrderedSet(sortFactory(this,comparator))},Set3.prototype.sortBy=function(mapper,comparator){return OrderedSet(sortFactory(this,comparator,mapper))},Set3.prototype.wasAltered=function(){return this._map.wasAltered()},Set3.prototype.__iterate=function(fn,reverse){var this$1$1=this;return this._map.__iterate(function(k){return fn(k,k,this$1$1)},reverse)},Set3.prototype.__iterator=function(type,reverse){return this._map.__iterator(type,reverse)},Set3.prototype.__ensureOwner=function(ownerID){if(ownerID===this.__ownerID)return this;var newMap=this._map.__ensureOwner(ownerID);return ownerID?this.__make(newMap,ownerID):this.size===0?this.__empty():(this.__ownerID=ownerID,this._map=newMap,this)},Set3}(SetCollection);Set2.isSet=isSet;var SetPrototype=Set2.prototype;SetPrototype[IS_SET_SYMBOL]=!0,SetPrototype[DELETE]=SetPrototype.remove,SetPrototype.merge=SetPrototype.concat=SetPrototype.union,SetPrototype.withMutations=withMutations,SetPrototype.asImmutable=asImmutable,SetPrototype["@@transducer/init"]=SetPrototype.asMutable=asMutable,SetPrototype["@@transducer/step"]=function(result,arr){return result.add(arr)},SetPrototype["@@transducer/result"]=function(obj){return obj.asImmutable()},SetPrototype.__empty=emptySet,SetPrototype.__make=makeSet;function updateSet(set2,newMap){return set2.__ownerID?(set2.size=newMap.size,set2._map=newMap,set2):newMap===set2._map?set2:newMap.size===0?set2.__empty():set2.__make(newMap)}function makeSet(map,ownerID){var set2=Object.create(SetPrototype);return set2.size=map?map.size:0,set2._map=map,set2.__ownerID=ownerID,set2}var EMPTY_SET;function emptySet(){return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()))}var Range=function(IndexedSeq2){function Range2(start,end,step){if(!(this instanceof Range2))return new Range2(start,end,step);if(invariant(step!==0,"Cannot step a Range by 0"),start=start||0,end===void 0&&(end=1/0),step=step===void 0?1:Math.abs(step),end<start&&(step=-step),this._start=start,this._end=end,this._step=step,this.size=Math.max(0,Math.ceil((end-start)/step-1)+1),this.size===0){if(EMPTY_RANGE)return EMPTY_RANGE;EMPTY_RANGE=this}}return IndexedSeq2&&(Range2.__proto__=IndexedSeq2),Range2.prototype=Object.create(IndexedSeq2&&IndexedSeq2.prototype),Range2.prototype.constructor=Range2,Range2.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},Range2.prototype.get=function(index,notSetValue){return this.has(index)?this._start+wrapIndex(this,index)*this._step:notSetValue},Range2.prototype.includes=function(searchValue){var possibleIndex=(searchValue-this._start)/this._step;return possibleIndex>=0&&possibleIndex<this.size&&possibleIndex===Math.floor(possibleIndex)},Range2.prototype.slice=function(begin,end){return wholeSlice(begin,end,this.size)?this:(begin=resolveBegin(begin,this.size),end=resolveEnd(end,this.size),end<=begin?new Range2(0,0):new Range2(this.get(begin,this._end),this.get(end,this._end),this._step))},Range2.prototype.indexOf=function(searchValue){var offsetValue=searchValue-this._start;if(offsetValue%this._step===0){var index=offsetValue/this._step;if(index>=0&&index<this.size)return index}return-1},Range2.prototype.lastIndexOf=function(searchValue){return this.indexOf(searchValue)},Range2.prototype.__iterate=function(fn,reverse){for(var size=this.size,step=this._step,value=reverse?this._start+(size-1)*step:this._start,i=0;i!==size&&fn(value,reverse?size-++i:i++,this)!==!1;)value+=reverse?-step:step;return i},Range2.prototype.__iterator=function(type,reverse){var size=this.size,step=this._step,value=reverse?this._start+(size-1)*step:this._start,i=0;return new Iterator(function(){if(i===size)return iteratorDone();var v=value;return value+=reverse?-step:step,iteratorValue(type,reverse?size-++i:i++,v)})},Range2.prototype.equals=function(other){return other instanceof Range2?this._start===other._start&&this._end===other._end&&this._step===other._step:deepEqual(this,other)},Range2}(IndexedSeq),EMPTY_RANGE;function getIn$1(collection,searchKeyPath,notSetValue){for(var keyPath=coerceKeyPath(searchKeyPath),i=0;i!==keyPath.length;)if(collection=get(collection,keyPath[i++],NOT_SET),collection===NOT_SET)return notSetValue;return collection}function getIn(searchKeyPath,notSetValue){return getIn$1(this,searchKeyPath,notSetValue)}function hasIn$1(collection,keyPath){return getIn$1(collection,keyPath,NOT_SET)!==NOT_SET}function hasIn(searchKeyPath){return hasIn$1(this,searchKeyPath)}function toObject(){assertNotInfinite(this.size);var object={};return this.__iterate(function(v,k){object[k]=v}),object}Collection.isIterable=isCollection,Collection.isKeyed=isKeyed,Collection.isIndexed=isIndexed,Collection.isAssociative=isAssociative,Collection.isOrdered=isOrdered,Collection.Iterator=Iterator,mixin(Collection,{toArray:function(){assertNotInfinite(this.size);var array=new Array(this.size||0),useTuples=isKeyed(this),i=0;return this.__iterate(function(v,k){array[i++]=useTuples?[k,v]:v}),array},toIndexedSeq:function(){return new ToIndexedSequence(this)},toJS:function(){return toJS(this)},toKeyedSeq:function(){return new ToKeyedSequence(this,!0)},toMap:function(){return Map2(this.toKeyedSeq())},toObject,toOrderedMap:function(){return OrderedMap(this.toKeyedSeq())},toOrderedSet:function(){return OrderedSet(isKeyed(this)?this.valueSeq():this)},toSet:function(){return Set2(isKeyed(this)?this.valueSeq():this)},toSetSeq:function(){return new ToSetSequence(this)},toSeq:function(){return isIndexed(this)?this.toIndexedSeq():isKeyed(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Stack(isKeyed(this)?this.valueSeq():this)},toList:function(){return List(isKeyed(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(head,tail){return this.size===0?head+tail:head+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+tail},concat:function(){for(var values=[],len=arguments.length;len--;)values[len]=arguments[len];return reify(this,concatFactory(this,values))},includes:function(searchValue){return this.some(function(value){return is(value,searchValue)})},entries:function(){return this.__iterator(ITERATE_ENTRIES)},every:function(predicate,context){assertNotInfinite(this.size);var returnValue=!0;return this.__iterate(function(v,k,c){if(!predicate.call(context,v,k,c))return returnValue=!1,!1}),returnValue},filter:function(predicate,context){return reify(this,filterFactory(this,predicate,context,!0))},find:function(predicate,context,notSetValue){var entry=this.findEntry(predicate,context);return entry?entry[1]:notSetValue},forEach:function(sideEffect,context){return assertNotInfinite(this.size),this.__iterate(context?sideEffect.bind(context):sideEffect)},join:function(separator){assertNotInfinite(this.size),separator=separator!==void 0?""+separator:",";var joined="",isFirst=!0;return this.__iterate(function(v){isFirst?isFirst=!1:joined+=separator,joined+=v!=null?v.toString():""}),joined},keys:function(){return this.__iterator(ITERATE_KEYS)},map:function(mapper,context){return reify(this,mapFactory(this,mapper,context))},reduce:function(reducer,initialReduction,context){return reduce(this,reducer,initialReduction,context,arguments.length<2,!1)},reduceRight:function(reducer,initialReduction,context){return reduce(this,reducer,initialReduction,context,arguments.length<2,!0)},reverse:function(){return reify(this,reverseFactory(this,!0))},slice:function(begin,end){return reify(this,sliceFactory(this,begin,end,!0))},some:function(predicate,context){return!this.every(not(predicate),context)},sort:function(comparator){return reify(this,sortFactory(this,comparator))},values:function(){return this.__iterator(ITERATE_VALUES)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(predicate,context){return ensureSize(predicate?this.toSeq().filter(predicate,context):this)},countBy:function(grouper,context){return countByFactory(this,grouper,context)},equals:function(other){return deepEqual(this,other)},entrySeq:function(){var collection=this;if(collection._cache)return new ArraySeq(collection._cache);var entriesSequence=collection.toSeq().map(entryMapper).toIndexedSeq();return entriesSequence.fromEntrySeq=function(){return collection.toSeq()},entriesSequence},filterNot:function(predicate,context){return this.filter(not(predicate),context)},findEntry:function(predicate,context,notSetValue){var found=notSetValue;return this.__iterate(function(v,k,c){if(predicate.call(context,v,k,c))return found=[k,v],!1}),found},findKey:function(predicate,context){var entry=this.findEntry(predicate,context);return entry&&entry[0]},findLast:function(predicate,context,notSetValue){return this.toKeyedSeq().reverse().find(predicate,context,notSetValue)},findLastEntry:function(predicate,context,notSetValue){return this.toKeyedSeq().reverse().findEntry(predicate,context,notSetValue)},findLastKey:function(predicate,context){return this.toKeyedSeq().reverse().findKey(predicate,context)},first:function(notSetValue){return this.find(returnTrue,null,notSetValue)},flatMap:function(mapper,context){return reify(this,flatMapFactory(this,mapper,context))},flatten:function(depth){return reify(this,flattenFactory(this,depth,!0))},fromEntrySeq:function(){return new FromEntriesSequence(this)},get:function(searchKey,notSetValue){return this.find(function(_,key){return is(key,searchKey)},void 0,notSetValue)},getIn,groupBy:function(grouper,context){return groupByFactory(this,grouper,context)},has:function(searchKey){return this.get(searchKey,NOT_SET)!==NOT_SET},hasIn,isSubset:function(iter){return iter=typeof iter.includes=="function"?iter:Collection(iter),this.every(function(value){return iter.includes(value)})},isSuperset:function(iter){return iter=typeof iter.isSubset=="function"?iter:Collection(iter),iter.isSubset(this)},keyOf:function(searchValue){return this.findKey(function(value){return is(value,searchValue)})},keySeq:function(){return this.toSeq().map(keyMapper).toIndexedSeq()},last:function(notSetValue){return this.toSeq().reverse().first(notSetValue)},lastKeyOf:function(searchValue){return this.toKeyedSeq().reverse().keyOf(searchValue)},max:function(comparator){return maxFactory(this,comparator)},maxBy:function(mapper,comparator){return maxFactory(this,comparator,mapper)},min:function(comparator){return maxFactory(this,comparator?neg(comparator):defaultNegComparator)},minBy:function(mapper,comparator){return maxFactory(this,comparator?neg(comparator):defaultNegComparator,mapper)},rest:function(){return this.slice(1)},skip:function(amount){return amount===0?this:this.slice(Math.max(0,amount))},skipLast:function(amount){return amount===0?this:this.slice(0,-Math.max(0,amount))},skipWhile:function(predicate,context){return reify(this,skipWhileFactory(this,predicate,context,!0))},skipUntil:function(predicate,context){return this.skipWhile(not(predicate),context)},sortBy:function(mapper,comparator){return reify(this,sortFactory(this,comparator,mapper))},take:function(amount){return this.slice(0,Math.max(0,amount))},takeLast:function(amount){return this.slice(-Math.max(0,amount))},takeWhile:function(predicate,context){return reify(this,takeWhileFactory(this,predicate,context))},takeUntil:function(predicate,context){return this.takeWhile(not(predicate),context)},update:function(fn){return fn(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hashCollection(this))}});var CollectionPrototype=Collection.prototype;CollectionPrototype[IS_COLLECTION_SYMBOL]=!0,CollectionPrototype[ITERATOR_SYMBOL]=CollectionPrototype.values,CollectionPrototype.toJSON=CollectionPrototype.toArray,CollectionPrototype.__toStringMapper=quoteString,CollectionPrototype.inspect=CollectionPrototype.toSource=function(){return this.toString()},CollectionPrototype.chain=CollectionPrototype.flatMap,CollectionPrototype.contains=CollectionPrototype.includes,mixin(KeyedCollection,{flip:function(){return reify(this,flipFactory(this))},mapEntries:function(mapper,context){var this$1$1=this,iterations=0;return reify(this,this.toSeq().map(function(v,k){return mapper.call(context,[k,v],iterations++,this$1$1)}).fromEntrySeq())},mapKeys:function(mapper,context){var this$1$1=this;return reify(this,this.toSeq().flip().map(function(k,v){return mapper.call(context,k,v,this$1$1)}).flip())}});var KeyedCollectionPrototype=KeyedCollection.prototype;KeyedCollectionPrototype[IS_KEYED_SYMBOL]=!0,KeyedCollectionPrototype[ITERATOR_SYMBOL]=CollectionPrototype.entries,KeyedCollectionPrototype.toJSON=toObject,KeyedCollectionPrototype.__toStringMapper=function(v,k){return quoteString(k)+": "+quoteString(v)},mixin(IndexedCollection,{toKeyedSeq:function(){return new ToKeyedSequence(this,!1)},filter:function(predicate,context){return reify(this,filterFactory(this,predicate,context,!1))},findIndex:function(predicate,context){var entry=this.findEntry(predicate,context);return entry?entry[0]:-1},indexOf:function(searchValue){var key=this.keyOf(searchValue);return key===void 0?-1:key},lastIndexOf:function(searchValue){var key=this.lastKeyOf(searchValue);return key===void 0?-1:key},reverse:function(){return reify(this,reverseFactory(this,!1))},slice:function(begin,end){return reify(this,sliceFactory(this,begin,end,!1))},splice:function(index,removeNum){var numArgs=arguments.length;if(removeNum=Math.max(removeNum||0,0),numArgs===0||numArgs===2&&!removeNum)return this;index=resolveBegin(index,index<0?this.count():this.size);var spliced=this.slice(0,index);return reify(this,numArgs===1?spliced:spliced.concat(arrCopy(arguments,2),this.slice(index+removeNum)))},findLastIndex:function(predicate,context){var entry=this.findLastEntry(predicate,context);return entry?entry[0]:-1},first:function(notSetValue){return this.get(0,notSetValue)},flatten:function(depth){return reify(this,flattenFactory(this,depth,!1))},get:function(index,notSetValue){return index=wrapIndex(this,index),index<0||this.size===1/0||this.size!==void 0&&index>this.size?notSetValue:this.find(function(_,key){return key===index},void 0,notSetValue)},has:function(index){return index=wrapIndex(this,index),index>=0&&(this.size!==void 0?this.size===1/0||index<this.size:this.indexOf(index)!==-1)},interpose:function(separator){return reify(this,interposeFactory(this,separator))},interleave:function(){var collections=[this].concat(arrCopy(arguments)),zipped=zipWithFactory(this.toSeq(),IndexedSeq.of,collections),interleaved=zipped.flatten(!0);return zipped.size&&(interleaved.size=zipped.size*collections.length),reify(this,interleaved)},keySeq:function(){return Range(0,this.size)},last:function(notSetValue){return this.get(-1,notSetValue)},skipWhile:function(predicate,context){return reify(this,skipWhileFactory(this,predicate,context,!1))},zip:function(){var collections=[this].concat(arrCopy(arguments));return reify(this,zipWithFactory(this,defaultZipper,collections))},zipAll:function(){var collections=[this].concat(arrCopy(arguments));return reify(this,zipWithFactory(this,defaultZipper,collections,!0))},zipWith:function(zipper){var collections=arrCopy(arguments);return collections[0]=this,reify(this,zipWithFactory(this,zipper,collections))}});var IndexedCollectionPrototype=IndexedCollection.prototype;IndexedCollectionPrototype[IS_INDEXED_SYMBOL]=!0,IndexedCollectionPrototype[IS_ORDERED_SYMBOL]=!0,mixin(SetCollection,{get:function(value,notSetValue){return this.has(value)?value:notSetValue},includes:function(value){return this.has(value)},keySeq:function(){return this.valueSeq()}});var SetCollectionPrototype=SetCollection.prototype;SetCollectionPrototype.has=CollectionPrototype.includes,SetCollectionPrototype.contains=SetCollectionPrototype.includes,SetCollectionPrototype.keys=SetCollectionPrototype.values,mixin(KeyedSeq,KeyedCollectionPrototype),mixin(IndexedSeq,IndexedCollectionPrototype),mixin(SetSeq,SetCollectionPrototype);function reduce(collection,reducer,reduction,context,useFirst,reverse){return assertNotInfinite(collection.size),collection.__iterate(function(v,k,c){useFirst?(useFirst=!1,reduction=v):reduction=reducer.call(context,reduction,v,k,c)},reverse),reduction}function keyMapper(v,k){return k}function entryMapper(v,k){return[k,v]}function not(predicate){return function(){return!predicate.apply(this,arguments)}}function neg(predicate){return function(){return-predicate.apply(this,arguments)}}function defaultZipper(){return arrCopy(arguments)}function defaultNegComparator(a,b){return a<b?1:a>b?-1:0}function hashCollection(collection){if(collection.size===1/0)return 0;var ordered=isOrdered(collection),keyed=isKeyed(collection),h=ordered?1:0,size=collection.__iterate(keyed?ordered?function(v,k){h=31*h+hashMerge(hash(v),hash(k))|0}:function(v,k){h=h+hashMerge(hash(v),hash(k))|0}:ordered?function(v){h=31*h+hash(v)|0}:function(v){h=h+hash(v)|0});return murmurHashOfSize(size,h)}function murmurHashOfSize(size,h){return h=imul(h,3432918353),h=imul(h<<15|h>>>-15,461845907),h=imul(h<<13|h>>>-13,5),h=(h+3864292196|0)^size,h=imul(h^h>>>16,2246822507),h=imul(h^h>>>13,3266489909),h=smi(h^h>>>16),h}function hashMerge(a,b){return a^b+2654435769+(a<<6)+(a>>2)|0}var OrderedSet=function(Set3){function OrderedSet2(value){return value==null?emptyOrderedSet():isOrderedSet(value)?value:emptyOrderedSet().withMutations(function(set2){var iter=SetCollection(value);assertNotInfinite(iter.size),iter.forEach(function(v){return set2.add(v)})})}return Set3&&(OrderedSet2.__proto__=Set3),OrderedSet2.prototype=Object.create(Set3&&Set3.prototype),OrderedSet2.prototype.constructor=OrderedSet2,OrderedSet2.of=function(){return this(arguments)},OrderedSet2.fromKeys=function(value){return this(KeyedCollection(value).keySeq())},OrderedSet2.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet2}(Set2);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0,OrderedSetPrototype.zip=IndexedCollectionPrototype.zip,OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith,OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll,OrderedSetPrototype.__empty=emptyOrderedSet,OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(map,ownerID){var set2=Object.create(OrderedSetPrototype);return set2.size=map?map.size:0,set2._map=map,set2.__ownerID=ownerID,set2}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(defaultValues){if(isRecord(defaultValues))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(defaultValues))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(defaultValues===null||typeof defaultValues!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(defaultValues,name){var hasInitialized;throwOnInvalidDefaultValues(defaultValues);var RecordType=function(values){var this$1$1=this;if(values instanceof RecordType)return values;if(!(this instanceof RecordType))return new RecordType(values);if(!hasInitialized){hasInitialized=!0;var keys=Object.keys(defaultValues),indices=RecordTypePrototype._indices={};RecordTypePrototype._name=name,RecordTypePrototype._keys=keys,RecordTypePrototype._defaultValues=defaultValues;for(var i=0;i<keys.length;i++){var propName=keys[i];indices[propName]=i,RecordTypePrototype[propName]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+recordName(this)+' with property "'+propName+'" since that property name is part of the Record API.'):setProp(RecordTypePrototype,propName)}}return this.__ownerID=void 0,this._values=List().withMutations(function(l){l.setSize(this$1$1._keys.length),KeyedCollection(values).forEach(function(v,k){l.set(this$1$1._indices[k],v===this$1$1._defaultValues[k]?void 0:v)})}),this},RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);return RecordTypePrototype.constructor=RecordType,name&&(RecordType.displayName=name),RecordType};Record.prototype.toString=function(){for(var str=recordName(this)+" { ",keys=this._keys,k,i=0,l=keys.length;i!==l;i++)k=keys[i],str+=(i?", ":"")+k+": "+quoteString(this.get(k));return str+" }"},Record.prototype.equals=function(other){return this===other||other&&recordSeq(this).equals(recordSeq(other))},Record.prototype.hashCode=function(){return recordSeq(this).hashCode()},Record.prototype.has=function(k){return this._indices.hasOwnProperty(k)},Record.prototype.get=function(k,notSetValue){if(!this.has(k))return notSetValue;var index=this._indices[k],value=this._values.get(index);return value===void 0?this._defaultValues[k]:value},Record.prototype.set=function(k,v){if(this.has(k)){var newValues=this._values.set(this._indices[k],v===this._defaultValues[k]?void 0:v);if(newValues!==this._values&&!this.__ownerID)return makeRecord(this,newValues)}return this},Record.prototype.remove=function(k){return this.set(k)},Record.prototype.clear=function(){var newValues=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:makeRecord(this,newValues)},Record.prototype.wasAltered=function(){return this._values.wasAltered()},Record.prototype.toSeq=function(){return recordSeq(this)},Record.prototype.toJS=function(){return toJS(this)},Record.prototype.entries=function(){return this.__iterator(ITERATE_ENTRIES)},Record.prototype.__iterator=function(type,reverse){return recordSeq(this).__iterator(type,reverse)},Record.prototype.__iterate=function(fn,reverse){return recordSeq(this).__iterate(fn,reverse)},Record.prototype.__ensureOwner=function(ownerID){if(ownerID===this.__ownerID)return this;var newValues=this._values.__ensureOwner(ownerID);return ownerID?makeRecord(this,newValues,ownerID):(this.__ownerID=ownerID,this._values=newValues,this)},Record.isRecord=isRecord,Record.getDescriptiveName=recordName;var RecordPrototype=Record.prototype;RecordPrototype[IS_RECORD_SYMBOL]=!0,RecordPrototype[DELETE]=RecordPrototype.remove,RecordPrototype.deleteIn=RecordPrototype.removeIn=deleteIn,RecordPrototype.getIn=getIn,RecordPrototype.hasIn=CollectionPrototype.hasIn,RecordPrototype.merge=merge$1,RecordPrototype.mergeWith=mergeWith$1,RecordPrototype.mergeIn=mergeIn,RecordPrototype.mergeDeep=mergeDeep,RecordPrototype.mergeDeepWith=mergeDeepWith,RecordPrototype.mergeDeepIn=mergeDeepIn,RecordPrototype.setIn=setIn,RecordPrototype.update=update,RecordPrototype.updateIn=updateIn,RecordPrototype.withMutations=withMutations,RecordPrototype.asMutable=asMutable,RecordPrototype.asImmutable=asImmutable,RecordPrototype[ITERATOR_SYMBOL]=RecordPrototype.entries,RecordPrototype.toJSON=RecordPrototype.toObject=CollectionPrototype.toObject,RecordPrototype.inspect=RecordPrototype.toSource=function(){return this.toString()};function makeRecord(likeRecord,values,ownerID){var record=Object.create(Object.getPrototypeOf(likeRecord));return record._values=values,record.__ownerID=ownerID,record}function recordName(record){return record.constructor.displayName||record.constructor.name||"Record"}function recordSeq(record){return keyedSeqFromValue(record._keys.map(function(k){return[k,record.get(k)]}))}function setProp(prototype,name){try{Object.defineProperty(prototype,name,{get:function(){return this.get(name)},set:function(value){invariant(this.__ownerID,"Cannot set on an immutable record."),this.set(name,value)}})}catch{}}var Repeat=function(IndexedSeq2){function Repeat2(value,times){if(!(this instanceof Repeat2))return new Repeat2(value,times);if(this._value=value,this.size=times===void 0?1/0:Math.max(0,times),this.size===0){if(EMPTY_REPEAT)return EMPTY_REPEAT;EMPTY_REPEAT=this}}return IndexedSeq2&&(Repeat2.__proto__=IndexedSeq2),Repeat2.prototype=Object.create(IndexedSeq2&&IndexedSeq2.prototype),Repeat2.prototype.constructor=Repeat2,Repeat2.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat2.prototype.get=function(index,notSetValue){return this.has(index)?this._value:notSetValue},Repeat2.prototype.includes=function(searchValue){return is(this._value,searchValue)},Repeat2.prototype.slice=function(begin,end){var size=this.size;return wholeSlice(begin,end,size)?this:new Repeat2(this._value,resolveEnd(end,size)-resolveBegin(begin,size))},Repeat2.prototype.reverse=function(){return this},Repeat2.prototype.indexOf=function(searchValue){return is(this._value,searchValue)?0:-1},Repeat2.prototype.lastIndexOf=function(searchValue){return is(this._value,searchValue)?this.size:-1},Repeat2.prototype.__iterate=function(fn,reverse){for(var size=this.size,i=0;i!==size&&fn(this._value,reverse?size-++i:i++,this)!==!1;);return i},Repeat2.prototype.__iterator=function(type,reverse){var this$1$1=this,size=this.size,i=0;return new Iterator(function(){return i===size?iteratorDone():iteratorValue(type,reverse?size-++i:i++,this$1$1._value)})},Repeat2.prototype.equals=function(other){return other instanceof Repeat2?is(this._value,other._value):deepEqual(other)},Repeat2}(IndexedSeq),EMPTY_REPEAT;function fromJS(value,converter){return fromJSWith([],converter||defaultConverter,value,"",converter&&converter.length>2?[]:void 0,{"":value})}function fromJSWith(stack,converter,value,key,keyPath,parentValue){if(typeof value!="string"&&!isImmutable(value)&&(isArrayLike(value)||hasIterator(value)||isPlainObject(value))){if(~stack.indexOf(value))throw new TypeError("Cannot convert circular structure to Immutable");stack.push(value),keyPath&&key!==""&&keyPath.push(key);var converted=converter.call(parentValue,key,Seq(value).map(function(v,k){return fromJSWith(stack,converter,v,k,keyPath,value)}),keyPath&&keyPath.slice());return stack.pop(),keyPath&&keyPath.pop(),converted}return value}function defaultConverter(k,v){return isIndexed(v)?v.toList():isKeyed(v)?v.toMap():v.toSet()}var version="4.0.0",Immutable={version,Collection,Iterable:Collection,Seq,Map:Map2,OrderedMap,List,Stack,Set:Set2,OrderedSet,Record,Range,Repeat,is,fromJS,hash,isImmutable,isCollection,isKeyed,isIndexed,isAssociative,isOrdered,isValueObject,isPlainObject,isSeq,isList,isMap,isOrderedMap,isStack,isSet,isOrderedSet,isRecord,get,getIn:getIn$1,has,hasIn:hasIn$1,merge,mergeDeep:mergeDeep$1,mergeWith,mergeDeepWith:mergeDeepWith$1,remove,removeIn,set,setIn:setIn$1,update:update$1,updateIn:updateIn$1},Iterable=Collection;const __WEBPACK_DEFAULT_EXPORT__=Immutable},61363:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={error:"error_error__Aedkj"}},73640:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={error:"react-playground_error__1zi13",column:"react-playground_column__1Kovw",editorWrapper:"react-playground_editorWrapper__1wY8s",codePane:"react-playground_codePane__19Xda",editor:"react-playground_editor__1LFjB",splitter:"react-playground_splitter__R480r",previewPane:"react-playground_previewPane__1Rkn-",previewBox:"react-playground_previewBox__1quIl",preview:"react-playground_preview__1LvFd",playground:"react-playground_playground__1mVdr"}},519:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={anchor:"anchor_anchor__3Kymc",anchorIcon:"anchor_anchorIcon__osznX"}},43289:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={linkedHeading:"linked-heading_linkedHeading__1exDt",anchor:"linked-heading_anchor__3xkqo",heading:"linked-heading_heading__28Zmh"}},67846:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={xxs:"heading-sizes_xxs__sqY6F",xs:"heading-sizes_xs__2vIO-",sm:"heading-sizes_sm__SWCg7",md:"heading-sizes_md__1VfRy",lg:"heading-sizes_lg__12r2v",xl:"heading-sizes_xl__18vfm",xxl:"heading-sizes_xxl__1XBq0"}},62534:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={h1:"heading_h1__18YHt",h2:"heading_h2__1ja7_",h3:"heading_h3__3SLRc",h4:"heading_h4__uSuLS",h5:"heading_h5__30dq2",h6:"heading_h6__2CGfq"}},51913:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={docsMainBlock:"base_docsMainBlock__lkj5z",heading:"base_heading__3ZLTJ",maxWidth:"base_maxWidth__iUSVk",marginBottom:"base_marginBottom__3Ol4J",topRow:"base_topRow__3kgKo",copyMethod:"base_copyMethod__1Zv6Z",copyTitle:"base_copyTitle__16rYg",copyBox:"base_copyBox__1rqqL",marginRight:"base_marginRight__3NH-w",compositionSection:"base_compositionSection__2dtVM",compositionCard:"base_compositionCard__2nvTZ",mdx:"base_mdx__27C-V"}},15645:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={exampleSection:"examples-overview_exampleSection__1OdhX"}},50203:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Identity:()=>fantasy_land_Identity,Y:()=>es_Y,allEqual:()=>es_allEqual,allEqualTo:()=>es_allEqualTo,allIdentical:()=>es_allIdentical,allIdenticalTo:()=>es_allIdenticalTo,allP:()=>es_allP,allSettledP:()=>es_allSettledP,allUnique:()=>es_allUnique,anyP:()=>es_anyP,appendFlipped:()=>es_appendFlipped,argsPass:()=>es_argsPass,async:()=>es_async,cata:()=>cata,ceil:()=>es_ceil,compact:()=>es_compact,concatAll:()=>es_concatAll,concatRight:()=>es_concatRight,contained:()=>es_contained,curryRight:()=>es_curryRight,curryRightN:()=>es_curryRightN,defaultWhen:()=>es_defaultWhen,delayP:()=>es_delayP,dispatch:()=>es_dispatch,divideNum:()=>es_divideNum,dropArgs:()=>es_dropArgs,ensureArray:()=>es_ensureArray,escapeRegExp:()=>es_escapeRegExp,filterIndexed:()=>es_filterIndexed,firstP:()=>es_anyP,flattenDepth:()=>es_flattenDepth,flattenPath:()=>es_flattenPath,flattenProp:()=>es_flattenProp,floor:()=>es_floor,fnull:()=>es_fnull,hasPath:()=>ramda_adjunct_es_hasPath,inRange:()=>inRange,included:()=>es_contained,invoke:()=>es_invoke,invokeArgs:()=>es_invokeArgs,isArray:()=>es_isArray,isArrayLike:()=>es_isArrayLike,isAsyncFunction:()=>es_isAsyncFunction,isBigInt:()=>es_isBigInt,isBoolean:()=>es_isBoolean,isDate:()=>es_isDate,isEmptyArray:()=>es_isEmptyArray,isEmptyString:()=>es_isEmptyString,isError:()=>es_isError,isEven:()=>es_isEven,isFalse:()=>es_isFalse,isFalsy:()=>es_isFalsy,isFinite:()=>es_isFinite,isFloat:()=>es_isFloat,isFunction:()=>es_isFunction,isGeneratorFunction:()=>es_isGeneratorFunction,isIndexed:()=>es_isIndexed,isInteger:()=>es_isInteger,isInvalidDate:()=>es_isNotValidDate,isIterable:()=>es_isIterable,isMap:()=>es_isMap,isNaN:()=>es_isNaN,isNaturalNumber:()=>es_isNaturalNumber,isNegative:()=>es_isNegative,isNegativeZero:()=>es_isNegativeZero,isNilOrEmpty:()=>es_isNilOrEmpty,isNonEmptyArray:()=>es_isNonEmptyArray,isNonEmptyString:()=>es_isNonEmptyString,isNonNegative:()=>es_isNonNegative,isNonPositive:()=>es_isNonPositive,isNotArray:()=>es_isNotArray,isNotArrayLike:()=>es_isNotArrayLike,isNotAsyncFunction:()=>es_isNotAsyncFunction,isNotBoolean:()=>es_isNotBoolean,isNotDate:()=>es_isNotDate,isNotEmpty:()=>es_isNotEmpty,isNotFinite:()=>es_isNotFinite,isNotFloat:()=>es_isNotFloat,isNotFunction:()=>es_isNotFunction,isNotGeneratorFunction:()=>es_isNotGeneratorFunction,isNotInteger:()=>es_isNotInteger,isNotMap:()=>es_isNotMap,isNotNaN:()=>es_isNotNaN,isNotNil:()=>es_isNotNil,isNotNilOrEmpty:()=>es_isNotNilOrEmpty,isNotNull:()=>es_isNotNull,isNotNumber:()=>es_isNotNumber,isNotObj:()=>es_isNotObj,isNotObjLike:()=>es_isNotObjLike,isNotObject:()=>es_isNotObj,isNotObjectLike:()=>es_isNotObjLike,isNotPair:()=>es_isNotPair,isNotPlainObj:()=>es_isNotPlainObj,isNotPlainObject:()=>es_isNotPlainObj,isNotRegExp:()=>es_isNotRegExp,isNotSet:()=>es_isNotSet,isNotString:()=>es_isNotString,isNotUndefined:()=>es_isNotUndefined,isNotValidDate:()=>es_isNotValidDate,isNotValidNumber:()=>es_isNotValidNumber,isNull:()=>es_isNull,isNumber:()=>es_isNumber,isObj:()=>es_isObj,isObjLike:()=>es_isObjLike,isObject:()=>es_isObj,isObjectLike:()=>es_isObjLike,isOdd:()=>es_isOdd,isPair:()=>es_isPair,isPlainObj:()=>es_isPlainObj,isPlainObject:()=>es_isPlainObj,isPositive:()=>es_isPositive,isPositiveZero:()=>es_isPositiveZero,isPromise:()=>es_isPromise,isPrototypeOf:()=>es_isPrototypeOf,isRegExp:()=>es_isRegExp,isSafeInteger:()=>es_isSafeInteger,isSet:()=>es_isSet,isSparseArray:()=>es_isSparseArray,isString:()=>es_isString,isSymbol:()=>es_isSymbol,isThenable:()=>es_isThenable,isTrue:()=>es_isTrue,isTruthy:()=>es_isTruthy,isUndefined:()=>es_isUndefined,isValidDate:()=>es_isValidDate,isValidNumber:()=>es_isValidNumber,lastP:()=>es_lastP,lengthEq:()=>es_lengthEq,lengthGt:()=>es_lengthGt,lengthGte:()=>es_lengthGte,lengthLt:()=>es_lengthLt,lengthLte:()=>es_lengthLte,lengthNotEq:()=>es_lengthNotEq,lensEq:()=>es_lensEq,lensIso:()=>es_lensIso,lensNotEq:()=>es_lensNotEq,lensNotSatisfy:()=>es_lensNotSatisfy,lensSatisfies:()=>es_lensSatisfies,lensTraverse:()=>es_lensTraverse,liftF:()=>es_liftF,liftFN:()=>es_liftFN,list:()=>es_list,mapIndexed:()=>es_mapIndexed,mergeLeft:()=>es_mergeRight,mergePath:()=>es_mergePath,mergePaths:()=>es_mergePaths,mergeProp:()=>es_mergeProp,mergeProps:()=>es_mergeProps,mergeRight:()=>es_mergeRight,move:()=>es_move,nand:()=>es_nand,neither:()=>es_neither,noneP:()=>es_noneP,nonePass:()=>es_nonePass,noop:()=>es_noop,nor:()=>es_nor,notAllPass:()=>es_notAllPass,notAllUnique:()=>es_notAllUnique,notBoth:()=>es_notBoth,notEqual:()=>es_notEqual,omitBy:()=>es_omitBy,omitIndexes:()=>es_omitIndexes,overlaps:()=>es_overlaps,padCharsEnd:()=>es_padCharsEnd,padCharsStart:()=>es_padCharsStart,padEnd:()=>es_padEnd,padStart:()=>es_padStart,pathNotEq:()=>es_pathNotEq,pathOrLazy:()=>es_pathOrLazy,paths:()=>ramda_adjunct_es_paths,pickIndexes:()=>es_pickIndexes,propNotEq:()=>es_propNotEq,rangeStep:()=>es_rangeStep,reduceIndexed:()=>es_reduceIndexed,reduceP:()=>es_reduceP,reduceRightP:()=>es_reduceRightP,rejectP:()=>es_rejectP,renameKeyWith:()=>es_renameKeyWith,renameKeys:()=>es_renameKeys,renameKeysWith:()=>es_renameKeysWith,repeatStr:()=>es_repeatStr,replaceAll:()=>es_replaceAll,resetToDefault:()=>es_mergeRight,resolveP:()=>es_resolveP,round:()=>es_round,seq:()=>es_seq,sequencing:()=>es_seq,sign:()=>es_sign,skipTake:()=>es_skipTake,sliceFrom:()=>es_sliceFrom,sliceTo:()=>es_sliceTo,sortByProps:()=>es_sortByProps,spreadPath:()=>es_spreadPath,spreadProp:()=>es_spreadProp,stubArray:()=>es_stubArray,stubNull:()=>es_stubNull,stubObj:()=>es_stubObj,stubObject:()=>es_stubObj,stubString:()=>es_stubString,stubUndefined:()=>es_stubUndefined,subtractNum:()=>es_subtractNum,then:()=>es_thenP,thenCatchP:()=>es_thenCatchP,thenP:()=>es_thenP,toArray:()=>es_toArray,toInt32:()=>es_toInteger32,toInteger32:()=>es_toInteger32,toUint32:()=>es_toUinteger32,toUinteger32:()=>es_toUinteger32,trimCharsEnd:()=>es_trimCharsEnd,trimCharsStart:()=>es_trimCharsStart,trimEnd:()=>es_trimEnd,trimLeft:()=>es_trimStart,trimRight:()=>es_trimEnd,trimStart:()=>es_trimStart,trunc:()=>es_trunc,unzipObjWith:()=>es_unzipObjWith,viewOr:()=>es_viewOr,weave:()=>es_weave,weaveLazy:()=>es_weaveLazy,zipObjWith:()=>es_zipObjWith});function _isPlaceholder(a){return a!=null&&typeof a=="object"&&a["@@functional/placeholder"]===!0}function _curry1(fn){return function f1(a){return arguments.length===0||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1(function(_b){return fn(a,_b)});default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1(function(_a){return fn(_a,b)}):_isPlaceholder(b)?_curry1(function(_b){return fn(a,_b)}):fn(a,b)}}}const _isArray=Array.isArray||function(val){return val!=null&&val.length>=0&&Object.prototype.toString.call(val)==="[object Array]"};function _isString(x){return Object.prototype.toString.call(x)==="[object String]"}var _isArrayLike=_curry1(function(x){return _isArray(x)?!0:!x||typeof x!="object"||_isString(x)?!1:x.nodeType===1?!!x.length:x.length===0?!0:x.length>0?x.hasOwnProperty(0)&&x.hasOwnProperty(x.length-1):!1});const internal_isArrayLike=_isArrayLike;var XWrap=function(){function XWrap2(fn){this.f=fn}return XWrap2.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},XWrap2.prototype["@@transducer/result"]=function(acc){return acc},XWrap2.prototype["@@transducer/step"]=function(acc,x){return this.f(acc,x)},XWrap2}();function _xwrap(fn){return new XWrap(fn)}function _arity(n,fn){switch(n){case 0:return function(){return fn.apply(this,arguments)};case 1:return function(a0){return fn.apply(this,arguments)};case 2:return function(a0,a1){return fn.apply(this,arguments)};case 3:return function(a0,a1,a2){return fn.apply(this,arguments)};case 4:return function(a0,a1,a2,a3){return fn.apply(this,arguments)};case 5:return function(a0,a1,a2,a3,a4){return fn.apply(this,arguments)};case 6:return function(a0,a1,a2,a3,a4,a5){return fn.apply(this,arguments)};case 7:return function(a0,a1,a2,a3,a4,a5,a6){return fn.apply(this,arguments)};case 8:return function(a0,a1,a2,a3,a4,a5,a6,a7){return fn.apply(this,arguments)};case 9:return function(a0,a1,a2,a3,a4,a5,a6,a7,a8){return fn.apply(this,arguments)};case 10:return function(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9){return fn.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var bind=_curry2(function(fn,thisObj){return _arity(fn.length,function(){return fn.apply(thisObj,arguments)})});const es_bind=bind;function _arrayReduce(xf,acc,list2){for(var idx=0,len=list2.length;idx<len;){if(acc=xf["@@transducer/step"](acc,list2[idx]),acc&&acc["@@transducer/reduced"]){acc=acc["@@transducer/value"];break}idx+=1}return xf["@@transducer/result"](acc)}function _iterableReduce(xf,acc,iter){for(var step=iter.next();!step.done;){if(acc=xf["@@transducer/step"](acc,step.value),acc&&acc["@@transducer/reduced"]){acc=acc["@@transducer/value"];break}step=iter.next()}return xf["@@transducer/result"](acc)}function _methodReduce(xf,acc,obj,methodName){return xf["@@transducer/result"](obj[methodName](es_bind(xf["@@transducer/step"],xf),acc))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(fn,acc,list2){if(typeof fn=="function"&&(fn=_xwrap(fn)),internal_isArrayLike(list2))return _arrayReduce(fn,acc,list2);if(typeof list2["fantasy-land/reduce"]=="function")return _methodReduce(fn,acc,list2,"fantasy-land/reduce");if(list2[symIterator]!=null)return _iterableReduce(fn,acc,list2[symIterator]());if(typeof list2.next=="function")return _iterableReduce(fn,acc,list2);if(typeof list2.reduce=="function")return _methodReduce(fn,acc,list2,"reduce");throw new TypeError("reduce: list must be array or iterable")}function _concat(set1,set2){set1=set1||[],set2=set2||[];var idx,len1=set1.length,len2=set2.length,result=[];for(idx=0;idx<len1;)result[result.length]=set1[idx],idx+=1;for(idx=0;idx<len2;)result[result.length]=set2[idx],idx+=1;return result}function _isTransformer(obj){return obj!=null&&typeof obj["@@transducer/step"]=="function"}function _dispatchable(methodNames,xf,fn){return function(){if(arguments.length===0)return fn();var args=Array.prototype.slice.call(arguments,0),obj=args.pop();if(!_isArray(obj)){for(var idx=0;idx<methodNames.length;){if(typeof obj[methodNames[idx]]=="function")return obj[methodNames[idx]].apply(obj,args);idx+=1}if(_isTransformer(obj)){var transducer=xf.apply(null,args);return transducer(obj)}}return fn.apply(this,arguments)}}function _map(fn,functor){for(var idx=0,len=functor.length,result=Array(len);idx<len;)result[idx]=fn(functor[idx]),idx+=1;return result}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(result){return this.xf["@@transducer/result"](result)}};var XMap=function(){function XMap2(f,xf){this.xf=xf,this.f=f}return XMap2.prototype["@@transducer/init"]=_xfBase.init,XMap2.prototype["@@transducer/result"]=_xfBase.result,XMap2.prototype["@@transducer/step"]=function(result,input){return this.xf["@@transducer/step"](result,this.f(input))},XMap2}(),_xmap=_curry2(function(f,xf){return new XMap(f,xf)});const internal_xmap=_xmap;function _curryN(length,received,fn){return function(){for(var combined=[],argsIdx=0,left=length,combinedIdx=0;combinedIdx<received.length||argsIdx<arguments.length;){var result;combinedIdx<received.length&&(!_isPlaceholder(received[combinedIdx])||argsIdx>=arguments.length)?result=received[combinedIdx]:(result=arguments[argsIdx],argsIdx+=1),combined[combinedIdx]=result,_isPlaceholder(result)||(left-=1),combinedIdx+=1}return left<=0?fn.apply(this,combined):_arity(left,_curryN(length,combined,fn))}}var curryN=_curry2(function(length,fn){return length===1?_curry1(fn):_arity(length,_curryN(length,[],fn))});const es_curryN=curryN;function _has(prop2,obj){return Object.prototype.hasOwnProperty.call(obj,prop2)}var _isArguments_toString=Object.prototype.toString,_isArguments=function(){return _isArguments_toString.call(arguments)==="[object Arguments]"?function(x){return _isArguments_toString.call(x)==="[object Arguments]"}:function(x){return _has("callee",x)}}();const internal_isArguments=_isArguments;var hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),contains=function(list2,item){for(var idx=0;idx<list2.length;){if(list2[idx]===item)return!0;idx+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(obj){return Object(obj)!==obj?[]:Object.keys(obj)}:function(obj){if(Object(obj)!==obj)return[];var prop2,nIdx,ks=[],checkArgsLength=hasArgsEnumBug&&internal_isArguments(obj);for(prop2 in obj)_has(prop2,obj)&&(!checkArgsLength||prop2!=="length")&&(ks[ks.length]=prop2);if(hasEnumBug)for(nIdx=nonEnumerableProps.length-1;nIdx>=0;)prop2=nonEnumerableProps[nIdx],_has(prop2,obj)&&!contains(ks,prop2)&&(ks[ks.length]=prop2),nIdx-=1;return ks});const es_keys=keys;var map=_curry2(_dispatchable(["fantasy-land/map","map"],internal_xmap,function(fn,functor){switch(Object.prototype.toString.call(functor)){case"[object Function]":return es_curryN(functor.length,function(){return fn.call(this,functor.apply(this,arguments))});case"[object Object]":return _reduce(function(acc,key){return acc[key]=fn(functor[key]),acc},{},es_keys(functor));default:return _map(fn,functor)}}));const es_map=map;var ap=_curry2(function(applyF,applyX){return typeof applyX["fantasy-land/ap"]=="function"?applyX["fantasy-land/ap"](applyF):typeof applyF.ap=="function"?applyF.ap(applyX):typeof applyF=="function"?function(x){return applyF(x)(applyX(x))}:_reduce(function(acc,f){return _concat(acc,es_map(f,applyX))},[],applyF)});const es_ap=ap;var liftN=_curry2(function(arity,fn){var lifted=es_curryN(arity,fn);return es_curryN(arity,function(){return _reduce(es_ap,es_map(lifted,arguments[0]),Array.prototype.slice.call(arguments,1))})});const es_liftN=liftN;var lift=_curry1(function(fn){return es_liftN(fn.length,fn)});const es_lift=lift;var not=_curry1(function(a){return!a}),complement=es_lift(not);const es_complement=complement;function _arrayFromIterator(iter){for(var list2=[],next;!(next=iter.next()).done;)list2.push(next.value);return list2}function _includesWith(pred,x,list2){for(var idx=0,len=list2.length;idx<len;){if(pred(x,list2[idx]))return!0;idx+=1}return!1}function _functionName(f){var match=String(f).match(/^function (\w*)/);return match==null?"":match[1]}function _objectIs(a,b){return a===b?a!==0||1/a===1/b:a!==a&&b!==b}const internal_objectIs=typeof Object.is=="function"?Object.is:_objectIs;var type=_curry1(function(val){return val===null?"Null":val===void 0?"Undefined":Object.prototype.toString.call(val).slice(8,-1)});const es_type=type;function _uniqContentEquals(aIterator,bIterator,stackA,stackB){var a=_arrayFromIterator(aIterator),b=_arrayFromIterator(bIterator);function eq(_a,_b){return _equals(_a,_b,stackA.slice(),stackB.slice())}return!_includesWith(function(b2,aItem){return!_includesWith(eq,aItem,b2)},b,a)}function _equals(a,b,stackA,stackB){if(internal_objectIs(a,b))return!0;var typeA=es_type(a);if(typeA!==es_type(b)||a==null||b==null)return!1;if(typeof a["fantasy-land/equals"]=="function"||typeof b["fantasy-land/equals"]=="function")return typeof a["fantasy-land/equals"]=="function"&&a["fantasy-land/equals"](b)&&typeof b["fantasy-land/equals"]=="function"&&b["fantasy-land/equals"](a);if(typeof a.equals=="function"||typeof b.equals=="function")return typeof a.equals=="function"&&a.equals(b)&&typeof b.equals=="function"&&b.equals(a);switch(typeA){case"Arguments":case"Array":case"Object":if(typeof a.constructor=="function"&&_functionName(a.constructor)==="Promise")return a===b;break;case"Boolean":case"Number":case"String":if(!(typeof a==typeof b&&internal_objectIs(a.valueOf(),b.valueOf())))return!1;break;case"Date":if(!internal_objectIs(a.valueOf(),b.valueOf()))return!1;break;case"Error":return a.name===b.name&&a.message===b.message;case"RegExp":if(!(a.source===b.source&&a.global===b.global&&a.ignoreCase===b.ignoreCase&&a.multiline===b.multiline&&a.sticky===b.sticky&&a.unicode===b.unicode))return!1;break}for(var idx=stackA.length-1;idx>=0;){if(stackA[idx]===a)return stackB[idx]===b;idx-=1}switch(typeA){case"Map":return a.size!==b.size?!1:_uniqContentEquals(a.entries(),b.entries(),stackA.concat([a]),stackB.concat([b]));case"Set":return a.size!==b.size?!1:_uniqContentEquals(a.values(),b.values(),stackA.concat([a]),stackB.concat([b]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var keysA=es_keys(a);if(keysA.length!==es_keys(b).length)return!1;var extendedStackA=stackA.concat([a]),extendedStackB=stackB.concat([b]);for(idx=keysA.length-1;idx>=0;){var key=keysA[idx];if(!(_has(key,b)&&_equals(b[key],a[key],extendedStackA,extendedStackB)))return!1;idx-=1}return!0}var equals=_curry2(function(a,b){return _equals(a,b,[],[])});const es_equals=equals;var always=_curry1(function(val){return function(){return val}});const es_always=always;var stubUndefined=es_always(void 0);const es_stubUndefined=stubUndefined;var isUndefined=es_equals(es_stubUndefined());const es_isUndefined=isUndefined;var isNotUndefined=es_complement(es_isUndefined);const es_isNotUndefined=isNotUndefined;var isNull=es_equals(null);const es_isNull=isNull;var isNotNull=es_complement(es_isNull);const es_isNotNull=isNotNull;var isNil=_curry1(function(x){return x==null});const es_isNil=isNil;var isNotNil=es_complement(es_isNil);const es_isNotNil=isNotNil;function _pipe(f,g){return function(){return g.call(this,f.apply(this,arguments))}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2(function(_b,_c){return fn(a,_b,_c)});case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2(function(_a,_c){return fn(_a,b,_c)}):_isPlaceholder(b)?_curry2(function(_b,_c){return fn(a,_b,_c)}):_curry1(function(_c){return fn(a,b,_c)});default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2(function(_a,_b){return fn(_a,_b,c)}):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2(function(_a,_c){return fn(_a,b,_c)}):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2(function(_b,_c){return fn(a,_b,_c)}):_isPlaceholder(a)?_curry1(function(_a){return fn(_a,b,c)}):_isPlaceholder(b)?_curry1(function(_b){return fn(a,_b,c)}):_isPlaceholder(c)?_curry1(function(_c){return fn(a,b,_c)}):fn(a,b,c)}}}var reduce=_curry3(_reduce);const es_reduce=reduce;function _checkForMethod(methodname,fn){return function(){var length=arguments.length;if(length===0)return fn();var obj=arguments[length-1];return _isArray(obj)||typeof obj[methodname]!="function"?fn.apply(this,arguments):obj[methodname].apply(obj,Array.prototype.slice.call(arguments,0,length-1))}}var slice=_curry3(_checkForMethod("slice",function(fromIndex,toIndex,list2){return Array.prototype.slice.call(list2,fromIndex,toIndex)}));const es_slice=slice;var tail=_curry1(_checkForMethod("tail",es_slice(1,1/0)));const es_tail=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,es_reduce(_pipe,arguments[0],es_tail(arguments)))}var identical=_curry2(internal_objectIs);const es_identical=identical;var max=_curry2(function(a,b){return b>a?b:a});const es_max=max,_isInteger=Number.isInteger||function(n){return n<<0===n};var nth=_curry2(function(offset,list2){var idx=offset<0?list2.length+offset:offset;return _isString(list2)?list2.charAt(idx):list2[idx]});const es_nth=nth;var paths=_curry2(function(pathsArray,obj){return pathsArray.map(function(paths3){for(var val=obj,idx=0,p;idx<paths3.length;){if(val==null)return;p=paths3[idx],val=_isInteger(p)?es_nth(p,val):val[p],idx+=1}return val})});const es_paths=paths;var path=_curry2(function(pathAr,obj){return es_paths([pathAr],obj)[0]});const es_path=path;var prop=_curry2(function(p,obj){return es_path([p],obj)});const es_prop=prop;var pluck=_curry2(function(p,list2){return es_map(es_prop(p),list2)});const es_pluck=pluck;var anyPass=_curry1(function(preds){return es_curryN(es_reduce(es_max,0,es_pluck("length",preds)),function(){for(var idx=0,len=preds.length;idx<len;){if(preds[idx].apply(this,arguments))return!0;idx+=1}return!1})});const es_anyPass=anyPass;var is=_curry2(function(Ctor,val){return val!=null&&val.constructor===Ctor||val instanceof Ctor});const es_is=is;var F=function(){return!1};const es_F=F;function _isFunction(x){var type2=Object.prototype.toString.call(x);return type2==="[object Function]"||type2==="[object AsyncFunction]"||type2==="[object GeneratorFunction]"||type2==="[object AsyncGeneratorFunction]"}var or=_curry2(function(a,b){return a||b});const es_or=or;var either=_curry2(function(f,g){return _isFunction(f)?function(){return f.apply(this,arguments)||g.apply(this,arguments)}:es_lift(es_or)(f,g)});const es_either=either;var GeneratorFunction=null,legacyCheck=null;try{GeneratorFunction=new Function("return function* () {}")().constructor,legacyCheck=es_is(GeneratorFunction)}catch{legacyCheck=es_F}var isGeneratorFunction=es_curryN(1,es_either(pipe(es_type,es_identical("GeneratorFunction")),legacyCheck));const es_isGeneratorFunction=isGeneratorFunction;var isAsyncFunction=es_curryN(1,pipe(es_type,es_identical("AsyncFunction")));const es_isAsyncFunction=isAsyncFunction;var isFunction=es_anyPass([pipe(es_type,es_identical("Function")),es_isGeneratorFunction,es_isAsyncFunction]);const es_isFunction=isFunction;var isArray=es_curryN(1,es_isFunction(Array.isArray)?Array.isArray:pipe(es_type,es_identical("Array")));const es_isArray=isArray;var hasIn=_curry2(function(prop2,obj){return prop2 in obj});const es_hasIn=hasIn;var isIterable=es_curryN(1,function(val){return typeof Symbol>"u"?!1:es_hasIn(Symbol.iterator,Object(val))&&es_isFunction(val[Symbol.iterator])});const es_isIterable=isIterable;var and=_curry2(function(a,b){return a&&b});const es_and=and;var both=_curry2(function(f,g){return _isFunction(f)?function(){return f.apply(this,arguments)&&g.apply(this,arguments)}:es_lift(es_and)(f,g)});const es_both=both;function _isObject(x){return Object.prototype.toString.call(x)==="[object Object]"}var empty=_curry1(function(x){return x!=null&&typeof x["fantasy-land/empty"]=="function"?x["fantasy-land/empty"]():x!=null&&x.constructor!=null&&typeof x.constructor["fantasy-land/empty"]=="function"?x.constructor["fantasy-land/empty"]():x!=null&&typeof x.empty=="function"?x.empty():x!=null&&x.constructor!=null&&typeof x.constructor.empty=="function"?x.constructor.empty():_isArray(x)?[]:_isString(x)?"":_isObject(x)?{}:internal_isArguments(x)?function(){return arguments}():void 0});const es_empty=empty;var isEmpty=_curry1(function(x){return x!=null&&es_equals(x,es_empty(x))});const es_isEmpty=isEmpty;var isEmptyArray=es_both(es_isArray,es_isEmpty);const es_isEmptyArray=isEmptyArray;var isNotArray=es_complement(es_isArray);const es_isNotArray=isNotArray;var isNotEmpty=es_complement(es_isEmpty);const es_isNotEmpty=isNotEmpty;var isNonEmptyArray=es_both(es_isArray,es_isNotEmpty);const es_isNonEmptyArray=isNonEmptyArray;var isBoolean=es_curryN(1,pipe(es_type,es_identical("Boolean")));const es_isBoolean=isBoolean;var isNotBoolean=es_complement(es_isBoolean);const es_isNotBoolean=isNotBoolean;var isNilOrEmpty=es_curryN(1,es_either(es_isNil,es_isEmpty));const es_isNilOrEmpty=isNilOrEmpty;var isString=es_curryN(1,pipe(es_type,es_identical("String")));const es_isString=isString;var isEmptyString=es_equals("");const es_isEmptyString=isEmptyString;var isNotString=es_complement(es_isString);const es_isNotString=isNotString;var allPass=_curry1(function(preds){return es_curryN(es_reduce(es_max,0,es_pluck("length",preds)),function(){for(var idx=0,len=preds.length;idx<len;){if(!preds[idx].apply(this,arguments))return!1;idx+=1}return!0})});const es_allPass=allPass;function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}var isOfTypeObject=function(val){return _typeof(val)==="object"};const internal_isOfTypeObject=isOfTypeObject;var isObj=es_curryN(1,es_both(es_isNotNull,es_either(internal_isOfTypeObject,es_isFunction)));const es_isObj=isObj;var isNotObj=es_complement(es_isObj);const es_isNotObj=isNotObj;var isNonEmptyString=es_allPass([es_isString,es_isNotObj,es_isNotEmpty]);const es_isNonEmptyString=isNonEmptyString;var hasPath=_curry2(function(_path,obj){if(_path.length===0||es_isNil(obj))return!1;for(var val=obj,idx=0;idx<_path.length;)if(!es_isNil(val)&&_has(_path[idx],val))val=val[_path[idx]],idx+=1;else return!1;return!0});const es_hasPath=hasPath;var has=_curry2(function(prop2,obj){return es_hasPath([prop2],obj)});const es_has=has;function isArrayLike_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?isArrayLike_typeof=function(obj2){return typeof obj2}:isArrayLike_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},isArrayLike_typeof(obj)}var isArrayLike=es_curryN(1,function(val){return es_isArray(val)?!0:!val||es_isString(val)||isArrayLike_typeof(val)!=="object"?!1:val.nodeType===1?!!val.length:val.length===0?!0:val.length>0?es_has(0,val)&&es_has(val.length-1,val):!1});const es_isArrayLike=isArrayLike;var isNotArrayLike=es_complement(es_isArrayLike);const es_isNotArrayLike=isNotArrayLike;var isNotGeneratorFunction=es_complement(es_isGeneratorFunction);const es_isNotGeneratorFunction=isNotGeneratorFunction;var isNotAsyncFunction=es_complement(es_isAsyncFunction);const es_isNotAsyncFunction=isNotAsyncFunction;var isNotFunction=es_complement(es_isFunction);const es_isNotFunction=isNotFunction;var isObjLike=es_curryN(1,es_both(es_isNotNull,internal_isOfTypeObject));const es_isObjLike=isObjLike;var isNotObjLike=es_complement(es_isObjLike);const es_isNotObjLike=isNotObjLike;function _indexOf(list2,a,idx){var inf,item;if(typeof list2.indexOf=="function")switch(typeof a){case"number":if(a===0){for(inf=1/a;idx<list2.length;){if(item=list2[idx],item===0&&1/item===inf)return idx;idx+=1}return-1}else if(a!==a){for(;idx<list2.length;){if(item=list2[idx],typeof item=="number"&&item!==item)return idx;idx+=1}return-1}return list2.indexOf(a,idx);case"string":case"boolean":case"function":case"undefined":return list2.indexOf(a,idx);case"object":if(a===null)return list2.indexOf(a,idx)}for(;idx<list2.length;){if(es_equals(list2[idx],a))return idx;idx+=1}return-1}function _includes(a,list2){return _indexOf(list2,a,0)>=0}function _quote(s){var escaped=s.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+escaped.replace(/"/g,'\\"')+'"'}var pad=function(n){return(n<10?"0":"")+n},_toISOString=typeof Date.prototype.toISOString=="function"?function(d){return d.toISOString()}:function(d){return d.getUTCFullYear()+"-"+pad(d.getUTCMonth()+1)+"-"+pad(d.getUTCDate())+"T"+pad(d.getUTCHours())+":"+pad(d.getUTCMinutes())+":"+pad(d.getUTCSeconds())+"."+(d.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const internal_toISOString=_toISOString;function _complement(f){return function(){return!f.apply(this,arguments)}}function _filter(fn,list2){for(var idx=0,len=list2.length,result=[];idx<len;)fn(list2[idx])&&(result[result.length]=list2[idx]),idx+=1;return result}var XFilter=function(){function XFilter2(f,xf){this.xf=xf,this.f=f}return XFilter2.prototype["@@transducer/init"]=_xfBase.init,XFilter2.prototype["@@transducer/result"]=_xfBase.result,XFilter2.prototype["@@transducer/step"]=function(result,input){return this.f(input)?this.xf["@@transducer/step"](result,input):result},XFilter2}(),_xfilter=_curry2(function(f,xf){return new XFilter(f,xf)}),filter=_curry2(_dispatchable(["filter"],_xfilter,function(pred,filterable){return _isObject(filterable)?_reduce(function(acc,key){return pred(filterable[key])&&(acc[key]=filterable[key]),acc},{},es_keys(filterable)):_filter(pred,filterable)}));const es_filter=filter;var reject=_curry2(function(pred,filterable){return es_filter(_complement(pred),filterable)});const es_reject=reject;function _toString(x,seen){var recur=function(y){var xs=seen.concat([x]);return _includes(y,xs)?"<Circular>":_toString(y,xs)},mapPairs=function(obj,keys2){return _map(function(k){return _quote(k)+": "+recur(obj[k])},keys2.slice().sort())};switch(Object.prototype.toString.call(x)){case"[object Arguments]":return"(function() { return arguments; }("+_map(recur,x).join(", ")+"))";case"[object Array]":return"["+_map(recur,x).concat(mapPairs(x,es_reject(function(k){return/^\d+$/.test(k)},es_keys(x)))).join(", ")+"]";case"[object Boolean]":return typeof x=="object"?"new Boolean("+recur(x.valueOf())+")":x.toString();case"[object Date]":return"new Date("+(isNaN(x.valueOf())?recur(NaN):_quote(internal_toISOString(x)))+")";case"[object Null]":return"null";case"[object Number]":return typeof x=="object"?"new Number("+recur(x.valueOf())+")":1/x===-1/0?"-0":x.toString(10);case"[object String]":return typeof x=="object"?"new String("+recur(x.valueOf())+")":_quote(x);case"[object Undefined]":return"undefined";default:if(typeof x.toString=="function"){var repr=x.toString();if(repr!=="[object Object]")return repr}return"{"+mapPairs(x,es_keys(x)).join(", ")+"}"}}var toString_toString=_curry1(function(val){return _toString(val,[])});const es_toString=toString_toString;var pathSatisfies=_curry3(function(pred,propPath,obj){return pred(es_path(propPath,obj))});const es_pathSatisfies=pathSatisfies;var isObject=pipe(es_type,es_identical("Object")),isObjectConstructor=pipe(es_toString,es_equals(es_toString(Object))),hasObjectConstructor=es_pathSatisfies(es_both(es_isFunction,isObjectConstructor),["constructor"]),isPlainObj=es_curryN(1,function(val){if(!es_isObjLike(val)||!isObject(val))return!1;var proto=Object.getPrototypeOf(val);return es_isNull(proto)?!0:hasObjectConstructor(proto)});const es_isPlainObj=isPlainObj;var isNotPlainObj=es_complement(es_isPlainObj);const es_isNotPlainObj=isNotPlainObj;var isDate=es_curryN(1,pipe(es_type,es_identical("Date")));const es_isDate=isDate;var isNotDate=es_complement(es_isDate);const es_isNotDate=isNotDate;var invoker=_curry2(function(arity,method){return es_curryN(arity+1,function(){var target=arguments[arity];if(target!=null&&_isFunction(target[method]))return target[method].apply(target,Array.prototype.slice.call(arguments,0,arity));throw new TypeError(es_toString(target)+' does not have a method named "'+method+'"')})});const es_invoker=invoker;var isNumber=es_curryN(1,pipe(es_type,es_identical("Number")));const es_isNumber=isNumber;var isNaNPonyfill=es_both(es_isNumber,isNaN),isNaN_isNaNPonyfill=es_curryN(1,isNaNPonyfill),_isNaN=es_isFunction(Number.isNaN)?es_curryN(1,Number.isNaN):isNaN_isNaNPonyfill;const es_isNaN=_isNaN;var isNotNaN=es_complement(es_isNaN);const es_isNotNaN=isNotNaN;var isValidDate=es_curryN(1,es_both(es_isDate,pipe(es_invoker(0,"getTime"),es_isNotNaN)));const es_isValidDate=isValidDate;var isNotValidDate=es_complement(es_isValidDate);const es_isNotValidDate=isNotValidDate;var isNotNumber=es_complement(es_isNumber);const es_isNotNumber=isNotNumber;var lt=_curry2(function(a,b){return a<b});const es_lt=lt;var isPositive=es_both(es_isNumber,es_lt(0));const es_isPositive=isPositive;var gt=_curry2(function(a,b){return a>b});const es_gt=gt;var isNegative=es_curryN(1,es_both(es_isNumber,es_gt(0)));const es_isNegative=isNegative;var isPositiveZero=es_identical(0);const es_isPositiveZero=isPositiveZero;var isNegativeZero=es_identical(-0);const es_isNegativeZero=isNegativeZero;var isNotNilOrEmpty=es_complement(es_isNilOrEmpty);const es_isNotNilOrEmpty=isNotNilOrEmpty;var flip=_curry1(function(fn){return es_curryN(fn.length,function(a,b){var args=Array.prototype.slice.call(arguments,0);return args[0]=b,args[1]=a,fn.apply(this,args)})});const es_flip=flip;var lte=_curry2(function(a,b){return a<=b});const es_lte=lte;var isNonPositive=es_curryN(1,es_both(es_isNumber,es_flip(es_lte)(0)));const es_isNonPositive=isNonPositive;var gte=_curry2(function(a,b){return a>=b});const es_gte=gte;var isNonNegative=es_curryN(1,es_both(es_isNumber,es_flip(es_gte)(0)));const es_isNonNegative=isNonNegative;var isMap=es_curryN(1,pipe(es_type,es_identical("Map")));const es_isMap=isMap;var isNotMap=es_complement(es_isMap);const es_isNotMap=isNotMap;var isFinitePonyfill=es_both(es_isNumber,isFinite),isFinite_isFinitePonyfill=es_curryN(1,isFinitePonyfill),_isFinite=es_isFunction(Number.isFinite)?es_curryN(1,es_bind(Number.isFinite,Number)):isFinite_isFinitePonyfill;const es_isFinite=_isFinite;var isNotFinite=es_complement(es_isFinite);const es_isNotFinite=isNotFinite;var converge=_curry2(function(after,fns){return es_curryN(es_reduce(es_max,0,es_pluck("length",fns)),function(){var args=arguments,context=this;return after.apply(context,_map(function(fn){return fn.apply(context,args)},fns))})});const es_converge=converge;function _identity(x){return x}var identity=_curry1(_identity);const es_identity=identity;var isIntegerPonyfill=es_both(es_isFinite,es_converge(es_equals,[Math.floor,es_identity])),isInteger_isIntegerPonyfill=es_curryN(1,isIntegerPonyfill),isInteger=es_isFunction(Number.isInteger)?es_curryN(1,es_bind(Number.isInteger,Number)):isInteger_isIntegerPonyfill;const es_isInteger=isInteger;var isNotInteger=es_complement(es_isInteger);const es_isNotInteger=isNotInteger;var isBigInt=es_curryN(1,pipe(es_type,es_identical("BigInt")));const es_isBigInt=isBigInt;var isFloat=es_both(es_isFinite,es_complement(es_isInteger));const es_isFloat=isFloat;var isNotFloat=es_curryN(1,es_complement(es_isFloat));const es_isNotFloat=isNotFloat;var isValidNumber=es_curryN(1,es_either(es_isInteger,es_isFloat));const es_isValidNumber=isValidNumber;var isNotValidNumber=es_complement(es_isValidNumber);const es_isNotValidNumber=isNotValidNumber;var modulo=_curry2(function(a,b){return a%b});const es_modulo=modulo;var isOdd=es_curryN(1,es_both(es_isInteger,pipe(es_flip(es_modulo)(2),es_complement(es_equals)(0))));const es_isOdd=isOdd;var isEven=es_curryN(1,es_both(es_isInteger,es_complement(es_isOdd)));const es_isEven=isEven;function _isNumber(x){return Object.prototype.toString.call(x)==="[object Number]"}var length_length=_curry1(function(list2){return list2!=null&&_isNumber(list2.length)?list2.length:NaN});const es_length=length_length;var isPair=es_curryN(1,es_both(es_isArray,pipe(es_length,es_equals(2))));const es_isPair=isPair;var isNotPair=es_complement(es_isPair);const es_isNotPair=isNotPair;var isThenable=es_pathSatisfies(es_isFunction,["then"]);const es_isThenable=isThenable;var isPromise=es_curryN(1,es_both(es_isObj,pipe(es_toString,es_equals("[object Promise]"))));const es_isPromise=isPromise;var isTrue=es_identical(!0);const es_isTrue=isTrue;var isFalse=es_identical(!1);const es_isFalse=isFalse;var isTruthy=es_curryN(1,Boolean);const es_isTruthy=isTruthy;var isFalsy=es_complement(es_isTruthy);const es_isFalsy=isFalsy;var isRegExp=es_curryN(1,pipe(es_type,es_identical("RegExp")));const es_isRegExp=isRegExp;var isNotRegExp=es_complement(es_isRegExp);const es_isNotRegExp=isNotRegExp;var isSet=es_curryN(1,pipe(es_type,es_identical("Set")));const es_isSet=isSet;var isNotSet=es_complement(es_isSet);const es_isNotSet=isNotSet;var values=_curry1(function(obj){for(var props2=es_keys(obj),len=props2.length,vals=[],idx=0;idx<len;)vals[idx]=obj[props2[idx]],idx+=1;return vals});const es_values=values;var isSparseArray=es_both(es_isArray,es_converge(es_complement(es_identical),[pipe(es_values,es_length),es_length]));const es_isSparseArray=isSparseArray;function isSymbol_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?isSymbol_typeof=function(obj2){return typeof obj2}:isSymbol_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},isSymbol_typeof(obj)}var isSymbol=es_curryN(1,function(val){return isSymbol_typeof(val)==="symbol"||isSymbol_typeof(val)==="object"&&es_type(val)==="Symbol"});const es_isSymbol=isSymbol;var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;const Number_MAX_SAFE_INTEGER=MAX_SAFE_INTEGER;var isSafeIntegerPonyfill=es_both(es_isInteger,function(value){return Math.abs(value)<=Number_MAX_SAFE_INTEGER}),isSafeInteger_isSafeIntegerPonyfill=es_curryN(1,isSafeIntegerPonyfill),isSafeInteger=es_isFunction(Number.isSafeInteger)?es_curryN(1,es_bind(Number.isSafeInteger,Number)):isSafeInteger_isSafeIntegerPonyfill;const es_isSafeInteger=isSafeInteger;var isIndexed=es_curryN(1,es_either(es_isString,es_isArray));const es_isIndexed=isIndexed;var isError=es_curryN(1,pipe(es_type,es_identical("Error")));const es_isError=isError;var isNaturalNumber=es_curryN(1,es_both(es_isInteger,es_complement(es_isNegative)));const es_isNaturalNumber=isNaturalNumber;var stubNull=es_always(null);const es_stubNull=stubNull;var stubObj=function(){return{}};const es_stubObj=stubObj;var stubString=es_always("");const es_stubString=stubString;var stubArray=function(){return[]};const es_stubArray=stubArray;var noop=es_always(es_stubUndefined());const es_noop=noop;var curry=_curry1(function(fn){return es_curryN(fn.length,fn)});const es_curry=curry;var head=es_nth(0);const es_head=head;var mapping=Object.freeze({equals:"fantasy-land/equals",lte:"fantasy-land/lte",compose:"fantasy-land/compose",id:"fantasy-land/id",concat:"fantasy-land/concat",empty:"fantasy-land/empty",map:"fantasy-land/map",contramap:"fantasy-land/contramap",ap:"fantasy-land/ap",of:"fantasy-land/of",alt:"fantasy-land/alt",zero:"fantasy-land/zero",reduce:"fantasy-land/reduce",traverse:"fantasy-land/traverse",chain:"fantasy-land/chain",chainRec:"fantasy-land/chainRec",extend:"fantasy-land/extend",extract:"fantasy-land/extract",bimap:"fantasy-land/bimap",promap:"fantasy-land/promap"});const fantasy_land_mapping=mapping;var isFunctor=es_either(es_pathSatisfies(es_isFunction,["map"]),es_pathSatisfies(es_isFunction,[fantasy_land_mapping.map])),isApply=es_both(isFunctor,es_either(es_pathSatisfies(es_isFunction,["ap"]),es_pathSatisfies(es_isFunction,[fantasy_land_mapping.ap]))),ap_ap=es_curryN(2,function(applyF,applyX){if(!isApply(applyF)||!isApply(applyX))return es_ap(applyF,applyX);try{return applyF.ap(applyX)}catch{return applyX.ap(applyF)}});const internal_ap=ap_ap;var liftFN=es_curry(function(arity,fn){var lifted=es_curryN(arity,fn);return es_curryN(arity,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var accumulator=es_map(lifted,es_head(args)),apps=es_slice(1,1/0,args);return es_reduce(internal_ap,accumulator,apps)})});const es_liftFN=liftFN;var liftF=es_curryN(1,function(fn){return es_liftFN(fn.length,fn)});const es_liftF=liftF;var catamorphism=es_curry(function(leftFn,rightFn,catamorphicObj){if(es_isFunction(catamorphicObj.matchWith))return catamorphicObj.matchWith({Ok:function(_ref){var value2=_ref.value;return rightFn(value2)},Error:function(_ref2){var value2=_ref2.value;return leftFn(value2)},Just:function(_ref3){var value2=_ref3.value;return rightFn(value2)},Nothing:function(){return leftFn(void 0)},Success:function(_ref4){var value2=_ref4.value;return rightFn(value2)},Failure:function(_ref5){var value2=_ref5.value;return leftFn(value2)}});if(es_isFunction(catamorphicObj.cata))return catamorphicObj.cata(leftFn,rightFn);if(es_isFunction(catamorphicObj.getOrElse)){var elseValue="RA.cata".concat(Math.random()),value=catamorphicObj.getOrElse(elseValue);return value===elseValue?leftFn():rightFn(value)}return catamorphicObj.either(leftFn,rightFn)});const cata=catamorphism;var weave=es_curryN(2,function(fn,config){return es_curryN(fn.length,function(){return fn.apply(void 0,arguments).run(config)})});const es_weave=weave;var weaveLazy=es_curryN(2,function(fn,configAccessor){return es_curryN(fn.length,function(){return fn.apply(void 0,arguments).run(configAccessor())})});const es_weaveLazy=weaveLazy;var reverse=_curry1(function(list2){return _isString(list2)?list2.split("").reverse().join(""):Array.prototype.slice.call(list2,0).reverse()});const es_reverse=reverse;var curryRightN=es_curryN(2,function(arity,fn){return es_curryN(arity,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return fn.apply(this,es_reverse(args))})});const es_curryRightN=curryRightN;var curryRight=es_converge(es_curryRightN,[es_length,es_identity]);const es_curryRight=curryRight;var allP=es_curryN(1,es_bind(Promise.all,Promise));const es_allP=allP;var rejectP=es_bind(Promise.reject,Promise);const es_rejectP=rejectP;var resolveP=es_bind(Promise.resolve,Promise);const es_resolveP=resolveP;var noneP=es_curryN(1,pipe(es_map(es_resolveP),es_map(function(p){return p.then(es_rejectP,es_resolveP)}),es_allP));const es_noneP=noneP;var defaultTo=_curry2(function(d,v){return v==null||v!==v?d:v});const es_defaultTo=defaultTo;var pathOr=_curry3(function(d,p,obj){return es_defaultTo(d,es_path(p,obj))});const es_pathOr=pathOr;var propOr=_curry3(function(val,p,obj){return es_pathOr(val,[p],obj)});const es_propOr=propOr;function _createPartialApplicator(concat2){return _curry2(function(fn,args){return _arity(Math.max(0,fn.length-args.length),function(){return fn.apply(this,concat2(args,arguments))})})}var partial=_createPartialApplicator(_concat);const es_partial=partial;var makeDelay=es_curry(function(settleFnPicker,opts){var timeout,value;return es_isInteger(opts)&&es_isNonNegative(opts)?timeout=opts:(timeout=es_propOr(0,"timeout",opts),value=es_propOr(value,"value",opts)),new Promise(function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var settleFn=settleFnPicker(args);setTimeout(es_partial(settleFn,[value]),timeout)})}),delayP=makeDelay(es_nth(0));delayP.reject=makeDelay(es_nth(1));const es_delayP=delayP;var thenP=es_invoker(1,"then");const es_thenP=thenP;var thenCatchP=es_invoker(2,"then");const es_thenCatchP=thenCatchP;function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var onFulfill=function(value){return{status:"fulfilled",value}},onReject=function(reason){return{status:"rejected",reason}},allSettledPonyfill=function(iterable){var array=es_map(function(p){return es_resolveP(p).then(onFulfill).catch(onReject)},_toConsumableArray(iterable));return es_allP(array)},allSettledPPonyfill=es_curryN(1,allSettledPonyfill),allSettledP=es_isFunction(Promise.allSettled)?es_curryN(1,es_bind(Promise.allSettled,Promise)):allSettledPPonyfill;const es_allSettledP=allSettledP;var Y=es_curryN(1,function(le){return function(f){return f(f)}(function(g){return le(function(x){return g(g)(x)})})});const es_Y=Y;var XTap=function(){function XTap2(f,xf){this.xf=xf,this.f=f}return XTap2.prototype["@@transducer/init"]=_xfBase.init,XTap2.prototype["@@transducer/result"]=_xfBase.result,XTap2.prototype["@@transducer/step"]=function(result,input){return this.f(input),this.xf["@@transducer/step"](result,input)},XTap2}(),_xtap=_curry2(function(f,xf){return new XTap(f,xf)}),tap=_curry2(_dispatchable([],_xtap,function(fn,x){return fn(x),x}));const es_tap=tap;var seq=es_curry(function(fns,x){return es_tap(function(tx){return es_map(function(fn){return fn(tx)})(fns)})(x)});const es_seq=seq;var comparator=_curry1(function(pred){return function(a,b){return pred(a,b)?-1:pred(b,a)?1:0}});const es_comparator=comparator;var sort=_curry2(function(comparator2,list2){return Array.prototype.slice.call(list2,0).sort(comparator2)});const es_sort=sort;function _reduced(x){return x&&x["@@transducer/reduced"]?x:{"@@transducer/value":x,"@@transducer/reduced":!0}}var reduced=_curry1(_reduced);const es_reduced=reduced;var ifElse=_curry3(function(condition,onTrue,onFalse){return es_curryN(Math.max(condition.length,onTrue.length,onFalse.length),function(){return condition.apply(this,arguments)?onTrue.apply(this,arguments):onFalse.apply(this,arguments)})});const es_ifElse=ifElse;function dispatch_toConsumableArray(arr){return dispatch_arrayWithoutHoles(arr)||dispatch_iterableToArray(arr)||dispatch_unsupportedIterableToArray(arr)||dispatch_nonIterableSpread()}function dispatch_nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dispatch_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return dispatch_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dispatch_arrayLikeToArray(o,minLen)}}function dispatch_iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function dispatch_arrayWithoutHoles(arr){if(Array.isArray(arr))return dispatch_arrayLikeToArray(arr)}function dispatch_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var byArity=es_comparator(function(a,b){return a.length>b.length}),getMaxArity=pipe(es_sort(byArity),es_head,es_prop("length")),iteratorFn=es_curry(function(args,accumulator,fn){var result=fn.apply(void 0,dispatch_toConsumableArray(args));return es_isNotNil(result)?es_reduced(result):accumulator}),dispatchImpl=function(functions){var arity=getMaxArity(functions);return es_curryN(arity,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return es_reduce(iteratorFn(args),void 0,functions)})},dispatch=es_ifElse(es_isNonEmptyArray,dispatchImpl,es_stubUndefined);const es_dispatch=dispatch;var async_async=es_curryN(1,function(generatorFn){function asyncWrapper(){var iterator=es_bind(generatorFn,this).apply(void 0,arguments),handle=function handle2(result){var resolved=es_resolveP(result.value);return result.done?resolved:resolved.then(function(value){return handle2(iterator.next(value))},function(error){return handle2(iterator.throw(error))})};try{return handle(iterator.next())}catch(error){return es_rejectP(error)}}return generatorFn.length>0?es_curryN(generatorFn.length,asyncWrapper):asyncWrapper});const es_async=async_async;function Promise_any_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Promise_any_typeof=function(obj2){return typeof obj2}:Promise_any_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},Promise_any_typeof(obj)}function Promise_any_toConsumableArray(arr){return Promise_any_arrayWithoutHoles(arr)||Promise_any_iterableToArray(arr)||Promise_any_unsupportedIterableToArray(arr)||Promise_any_nonIterableSpread()}function Promise_any_nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
69
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Promise_any_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return Promise_any_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Promise_any_arrayLikeToArray(o,minLen)}}function Promise_any_iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function Promise_any_arrayWithoutHoles(arr){if(Array.isArray(arr))return Promise_any_arrayLikeToArray(arr)}function Promise_any_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self2,call){return call&&(Promise_any_typeof(call)==="object"||typeof call=="function")?call:_assertThisInitialized(self2)}function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var AggregatedError=function(_Error){_inherits(AggregatedError2,_Error);var _super=_createSuper(AggregatedError2);function AggregatedError2(){var _this,errors=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],message=arguments.length>1?arguments[1]:void 0;return _classCallCheck(this,AggregatedError2),_this=_super.call(this,message),_this.errors=errors,_this}return AggregatedError2}(_wrapNativeSuper(Error)),anyPonyfill=function(iterable){var exceptions=[];return new Promise(function(resolve,reject2){var onReject2=function(e){exceptions.push(e),exceptions.length===iterable.length&&reject2(new AggregatedError(exceptions))};es_map(function(p){return es_resolveP(p).then(resolve).catch(onReject2)},Promise_any_toConsumableArray(iterable))})},anyPPonyfill=es_curryN(1,anyPonyfill),anyP=es_isFunction(Promise.any)?es_curryN(1,es_bind(Promise.any,Promise)):anyPPonyfill;const es_anyP=anyP;var last=es_nth(-1);const es_last=last;function compose(){if(arguments.length===0)throw new Error("compose requires at least one argument");return pipe.apply(this,es_reverse(arguments))}var compareLength=es_curry(function(comparator2,value,list2){return compose(comparator2(value),es_length)(list2)});const internal_compareLength=compareLength;var lengthEq=internal_compareLength(es_equals);const es_lengthEq=lengthEq;var lengthGte=internal_compareLength(es_flip(es_gte));const es_lengthGte=lengthGte;function lastP_toConsumableArray(arr){return lastP_arrayWithoutHoles(arr)||lastP_iterableToArray(arr)||lastP_unsupportedIterableToArray(arr)||lastP_nonIterableSpread()}function lastP_nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lastP_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return lastP_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lastP_arrayLikeToArray(o,minLen)}}function lastP_iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function lastP_arrayWithoutHoles(arr){if(Array.isArray(arr))return lastP_arrayLikeToArray(arr)}function lastP_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var lastP=es_curryN(1,function(iterable){var fulfilled=[],rejected=[],onFulfill2=es_bind(fulfilled.push,fulfilled),onReject2=es_bind(rejected.push,rejected),listOfPromises=es_map(function(p){return es_resolveP(p).then(onFulfill2).catch(onReject2)},lastP_toConsumableArray(iterable));return es_allP(listOfPromises).then(function(){if(!(es_lengthEq(0,fulfilled)&&es_lengthEq(0,rejected)))return es_lengthGte(1,fulfilled)?es_last(fulfilled):es_rejectP(rejected)})});const es_lastP=lastP;var apply=_curry2(function(fn,args){return fn.apply(this,args)});const es_apply=apply;var defaultWhen=es_curry(function(predicate,defaultVal,val){return predicate(val)?defaultVal:val});const es_defaultWhen=defaultWhen;var addIndex=_curry1(function(fn){return es_curryN(fn.length,function(){var idx=0,origFn=arguments[0],list2=arguments[arguments.length-1],args=Array.prototype.slice.call(arguments,0);return args[0]=function(){var result=origFn.apply(this,_concat(arguments,[idx,list2]));return idx+=1,result},fn.apply(this,args)})});const es_addIndex=addIndex;var mapIndexed=es_addIndex(es_map);const es_mapIndexed=mapIndexed;var fnull=es_curry(function(fn,defaults){return es_curryN(fn.length,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var argsWithDefaults=es_mapIndexed(function(val,idx){return es_defaultWhen(es_isNil,defaults[idx],val)},args);return es_apply(fn,argsWithDefaults)})});const es_fnull=fnull;var reduceIndexed=es_addIndex(es_reduce);const es_reduceIndexed=reduceIndexed;var filterIndexed=es_addIndex(es_filter);const es_filterIndexed=filterIndexed;var contains_contains=_curry2(_includes);const es_contains=contains_contains;var pickIndexes_filterIndexed=es_addIndex(es_filter),containsIndex=es_curry(function(indexes,val,index){return es_contains(index,indexes)}),pickIndexes=es_curry(function(indexes,list2){return pickIndexes_filterIndexed(containsIndex(indexes),list2)});const es_pickIndexes=pickIndexes;var unapply=_curry1(function(fn){return function(){return fn(Array.prototype.slice.call(arguments,0))}}),list=unapply(es_identity);const es_list=list;var when=_curry3(function(pred,whenTrueFn,x){return pred(x)?whenTrueFn(x):x});const es_when=when;function _of(x){return[x]}var of=_curry1(_of);const es_of=of;var ensureArray=es_when(es_isNotArray,es_of);const es_ensureArray=ensureArray;var concat=_curry2(function(a,b){if(_isArray(a)){if(_isArray(b))return a.concat(b);throw new TypeError(es_toString(b)+" is not an array")}if(_isString(a)){if(_isString(b))return a+b;throw new TypeError(es_toString(b)+" is not a string")}if(a!=null&&_isFunction(a["fantasy-land/concat"]))return a["fantasy-land/concat"](b);if(a!=null&&_isFunction(a.concat))return a.concat(b);throw new TypeError(es_toString(a)+' does not have a method named "concat" or "fantasy-land/concat"')});const es_concat=concat;var leftIdentitySemigroup={concat:es_identity},concatAll=pipe(es_reduce(es_concat,leftIdentitySemigroup),es_when(es_identical(leftIdentitySemigroup),es_stubUndefined));const es_concatAll=concatAll;var concatRight=es_flip(es_concat);const es_concatRight=concatRight;function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||reduceP_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function reduceP_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return reduceP_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return reduceP_arrayLikeToArray(o,minLen)}}function reduceP_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(arr)))){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}var reduceP=es_curryN(3,function(fn,acc,list2){return es_resolveP(list2).then(function(iterable){var listLength=es_length(iterable);if(listLength===0)return acc;var reducer=es_reduce(function(accP,currentValueP){return accP.then(function(previousValue){return es_allP([previousValue,currentValueP])}).then(function(_ref){var _ref2=_slicedToArray(_ref,2),previousValue=_ref2[0],currentValue=_ref2[1];return es_isUndefined(previousValue)&&listLength===1?currentValue:fn(previousValue,currentValue)})});return reducer(es_resolveP(acc),iterable)})});const es_reduceP=reduceP;var reduceRight=_curry3(function(fn,acc,list2){for(var idx=list2.length-1;idx>=0;)acc=fn(list2[idx],acc),idx-=1;return acc});const es_reduceRight=reduceRight;function reduceRightP_slicedToArray(arr,i){return reduceRightP_arrayWithHoles(arr)||reduceRightP_iterableToArrayLimit(arr,i)||reduceRightP_unsupportedIterableToArray(arr,i)||reduceRightP_nonIterableRest()}function reduceRightP_nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function reduceRightP_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return reduceRightP_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return reduceRightP_arrayLikeToArray(o,minLen)}}function reduceRightP_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function reduceRightP_iterableToArrayLimit(arr,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(arr)))){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function reduceRightP_arrayWithHoles(arr){if(Array.isArray(arr))return arr}var flipArgs=pipe(es_reduceRight(es_concat,""),es_equals("ba"))(["a","b"]),reduceRightP=es_curryN(3,function(fn,acc,list2){return es_resolveP(list2).then(function(iterable){var listLength=es_length(iterable);if(listLength===0)return acc;var reducer=es_reduceRight(function(arg1,arg2){var accP,currentValueP;return flipArgs?(accP=arg1,currentValueP=arg2):(accP=arg2,currentValueP=arg1),accP.then(function(previousValue){return es_allP([previousValue,currentValueP])}).then(function(_ref){var _ref2=reduceRightP_slicedToArray(_ref,2),previousValue=_ref2[0],currentValue=_ref2[1];return es_isUndefined(previousValue)&&listLength===1?currentValue:fn(currentValue,previousValue)})});return reducer(es_resolveP(acc),iterable)})});const es_reduceRightP=reduceRightP,_={"@@functional/placeholder":!0};var sliceFrom=es_slice(_,1/0);const es_sliceFrom=sliceFrom;var sliceTo=es_slice(0);const es_sliceTo=sliceTo;var rejectIndexed=es_addIndex(es_reject),omitIndexes_containsIndex=es_curry(function(indexes,val,index){return es_contains(index,indexes)}),omitIndexes=es_curry(function(indexes,list2){return rejectIndexed(omitIndexes_containsIndex(indexes),list2)});const es_omitIndexes=omitIndexes;var compact=es_reject(es_isFalsy);const es_compact=compact;var append=_curry2(function(el,list2){return _concat(list2,[el])}),appendFlipped=es_flip(append);const es_appendFlipped=appendFlipped;var contained=es_flip(es_contains);const es_contained=contained;var insert=_curry3(function(idx,elt,list2){idx=idx<list2.length&&idx>=0?idx:list2.length;var result=Array.prototype.slice.call(list2,0);return result.splice(idx,0,elt),result});const es_insert=insert;var remove=_curry3(function(start,count,list2){var result=Array.prototype.slice.call(list2,0);return result.splice(start,count),result});const es_remove=remove;var move=es_curry(function(fromIdx,toIdx,list2){return compose(es_insert(toIdx,es_nth(fromIdx,list2)),es_remove(fromIdx,1))(list2)});const es_move=move;var lengthGt=internal_compareLength(es_flip(es_gt));const es_lengthGt=lengthGt;var lengthLt=internal_compareLength(es_flip(es_lt));const es_lengthLt=lengthLt;var lengthLte=internal_compareLength(es_flip(es_lte));const es_lengthLte=lengthLte;var lengthNotEq=internal_compareLength(es_complement(es_equals));const es_lengthNotEq=lengthNotEq;var _Set=function(){function _Set2(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return _Set2.prototype.add=function(item){return!hasOrAdd(item,!0,this)},_Set2.prototype.has=function(item){return hasOrAdd(item,!1,this)},_Set2}();function hasOrAdd(item,shouldAdd,set){var type2=typeof item,prevSize,newSize;switch(type2){case"string":case"number":return item===0&&1/item===-1/0?set._items["-0"]?!0:(shouldAdd&&(set._items["-0"]=!0),!1):set._nativeSet!==null?shouldAdd?(prevSize=set._nativeSet.size,set._nativeSet.add(item),newSize=set._nativeSet.size,newSize===prevSize):set._nativeSet.has(item):type2 in set._items?item in set._items[type2]?!0:(shouldAdd&&(set._items[type2][item]=!0),!1):(shouldAdd&&(set._items[type2]={},set._items[type2][item]=!0),!1);case"boolean":if(type2 in set._items){var bIdx=item?1:0;return set._items[type2][bIdx]?!0:(shouldAdd&&(set._items[type2][bIdx]=!0),!1)}else return shouldAdd&&(set._items[type2]=item?[!1,!0]:[!0,!1]),!1;case"function":return set._nativeSet!==null?shouldAdd?(prevSize=set._nativeSet.size,set._nativeSet.add(item),newSize=set._nativeSet.size,newSize===prevSize):set._nativeSet.has(item):type2 in set._items?_includes(item,set._items[type2])?!0:(shouldAdd&&set._items[type2].push(item),!1):(shouldAdd&&(set._items[type2]=[item]),!1);case"undefined":return set._items[type2]?!0:(shouldAdd&&(set._items[type2]=!0),!1);case"object":if(item===null)return set._items.null?!0:(shouldAdd&&(set._items.null=!0),!1);default:return type2=Object.prototype.toString.call(item),type2 in set._items?_includes(item,set._items[type2])?!0:(shouldAdd&&set._items[type2].push(item),!1):(shouldAdd&&(set._items[type2]=[item]),!1)}}const internal_Set=_Set;var uniqBy=_curry2(function(fn,list2){for(var set=new internal_Set,result=[],idx=0,appliedItem,item;idx<list2.length;)item=list2[idx],appliedItem=fn(item),set.add(appliedItem)&&result.push(item),idx+=1;return result}),uniq=uniqBy(es_identity);const es_uniq=uniq;var allEqual=es_curryN(1,pipe(es_uniq,es_lengthLte(1)));const es_allEqual=allEqual;var repeat=function(value,count){var validCount=Number(count);if(validCount!==count&&(validCount=0),es_isNegative(validCount))throw new RangeError("repeat count must be non-negative");if(es_isNotFinite(validCount))throw new RangeError("repeat count must be less than infinity");if(validCount=Math.floor(validCount),value.length===0||validCount===0)return"";if(value.length*validCount>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var maxCount=value.length*validCount;validCount=Math.floor(Math.log(validCount)/Math.log(2));for(var result=value;validCount;)result+=value,validCount-=1;return result+=result.substring(0,maxCount-result.length),result};const String_repeat=repeat;var repeatStrPonyfill=es_curry(String_repeat),repeatStrInvoker=es_flip(es_invoker(1,"repeat")),repeatStr=es_isFunction(String.prototype.repeat)?repeatStrInvoker:repeatStrPonyfill;const es_repeatStr=repeatStr;var uniqWith=_curry2(function(pred,list2){for(var idx=0,len=list2.length,result=[],item;idx<len;)item=list2[idx],_includesWith(pred,item,result)||(result[result.length]=item),idx+=1;return result}),allIdentical=es_curryN(1,pipe(uniqWith(es_identical),es_lengthLte(1)));const es_allIdentical=allIdentical;var XAll=function(){function XAll2(f,xf){this.xf=xf,this.f=f,this.all=!0}return XAll2.prototype["@@transducer/init"]=_xfBase.init,XAll2.prototype["@@transducer/result"]=function(result){return this.all&&(result=this.xf["@@transducer/step"](result,!0)),this.xf["@@transducer/result"](result)},XAll2.prototype["@@transducer/step"]=function(result,input){return this.f(input)||(this.all=!1,result=_reduced(this.xf["@@transducer/step"](result,!1))),result},XAll2}(),_xall=_curry2(function(f,xf){return new XAll(f,xf)}),all_all=_curry2(_dispatchable(["all"],_xall,function(fn,list2){for(var idx=0;idx<list2.length;){if(!fn(list2[idx]))return!1;idx+=1}return!0}));const es_all=all_all;var allIdenticalTo=es_curry(function(val,list2){return es_all(es_identical(val),list2)});const es_allIdenticalTo=allIdenticalTo;var allEqualTo=es_curry(function(val,list2){return es_all(es_equals(val),list2)});const es_allEqualTo=allEqualTo;var makeFlat=function(recursive){return function flatt(list2){for(var value,jlen,j,result=[],idx=0;idx<list2.length;){if(es_isArrayLike(list2[idx]))for(value=recursive?flatt(list2[idx]):list2[idx],j=0,jlen=value.length;j<jlen;)result[result.length]=value[j],j+=1;else result[result.length]=list2[idx];idx+=1}return result}};const internal_makeFlat=makeFlat;function flattenDepth_toConsumableArray(arr){return flattenDepth_arrayWithoutHoles(arr)||flattenDepth_iterableToArray(arr)||flattenDepth_unsupportedIterableToArray(arr)||flattenDepth_nonIterableSpread()}function flattenDepth_nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function flattenDepth_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return flattenDepth_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return flattenDepth_arrayLikeToArray(o,minLen)}}function flattenDepth_iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function flattenDepth_arrayWithoutHoles(arr){if(Array.isArray(arr))return flattenDepth_arrayLikeToArray(arr)}function flattenDepth_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var flatten1=internal_makeFlat(!1),flattenDepth=es_curry(function(depth,list2){for(var currentDept=depth,flatList=flattenDepth_toConsumableArray(list2);currentDept>0;)flatList=flatten1(flatList),currentDept-=1;return flatList});const es_flattenDepth=flattenDepth;function Array_from_toConsumableArray(arr){return Array_from_arrayWithoutHoles(arr)||Array_from_iterableToArray(arr)||Array_from_unsupportedIterableToArray(arr)||Array_from_nonIterableSpread()}function Array_from_nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
74
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Array_from_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return Array_from_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Array_from_arrayLikeToArray(o,minLen)}}function Array_from_iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function Array_from_arrayWithoutHoles(arr){if(Array.isArray(arr))return Array_from_arrayLikeToArray(arr)}function Array_from_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var copyArray=function(items,mapFn,thisArg){var boundMapFn=es_isNotUndefined(thisArg)?es_bind(mapFn,thisArg):mapFn;return es_isNotUndefined(mapFn)?Array_from_toConsumableArray(items).map(boundMapFn):Array_from_toConsumableArray(items)},fromArray=function(items,mapFn,thisArg){if(items==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(es_isNotNil(mapFn)&&es_isNotFunction(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");return es_isIterable(items)?copyArray(items,mapFn,thisArg):[]},fromPonyfill=es_curryN(1,fromArray),toArray_fromArray=es_isFunction(Array.from)?es_curryN(1,Array.from):fromPonyfill,toArray=es_ifElse(es_isIterable,toArray_fromArray,es_values);const es_toArray=toArray;var allUnique=es_converge(es_lengthEq,[es_length,es_uniq]);const es_allUnique=allUnique;var notAllUnique=es_complement(es_allUnique);const es_notAllUnique=notAllUnique;function _toArray(arr){return sortByProps_arrayWithHoles(arr)||sortByProps_iterableToArray(arr)||sortByProps_unsupportedIterableToArray(arr)||sortByProps_nonIterableRest()}function sortByProps_nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sortByProps_unsupportedIterableToArray(o,minLen){if(!!o){if(typeof o=="string")return sortByProps_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sortByProps_arrayLikeToArray(o,minLen)}}function sortByProps_arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function sortByProps_iterableToArray(iter){if(typeof Symbol<"u"&&Symbol.iterator in Object(iter))return Array.from(iter)}function sortByProps_arrayWithHoles(arr){if(Array.isArray(arr))return arr}var sortByProps=es_curry(function(props2,list2){var firstTruthy=function(_ref){var _ref2=_toArray(_ref),head2=_ref2[0],tail2=_ref2.slice(1);return es_reduce(es_either,head2,tail2)},makeComparator=function(propName){return es_comparator(function(a,b){return es_lt(es_prop(propName,a),es_prop(propName,b))})};return es_sort(firstTruthy(es_map(makeComparator,props2)),list2)});const es_sortByProps=sortByProps;var nthArg=_curry1(function(n){var arity=n<0?1:n+1;return es_curryN(arity,function(){return es_nth(n,arguments)})});const es_nthArg=nthArg;var skipTake=es_curry(function(n,list2){return es_addIndex(es_filter)(pipe(es_nthArg(1),es_modulo(_,n),es_identical(0)))(list2)});const es_skipTake=skipTake;var range=_curry2(function(from2,to){if(!(_isNumber(from2)&&_isNumber(to)))throw new TypeError("Both arguments to range must be numbers");for(var result=[],n=from2;n<to;)result.push(n),n+=1;return result});const es_range=range;var floor=es_curryN(1,es_bind(Math.floor,Math));const es_floor=floor;var rangeStep=es_curryN(3,function(step,from2,to){var callback=step===0?es_always(from2):function(n){return from2+step*n},rangeEnd=step===0?to-from2:es_floor((to-from2)/step);return es_map(callback,es_range(0,rangeEnd))});const es_rangeStep=rangeStep;var init=es_slice(0,-1);const es_init=init;var invokeArgs=es_curryN(3,function(mpath,args,obj){var method=es_path(mpath,obj),context=es_path(es_init(mpath),obj);if(!es_isNotFunction(method)&&!es_isEmptyArray(mpath)){var boundMethod=es_bind(method,context);return es_apply(boundMethod,args)}});const es_invokeArgs=invokeArgs;var invoke=es_invokeArgs(_,[],_);const es_invoke=invoke;var paths_paths=es_curry(function(ps,obj){return es_ap([es_path(_,obj)],ps)});const ramda_adjunct_es_paths=paths_paths;var toPairs=_curry1(function(obj){var pairs=[];for(var prop2 in obj)_has(prop2,obj)&&(pairs[pairs.length]=[prop2,obj[prop2]]);return pairs});const es_toPairs=toPairs;var Identity=function(x){return{value:x,map:function(f){return Identity(f(x))}}},over=_curry3(function(lens2,f,x){return lens2(function(y){return Identity(f(y))})(x).value});const es_over=over;var lens=_curry2(function(getter,setter){return function(toFunctorFn){return function(target){return es_map(function(focus){return setter(focus,target)},toFunctorFn(getter(target)))}}});const es_lens=lens;var adjust=_curry3(function(idx,fn,list2){if(idx>=list2.length||idx<-list2.length)return list2;var start=idx<0?list2.length:0,_idx=start+idx,_list=_concat(list2);return _list[_idx]=fn(list2[_idx]),_list});const es_adjust=adjust;var update=_curry3(function(idx,x,list2){return es_adjust(idx,es_always(x),list2)});const es_update=update;var lensIndex=_curry1(function(n){return es_lens(es_nth(n),es_update(n))});const es_lensIndex=lensIndex;var fromPairs=_curry1(function(pairs){for(var result={},idx=0;idx<pairs.length;)result[pairs[idx][0]]=pairs[idx][1],idx+=1;return result});const es_fromPairs=fromPairs;var renameKeysWith=es_curry(function(fn,obj){return pipe(es_toPairs,es_map(es_over(es_lensIndex(0),fn)),es_fromPairs)(obj)});const es_renameKeysWith=renameKeysWith;var valueOrKey=function(keysMap){return function(key){return es_has(key,keysMap)?keysMap[key]:key}},renameKeys=es_curry(function(keysMap,obj){return es_renameKeysWith(valueOrKey(keysMap),obj)});const es_renameKeys=renameKeys;var renameKeyWith=es_curry(function(fn,key,obj){return es_renameKeysWith(es_when(es_equals(key),fn),obj)});const es_renameKeyWith=renameKeyWith;function _objectAssign(target){if(target==null)throw new TypeError("Cannot convert undefined or null to object");for(var output=Object(target),idx=1,length=arguments.length;idx<length;){var source=arguments[idx];if(source!=null)for(var nextKey in source)_has(nextKey,source)&&(output[nextKey]=source[nextKey]);idx+=1}return output}const internal_objectAssign=typeof Object.assign=="function"?Object.assign:_objectAssign;var merge=_curry2(function(l,r){return internal_objectAssign({},l,r)});const es_merge=merge;var mergeRight=es_flip(es_merge);const es_mergeRight=mergeRight;var props=_curry2(function(ps,obj){return ps.map(function(p){return es_path([p],obj)})});const es_props=props;var mergeAll=_curry1(function(list2){return internal_objectAssign.apply(null,[{}].concat(list2))});const es_mergeAll=mergeAll;var mergeProps=es_curryN(2,pipe(es_props,es_mergeAll));const es_mergeProps=mergeProps;var mergePaths=es_curryN(2,pipe(ramda_adjunct_es_paths,es_mergeAll));const es_mergePaths=mergePaths;var assoc=_curry3(function(prop2,val,obj){var result={};for(var p in obj)result[p]=obj[p];return result[prop2]=val,result});const es_assoc=assoc;var assocPath=_curry3(function assocPath2(path2,val,obj){if(path2.length===0)return val;var idx=path2[0];if(path2.length>1){var nextObj=!es_isNil(obj)&&_has(idx,obj)?obj[idx]:_isInteger(path2[1])?[]:{};val=assocPath2(Array.prototype.slice.call(path2,1),val,nextObj)}if(_isInteger(idx)&&_isArray(obj)){var arr=[].concat(obj);return arr[idx]=val,arr}else return es_assoc(idx,val,obj)});const es_assocPath=assocPath;var lensPath=_curry1(function(p){return es_lens(es_path(p),es_assocPath(p))});const es_lensPath=lensPath;var mergePath=es_curry(function(path2,source,obj){return es_over(es_lensPath(path2),es_mergeRight(source),obj)});const es_mergePath=mergePath;var mergeProp=es_curry(function(p,subj,obj){return es_mergePath(es_of(p),subj,obj)});const es_mergeProp=mergeProp;var useWith=_curry2(function(fn,transformers){return es_curryN(transformers.length,function(){for(var args=[],idx=0;idx<transformers.length;)args.push(transformers[idx].call(this,arguments[idx])),idx+=1;return fn.apply(this,args.concat(Array.prototype.slice.call(arguments,transformers.length)))})});const es_useWith=useWith;var pickBy=_curry2(function(test,obj){var result={};for(var prop2 in obj)test(obj[prop2],prop2,obj)&&(result[prop2]=obj[prop2]);return result}),omitBy=es_useWith(pickBy,[es_complement,es_identity]);const es_omitBy=omitBy;var nAry=_curry2(function(n,fn){switch(n){case 0:return function(){return fn.call(this)};case 1:return function(a0){return fn.call(this,a0)};case 2:return function(a0,a1){return fn.call(this,a0,a1)};case 3:return function(a0,a1,a2){return fn.call(this,a0,a1,a2)};case 4:return function(a0,a1,a2,a3){return fn.call(this,a0,a1,a2,a3)};case 5:return function(a0,a1,a2,a3,a4){return fn.call(this,a0,a1,a2,a3,a4)};case 6:return function(a0,a1,a2,a3,a4,a5){return fn.call(this,a0,a1,a2,a3,a4,a5)};case 7:return function(a0,a1,a2,a3,a4,a5,a6){return fn.call(this,a0,a1,a2,a3,a4,a5,a6)};case 8:return function(a0,a1,a2,a3,a4,a5,a6,a7){return fn.call(this,a0,a1,a2,a3,a4,a5,a6,a7)};case 9:return function(a0,a1,a2,a3,a4,a5,a6,a7,a8){return fn.call(this,a0,a1,a2,a3,a4,a5,a6,a7,a8)};case 10:return function(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9){return fn.call(this,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}});const es_nAry=nAry;var unary=_curry1(function(fn){return es_nAry(1,fn)});const es_unary=unary;var pathOrLazy=es_curryN(3,function(defaultFn,path2,obj){return es_when(es_identical(defaultFn),es_partial(es_unary(defaultFn),[obj]),es_pathOr(defaultFn,path2,obj))});const es_pathOrLazy=pathOrLazy;var Const=function(x){return{value:x,"fantasy-land/map":function(){return this}}},view=_curry2(function(lens2,x){return lens2(Const)(x).value});const es_view=view;var viewOr=es_curryN(3,function(defaultValue,lens2,data){return es_defaultTo(defaultValue,es_view(lens2,data))});const es_viewOr=viewOr;var hasPath_hasPath=es_curryN(2,function(objPath,obj){var prop2=es_head(objPath);return es_length(objPath)===0||!es_isObj(obj)?!1:es_length(objPath)===1?es_has(prop2,obj):hasPath_hasPath(es_tail(objPath),es_path([prop2],obj))});const ramda_adjunct_es_hasPath=hasPath_hasPath;var dissoc=_curry2(function(prop2,obj){var result={};for(var p in obj)result[p]=obj[p];return delete result[prop2],result});const es_dissoc=dissoc;var dissocPath=_curry2(function dissocPath2(path2,obj){switch(path2.length){case 0:return obj;case 1:return _isInteger(path2[0])&&_isArray(obj)?es_remove(path2[0],1,obj):es_dissoc(path2[0],obj);default:var head2=path2[0],tail2=Array.prototype.slice.call(path2,1);return obj[head2]==null?obj:_isInteger(head2)&&_isArray(obj)?es_update(head2,dissocPath2(tail2,obj[head2]),obj):es_assoc(head2,dissocPath2(tail2,obj[head2]),obj)}}),spreadPath=es_curryN(2,es_converge(es_merge,[dissocPath,es_pathOr({})]));const es_spreadPath=spreadPath;var spreadProp=es_curry(function(prop2,obj){return es_spreadPath(es_of(prop2),obj)});const es_spreadProp=spreadProp;var flattenPath=es_curry(function(path2,obj){return es_merge(obj,es_pathOr({},path2,obj))});const es_flattenPath=flattenPath;var flattenProp=es_curry(function(prop2,obj){return es_flattenPath(es_of(prop2),obj)});const es_flattenProp=flattenProp;var transpose=_curry1(function(outerlist){for(var i=0,result=[];i<outerlist.length;){for(var innerlist=outerlist[i],j=0;j<innerlist.length;)typeof result[j]>"u"&&(result[j]=[]),result[j].push(innerlist[j]),j+=1;i+=1}return result});const es_transpose=transpose;var unzipObjWith=es_curryN(2,function(fn,obj){return pipe(es_toPairs,es_map(pipe(es_flip,es_apply)(fn)),es_transpose,es_when(es_lengthEq(0),function(){return[[],[]]}))(obj)});const es_unzipObjWith=unzipObjWith;var zip=_curry2(function(a,b){for(var rv=[],idx=0,len=Math.min(a.length,b.length);idx<len;)rv[idx]=[a[idx],b[idx]],idx+=1;return rv});const es_zip=zip;var zipObjWith=es_curryN(3,function(fn,keys2,values2){return pipe(es_zip,es_map(es_apply(fn)),es_fromPairs)(values2,keys2)});const es_zipObjWith=zipObjWith;var isPrototypeOf_isPrototypeOf=es_curry(function(type2,object){return Boolean(es_invokeArgs(["prototype","isPrototypeOf"],[object],type2))});const es_isPrototypeOf=isPrototypeOf_isPrototypeOf;var lensEq=es_curryN(3,function(lens2,val,data){return pipe(es_view(lens2),es_equals(val))(data)});const es_lensEq=lensEq;var lensNotEq=es_complement(es_lensEq);const es_lensNotEq=lensNotEq;var lensSatisfies=es_curryN(3,function(predicate,lens2,data){return pipe(es_view(lens2),predicate,es_isTrue)(data)});const es_lensSatisfies=lensSatisfies;var lensNotSatisfy=es_complement(es_lensSatisfies);const es_lensNotSatisfy=lensNotSatisfy;var prepend=_curry2(function(el,list2){return _concat([el],list2)});const es_prepend=prepend;var sequence=_curry2(function(of2,traversable){return typeof traversable.sequence=="function"?traversable.sequence(of2):es_reduceRight(function(x,acc){return es_ap(es_map(es_prepend,x),acc)},of2([]),traversable)});const es_sequence=sequence;var traverse=_curry3(function(of2,f,traversable){return typeof traversable["fantasy-land/traverse"]=="function"?traversable["fantasy-land/traverse"](f,of2):es_sequence(of2,es_map(f,traversable))});const es_traverse=traverse;var util_type=es_either(es_path(["@@type"]),es_path(["constructor","@@type"])),typeEquals=es_curry(function(typeIdent,monad){return util_type(monad)===typeIdent}),isSameType=es_curryN(2,es_useWith(es_equals,[util_type,util_type])),isNotSameType=es_complement(isSameType);function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var functorTrait=_defineProperty({},fantasy_land_mapping.map,function(fn){return this.constructor[fantasy_land_mapping.of](fn(this.value))}),applyTrait=_defineProperty({},fantasy_land_mapping.ap,function(applyWithFn){var _this=this;return applyWithFn.map(function(fn){return fn(_this.value)})}),setoidTrait=_defineProperty({},fantasy_land_mapping.equals,function(setoid){return isSameType(this,setoid)&&es_equals(this.value,setoid.value)}),semigroupTrait=_defineProperty({},fantasy_land_mapping.concat,function(semigroup){var concatenatedValue=this.value;return es_isString(this.value)||es_isNumber(this.value)?concatenatedValue=this.value+semigroup.value:es_pathSatisfies(es_isFunction,["value",fantasy_land_mapping.concat],this)?concatenatedValue=this.value[fantasy_land_mapping.concat](semigroup.value):es_pathSatisfies(es_isFunction,["value","concat"],this)&&(concatenatedValue=this.value.concat(semigroup.value)),this.constructor[fantasy_land_mapping.of](concatenatedValue)}),chainTrait=_defineProperty({},fantasy_land_mapping.chain,function(fn){var newChain=fn(this.value);return isSameType(this,newChain)?newChain:this}),ordTrait=_defineProperty({},fantasy_land_mapping.lte,function(ord){return isSameType(this,ord)&&(this.value<ord.value||this[fantasy_land_mapping.equals](ord))});function Identity_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props2){for(var i=0;i<props2.length;i++){var descriptor=props2[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var Identity_of=fantasy_land_mapping.of,_ap=fantasy_land_mapping.ap,Identity_map=fantasy_land_mapping.map,Identity_equals=fantasy_land_mapping.equals,Identity_concat=fantasy_land_mapping.concat,_chain=fantasy_land_mapping.chain,_lte=fantasy_land_mapping.lte,_empty=fantasy_land_mapping.empty,_contramap=fantasy_land_mapping.contramap,Identity_Identity=function(){_createClass(Identity2,null,[{key:Identity_of,value:function(_value){return new Identity2(_value)}},{key:"of",value:function(value){return new Identity2(value)}},{key:"@@type",get:function(){return"RA/Identity"}}]);function Identity2(value){Identity_classCallCheck(this,Identity2),this.value=value}return _createClass(Identity2,[{key:"get",value:function(){return this.value}},{key:_ap,value:function(applyWithFn){return applyTrait[_ap].call(this,applyWithFn)}},{key:"ap",value:function(applyWithFn){return this[_ap](applyWithFn)}},{key:Identity_map,value:function(fn){return functorTrait[Identity_map].call(this,fn)}},{key:"map",value:function(fn){return this[Identity_map](fn)}},{key:Identity_equals,value:function(setoid){return setoidTrait[Identity_equals].call(this,setoid)}},{key:"equals",value:function(setoid){return this[Identity_equals](setoid)}},{key:Identity_concat,value:function(semigroup){return semigroupTrait[Identity_concat].call(this,semigroup)}},{key:"concat",value:function(semigroup){return this[Identity_concat](semigroup)}},{key:_chain,value:function(fn){return chainTrait[_chain].call(this,fn)}},{key:"chain",value:function(fn){return this[_chain](fn)}},{key:_lte,value:function(ord){return ordTrait[_lte].call(this,ord)}},{key:"lte",value:function(ord){return this[_lte](ord)}},{key:_empty,value:function(){return this.constructor.of(es_empty(this.value))}},{key:"empty",value:function(){return this[_empty]()}},{key:_contramap,value:function(fn){var _this=this;return this.constructor.of(function(value2){return _this.value(fn(value2))})}},{key:"contramap",value:function(fn){return this[_contramap](fn)}}]),Identity2}();const fantasy_land_Identity=Identity_Identity;var lensTraverse=es_curryN(1,function(of2){return es_curry(function(toFunctorFn,target){return fantasy_land_Identity.of(es_traverse(of2,pipe(toFunctorFn,es_prop("value")),target))})});const es_lensTraverse=lensTraverse;var isomorphic=function(to,from2){var isomorphism=function(x){return to(x)};return isomorphism.from=from2,isomorphism},isomorphisms=function(to,from2){return isomorphic(es_curry(function(toFunctorFn,target){return es_map(from2,toFunctorFn(to(target)))}),es_curry(function(toFunctorFn,target){return es_map(to,toFunctorFn(from2(target)))}))},from=es_curry(function(isomorphism,x){return isomorphism.from(x)}),lensIso=es_curry(isomorphisms);lensIso.from=from;const es_lensIso=lensIso;var propEq=_curry3(function(name,val,obj){return es_equals(val,obj[name])}),propNotEq=es_complement(propEq);const es_propNotEq=propNotEq;var pathEq=_curry3(function(_path,val,obj){return es_equals(es_path(_path,obj),val)}),pathNotEq=es_complement(pathEq);const es_pathNotEq=pathNotEq;var inRangeImp=es_ifElse(es_gte,function(){throw new Error("low must not be greater than high in inRange(low, high, value)")},es_useWith(es_both,[es_lte,es_gt]));const inRange=es_curry(function(low,high,value){return inRangeImp(low,high)(value)});var notEqual=es_complement(es_equals);const es_notEqual=notEqual;var intersection=_curry2(function(list1,list2){var lookupList,filteredList;return list1.length>list2.length?(lookupList=list1,filteredList=list2):(lookupList=list2,filteredList=list1),es_uniq(_filter(es_flip(_includes)(lookupList),filteredList))});const es_intersection=intersection;var overlaps=es_curryN(2,function(list1,list2){return es_isEmpty(list1)?!0:pipe(es_intersection,es_isNotEmpty)(list1,list2)});const es_overlaps=overlaps;var notBoth=es_curry(compose(es_complement,es_both));const es_notBoth=notBoth;var nand=es_complement(es_and);const es_nand=nand;var neither=es_curry(compose(es_complement,es_either));const es_neither=neither;var nor=es_complement(es_or);const es_nor=nor;var notAllPass=es_curry(compose(es_complement,es_allPass));const es_notAllPass=notAllPass;var nonePass=es_curryN(1,compose(es_complement,es_anyPass));const es_nonePass=nonePass;var argsPass=es_curry(function(combiningPredicate,predicates){return es_useWith(compose(combiningPredicate(es_isTruthy),es_list),predicates)});const es_argsPass=argsPass;var dropArgs=es_nAry(0);const es_dropArgs=dropArgs;var round=es_curryN(1,es_bind(Math.round,Math));const es_round=round;var ceil=es_curryN(1,es_bind(Math.ceil,Math));const es_ceil=ceil;var divide=_curry2(function(a,b){return a/b}),divideNum=es_flip(divide);const es_divideNum=divideNum;var truncPonyfill=function(v){var numV=Number(v);return es_isFinite(numV)?numV-numV%1||(numV<0?-0:numV===0?numV:0):numV},trunc_truncPonyfill=es_curryN(1,truncPonyfill),trunc=es_isFunction(Math.trunc)?es_curryN(1,es_bind(Math.trunc,Math)):trunc_truncPonyfill;const es_trunc=trunc;var signPonyfill=function(number){return(number>0)-(number<0)||+number},sign_signPonyfill=es_curryN(1,signPonyfill),sign=es_isFunction(Math.sign)?es_curryN(1,es_bind(Math.sign,Math)):sign_signPonyfill;const es_sign=sign;var subtract=_curry2(function(a,b){return Number(a)-Number(b)}),subtractNum=es_flip(subtract);const es_subtractNum=subtractNum;var toInteger32=es_curryN(1,function(val){return val>>0});const es_toInteger32=toInteger32;var toUinteger32=es_curryN(1,function(val){return val>>>0});const es_toUinteger32=toUinteger32;var replace=_curry3(function(regex,replacement,str){return str.replace(regex,replacement)});const es_replace=replace;var escapeRegExp=es_when(es_isString,es_replace(/[.*+?^${}()|[\]\\-]/g,"\\$&"));const es_escapeRegExp=escapeRegExp;var checkArguments=function(searchValue,replaceValue,str){if(str==null||searchValue==null||replaceValue==null)throw TypeError("Input values must not be `null` or `undefined`")},checkValue=function(value,valueName){if(typeof value!="string"&&!(value instanceof String))throw TypeError("`".concat(valueName,"` must be a string"))},checkSearchValue=function(searchValue){if(typeof searchValue!="string"&&!(searchValue instanceof String)&&!(searchValue instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},replaceAll=function(searchValue,replaceValue,str){checkArguments(searchValue,replaceValue,str),checkValue(str,"str"),checkValue(replaceValue,"replaceValue"),checkSearchValue(searchValue);var regexp=new RegExp(es_isRegExp(searchValue)?searchValue:es_escapeRegExp(searchValue),"g");return es_replace(regexp,replaceValue,str)},replaceAllPonyfill=es_curryN(3,replaceAll),replaceAllInvoker=es_invoker(2,"replaceAll"),replaceAll_replaceAll=es_isFunction(String.prototype.replaceAll)?replaceAllInvoker:replaceAllPonyfill;const es_replaceAll=replaceAll_replaceAll;var trimStart=es_replace(/^[\s\uFEFF\xA0]+/,""),trimStartPonyfill=trimStart,trimStartInvoker=es_invoker(0,"trimStart"),trimStart_trimStart=es_isFunction(String.prototype.trimStart)?trimStartInvoker:trimStartPonyfill;const es_trimStart=trimStart_trimStart;var String_trimEnd_trimStart=es_replace(/[\s\uFEFF\xA0]+$/,""),trimEndPonyfill=String_trimEnd_trimStart,trimEndInvoker=es_invoker(0,"trimEnd"),trimEnd=es_isFunction(String.prototype.trimEnd)?trimEndInvoker:trimEndPonyfill;const es_trimEnd=trimEnd;var split=es_invoker(1,"split");const es_split=split;function dropLastWhile(pred,xs){for(var idx=xs.length-1;idx>=0&&pred(xs[idx]);)idx-=1;return es_slice(0,idx+1,xs)}var XDropLastWhile=function(){function XDropLastWhile2(fn,xf){this.f=fn,this.retained=[],this.xf=xf}return XDropLastWhile2.prototype["@@transducer/init"]=_xfBase.init,XDropLastWhile2.prototype["@@transducer/result"]=function(result){return this.retained=null,this.xf["@@transducer/result"](result)},XDropLastWhile2.prototype["@@transducer/step"]=function(result,input){return this.f(input)?this.retain(result,input):this.flush(result,input)},XDropLastWhile2.prototype.flush=function(result,input){return result=_reduce(this.xf["@@transducer/step"],result,this.retained),this.retained=[],this.xf["@@transducer/step"](result,input)},XDropLastWhile2.prototype.retain=function(result,input){return this.retained.push(input),result},XDropLastWhile2}(),_xdropLastWhile=_curry2(function(fn,xf){return new XDropLastWhile(fn,xf)}),dropLastWhile_dropLastWhile=_curry2(_dispatchable([],_xdropLastWhile,dropLastWhile));const es_dropLastWhile=dropLastWhile_dropLastWhile;var join=es_invoker(1,"join");const es_join=join;var trimCharsEnd=es_curry(function(chars,value){return pipe(es_split(""),es_dropLastWhile(es_contained(chars)),es_join(""))(value)});const es_trimCharsEnd=trimCharsEnd;var XDropWhile=function(){function XDropWhile2(f,xf){this.xf=xf,this.f=f}return XDropWhile2.prototype["@@transducer/init"]=_xfBase.init,XDropWhile2.prototype["@@transducer/result"]=_xfBase.result,XDropWhile2.prototype["@@transducer/step"]=function(result,input){if(this.f){if(this.f(input))return result;this.f=null}return this.xf["@@transducer/step"](result,input)},XDropWhile2}(),_xdropWhile=_curry2(function(f,xf){return new XDropWhile(f,xf)}),dropWhile=_curry2(_dispatchable(["dropWhile"],_xdropWhile,function(pred,xs){for(var idx=0,len=xs.length;idx<len&&pred(xs[idx]);)idx+=1;return es_slice(idx,1/0,xs)}));const es_dropWhile=dropWhile;var trimCharsStart=es_curry(function(chars,value){return pipe(es_split(""),es_dropWhile(es_contained(chars)),es_join(""))(value)});const es_trimCharsStart=trimCharsStart;var padStartPonyfill=function(padString,targetLength,value){var finalLength=targetLength>>0,finalPadString=String(es_isNotUndefined(padString)?padString:" ");if(value.length>=finalLength)return String(value);if(finalLength-=value.length,finalLength>finalPadString.length){var lenghtToPad=finalLength/finalPadString.length;finalPadString+=es_isFunction(String.prototype.repeat)?finalPadString.repeat(lenghtToPad):String_repeat(finalPadString,lenghtToPad)}return finalPadString.slice(0,finalLength)+String(value)};const String_padStart=padStartPonyfill;var padStartInvoker=es_flip(es_invoker(2,"padStart")),padCharsStart_padStartPonyfill=es_curry(String_padStart),padCharsStart=es_isFunction(String.prototype.padStart)?padStartInvoker:padCharsStart_padStartPonyfill;const es_padCharsStart=padCharsStart;var padEndPonyfill=function(padString,targetLength,value){var finalLength=targetLength>>0,finalPadString=String(es_isNotUndefined(padString)?padString:" ");if(value.length>finalLength)return String(value);if(finalLength-=value.length,finalLength>finalPadString.length){var remainingLength=finalLength/finalPadString.length;finalPadString+=es_isFunction(String.prototype.repeat)?finalPadString.repeat(remainingLength):String_repeat(finalPadString,remainingLength)}return String(value)+finalPadString.slice(0,finalLength)},padCharsEnd_padEndPonyfill=es_curry(padEndPonyfill),padEndInvoker=es_flip(es_invoker(2,"padEnd")),padCharsEnd=es_isFunction(String.prototype.padEnd)?padEndInvoker:padCharsEnd_padEndPonyfill;const es_padCharsEnd=padCharsEnd;var padEnd=es_padCharsEnd(" ");const es_padEnd=padEnd;var padStart=es_padCharsStart(" ");const es_padStart=padStart}}]);