@procore/core-react
Version:
JSX implementations for core-css
23 lines • 133 kB
JavaScript
!function(n,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],e);else{var t="object"==typeof exports?e(require("react"),require("react-dom")):e(n.react,n["react-dom"]);for(var r in t)("object"==typeof exports?exports:n)[r]=t[r]}}(window,function(n,e){return function(n){var e={};function t(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(r,i,function(e){return n[e]}.bind(null,i));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=50)}([function(e,t){e.exports=n},function(n,e,t){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var t={}.hasOwnProperty;function i(){for(var n=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)n.push(this&&this[r]||r);else if(Array.isArray(r))n.push(i.apply(this,r));else if("object"===o)for(var u in r)t.call(r,u)&&r[u]&&n.push(this&&this[u]||u)}}return n.join(" ")}n.exports?(i.default=i,n.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(n.exports=r)}()},function(n,e,t){"use strict";n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var t=function(n,e){var t=n[1]||"",r=n[3];if(!r)return t;if(e&&"function"==typeof btoa){var i=(u=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(u))))+" */"),o=r.sources.map(function(n){return"/*# sourceURL="+r.sourceRoot+n+" */"});return[t].concat(o).concat([i]).join("\n")}var u;return[t].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},e.i=function(n,t){"string"==typeof n&&(n=[[null,n,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(i=0;i<n.length;i++){var u=n[i];null!=u[0]&&r[u[0]]||(t&&!u[2]?u[2]=t:t&&(u[2]="("+u[2]+") and ("+t+")"),e.push(u))}},e}},function(n,e,t){var r,i,o={},u=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),c=function(n){var e={};return function(n,t){if("function"==typeof n)return n();if(void 0===e[n]){var r=function(n,e){return e?e.querySelector(n):document.querySelector(n)}.call(this,n,t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}}(),a=null,l=0,f=[],s=t(6);function p(n,e){for(var t=0;t<n.length;t++){var r=n[t],i=o[r.id];if(i){i.refs++;for(var u=0;u<i.parts.length;u++)i.parts[u](r.parts[u]);for(;u<r.parts.length;u++)i.parts.push(y(r.parts[u],e))}else{var c=[];for(u=0;u<r.parts.length;u++)c.push(y(r.parts[u],e));o[r.id]={id:r.id,refs:1,parts:c}}}}function d(n,e){for(var t=[],r={},i=0;i<n.length;i++){var o=n[i],u=e.base?o[0]+e.base:o[0],c={css:o[1],media:o[2],sourceMap:o[3]};r[u]?r[u].parts.push(c):t.push(r[u]={id:u,parts:[c]})}return t}function _(n,e){var t=c(n.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===n.insertAt)r?r.nextSibling?t.insertBefore(e,r.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),f.push(e);else if("bottom"===n.insertAt)t.appendChild(e);else{if("object"!=typeof n.insertAt||!n.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=c(n.insertAt.before,t);t.insertBefore(e,i)}}function h(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var e=f.indexOf(n);e>=0&&f.splice(e,1)}function g(n){var e=document.createElement("style");if(void 0===n.attrs.type&&(n.attrs.type="text/css"),void 0===n.attrs.nonce){var r=function(){0;return t.nc}();r&&(n.attrs.nonce=r)}return v(e,n.attrs),_(n,e),e}function v(n,e){Object.keys(e).forEach(function(t){n.setAttribute(t,e[t])})}function y(n,e){var t,r,i,o;if(e.transform&&n.css){if(!(o="function"==typeof e.transform?e.transform(n.css):e.transform.default(n.css)))return function(){};n.css=o}if(e.singleton){var u=l++;t=a||(a=g(e)),r=b.bind(null,t,u,!1),i=b.bind(null,t,u,!0)}else n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=function(n){var e=document.createElement("link");return void 0===n.attrs.type&&(n.attrs.type="text/css"),n.attrs.rel="stylesheet",v(e,n.attrs),_(n,e),e}(e),r=function(n,e,t){var r=t.css,i=t.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=s(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var u=new Blob([r],{type:"text/css"}),c=n.href;n.href=URL.createObjectURL(u),c&&URL.revokeObjectURL(c)}.bind(null,t,e),i=function(){h(t),t.href&&URL.revokeObjectURL(t.href)}):(t=g(e),r=function(n,e){var t=e.css,r=e.media;r&&n.setAttribute("media",r);if(n.styleSheet)n.styleSheet.cssText=t;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(t))}}.bind(null,t),i=function(){h(t)});return r(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap)return;r(n=e)}else i()}}n.exports=function(n,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=u()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var t=d(n,e);return p(t,e),function(n){for(var r=[],i=0;i<t.length;i++){var u=t[i];(c=o[u.id]).refs--,r.push(c)}n&&p(d(n,e),e);for(i=0;i<r.length;i++){var c;if(0===(c=r[i]).refs){for(var a=0;a<c.parts.length;a++)c.parts[a]();delete o[c.id]}}}};var m,x=(m=[],function(n,e){return m[n]=e,m.filter(Boolean).join("\n")});function b(n,e,t,r){var i=t?"":r.css;if(n.styleSheet)n.styleSheet.cssText=x(e,i);else{var o=document.createTextNode(i),u=n.childNodes;u[e]&&n.removeChild(u[e]),u.length?n.insertBefore(o,u[e]):n.appendChild(o)}}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(n){n.auto="auto",n.block="block",n.inherit="",n.lg="lg",n.md="md",n.none="none",n.sm="sm",n.xl="xl",n.xs="xs",n.xxl="xxl"}(e.SizeNS||(e.SizeNS={})),function(n){n.bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.center="center",n.left="left",n.leftBottom="left-bottom",n.leftTop="left-top",n.right="right",n.rightBottom="right-bottom",n.rightTop="right-top",n.top="top",n.topLeft="top-left",n.topRight="top-right"}(e.PlacementNS||(e.PlacementNS={}))},,function(n,e){n.exports=function(n){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!n||"string"!=typeof n)return n;var t=e.protocol+"//"+e.host,r=t+e.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,e){var i,o=e.trim().replace(/^"(.*)"$/,function(n,e){return e}).replace(/^'(.*)'$/,function(n,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?n:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?t+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(0);e.useEventListener=function(n){var t=n.dependencies,i=void 0===t?[]:t,o=n.event,u=n.handler,c=n.options,a=void 0===c?{}:c,l=n.scope,f=void 0===l?window:l;o?u||console.warn('"handler" option missing, no listeners added'):console.warn('"event" option missing, no listeners added');var s=f===window?{current:window}:f,p=e.useEventCallback({handler:u,dependencies:i});r.useEffect(function(){var n=s.current;if(n)return n.addEventListener(o,p,a),function(){return n.removeEventListener(o,p,a)}},[o,p,s.current])},e.useEventCallback=function(n){var e=n.handler,t=n.dependencies,i=void 0===t?[]:t,o=r.useRef(e);return r.useLayoutEffect(function(){o.current=e},[e].concat(i)),r.useCallback(function(n){return o.current(n)},[])}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_RECT={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};e.getCrossbrowserBoundingRect=function(n){return function(n){return void 0!==n.x}(n)?n:{x:n.left,y:n.top,width:n.width,height:n.height,top:n.top,right:n.right,bottom:n.bottom,left:n.left}},e.getBoundingRect=function(n){var t=n&&n.getBoundingClientRect?n.getBoundingClientRect():e.DEFAULT_RECT;return e.getCrossbrowserBoundingRect(t)}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(n,e){var t=e;return Object.keys(n).forEach(function(e){t[e]=n[e]}),t}},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(0),i=t(14);e.isPromise=function(n){return"object"==typeof n&&"function"==typeof n.then},e.wrapPromise=function(n){return e.isPromise(n)?n:"boolean"==typeof n?Promise.resolve(n):Promise.resolve(!0)},e.useDelayedCallback=function(n){var t=n.after,o=void 0===t?function(){return!0}:t,u=n.before,c=void 0===u?function(){return!0}:u,a=n.delay,l=void 0===a?0:a,f=n.timer,s=(void 0===f?i.useTimer({}):f).setTimer;return r.useCallback(function(n){return e.wrapPromise(c(n)).then(function(n){return n&&s(o,l)})},[l,o])}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)},i=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&(t[r[i]]=n[r[i]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o,u=t(0),c=t(4),a=t(20),l=t(17),f=t(13),s=t(33),p=t(10),d=t(14),_=t(18),h=t(8);!function(n){n.click="click",n.hover="hover",n.none="none",n.contextmenu="contextmenu"}(o=e.OverlayTriggerVariantNS||(e.OverlayTriggerVariantNS={})),e.useOverlayTrigger=function(n){var e=n.autoFocus,t=void 0!==e&&e,i=n.canFlip,u=void 0===i||i,h=n.hideDelay,g=void 0===h?0:h,v=n.showDelay,y=void 0===v?0:v,m=n.initialIsVisible,x=void 0!==m&&m,b=n.onVisibleChange,w=void 0===b?function(){return!0}:b,O=n.padding,S=void 0===O?3:O,j=n.placement,E=void 0===j?c.PlacementNS.top:j,P=n.trigger,C=void 0===P?o.click:P,N=n.keepOpenOnOverlayHover,T=void 0===N?C===o.hover:N,A=_.useVisibility({initialIsVisible:x}),k=s.useAnchor({canFlip:u,padding:S,dependencies:[A.isVisible],placement:E}),R=k.target.ref,I=k.overlay.ref,L=d.useTimer({}),M=p.useDelayedCallback({after:A.show,before:function(n){return w(!0,n)},delay:y,timer:L}),D=function(n){var e=n.target,t=R.current,r=I.current;("keydown"===n.type||t&&t.contains(e)||r&&r.contains(e))&&(R.current&&R.current.focus(),n.stopPropagation())},B=p.useDelayedCallback({after:A.hide,before:function(n){var e=w(!1,n);return!1!==e&&D(n),e},delay:g,timer:L});return a.triggerListeners({trigger:C,on:M,off:B,scope:R,value:A.isVisible}),T&&a.triggerListeners({trigger:C,on:M,off:B,scope:I,value:A.isVisible}),f.useHotkey({key:["ArrowDown","Down"],handler:M,scope:R}),f.useHotkey({key:["Escape","Esc"],handler:B,scope:R}),f.useHotkey({key:["Escape","Esc"],handler:B,scope:I}),f.useHotkey({key:["Tab"],handler:function(n){A.hide(),D(n),n.preventDefault()},scope:I}),l.useAutofocus({ref:I,enabled:t}),{portal:k.portal,overlay:r({},A,k.overlay,{hide:B,show:M,position:k.position}),target:k.target}},e.withOverlayTrigger=function(n){return function(t){return function(i){return u.createElement(t,r({},i,{overlayTrigger:e.useOverlayTrigger(r({},n,i.overlayTrigger))}))}}};var g=function(n){return function(){return console.warn("Could not call `"+n+"`, please wrap your component in an `<OverlayTriggerProvider>`")}},v={portal:u.createRef(),overlay:{hide:g("hide"),show:g("show")},target:{ref:u.createRef(),rect:h.DEFAULT_RECT}};e.OverlayTriggerContext=u.createContext(v),e.OverlayTriggerProvider=function(n){var t=n.children,r=i(n,["children"]);return u.createElement(e.OverlayTriggerContext.Provider,{value:e.useOverlayTrigger(r)},t)},e.consumeOverlayTrigger=function(){return u.useContext(e.OverlayTriggerContext)}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)},i=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&(t[r[i]]=n[r[i]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o,u,c=t(0),a=t(1),l=t(26),f=t(22),s=t(15),p=t(4);!function(n){n.b="b",n.l="l",n.r="r",n.t="t"}(o=e.SideShorthandNS||(e.SideShorthandNS={})),function(n){n.block="block",n.inline="inline",n.inlineBlock="inline-block",n.flexColumn="flex-column",n.flexRow="flex-row",n.flexInlineColumn="flex-inline-column",n.flexInlineRow="flex-inline-row"}(e.BoxDisplayNS||(e.BoxDisplayNS={})),function(n){n.margin="margin",n.padding="padding"}(u=e.BoxSpaceAttributeNS||(e.BoxSpaceAttributeNS={})),function(n){n.flex="flex",n.flexBasis="flexBasis",n.flexGrow="flexGrow",n.flexShrink="flexShrink",n.order="order"}(e.InlineFlexStyleKeysNS||(e.InlineFlexStyleKeysNS={})),function(n){n.none="",n.baseline="baseline",n.center="center",n.end="flex-end",n.normal="normal",n.start="flex-start",n.stretch="stretch"}(e.FlexAlignNS||(e.FlexAlignNS={})),function(n){n.column="column",n.columnReverse="column-reverse",n.row="row",n.rowReverse="row-reverse"}(e.FlexDirectionNS||(e.FlexDirectionNS={})),function(n){n.none="",n.center="center",n.end="flex-end",n.spaceAround="space-around",n.spaceBetween="space-between",n.spaceEvenly="space-evenly",n.start="flex-start",n.stretch="stretch"}(e.FlexJustifyNS||(e.FlexJustifyNS={})),function(n){n.nowrap="nowrap",n.wrapReverse="wrap-reverse",n.wrap="wrap"}(e.FlexWrapNS||(e.FlexWrapNS={})),function(n){n.center="center",n.left="left",n.right="right"}(e.TextAlignNS||(e.TextAlignNS={}));var d=a.bind(r({},f,s)),_=l.pickBy(function(n){return void 0!==n}),h=function(n,e,t){return t&&t!==p.SizeNS.none?"core-"+n+"-"+e+"-"+t:""},g=function(n){return function(e){return[h(n,o.t,e[0]),h(n,o.r,e[1]),h(n,o.b,e[2]),h(n,o.l,e[3])]}},v=function(n,e,t,r){return function(i){return n&&(i[0]=n),e&&(i[1]=e),t&&(i[2]=t),r&&(i[3]=r),i}},y=function(n){void 0===n&&(n="");var e=n.split(" "),t=[];return 1===e.length?t=[e[0],e[0],e[0],e[0]]:2===e.length?t=[e[0],e[1],e[0],e[1]]:3===e.length?t=[e[0],e[1],e[2],e[1]]:4===e.length&&(t=e),t},m=c.forwardRef(function(n,e){var t=n.alignContent,o=n.alignItems,a=n.alignSelf,l=n.className,f=n.display,s=n.flex,p=n.flexBasis,h=n.flexGrow,m=n.flexShrink,x=n.flexWrap,b=n.justifyContent,w=n.style,O=n.order,S=n.margin,j=void 0===S?"none":S,E=n.marginTop,P=n.marginRight,C=n.marginBottom,N=n.marginLeft,T=n.padding,A=void 0===T?"none":T,k=n.paddingTop,R=n.paddingRight,I=n.paddingBottom,L=n.paddingLeft,M=n.textAlign,D=n.children,B=i(n,["alignContent","alignItems","alignSelf","className","display","flex","flexBasis","flexGrow","flexShrink","flexWrap","justifyContent","style","order","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","textAlign","children"]),F=j||P||N||E||C?g(u.margin)(v(E,P,C,N)(y(j))):[],V=A||R||L||k||I?g(u.padding)(v(k,R,I,L)(y(A))):[];return c.createElement("div",r({ref:e,className:d.apply(void 0,F.concat(V,[t&&"core-flex-align-content-"+t,o&&"core-flex-align-items-"+o,a&&"core-flex-align-self-"+a,f&&"core-"+f,x&&"core-flex-wrap-"+x,b&&"core-flex-justify-content-"+b,M&&"core-text-"+M,l])),style:r({},w,_({flex:s,flexBasis:p,flexGrow:h,flexShrink:m,order:O}))},B),D)});m.displayName="Box",e.default=m},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(7),i=function(n){var e=n.key,t=n.handler,r=n.preventDefault,i=n.stopPropagation;return function(n){(Array.isArray(e)?e:[e]).includes(n.key)&&(t(n),r&&n.preventDefault(),i&&n.stopPropagation())}};e.useHotkey=function(n){var e=n.dependencies,t=void 0===e?[]:e,o=n.key,u=n.handler,c=void 0===u?function(){}:u,a=n.scope,l=void 0===a?window:a,f=n.preventDefault,s=void 0!==f&&f,p=n.stopPropagation,d=void 0!==p&&p;r.useEventListener({dependencies:t,event:"keydown",handler:i({key:o,handler:c,preventDefault:s,stopPropagation:d}),scope:l})}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=t(0);e.useTimer=function(n){var e=i.useRef(null);return{setTimer:function(n,t){e.current&&clearTimeout(e.current),e.current=window.setTimeout(n,t)},timerId:e.current}},e.withTimer=function(n){return function(t){return function(o){return i.createElement(t,r({},o,{timer:e.useTimer(r({},n,o.timer))}))}}},e.Timer=function(n){var t=n.children,r=e.useTimer({});return"function"==typeof t?t(r):t};var o;e.TimerContext=i.createContext({timerId:null,setTimer:(o="setTimer",function(){return console.warn("Could not call `"+o+"`, please wrap your component in a `<TimerProvider>`")})}),e.TimerProvider=function(n){var t=n.children;return i.createElement(e.TimerContext.Provider,{value:e.useTimer({})},t)},e.consumeTimer=function(){return i.useContext(e.TimerContext)}},function(n,e,t){var r=t(35);"string"==typeof r&&(r=[[n.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,i);r.locals&&(n.exports=r.locals)},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)},i=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&(t[r[i]]=n[r[i]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o,u=t(0),c=t(1),a=t(23),l=t(24),f=t(4);!function(n){n.none="",n.hoverCircle="hover-circle",n.hoverFill="hover-fill"}(o=e.IconVariantNS||(e.IconVariantNS={}));var s=c.bind(l),p=u.forwardRef(function(n,e){var t,c=n.className,l=n.clickable,p=void 0!==l&&l,d=n.icon,_=n.size,h=void 0===_?f.SizeNS.inherit:_,g=n.variant,v=void 0===g?o.none:g,y=i(n,["className","clickable","icon","size","variant"]);return u.createElement("span",r({ref:e,className:a.default("ci","ci-"+d,s("core-icon",(t={"core-icon--clickable":p},t["core-icon--"+h]=h,t["core-icon--"+v]=v,t)),c)},y))});p.displayName="Icon",e.default=p},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)},i=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&(t[r[i]]=n[r[i]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=t(0);e.Autofocus=o.forwardRef(function(n,t){var c=n.children,a=n.enabled,l=void 0===a||a,f=i(n,["children","enabled"]),s=c.ref,p=o.createRef();return e.useAutofocus({ref:p,enabled:l}),u({ref:p,refs:[t,s]}),c&&o.cloneElement(c,r({},f,{ref:p}))}),e.useAutofocus=function(n){var e=n.enabled,t=void 0===e||e,r=n.ref;return o.useLayoutEffect(function(){t&&r&&r.current&&r.current.focus()},[r.current])};var u=function(n){var e=n.ref,t=n.refs;o.useLayoutEffect(function(){t.forEach(function(n){n&&("function"==typeof n?n(e.current):n.current=e.current)})},[e])}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)},i=this&&this.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&(t[r[i]]=n[r[i]])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=t(0);e.useVisibility=function(n){var e=n.initialIsVisible,t=void 0!==e&&e,r=o.useState(t),i=r[0],u=r[1],c=function(){return u(!1)},a=function(){return u(!0)};return{isVisible:i,hide:c,show:a,toggle:i?c:a}},e.withVisibility=function(n){return function(t){return function(i){return o.createElement(t,r({},i,{visibility:e.useVisibility(r({},n,i.visibility))}))}}},e.Visibility=function(n){var t=n.children,r=i(n,["children"]),o=e.useVisibility(r);return"function"==typeof t?t(o):t};var u=function(n){return function(){return console.warn("Could not call `"+n+"`, please wrap your component in a `<VisibilityProvider>`")}};e.VisibilityContext=o.createContext({isVisible:!1,hide:u("hide"),show:u("show"),toggle:u("toggle")}),e.VisibilityProvider=function(n){var t=n.children,r=i(n,["children"]);return o.createElement(e.VisibilityContext.Provider,{value:e.useVisibility(r)},t)},e.consumeVisibility=function(){return o.useContext(e.VisibilityContext)}},function(n,e,t){var r=t(41);"string"==typeof r&&(r=[[n.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,i);r.locals&&(n.exports=r.locals)},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(7),i=t(11);e.triggerListeners=function(n){var e=n.value,t=n.off,o=n.on,u=n.trigger,c=n.scope;switch(u){case i.OverlayTriggerVariantNS.click:var a=e?t:o;r.useEventListener({dependencies:[a],event:"click",scope:c,handler:a});break;case i.OverlayTriggerVariantNS.contextmenu:var l=e?t:o;r.useEventListener({dependencies:[l],event:"contextmenu",scope:c,handler:l});break;case i.OverlayTriggerVariantNS.hover:r.useEventListener({event:"mouseleave",scope:c,handler:t}),r.useEventListener({event:"mouseenter",scope:c,handler:o})}}},function(n,e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=t(8),o=t(4),u=function(n){var e=n.align,t=n.edge;return e===o.PlacementNS.center?t:t+"-"+e},c=function(n){var e=n.validator,t=n.updater;return function(n){var i=n.container,u=n.target,c=n.overlay,a=n.placement,l=n.canFlip,f=void 0===l||l,s=function(n){return{top:o.PlacementNS.bottom,bottom:o.PlacementNS.top,left:o.PlacementNS.right,right:o.PlacementNS.left,center:o.PlacementNS.center}[n]}(a),p=!e[a](i,u,c)&&e[s](i,u,c),d=f&&p?s:a;return r({placement:d},t[d](u,c))}};e.Alignment={updater:{left:function(n,e){return{left:n.left}},right:function(n,e){return{left:n.right-e.width}},top:function(n,e){return{top:n.top}},bottom:function(n,e){return{top:n.bottom-e.height}},center:function(n,e){return{left:n.left+(n.width-e.width)/2,top:n.top+(n.height-e.height)/2}}},validator:{top:function(n,e,t){return n.height-e.top>=t.height},right:function(n,e,t){return e.right-n.left>=t.width},left:function(n,e,t){return n.width-e.left>=t.width},bottom:function(n,e,t){return e.bottom-n.top>=t.height},center:function(){return!0}}},e.getAlignmentPosition=c(e.Alignment),e.getEdgePosition=c({updater:{left:function(n,e){return{left:n.left-e.width}},right:function(n,e){return{left:n.right}},top:function(n,e){return{top:n.top-e.height}},bottom:function(n,e){return{top:n.bottom}}},validator:{top:function(n,e,t){return e.top-n.top>=t.height},left:function(n,e,t){return e.left-n.left>=t.width},bottom:function(n,e,t){return n.height-e.bottom>=t.height},right:function(n,e,t){return n.width-e.right>=t.width}}}),e.padding=function(n,e){return void 0===n&&(n=0),r({},e,{width:e.width+2*n,height:e.height+2*n,top:e.top-n,bottom:e.bottom+n,left:e.left-n,right:e.right+n})},e.getAnchorPosition=function(n,t,c,a,l,f){if(void 0===t&&(t=0),void 0===c&&(c={top:0,left:0,width:window.innerWidth,height:window.innerHeight,bottom:window.innerWidth,right:window.innerWidth}),void 0===f&&(f=!0),!a||!l)return i.DEFAULT_RECT;var s=function(n){var e=n.split("-");return{edge:e[0],align:e[1]||o.PlacementNS.center}}(n),p=e.getAlignmentPosition({canFlip:f,container:c,target:a,overlay:l,placement:s.align}),d=e.getEdgePosition({canFlip:f,container:c,target:e.padding(t,a),overlay:l,placement:s.edge});return r({},p,d,{placement:u({align:p.placement,edge:d.placement}),minWidth:Math.max(a.width,l.width)})}},function(n,e,t){var r=t(34);"string"==typeof r&&(r=[[n.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,i);r.locals&&(n.exports=r.locals)},function(n,e,t){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var t={}.hasOwnProperty;function i(){for(var n=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r)&&r.length){var u=i.apply(null,r);u&&n.push(u)}else if("object"===o)for(var c in r)t.call(r,c)&&r[c]&&n.push(c)}}return n.join(" ")}n.exports?(i.default=i,n.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(n.exports=r)}()},function(n,e,t){var r=t(25);"string"==typeof r&&(r=[[n.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};t(3)(r,i);r.locals&&(n.exports=r.locals)},function(n,e,t){(e=n.exports=t(2)(!1)).push([n.i,"._1FgAl-7_3_0 {\n display: inline-flex; }\n .QtZLT-7_3_0 {\n cursor: pointer; }\n ._3Hw5E-7_3_0 {\n transition: color 0.2s ease-in-out; }\n ._3Hw5E-7_3_0:hover {\n color: #000000; }\n ._2g2N0-7_3_0:hover {\n color: #ffffff; }\n ._2g2N0-7_3_0:hover:before {\n background-color: #808080;\n border-radius: 50%; }\n ._3TrT9-7_3_0 {\n font-size: 16px;\n min-width: 16px; }\n ._157DG-7_3_0 {\n font-size: 24px;\n min-width: 24px; }\n ._3UApg-7_3_0 {\n font-size: 26px;\n min-width: 26px; }\n",""]),e.locals={"core-icon":"_1FgAl-7_3_0","core-icon--clickable":"QtZLT-7_3_0","core-icon--hover-fill":"_3Hw5E-7_3_0","core-icon--hover-circle":"_2g2N0-7_3_0","core-icon--sm":"_3TrT9-7_3_0","core-icon--md":"_157DG-7_3_0","core-icon--lg":"_3UApg-7_3_0"}},function(n,e,t){"use strict";t.r(e);var r=function(){return!1},i=function(){return!0},o={"@@functional/placeholder":!0};function u(n){return null!=n&&"object"==typeof n&&!0===n["@@functional/placeholder"]}function c(n){return function e(t){return 0===arguments.length||u(t)?e:n.apply(this,arguments)}}function a(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return u(t)?e:c(function(e){return n(t,e)});default:return u(t)&&u(r)?e:u(t)?c(function(e){return n(e,r)}):u(r)?c(function(e){return n(t,e)}):n(t,r)}}}var l=a(function(n,e){return Number(n)+Number(e)});function f(n,e){var t;e=e||[];var r=(n=n||[]).length,i=e.length,o=[];for(t=0;t<r;)o[o.length]=n[t],t+=1;for(t=0;t<i;)o[o.length]=e[t],t+=1;return o}function s(n,e){switch(n){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,t){return e.apply(this,arguments)};case 3:return function(n,t,r){return e.apply(this,arguments)};case 4:return function(n,t,r,i){return e.apply(this,arguments)};case 5:return function(n,t,r,i,o){return e.apply(this,arguments)};case 6:return function(n,t,r,i,o,u){return e.apply(this,arguments)};case 7:return function(n,t,r,i,o,u,c){return e.apply(this,arguments)};case 8:return function(n,t,r,i,o,u,c,a){return e.apply(this,arguments)};case 9:return function(n,t,r,i,o,u,c,a,l){return e.apply(this,arguments)};case 10:return function(n,t,r,i,o,u,c,a,l,f){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function p(n,e,t){return function(){for(var r=[],i=0,o=n,c=0;c<e.length||i<arguments.length;){var a;c<e.length&&(!u(e[c])||i>=arguments.length)?a=e[c]:(a=arguments[i],i+=1),r[c]=a,u(a)||(o-=1),c+=1}return o<=0?t.apply(this,r):s(o,p(n,r,t))}}var d=a(function(n,e){return 1===n?c(e):s(n,p(n,[],e))}),_=c(function(n){return d(n.length,function(){var e=0,t=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var n=t.apply(this,f(arguments,[e,r]));return e+=1,n},n.apply(this,i)})});function h(n){return function e(t,r,i){switch(arguments.length){case 0:return e;case 1:return u(t)?e:a(function(e,r){return n(t,e,r)});case 2:return u(t)&&u(r)?e:u(t)?a(function(e,t){return n(e,r,t)}):u(r)?a(function(e,r){return n(t,e,r)}):c(function(e){return n(t,r,e)});default:return u(t)&&u(r)&&u(i)?e:u(t)&&u(r)?a(function(e,t){return n(e,t,i)}):u(t)&&u(i)?a(function(e,t){return n(e,r,t)}):u(r)&&u(i)?a(function(e,r){return n(t,e,r)}):u(t)?c(function(e){return n(e,r,i)}):u(r)?c(function(e){return n(t,e,i)}):u(i)?c(function(e){return n(t,r,e)}):n(t,r,i)}}}var g=h(function(n,e,t){if(n>=t.length||n<-t.length)return t;var r=(n<0?t.length:0)+n,i=f(t);return i[r]=e(t[r]),i}),v=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)};function y(n){return null!=n&&"function"==typeof n["@@transducer/step"]}function m(n,e,t){return function(){if(0===arguments.length)return t();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!v(i)){for(var o=0;o<n.length;){if("function"==typeof i[n[o]])return i[n[o]].apply(i,r);o+=1}if(y(i))return e.apply(null,r)(i)}return t.apply(this,arguments)}}function x(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}var b={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},w=function(){function n(n,e){this.xf=e,this.f=n,this.all=!0}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.all&&(n=this.xf["@@transducer/step"](n,!0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){return this.f(e)||(this.all=!1,n=x(this.xf["@@transducer/step"](n,!1))),n},n}(),O=a(m(["all"],a(function(n,e){return new w(n,e)}),function(n,e){for(var t=0;t<e.length;){if(!n(e[t]))return!1;t+=1}return!0})),S=a(function(n,e){return e>n?e:n});function j(n,e){for(var t=0,r=e.length,i=Array(r);t<r;)i[t]=n(e[t]),t+=1;return i}function E(n){return"[object String]"===Object.prototype.toString.call(n)}var P=c(function(n){return!!v(n)||!!n&&("object"==typeof n&&(!E(n)&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1)))))}),C=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,e){return this.f(n,e)},n}();function N(n){return new C(n)}var T=a(function(n,e){return s(n.length,function(){return n.apply(e,arguments)})});function A(n,e,t){for(var r=t.next();!r.done;){if((e=n["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=t.next()}return n["@@transducer/result"](e)}function k(n,e,t,r){return n["@@transducer/result"](t[r](T(n["@@transducer/step"],n),e))}var R="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function I(n,e,t){if("function"==typeof n&&(n=N(n)),P(t))return function(n,e,t){for(var r=0,i=t.length;r<i;){if((e=n["@@transducer/step"](e,t[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return n["@@transducer/result"](e)}(n,e,t);if("function"==typeof t["fantasy-land/reduce"])return k(n,e,t,"fantasy-land/reduce");if(null!=t[R])return A(n,e,t[R]());if("function"==typeof t.next)return A(n,e,t);if("function"==typeof t.reduce)return k(n,e,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var L=function(){function n(n,e){this.xf=e,this.f=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,e){return this.xf["@@transducer/step"](n,this.f(e))},n}(),M=a(function(n,e){return new L(n,e)});function D(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var B=Object.prototype.toString,F=function(){return"[object Arguments]"===B.call(arguments)?function(n){return"[object Arguments]"===B.call(n)}:function(n){return D("callee",n)}}(),V=!{toString:null}.propertyIsEnumerable("toString"),z=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],q=function(){return arguments.propertyIsEnumerable("length")}(),U=function(n,e){for(var t=0;t<n.length;){if(n[t]===e)return!0;t+=1}return!1},W="function"!=typeof Object.keys||q?c(function(n){if(Object(n)!==n)return[];var e,t,r=[],i=q&&F(n);for(e in n)!D(e,n)||i&&"length"===e||(r[r.length]=e);if(V)for(t=z.length-1;t>=0;)D(e=z[t],n)&&!U(r,e)&&(r[r.length]=e),t-=1;return r}):c(function(n){return Object(n)!==n?[]:Object.keys(n)}),K=a(m(["fantasy-land/map","map"],M,function(n,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return d(e.length,function(){return n.call(this,e.apply(this,arguments))});case"[object Object]":return I(function(t,r){return t[r]=n(e[r]),t},{},W(e));default:return j(n,e)}})),J=a(function(n,e){for(var t=e,r=0;r<n.length;){if(null==t)return;t=t[n[r]],r+=1}return t}),H=a(function(n,e){return J([n],e)}),Z=a(function(n,e){return K(H(n),e)}),G=h(I),Q=c(function(n){return d(G(S,0,Z("length",n)),function(){for(var e=0,t=n.length;e<t;){if(!n[e].apply(this,arguments))return!1;e+=1}return!0})}),Y=c(function(n){return function(){return n}}),X=a(function(n,e){return n&&e}),$=function(){function n(n,e){this.xf=e,this.f=n,this.any=!1}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.any||(n=this.xf["@@transducer/step"](n,!1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){return this.f(e)&&(this.any=!0,n=x(this.xf["@@transducer/step"](n,!0))),n},n}(),nn=a(m(["any"],a(function(n,e){return new $(n,e)}),function(n,e){for(var t=0;t<e.length;){if(n(e[t]))return!0;t+=1}return!1})),en=c(function(n){return d(G(S,0,Z("length",n)),function(){for(var e=0,t=n.length;e<t;){if(n[e].apply(this,arguments))return!0;e+=1}return!1})}),tn=a(function(n,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](n):"function"==typeof n.ap?n.ap(e):"function"==typeof n?function(t){return n(t)(e(t))}:I(function(n,t){return f(n,K(t,e))},[],n)});function rn(n,e){for(var t=0,r=e.length-(n-1),i=new Array(r>=0?r:0);t<r;)i[t]=Array.prototype.slice.call(e,t,t+n),t+=1;return i}var on=function(){function n(n,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(n)}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.acc=null,this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){return this.store(e),this.full?this.xf["@@transducer/step"](n,this.getCopy()):n},n.prototype.store=function(n){this.acc[this.pos]=n,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n.prototype.getCopy=function(){return f(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}(),un=a(m([],a(function(n,e){return new on(n,e)}),rn)),cn=a(function(n,e){return f(e,[n])}),an=a(function(n,e){return n.apply(this,e)}),ln=c(function(n){for(var e=W(n),t=e.length,r=[],i=0;i<t;)r[i]=n[e[i]],i+=1;return r});function fn(n,e){return W(e).reduce(function(t,r){return t[r]=n(e[r]),t},{})}var sn=c(function n(e){return e=fn(function(e){return"function"==typeof e?e:n(e)},e),d(G(S,0,Z("length",ln(e))),function(){var n=arguments;return fn(function(e){return an(e,n)},e)})}),pn=a(function(n,e){return e(n)}),dn=h(function(n,e,t){var r=n(e),i=n(t);return r<i?-1:r>i?1:0}),_n=h(function(n,e,t){var r={};for(var i in t)r[i]=t[i];return r[n]=e,r}),hn=Number.isInteger||function(n){return n<<0===n},gn=c(function(n){return null==n}),vn=h(function n(e,t,r){if(0===e.length)return t;var i=e[0];if(e.length>1){var o=!gn(r)&&D(i,r)?r[i]:hn(e[1])?[]:{};t=n(Array.prototype.slice.call(e,1),t,o)}if(hn(i)&&v(r)){var u=[].concat(r);return u[i]=t,u}return _n(i,t,r)}),yn=a(function(n,e){switch(n){case 0:return function(){return e.call(this)};case 1:return function(n){return e.call(this,n)};case 2:return function(n,t){return e.call(this,n,t)};case 3:return function(n,t,r){return e.call(this,n,t,r)};case 4:return function(n,t,r,i){return e.call(this,n,t,r,i)};case 5:return function(n,t,r,i,o){return e.call(this,n,t,r,i,o)};case 6:return function(n,t,r,i,o,u){return e.call(this,n,t,r,i,o,u)};case 7:return function(n,t,r,i,o,u,c){return e.call(this,n,t,r,i,o,u,c)};case 8:return function(n,t,r,i,o,u,c,a){return e.call(this,n,t,r,i,o,u,c,a)};case 9:return function(n,t,r,i,o,u,c,a,l){return e.call(this,n,t,r,i,o,u,c,a,l)};case 10:return function(n,t,r,i,o,u,c,a,l,f){return e.call(this,n,t,r,i,o,u,c,a,l,f)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),mn=c(function(n){return yn(2,n)});function xn(n){return"[object Function]"===Object.prototype.toString.call(n)}var bn=a(function(n,e){var t=d(n,e);return d(n,function(){return I(tn,K(t,arguments[0]),Array.prototype.slice.call(arguments,1))})}),wn=c(function(n){return bn(n.length,n)}),On=a(function(n,e){return xn(n)?function(){return n.apply(this,arguments)&&e.apply(this,arguments)}:wn(X)(n,e)}),Sn=c(function(n){return d(n.length,n)}),jn=Sn(function(n){return n.apply(this,Array.prototype.slice.call(arguments,1))});function En(n){return function e(t){for(var r,i,o,u=[],c=0,a=t.length;c<a;){if(P(t[c]))for(o=0,i=(r=n?e(t[c]):t[c]).length;o<i;)u[u.length]=r[o],o+=1;else u[u.length]=t[c];c+=1}return u}}var Pn=function(n){var e=function(n){return{"@@transducer/init":b.init,"@@transducer/result":function(e){return n["@@transducer/result"](e)},"@@transducer/step":function(e,t){var r=n["@@transducer/step"](e,t);return r["@@transducer/reduced"]?{"@@transducer/value":r,"@@transducer/reduced":!0}:r}}}(n);return{"@@transducer/init":b.init,"@@transducer/result":function(n){return e["@@transducer/result"](n)},"@@transducer/step":function(n,t){return P(t)?I(e,n,t):I(e,n,[t])}}},Cn=a(m(["fantasy-land/chain","chain"],a(function(n,e){return K(n,Pn(e))}),function(n,e){return"function"==typeof e?function(t){return n(e(t))(t)}:En(!1)(K(n,e))})),Nn=h(function(n,e,t){if(n>e)throw new Error("min must not be greater than max in clamp(min, max, value)");return t<n?n:t>e?e:t});function Tn(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))}var An=c(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function kn(n,e,t,r){var i=function(i){for(var o=e.length,u=0;u<o;){if(n===e[u])return t[u];u+=1}for(var c in e[u+1]=n,t[u+1]=i,n)i[c]=r?kn(n[c],e,t,!0):n[c];return i};switch(An(n)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(n.valueOf());case"RegExp":return Tn(n);default:return n}}var Rn=c(function(n){return null!=n&&"function"==typeof n.clone?n.clone():kn(n,[],[],!0)}),In=c(function(n){return function(e,t){return n(e,t)?-1:n(t,e)?1:0}}),Ln=c(function(n){return!n}),Mn=wn(Ln);function Dn(n,e){return function(){return e.call(this,n.apply(this,arguments))}}function Bn(n,e){return function(){var t=arguments.length;if(0===t)return e();var r=arguments[t-1];return v(r)||"function"!=typeof r[n]?e.apply(this,arguments):r[n].apply(r,Array.prototype.slice.call(arguments,0,t-1))}}var Fn=h(Bn("slice",function(n,e,t){return Array.prototype.slice.call(t,n,e)})),Vn=c(Bn("tail",Fn(1,1/0)));function zn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return s(arguments[0].length,G(Dn,arguments[0],Vn(arguments)))}var qn=c(function(n){return E(n)?n.split("").reverse().join(""):Array.prototype.slice.call(n,0).reverse()});function Un(){if(0===arguments.length)throw new Error("compose requires at least one argument");return zn.apply(this,qn(arguments))}function Wn(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var n=Array.prototype.slice.call(arguments),e=n.pop();return Un(Un.apply(this,K(Cn,n)),e)}function Kn(n,e){return function(){var t=this;return n.apply(t,arguments).then(function(n){return e.call(t,n)})}}function Jn(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return s(arguments[0].length,G(Kn,arguments[0],Vn(arguments)))}function Hn(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Jn.apply(this,qn(arguments))}var Zn=a(function(n,e){var t=n<0?e.length+n:n;return E(e)?e.charAt(t):e[t]}),Gn=Zn(0);function Qn(n){return n}var Yn=c(Qn),Xn=a(function(n,e){if(e.length<=0)return Yn;var t=Gn(e),r=Vn(e);return s(t.length,function(){return I(function(e,t){return n.call(this,t,e)},t.apply(this,arguments),r)})}),$n=a(function(n,e){return Xn.apply(this,[n,qn(e)])});function ne(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t}function ee(n,e,t){for(var r=0,i=t.length;r<i;){if(n(e,t[r]))return!0;r+=1}return!1}var te="function"==typeof Object.is?Object.is:function(n,e){return n===e?0!==n||1/n==1/e:n!=n&&e!=e};function re(n,e,t,r){var i=ne(n);function o(n,e){return ie(n,e,t.slice(),r.slice())}return!ee(function(n,e){return!ee(o,e,n)},ne(e),i)}function ie(n,e,t,r){if(te(n,e))return!0;var i,o,u=An(n);if(u!==An(e))return!1;if(null==n||null==e)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof e.equals)return"function"==typeof n.equals&&n.equals(e)&&"function"==typeof e.equals&&e.equals(n);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(i=n.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return n===e;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof e||!te(n.valueOf(),e.valueOf()))return!1;break;case"Date":if(!te(n.valueOf(),e.valueOf()))return!1;break;case"Error":return n.name===e.name&&n.message===e.message;case"RegExp":if(n.source!==e.source||n.global!==e.global||n.ignoreCase!==e.ignoreCase||n.multiline!==e.multiline||n.sticky!==e.sticky||n.unicode!==e.unicode)return!1}for(var c=t.length-1;c>=0;){if(t[c]===n)return r[c]===e;c-=1}switch(u){case"Map":return n.size===e.size&&re(n.entries(),e.entries(),t.concat([n]),r.concat([e]));case"Set":return n.size===e.size&&re(n.values(),e.values(),t.concat([n]),r.concat([e]));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 a=W(n);if(a.length!==W(e).length)return!1;var l=t.concat([n]),f=r.concat([e]);for(c=a.length-1;c>=0;){var s=a[c];if(!D(s,e)||!ie(e[s],n[s],l,f))return!1;c-=1}return!0}var oe=a(function(n,e){return ie(n,e,[],[])});function ue(n,e,t){var r,i;if("function"==typeof n.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;t<n.length;){if(0===(i=n[t])&&1/i===r)return t;t+=1}return-1}if(e!=e){for(;t<n.length;){if("number"==typeof(i=n[t])&&i!=i)return t;t+=1}return-1}return n.indexOf(e,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(e,t);case"object":if(null===e)return n.indexOf(e,t)}for(;t<n.length;){if(oe(n[t],e))return t;t+=1}return-1}function ce(n,e){return ue(e,n,0)>=0}function ae(n){return'"'+n.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").replace(/"/g,'\\"')+'"'}var le=function(n){return(n<10?"0":"")+n},fe="function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+le(n.getUTCMonth()+1)+"-"+le(n.getUTCDate())+"T"+le(n.getUTCHours())+":"+le(n.getUTCMinutes())+":"+le(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function se(n){return function(){return!n.apply(this,arguments)}}function pe(n,e){for(var t=0,r=e.length,i=[];t<r;)n(e[t])&&(i[i.length]=e[t]),t+=1;return i}function de(n){return"[object Object]"===Object.prototype.toString.call(n)}var _e=function(){function n(n,e){this.xf=e,this.f=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,e){return this.f(e)?this.xf["@@transducer/step"](n,e):n},n}(),he=a(m(["filter"],a(function(n,e){return new _e(n,e)}),function(n,e){return de(e)?I(function(t,r){return n(e[r])&&(t[r]=e[r]),t},{},W(e)):pe(n,e)})),ge=a(function(n,e){return he(se(n),e)});function ve(n,e){var t=function(t){var r=e.concat([n]);return ce(t,r)?"<Circular>":ve(t,r)},r=function(n,e){return j(function(e){return ae(e)+": "+t(n[e])},e.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+j(t,n).join(", ")+"))";case"[object Array]":return"["+j(t,n).concat(r(n,ge(function(n){return/^\d+$/.test(n)},W(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+t(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?t(NaN):ae(fe(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+t(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+t(n.valueOf())+")":ae(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var i=n.toString();if("[object Object]"!==i)return i}return"{"+r(n,W(n)).join(", ")+"}"}}var ye=c(function(n){return ve(n,[])}),me=a(function(n,e){if(v(n)){if(v(e))return n.concat(e);throw new TypeError(ye(e)+" is not an array")}if(E(n)){if(E(e))return n+e;throw new TypeError(ye(e)+" is not a string")}if(null!=n&&xn(n["fantasy-land/concat"]))return n["fantasy-land/concat"](e);if(null!=n&&xn(n.concat))return n.concat(e);throw new TypeError(ye(n)+' does not have a method named "concat" or "fantasy-land/concat"')}),xe=c(function(n){return s(G(S,0,K(function(n){return n[0].length},n)),function(){for(var e=0;e<n.length;){if(n[e][0].apply(this,arguments))return n[e][1].apply(this,arguments);e+=1}})}),be=a(function(n,e){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new e}:Sn(yn(n,function(n,t,r,i,o,u,c,a,l,f){switch(arguments.length){case 1:return new e(n);case 2:return new e(n,t);case 3:return new e(n,t,r);case 4:return new e(n,t,r,i);case 5:return new e(n,t,r,i,o);case 6:return new e(n,t,r,i,o,u);case 7:return new e(n,t,r,i,o,u,c);case 8:return new e(n,t,r,i,o,u,c,a);case 9:return new e(n,t,r,i,o,u,c,a,l);case 10:return new e(n,t,r,i,o,u,c,a,l,f)}}))}),we=c(function(n){return be(n.length,n)}),Oe=a(ce),Se=a(function(n,e){return d(G(S,0,Z("length",e)),function(){var t=arguments,r=this;return n.apply(r,j(function(n){return n.apply(r,t)},e))})}),je=function(){function n(n,e,t,r){this.valueFn=n,this.valueAcc=e,this.keyFn=t,this.xf=r,this.inputs={}}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){var e;for(e in this.inputs)if(D(e,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[e]))["@@transducer/reduced"]){n=n["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,e){var t=this.keyFn(e);return this.inputs[t]=this.inputs[t]||[t,this.valueAcc],this.inputs[t][1]=this.valueFn(this.inputs[t][1],e)