beancount-gs/public/static/js/11.149e9590.chunk.js

1 line
11 KiB
JavaScript

(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[11],{100:function(e,n,t){var a=t(72);e.exports=function(){return a.Date.now()}},101:function(e,n,t){var a=t(102),c=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(c,""):e}},102:function(e,n){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},124:function(e,n,t){"use strict";var a=t(3),c=t(41),r=t(46),o=t(49),i=t(50),s=t(51),l=t(0),u=t(40),p=t.n(u),d=t(54),f=t(99),m=t.n(f),b=t(138),v=t(75),y=t(62),O=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(e);c<a.length;c++)n.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(t[a[c]]=e[a[c]])}return t},h=(Object(v.a)("small","default","large"),null);var g=function(e){Object(i.a)(t,e);var n=Object(s.a)(t);function t(e){var o;Object(r.a)(this,t),(o=n.call(this,e)).debouncifyUpdateSpinning=function(e){var n=(e||o.props).delay;n&&(o.cancelExistingSpin(),o.updateSpinning=m()(o.originalUpdateSpinning,n))},o.updateSpinning=function(){var e=o.props.spinning;o.state.spinning!==e&&o.setState({spinning:e})},o.renderSpin=function(e){var n,t=e.getPrefixCls,r=e.direction,i=o.props,s=i.prefixCls,u=i.className,f=i.size,m=i.tip,b=i.wrapperClassName,v=i.style,g=O(i,["prefixCls","className","size","tip","wrapperClassName","style"]),j=o.state.spinning,N=t("spin",s),E=p()(N,(n={},Object(c.a)(n,"".concat(N,"-sm"),"small"===f),Object(c.a)(n,"".concat(N,"-lg"),"large"===f),Object(c.a)(n,"".concat(N,"-spinning"),j),Object(c.a)(n,"".concat(N,"-show-text"),!!m),Object(c.a)(n,"".concat(N,"-rtl"),"rtl"===r),n),u),x=Object(d.a)(g,["spinning","delay","indicator"]),C=l.createElement("div",Object(a.a)({},x,{style:v,className:E}),function(e,n){var t=n.indicator,a="".concat(e,"-dot");return null===t?null:Object(y.b)(t)?Object(y.a)(t,{className:p()(t.props.className,a)}):Object(y.b)(h)?Object(y.a)(h,{className:p()(h.props.className,a)}):l.createElement("span",{className:p()(a,"".concat(e,"-dot-spin"))},l.createElement("i",{className:"".concat(e,"-dot-item")}),l.createElement("i",{className:"".concat(e,"-dot-item")}),l.createElement("i",{className:"".concat(e,"-dot-item")}),l.createElement("i",{className:"".concat(e,"-dot-item")}))}(N,o.props),m?l.createElement("div",{className:"".concat(N,"-text")},m):null);if(o.isNestedPattern()){var w=p()("".concat(N,"-container"),Object(c.a)({},"".concat(N,"-blur"),j));return l.createElement("div",Object(a.a)({},x,{className:p()("".concat(N,"-nested-loading"),b)}),j&&l.createElement("div",{key:"loading"},C),l.createElement("div",{className:w,key:"container"},o.props.children))}return C};var i=e.spinning,s=function(e,n){return!!e&&!!n&&!isNaN(Number(n))}(i,e.delay);return o.state={spinning:i&&!s},o.originalUpdateSpinning=o.updateSpinning,o.debouncifyUpdateSpinning(e),o}return Object(o.a)(t,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||"undefined"===typeof this.props.children)}},{key:"render",value:function(){return l.createElement(b.a,null,this.renderSpin)}}],[{key:"setDefaultIndicator",value:function(e){h=e}}]),t}(l.Component);g.defaultProps={spinning:!0,size:"default",wrapperClassName:""},n.a=g},461:function(e,n,t){"use strict";var a=t(3),c=t(41),r=t(43),o=t(0),i=t(78),s=t(200),l=t(203),u=t(201),p=t(202),d=t(139),f=t(162),m=t(204),b=t(110),v=t(69),y=t(40),O=t.n(y),h=t(138);var g=t(46),j=t(49),N=t(50),E=t(51),x=function(e){Object(N.a)(t,e);var n=Object(E.a)(t);function t(){var e;return Object(g.a)(this,t),(e=n.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return Object(j.a)(t,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){var e=this.props,n=e.message,t=e.description,a=e.children,c=this.state,r=c.error,i=c.info,s=i&&i.componentStack?i.componentStack:null,l="undefined"===typeof n?(r||"").toString():n,u="undefined"===typeof t?s:t;return r?o.createElement(I,{type:"error",message:l,description:o.createElement("pre",null,u)}):a}}]),t}(o.Component),C=t(62),w=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(e);c<a.length;c++)n.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(t[a[c]]=e[a[c]])}return t},k={success:d.a,info:m.a,error:b.a,warning:f.a},S={success:s.a,info:u.a,error:p.a,warning:l.a},P=function(e){var n,t=e.description,s=e.prefixCls,l=e.message,u=e.banner,p=e.className,d=void 0===p?"":p,f=e.style,m=e.onMouseEnter,b=e.onMouseLeave,y=e.onClick,g=e.afterClose,j=e.showIcon,N=e.closable,E=e.closeText,x=e.action,P=w(e,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","action"]),I=o.useState(!1),T=Object(r.a)(I,2),M=T[0],D=T[1],U=o.useRef(),L=o.useContext(h.b),z=L.getPrefixCls,_=L.direction,H=z("alert",s),R=function(e){var n;D(!0),null===(n=P.onClose)||void 0===n||n.call(P,e)},W=!!E||N,A=function(){var e=P.type;return void 0!==e?e:u?"warning":"info"}(),K=!(!u||void 0!==j)||j,$=O()(H,"".concat(H,"-").concat(A),(n={},Object(c.a)(n,"".concat(H,"-with-description"),!!t),Object(c.a)(n,"".concat(H,"-no-icon"),!K),Object(c.a)(n,"".concat(H,"-banner"),!!u),Object(c.a)(n,"".concat(H,"-rtl"),"rtl"===_),n),d),J=function(e){return Object.keys(e).reduce((function(n,t){return"data-"!==t.substr(0,5)&&"aria-"!==t.substr(0,5)&&"role"!==t||"data-__"===t.substr(0,7)||(n[t]=e[t]),n}),{})}(P);return o.createElement(v.b,{visible:!M,motionName:"".concat(H,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(e){return{maxHeight:e.offsetHeight}},onLeaveEnd:g},(function(e){var n=e.className,r=e.style;return o.createElement("div",Object(a.a)({ref:U,"data-show":!M,className:O()($,n),style:Object(a.a)(Object(a.a)({},f),r),onMouseEnter:m,onMouseLeave:b,onClick:y,role:"alert"},J),K?function(){var e=P.icon,n=(t?S:k)[A]||null;return e?Object(C.c)(e,o.createElement("span",{className:"".concat(H,"-icon")},e),(function(){return{className:O()("".concat(H,"-icon"),Object(c.a)({},e.props.className,e.props.className))}})):o.createElement(n,{className:"".concat(H,"-icon")})}():null,o.createElement("div",{className:"".concat(H,"-content")},o.createElement("div",{className:"".concat(H,"-message")},l),o.createElement("div",{className:"".concat(H,"-description")},t)),x?o.createElement("div",{className:"".concat(H,"-action")},x):null,W?o.createElement("button",{type:"button",onClick:R,className:"".concat(H,"-close-icon"),tabIndex:0},E?o.createElement("span",{className:"".concat(H,"-close-text")},E):o.createElement(i.a,null)):null)}))};P.ErrorBoundary=x;var I=n.a=P},464:function(e,n,t){"use strict";var a=t(3),c=t(41),r=t(0),o=t(43),i=t(45),s=t(40),l=t.n(s),u=t(65),p=t(63),d=r.forwardRef((function(e,n){var t,a=e.prefixCls,s=void 0===a?"rc-switch":a,d=e.className,f=e.checked,m=e.defaultChecked,b=e.disabled,v=e.loadingIcon,y=e.checkedChildren,O=e.unCheckedChildren,h=e.onClick,g=e.onChange,j=e.onKeyDown,N=Object(i.a)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),E=Object(u.a)(!1,{value:f,defaultValue:m}),x=Object(o.a)(E,2),C=x[0],w=x[1];function k(e,n){var t=C;return b||(w(t=e),null===g||void 0===g||g(t,n)),t}var S=l()(s,d,(t={},Object(c.a)(t,"".concat(s,"-checked"),C),Object(c.a)(t,"".concat(s,"-disabled"),b),t));return r.createElement("button",Object.assign({},N,{type:"button",role:"switch","aria-checked":C,disabled:b,className:S,ref:n,onKeyDown:function(e){e.which===p.a.LEFT?k(!1,e):e.which===p.a.RIGHT&&k(!0,e),null===j||void 0===j||j(e)},onClick:function(e){var n=k(!C,e);null===h||void 0===h||h(n,e)}}),v,r.createElement("span",{className:"".concat(s,"-inner")},C?y:O))}));d.displayName="Switch";var f=d,m=t(111),b=t(137),v=t(138),y=t(74),O=t(64),h=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(e);c<a.length;c++)n.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(t[a[c]]=e[a[c]])}return t},g=r.forwardRef((function(e,n){var t,o=e.prefixCls,i=e.size,s=e.loading,u=e.className,p=void 0===u?"":u,d=e.disabled,g=h(e,["prefixCls","size","loading","className","disabled"]);Object(O.a)("checked"in g||!("value"in g),"Switch","`value` is not a valid prop, do you mean `checked`?");var j=r.useContext(v.b),N=j.getPrefixCls,E=j.direction,x=r.useContext(y.b),C=N("switch",o),w=r.createElement("div",{className:"".concat(C,"-handle")},s&&r.createElement(m.a,{className:"".concat(C,"-loading-icon")})),k=l()((t={},Object(c.a)(t,"".concat(C,"-small"),"small"===(i||x)),Object(c.a)(t,"".concat(C,"-loading"),s),Object(c.a)(t,"".concat(C,"-rtl"),"rtl"===E),t),p);return r.createElement(b.a,{insertExtraNode:!0},r.createElement(f,Object(a.a)({},g,{prefixCls:C,className:k,disabled:d||s,ref:n,loadingIcon:w})))}));g.__ANT_SWITCH=!0,g.displayName="Switch";n.a=g},85:function(e,n,t){var a=t(101),c=t(80),r=t(86),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(c(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=c(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var t=i.test(e);return t||s.test(e)?l(e.slice(2),t?2:8):o.test(e)?NaN:+e}},86:function(e,n,t){var a=t(89),c=t(90);e.exports=function(e){return"symbol"==typeof e||c(e)&&"[object Symbol]"==a(e)}},99:function(e,n,t){var a=t(80),c=t(100),r=t(85),o=Math.max,i=Math.min;e.exports=function(e,n,t){var s,l,u,p,d,f,m=0,b=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function O(n){var t=s,a=l;return s=l=void 0,m=n,p=e.apply(a,t)}function h(e){return m=e,d=setTimeout(j,n),b?O(e):p}function g(e){var t=e-f;return void 0===f||t>=n||t<0||v&&e-m>=u}function j(){var e=c();if(g(e))return N(e);d=setTimeout(j,function(e){var t=n-(e-f);return v?i(t,u-(e-m)):t}(e))}function N(e){return d=void 0,y&&s?O(e):(s=l=void 0,p)}function E(){var e=c(),t=g(e);if(s=arguments,l=this,f=e,t){if(void 0===d)return h(f);if(v)return clearTimeout(d),d=setTimeout(j,n),O(f)}return void 0===d&&(d=setTimeout(j,n)),p}return n=r(n)||0,a(t)&&(b=!!t.leading,u=(v="maxWait"in t)?o(r(t.maxWait)||0,n):u,y="trailing"in t?!!t.trailing:y),E.cancel=function(){void 0!==d&&clearTimeout(d),m=0,s=f=l=d=void 0},E.flush=function(){return void 0===d?p:N(c())},E}}}]);