@procore/core-react
Version:
JSX implementations for core-css
12 lines • 81.1 kB
JavaScript
!function(n,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(n.react);for(var e in r)("object"==typeof exports?exports:n)[e]=r[e]}}(window,function(n){return function(n){var t={};function r(e){if(t[e])return t[e].exports;var i=t[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)r.d(e,i,function(t){return n[t]}.bind(null,i));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=44)}([function(t,r){t.exports=n},function(n,t,r){var e;
/*!
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 r={}.hasOwnProperty;function i(){for(var n=[],t=0;t<arguments.length;t++){var e=arguments[t];if(e){var u=typeof e;if("string"===u||"number"===u)n.push(this&&this[e]||e);else if(Array.isArray(e))n.push(i.apply(this,e));else if("object"===u)for(var o in e)r.call(e,o)&&e[o]&&n.push(this&&this[o]||o)}}return n.join(" ")}n.exports?(i.default=i,n.exports=i):void 0===(e=function(){return i}.apply(t,[]))||(n.exports=e)}()},function(n,t,r){"use strict";n.exports=function(n){var t=[];return t.toString=function(){return this.map(function(t){var r=function(n,t){var r=n[1]||"",e=n[3];if(!e)return r;if(t&&"function"==typeof btoa){var i=(o=e,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),u=e.sources.map(function(n){return"/*# sourceURL="+e.sourceRoot+n+" */"});return[r].concat(u).concat([i]).join("\n")}var o;return[r].join("\n")}(t,n);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(n,r){"string"==typeof n&&(n=[[null,n,""]]);for(var e={},i=0;i<this.length;i++){var u=this[i][0];null!=u&&(e[u]=!0)}for(i=0;i<n.length;i++){var o=n[i];null!=o[0]&&e[o[0]]||(r&&!o[2]?o[2]=r:r&&(o[2]="("+o[2]+") and ("+r+")"),t.push(o))}},t}},function(n,t,r){var e,i,u={},o=(e=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=e.apply(this,arguments)),i}),c=function(n){var t={};return function(n,r){if("function"==typeof n)return n();if(void 0===t[n]){var e=function(n,t){return t?t.querySelector(n):document.querySelector(n)}.call(this,n,r);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(n){e=null}t[n]=e}return t[n]}}(),a=null,f=0,s=[],l=r(6);function p(n,t){for(var r=0;r<n.length;r++){var e=n[r],i=u[e.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](e.parts[o]);for(;o<e.parts.length;o++)i.parts.push(m(e.parts[o],t))}else{var c=[];for(o=0;o<e.parts.length;o++)c.push(m(e.parts[o],t));u[e.id]={id:e.id,refs:1,parts:c}}}}function d(n,t){for(var r=[],e={},i=0;i<n.length;i++){var u=n[i],o=t.base?u[0]+t.base:u[0],c={css:u[1],media:u[2],sourceMap:u[3]};e[o]?e[o].parts.push(c):r.push(e[o]={id:o,parts:[c]})}return r}function _(n,t){var r=c(n.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var e=s[s.length-1];if("top"===n.insertAt)e?e.nextSibling?r.insertBefore(t,e.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),s.push(t);else if("bottom"===n.insertAt)r.appendChild(t);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,r);r.insertBefore(t,i)}}function h(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var t=s.indexOf(n);t>=0&&s.splice(t,1)}function g(n){var t=document.createElement("style");if(void 0===n.attrs.type&&(n.attrs.type="text/css"),void 0===n.attrs.nonce){var e=function(){0;return r.nc}();e&&(n.attrs.nonce=e)}return y(t,n.attrs),_(n,t),t}function y(n,t){Object.keys(t).forEach(function(r){n.setAttribute(r,t[r])})}function m(n,t){var r,e,i,u;if(t.transform&&n.css){if(!(u="function"==typeof t.transform?t.transform(n.css):t.transform.default(n.css)))return function(){};n.css=u}if(t.singleton){var o=f++;r=a||(a=g(t)),e=b.bind(null,r,o,!1),i=b.bind(null,r,o,!0)}else n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(n){var t=document.createElement("link");return void 0===n.attrs.type&&(n.attrs.type="text/css"),n.attrs.rel="stylesheet",y(t,n.attrs),_(n,t),t}(t),e=function(n,t,r){var e=r.css,i=r.sourceMap,u=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||u)&&(e=l(e));i&&(e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([e],{type:"text/css"}),c=n.href;n.href=URL.createObjectURL(o),c&&URL.revokeObjectURL(c)}.bind(null,r,t),i=function(){h(r),r.href&&URL.revokeObjectURL(r.href)}):(r=g(t),e=function(n,t){var r=t.css,e=t.media;e&&n.setAttribute("media",e);if(n.styleSheet)n.styleSheet.cssText=r;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}.bind(null,r),i=function(){h(r)});return e(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;e(n=t)}else i()}}n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=d(n,t);return p(r,t),function(n){for(var e=[],i=0;i<r.length;i++){var o=r[i];(c=u[o.id]).refs--,e.push(c)}n&&p(d(n,t),t);for(i=0;i<e.length;i++){var c;if(0===(c=e[i]).refs){for(var a=0;a<c.parts.length;a++)c.parts[a]();delete u[c.id]}}}};var x,v=(x=[],function(n,t){return x[n]=t,x.filter(Boolean).join("\n")});function b(n,t,r,e){var i=r?"":e.css;if(n.styleSheet)n.styleSheet.cssText=v(t,i);else{var u=document.createTextNode(i),o=n.childNodes;o[t]&&n.removeChild(o[t]),o.length?n.insertBefore(u,o[t]):n.appendChild(u)}}},function(n,t,r){"use strict";Object.defineProperty(t,"__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"}(t.SizeNS||(t.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"}(t.PlacementNS||(t.PlacementNS={}))},,function(n,t){n.exports=function(n){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!n||"string"!=typeof n)return n;var r=t.protocol+"//"+t.host,e=r+t.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,t){var i,u=t.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(u)?n:(i=0===u.indexOf("//")?u:0===u.indexOf("/")?r+u:e+u.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},,,,,,function(n,t,r){"use strict";var e=this&&this.__assign||function(){return(e=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},i=this&&this.__rest||function(n,t){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(r[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(n);i<e.length;i++)t.indexOf(e[i])<0&&(r[e[i]]=n[e[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var u,o,c=r(0),a=r(1),f=r(26),s=r(22),l=r(15),p=r(4);!function(n){n.b="b",n.l="l",n.r="r",n.t="t"}(u=t.SideShorthandNS||(t.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"}(t.BoxDisplayNS||(t.BoxDisplayNS={})),function(n){n.margin="margin",n.padding="padding"}(o=t.BoxSpaceAttributeNS||(t.BoxSpaceAttributeNS={})),function(n){n.flex="flex",n.flexBasis="flexBasis",n.flexGrow="flexGrow",n.flexShrink="flexShrink",n.order="order"}(t.InlineFlexStyleKeysNS||(t.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"}(t.FlexAlignNS||(t.FlexAlignNS={})),function(n){n.column="column",n.columnReverse="column-reverse",n.row="row",n.rowReverse="row-reverse"}(t.FlexDirectionNS||(t.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"}(t.FlexJustifyNS||(t.FlexJustifyNS={})),function(n){n.nowrap="nowrap",n.wrapReverse="wrap-reverse",n.wrap="wrap"}(t.FlexWrapNS||(t.FlexWrapNS={})),function(n){n.center="center",n.left="left",n.right="right"}(t.TextAlignNS||(t.TextAlignNS={}));var d=a.bind(e({},s,l)),_=f.pickBy(function(n){return void 0!==n}),h=function(n,t,r){return r&&r!==p.SizeNS.none?"core-"+n+"-"+t+"-"+r:""},g=function(n){return function(t){return[h(n,u.t,t[0]),h(n,u.r,t[1]),h(n,u.b,t[2]),h(n,u.l,t[3])]}},y=function(n,t,r,e){return function(i){return n&&(i[0]=n),t&&(i[1]=t),r&&(i[2]=r),e&&(i[3]=e),i}},m=function(n){void 0===n&&(n="");var t=n.split(" "),r=[];return 1===t.length?r=[t[0],t[0],t[0],t[0]]:2===t.length?r=[t[0],t[1],t[0],t[1]]:3===t.length?r=[t[0],t[1],t[2],t[1]]:4===t.length&&(r=t),r},x=c.forwardRef(function(n,t){var r=n.alignContent,u=n.alignItems,a=n.alignSelf,f=n.className,s=n.display,l=n.flex,p=n.flexBasis,h=n.flexGrow,x=n.flexShrink,v=n.flexWrap,b=n.justifyContent,w=n.style,S=n.order,j=n.margin,O=void 0===j?"none":j,A=n.marginTop,N=n.marginRight,E=n.marginBottom,I=n.marginLeft,k=n.padding,P=void 0===k?"none":k,R=n.paddingTop,T=n.paddingRight,q=n.paddingBottom,B=n.paddingLeft,C=n.textAlign,W=n.children,L=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"]),M=O||N||I||A||E?g(o.margin)(y(A,N,E,I)(m(O))):[],F=P||T||B||R||q?g(o.padding)(y(R,T,q,B)(m(P))):[];return c.createElement("div",e({ref:t,className:d.apply(void 0,M.concat(F,[r&&"core-flex-align-content-"+r,u&&"core-flex-align-items-"+u,a&&"core-flex-align-self-"+a,s&&"core-"+s,v&&"core-flex-wrap-"+v,b&&"core-flex-justify-content-"+b,C&&"core-text-"+C,f])),style:e({},w,_({flex:l,flexBasis:p,flexGrow:h,flexShrink:x,order:S}))},L),W)});x.displayName="Box",t.default=x},,,function(n,t,r){var e=r(35);"string"==typeof e&&(e=[[n.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(3)(e,i);e.locals&&(n.exports=e.locals)},,,,,,,function(n,t,r){var e=r(34);"string"==typeof e&&(e=[[n.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(3)(e,i);e.locals&&(n.exports=e.locals)},,,,function(n,t,r){"use strict";r.r(t);var e=function(){return!1},i=function(){return!0},u={"@@functional/placeholder":!0};function o(n){return null!=n&&"object"==typeof n&&!0===n["@@functional/placeholder"]}function c(n){return function t(r){return 0===arguments.length||o(r)?t:n.apply(this,arguments)}}function a(n){return function t(r,e){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c(function(t){return n(r,t)});default:return o(r)&&o(e)?t:o(r)?c(function(t){return n(t,e)}):o(e)?c(function(t){return n(r,t)}):n(r,e)}}}var f=a(function(n,t){return Number(n)+Number(t)});function s(n,t){var r;t=t||[];var e=(n=n||[]).length,i=t.length,u=[];for(r=0;r<e;)u[u.length]=n[r],r+=1;for(r=0;r<i;)u[u.length]=t[r],r+=1;return u}function l(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,i){return t.apply(this,arguments)};case 5:return function(n,r,e,i,u){return t.apply(this,arguments)};case 6:return function(n,r,e,i,u,o){return t.apply(this,arguments)};case 7:return function(n,r,e,i,u,o,c){return t.apply(this,arguments)};case 8:return function(n,r,e,i,u,o,c,a){return t.apply(this,arguments)};case 9:return function(n,r,e,i,u,o,c,a,f){return t.apply(this,arguments)};case 10:return function(n,r,e,i,u,o,c,a,f,s){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function p(n,t,r){return function(){for(var e=[],i=0,u=n,c=0;c<t.length||i<arguments.length;){var a;c<t.length&&(!o(t[c])||i>=arguments.length)?a=t[c]:(a=arguments[i],i+=1),e[c]=a,o(a)||(u-=1),c+=1}return u<=0?r.apply(this,e):l(u,p(n,e,r))}}var d=a(function(n,t){return 1===n?c(t):l(n,p(n,[],t))}),_=c(function(n){return d(n.length,function(){var t=0,r=arguments[0],e=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var n=r.apply(this,s(arguments,[t,e]));return t+=1,n},n.apply(this,i)})});function h(n){return function t(r,e,i){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a(function(t,e){return n(r,t,e)});case 2:return o(r)&&o(e)?t:o(r)?a(function(t,r){return n(t,e,r)}):o(e)?a(function(t,e){return n(r,t,e)}):c(function(t){return n(r,e,t)});default:return o(r)&&o(e)&&o(i)?t:o(r)&&o(e)?a(function(t,r){return n(t,r,i)}):o(r)&&o(i)?a(function(t,r){return n(t,e,r)}):o(e)&&o(i)?a(function(t,e){return n(r,t,e)}):o(r)?c(function(t){return n(t,e,i)}):o(e)?c(function(t){return n(r,t,i)}):o(i)?c(function(t){return n(r,e,t)}):n(r,e,i)}}}var g=h(function(n,t,r){if(n>=r.length||n<-r.length)return r;var e=(n<0?r.length:0)+n,i=s(r);return i[e]=t(r[e]),i}),y=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)};function m(n){return null!=n&&"function"==typeof n["@@transducer/step"]}function x(n,t,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),i=e.pop();if(!y(i)){for(var u=0;u<n.length;){if("function"==typeof i[n[u]])return i[n[u]].apply(i,e);u+=1}if(m(i))return t.apply(null,e)(i)}return r.apply(this,arguments)}}function v(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,t){this.xf=t,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,t){return this.f(t)||(this.all=!1,n=v(this.xf["@@transducer/step"](n,!1))),n},n}(),S=a(x(["all"],a(function(n,t){return new w(n,t)}),function(n,t){for(var r=0;r<t.length;){if(!n(t[r]))return!1;r+=1}return!0})),j=a(function(n,t){return t>n?t:n});function O(n,t){for(var r=0,e=t.length,i=Array(e);r<e;)i[r]=n(t[r]),r+=1;return i}function A(n){return"[object String]"===Object.prototype.toString.call(n)}var N=c(function(n){return!!y(n)||!!n&&("object"==typeof n&&(!A(n)&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1)))))}),E=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,t){return this.f(n,t)},n}();function I(n){return new E(n)}var k=a(function(n,t){return l(n.length,function(){return n.apply(t,arguments)})});function P(n,t,r){for(var e=r.next();!e.done;){if((t=n["@@transducer/step"](t,e.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function R(n,t,r,e){return n["@@transducer/result"](r[e](k(n["@@transducer/step"],n),t))}var T="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function q(n,t,r){if("function"==typeof n&&(n=I(n)),N(r))return function(n,t,r){for(var e=0,i=r.length;e<i;){if((t=n["@@transducer/step"](t,r[e]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return n["@@transducer/result"](t)}(n,t,r);if("function"==typeof r["fantasy-land/reduce"])return R(n,t,r,"fantasy-land/reduce");if(null!=r[T])return P(n,t,r[T]());if("function"==typeof r.next)return P(n,t,r);if("function"==typeof r.reduce)return R(n,t,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}var B=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},n}(),C=a(function(n,t){return new B(n,t)});function W(n,t){return Object.prototype.hasOwnProperty.call(t,n)}var L=Object.prototype.toString,M=function(){return"[object Arguments]"===L.call(arguments)?function(n){return"[object Arguments]"===L.call(n)}:function(n){return W("callee",n)}}(),F=!{toString:null}.propertyIsEnumerable("toString"),U=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],J=function(){return arguments.propertyIsEnumerable("length")}(),D=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1},z="function"!=typeof Object.keys||J?c(function(n){if(Object(n)!==n)return[];var t,r,e=[],i=J&&M(n);for(t in n)!W(t,n)||i&&"length"===t||(e[e.length]=t);if(F)for(r=U.length-1;r>=0;)W(t=U[r],n)&&!D(e,t)&&(e[e.length]=t),r-=1;return e}):c(function(n){return Object(n)!==n?[]:Object.keys(n)}),V=a(x(["fantasy-land/map","map"],C,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return d(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return q(function(r,e){return r[e]=n(t[e]),r},{},z(t));default:return O(n,t)}})),Q=a(function(n,t){for(var r=t,e=0;e<n.length;){if(null==r)return;r=r[n[e]],e+=1}return r}),H=a(function(n,t){return Q([n],t)}),G=a(function(n,t){return V(H(n),t)}),Z=h(q),K=c(function(n){return d(Z(j,0,G("length",n)),function(){for(var t=0,r=n.length;t<r;){if(!n[t].apply(this,arguments))return!1;t+=1}return!0})}),Y=c(function(n){return function(){return n}}),X=a(function(n,t){return n&&t}),$=function(){function n(n,t){this.xf=t,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,t){return this.f(t)&&(this.any=!0,n=v(this.xf["@@transducer/step"](n,!0))),n},n}(),nn=a(x(["any"],a(function(n,t){return new $(n,t)}),function(n,t){for(var r=0;r<t.length;){if(n(t[r]))return!0;r+=1}return!1})),tn=c(function(n){return d(Z(j,0,G("length",n)),function(){for(var t=0,r=n.length;t<r;){if(n[t].apply(this,arguments))return!0;t+=1}return!1})}),rn=a(function(n,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](n):"function"==typeof n.ap?n.ap(t):"function"==typeof n?function(r){return n(r)(t(r))}:q(function(n,r){return s(n,V(r,t))},[],n)});function en(n,t){for(var r=0,e=t.length-(n-1),i=new Array(e>=0?e:0);r<e;)i[r]=Array.prototype.slice.call(t,r,r+n),r+=1;return i}var un=function(){function n(n,t){this.xf=t,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,t){return this.store(t),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 s(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}(),on=a(x([],a(function(n,t){return new un(n,t)}),en)),cn=a(function(n,t){return s(t,[n])}),an=a(function(n,t){return n.apply(this,t)}),fn=c(function(n){for(var t=z(n),r=t.length,e=[],i=0;i<r;)e[i]=n[t[i]],i+=1;return e});function sn(n,t){return z(t).reduce(function(r,e){return r[e]=n(t[e]),r},{})}var ln=c(function n(t){return t=sn(function(t){return"function"==typeof t?t:n(t)},t),d(Z(j,0,G("length",fn(t))),function(){var n=arguments;return sn(function(t){return an(t,n)},t)})}),pn=a(function(n,t){return t(n)}),dn=h(function(n,t,r){var e=n(t),i=n(r);return e<i?-1:e>i?1:0}),_n=h(function(n,t,r){var e={};for(var i in r)e[i]=r[i];return e[n]=t,e}),hn=Number.isInteger||function(n){return n<<0===n},gn=c(function(n){return null==n}),yn=h(function n(t,r,e){if(0===t.length)return r;var i=t[0];if(t.length>1){var u=!gn(e)&&W(i,e)?e[i]:hn(t[1])?[]:{};r=n(Array.prototype.slice.call(t,1),r,u)}if(hn(i)&&y(e)){var o=[].concat(e);return o[i]=r,o}return _n(i,r,e)}),mn=a(function(n,t){switch(n){case 0:return function(){return t.call(this)};case 1:return function(n){return t.call(this,n)};case 2:return function(n,r){return t.call(this,n,r)};case 3:return function(n,r,e){return t.call(this,n,r,e)};case 4:return function(n,r,e,i){return t.call(this,n,r,e,i)};case 5:return function(n,r,e,i,u){return t.call(this,n,r,e,i,u)};case 6:return function(n,r,e,i,u,o){return t.call(this,n,r,e,i,u,o)};case 7:return function(n,r,e,i,u,o,c){return t.call(this,n,r,e,i,u,o,c)};case 8:return function(n,r,e,i,u,o,c,a){return t.call(this,n,r,e,i,u,o,c,a)};case 9:return function(n,r,e,i,u,o,c,a,f){return t.call(this,n,r,e,i,u,o,c,a,f)};case 10:return function(n,r,e,i,u,o,c,a,f,s){return t.call(this,n,r,e,i,u,o,c,a,f,s)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),xn=c(function(n){return mn(2,n)});function vn(n){return"[object Function]"===Object.prototype.toString.call(n)}var bn=a(function(n,t){var r=d(n,t);return d(n,function(){return q(rn,V(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),wn=c(function(n){return bn(n.length,n)}),Sn=a(function(n,t){return vn(n)?function(){return n.apply(this,arguments)&&t.apply(this,arguments)}:wn(X)(n,t)}),jn=c(function(n){return d(n.length,n)}),On=jn(function(n){return n.apply(this,Array.prototype.slice.call(arguments,1))});function An(n){return function t(r){for(var e,i,u,o=[],c=0,a=r.length;c<a;){if(N(r[c]))for(u=0,i=(e=n?t(r[c]):r[c]).length;u<i;)o[o.length]=e[u],u+=1;else o[o.length]=r[c];c+=1}return o}}var Nn=function(n){var t=function(n){return{"@@transducer/init":b.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){var e=n["@@transducer/step"](t,r);return e["@@transducer/reduced"]?{"@@transducer/value":e,"@@transducer/reduced":!0}:e}}}(n);return{"@@transducer/init":b.init,"@@transducer/result":function(n){return t["@@transducer/result"](n)},"@@transducer/step":function(n,r){return N(r)?q(t,n,r):q(t,n,[r])}}},En=a(x(["fantasy-land/chain","chain"],a(function(n,t){return V(n,Nn(t))}),function(n,t){return"function"==typeof t?function(r){return n(t(r))(r)}:An(!1)(V(n,t))})),In=h(function(n,t,r){if(n>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return r<n?n:r>t?t:r});function kn(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))}var Pn=c(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function Rn(n,t,r,e){var i=function(i){for(var u=t.length,o=0;o<u;){if(n===t[o])return r[o];o+=1}for(var c in t[o+1]=n,r[o+1]=i,n)i[c]=e?Rn(n[c],t,r,!0):n[c];return i};switch(Pn(n)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(n.valueOf());case"RegExp":return kn(n);default:return n}}var Tn=c(function(n){return null!=n&&"function"==typeof n.clone?n.clone():Rn(n,[],[],!0)}),qn=c(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}}),Bn=c(function(n){return!n}),Cn=wn(Bn);function Wn(n,t){return function(){return t.call(this,n.apply(this,arguments))}}function Ln(n,t){return function(){var r=arguments.length;if(0===r)return t();var e=arguments[r-1];return y(e)||"function"!=typeof e[n]?t.apply(this,arguments):e[n].apply(e,Array.prototype.slice.call(arguments,0,r-1))}}var Mn=h(Ln("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),Fn=c(Ln("tail",Mn(1,1/0)));function Un(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return l(arguments[0].length,Z(Wn,arguments[0],Fn(arguments)))}var Jn=c(function(n){return A(n)?n.split("").reverse().join(""):Array.prototype.slice.call(n,0).reverse()});function Dn(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Un.apply(this,Jn(arguments))}function zn(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var n=Array.prototype.slice.call(arguments),t=n.pop();return Dn(Dn.apply(this,V(En,n)),t)}function Vn(n,t){return function(){var r=this;return n.apply(r,arguments).then(function(n){return t.call(r,n)})}}function Qn(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return l(arguments[0].length,Z(Vn,arguments[0],Fn(arguments)))}function Hn(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Qn.apply(this,Jn(arguments))}var Gn=a(function(n,t){var r=n<0?t.length+n:n;return A(t)?t.charAt(r):t[r]}),Zn=Gn(0);function Kn(n){return n}var Yn=c(Kn),Xn=a(function(n,t){if(t.length<=0)return Yn;var r=Zn(t),e=Fn(t);return l(r.length,function(){return q(function(t,r){return n.call(this,r,t)},r.apply(this,arguments),e)})}),$n=a(function(n,t){return Xn.apply(this,[n,Jn(t)])});function nt(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function tt(n,t,r){for(var e=0,i=r.length;e<i;){if(n(t,r[e]))return!0;e+=1}return!1}var rt="function"==typeof Object.is?Object.is:function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t};function et(n,t,r,e){var i=nt(n);function u(n,t){return it(n,t,r.slice(),e.slice())}return!tt(function(n,t){return!tt(u,t,n)},nt(t),i)}function it(n,t,r,e){if(rt(n,t))return!0;var i,u,o=Pn(n);if(o!==Pn(t))return!1;if(null==n||null==t)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof t.equals)return"function"==typeof n.equals&&n.equals(t)&&"function"==typeof t.equals&&t.equals(n);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(i=n.constructor,null==(u=String(i).match(/^function (\w*)/))?"":u[1]))return n===t;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof t||!rt(n.valueOf(),t.valueOf()))return!1;break;case"Date":if(!rt(n.valueOf(),t.valueOf()))return!1;break;case"Error":return n.name===t.name&&n.message===t.message;case"RegExp":if(n.source!==t.source||n.global!==t.global||n.ignoreCase!==t.ignoreCase||n.multiline!==t.multiline||n.sticky!==t.sticky||n.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===n)return e[c]===t;c-=1}switch(o){case"Map":return n.size===t.size&&et(n.entries(),t.entries(),r.concat([n]),e.concat([t]));case"Set":return n.size===t.size&&et(n.values(),t.values(),r.concat([n]),e.concat([t]));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=z(n);if(a.length!==z(t).length)return!1;var f=r.concat([n]),s=e.concat([t]);for(c=a.length-1;c>=0;){var l=a[c];if(!W(l,t)||!it(t[l],n[l],f,s))return!1;c-=1}return!0}var ut=a(function(n,t){return it(n,t,[],[])});function ot(n,t,r){var e,i;if("function"==typeof n.indexOf)switch(typeof t){case"number":if(0===t){for(e=1/t;r<n.length;){if(0===(i=n[r])&&1/i===e)return r;r+=1}return-1}if(t!=t){for(;r<n.length;){if("number"==typeof(i=n[r])&&i!=i)return r;r+=1}return-1}return n.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return n.indexOf(t,r);case"object":if(null===t)return n.indexOf(t,r)}for(;r<n.length;){if(ut(n[r],t))return r;r+=1}return-1}function ct(n,t){return ot(t,n,0)>=0}function at(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 ft=function(n){return(n<10?"0":"")+n},st="function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+ft(n.getUTCMonth()+1)+"-"+ft(n.getUTCDate())+"T"+ft(n.getUTCHours())+":"+ft(n.getUTCMinutes())+":"+ft(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function lt(n){return function(){return!n.apply(this,arguments)}}function pt(n,t){for(var r=0,e=t.length,i=[];r<e;)n(t[r])&&(i[i.length]=t[r]),r+=1;return i}function dt(n){return"[object Object]"===Object.prototype.toString.call(n)}var _t=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},n}(),ht=a(x(["filter"],a(function(n,t){return new _t(n,t)}),function(n,t){return dt(t)?q(function(r,e){return n(t[e])&&(r[e]=t[e]),r},{},z(t)):pt(n,t)})),gt=a(function(n,t){return ht(lt(n),t)});function yt(n,t){var r=function(r){var e=t.concat([n]);return ct(r,e)?"<Circular>":yt(r,e)},e=function(n,t){return O(function(t){return at(t)+": "+r(n[t])},t.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+O(r,n).join(", ")+"))";case"[object Array]":return"["+O(r,n).concat(e(n,gt(function(n){return/^\d+$/.test(n)},z(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?r(NaN):at(st(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":at(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var i=n.toString();if("[object Object]"!==i)return i}return"{"+e(n,z(n)).join(", ")+"}"}}var mt=c(function(n){return yt(n,[])}),xt=a(function(n,t){if(y(n)){if(y(t))return n.concat(t);throw new TypeError(mt(t)+" is not an array")}if(A(n)){if(A(t))return n+t;throw new TypeError(mt(t)+" is not a string")}if(null!=n&&vn(n["fantasy-land/concat"]))return n["fantasy-land/concat"](t);if(null!=n&&vn(n.concat))return n.concat(t);throw new TypeError(mt(n)+' does not have a method named "concat" or "fantasy-land/concat"')}),vt=c(function(n){return l(Z(j,0,V(function(n){return n[0].length},n)),function(){for(var t=0;t<n.length;){if(n[t][0].apply(this,arguments))return n[t][1].apply(this,arguments);t+=1}})}),bt=a(function(n,t){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new t}:jn(mn(n,function(n,r,e,i,u,o,c,a,f,s){switch(arguments.length){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,e);case 4:return new t(n,r,e,i);case 5:return new t(n,r,e,i,u);case 6:return new t(n,r,e,i,u,o);case 7:return new t(n,r,e,i,u,o,c);case 8:return new t(n,r,e,i,u,o,c,a);case 9:return new t(n,r,e,i,u,o,c,a,f);case 10:return new t(n,r,e,i,u,o,c,a,f,s)}}))}),wt=c(function(n){return bt(n.length,n)}),St=a(ct),jt=a(function(n,t){return d(Z(j,0,G("length",t)),function(){var r=arguments,e=this;return n.apply(e,O(function(n){return n.apply(e,r)},t))})}),Ot=function(){function n(n,t,r,e){this.valueFn=n,this.valueAcc=t,this.keyFn=r,this.xf=e,this.inputs={}}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){var t;for(t in this.inputs)if(W(t,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[t]))["@@transducer/reduced"]){n=n["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),n},n}(),At=p(4,[],x([],p(4,[],function(n,t,r,e){return new Ot(n,t,r,e)}),function(n,t,r,e){return q(function(e,i){var u=r(i);return e[u]=n(W(u,e)?e[u]:t,i),e},{},e)})),Nt=At(function(n,t){return n+1},0),Et=f(-1),It=a(function(n,t){return null==t||t!=t?n:t}),kt=h(function(n,t,r){var e=n(t),i=n(r);return e>i?-1:e<i?1:0});function Pt(n,t,r){var e,i=typeof n;switch(i){case"string":case"number":return 0===n&&1/n==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(e=r._nativeSet.size,r._nativeSet.add(n),r._nativeSet.size===e):r._nativeSet.has(n):i in r._items?n in r._items[i]||(t&&(r._items[i][n]=!0),!1):(t&&(r._items[i]={},r._items[i][n]=!0),!1);case"boolean":if(i in r._items){var u=n?1:0;return!!r._items[i][u]||(t&&(r._items[i][u]=!0),!1)}return t&&(r._items[i]=n?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(e=r._nativeSet.size,r._nativeSet.add(n),r._nativeSet.size===e):r._nativeSet.has(n):i in r._items?!!ct(n,r._items[i])||(t&&r._items[i].push(n),!1):(t&&(r._items[i]=[n]),!1);case"undefined":return!!r._items[i]||(t&&(r._items[i]=!0),!1);case"object":if(null===n)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(i=Object.prototype.toString.call(n))in r._items?!!ct(n,r._items[i])||(t&&r._items[i].push(n),!1):(t&&(r._items[i]=[n]),!1)}}var Rt=function(){function n(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return n.prototype.add=function(n){return!Pt(n,!0,this)},n.prototype.has=function(n){return Pt(n,!1,this)},n}(),Tt=a(function(n,t){for(var r=[],e=0,i=n.length,u=t.length,o=new Rt,c=0;c<u;c+=1)o.add(t[c]);for(;e<i;)o.add(n[e])&&(r[r.length]=n[e]),e+=1;return r}),qt=h(function(n,t,r){for(var e=[],i=0,u=t.length;i<u;)tt(n,t[i],r)||tt(n,t[i],e)||e.push(t[i]),i+=1;return e}),Bt=a(function(n,t){var r={};for(var e in t)r[e]=t[e];return delete r[n],r}),Ct=h(function(n,t,r){var e=Array.prototype.slice.call(r,0);return e.splice(n,t),e}),Wt=h(function(n,t,r){return g(n,Y(t),r)}),Lt=a(function n(t,r){switch(t.length){case 0:return r;case 1:return hn(t[0])&&y(r)?Ct(t[0],1,r):Bt(t[0],r);default:var e=t[0],i=Array.prototype.slice.call(t,1);return null==r[e]?r:hn(e)&&y(r)?Wt(e,n(i,r[e]),r):_n(e,n(i,r[e]),r)}}),Mt=a(function(n,t){return n/t}),Ft=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,t){return this.n>0?(this.n-=1,n):this.xf["@@transducer/step"](n,t)},n}(),Ut=a(x(["drop"],a(function(n,t){return new Ft(n,t)}),function(n,t){return Mn(Math.max(0,n),1/0,t)})),Jt=function(){function n(n,t){this.xf=t,this.n=n,this.i=0}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,t){this.i+=1;var r=0===this.n?n:this.xf["@@transducer/step"](n,t);return this.n>=0&&this.i>=this.n?v(r):r},n}(),Dt=a(x(["take"],a(function(n,t){return new Jt(n,t)}),function(n,t){return Mn(0,n<0?1/0:n,t)}));function zt(n,t){return Dt(n<t.length?t.length-n:0,t)}var Vt=function(){function n(n,t){this.xf=t,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,t){return this.full&&(n=this.xf["@@transducer/step"](n,this.acc[this.pos])),this.store(t),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}(),Qt=a(x([],a(function(n,t){return new Vt(n,t)}),zt));function Ht(n,t){for(var r=t.length-1;r>=0&&n(t[r]);)r-=1;return Mn(0,r+1,t)}var Gt=function(){function n(n,t){this.f=n,this.retained=[],this.xf=t}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.retained=null,this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.retain(n,t):this.flush(n,t)},n.prototype.flush=function(n,t){return n=q(this.xf["@@transducer/step"],n,this.retained),this.retained=[],this.xf["@@transducer/step"](n,t)},n.prototype.retain=function(n,t){return this.retained.push(t),n},n}(),Zt=a(x([],a(function(n,t){return new Gt(n,t)}),Ht)),Kt=function(){function n(n,t){this.xf=t,this.pred=n,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,t){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(r=!0):this.seenFirstValue=!0,this.lastValue=t,r?n:this.xf["@@transducer/step"](n,t)},n}(),Yt=a(function(n,t){return new Kt(n,t)}),Xt=Gn(-1),$t=a(x([],Yt,function(n,t){var r=[],e=1,i=t.length;if(0!==i)for(r[0]=t[0];e<i;)n(Xt(r),t[e])||(r[r.length]=t[e]),e+=1;return r})),nr=c(x([],Yt(ut),$t(ut))),tr=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=b.result,n.prototype["@@transducer/step"]=function(n,t){if(this.f){if(this.f(t))return n;this.f=null}return this.xf["@@transducer/step"](n,t)},n}(),rr=a(x(["dropWhile"],a(function(n,t){return new tr(n,t)}),function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return Mn(r,1/0,t)})),er=a(function(n,t){return n||t}),ir=a(function(n,t){return vn(n)?function(){return n.apply(this,arguments)||t.apply(this,arguments)}:wn(er)(n,t)}),ur=c(function(n){return null!=n&&"function"==typeof n["fantasy-land/empty"]?n["fantasy-land/empty"]():null!=n&&null!=n.constructor&&"function"==typeof n.constructor["fantasy-land/empty"]?n.constructor["fantasy-land/empty"]():null!=n&&"function"==typeof n.empty?n.empty():null!=n&&null!=n.constructor&&"function"==typeof n.constructor.empty?n.constructor.empty():y(n)?[]:A(n)?"":dt(n)?{}:M(n)?function(){return arguments}():void 0}),or=a(function(n,t){return Ut(n>=0?t.length-n:0,t)}),cr=a(function(n,t){return ut(or(n.length,t),n)}),ar=h(function(n,t,r){return ut(n(t),n(r))}),fr=h(function(n,t,r){return ut(t[n],r[n])}),sr=a(function n(t,r){var e,i,u,o=r instanceof Array?[]:{};for(i in r)u=typeof(e=t[i]),o[i]="function"===u?e(r[i]):e&&"object"===u?n(e,r[i]):r[i];return o}),lr=function(){function n(n,t){this.xf=t,this.f=n,this.found=!1}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,void 0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.found=!0,n=v(this.xf["@@transducer/step"](n,t))),n},n}(),pr=a(x(["find"],a(function(n,t){return new lr(n,t)}),function(n,t){for(var r=0,e=t.length;r<e;){if(n(t[r]))return t[r];r+=1}})),dr=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,-1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.found=!0,n=v(this.xf["@@transducer/step"](n,this.idx))),n},n}(),_r=a(x([],a(function(n,t){return new dr(n,t)}),function(n,t){for(var r=0,e=t.length;r<e;){if(n(t[r]))return r;r+=1}return-1})),hr=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.last))},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.last=t),n},n}(),gr=a(x([],a(function(n,t){return new hr(n,t)}),function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r-=1}})),yr=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=b.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.lastIdx))},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),n},n}(),mr=a(x([],a(function(n,t){return new yr(n,t)}),function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return r;r-=1}return-1})),xr=c(An(!0)),vr=c(function(n){return d(n.length,function(t,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=t,n.apply(this,e)})}),br=a(Ln("forEach",function(n,t){for(var r=t.length,e=0;e<r;)n(t[e]),e+=1;return t})),wr=a(function(n,t){for(var r=z(t),e=0;e<r.length;){var i=r[e];n(t[i],i,t),e+=1}return t}),Sr=c(function(n){for(var t={},r=0;r<n.length;)t[n[r][0]]=n[r][1],r+=1;return t}),jr=a(Ln("groupBy",At(function(n,t){return null==n&&(n=[]),n.push(t),n},null))),Or=a(function(n,t){for(var r=[],e=0,i=t.length;e<i;){for(var u=e+1;u<i&&n(t[u-1],t[u]);)u+=1;r.push(t.slice(e,u)),e=u}return r}),Ar=a(function(n,t){return n>t}),Nr=a(function(n,t){return n>=t}),Er=a(function(n,t){if(0===n.length)return!1;for(var r=t,e=0;e<n.length;){if(!W(n[e],r))return!1;r=r[n[e]],e+=1}return!0}),Ir=a(function(n,t){return Er([n],t)}),kr=a(function(n,t){return n in t}),Pr=a(rt),Rr=h(function(n,t,r){return d(Math.max(n.length,t.length,r.length),function(){return n.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),Tr=f(1),qr=a(ct),Br=At(function(n,t){return t},null),Cr=a(function(n,t){return"function"!=typeof t.indexOf||y(t)?ot(t,n,0):t.indexOf(n)}),Wr=Mn(0,-1),Lr=h(function(n,t,r){return pt(function(t){return tt(n,t,r)},t)}),Mr=h(function(n,t,r){n=n<r.length&&n>=0?n:r.length;var e=Array.prototype.slice.call(r,0);return e.splice(n,0,t),e}),Fr=h(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,[].concat(Array.prototype.slice.call(r,0,n),t,Array.prototype.slice.call(r,n))}),Ur=a(function(n,t){for(var r,e,i=new Rt,u=[],o=0;o<t.length;)r=n(e=t[o]),i.add(r)&&u.push(e),o+=1;return u}),Jr=Ur(Yn),Dr=a(function(n,t){var r,e;return n.length>t.length?(r=n,e=t):(r=t,e=n),Jr(pt(vr(ct)(r),e))}),zr=a(Ln("intersperse",function(n,t){for(var r=[],e=0,i=t.length;e<i;)e===i-1?r.push(t[e]):r.push(t[e],n),e+=1;return r}));var Vr="function"==typeof Object.assign?Object.assign:function(n){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),r=1,e=arguments.length;r<e;){var i=arguments[r];if(null!=i)for(var u in i)W(u,i)&&(t[u]=i[u]);r+=1}return t},Qr=a(function(n,t){var r={};return r[n]=t,r}),Hr={"@@transducer/init":Array,"@@transducer/step":function(n,t){return n.push(t),n},"@@transducer/result":Kn},Gr={"@@transducer/init":String,"@@transducer/step":function(n,t){return n+t},"@@transducer/result":Kn},Zr={"@@transducer/init":Object,"@@transducer/step":function(n,t){return Vr(n,N(t)?Qr(t[0],t[1]):t)},"@@transducer/result":Kn};var Kr=h(function(n,t,r){return m(n)?q(t(n),n["@@transducer/init"](),r):q(t(function(n){if(m(n))return n;if(N(n))return Hr;if("string"==typeof n)return Gr;if("object"==typeof n)return Zr;throw new Error("Cannot create transformer for "+n)}(n)),Rn(n,[],[],!1),r)}),Yr=c(function(n){for(var t=z(n),r=t.length,e=0,i={};e<r;){var u=t[e],o=n[u],c=W(o,i)?i[o]:i[o]=[];c[c.length]=u,e+=1}return i}),Xr=c(function(n){for(var t=z(n),r=t.length,e=0,i={};e<r;){var u=t[e];i[n[u]]=u,e+=1}return i}),$r=a(function(n,t){return d(n+1,function(){var r=arguments[n];if(null!=r&&vn(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,n));throw new TypeError(mt(r)+' does not have a method named "'+t+'"')})}),ne=a(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),te=c(function(n){return null!=n&&ut(n,ur(n))}),re=$r(1,"join"),ee=c(function(n){return jt(function(){return Array.prototype.slice.call(arguments,0)},n)}),ie=c(function(n){var t,r=[];for(t in n)r[r.length]=t;return r}),ue=a(function(n,t){if("function"!=typeof t.lastIndexOf||y(t)){for(var r=t.length-1;r>=0;){if(ut(t[r],n))return r;r-=1}return-1}return t.lastIndexOf(n)});function oe(n){return"[object Number]"===Object.prototype.toString.call(n)}var ce=c(function(n){return null!=n&&oe(n.length)?n.length:NaN}),ae=a(function(n,t){return function(r){return function(e){return V(function(n){return t(n,e)},r(n(e)))}}}),fe=c(function(n){return ae(Gn(n),Wt(n))}),se=c(function(n){return ae(Q(n),yn(n))}),le=c(function(n){return ae(H(n),_n(n))}),pe=a(function(n,t){return n<t}),de=a(function(n,t){return n<=t}),_e=h(function(n,t,r){for(var e=0,i=r.length,u=[],o=[t];e<i;)o=n(o[0],r[e]),u[e]=o[1],e+=1;return[o[0],u]}),he=h(function(n,t,r){for(var e=r.length-1,i=[],u=[t];e>=0;)u=n(u[0],r[e]),i[e]=u[1],e-=1;return[u[0],i]}),ge=a(function(n,t){return q(function(r,e){return r[e]=n(t[e],e,t),r},{},z(t))}),ye=a(function(n,t){return t.match(n)||[]}),me=a(function(n,t){return hn(n)?!hn(t)||t<1?NaN:(n%t+t)%t:NaN}),xe=h(function(n,t,r){return n(r)>n(t)?r:t}),ve=Z(f,0),be=c(function(n){return ve(n)/n.length}),we=c(function(n){var t=n.length;if(0===t)return NaN;var r=2-t%2,e=(t-r)/2;return be(Array.prototype.slice.call(n,0).sort(function(n,t){return n<t?-1:n>t?1:0}).slice(e,e+r))}),Se=a(function(n,t){var r={};return l(t.length,function(){var e=n.apply(this,arguments);return W(e,r)||(r[e]=t.apply(this,arguments)),r[e]})}),je=a(function(n,t){return Vr({},n,t)}),Oe=c(function(n){return Vr.apply(null,[{}].concat(n))}),Ae=h(function(n,t,r){var e,i={};for(e in t)W(e,t)&&(i[e]=W(e,r)?n(e,t[e],r[e]):t[e]);for(e in r)W(e,r)&&!W(e,i)&&(i[e]=r[e]);return i}),Ne=h(function n(t,r,e){return Ae(function(r,e,i){return dt(e)&&dt(i)?n(t,e,i):t(r,e,i)},r,e)}),Ee=a(function(n,t){return Ne(function(n,t,r){return t},n,t)}),Ie=a(function(n,t){return Ne(function(n,t,r){return r},n,t)}),ke=h(function(n,t,r){return Ne(function(t,r,e){return n(r,e)},t,r)}),Pe=a(function(n,t){return Vr({},t,n)}),Re=a(function(n,t){return Vr({},n,t)}),Te=h(function(n,t,r){return Ae(function(t,r,e){return n(r,e)},t,r)}),qe=a(function(n,t){return t<n?t:n}),Be=h(function(n,t,r){return n(r)<n(t)?r:t}),Ce=a(function(n,t){return n%t}),We=h(function(n,t,r){var e=r.length,i=r.slice(),u=n<0?e+n:n,o=t<0?e+t:t,c=i.splice(u,1);return u<0||u>=r.length||o<0||o>=r.length?r:[].concat(i.slice(0,o)).concat(c).concat(i.slice(o,r.length))}),Le=a(function(n,t){return n*t}),Me=c(function(n){return-n}),Fe=a(function(n,t){return S(lt(n),t)}),Ue=c(function(n){return d(n<0?1:n+1,function(){return Gn(n,arguments)})}),Je=h(function(n,t,r){return n(t(r))});function De(n){return[n]}var ze=c(De),Ve=a(function(n,t){for(var r={},e={},i=0,u=n.length;i<u;)e[n[i]]=1,i+=1;for(var o in t)e.hasOwnProperty(o)||(r[o]=t[o]);return r}),Qe=c(function(n){var t,r=!1;return l(n.length,function(){return r?t:(r=!0,t=n.apply(this,arguments))})});function He(n,t){if(null==t||!vn(t.then))throw new TypeError("`"+n+"` expected a Promise, received "+yt(t,[]))}var Ge=a(function(n,t){return He("otherwise",t),t.then(null,n)}),Ze=function(n){return{value:n,map:function(t){return Ze(t(n))}}},Ke=h(function(n,t,r){return n(function(n){return Ze(t(n))})(r).value}),Ye=a(function(n,t){return[n,t]});function Xe(n){return a(function(t,r){return l(Math.max(0,t.length-r.length),function(){return t.apply(this,n(r,arguments))})})}var $e=Xe(s),ni=Xe(vr(s)),ti=ee([ht,gt]),ri=h(function(n,t,r){return ut(Q(n,r),t)}),ei=h(function(n,t,r){return It(n,Q(t,r))}),ii=h(function(n,t,r){return t.length>0&&n(Q(t,r))}),ui=a(function(n,t){for(var r={},e=0;e<n.length;)n[e]in t&&(r[n[e]]=t[n[e]]),e+=1;return r}),oi=a(function(n,t){for(var r={},e=0,i=n.length;e<i;){var u=n[e];r[u]=t[u],e+=1}return r}),ci=a(function(n,t){var r={};for(var e in t)n(t[e],e,t)&&(r[e]=t[e]);return r});function ai(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return zn.apply(this,Jn(arguments))}var fi=a(function(n,t){return s([n],t)}),si=Z(Le,1),li=a(function(n,t){return d(t.length,function(){for(var r=[],e=0;e<t.length;)r.push(t[e].call(this,arguments[e])),e+=1;return n.apply(this,r.concat(Array.prototype.slice.call(arguments,t.length)))})}),pi=li(O,[oi,Yn]),di=h(function(n,t,r){retur