From a1c47b7ca35574cb6d05fefd904aaf972202966a Mon Sep 17 00:00:00 2001 From: matao3754 <375477717@qq.com> Date: Sun, 7 Jun 2020 09:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0endpoint=E5=B1=8F=E8=94=BD,?= =?UTF-8?q?=E5=B9=B6=E4=B8=94=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=BF=85=E5=A1=AB=E9=A1=B9,=E5=8E=BB=E9=99=A4mcache?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修改: go.mod 修改: go.sum 重命名: pub/index-c6eeb66b35b8fd41c6bf.css -> pub/index-835a6df5e01917561f12.css 新文件: pub/index-835a6df5e01917561f12.js 新文件: pub/index-835a6df5e01917561f12.js.map 删除: pub/index-c6eeb66b35b8fd41c6bf.js 删除: pub/index-c6eeb66b35b8fd41c6bf.js.map 修改: pub/index.html 修改: src/model/user.go 修改: src/modules/monapi/cron/mask.go 修改: src/modules/monapi/mcache/mask.go 修改: web/package-lock.json 修改: web/src/pages/Monitor/Silence/CustomForm.tsx * Update mask.go Co-authored-by: 马涛 --- go.mod | 1 + go.sum | 2 + ...6bf.css => index-835a6df5e01917561f12.css} | 0 pub/index-835a6df5e01917561f12.js | 15 + pub/index-835a6df5e01917561f12.js.map | 1 + pub/index-c6eeb66b35b8fd41c6bf.js | 15 - pub/index-c6eeb66b35b8fd41c6bf.js.map | 1 - pub/index.html | 2 +- src/model/user.go | 16 +- src/modules/monapi/cron/mask.go | 8 +- src/modules/monapi/mcache/mask.go | 7 - web/package-lock.json | 4379 +++++++++-------- web/src/pages/Monitor/Silence/CustomForm.tsx | 2 +- 13 files changed, 2360 insertions(+), 2089 deletions(-) rename pub/{index-c6eeb66b35b8fd41c6bf.css => index-835a6df5e01917561f12.css} (100%) create mode 100644 pub/index-835a6df5e01917561f12.js create mode 100644 pub/index-835a6df5e01917561f12.js.map delete mode 100644 pub/index-c6eeb66b35b8fd41c6bf.js delete mode 100644 pub/index-c6eeb66b35b8fd41c6bf.js.map diff --git a/go.mod b/go.mod index 0779f2fe..a51d52ed 100644 --- a/go.mod +++ b/go.mod @@ -17,6 +17,7 @@ require ( github.com/json-iterator/go v1.1.9 github.com/mattn/go-isatty v0.0.12 github.com/open-falcon/rrdlite v0.0.0-20200214140804-bf5829f786ad + github.com/shirou/gopsutil v2.20.4+incompatible github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 github.com/spf13/viper v1.6.2 github.com/stretchr/testify v1.4.0 diff --git a/go.sum b/go.sum index 0a0f383b..21ee46aa 100644 --- a/go.sum +++ b/go.sum @@ -280,6 +280,8 @@ github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b/go.mod h1:dA0hQrY github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/shirou/gopsutil v2.20.4+incompatible h1:cMT4rxS55zx9NVUnCkrmXCsEB/RNfG9SwHY9evtX8Ng= +github.com/shirou/gopsutil v2.20.4+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= diff --git a/pub/index-c6eeb66b35b8fd41c6bf.css b/pub/index-835a6df5e01917561f12.css similarity index 100% rename from pub/index-c6eeb66b35b8fd41c6bf.css rename to pub/index-835a6df5e01917561f12.css diff --git a/pub/index-835a6df5e01917561f12.js b/pub/index-835a6df5e01917561f12.js new file mode 100644 index 00000000..217bc0e1 --- /dev/null +++ b/pub/index-835a6df5e01917561f12.js @@ -0,0 +1,15 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=399)}([function(e,t,n){e.exports=n(19)(2)},function(e,t,n){e.exports=n(19)(0)},function(e,t,n){e.exports=n(19)(936)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=!1;function d(){f||(f=!0,s()(!1,"Tree only accept TreeNode as children."))}function h(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function p(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function m(e){return e.split("-")}function g(e,t){return"".concat(e,"-").concat(t)}function v(e){return e&&e.type&&e.type.isTreeNode}function y(e){return Object(i.default)(e).filter(v)}function b(e){var t=e.props||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function w(e,t){!function n(o,i,a){var s=o?o.props.children:e,l=o?g(a.pos,i):0,c=y(s);if(o){var u={node:o,index:i,pos:l,key:o.key||l,parentPos:a.node?a.pos:null};t(u)}r.Children.forEach(c,(function(e,t){n(e,t,{node:o,pos:l})}))}(null)}function E(e,t){var n=Object(i.default)(e).map(t);return 1===n.length?n[0]:n}function C(e,t){var n=t.props,r=n.eventKey,o=n.pos,i=[];return w(e,(function(e){var t=e.key;i.push(t)})),i.push(r||o),i}function k(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,i=r.bottom,a=r.height,s=Math.max(.25*a,2);return n<=o+s?-1:n>=i-s?1:0}function O(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function S(e){return e?e.map((function(e){return String(e)})):e}var x=function(e){return e};function P(e,t){if(!e)return[];var n=(t||{}).processProps,r=void 0===n?x:n;return(Array.isArray(e)?e:[e]).map((function(e){var n=e.children,i=u(e,["children"]),a=P(n,t);return o.a.createElement(l.a,Object.assign({},r(i)),a)}))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i={},a={},s={posEntities:i,keyEntities:a};return n&&(s=n(s)||s),w(e,(function(e){var t=e.node,n=e.index,o=e.pos,l=e.key,c=e.parentPos,u={node:t,index:n,key:l,pos:o};i[o]=u,a[l]=u,u.parent=i[c],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,s)})),o&&o(s),s}function A(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==c(e))return s()(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t.checkedKeys=S(t.checkedKeys),t.halfCheckedKeys=S(t.halfCheckedKeys),t}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={},i={};function a(e){if(o[e]!==t){var r=n[e];if(r){var s=r.children,l=r.parent;if(!b(r.node)){var c=!0,u=!1;(s||[]).filter((function(e){return!b(e.node)})).forEach((function(e){var t=e.key,n=o[t],r=i[t];(n||r)&&(u=!0),n||(c=!1)})),o[e]=!!t&&c,i[e]=u,l&&a(l.key)}}}}function l(e){if(o[e]!==t){var r=n[e];if(r){var i=r.children;b(r.node)||(o[e]=t,(i||[]).forEach((function(e){l(e.key)})))}}}function c(e){var r=n[e];if(r){var i=r.children,c=r.parent,u=r.node;o[e]=t,b(u)||((i||[]).filter((function(e){return!b(e.node)})).forEach((function(e){l(e.key)})),c&&a(c.key))}else s()(!1,"'".concat(e,"' does not exist in the tree."))}(r.checkedKeys||[]).forEach((function(e){o[e]=!0})),(r.halfCheckedKeys||[]).forEach((function(e){i[e]=!0})),(e||[]).forEach((function(e){c(e)}));var u=[],f=[];return Object.keys(o).forEach((function(e){o[e]&&u.push(e)})),Object.keys(i).forEach((function(e){!o[e]&&i[e]&&f.push(e)})),{checkedKeys:u,halfCheckedKeys:f}}function M(e,t){var n={};return(e||[]).forEach((function(e){!function e(r){if(!n[r]){var o=t[r];if(o){n[r]=!0;var i=o.parent,a=o.node;a.props&&a.props.disabled||i&&e(i.key)}}}(e)})),Object.keys(n)}function R(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},function(e,t,n){e.exports=n(19)(1323)},function(e,t,n){"use strict";n(37),n(208)},function(e,t,n){"use strict";n(37),n(286)},function(e,t,n){},function(e,t,n){e.exports=n(19)(37)},function(e,t,n){e.exports=n(19)(32)},function(e,t,n){"use strict";var r=n(126),o=n(153),i={}.hasOwnProperty;var a=["$push","$unshift","$splice","$set","$merge","$apply"],s={};function l(e,t,n){o(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e);var r=t[n];o(Array.isArray(r),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",n,r)}a.forEach((function(e){s[e]=!0})),e.exports=function e(t,n){if(o("object"==typeof n,"update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?",a.join(", "),"$set"),i.call(n,"$set"))return o(1===Object.keys(n).length,"Cannot have more than one key in an object with %s","$set"),n.$set;var c,u=(c=t,Array.isArray(c)?c.concat():c&&"object"==typeof c?r(new c.constructor,c):c);if(i.call(n,"$merge")){var f=n.$merge;o(f&&"object"==typeof f,"update(): %s expects a spec of type 'object'; got %s","$merge",f),o(u&&"object"==typeof u,"update(): %s expects a target of type 'object'; got %s","$merge",u),r(u,n.$merge)}for(var d in i.call(n,"$push")&&(l(t,n,"$push"),n.$push.forEach((function(e){u.push(e)}))),i.call(n,"$unshift")&&(l(t,n,"$unshift"),n.$unshift.forEach((function(e){u.unshift(e)}))),i.call(n,"$splice")&&(o(Array.isArray(t),"Expected %s target to be an array; got %s","$splice",t),o(Array.isArray(n.$splice),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?","$splice",n.$splice),n.$splice.forEach((function(e){o(Array.isArray(e),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?","$splice",n.$splice),u.splice.apply(u,e)}))),i.call(n,"$apply")&&(o("function"==typeof n.$apply,"update(): expected spec of %s to be a function; got %s.","$apply",n.$apply),u=n.$apply(u)),n)s.hasOwnProperty(d)&&s[d]||(u[d]=e(t[d],n[d]));return u}},function(e,t,n){"use strict";n(37),n(224),n(125)},function(e,t,n){"use strict";n(37),n(321),n(35)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(30),i=f(n(63)),a=f(n(20)),s=f(n(12)),l=f(n(111)),c=f(n(185)),u=n(44);function f(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t0?"-".concat(h):h,w=(0,a.default)(p,y,"".concat(y,"-").concat(l),(u(n={},"".concat(y,"-with-text").concat(b),m),u(n,"".concat(y,"-dashed"),!!g),n));return i.createElement("div",c({className:w},v,{role:"separator"}),m&&i.createElement("span",{className:"".concat(y,"-inner-text")},m))}))};t.default=d},function(e,t,n){"use strict";n(37),n(320),n(130)},function(e,t,n){"use strict";n(37),n(211)},function(e,t,n){"use strict";var r=n(225),o=n(126),i=n(226);function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function l(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:i(a),n(i(o),a,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r}t.extract=s,t.parse=l,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[a(t,e),"[",r,"]"].join(""):[a(t,e),"[",a(r,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return a(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return a(r,t)+"="+a(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:l(s(e),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(0)),o=h(n(400)),i=f(n(16)),a=f(n(70)),s=n(44),l=f(n(71)),c=n(363),u=f(n(20));function f(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[r];r=0&&("small"===g||"large"===g)),"Tabs","`type=card|editable-card` doesn't have small or large size, it's by design.");var T=o("tabs",h),M=(0,s.default)(m,(y(n={},"".concat(T,"-vertical"),"left"===C||"right"===C),y(n,"".concat(T,"-").concat(g),!!g),y(n,"".concat(T,"-card"),E.indexOf("card")>=0),y(n,"".concat(T,"-").concat(E),!0),y(n,"".concat(T,"-no-animation"),!A),n)),R=[];"editable-card"===E&&(R=[],r.Children.forEach(k,(function(t,n){if(!r.isValidElement(t))return t;var o=t.props.closable,i=(o=void 0===o||o)?r.createElement(u.default,{type:"close",className:"".concat(T,"-close-x"),onClick:function(n){return e.removeTab(t.key,n)}}):null;R.push(r.cloneElement(t,{tab:r.createElement("div",{className:o?void 0:"".concat(T,"-tab-unclosable")},t.props.tab,i),key:t.key||n}))})),P||(_=r.createElement("span",null,r.createElement(u.default,{type:"plus",className:"".concat(T,"-new-tab"),onClick:e.createNewTab}),_))),_=_?r.createElement("div",{className:"".concat(T,"-extra-content")},_):null;var D=x(e.props,[]),N=(0,s.default)("".concat(T,"-").concat(C,"-content"),E.indexOf("card")>=0&&"".concat(T,"-card-content"));return r.createElement(i.default,v({},e.props,{prefixCls:T,className:M,tabBarPosition:C,renderTabBar:function(){return r.createElement(c.default,v({},(0,l.default)(D,["className"]),{tabBarExtraContent:_}))},renderTabContent:function(){return r.createElement(a.default,{className:N,animated:A,animatedWithMargin:!0})},onChange:e.handleChange}),R.length>0?R:k)},e}return n=P,(p=[{key:"componentDidMount",value:function(){var e=o.findDOMNode(this);e&&!h.isFlexSupported&&-1===e.className.indexOf(" no-flex")&&(e.className+=" no-flex")}},{key:"render",value:function(){return r.createElement(f.ConfigConsumer,null,this.renderTabs)}}])&&E(n.prototype,p),m&&E(n,m),P}(r.Component);t.default=P,P.TabPane=i.TabPane,P.defaultProps={hideAdd:!1,tabPosition:"top"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var i,a,s,l=(i=r,a="undefined"!=typeof window?window:{},s={animationend:o("Animation","AnimationEnd"),transitionend:o("Transition","TransitionEnd")},i&&("AnimationEvent"in a||delete s.animationend.animation,"TransitionEvent"in a||delete s.transitionend.transition),s),c={};r&&(c=document.createElement("div").style);var u={};function f(e){if(u[e])return u[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:0,i=e.state,a=i.keyEntities,s=i.expandedKeys,l=void 0===s?[]:s,c=i.selectedKeys,u=void 0===c?[]:c,f=i.halfCheckedKeys,d=void 0===f?[]:f,p=i.loadedKeys,m=void 0===p?[]:p,g=i.loadingKeys,v=void 0===g?[]:g,y=i.dragOverNodeKey,b=i.dropPosition,w=Object(h.l)(o,n),E=t.key||w;return a[E]?r.cloneElement(t,{key:E,eventKey:E,expanded:-1!==l.indexOf(E),selected:-1!==u.indexOf(E),loaded:-1!==m.indexOf(E),loading:-1!==v.indexOf(E),checked:e.isKeyChecked(E),halfChecked:-1!==d.indexOf(E),pos:w,dragOver:y===E&&0===b,dragOverGapTop:y===E&&-1===b,dragOverGapBottom:y===E&&1===b}):(Object(h.p)(),null)},e}return n=l,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};function o(t){return!n&&t in e||n&&n[t]!==e[t]}var i=null;if(o("treeData")?i=Object(h.g)(e.treeData):o("children")&&(i=Object(u.default)(e.children)),i){r.treeNode=i;var a=Object(h.h)(i);r.keyEntities=a.keyEntities}var s,l=r.keyEntities||t.keyEntities;if(o("expandedKeys")||n&&o("autoExpandParent")?r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?Object(h.f)(e.expandedKeys,l):e.expandedKeys:!n&&e.defaultExpandAll?r.expandedKeys=Object.keys(l):!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(h.f)(e.defaultExpandedKeys,l):e.defaultExpandedKeys),e.selectable&&(o("selectedKeys")?r.selectedKeys=Object(h.d)(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=Object(h.d)(e.defaultSelectedKeys,e))),e.checkable&&(o("checkedKeys")?s=Object(h.n)(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?s=Object(h.n)(e.defaultCheckedKeys)||{}:i&&(s=Object(h.n)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var c=s,f=c.checkedKeys,d=void 0===f?[]:f,p=c.halfCheckedKeys,m=void 0===p?[]:p;if(!e.checkStrictly){var g=Object(h.e)(d,!0,l);d=g.checkedKeys,m=g.halfCheckedKeys}r.checkedKeys=d,r.halfCheckedKeys=m}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}],(o=[{key:"render",value:function(){var e,t,n,o=this,i=this.state.treeNode,a=this.props,l=a.prefixCls,c=a.className,u=a.focusable,f=a.style,p=a.showLine,m=a.tabIndex,g=void 0===m?0:m,v=a.selectable,y=a.showIcon,b=a.icon,w=a.switcherIcon,E=a.draggable,C=a.checkable,k=a.checkStrictly,O=a.disabled,S=a.motion,x=a.loadData,P=a.filterTreeNode,_=Object(h.i)(this.props);return u&&(_.tabIndex=g),r.createElement(d.a.Provider,{value:{prefixCls:l,selectable:v,showIcon:y,icon:b,switcherIcon:w,draggable:E,checkable:C,checkStrictly:k,disabled:O,motion:S,loadData:x,filterTreeNode:P,renderTreeNode:this.renderTreeNode,isKeyChecked:this.isKeyChecked,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop,registerTreeNode:this.registerTreeNode}},r.createElement("ul",Object.assign({},_,{className:s()(l,c,(e={},t="".concat(l,"-show-line"),n=p,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),style:f,role:"tree",unselectable:"on"}),Object(h.m)(i,(function(e,t){return o.renderTreeNode(e,t)}))))}}])&&g(n.prototype,o),i&&g(n,i),l}(r.Component);E.propTypes={prefixCls:i.a.string,className:i.a.string,style:i.a.object,tabIndex:i.a.oneOfType([i.a.string,i.a.number]),children:i.a.any,treeData:i.a.array,showLine:i.a.bool,showIcon:i.a.bool,icon:i.a.oneOfType([i.a.node,i.a.func]),focusable:i.a.bool,selectable:i.a.bool,disabled:i.a.bool,multiple:i.a.bool,checkable:i.a.oneOfType([i.a.bool,i.a.node]),checkStrictly:i.a.bool,draggable:i.a.bool,defaultExpandParent:i.a.bool,autoExpandParent:i.a.bool,defaultExpandAll:i.a.bool,defaultExpandedKeys:i.a.arrayOf(i.a.string),expandedKeys:i.a.arrayOf(i.a.string),defaultCheckedKeys:i.a.arrayOf(i.a.string),checkedKeys:i.a.oneOfType([i.a.arrayOf(i.a.oneOfType([i.a.string,i.a.number])),i.a.object]),defaultSelectedKeys:i.a.arrayOf(i.a.string),selectedKeys:i.a.arrayOf(i.a.string),onClick:i.a.func,onDoubleClick:i.a.func,onExpand:i.a.func,onCheck:i.a.func,onSelect:i.a.func,onLoad:i.a.func,loadData:i.a.func,loadedKeys:i.a.arrayOf(i.a.string),onMouseEnter:i.a.func,onMouseLeave:i.a.func,onRightClick:i.a.func,onDragStart:i.a.func,onDragEnter:i.a.func,onDragOver:i.a.func,onDragLeave:i.a.func,onDragEnd:i.a.func,onDrop:i.a.func,filterTreeNode:i.a.func,motion:i.a.object,switcherIcon:i.a.oneOfType([i.a.node,i.a.func])},E.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},Object(f.polyfill)(E);var C=E,k=n(106),O=C;O.TreeNode=k.a;t.default=O},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:"ltr",r=l(t)?"translateY":"translateX";if(!l(t)&&"rtl"===n)return r+"("+100*e+"%) translateZ(0)";return r+"("+100*-e+"%) translateZ(0)"},t.getMarginStyle=function(e,t){var n=l(t)?"marginTop":"marginLeft";return(0,r.default)({},n,100*-e+"%")},t.getStyle=c,t.setPxStyle=function(e,t,n){t=n?"0px, "+t+"px, 0px":t+"px, 0px, 0px",s(e.style,"translate3d("+t+")")},t.getDataAttr=function(e){return Object.keys(e).reduce((function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})},t.getLeft=function(e,t){return f("left","offsetWidth","right",e,t)},t.getTop=function(e,t){return f("top","offsetHeight","bottom",e,t)};var o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=[];return o.default.Children.forEach(e,(function(e){e&&t.push(e)})),t}function s(e,t){e.transform=t,e.webkitTransform=t,e.mozTransform=t}function l(e){return"left"===e||"right"===e}function c(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function u(e,t){return+e.getPropertyValue(t).replace("px","")}function f(e,t,n,r,o){var i=c(o,"padding-"+e);if(!r||!r.parentNode)return i;var a=r.parentNode.childNodes;return Array.prototype.some.call(a,(function(o){var a=window.getComputedStyle(o);return o!==r?(i+=u(a,"margin-"+e),i+=o[t],i+=u(a,"margin-"+n),"content-box"===a.boxSizing&&(i+=u(a,"border-"+e+"-width")+u(a,"border-"+n+"-width")),!1):(i+=u(a,"margin-"+e),!0)})),i}},function(e,t,n){"use strict";n(37),n(318)},function(e,t,n){"use strict";n(37),n(331),n(32),n(169),n(93)},function(e,t,n){e.exports=n(19)(1281)},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n.n(o),a=n(16),s=n.n(a),l=n(108),c=n(82),u=n(30),f=n(118),d=n(33);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;ts))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,f=!0,d=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++u-1},re.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(z||re),string:new ne}},oe.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return ge(this,e).get(e)},oe.prototype.has=function(e){return ge(this,e).has(e)},oe.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(r)}return n.set(e,t),this.size=n.size,this};var ye=V?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function _e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ae(e){return null!=e&&"object"==typeof e}var Te=y?function(e){return function(t){return e(t)}}(y):function(e){return Ae(e)&&Pe(e.length)&&!!c[ce(e)]};function Me(e){return null!=(t=e)&&Pe(t.length)&&!xe(t)?se(e):he(e);var t}n.exports=function(e,t){return fe(e,t)}}).call(this,n(113),n(92)(e))},function(e,t,n){"use strict";n.r(t);var r=n(23),o=n.n(r),i=n(21),a=n.n(i),s=n(18),l=n.n(s),c=n(22),u=n.n(c),f=n(0),d=n.n(f),h=n(28),p=n.n(h),m=n(1),g=n.n(m),v=n(38),y=n(30),b=6,w=7,E=n(9),C=n.n(E),k=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value.localeData(),n=e.prefixCls,r=[],o=[],i=t.firstDayOfWeek(),a=void 0,s=C()(),l=0;lt.year()?1:e.year()===t.year()&&e.month()>t.month()}var L=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,o=e.value,i=e.showWeekNumber,a=e.dateRender,s=e.disabledDate,l=e.hoverValue,c=void 0,u=void 0,f=void 0,h=[],p=P(o),m=n+"-cell",g=n+"-week-number-cell",v=n+"-date",y=n+"-today",E=n+"-selected-day",C=n+"-selected-date",k=n+"-selected-start-date",O=n+"-selected-end-date",x=n+"-in-range-cell",A=n+"-last-month-cell",T=n+"-next-month-btn-day",M=n+"-disabled-cell",R=n+"-disabled-cell-first-of-row",L=n+"-disabled-cell-last-of-row",$=n+"-last-day-of-month",F=o.clone();F.date(1);var I=(F.day()+7-o.localeData().firstDayOfWeek())%7,V=F.clone();V.add(0-I,"days");var B=0;for(c=0;c0&&(J=h[B-1]);var X=m,Z=!1,Q=!1;D(f,p)&&(X+=" "+y,K=!0);var ee=N(f,o),te=j(f,o);if(r&&Array.isArray(r)){var ne=l.length?l:r;if(!ee&&!te){var re=ne[0],oe=ne[1];re&&D(f,re)&&(Q=!0,G=!0,X+=" "+k),(re||oe)&&(D(f,oe)?(Q=!0,G=!0,X+=" "+O):(null==re&&f.isBefore(oe,"day")||null==oe&&f.isAfter(re,"day")||f.isAfter(re,"day")&&f.isBefore(oe,"day"))&&(X+=" "+x))}}else D(f,o)&&(Q=!0,G=!0);D(f,r)&&(X+=" "+C),ee&&(X+=" "+A),te&&(X+=" "+T),f.clone().endOf("month").date()===f.date()&&(X+=" "+$),s&&s(f,o)&&(Z=!0,J&&s(J,o)||(X+=" "+R),Y&&s(Y,o)||(X+=" "+L)),Q&&(X+=" "+E),Z&&(X+=" "+M);var ie=void 0;if(a)ie=a(f,o);else{var ae=t?t(f,o):f.date();ie=d.a.createElement("div",{key:(W=f,"rc-calendar-"+W.year()+"-"+W.month()+"-"+W.date()),className:v,"aria-selected":Q,"aria-disabled":Z},ae)}q.push(d.a.createElement("td",{key:B,onClick:Z?void 0:e.onSelect.bind(null,f),onMouseEnter:Z?void 0:e.onDayHover&&e.onDayHover.bind(null,f)||void 0,role:"gridcell",title:_(f),className:X},ie)),B++}H.push(d.a.createElement("tr",{key:c,role:"row",className:S()((z={},z[n+"-current-week"]=K,z[n+"-active-week"]=G,z))},U,q))}return d.a.createElement("tbody",{className:n+"-tbody"},H)},t}(d.a.Component);L.propTypes={contentRender:g.a.func,dateRender:g.a.func,disabledDate:g.a.func,prefixCls:g.a.string,selectedValue:g.a.oneOfType([g.a.object,g.a.arrayOf(g.a.object)]),value:g.a.object,hoverValue:g.a.any,showWeekNumber:g.a.bool},L.defaultProps={hoverValue:[]};var $=L,F=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls;return d.a.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},d.a.createElement(k,e),d.a.createElement($,e))},t}(d.a.Component);function I(e){return e}function V(e){return d.a.Children.map(e,I)}var B=function(e){function t(){var n,r,o;a()(this,t);for(var i=arguments.length,s=Array(i),c=0;cl,n),o=void 0;return o=t.yearl?e.nextDecade:q.bind(e,t.year),d.a.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:o,className:S()(r)},d.a.createElement("a",{className:c+"-year"},t.content))}));return d.a.createElement("tr",{key:n,role:"row"},r)})),f=o&&o("year");return d.a.createElement("div",{className:this.prefixCls},d.a.createElement("div",null,d.a.createElement("div",{className:c+"-header"},d.a.createElement("a",{className:c+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade}),d.a.createElement("a",{className:c+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:r.decadeSelect},d.a.createElement("span",{className:c+"-decade-select-content"},s,"-",l),d.a.createElement("span",{className:c+"-decade-select-arrow"},"x")),d.a.createElement("a",{className:c+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade})),d.a.createElement("div",{className:c+"-body"},d.a.createElement("table",{className:c+"-table",cellSpacing:"0",role:"grid"},d.a.createElement("tbody",{className:c+"-tbody"},u))),f&&d.a.createElement("div",{className:c+"-footer"},f)))},t}(d.a.Component),J=Y;Y.propTypes={rootPrefixCls:g.a.string,value:g.a.object,defaultValue:g.a.object,renderFooter:g.a.func},Y.defaultProps={onSelect:function(){}};function X(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}function Z(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}var Q=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return r.state={value:n.value||n.defaultValue},r.prefixCls=n.rootPrefixCls+"-decade-panel",r.nextCentury=X.bind(r,100),r.previousCentury=X.bind(r,-100),r}return u()(t,e),t.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,r=n.locale,o=n.renderFooter,i=t.year(),a=100*parseInt(i/100,10),s=a-10,l=a+99,c=[],u=0,f=this.prefixCls,h=0;h<4;h++){c[h]=[];for(var p=0;p<3;p++){var m=s+10*u,g=s+10*u+9;c[h][p]={startDecade:m,endDecade:g},u++}}var v=o&&o("decade"),y=c.map((function(t,n){var r=t.map((function(t){var n,r=t.startDecade,o=t.endDecade,s=rl,u=((n={})[f+"-cell"]=1,n[f+"-selected-cell"]=r<=i&&i<=o,n[f+"-last-century-cell"]=s,n[f+"-next-century-cell"]=c,n),h=r+"-"+o,p=void 0;return p=s?e.previousCentury:c?e.nextCentury:Z.bind(e,r),d.a.createElement("td",{key:r,onClick:p,role:"gridcell",className:S()(u)},d.a.createElement("a",{className:f+"-decade"},h))}));return d.a.createElement("tr",{key:n,role:"row"},r)}));return d.a.createElement("div",{className:this.prefixCls},d.a.createElement("div",{className:f+"-header"},d.a.createElement("a",{className:f+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:r.previousCentury}),d.a.createElement("div",{className:f+"-century"},a,"-",l),d.a.createElement("a",{className:f+"-next-century-btn",role:"button",onClick:this.nextCentury,title:r.nextCentury})),d.a.createElement("div",{className:f+"-body"},d.a.createElement("table",{className:f+"-table",cellSpacing:"0",role:"grid"},d.a.createElement("tbody",{className:f+"-tbody"},y))),v&&d.a.createElement("div",{className:f+"-footer"},v))},t}(d.a.Component),ee=Q;function te(e){var t=this.props.value.clone();t.add(e,"months"),this.props.onValueChange(t)}function ne(e){var t=this.props.value.clone();t.add(e,"years"),this.props.onValueChange(t)}function re(e,t){return e?t:null}Q.propTypes={locale:g.a.object,value:g.a.object,defaultValue:g.a.object,rootPrefixCls:g.a.string,renderFooter:g.a.func},Q.defaultProps={onSelect:function(){}};var oe=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return ie.call(r),r.nextMonth=te.bind(r,1),r.previousMonth=te.bind(r,-1),r.nextYear=ne.bind(r,1),r.previousYear=ne.bind(r,-1),r.state={yearPanelReferer:null},r}return u()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.prefixCls,r=t.locale,o=t.mode,i=t.value,a=t.showTimePicker,s=t.enableNext,l=t.enablePrev,c=t.disabledMonth,u=t.renderFooter,f=null;return"month"===o&&(f=d.a.createElement(U,{locale:r,value:i,rootPrefixCls:n,onSelect:this.onMonthSelect,onYearPanelShow:function(){return e.showYearPanel("month")},disabledDate:c,cellRender:t.monthCellRender,contentRender:t.monthCellContentRender,renderFooter:u,changeYear:this.changeYear})),"year"===o&&(f=d.a.createElement(J,{locale:r,defaultValue:i,rootPrefixCls:n,onSelect:this.onYearSelect,onDecadePanelShow:this.showDecadePanel,renderFooter:u})),"decade"===o&&(f=d.a.createElement(ee,{locale:r,defaultValue:i,rootPrefixCls:n,onSelect:this.onDecadeSelect,renderFooter:u})),d.a.createElement("div",{className:n+"-header"},d.a.createElement("div",{style:{position:"relative"}},re(l&&!a,d.a.createElement("a",{className:n+"-prev-year-btn",role:"button",onClick:this.previousYear,title:r.previousYear})),re(l&&!a,d.a.createElement("a",{className:n+"-prev-month-btn",role:"button",onClick:this.previousMonth,title:r.previousMonth})),this.monthYearElement(a),re(s&&!a,d.a.createElement("a",{className:n+"-next-month-btn",onClick:this.nextMonth,title:r.nextMonth})),re(s&&!a,d.a.createElement("a",{className:n+"-next-year-btn",onClick:this.nextYear,title:r.nextYear}))),f)},t}(d.a.Component);oe.propTypes={prefixCls:g.a.string,value:g.a.object,onValueChange:g.a.func,showTimePicker:g.a.bool,onPanelChange:g.a.func,locale:g.a.object,enablePrev:g.a.any,enableNext:g.a.any,disabledMonth:g.a.func,renderFooter:g.a.func,onMonthSelect:g.a.func},oe.defaultProps={enableNext:1,enablePrev:1,onPanelChange:function(){},onValueChange:function(){}};var ie=function(){var e=this;this.onMonthSelect=function(t){e.props.onPanelChange(t,"date"),e.props.onMonthSelect?e.props.onMonthSelect(t):e.props.onValueChange(t)},this.onYearSelect=function(t){var n=e.state.yearPanelReferer;e.setState({yearPanelReferer:null}),e.props.onPanelChange(t,n),e.props.onValueChange(t)},this.onDecadeSelect=function(t){e.props.onPanelChange(t,"year"),e.props.onValueChange(t)},this.changeYear=function(t){t>0?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,r=n.prefixCls,o=n.locale,i=n.value,a=i.localeData(),s=o.monthBeforeYear,l=r+"-"+(s?"my-select":"ym-select"),c=t?" "+r+"-time-status":"",u=d.a.createElement("a",{className:r+"-year-select"+c,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:o.yearSelect},i.format(o.yearFormat)),f=d.a.createElement("a",{className:r+"-month-select"+c,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:o.monthSelect},o.monthFormat?i.format(o.monthFormat):a.monthsShort(i)),h=void 0;t&&(h=d.a.createElement("a",{className:r+"-day-select"+c,role:"button"},i.format(o.dayFormat)));var p=[];return p=s?[f,h,u]:[u,f,h],d.a.createElement("span",{className:l},V(p))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}},ae=oe;function se(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.timePicker,i=e.disabled,a=e.disabledDate,s=e.onToday,l=e.text,c=(!l&&o?n.now:l)||n.today,u=a&&!M(P(r),a)||i,f=u?t+"-today-btn-disabled":"";return d.a.createElement("a",{className:t+"-today-btn "+f,role:"button",onClick:u?null:s,title:A(r)},c)}function le(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,i=t+"-ok-btn";return r&&(i+=" "+t+"-ok-btn-disabled"),d.a.createElement("a",{className:i,role:"button",onClick:r?null:o},n.ok)}function ce(e){var t,n=e.prefixCls,r=e.locale,o=e.showTimePicker,i=e.onOpenTimePicker,a=e.onCloseTimePicker,s=e.timePickerDisabled,l=S()(((t={})[n+"-time-picker-btn"]=!0,t[n+"-time-picker-btn-disabled"]=s,t)),c=null;return s||(c=o?a:i),d.a.createElement("a",{className:l,role:"button",onClick:c},o?r.dateSelect:r.timeSelect)}var ue=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.onSelect=function(e){this.props.onSelect(e)},t.prototype.getRootDOMNode=function(){return p.a.findDOMNode(this)},t.prototype.render=function(){var e=this.props,t=e.value,n=e.prefixCls,r=e.showOk,i=e.timePicker,a=e.renderFooter,s=e.mode,l=null,c=a&&a(s);if(e.showToday||i||c){var u,f=void 0;e.showToday&&(f=d.a.createElement(se,o()({},e,{value:t})));var h=void 0;(!0===r||!1!==r&&e.timePicker)&&(h=d.a.createElement(le,e));var p=void 0;e.timePicker&&(p=d.a.createElement(ce,e));var m=void 0;(f||p||h||c)&&(m=d.a.createElement("span",{className:n+"-footer-btn"},c,V([f,p,h])));var g=S()(n+"-footer",((u={})[n+"-footer-show-ok"]=h,u));l=d.a.createElement("div",{className:g},m)}return l},t}(d.a.Component);ue.propTypes={prefixCls:g.a.string,showDateInput:g.a.bool,disabledTime:g.a.any,timePicker:g.a.element,selectedValue:g.a.any,showOk:g.a.bool,onSelect:g.a.func,value:g.a.object,renderFooter:g.a.func,defaultValue:g.a.object,mode:g.a.string};var fe=ue;function de(e){return e?P(e):C()()}var he={value:g.a.object,defaultValue:g.a.object,onKeyDown:g.a.func},pe={onKeyDown:function(){}};function me(){}var ge={className:g.a.string,locale:g.a.object,style:g.a.object,visible:g.a.bool,onSelect:g.a.func,prefixCls:g.a.string,onChange:g.a.func,onOk:g.a.func},ve={locale:{today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},style:{},visible:!0,prefixCls:"rc-calendar",className:"",onSelect:me,onChange:me,onClear:me,renderFooter:function(){return null},renderSidebar:function(){return null}},ye=void 0,be=void 0,we=void 0,Ee=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));Ce.call(r);var o=n.selectedValue;return r.state={str:R(o,r.props.format),invalid:!1,hasFocus:!1},r}return u()(t,e),t.prototype.componentDidUpdate=function(){!we||!this.state.hasFocus||this.state.invalid||0===ye&&0===be||we.setSelectionRange(ye,be)},t.getDerivedStateFromProps=function(e,t){var n={};we&&(ye=we.selectionStart,be=we.selectionEnd);var r=e.selectedValue;return t.hasFocus||(n={str:R(r,e.format),invalid:!1}),n},t.getInstance=function(){return we},t.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,o=e.locale,i=e.prefixCls,a=e.placeholder,s=e.clearIcon,l=e.inputMode,c=n?i+"-input-invalid":"";return d.a.createElement("div",{className:i+"-input-wrap"},d.a.createElement("div",{className:i+"-date-input-wrap"},d.a.createElement("input",{ref:this.saveDateInput,className:i+"-input "+c,value:r,disabled:e.disabled,placeholder:a,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:l})),e.showClear?d.a.createElement("a",{role:"button",title:o.clear,onClick:this.onClear},s||d.a.createElement("span",{className:i+"-clear-btn"})):null)},t}(d.a.Component);Ee.propTypes={prefixCls:g.a.string,timePicker:g.a.object,value:g.a.object,disabledTime:g.a.any,format:g.a.oneOfType([g.a.string,g.a.arrayOf(g.a.string)]),locale:g.a.object,disabledDate:g.a.func,onChange:g.a.func,onClear:g.a.func,placeholder:g.a.string,onSelect:g.a.func,selectedValue:g.a.object,clearIcon:g.a.node,inputMode:g.a.string};var Ce=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,r=e.props,o=r.disabledDate,i=r.format,a=r.onChange,s=r.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=C()(n,i,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||o&&o(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState((function(e,t){return{hasFocus:!1,str:R(t.value,t.format)}}))},this.onKeyDown=function(t){var n=t.keyCode,r=e.props,o=r.onSelect,i=r.value,a=r.disabledDate;n===v.default.ENTER&&o&&((!a||!a(i))&&o(i.clone()),t.preventDefault())},this.getRootDOMNode=function(){return p.a.findDOMNode(e)},this.focus=function(){we&&we.focus()},this.saveDateInput=function(e){we=e}};Object(y.polyfill)(Ee);var ke=Ee;function Oe(){}var Se=function(e){return!(!C.a.isMoment(e)||!e.isValid())&&e},xe=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return Pe.call(r),r.state={mode:r.props.mode||"date",value:Se(n.value)||Se(n.defaultValue)||C()(),selectedValue:n.selectedValue||n.defaultSelectedValue},r}return u()(t,e),t.prototype.componentDidMount=function(){this.props.showDateInput&&this.saveFocusElement(ke.getInstance())},t.getDerivedStateFromProps=function(e,t){var n=e.value,r=e.selectedValue,o={};return"mode"in e&&t.mode!==e.mode&&(o={mode:e.mode}),"value"in e&&(o.value=Se(n)||Se(e.defaultValue)||de(t.value)),"selectedValue"in e&&(o.selectedValue=r),o},t.prototype.render=function(){var e=this.props,t=this.state,n=e.locale,r=e.prefixCls,i=e.disabledDate,a=e.dateInputPlaceholder,s=e.timePicker,l=e.disabledTime,c=e.clearIcon,u=e.renderFooter,f=e.inputMode,h=e.monthCellRender,p=e.monthCellContentRender,m=t.value,g=t.selectedValue,v=t.mode,y="time"===v,b=y&&l&&s?T(g,l):null,w=null;if(s&&y){var E=o()({showHour:!0,showSecond:!0,showMinute:!0},s.props,b,{onChange:this.onDateInputChange,value:g,disabledTime:l});void 0!==s.props.defaultValue&&(E.defaultOpenValue=s.props.defaultValue),w=d.a.cloneElement(s,E)}var C=e.showDateInput?d.a.createElement(ke,{format:this.getFormat(),key:"date-input",value:m,locale:n,placeholder:a,showClear:!0,disabledTime:l,disabledDate:i,onClear:this.onClear,prefixCls:r,selectedValue:g,onChange:this.onDateInputChange,onSelect:this.onDateInputSelect,clearIcon:c,inputMode:f}):null,k=[];return e.renderSidebar&&k.push(e.renderSidebar()),k.push(d.a.createElement("div",{className:r+"-panel",key:"panel"},C,d.a.createElement("div",{tabIndex:this.props.focusablePanel?0:void 0,className:r+"-date-panel"},d.a.createElement(ae,{locale:n,mode:v,value:m,onValueChange:this.setValue,onPanelChange:this.onPanelChange,renderFooter:u,showTimePicker:y,prefixCls:r,monthCellRender:h,monthCellContentRender:p}),s&&y?d.a.createElement("div",{className:r+"-time-picker"},d.a.createElement("div",{className:r+"-time-picker-panel"},w)):null,d.a.createElement("div",{className:r+"-body"},d.a.createElement(F,{locale:n,value:m,selectedValue:g,prefixCls:r,dateRender:e.dateRender,onSelect:this.onDateTableSelect,disabledDate:i,showWeekNumber:e.showWeekNumber})),d.a.createElement(fe,{showOk:e.showOk,mode:v,renderFooter:e.renderFooter,locale:n,prefixCls:r,showToday:e.showToday,disabledTime:l,showTimePicker:y,showDateInput:e.showDateInput,timePicker:s,selectedValue:g,timePickerDisabled:!g,value:m,disabledDate:i,okDisabled:!(!1===e.showOk||g&&this.isAllowedDate(g)),onOk:this.onOk,onSelect:this.onSelect,onToday:this.onToday,onOpenTimePicker:this.openTimePicker,onCloseTimePicker:this.closeTimePicker})))),this.renderRoot({children:k,className:e.showWeekNumber?r+"-week-number":""})},t}(d.a.Component);xe.propTypes=o()({},he,ge,{prefixCls:g.a.string,className:g.a.string,style:g.a.object,defaultValue:g.a.object,value:g.a.object,selectedValue:g.a.object,defaultSelectedValue:g.a.object,mode:g.a.oneOf(["time","date","month","year","decade"]),locale:g.a.object,showDateInput:g.a.bool,showWeekNumber:g.a.bool,showToday:g.a.bool,showOk:g.a.bool,onSelect:g.a.func,onOk:g.a.func,onKeyDown:g.a.func,timePicker:g.a.element,dateInputPlaceholder:g.a.any,onClear:g.a.func,onChange:g.a.func,onPanelChange:g.a.func,disabledDate:g.a.func,disabledTime:g.a.any,dateRender:g.a.func,renderFooter:g.a.func,renderSidebar:g.a.func,clearIcon:g.a.node,focusablePanel:g.a.bool,inputMode:g.a.string,onBlur:g.a.func}),xe.defaultProps=o()({},pe,ve,{showToday:!0,showDateInput:!0,timePicker:null,onOk:Oe,onPanelChange:Oe,focusablePanel:!0});var Pe=function(){var e=this;this.onPanelChange=function(t,n){var r=e.props,o=e.state;"mode"in r||e.setState({mode:n}),r.onPanelChange(t||o.value,n)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,r=t.ctrlKey||t.metaKey,o=e.props.disabledDate,i=e.state.value;switch(n){case v.default.DOWN:return e.goTime(1,"weeks"),t.preventDefault(),1;case v.default.UP:return e.goTime(-1,"weeks"),t.preventDefault(),1;case v.default.LEFT:return r?e.goTime(-1,"years"):e.goTime(-1,"days"),t.preventDefault(),1;case v.default.RIGHT:return r?e.goTime(1,"years"):e.goTime(1,"days"),t.preventDefault(),1;case v.default.HOME:return e.setValue(e.state.value.clone().startOf("month")),t.preventDefault(),1;case v.default.END:return e.setValue(function(e){return e.clone().endOf("month")}(e.state.value)),t.preventDefault(),1;case v.default.PAGE_DOWN:return e.goTime(1,"month"),t.preventDefault(),1;case v.default.PAGE_UP:return e.goTime(-1,"month"),t.preventDefault(),1;case v.default.ENTER:return o&&o(i)||e.onSelect(i,{source:"keyboard"}),t.preventDefault(),1;default:return e.props.onKeyDown(t),1}}},this.onClear=function(){e.onSelect(null),e.props.onClear()},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDate(t)&&e.props.onOk(t)},this.onDateInputChange=function(t){e.onSelect(t,{source:"dateInput"})},this.onDateInputSelect=function(t){e.onSelect(t,{source:"dateInputSelect"})},this.onDateTableSelect=function(t){var n,r,o=e.props.timePicker;if(!e.state.selectedValue&&o){var i=o.props.defaultValue;i&&(n=i,r=t,C.a.isMoment(n)&&C.a.isMoment(r)&&(r.hour(n.hour()),r.minute(n.minute()),r.second(n.second()),r.millisecond(n.millisecond())))}e.onSelect(t)},this.onToday=function(){var t=P(e.state.value);e.onSelect(t,{source:"todayButton"})},this.onBlur=function(t){setTimeout((function(){var n=ke.getInstance(),r=e.rootInstance;!r||r.contains(document.activeElement)||n&&n.contains(document.activeElement)||e.props.onBlur&&e.props.onBlur(t)}),0)},this.getRootDOMNode=function(){return p.a.findDOMNode(e)},this.openTimePicker=function(){e.onPanelChange(null,"time")},this.closeTimePicker=function(){e.onPanelChange(null,"date")},this.goTime=function(t,n){e.setValue(function(e,t,n){return e.clone().add(t,n)}(e.state.value,t,n))}};Object(y.polyfill)(xe);var _e,Ae,Te,Me=function(e){var t,n;return n=t=function(t){function n(){var e,r,o;a()(this,n);for(var i=arguments.length,s=Array(i),c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(94),o=n.n(r)()(null)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateShowHourMinuteSecond=x,t.default=void 0;var r=v(n(0)),o=v(n(9)),i=m(n(70)),a=n(30),s=m(n(350)),l=m(n(16)),c=m(n(71)),u=m(n(111)),f=n(44),d=m(n(352)),h=m(n(105)),p=m(n(20));function m(e){return e&&e.__esModule?e:{default:e}}function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t-1||e.indexOf("h")>-1||e.indexOf("k")>-1,showMinute:e.indexOf("m")>-1,showSecond:e.indexOf("s")>-1}}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(v,e);var t,n,a,m,g=(t=v,function(){var e,n=O(t);if(k()){var r=O(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C(this,e)});function v(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=g.call(this,e)).getDefaultLocale=function(){return b(b({},d.default),t.props.locale)},t.handleOpenClose=function(e){var n=e.open,r=t.props.onOpenChange;r&&r(n)},t.saveTimePicker=function(e){t.timePickerRef=e},t.handleChange=function(e){"value"in t.props||t.setState({value:e});var n=t.props,r=n.onChange,o=n.format,i=void 0===o?"HH:mm:ss":o;r&&r(e,e&&e.format(i)||"")},t.renderTimePicker=function(e){return r.createElement(f.ConfigConsumer,null,(function(n){var o=n.getPopupContainer,a=n.getPrefixCls,c=t.props,u=c.getPopupContainer,f=c.prefixCls,d=c.className,h=c.addon,p=c.placeholder,m=S(c,["getPopupContainer","prefixCls","className","addon","placeholder"]),g=m.size,v=(0,i.default)(m,["defaultValue","suffixIcon","allowEmpty","allowClear"]),y=t.getDefaultFormat(),w=a("time-picker",f),E=(0,l.default)(d,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"".concat(w,"-").concat(g),!!g));return r.createElement(s.default,b({},x(y),v,{allowEmpty:t.getAllowClear(),prefixCls:w,getPopupContainer:u||o,ref:t.saveTimePicker,format:y,className:E,value:t.state.value,placeholder:void 0===p?e.placeholder:p,onChange:t.handleChange,onOpen:t.handleOpenClose,onClose:t.handleOpenClose,addon:function(e){return h?r.createElement("div",{className:"".concat(w,"-panel-addon")},h(e)):null},inputIcon:t.renderInputIcon(w),clearIcon:t.renderClearIcon(w)}))}))};var n=e.value||e.defaultValue;if(n&&!(0,h.default)(o).isMoment(n))throw new Error("The value/defaultValue of TimePicker must be a moment object after `antd@2.0`, see: https://u.ant.design/time-picker-value");return t.state={value:n},(0,c.default)(!("allowEmpty"in e),"TimePicker","`allowEmpty` is deprecated. Please use `allowClear` instead."),t}return n=v,m=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}],(a=[{key:"getDefaultFormat",value:function(){var e=this.props,t=e.format,n=e.use12Hours;return t||(n?"h:mm:ss a":"HH:mm:ss")}},{key:"getAllowClear",value:function(){var e=this.props,t=e.allowClear,n=e.allowEmpty;return"allowClear"in this.props?t:n}},{key:"focus",value:function(){this.timePickerRef.focus()}},{key:"blur",value:function(){this.timePickerRef.blur()}},{key:"renderInputIcon",value:function(e){var t=this.props.suffixIcon,n=t&&r.isValidElement(t)&&r.cloneElement(t,{className:(0,l.default)(t.props.className,"".concat(e,"-clock-icon"))})||r.createElement(p.default,{type:"clock-circle",className:"".concat(e,"-clock-icon")});return r.createElement("span",{className:"".concat(e,"-icon")},n)}},{key:"renderClearIcon",value:function(e){var t=this.props.clearIcon,n="".concat(e,"-clear");return t&&r.isValidElement(t)?r.cloneElement(t,{className:(0,l.default)(t.props.className,n)}):r.createElement(p.default,{type:"close-circle",className:n,theme:"filled"})}},{key:"render",value:function(){return r.createElement(u.default,{componentName:"TimePicker",defaultLocale:this.getDefaultLocale()},this.renderTimePicker)}}])&&w(n.prototype,a),m&&w(n,m),v}(r.Component);P.defaultProps={align:{offset:[0,-2]},disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up",focusOnOpen:!0},(0,a.polyfill)(P);var _=P;t.default=_},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(185))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){e.exports=n(19)(878)},function(e,t,n){"use strict";(function(e){var r=n(145);n(387);var o=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};var i=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1,defaultInstance:!1},o=!1,i=!1,a=!1;"number"==typeof r?(e&&e.env,o=!0,i=!1):"object"===p(r)&&r&&(i=r.global||!1,o=r.core||!1,a=r.defaultInstance||!1),i?t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,n):o?t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,n):a?this.defaultMiddlewares.push(n):this.middlewares.push(n)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=m([].concat(c(this.middlewares),c(this.defaultMiddlewares),c(t.globalMiddlewares),c(t.coreMiddlewares)));return n(e)}}]),t}();g.globalMiddlewares=[],g.defaultGlobalMiddlewaresLength=0,g.coreMiddlewares=[],g.defaultCoreMiddlewaresLength=0;var v=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var y=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t},b=h((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t})),w=h((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t}));var E=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)};var C=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},k=h((function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function n(r,o,i){return t()?e.exports=n=Reflect.construct:e.exports=n=function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&w(o,n.prototype),o},n.apply(null,arguments)}e.exports=n})),O=h((function(e){function t(n){var r="function"==typeof Map?new Map:void 0;return e.exports=t=function(e){if(null===e||!C(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return k(e,arguments,b(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),w(t,e)},t(n)}e.exports=t})),S=function(){function e(t){u(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return d(e,[{key:"extendOptions",value:function(e){this.maxCache=e.maxCache||0}},{key:"get",value:function(e){return this.cache.get(JSON.stringify(e))}},{key:"set",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var o=c(this.cache.keys())[0];this.cache.delete(o),this.timer[o]&&clearTimeout(this.timer[o])}var i=JSON.stringify(e);this.cache.set(i,t),r>0&&(this.timer[i]=setTimeout((function(){n.cache.delete(i),delete n.timer[i]}),r))}},{key:"delete",value:function(e){var t=JSON.stringify(e);return delete this.timer[t],this.cache.delete(t)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),x=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return u(this,t),(r=y(this,b(t).call(this,e))).name="RequestError",r.request=n,r.type=o,r}return E(t,e),t}(O(Error)),P=function(e){function t(e,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return u(this,t),(i=y(this,b(t).call(this,n||e.statusText))).name="ResponseError",i.data=r,i.response=e,i.request=o,i.type=a,i}return E(t,e),t}(O(Error));function _(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsText(e,"GBK")}))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{return JSON.parse(e)}catch(o){if(t)throw new P(n,"JSON.parse fail",e,r,"ParseError")}return e}function T(e,t){return new Promise((function(n,r){setTimeout((function(){r(new x("timeout of ".concat(e,"ms exceeded"),t,"Timeout"))}),e)}))}function M(e){return new Promise((function(t,n){e.cancelToken&&e.cancelToken.promise.then((function(e){n(e)}))}))}var R=Object.prototype.toString;function D(){var t;return void 0!==e&&"[object process]"===R.call(e)&&(t="NODE"),"undefined"!=typeof XMLHttpRequest&&(t="BROWSER"),t}function N(e){return"object"===p(e)&&"[object Array]"===Object.prototype.toString.call(e)}function j(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function L(e){return null!==e&&"object"===p(e)}function $(e,t){if(e)if("object"!==p(e)&&(e=[e]),N(e))for(var n=0;n=200&&n.status<300)return s?void(e.res={data:t,response:n}):void(e.res=t);throw new P(n,"http error",t,o,"HttpError")}}})).catch((function(t){if(t instanceof x||t instanceof P)throw t;var n=e.req,r=e.res;throw t.request=t.request||n,t.response=t.response||r,t.type=t.type||t.name,t.data=t.data||void 0,t}))}],z=[function(t,n){if(!t)return n();var r=t.req,o=(r=void 0===r?{}:r).options,i=void 0===o?{}:o,a=r.url,s=void 0===a?"":a,l=t.cache,c=t.responseInterceptors,u=i.timeout,f=void 0===u?0:u,d=i.__umiRequestCoreType__,h=void 0===d?"normal":d,p=i.useCache,m=void 0!==p&&p,g=i.method,v=void 0===g?"get":g,y=i.params,b=i.ttl,w=i.validateCache,E=void 0===w?B:w;if("normal"!==h)return e&&e.env,n();var C=fetch;if(!C)throw new Error("Global fetch not exist!");var k,O="BROWSER"===D(),S=E(s,i)&&m&&O;if(S){var x=l.get({url:s,params:y,method:v});if(x)return(x=x.clone()).useCache=!0,t.res=x,n()}return k=f>0?Promise.race([M(i),C(s,i),T(f,t.req)]):Promise.race([M(i),C(s,i)]),c.forEach((function(e){k=k.then((function(t){var n="function"==typeof t.clone?t.clone():t;return e(n,i)}))})),k.then((function(e){if(S&&200===e.status){var r=e.clone();r.useCache=!0,l.set({url:s,params:y,method:v},r,b)}return t.res=e,n()}))}];g.globalMiddlewares=H,g.defaultGlobalMiddlewaresLength=H.length,g.coreMiddlewares=z,g.defaultCoreMiddlewaresLength=z.length;var K=function(){function e(t){u(this,e),this.onion=new g([]),this.fetchIndex=0,this.mapCache=new S(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return d(e,[{key:"use",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1};return this.onion.use(e,t),this}},{key:"extendOptions",value:function(e){this.initOptions=V(this.initOptions,e),this.mapCache.extendOptions(e)}},{key:"dealRequestInterceptors",value:function(t){return[].concat(c(e.requestInterceptors),c(this.instanceRequestInterceptors)).reduce((function(e,n){return e.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,n(t.req.url,t.req.options)}))}),Promise.resolve()).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,Promise.resolve()}))}},{key:"request",value:function(t,n){var r=this,o=this.onion,i={req:{url:t,options:n},res:null,cache:this.mapCache,responseInterceptors:[].concat(c(e.responseInterceptors),c(this.instanceResponseInterceptors))};if("string"!=typeof t)throw new Error("url MUST be a string");return new Promise((function(e,t){r.dealRequestInterceptors(i).then((function(){return o.execute(i)})).then((function(){e(i.res)})).catch((function(n){var r=i.req.options.errorHandler;if(r)try{var o=r(n);e(o)}catch(e){t(e)}else t(n)}))}))}}],[{key:"requestUse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");n.global?e.requestInterceptors.push(t):this.instanceRequestInterceptors.push(t)}},{key:"responseUse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");n.global?e.responseInterceptors.push(t):this.instanceResponseInterceptors.push(t)}}]),e}();function U(e){this.message=e}function G(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new U(e),t(n.reason))}))}function q(e){return!(!e||!e.__CANCEL__)}K.requestInterceptors=[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=t.suffix;return n&&(e="".concat(n).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:t}}],K.responseInterceptors=[],U.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},U.prototype.__CANCEL__=!0,G.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},G.source=function(){var e;return{token:new G((function(t){e=t})),cancel:e}};var Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new K(e),n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=V(t.initOptions,n);return t.request(e,r)};n.use=t.use.bind(t),n.fetchIndex=t.fetchIndex,n.interceptors={request:{use:K.requestUse.bind(t)},response:{use:K.responseUse.bind(t)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach((function(e){n[e]=function(t,r){return n(t,i({},r,{method:e}))}})),n.Cancel=U,n.CancelToken=G,n.isCancel=q,n.extendOptions=t.extendOptions.bind(t),n.middlewares={instance:t.onion.middlewares,defaultInstance:t.onion.defaultMiddlewares,global:g.globalMiddlewares,core:g.coreMiddlewares},n},J=(Y({parseResponse:!1}),Y({}));t.a=J}).call(this,n(384))},function(e,t,n){e.exports=n(19)(126)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validProgress=function(e){if(!e||e<0)return 0;if(e>100)return 100;return e}},function(e,t,n){"use strict";n(37),n(221)},function(e,t,n){e.exports=n(19)(219)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(23));t.argumentContainer=function(e,t){return e.displayName="Form("+function(e){return e.displayName||e.name||"WrappedComponent"}(t)+")",e.WrappedComponent=t,(0,o.default)(e,t)},t.identity=function(e){return e},t.flattenArray=function(e){return Array.prototype.concat.apply([],e)},t.treeTraverse=s,t.flattenFields=function(e,t,n){var r={};return s(void 0,e,t,n,(function(e,t){r[e]=t})),r},t.normalizeValidateRules=function(e,t,n){var o=e.map((function(e){var t=(0,r.default)({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t}));t&&o.push({trigger:n?[].concat(n):[],rules:t});return o},t.getValidateTriggers=function(e){return e.filter((function(e){return!!e.rules&&e.rules.length})).map((function(e){return e.trigger})).reduce((function(e,t){return e.concat(t)}),[])},t.getValueFromEvent=function(e){if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value},t.getErrorStrs=function(e){if(e)return e.map((function(e){return e&&e.message?e.message:e}));return e},t.getParams=function(e,t,n){var r=e,o=t,i=n;void 0===n&&("function"==typeof r?(i=r,o={},r=void 0):Array.isArray(r)?"function"==typeof o?(i=o,o={}):o=o||{}:(i=o,o=r||{},r=void 0));return{names:r,options:o,callback:i}},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.hasRules=function(e){if(e)return e.some((function(e){return e.rules&&e.rules.length}));return!1},t.startsWith=function(e,t){return 0===e.lastIndexOf(t,0)};var o=a(n(268)),i=a(n(66));function a(e){return e&&e.__esModule?e:{default:e}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],o=arguments[4];if(n(e,t))o(e,t);else if(null==t);else if(Array.isArray(t))t.forEach((function(t,i){return s(e+"["+i+"]",t,n,r,o)}));else{if("object"!=typeof t)return void(0,i.default)(!1,r);Object.keys(t).forEach((function(i){var a=t[i];s(e+(e?".":"")+i,a,n,r,o)}))}}},function(e,t,n){"use strict";n(37),n(287)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warnOnlyTreeNode=function(){if(u)return;u=!0,(0,i.default)(!1,"Tree only accept TreeNode as children.")},t.arrDel=function(e,t){var n=e.slice(),r=n.indexOf(t);r>=0&&n.splice(r,1);return n},t.arrAdd=function(e,t){var n=e.slice();-1===n.indexOf(t)&&n.push(t);return n},t.posToArr=function(e){return e.split("-")},t.getPosition=f,t.isTreeNode=d,t.getNodeChildren=h,t.isCheckDisabled=p,t.traverseTreeNodes=m,t.mapChildren=function(e,t){var n=(0,o.default)(e).map(t);if(1===n.length)return n[0];return n},t.getDragNodesKeys=function(e,t){var n=t.props,r=n.eventKey,o=n.pos,i=[];return m(e,(function(e){var t=e.key;i.push(t)})),i.push(r||o),i},t.calcDropPosition=function(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,i=r.bottom,a=r.height,s=Math.max(.25*a,2);if(n<=o+s)return-1;if(n>=i-s)return 1;return 0},t.calcSelectedKeys=function(e,t){if(!e)return;if(t.multiple)return e.slice();if(e.length)return[e[0]];return e},t.convertDataToTree=function e(t,n){if(!t)return[];var o=(n||{}).processProps,i=void 0===o?v:o;return(Array.isArray(t)?t:[t]).map((function(t){var o=t.children,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["children"]),l=e(o,n);return r.default.createElement(a.default,Object.assign({},i(s)),l)}))},t.convertTreeToEntities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i={},a={},s={posEntities:i,keyEntities:a};n&&(s=n(s)||s);m(e,(function(e){var t=e.node,n=e.index,o=e.pos,l=e.key,c=e.parentPos,u={node:t,index:n,key:l,pos:o};i[o]=u,a[l]=u,u.parent=i[c],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,s)})),o&&o(s);return s},t.parseCheckedKeys=function(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==c(e))return(0,i.default)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t.checkedKeys=g(t.checkedKeys),t.halfCheckedKeys=g(t.halfCheckedKeys),t},t.conductCheck=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={},a={};function s(e){if(o[e]!==t){var r=n[e];if(r){var i=r.children,l=r.parent;if(!p(r.node)){var c=!0,u=!1;(i||[]).filter((function(e){return!p(e.node)})).forEach((function(e){var t=e.key,n=o[t],r=a[t];(n||r)&&(u=!0),n||(c=!1)})),o[e]=!!t&&c,a[e]=u,l&&s(l.key)}}}}function l(e){if(o[e]!==t){var r=n[e];if(r){var i=r.children;p(r.node)||(o[e]=t,(i||[]).forEach((function(e){l(e.key)})))}}}function c(e){var r=n[e];if(r){var a=r.children,c=r.parent,u=r.node;o[e]=t,p(u)||((a||[]).filter((function(e){return!p(e.node)})).forEach((function(e){l(e.key)})),c&&s(c.key))}else(0,i.default)(!1,"'".concat(e,"' does not exist in the tree."))}(r.checkedKeys||[]).forEach((function(e){o[e]=!0})),(r.halfCheckedKeys||[]).forEach((function(e){a[e]=!0})),(e||[]).forEach((function(e){c(e)}));var u=[],f=[];return Object.keys(o).forEach((function(e){o[e]&&u.push(e)})),Object.keys(a).forEach((function(e){!o[e]&&a[e]&&f.push(e)})),{checkedKeys:u,halfCheckedKeys:f}},t.conductExpandParent=function(e,t){var n={};return(e||[]).forEach((function(e){!function e(r){if(n[r])return;var o=t[r];if(!o)return;n[r]=!0;var i=o.parent,a=o.node;if(a.props&&a.props.disabled)return;i&&e(i.key)}(e)})),Object.keys(n)},t.getDataAndAria=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=s(n(163)),i=s(n(66)),a=s(n(297));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=!1;function f(e,t){return"".concat(e,"-").concat(t)}function d(e){return e&&e.type&&e.type.isTreeNode}function h(e){return(0,o.default)(e).filter(d)}function p(e){var t=e.props||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function m(e,t){!function n(o,i,a){var s=o?o.props.children:e,l=o?f(a.pos,i):0,c=h(s);if(o){var u={node:o,index:i,pos:l,key:o.key||l,parentPos:a.node?a.pos:null};t(u)}r.Children.forEach(c,(function(e,t){n(e,t,{node:o,pos:l})}))}(null)}function g(e){return e?e.map((function(e){return String(e)})):e}var v=function(e){return e}},function(e,t,n){"use strict";n(37),n(317)},function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(21)),o=p(n(18)),i=p(n(22)),a=p(n(0)),s=p(n(28)),l=p(n(1)),c=n(30),u=p(n(343)),f=p(n(112)),d=p(n(344)),h=p(n(177));function p(e){return e&&e.__esModule?e:{default:e}}function m(){}function g(e,t){this[e]=t}var v=function(e){function t(n){(0,r.default)(this,t);var i=(0,o.default)(this,e.call(this,n));y.call(i);var a=void 0;a="open"in n?n.open:n.defaultOpen;var s=n.value||n.defaultValue;return i.saveCalendarRef=g.bind(i,"calendarInstance"),i.state={open:a,value:s},i}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e,t){!t.open&&this.state.open&&(this.focusTimeout=setTimeout(this.focusCalendar,0,this))},t.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout)},t.getDerivedStateFromProps=function(e){var t={},n=e.value,r=e.open;return"value"in e&&(t.value=n),void 0!==r&&(t.open=r),t},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.placement,r=e.style,o=e.getCalendarContainer,i=e.align,s=e.animation,l=e.disabled,c=e.dropdownClassName,u=e.transitionName,f=e.children,p=this.state;return a.default.createElement(h.default,{popup:this.getCalendarElement(),popupAlign:i,builtinPlacements:d.default,popupPlacement:n,action:l&&!p.open?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:o,popupStyle:r,popupAnimation:s,popupTransitionName:u,popupVisible:p.open,onPopupVisibleChange:this.onVisibleChange,prefixCls:t,popupClassName:c},a.default.cloneElement(f(p,e),{onKeyDown:this.onKeyDown}))},t}(a.default.Component);v.propTypes={animation:l.default.oneOfType([l.default.func,l.default.string]),disabled:l.default.bool,transitionName:l.default.string,onChange:l.default.func,onOpenChange:l.default.func,children:l.default.func,getCalendarContainer:l.default.func,calendar:l.default.element,style:l.default.object,open:l.default.bool,defaultOpen:l.default.bool,prefixCls:l.default.string,placement:l.default.any,value:l.default.oneOfType([l.default.object,l.default.array]),defaultValue:l.default.oneOfType([l.default.object,l.default.array]),align:l.default.object,dateRender:l.default.func,onBlur:l.default.func},v.defaultProps={prefixCls:"rc-calendar-picker",style:{},align:{},placement:"bottomLeft",defaultOpen:!1,onChange:m,onOpenChange:m,onBlur:m};var y=function(){var e=this;this.onCalendarKeyDown=function(t){t.keyCode===f.default.ESC&&(t.stopPropagation(),e.close(e.focus))},this.onCalendarSelect=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.props;"value"in r||e.setState({value:t}),("keyboard"===n.source||"dateInputSelect"===n.source||!r.calendar.props.timePicker&&"dateInput"!==n.source||"todayButton"===n.source)&&e.close(e.focus),r.onChange(t)},this.onKeyDown=function(t){e.state.open||t.keyCode!==f.default.DOWN&&t.keyCode!==f.default.ENTER||(e.open(),t.preventDefault())},this.onCalendarOk=function(){e.close(e.focus)},this.onCalendarClear=function(){e.close(e.focus)},this.onCalendarBlur=function(){e.setOpen(!1)},this.onVisibleChange=function(t){e.setOpen(t)},this.getCalendarElement=function(){var t=e.props,n=e.state,r=t.calendar.props,o=n.value,i=o,s={ref:e.saveCalendarRef,defaultValue:i||r.defaultValue,selectedValue:o,onKeyDown:e.onCalendarKeyDown,onOk:(0,u.default)(r.onOk,e.onCalendarOk),onSelect:(0,u.default)(r.onSelect,e.onCalendarSelect),onClear:(0,u.default)(r.onClear,e.onCalendarClear),onBlur:(0,u.default)(r.onBlur,e.onCalendarBlur)};return a.default.cloneElement(t.calendar,s)},this.setOpen=function(t,n){var r=e.props.onOpenChange;e.state.open!==t&&("open"in e.props||e.setState({open:t},n),r(t))},this.open=function(t){e.setOpen(!0,t)},this.close=function(t){e.setOpen(!1,t)},this.focus=function(){e.state.open||s.default.findDOMNode(e).focus()},this.focusCalendar=function(){e.state.open&&e.calendarInstance&&e.calendarInstance.focus()}};(0,c.polyfill)(v),t.default=v,e.exports=t.default},function(e,t,n){},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r children");r=e}})),r}var k=n(28),O=n.n(k),S=n(141),x={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},P={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},_=function(e){function t(){return l()(this,t),d()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){x.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){x.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){x.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=O.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"==typeof i;this.stop();var s=function(){n.stopper=null,t()};if((S.isCssAnimationSupported||!o.animation[e])&&i&&o[P[e]]){var l=a?i[e]:i+"-"+e,c=l+"-active";a&&i[e+"Active"]&&(c=i[e+"Active"]),this.stopper=Object(S.default)(r,{name:l,active:c},s)}else this.stopper=o.animation[e](r,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(g.a.Component);_.propTypes={children:y.a.any,animation:y.a.any,transitionName:y.a.any};var A=_,T="rc_animate_"+Date.now();function M(e){var t=e.children;return g.a.isValidElement(t)&&!t.key?g.a.cloneElement(t,{key:T}):t}function R(){}var D=function(e){function t(e){l()(this,t);var n=d()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return N.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:w(M(e))},n.childrenRefs={},n}return p()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=w(M(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var o,i,s,l,c=r.showProp,u=this.currentlyAnimatingKeys,f=r.exclusive?w(M(r)):this.state.children,d=[];c?(f.forEach((function(e){var t=e&&E(n,e.key),r=void 0;(r=t&&t.props[c]||!e.props[c]?t:g.a.cloneElement(t||e,a()({},c,!0)))&&d.push(r)})),n.forEach((function(e){e&&E(f,e.key)||d.push(e)}))):(o=n,i=[],s={},l=[],f.forEach((function(e){e&&E(o,e.key)?l.length&&(s[e.key]=l,l=[]):l.push(e)})),o.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(s,e.key)&&(i=i.concat(s[e.key])),i.push(e)})),d=i=i.concat(l)),this.setState({children:d}),n.forEach((function(e){var n=e&&e.key;if(!e||!u[n]){var r=e&&E(f,n);if(c){var o=e.props[c];if(r)!C(f,n,c)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),f.forEach((function(e){var r=e&&e.key;if(!e||!u[r]){var o=e&&E(n,r);if(c){var i=e.props[c];if(o)!C(n,r,c)&&i&&t.keysToLeave.push(r);else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?C(e,t,n):E(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for children");return g.a.createElement(A,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=o()({className:t.className,style:t.style},t.componentProps)),g.a.createElement(i,a,r)}return r[0]||null}}]),t}(g.a.Component);D.isAnimate=!0,D.propTypes={className:y.a.string,style:y.a.object,component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node},D.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:R,onEnter:R,onLeave:R,onAppear:R};var N=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=w(M(r));e.isValidChildByKey(o,t)?"appear"===n?x.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):x.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,a,s=w(M(n));if(e.isValidChildByKey(s,t))e.performEnter(t);else{var l=function(){x.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=s,i=n.showProp,(a=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(a=!1)})),a?l():e.setState({children:s},l)}}}};t.default=b(D)},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){e.exports=n(19)(307)},function(e,t,n){e.exports=n(19)(375)},function(e,t,n){e.exports=n(19)(834)},function(e,t,n){e.exports=n(19)(1276)},function(e,t,n){e.exports=n(19)(38)},function(e,t,n){e.exports=n(19)(305)},function(e,t,n){"use strict";var r=n(284),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),g=0;g0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.validateMessages,g=e.onFieldsChange,v=e.onValuesChange,y=e.mapProps,b=void 0===y?m.identity:y,w=e.mapPropsToFields,E=e.fieldNameProp,C=e.fieldMetaProp,k=e.fieldDataProp,O=e.formPropName,S=void 0===O?"form":O,x=e.name,P=e.withRef;return function(e){var y=(0,l.default)({displayName:"Form",mixins:t,getInitialState:function(){var e=this,t=w&&w(this.props);return this.fieldsStore=(0,p.default)(t||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},this.renderFields={},this.domFields={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach((function(t){e[t]=function(){var n;return(n=e.fieldsStore)[t].apply(n,arguments)}})),{submitting:!1}},componentDidMount:function(){this.cleanUpUselessFields()},componentWillReceiveProps:function(e){w&&this.fieldsStore.updateFields(w(e))},componentDidUpdate:function(){this.cleanUpUselessFields()},onCollectCommon:function(e,t,n){var r=this.fieldsStore.getFieldMeta(e);if(r[t])r[t].apply(r,(0,a.default)(n));else if(r.originalProps&&r.originalProps[t]){var s;(s=r.originalProps)[t].apply(s,(0,a.default)(n))}var l=r.getValueFromEvent?r.getValueFromEvent.apply(r,(0,a.default)(n)):m.getValueFromEvent.apply(void 0,(0,a.default)(n));if(v&&l!==this.fieldsStore.getFieldValue(e)){var c=this.fieldsStore.getAllValues(),u={};c[e]=l,Object.keys(c).forEach((function(e){return(0,d.default)(u,e,c[e])})),v((0,i.default)((0,o.default)({},S,this.getForm()),this.props),(0,d.default)({},e,l),u)}var f=this.fieldsStore.getField(e);return{name:e,field:(0,i.default)({},f,{value:l,touched:!0}),fieldMeta:r}},onCollect:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[e];var r=(0,i.default)({name:e,trigger:"onChange",valuePropName:"value",validate:[]},n),o=r.rules,a=r.trigger,s=r.validateTrigger,l=void 0===s?a:s,c=r.validate,u=this.fieldsStore.getFieldMeta(e);"initialValue"in r&&(u.initialValue=r.initialValue);var f=(0,i.default)({},this.fieldsStore.getFieldValuePropValue(r),{ref:this.getCacheBind(e,e+"__ref",this.saveRef)});E&&(f[E]=x?x+"_"+e:e);var d=(0,m.normalizeValidateRules)(c,o,l),h=(0,m.getValidateTriggers)(d);h.forEach((function(n){f[n]||(f[n]=t.getCacheBind(e,n,t.onCollectValidate))})),a&&-1===h.indexOf(a)&&(f[a]=this.getCacheBind(e,a,this.onCollect));var p=(0,i.default)({},u,r,{validate:d});return this.fieldsStore.setFieldMeta(e,p),C&&(f[C]=p),k&&(f[k]=this.fieldsStore.getField(e)),this.renderFields[e]=!0,f},getFieldInstance:function(e){return this.instances[e]},getRules:function(e,t){var n=e.validate.filter((function(e){return!t||e.trigger.indexOf(t)>=0})).map((function(e){return e.rules}));return(0,m.flattenArray)(n)},setFields:function(e,t){var n=this,r=this.fieldsStore.flattenRegisteredFields(e);if(this.fieldsStore.setFields(r),g){var a=Object.keys(r).reduce((function(e,t){return(0,d.default)(e,t,n.fieldsStore.getField(t))}),{});g((0,i.default)((0,o.default)({},S,this.getForm()),this.props),a,this.fieldsStore.getNestedAllFields())}this.forceUpdate(t)},setFieldsValue:function(e,t){var n=this.fieldsStore.fieldsMeta,r=this.fieldsStore.flattenRegisteredFields(e),a=Object.keys(r).reduce((function(e,t){if(n[t]){var o=r[t];e[t]={value:o}}return e}),{});if(this.setFields(a,t),v){var s=this.fieldsStore.getAllValues();v((0,i.default)((0,o.default)({},S,this.getForm()),this.props),e,s)}},saveRef:function(e,t,n){if(!n){var r=this.fieldsStore.getFieldMeta(e);return r.preserve||(this.clearedFieldMetaCache[e]={field:this.fieldsStore.getField(e),meta:r},this.clearField(e)),void delete this.domFields[e]}this.domFields[e]=!0,this.recoverClearedField(e);var o=this.fieldsStore.getFieldMeta(e);if(o){var i=o.ref;if(i){if("string"==typeof i)throw new Error("can not set ref string for "+e);"function"==typeof i?i(n):Object.prototype.hasOwnProperty.call(i,"current")&&(i.current=n)}}this.instances[e]=n},cleanUpUselessFields:function(){var e=this,t=this.fieldsStore.getAllFieldsName().filter((function(t){var n=e.fieldsStore.getFieldMeta(t);return!e.renderFields[t]&&!e.domFields[t]&&!n.preserve}));t.length&&t.forEach(this.clearField),this.renderFields={}},clearField:function(e){this.fieldsStore.clearField(e),delete this.instances[e],delete this.cachedBind[e]},resetFields:function(e){var t=this,n=this.fieldsStore.resetFields(e);(Object.keys(n).length>0&&this.setFields(n),e)?(Array.isArray(e)?e:[e]).forEach((function(e){return delete t.clearedFieldMetaCache[e]})):this.clearedFieldMetaCache={}},recoverClearedField:function(e){this.clearedFieldMetaCache[e]&&(this.fieldsStore.setFields((0,o.default)({},e,this.clearedFieldMetaCache[e].field)),this.fieldsStore.setFieldMeta(e,this.clearedFieldMetaCache[e].meta),delete this.clearedFieldMetaCache[e])},validateFieldsInternal:function(e,t,r){var o=this,a=t.fieldNames,s=t.action,l=t.options,c=void 0===l?{}:l,p={},g={},v={},y={};if(e.forEach((function(e){var t=e.name;if(!0===c.force||!1!==e.dirty){var n=o.fieldsStore.getFieldMeta(t),r=(0,i.default)({},e);r.errors=void 0,r.validating=!0,r.dirty=!0,p[t]=o.getRules(n,s),g[t]=r.value,v[t]=r}else e.errors&&(0,d.default)(y,t,{errors:e.errors})})),this.setFields(v),Object.keys(g).forEach((function(e){g[e]=o.fieldsStore.getFieldValue(e)})),r&&(0,m.isEmptyObject)(v))r((0,m.isEmptyObject)(y)?null:y,this.fieldsStore.getFieldsValue(a));else{var b=new u.default(p);n&&b.messages(n),b.validate(g,c,(function(e){var t=(0,i.default)({},y);e&&e.length&&e.forEach((function(e){var n=e.field,r=n;Object.keys(p).some((function(e){var t=p[e]||[];if(e===n)return r=e,!0;if(t.every((function(e){return"array"!==e.type}))||0!==n.indexOf(e+"."))return!1;var o=n.slice(e.length+1);return!!/^\d+$/.test(o)&&(r=e,!0)}));var o=(0,f.default)(t,r);("object"!=typeof o||Array.isArray(o))&&(0,d.default)(t,r,{errors:[]}),(0,f.default)(t,r.concat(".errors")).push(e)}));var n=[],s={};Object.keys(p).forEach((function(e){var r=(0,f.default)(t,e),i=o.fieldsStore.getField(e);(0,h.default)(i.value,g[e])?(i.errors=r&&r.errors,i.value=g[e],i.validating=!1,i.dirty=!1,s[e]=i):n.push({name:e})})),o.setFields(s),r&&(n.length&&n.forEach((function(e){var n=e.name,r=[{message:n+" need to revalidate",field:n}];(0,d.default)(t,n,{expired:!0,errors:r})})),r((0,m.isEmptyObject)(t)?null:t,o.fieldsStore.getFieldsValue(a)))}))}},validateFields:function(e,t,n){var r=this,o=new Promise((function(o,i){var a=(0,m.getParams)(e,t,n),s=a.names,l=a.options,c=(0,m.getParams)(e,t,n).callback;if(!c||"function"==typeof c){var u=c;c=function(e,t){u&&u(e,t),e?i({errors:e,values:t}):o(t)}}var f=s?r.fieldsStore.getValidFieldsFullName(s):r.fieldsStore.getValidFieldsName(),d=f.filter((function(e){var t=r.fieldsStore.getFieldMeta(e);return(0,m.hasRules)(t.validate)})).map((function(e){var t=r.fieldsStore.getField(e);return t.value=r.fieldsStore.getFieldValue(e),t}));d.length?("firstFields"in l||(l.firstFields=f.filter((function(e){return!!r.fieldsStore.getFieldMeta(e).validateFirst}))),r.validateFieldsInternal(d,{fieldNames:f,options:l},c)):c(null,r.fieldsStore.getFieldsValue(f))}));return o.catch((function(e){return console.error,e})),o},isSubmitting:function(){return this.state.submitting},submit:function(e){var t=this;this.setState({submitting:!0}),e((function(){t.setState({submitting:!1})}))},render:function(){var t=this.props,n=t.wrappedComponentRef,a=(0,r.default)(t,["wrappedComponentRef"]),l=(0,o.default)({},S,this.getForm());P?l.ref="wrappedComponent":n&&(l.ref=n);var c=b.call(this,(0,i.default)({},l,a));return s.default.createElement(e,c)}});return(0,m.argumentContainer)((0,c.default)(y),e)}},e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i,a){!e.required||n.hasOwnProperty(e.field)&&!r.isEmptyValue(t,a||e.type)||o.push(r.format(i.messages.required,e.fullField))}},function(e,t,n){var r=n(263);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(23)),o=i(n(21));function i(e){return e&&e.__esModule?e:{default:e}}t.isFormField=s,t.default=function(e){if(s(e))return e;return new a(e)};var a=function e(t){(0,o.default)(this,e),(0,r.default)(this,t)};function s(e){return e instanceof a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIELD_DATA_PROP=t.FIELD_META_PROP=void 0;t.FIELD_META_PROP="data-__meta";t.FIELD_DATA_PROP="data-__field"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(94))&&r.__esModule?r:{default:r}).default)({labelAlign:"right",vertical:!1});t.default=o},function(e,t,n){e.exports=n(19)(1318)},function(e,t,n){"use strict";n(37),n(294)},function(e,t,n){"use strict";n(37),n(295)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(0)),o=d(n(99)),i=u(n(16)),a=u(n(296)),s=u(n(20)),l=n(44),c=u(n(303));function u(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i,a,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=r[l],u=(i=e,a=c,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-i)*a,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,o,i,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,f=c+u;switch(f>1&&(c/=f,u/=f),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-u)-c),t){default:case 6:case 0:i=n,a=o,s=c;break;case 1:i=o,a=n,s=c;break;case 2:i=c,a=n,s=o;break;case 3:i=c,a=o,s=n;break;case 4:i=o,a=c,s=n;break;case 5:i=n,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),s=i-a;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.destroyFns=void 0;var r=m(n(0)),o=h(n(401)),i=m(n(1)),a=h(n(16)),s=h(n(327)),l=n(168),c=h(n(20)),u=h(n(12)),f=h(n(111)),d=n(44);function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t0?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,r=n.prefixCls,o=n.locale,i=n.value,s=i.localeData(),c=o.monthBeforeYear,u=r+"-"+(c?"my-select":"ym-select"),f=t?" "+r+"-time-status":"",d=a.default.createElement("a",{className:r+"-year-select"+f,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:o.yearSelect},i.format(o.yearFormat)),h=a.default.createElement("a",{className:r+"-month-select"+f,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:o.monthSelect},o.monthFormat?i.format(o.monthFormat):s.monthsShort(i)),p=void 0;t&&(p=a.default.createElement("a",{className:r+"-day-select"+f,role:"button"},i.format(o.dayFormat)));var m=[];return m=c?[h,p,d]:[d,h,p],a.default.createElement("span",{className:u},(0,l.default)(m))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}};t.default=g,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.default.Children.map(e,a)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};function a(e){return e}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.timePicker,s=e.disabled,l=e.disabledDate,c=e.onToday,u=e.text,f=(!u&&o?n.now:u)||n.today,d=l&&!(0,a.isAllowedDate)((0,a.getTodayTime)(r),l)||s,h=d?t+"-today-btn-disabled":"";return i.default.createElement("a",{className:t+"-today-btn "+h,role:"button",onClick:d?null:c,title:(0,a.getTodayTimeStr)(r)},f)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(90);e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,a=t+"-ok-btn";r&&(a+=" "+t+"-ok-btn-disabled");return i.default.createElement("a",{className:a,role:"button",onClick:r?null:o},n.ok)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=e.prefixCls,i=e.locale,a=e.showTimePicker,s=e.onOpenTimePicker,l=e.onCloseTimePicker,c=e.timePickerDisabled,u=(0,o.default)(((t={})[n+"-time-picker-btn"]=!0,t[n+"-time-picker-btn-disabled"]=c,t)),f=null;c||(f=a?l:s);return r.default.createElement("a",{className:u,role:"button",onClick:f},a?i.dateSelect:i.timeSelect)};var r=i(n(0)),o=i(n(16));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.commonMixinWrapper=t.defaultProp=t.propType=void 0;var r=l(n(21)),o=l(n(18)),i=l(n(22)),a=l(n(1)),s=l(n(139));function l(e){return e&&e.__esModule?e:{default:e}}function c(){}t.propType={className:a.default.string,locale:a.default.object,style:a.default.object,visible:a.default.bool,onSelect:a.default.func,prefixCls:a.default.string,onChange:a.default.func,onOk:a.default.func},t.defaultProp={locale:s.default,style:{},visible:!0,prefixCls:"rc-calendar",className:"",onSelect:c,onChange:c,onClear:c,renderFooter:function(){return null},renderSidebar:function(){return null}},t.commonMixinWrapper=function(e){var t,n;return n=t=function(e){function t(){var n,i,a;(0,r.default)(this,t);for(var s=arguments.length,l=Array(s),c=0;c3&&void 0!==arguments[3]?arguments[3]:1,o=[],i=0;i=0&&t.hour()<12}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,o=e.placeholder,s=e.disabledMinutes,u=e.disabledSeconds,f=e.hideDisabledOptions,d=e.showHour,h=e.showMinute,p=e.showSecond,m=e.format,g=e.defaultOpenValue,v=e.clearText,y=e.onEsc,b=e.addon,w=e.use12Hours,C=e.focusOnOpen,k=e.onKeyDown,O=e.hourStep,S=e.minuteStep,x=e.secondStep,P=e.inputReadOnly,_=e.clearIcon,A=this.state,T=A.value,M=A.currentSelectPanel,R=this.disabledHours(),D=s(T?T.hour():null),N=u(T?T.hour():null,T?T.minute():null),j=E(24,R,f,O),L=E(60,D,f,S),$=E(60,N,f,x),F=function(e,t,n,r){var o=t.slice().sort((function(t,n){return Math.abs(e.hour()-t)-Math.abs(e.hour()-n)}))[0],a=n.slice().sort((function(t,n){return Math.abs(e.minute()-t)-Math.abs(e.minute()-n)}))[0],s=r.slice().sort((function(t,n){return Math.abs(e.second()-t)-Math.abs(e.second()-n)}))[0];return(0,i.default)("".concat(o,":").concat(a,":").concat(s),"HH:mm:ss")}(g,j,L,$);return r.default.createElement("div",{className:(0,a.default)(n,"".concat(t,"-inner"))},r.default.createElement(l.default,{clearText:v,prefixCls:t,defaultOpenValue:F,value:T,currentSelectPanel:M,onEsc:y,format:m,placeholder:o,hourOptions:j,minuteOptions:L,secondOptions:$,disabledHours:this.disabledHours,disabledMinutes:s,disabledSeconds:u,onChange:this.onChange,focusOnOpen:C,onKeyDown:k,inputReadOnly:P,clearIcon:_}),r.default.createElement(c.default,{prefixCls:t,value:T,defaultOpenValue:F,format:m,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:d,showMinute:h,showSecond:p,hourOptions:j,minuteOptions:L,secondOptions:$,disabledHours:this.disabledHours,disabledMinutes:s,disabledSeconds:u,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:w,onEsc:y,isAM:this.isAM()}),b(this))}}])&&p(n.prototype,o),s&&p(n,s),t}(r.Component);b(C,"propTypes",{clearText:o.default.string,prefixCls:o.default.string,className:o.default.string,defaultOpenValue:o.default.object,value:o.default.object,placeholder:o.default.string,format:o.default.string,inputReadOnly:o.default.bool,disabledHours:o.default.func,disabledMinutes:o.default.func,disabledSeconds:o.default.func,hideDisabledOptions:o.default.bool,onChange:o.default.func,onAmPmChange:o.default.func,onEsc:o.default.func,showHour:o.default.bool,showMinute:o.default.bool,showSecond:o.default.bool,use12Hours:o.default.bool,hourStep:o.default.number,minuteStep:o.default.number,secondStep:o.default.number,addon:o.default.func,focusOnOpen:o.default.bool,onKeyDown:o.default.func,clearIcon:o.default.node}),b(C,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:w,disabledHours:w,disabledMinutes:w,disabledSeconds:w,defaultOpenValue:(0,i.default)(),use12Hours:!1,addon:w,onKeyDown:w,onAmPmChange:w,inputReadOnly:!1}),(0,s.polyfill)(C);var k=C;t.default=k},function(e,t,n){"use strict";t.__esModule=!0,t.default={DATE_ROW_COUNT:6,DATE_COL_COUNT:7},e.exports=t.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.suffixIcon,r=e.prefixCls;return n&&(o.isValidElement(n)?o.cloneElement(n,{className:(0,i.default)((t={},c(t,n.props.className,n.props.className),c(t,"".concat(r,"-picker-icon"),!0),t))}):o.createElement("span",{className:"".concat(r,"-picker-icon")},n))||o.createElement(a.default,{type:"calendar",className:"".concat(r,"-picker-icon")})};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=s(n(16)),a=s(n(20));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(367)),o=i(n(184));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t1&&l(r,"")>-1&&(n=RegExp(this.source,o.replace.call(s(this),"g","")),o.replace.call(e.slice(r.index),n,(function(){for(var e=1;er.index&&this.lastIndex--}return r},a||(RegExp.prototype.test=function(e){var t=o.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function r(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=d.call(arguments,1),o=function(){if(this instanceof o){var r=t.apply(this,n.concat(d.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(d.call(arguments)))};return t.prototype&&(r.prototype=t.prototype,o.prototype=new r,r.prototype=null),o});var o,i,a,s,l,c=Function.prototype.call,u=Array.prototype,f=Object.prototype,d=u.slice,h=c.bind(f.toString),p=c.bind(f.hasOwnProperty);if((l=p(f,"__defineGetter__"))&&(o=c.bind(f.__defineGetter__),i=c.bind(f.__defineSetter__),a=c.bind(f.__lookupGetter__),s=c.bind(f.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var m=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?m.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(d.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+ts)for(f=c;f--;)this[l+f]=this[s+f];if(i&&e===u)this.length=u,this.push.apply(this,o);else for(this.length=u+i,f=0;f>>0;if("[object Function]"!=h(e))throw new TypeError;for(;++o>>0,o=Array(r),i=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var a=0;a>>0,i=[],a=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var s=0;s>>0,o=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var i=0;i>>0,o=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var i=0;i>>0;if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,i=0;if(arguments.length>=2)o=arguments[1];else for(;;){if(i in n){o=n[i++];break}if(++i>=r)throw new TypeError("reduce of empty array with no initial value")}for(;i>>0;if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o,i=r-1;if(arguments.length>=2)o=arguments[1];else for(;;){if(i in n){o=n[i--];break}if(--i<0)throw new TypeError("reduceRight of empty array with no initial value")}do{i in this&&(o=e.call(void 0,o,n[i],i,t))}while(i--);return o}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==h(this)?this.split(""):R(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=M(arguments[1])),r=r>=0?r:Math.max(0,n+r);r>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,M(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:f)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(p(e,t)){var n;if(n={enumerable:!0,configurable:!0},l){var r=e.__proto__;e.__proto__=f;var o=a(e,t),i=s(e,t);if(e.__proto__=r,o||i)return o&&(n.get=o),i&&(n.set=i),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(g=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=g();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,(n=new r).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function w(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Object.defineProperty){var E=w({}),C="undefined"==typeof document||w(document.createElement("div"));if(!E||!C)var k=Object.defineProperty}if(!Object.defineProperty||k){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(k)try{return k.call(Object,e,t,n)}catch(e){}if(p(n,"value"))if(l&&(a(e,t)||s(e,t))){var r=e.__proto__;e.__proto__=f,delete e[t],e[t]=n.value,e.__proto__=r}else e[t]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");p(n,"get")&&o(e,t,n.get),p(n,"set")&&i(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)p(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";p(e,t);)t+="?";e[t]=!0;var n=p(e,t);return delete e[t],n}),!Object.keys){var O=!0,S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=S.length;for(var P in{toString:null})O=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)p(e,n)&&t.push(n);if(O)for(var r=0,o=x;r0||-1)*Math.floor(Math.abs(e))),e}var R=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim"),"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r="object"==typeof navigator?navigator:{},o=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),i=r.userAgent||"",a=r.appName||"";t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==a||a.indexOf("MSAppHost")>=0?parseFloat((i.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=i.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(i.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(i.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(i.split(" Edge/")[1])||void 0,t.isAIR=i.indexOf("AdobeAIR")>=0,t.isAndroid=i.indexOf("Android")>=0,t.isChromeOS=i.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(i)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./useragent");if(t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var o=document.createTextNode(t);return n&&n.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var i=[],a=0;a=1.5,"undefined"!=typeof document){var o=document.createElement("div");t.HI_DPI&&void 0!==o.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),r.isEdge||void 0===o.style.animationName||(t.HAS_CSS_ANIMATION=!0),o=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./oop"),o=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,o=e("./keys"),i=e("./useragent"),a=null,s=0;function l(){return null==r&&function(){r=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){r={passive:!1}}})}catch(e){}}(),r}function c(e,t,n){this.elem=e,this.type=t,this.callback=n}c.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=t.addListener=function(e,t,n,r){e.addEventListener(t,n,l()),r&&r.$toDestroy.push(new c(e,t,n))},f=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||i.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){function r(e){t&&t(e),n&&n(e),f(document,"mousemove",t),f(document,"mouseup",r),f(document,"dragstart",r)}return u(document,"mousemove",t),u(document,"mouseup",r),u(document,"dragstart",r),r},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?u(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}),n):"onwheel"in e?u(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}),n):u(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),n)},t.addMultiMouseDownListener=function(e,n,r,o,a){var s,l,c,f=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?f=0:e.detail>1?++f>4&&(f=1):f=1,i.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;c&&!a||(f=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[f-1]||600),1==f&&(s=e.clientX,l=e.clientY)}if(e._clicks=f,r[o]("mousedown",e),f>4)f=0;else if(f>1)return r[o](d[f],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){u(e,"mousedown",h,a)}))};var d=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function h(e,t,n){var r=d(t);if(!i.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){t.timeStamp-s<50&&(a.altGr=!0)}}}if((n in o.MODIFIER_KEYS&&(n=-1),!r&&13===n)&&(3===(l="location"in t?t.location:t.keyLocation)&&(e(t,r,-n),t.defaultPrevented)))return;if(i.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,r,n)}function p(){a=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[d(e)]},t.addCommandKeyListener=function(e,n,r){if(i.isOldGecko||i.isOpera&&!("KeyboardEvent"in window)){var o=null;u(e,"keydown",(function(e){o=e.keyCode}),r),u(e,"keypress",(function(e){return h(n,e,o)}),r)}else{var s=null;u(e,"keydown",(function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=h(n,e,e.keyCode);return s=e.defaultPrevented,t}),r),u(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)}),r),u(e,"keyup",(function(e){a[e.keyCode]=null}),r),a||(p(),u(window,"focus",p))}},"object"==typeof window&&window.postMessage&&!i.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+m++,o=function(i){i.data==r&&(t.stopPropagation(i),f(n,"message",o),e())};u(n,"message",o),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var o={row:t+1,column:0};else if(this.start.row0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;nDate.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../lib/useragent"),i=e("../lib/dom"),a=e("../lib/lang"),s=e("../clipboard"),l=o.isChrome<18,c=o.isIE,u=o.isChrome>63,f=e("../lib/keys"),d=f.KEY_MODS,h=o.isIOS,p=h?/\s/:/\n/,m=o.isMobile;t.TextInput=function(e,t){var n=i.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var g=!1,v=!1,y=!1,b=!1,w="";m||(n.style.fontSize="1px");var E=!1,C=!1,k="",O=0,S=0,x=0;try{var P=document.activeElement===n}catch(e){}r.addListener(n,"blur",(function(e){C||(t.onBlur(e),P=!1)}),t),r.addListener(n,"focus",(function(e){if(!C){if(P=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(_):_()}}),t),this.$focusScroll=!1,this.focus=function(){if(w||u||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(e){return}var r=[];if(t)for(var o=n.parentElement;o&&1==o.nodeType;)r.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;n.focus({preventScroll:!0}),t&&r.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return P},t.on("beforeEndOperation",(function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var o=r&&(e.docChanged||e.selectionChanged);y&&o&&(k=n.value="",I()),_()}}));var _=h?function(e){if(P&&(!g||e)&&!b){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=k=r);var o=4+(e.length||(t.selection.isEmpty()?0:1));4==O&&S==o||n.setSelectionRange(4,o),O=4,S=o}}:function(){if(!y&&!b&&(P||T)){y=!0;var e=0,r=0,o="";if(t.session){var i=t.selection,a=i.getRange(),s=i.cursor.row;if(e=a.start.column,r=a.end.column,o=t.session.getLine(s),a.start.row!=s){var l=t.session.getLine(s-1);e=a.start.rows+1?c.length:r,r+=o.length+1,o=o+"\n"+c}else m&&s>0&&(o="\n"+o,r+=1,e+=1);o.length>400&&(e<400&&r<400?o=o.slice(0,400):(o="\n",e=0,r=1))}var u=o+"\n\n";if(u!=k&&(n.value=k=u,O=S=u.length),T&&(O=n.selectionStart,S=n.selectionEnd),S!=r||O!=e||n.selectionEnd!=S)try{n.setSelectionRange(e,r),O=e,S=r}catch(e){}y=!1}};this.resetSelection=_,P&&t.onFocus();var A=null;this.setInputHandler=function(e){A=e},this.getInputHandler=function(){return A};var T=!1,M=function(e,r){if(T&&(T=!1),v)return _(),e&&t.onPaste(e),v=!1,"";for(var o=n.selectionStart,i=n.selectionEnd,a=O,s=k.length-S,l=e,c=e.length-o,u=e.length-i,f=0;a>0&&k[f]==e[f];)f++,a--;for(l=l.slice(f),f=1;s>0&&k.length-f>O-1&&k[k.length-f]==e[e.length-f];)f++,s--;c-=f-1,u-=f-1;var d=l.length-f+1;return d<0&&(a=-d,d=0),l=l.slice(0,d),r||l||c||a||s||u?(b=!0,l&&!a&&!s&&!c&&!u||E?t.onTextInput(l):t.onTextInput(l,{extendLeft:a,extendRight:s,restoreStart:c,restoreEnd:u}),b=!1,k=e,O=o,S=i,x=u,l):""},R=function(e){if(y)return F();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,o=M(r,!0);(r.length>500||p.test(o)||m&&O<1&&O==S)&&_()},D=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var o=c||n?"Text":"text/plain";try{return t?!1!==r.setData(o,t):r.getData(o)}catch(e){if(!n)return D(e,t,!0)}}},N=function(e,o){var i=t.getCopyText();if(!i)return r.preventDefault(e);D(e,i)?(h&&(_(i),g=i,setTimeout((function(){g=!1}),10)),o?t.onCut():t.onCopy(),r.preventDefault(e)):(g=!0,n.value=i,n.select(),setTimeout((function(){g=!1,_(),o?t.onCut():t.onCopy()})))},j=function(e){N(e,!0)},L=function(e){N(e,!1)},$=function(e){var i=D(e);s.pasteCancelled()||("string"==typeof i?(i&&t.onPaste(i,e),o.isIE&&setTimeout(_),r.preventDefault(e)):(n.value="",v=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",(function(e){y||(g?g=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd>=k.length&&e.value===k&&k&&e.selectionEnd!==S}(n)?m&&n.selectionStart!=O&&_():(t.selectAll(),_()))}),t),r.addListener(n,"input",R,t),r.addListener(n,"cut",j,t),r.addListener(n,"copy",L,t),r.addListener(n,"paste",$,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:L(e);break;case 86:$(e);break;case 88:j(e)}}),t);var F=function(){if(y&&t.onCompositionUpdate&&!t.$readOnly){if(E)return V();if(y.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;M(e),y.markerRange&&(y.context&&(y.markerRange.start.column=y.selectionStart=y.context.compositionStartOffset),y.markerRange.end.column=y.markerRange.start.column+S-y.selectionStart+x)}}},I=function(e){t.onCompositionEnd&&!t.$readOnly&&(y=!1,t.onCompositionEnd(),t.off("mousedown",V),e&&R())};function V(){C=!0,n.blur(),n.focus(),C=!1}var B,W=a.delayedCall(F,50).schedule.bind(null,null);function H(){clearTimeout(B),B=setTimeout((function(){w&&(n.style.cssText=w,w=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}r.addListener(n,"compositionstart",(function(e){if(!y&&t.onCompositionStart&&!t.$readOnly&&(y={},!E)){e.data&&(y.useTextareaForIME=!1),setTimeout(F,0),t._signal("compositionStart"),t.on("mousedown",V);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,y.markerRange=r,y.selectionStart=O,t.onCompositionStart(y),y.useTextareaForIME?(k=n.value="",O=0,S=0):(n.msGetInputContext&&(y.context=n.msGetInputContext()),n.getInputContext&&(y.context=n.getInputContext()))}}),t),r.addListener(n,"compositionupdate",F,t),r.addListener(n,"keyup",(function(e){27==e.keyCode&&n.value.lengthS&&"\n"==k[i]?a=f.end:rS&&k.slice(0,i).split("\n").length>2?a=f.down:i>S&&" "==k[i-1]?(a=f.right,s=d.option):(i>S||i==S&&S!=O&&r==i)&&(a=f.right),r!==i&&(s|=d.shift),a){if(!t.onCommandKey({},s,a)&&t.commands){a=f.keyCodeToString(a);var l=t.commands.findKeyCommand(s,a);l&&t.execCommand(l)}O=r,S=i,_("")}}};document.addEventListener("selectionchange",i),t.on("destroy",(function(){document.removeEventListener("selectionchange",i)}))}(0,t,n)},t.$setUserAgentForTests=function(e,t){m=e,h=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/useragent");function o(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,i=e.getButton();return 0!==i?((o.getSelectionRange().isEmpty()||1==i)&&o.selection.moveToPosition(n),void(2==i&&(o.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var o=i(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](r.row,r.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)t=this.$clickSelection.end,o.end.row==r.row&&o.end.column==r.column||(r=o.start);else if(1==s&&a>=0)t=this.$clickSelection.start,o.start.row==r.row&&o.start.column==r.column||(r=o.end);else if(-1==a&&1==s)r=o.end,t=o.start;else{var l=i(this.$clickSelection,r);r=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,r,o=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),i=Date.now();(o>0||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,o=r-n.t,i=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<550&&(i=(i+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(i/a),l=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<550){Math.abs(i)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=i,n.vy=a,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(o.prototype),t.DefaultHandlers=o})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/oop"),i=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){a.call(this,e)}o.inherits(s,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),i=this.getHeight();(e+=15)+o>n&&(e-=e+o-n),(t+=15)+i>r&&(t-=20+i),a.prototype.setPosition.call(this,e,t)}}.call(s.prototype),t.GutterHandler=function(e){var t,n,o,a=e.editor,l=a.renderer.$gutterLayer,c=new s(a.container);function u(){t&&(t=clearTimeout(t)),o&&(c.hide(),o=null,a._signal("hideGutterTooltip",c),a.off("mousewheel",u))}function f(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var n=t.getDocumentPosition().row,r=a.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(i){var s=i.domEvent.target||i.domEvent.srcElement;if(r.hasCssClass(s,"ace_fold-widget"))return u();o&&e.$tooltipFollowsMouse&&f(i),n=i,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,r=l.$annotations[t];if(!r)return u();if(t==a.session.getLength()){var i=a.renderer.pixelToScreenCoordinates(0,n.y).row,s=n.$pos;if(i>a.session.documentToScreenRow(s.row,s.column))return u()}if(o!=r)if(o=r.text.join("
"),c.setHtml(o),c.show(),a._signal("showGutterTooltip",c),a.on("mousewheel",u),e.$tooltipFollowsMouse)f(n);else{var d=n.domEvent.target.getBoundingClientRect(),h=c.getElement().style;h.left=d.right+"px",h.top=d.bottom+"px"}}():u()}),50))})),i.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,o&&!t&&(t=setTimeout((function(){t=null,u()}),50))}),a),a.on("changeSession",u)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../lib/useragent"),i=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(i.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/event"),i=e("../lib/useragent");function a(e){var t=e.editor,n=r.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",i.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var a,l,c,u,f,d,h,p,m,g,v,y=t.container,b=0;function w(){var e=d;(function(e,n){var r=Date.now(),o=!n||e.row!=n.row,i=!n||e.column!=n.column;!g||o||i?(t.moveCursorToPosition(e),g=r,v={x:l,y:c}):s(v.x,v.y,l,c)>5?g=null:r-g>=200&&(t.renderer.scrollCursorIntoView(),g=null)})(d=t.renderer.screenToTextCoordinates(l,c),e),function(e,n){var r=Date.now(),o=t.renderer.layerConfig.lineHeight,i=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),s={x:{left:l-a.left,right:a.right-l},y:{top:c-a.top,bottom:a.bottom-c}},u=Math.min(s.x.left,s.x.right),f=Math.min(s.y.top,s.y.bottom),d={row:e.row,column:e.column};u/i<=2&&(d.column+=s.x.left=200&&t.renderer.scrollCursorIntoView(d):m=r:m=null}(d,e)}function E(){f=t.selection.toOrientedRange(),a=t.session.addMarker(f,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),w(),u=setInterval(w,20),b=0,o.addListener(document,"mousemove",O)}function C(){clearInterval(u),t.session.removeMarker(a),a=null,t.selection.fromOrientedRange(f),t.isFocused()&&!p&&t.$resetCursorStyle(),f=null,d=null,b=0,m=null,g=null,o.removeListener(document,"mousemove",O)}this.onDragStart=function(e){if(this.cancelDrag||!y.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}f=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",i.isOpera&&(t.container.appendChild(n),n.scrollTop=0),o.setDragImage&&o.setDragImage(n,0,0),i.isOpera&&t.container.removeChild(n),o.clearData(),o.setData("Text",t.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(e){if(y.draggable=!1,p=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;h||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,c=e.clientY,a||E(),b++,e.dataTransfer.dropEffect=h=x(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,c=e.clientY,a||(E(),b++),null!==k&&(k=null),e.dataTransfer.dropEffect=h=x(e),o.preventDefault(e)},this.onDragLeave=function(e){if(--b<=0&&a)return C(),h=null,o.preventDefault(e)},this.onDrop=function(e){if(d){var n=e.dataTransfer;if(p)switch(h){case"move":f=f.contains(d.row,d.column)?{start:d,end:d}:t.moveText(f,d);break;case"copy":f=t.moveText(f,d,!0)}else{var r=n.getData("Text");f={start:d,end:t.session.insert(d,r)},t.focus(),h=null}return C(),o.preventDefault(e)}},o.addListener(y,"dragstart",this.onDragStart.bind(e),t),o.addListener(y,"dragend",this.onDragEnd.bind(e),t),o.addListener(y,"dragenter",this.onDragEnter.bind(e),t),o.addListener(y,"dragover",this.onDragOver.bind(e),t),o.addListener(y,"dragleave",this.onDragLeave.bind(e),t),o.addListener(y,"drop",this.onDrop.bind(e),t);var k=null;function O(){null==k&&(k=setTimeout((function(){null!=k&&a&&C()}),20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function x(e){var t=["copy","copymove","all","uninitialized"],n=i.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return n&&t.indexOf(r)>=0?o="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?o="move":t.indexOf(r)>=0&&(o="copy"),o}}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=i.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;i.isIE&&"dragReady"==this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(i.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(a.prototype),t.DragdropHandler=a})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,o=e("../lib/event"),i=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,c,u,f,d,h,p="scroll",m=0,g=0,v=0,y=0;function b(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(r){var o,a,s=r.target.getAttribute("action");if("more"==s||!n)return n=!n,o=t.getCopyText(),a=t.session.getUndoManager().hasUndo(),void h.replaceChild(i.buildDom(n?["span",!o&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],o&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],o&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],a&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),h.firstChild);"paste"==s?e.readText().then((function(e){t.execCommand(s,e)})):s&&("cut"!=s&&"copy"!=s||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(s)),h.firstChild.style.display="none",n=!1,"openCommandPallete"!=s&&t.focus()};h=i.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),r(e)},onclick:r},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){h||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.container.getBoundingClientRect();h.style.top=n.pageY-r.top-3+"px",h.style.right="10px",h.style.display="",h.firstChild.style.display="none",t.on("input",E)}function E(e){h&&(h.style.display="none"),t.off("input",E)}function C(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(f.row,f.column);!e.isEmpty()&&n||(t.selection.moveToPosition(f),t.selection.selectWord()),p="wait",w()}o.addListener(e,"contextmenu",(function(e){d&&t.textInput.getElement().focus()}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(c||o.length>1)return clearTimeout(c),c=null,s=-1,void(p="zoom");d=t.$mouseHandler.isMousePressed=!0;var i=t.renderer.layerConfig.lineHeight,u=t.renderer.layerConfig.lineHeight,h=e.timeStamp;l=h;var b=o[0],w=b.clientX,E=b.clientY;Math.abs(n-w)+Math.abs(a-E)>i&&(s=-1),n=e.clientX=w,a=e.clientY=E,v=y=0;var k=new r(e,t);if(f=k.getDocumentPosition(),h-s<500&&1==o.length&&!m)g++,e.preventDefault(),e.button=0,function(){c=null,clearTimeout(c),t.selection.moveToPosition(f);var e=g>=2?t.selection.getLineRange(f.row):t.session.getBracketRange(f);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}();else{g=0;var O=t.selection.cursor,S=t.selection.isEmpty()?O:t.selection.anchor,x=t.renderer.$cursorLayer.getPixelPosition(O,!0),P=t.renderer.$cursorLayer.getPixelPosition(S,!0),_=t.renderer.scroller.getBoundingClientRect(),A=function(e,t){return(e/=u)*e+(t=t/i-.75)*t};if(e.clientX<_.left)return void(p="zoom");var T=A(e.clientX-_.left-x.left,e.clientY-_.top-x.top),M=A(e.clientX-_.left-P.left,e.clientY-_.top-P.top);T<3.5&&M<3.5&&(p=T>M?"cursor":"anchor"),p=M<3.5?"anchor":T<3.5?"cursor":"scroll",c=setTimeout(C,450)}s=h}),t),o.addListener(e,"touchend",(function(e){d=t.$mouseHandler.isMousePressed=!1,u&&clearInterval(u),"zoom"==p?(p="",m=0):c?(t.selection.moveToPosition(f),m=0,w()):"scroll"==p?(m+=60,u=setInterval((function(){m--<=0&&(clearInterval(u),u=null),Math.abs(v)<.01&&(v=0),Math.abs(y)<.01&&(y=0),m<20&&(v*=.9),m<20&&(y*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*y),e==t.session.getScrollTop()&&(m=0)}),10),E()):w(),clearTimeout(c),c=null}),t),o.addListener(e,"touchmove",(function(e){c&&(clearTimeout(c),c=null);var o=e.touches;if(!(o.length>1||"zoom"==p)){var i=o[0],s=n-i.clientX,u=a-i.clientY;if("wait"==p){if(!(s*s+u*u>4))return e.preventDefault();p="cursor"}n=i.clientX,a=i.clientY,e.clientX=i.clientX,e.clientY=i.clientY;var f=e.timeStamp,d=f-l;if(l=f,"scroll"==p){var h=new r(e,t);h.speed=1,h.wheelX=s,h.wheelY=u,10*Math.abs(s)1&&(o=n[n.length-2]);var a=l[t+"Path"];return null==a?a=l.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+o+this.get("suffix")},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var o,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{o=e(n)}catch(e){}if(o&&!t.$loading[n])return r&&r(o);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();i.loadScript(t.moduleUrl(n,a),s),c()}};var c=function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};function u(o){if(s&&s.document){l.packaged=o||e.packaged||r.packaged||s.define&&n(189).packaged;for(var i,a={},c="",u=document.currentScript||document._currentScript,f=(u&&u.ownerDocument||document).getElementsByTagName("script"),d=0;d=e){for(i=f+1;i=e;)i++;for(s=f,l=i-1;s=t.length||2!=(l=n[o-1])&&3!=l||2!=(c=t[o+1])&&3!=c?4:(i&&(c=3),c==l?c:4);case 10:return 2==(l=o>0?n[o-1]:5)&&o+10&&2==n[o-1])return 2;if(i)return 4;for(f=o+1,u=t.length;f=1425&&h<=2303||64286==h;if(l=t[f],p&&(1==l||7==l))return 1}return o<1||5==(l=t[o-1])?4:n[o-1];case 5:return i=!1,a=!0,r;case 6:return s=!0,4;case 13:case 14:case 16:case 17:case 15:i=!1;case 18:return 4}}function p(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:u[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?11:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?f[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,u){if(e.length<2)return{};var f=e.split(""),m=new Array(f.length),g=new Array(f.length),v=[];r=u?1:0,function(e,t,n,u){var f=r?c:l,d=null,m=null,g=null,v=0,y=null,b=-1,w=null,E=null,C=[];if(!u)for(w=0,u=[];w0)if(16==y){for(w=b;w-1){for(w=b;w=0&&8==u[k];k--)t[k]=r}}(f,v,f.length,n);for(var y=0;y7&&n[y]<13||4===n[y]||18===n[y])?v[y]=t.ON_R:y>0&&"ل"===f[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(f[y])&&(v[y-1]=v[y]=t.R_H,y++);f[f.length-1]===t.DOT&&(v[f.length-1]=t.B),"‫"===f[0]&&(v[0]=t.RLE);for(y=0;y=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[e];i&&(void 0===t&&(t=this.getSplitIndex()),t>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,o=r.getVisualFromLogicalIdx(n,this.bidiMap),i=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&i[o]%2!=0&&o++;for(var s=0;st&&i[o]%2==0&&(a+=this.charWidths[i[o]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,o=r.bidiLevels,i=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,f=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,h=0;h=s&&dn+i/2;){if(n+=i,r===o.length-1){i=0;break}i=this.charWidths[o[++r]]}return r>0&&o[r-1]%2!=0&&o[r]%2==0?(e0&&o[r-1]%2==0&&o[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===o.length-1&&0===i&&o[r-1]%2==0||!this.isRtlDir&&0===r&&o[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&o[r-1]%2!=0&&0!==i&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/lang"),i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){r.implement(this,i),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(!this.$silent){var o=this.$isEmpty,i=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||i)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(r);return o?(r=o.start.row,n=o.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,o=e.column+t;return n<0&&(r=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(i)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var i=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var i=o.stringReverse(r),a=this.$shortWordEndIndex(i);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var i=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&i.row===this.lead.row&&(i.column,this.lead.column),this.moveCursorTo(i.row,i.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),o=2e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],o=0,i=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l1?this.$applyToken:c.token),f>1&&(/\\\d/.test(c.regex)?u=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(f=1,u=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||s.push(c)),i[o]=l,o+=f,r.push(u),c.onMatch||(c.onMatch=null)}}r.length||(i[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],o=0,i=n.length;ou){var v=e.substring(u,g-m.length);d.type==h?d.value+=v:(d.type&&c.push(d),d={type:h,value:v})}for(var y=0;yo){for(f>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:c,state:n.length?n:r}},this.reportError=r.reportError}).call(i.prototype),t.Tokenizer=i})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],o=0;o=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,o=e("../../lib/oop"),i=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u={},f={'"':'"',"'":"'"},d=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(e,t,n,r){var o=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,o,i,a){var l=o.getCursorPosition(),c=i.doc.getLine(l.row);if("{"==a){d(o);var u=o.getSelectionRange(),f=i.doc.getTextRange(u);if(""!==f&&"{"!==f&&o.getWrapBehavioursEnabled())return h(u,f,"{","}");if(p.isSaneInsertion(o,i))return/[\]\}\)]/.test(c[l.column])||o.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(o,i,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(o,i,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(d(o),"}"==c.substring(l.column,l.column+1))if(null!==i.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&p.isAutoInsertedClosing(l,c,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){d(o);var m="";if(p.isMaybeInsertedClosing(l,c)&&(m=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===c.substring(l.column,l.column+1)){var g=i.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!g)return null;var v=this.$getIndent(i.getLine(g.row))}else{if(!m)return void p.clearMaybeInsertedClosing();v=this.$getIndent(c)}var y=v+i.getTabString();return{text:"\n"+y+"\n"+v+m,selection:[1,y.length,1,y.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,i){var a=o.doc.getTextRange(i);if(!i.isMultiLine()&&"{"==a){if(d(n),"}"==o.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,o){if("("==o){d(n);var i=n.getSelectionRange(),a=r.doc.getTextRange(i);if(""!==a&&n.getWrapBehavioursEnabled())return h(i,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==o){d(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,o){var i=r.doc.getTextRange(o);if(!o.isMultiLine()&&"("==i&&(d(n),")"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(e,t,n,r,o){if("["==o){d(n);var i=n.getSelectionRange(),a=r.doc.getTextRange(i);if(""!==a&&n.getWrapBehavioursEnabled())return h(i,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){d(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,o){var i=r.doc.getTextRange(o);if(!o.isMultiLine()&&"["==i&&(d(n),"]"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(e,t,n,r,o){var i=r.$mode.$quotes||f;if(1==o.length&&i[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;d(n);var a=o,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&i[l])&&n.getWrapBehavioursEnabled())return h(s,l,a,a);if(!l){var c=n.getCursorPosition(),u=r.doc.getLine(c.row),p=u.substring(c.column-1,c.column),m=u.substring(c.column,c.column+1),g=r.getTokenAt(c.row,c.column),v=r.getTokenAt(c.row,c.column+1);if("\\"==p&&g&&/escape/.test(g.type))return null;var y,b=g&&/string|escape/.test(g.type),w=!v||/string|escape/.test(v.type);if(m==a)(y=b!==w)&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var E=r.$mode.tokenRe;E.lastIndex=0;var C=E.test(p);E.lastIndex=0;var k=E.test(p);if(C||k)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var O=u[c.column-2];if(p==a&&(O==a||E.test(O)))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,o){var i=r.$mode.$quotes||f,a=r.doc.getTextRange(o);if(!o.isMultiLine()&&i.hasOwnProperty(a)&&(d(n),r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==a))return o.end.column++,o}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new a(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var o=e.getCursorPosition(),i=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,i,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=o.row,r.autoInsertedLineEnd=n+i.substr(o.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var o=e.getCursorPosition(),i=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,i)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=o.row,r.maybeInsertedLineStart=i.substr(0,o.column)+n,r.maybeInsertedLineEnd=i.substr(o.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},o.inherits(p,i),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,i=[],a=0;a2?r%c!=c-1:r%c==0})}else{if(!this.blockComment)return!1;var h=this.blockComment.start,p=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+l.escapeRegExp(h)+")"),g=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||i&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},p),o.insertInLine({row:t,column:s},h))},y=function(e,t){var n;(n=e.match(g))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&o.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),o=0;oe.length&&(E=e.length)})),s==1/0&&(s=E,i=!1,a=!1),u&&s%c!=0&&(s=Math.floor(s/c)*c),w(a?y:v)},this.toggleBlockComment=function(e,t,n,r){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var i,a,s=(m=new c(t,r.row,r.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var f,d;s&&/comment/.test(s.type);){if(-1!=(g=s.value.indexOf(o.start))){var h=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;f=new u(h,p,h,p+o.start.length);break}s=m.stepBackward()}var m;for(s=(m=new c(t,r.row,r.column)).getCurrentToken();s&&/comment/.test(s.type);){var g;if(-1!=(g=s.value.indexOf(o.end))){h=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;d=new u(h,p,h,p+o.end.length);break}s=m.stepForward()}d&&t.remove(d),f&&(t.remove(f),i=f.start.row,a=-o.start.length)}else a=o.start.length,i=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==i&&(l.start.column+=a),l.end.row==i&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,i=r.$modes[o];i||(r.$modes[o]=i=new n),r.$modes[t]||(r.$modes[t]=i),this.$embeds.push(t),this.$modes[t]=i}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var n=function(t,n,r){var o="insert"==t.action,i=(o?1:-1)*(t.end.row-t.start.row),a=(o?1:-1)*(t.end.column-t.start.column),s=t.start,l=o?s:t.end;if(e(n,s,r))return{row:n.row,column:n.column};if(e(l,n,!r))return{row:n.row+i,column:n.column+(n.row==l.row?a:0)};return{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var o={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:o,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(i.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./apply_delta").applyDelta,i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,i),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),i<=r&&n.fireUpdateEvent(i,r)}}};(function(){r.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(i.prototype),t.BackgroundTokenizer=i})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),i=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(var a=i.firstRow,s=i.lastRow,l=a;l<=s;l++){var c=this.cache[l];null==c&&((c=r.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new o(l,e.offset,l,e.offset+e.length)})),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)t.drawSingleLineMarker(e,c[u].toScreenRange(n),this.clazz,i)}}}).call(i.prototype),t.SearchHighlight=i})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,o,i=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l0)){var l=r(e,a.start);return 0===s?t&&0!==l?-i-2:i:l>0||0===l&&!t?i:-i-1}}return-i-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,o=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],i=1;i=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row=r)break}if("insert"==e.action)for(var l=o-r,c=-t.column+n.column;ar)break;if(u.start.row==r&&u.start.column>=t.column&&(u.start.column==t.column&&this.$bias<=0||(u.start.column+=c,u.start.row+=l)),u.end.row==r&&u.end.column>=t.column){if(u.end.column==t.column&&this.$bias<0)continue;u.end.column==t.column&&c>0&&au.start.column&&u.end.column==i[a+1].start.column&&(u.end.column-=c),u.end.column+=c,u.end.row+=l}}else for(l=r-o,c=t.column-n.column;ao)break;u.end.rowt.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=c,u.end.row+=l):u.end.row>o&&(u.end.row+=l),u.start.rowt.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=c,u.start.row+=l):u.start.row>o&&(u.start.row+=l)}if(0!=l&&a=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,o=0;o=t){s=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof i?n=e:(n=new i(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,u=n.end.column,f=this.getFoldAt(s,l,1),d=this.getFoldAt(c,u,-1);if(f&&d==f)return f.addSubFold(n);f&&!f.range.isStart(s,l)&&this.removeFold(f),d&&!d.range.isEnd(c,u)&&this.removeFold(d);var h=this.getFoldsInRange(n.range);h.length>0&&(this.removeFolds(h),h.forEach((function(e){n.addSubFold(e)})));for(var p=0;p0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e?(n=new r(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,o=this.getFoldsInRangeList(n),t)this.removeFolds(o);else for(var i=o;i.length;)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,o){null==r&&(r=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var i=this.doc,a="";return e.walk((function(e,t,n,s){if(!(tu)break}while(i&&l.test(i.type));i=o.stepBackward()}else i=o.getCurrentToken();return c.end.row=o.getCurrentTokenRow(),c.end.column=o.getCurrentTokenColumn()+i.value.length-2,c}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var o=e=e||0;o=e){o=i.end.row;try{var a=this.addFold("...",i);a&&(a.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,o=e-1;o>=0;){var i=n[o];if(null==i&&(i=n[o]=this.getFoldWidget(o)),"start"==i){var a=this.getFoldWidgetRange(o);if(r||(r=a),a&&a.end.row>=e)break}o--}return{range:-1!==o&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),o="end"===n?-1:1,i=this.getFoldAt(e,-1===o?0:r.length,o);if(i)return t.children||t.all?this.removeFold(i):this.expandFold(i),i;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(i=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(i.range))return this.removeFold(i),i;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,c=s.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=a?a.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,i=n.charAt(e.column-1),a=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(a||(i=n.charAt(e.column),e={row:e.row,column:e.column+1},a=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=o.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=o.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!r)return null;var i=new o(e.row,e.column-1,e.row,e.column),a=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);return a?[i,new o(a.row,a.column,a.row,a.column+1)]:[i]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],i=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn()-2,c=s.value;;){for(;l>=0;){var u=c.charAt(l);if(u==o){if(0==(i-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else u==e&&(i+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;l=(c=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],i=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn();;){for(var c=s.value,u=c.length;ln&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var o=n+r>>1,i=e[o];if(t>i)n=o+1;else{if(!(t=t);i++);return(n=r[i])?(n.index=i,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var i=t;if(i>0){do{i--}while(i>=0&&n.charAt(i).match(o));i++}for(var a=t;ae&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,o=0,i=this.$foldData[o],a=i?i.start.row:1/0,s=t.length,l=0;la){if((l=i.end.row+1)>=s)break;a=(i=this.$foldData[o++])?i.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;ne.end.column&&(i.start.column+=c),i.end.row==e.end.row&&i.end.column>e.end.column&&(i.end.column+=c)),a&&i.start.row>=e.end.row&&(i.start.row+=a,i.end.row+=a)}if(i.end=this.insert(i.start,r),o.length){var s=e.start,l=i.start,c=(a=l.row-s.row,l.column-s.column);this.addFolds(o.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=c),e.end.row==s.row&&(e.end.column+=c),e.start.row+=a,e.end.row+=a,e})))}return i},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var i=this.getLine(o);n.start.row=o,n.end.row=o;for(var a=0;a0){var o;if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=o-t}else{e=this.$clipRowToDocument(e);r=(t=this.$clipRowToDocument(t))-e+1}var i=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(i).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,o=e.end,i=r.row,a=o.row,s=a-i,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(i,s);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var u=0;if(m=this.getFoldLine(o.row)){m.addRemoveChars(o.row,o.column,r.column-o.column),m.shiftRow(-s);var f=this.getFoldLine(i);f&&f!==m&&(f.merge(m),m=f),u=c.indexOf(m)+1}for(;u=o.row&&m.shiftRow(-s)}a=i}else{var d=Array(s);d.unshift(i,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,d);c=this.$foldData,u=0;if(m=this.getFoldLine(i)){var p=m.range.compareInside(r.row,r.column);0==p?(m=m.split(r.row,r.column))&&(m.shiftRow(s),m.addRemoveChars(a,0,o.column-r.column)):-1==p&&(m.addRemoveChars(i,0,o.column-r.column),m.shiftRow(s)),u=c.indexOf(m)+1}for(;u=i&&m.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(m=this.getFoldLine(i))&&m.addRemoveChars(i,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(i,a):this.$updateRowLengthCache(i,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,r){var o,i,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=n;for(r=Math.min(r,a.length-1);u<=r;)(i=this.getFoldLine(u,i))?(o=[],i.walk(function(n,r,i,s){var l;if(null!=n){(l=this.$getDisplayTokens(n,o.length))[0]=e;for(var c=1;c=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,r,o){if(0==n.length)return[];var i=[],a=n.length,s=0,l=0,c=this.$wrapAsCode,u=this.$indentedSoftWrap,f=r<=Math.max(2*o,8)||!1===u?0:Math.floor(r/2);function d(e){for(var t=e-s,r=s;rr-h;){var p=s+r-h;if(n[p-1]>=10&&n[p]>=10)d(p);else if(n[p]!=e&&n[p]!=t){for(var m=Math.max(p-(r-(r>>2)),s-1);p>m&&n[p]m&&n[p]m&&9==n[p];)p--}else for(;p>m&&n[p]<10;)p--;p>m?d(++p):(2==n[p=s+r]&&p--,d(p-h))}else{for(;p!=s-1&&n[p]!=e;p--);if(p>s){d(p);continue}for(p=s+r;p39&&a<48||a>57&&a<64?o.push(9):a>=4352&&n(a)?o.push(1,2):o.push(1)}return o},this.$getStringScreenWidth=function(e,t,r){if(0==t)return[0,0];var o,i;for(null==t&&(t=1/0),r=r||0,i=0;i=4352&&n(o)?r+=2:r+=1,!(r>t));i++);return[r,i]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=c[u],i=this.$docRowCache[u];var d=e>c[f-1]}else d=!f;for(var h=this.getLength()-1,p=this.getNextFoldLine(i),m=p?p.start.row:1/0;s<=e&&!(s+(l=this.getRowLength(i))>e||i>=h);)s+=l,++i>m&&(i=p.end.row+1,m=(p=this.getNextFoldLine(i,p))?p.start.row:1/0),d&&(this.$docRowCache.push(i),this.$screenRowCache.push(s));if(p&&p.start.row<=i)r=this.getFoldDisplayLine(p),i=p.start.row;else{if(s+l<=e||i>h)return{row:h,column:this.getLine(h).length};r=this.getLine(i),p=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[i];y&&(o=y[v],v>0&&y.length&&(g=y.indent,a=y[v-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,i,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=o&&(a=o-1),p?p.idxToPosition(a):{row:i,column:a}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,o=0,i=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),u=l.length;if(u&&c>=0){s=l[c],o=this.$screenRowCache[c];var f=e>l[u-1]}else f=!u;for(var d=this.getNextFoldLine(s),h=d?d.start.row:1/0;s=h){if((a=d.end.row+1)>e)break;h=(d=this.getNextFoldLine(a,d))?d.start.row:1/0}else a=s+1;o+=this.getRowLength(s),s=a,f&&(this.$docRowCache.push(s),this.$screenRowCache.push(o))}var p="";d&&s>=h?(p=this.getFoldDisplayLine(d,e,t),i=d.start.row):(p=this.getLine(e).substring(0,t),i=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[i];if(g){for(var v=0;p.length>=g[v];)o++,v++;p=p.substring(g[v-1]||0,p.length),m=v>0?g.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(o+=this.lineWidgets[s].rowsAbove),{row:o,column:m+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,o=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);ro&&(r=t.end.row+1,o=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;sn);i++);return[r,i]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=n}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),o=e("./lib/oop"),i=e("./range").Range,a=function(){this.$options={}};(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,o,a){return r=new i(e,n,o,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,c=s.length,u=o.length-c;e:for(var f=s.offset||0;f<=u;f++){for(var d=0;dm||(a.push(l=new i(f,m,f+c-1,g)),c>2&&(f=f+c-2))}}else for(var v=0;vE&&a[d].end.row==n.end.row;)d--;for(a=a.slice(v,d+1),v=0,d=a.length;v=s;n--)if(f(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(f(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=a.row;if(!f(n,a.column,e)){for(n+=1;n<=l;n++)if(f(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(f(n,0,e))return}};if(t.$isMultiLine)var u=n.length,f=function(t,o,i){var a=r?t-u+1:t;if(!(a<0)){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&lo))return!!i(a,l,a+u-1,f)||void 0}}};else if(r)f=function(t,r,o){var i,a=e.getLine(t),s=[],l=0;for(n.lastIndex=0;i=n.exec(a);){var c=i[0].length;if(l=i.index,!c){if(l>=a.length)break;n.lastIndex=l+=1}if(i.index+c>r)break;s.push(i.index,c)}for(var u=s.length-1;u>=0;u-=2){var f=s[u-1];if(o(t,f,t,f+(c=s[u])))return!0}};else f=function(t,r,o){var i,a,s=e.getLine(t);for(n.lastIndex=r;a=n.exec(s);){var l=a[0].length;if(o(t,i=a.index,t,i+l))return!0;if(!l&&(n.lastIndex=i+=1,i>=s.length))return!1}};return{forEach:c}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/keys"),o=e("../lib/useragent"),i=r.KEY_MODS;function a(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var o in r){var i=r[o];if(i==e)delete r[o];else if(Array.isArray(i)){var a=i.indexOf(e);-1!=a&&(i.splice(a,1),1==i.length&&(r[o]=i[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=i[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var a=this.parseKeys(e),s=i[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var o,i=this.commandKeyBinding;if(n)if(!i[t]||this.$singleCommand)i[t]=n;else{Array.isArray(i[t])?-1!=(o=i[t].indexOf(n))&&i[t].splice(o,1):i[t]=[i[t]],"number"!=typeof r&&(r=e(n));var a=i[t];for(o=0;or)break}a.splice(o,0,n)}else delete i[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),o=r[n];if(r.FUNCTION_KEYS[o])n=r.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var i=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;i|=s}return{key:n,hashId:i}},this.findKeyCommand=function(e,t){var n=i[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var o=i[t]+n,a=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:a}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,i=e("../lib/event_emitter").EventEmitter,a=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(a,o),function(){r.implement(this,i),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),o=e("../config"),i=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=o.row+1;c++){var u=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(c)));0!==u.length&&(u=" "+u),l+=u}o.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,o=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a=o.lastRow||r.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var i=this.selection.toJSON();this.curOp.selectionAfter=i,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(i),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());if(!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session)),n){var r="ace_bracket";Array.isArray(n)?1==n.length&&(r="ace_error_bracket"):n=[n],2==n.length&&(0==h.comparePoints(n[0].end,n[1].start)?n=[h.fromPoints(n[0].start,n[1].end)]:0==h.comparePoints(n[0].start,n[1].end)&&(n=[h.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map((function(e){return t.addMarker(e,r,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),o=r.getCurrentToken();if(!o||!/\b(?:tag-open|tag-name)/.test(o.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==o.type.indexOf("tag-open")||(o=r.stepForward())){var i=o.value,a=0,s=r.stepBackward();if("<"==s.value)do{s=o,(o=r.stepForward())&&o.value===i&&-1!==o.type.indexOf("tag-name")&&("<"===s.value?a++:"=0);else{do{o=s,s=r.stepBackward(),o&&o.value===i&&-1!==o.type.indexOf("tag-name")&&("<"===s.value?a++:"1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new h(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,o=e.getLine(t.start.row),i=o.substring(n,r);if(!(i.length>5e3)&&/[\w\d]/.test(i)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:i}),s=o.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),o=0;os.search(/\S|$/)){var l=s.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,u=n.getState(o.row),f=(s=n.getLine(o.row),r.checkOutdent(u,s,e));if(n.insert(o,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new h(o.row,c+i.selection[0],o.row,c+i.selection[1])):this.selection.setSelectionRange(new h(o.row+i.selection[0],i.selection[1],o.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var d=r.getNextLineIndent(u,s.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},d)}f&&r.autoOutdent(u,n,o.row)}},this.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var i,a,s,l="",c="",u="",f=n.getTabString(),d=e;d<=t;d++)d>0&&(l=n.getState(d-1),c=n.getLine(d-1),u=r.getNextLineIndent(l,c,f)),i=n.getLine(d),u!==(a=r.$getIndent(i))&&(a.length>0&&(s=new h(d,0,d,a.length),n.remove(s)),u.length>0&&n.insert({row:d,column:0},u)),r.autoOutdent(l,n,d)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),o=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var i=n.getTextRange(t);if("\n"==i[i.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,o=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var o=new h(0,0,0,0);for(r=e.first;r<=e.last;r++){var i=t.getLine(r);o.start.row=r,o.end.row=r,o.end.column=i.length,t.replace(o,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new h(t,n-1,t,n),o=this.session.getTextRange(r);if(!isNaN(parseFloat(o))&&isFinite(o)){var i=this.getNumberAt(t,n);if(i){var a=i.value.indexOf(".")>=0?i.start+i.value.indexOf(".")+1:i.end,s=i.start+i.value.length-a,l=parseFloat(i.value);l*=Math.pow(10,s),a!==i.end&&n=s&&a<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,s+r),c.selection.selectTo(e,l+r)),s=l}));for(var u,f=this.$toggleWordPairs,d=0;dh+1)break;h=p.last}for(u--,s=this.session.$moveLines(d,h,t?0:e),t&&-1==e&&(f=u+1);f<=u;)a[f].moveBy(s,0),f++;t||(s=0),l+=s}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,o=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var i=n.scrollTop;n.scrollBy(0,o*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(i)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),o=r.getCurrentToken(),i=o||r.stepForward();if(i){var a,s,l=!1,c={},u=n.column-i.start,f={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(i.value.match(/[{}()\[\]]/g)){for(;u=0;--i)this.$tryReplace(n[i],e)&&r++;return this.selection.setSelectionRange(o),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var i=this.$search.find(this.session);return t.preventScroll?i:i?(this.revealRange(i,n),i):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var i=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,i=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=i.top-a.offset;null!=(r=i.top>=0&&s+t.top<0||!(i.topwindow.innerHeight)&&null)&&(o.style.top=s+"px",o.style.left=i.left+"px",o.style.height=a.lineHeight+"px",o.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",i),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;v.loadModule("./ext/prompt",(function(o){o.prompt(r,e,t,n)}))}}.call(w.prototype),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?E.attach(this):E.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?E.attach(this):E.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var E={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=w})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var o=n[r][0];if(o.id<=e)break;o.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?s(e):s(this.$undoStack)+"\n---\n"+s(this.$redoStack)}}).call(r.prototype);var o=e("./range").Range,i=o.comparePoints;o.comparePoints;function a(e){return{row:e.row,column:e.column}}function s(e){if(e=e||this,Array.isArray(e))return e.map(s).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function c(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(i(t.start,e.end)>=0)d(t,e,-1);else{if(!(i(t.start,e.start)<=0))return null;d(e,t,1)}else if(n&&!r)if(i(t.start,e.end)>=0)d(t,e,-1);else{if(!(i(t.end,e.start)<=0))return null;d(e,t,-1)}else if(!n&&r)if(i(t.start,e.start)>=0)d(t,e,1);else{if(!(i(t.start,e.start)<=0))return null;d(e,t,1)}else if(!n&&!r)if(i(t.start,e.start)>=0)d(t,e,1);else{if(!(i(t.end,e.start)<=0))return null;d(e,t,-1)}return[t,e]}function u(e,t){for(var n=e.length;n--;)for(var r=0;r=0?d(e,t,-1):(i(e.start,t.start)<=0||d(e,o.fromPoints(t.start,e.start),-1),d(t,e,1));else if(!n&&r)i(t.start,e.end)>=0?d(t,e,-1):(i(t.start,e.start)<=0||d(t,o.fromPoints(e.start,t.start),-1),d(e,t,1));else if(!n&&!r)if(i(t.start,e.end)>=0)d(t,e,-1);else{var a,s;if(!(i(t.end,e.start)<=0))return i(e.start,t.start)<0&&(a=e,e=p(e,t.start)),i(e.end,t.end)>0&&(s=p(e,t.end)),h(t.end,e.start,e.end,-1),s&&!a&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,a,s].filter(Boolean);d(e,t,-1)}return[t,e]}function d(e,t,n){h(e.start,t.start,t.end,n),h(e.end,t.start,t.end,n)}function h(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function p(e,t){var n=e.lines,r=e.end;e.end=a(t);var o=e.end.row-e.start.row,i=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(i[0].substring(0,s)),i[0]=i[0].substr(s),{start:a(t),end:r,lines:i,action:e.action}}function m(e,t){t=function(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var r=e[n],o=0;oi&&(l=o.end.row+1,i=(o=t.getNextFoldLine(l,o))?o.start.row:1/0),l>r){for(;this.$lines.getLength()>s+1;)this.$lines.pop();break}(a=this.$lines.get(++s))?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+r-1);var i=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();(i+=a.left+a.right)===this.gutterWidth||isNaN(i)||(this.gutterWidth=i,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",i))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(r.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r0;o--)this.$lines.shift();if(r>n)for(o=this.session.getFoldedRowCount(n+1,r);o>0;o--)this.$lines.pop();e.firstRowr&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var r=[],o=t,i=this.session.getNextFoldLine(o),a=i?i.start.row:1/0;o>a&&(o=i.end.row+1,a=(i=this.session.getNextFoldLine(o,i))?i.start.row:1/0),!(o>n);){var s=this.$lines.createCell(o,e,this.session,c);this.$renderCell(s,e,i,o),r.push(s),o++}return r},this.$renderCell=function(e,t,n,o){var i=e.element,a=this.session,s=i.childNodes[0],l=i.childNodes[1],c=a.$firstLineNumber,u=a.$breakpoints,f=a.$decorations,d=a.gutterRenderer||this.$renderer,h=this.$showFoldWidgets&&a.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o=p&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),u[o]&&(m+=u[o]),f[o]&&(m+=f[o]),this.$annotations[o]&&(m+=this.$annotations[o].className),i.className!=m&&(i.className=m),h){var g=h[o];null==g&&(g=h[o]=a.getFoldWidget(o))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&o==p&&on.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,o=e("../lib/dom"),i=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var o=r.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),r.renderer){var i=this.$getTop(o.start.row,e),a=this.$padding+o.start.column*e.characterWidth;r.renderer(t,o,a,i,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,o,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,o,r.clazz,e):o.isMultiLine()?"text"==r.type?this.drawTextMarker(t,o,r.clazz,e):this.drawMultiLineMarker(t,o,r.clazz,e):this.drawSingleLineMarker(t,o,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.id?4:0)|(c==l?8:0)),o,c==l?0:1,i)},this.drawMultiLineMarker=function(e,t,n,r,o){var i=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=i+t.start.column*r.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",r,null,o)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",r,null,o)}else{s=this.$getTop(t.end.row,r);var u=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+u+"px;top:"+s+"px;left:"+i+"px;"+(o||""))}if(!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var f=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(f?" ace_br"+f:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+i+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,r,o,i){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,o,i);var a=r.lineHeight,s=(t.end.column+(o||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),c=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+c+"px;"+(i||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,o,i){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(o||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(i||""))}),this)},this.drawFullLineMarker=function(e,t,n,r,o){var i=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-i),this.elt(n,"height:"+a+"px;top:"+i+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,r,o){var i=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+i+"px;left:0;right:0;"+(o||""))}}).call(i.prototype),t.Marker=i})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../lib/dom"),i=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nu&&(s=l.end.row+1,u=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>o);){var f=i[a++];if(f){this.dom.removeChildren(f),this.$renderLine(f,s,s==u&&l),c&&(f.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var d=e.lineHeight*this.session.getRowLength(s)+"px";f.style.height!=d&&(c=!0,f.style.height=d)}s++}if(c)for(;a0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){for(var r=[],i=t,a=this.session.getNextFoldLine(i),s=a?a.start.row:1/0;i>s&&(i=a.end.row+1,s=(a=this.session.getNextFoldLine(i,a))?a.start.row:1/0),!(i>n);){var l=this.$lines.createCell(i,e,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(i,e,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(i,e,this.session)+"px"),this.$renderLine(c,i,i==s&&a),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",r.push(l),i++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){for(var o,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,s=this.dom.createFragment(this.element),l=0;o=a.exec(r);){var c=o[1],u=o[2],f=o[3],d=o[4],h=o[5];if(this.showSpaces||!u){var p=l!=o.index?r.slice(l,o.index):"";if(l=o.index+o[0].length,p&&s.appendChild(this.dom.createTextNode(p,this.element)),c){var m=this.session.getScreenTabSize(t+o.index);s.appendChild(this.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(u){if(this.showSpaces)(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",v.textContent=i.stringRepeat(this.SPACE_CHAR,u.length),s.appendChild(v);else s.appendChild(this.com.createTextNode(u,this.element))}else if(f){(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",v.textContent=i.stringRepeat(this.SPACE_CHAR,f.length),s.appendChild(v)}else if(d){t+=1,(v=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",v.className=this.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=this.showSpaces?this.SPACE_CHAR:d,s.appendChild(v)}else if(h){t+=1,(v=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",v.className="ace_cjk",v.textContent=h,s.appendChild(v)}}}if(s.appendChild(this.dom.createTextNode(l?r.slice(l):r,this.element)),this.$textToken[n.type])e.appendChild(s);else{var g="ace_"+n.type.replace(/\./g," ace_"),v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=g,v.appendChild(s),e.appendChild(v)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var o=(r-=r%this.tabSize)/this.tabSize,i=0;i=a;)s=this.$renderToken(l,s,u,f.substring(0,a-r)),f=f.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(i.stringRepeat(" ",n.indent),this.element)),s=0,a=n[++o]||Number.MAX_VALUE;0!=f.length&&(r+=f.length,s=this.$renderToken(l,s,u,f))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],o=r.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(n=this.$renderToken(e,n,r,o));for(var i=1;ithis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,o);n=this.$renderToken(e,n,r,o)}},this.$renderOverflowMessage=function(e,t,n,r,o){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=o?"":"",e.appendChild(i)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var o=e;if(r.length){var i=this.session.getRowSplitData(t);if(i&&i.length){this.$renderWrappedLine(e,r,i);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,r)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];var o=n.getTokens(e);return t.walk((function(e,t,i,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(o=n.getTokens(t)),o.length&&function(e,t,n){for(var o=0,i=0;i+e[o].value.lengthn-t&&(a=a.substring(0,n-t)),r.push({type:e[o].type,value:a}),i=t+a.length,o+=1);in?r.push({type:e[o].type,value:a.substring(0,n-i)}):r.push(e[o]),i+=a.length,o+=1}}(o,a,i))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[o++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/dom"),i=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,i.addListener(this.element,"scroll",this.onScroll.bind(this)),i.addListener(this.element,"mousedown",i.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(s.prototype);var l=function(e,t){s.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(l,s),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var c=function(e,t){s.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(c,s),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),o=e("../lib/dom"),i=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c="function"==typeof ResizeObserver,u=200,f=t.FontMetrics=function(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=i.stringRepeat("X",256),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle((function t(){e.checkForSizeChanges(),a.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=i.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},this.transformCoordinates=function(e,t){e&&(e=i(1/this.$getZoom(this.el),e));function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function i(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),l=a(this.els[1]),c=a(this.els[2]),f=a(this.els[3]),d=n(r(f,l),r(f,c),r(o(l,c),o(f,s))),h=i(1+d[0],r(l,s)),p=i(1+d[1],r(c,s));if(t){var m=t,g=d[0]*m[0]/u+d[1]*m[1]/u+1,v=o(i(m[0],h),i(m[1],p));return o(i(1/g/u,v),s)}var y=r(e,s),b=n(r(h,i(d[0],y)),r(p,i(d[1],y)),y);return i(u,b)}}).call(f.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/dom"),i=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,f=e("./scrollbar").VScrollBar,d=e("./renderloop").RenderLoop,h=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',g=e("./lib/useragent"),v=g.isIE;o.importCssString(m,"ace_editor.css");var y=function(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new h(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!g.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),i.resetOptions(this),i._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;r||(r=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var i=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(i|this.$changes,!0):this.$loop.schedule(i|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var i=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,i|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",i|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){i|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(i|=this.CHANGE_FULL)}return a.$dirty=!n||!r,i&&this._signal("resize",s),i},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,i=n.top,a=n.left;i-=r.offset;var s=t&&t.useTextareaForIME?this.lineHeight:v?0:1;if(i<0||i>r.height-s)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-s;if(t)if(t.useTextareaForIME){var u=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(u)[0]}else i+=this.lineHeight+2;else i+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",s+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(i,c))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|r,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,r){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|r,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var i=n.width+2*this.$padding+"px",a=n.minHeight+"px";o.setStyle(this.content.style,"width",i),o.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),i=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),a=this.$horizScroll!==i;a&&(this.$horizScroll=i,this.scrollBarH.setVisible(i));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=c;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,r-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+u.right)));var f=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+c<0||this.scrollTop>u.top),d=s!==f;d&&(this.$vScroll=f,this.scrollBarV.setVisible(f));var h,p,m=this.scrollTop%this.lineHeight,g=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),y=v+g,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var w=e.getFoldLine(v);w&&(v=w.start.row),h=e.documentToScreenRow(v,0),p=e.getRowLength(v)*b,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*b+p,m=this.scrollTop-h*b;var E=0;return(this.layerConfig.width!=o||a)&&(E=this.CHANGE_H_SCROLL),(a||d)&&(E|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:v,firstRowScreen:h,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:m,gutterOffset:b?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),E},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),o=r.left,i=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>i?(t&&l+a>i+this.lineHeight&&(i-=t*this.$size.scrollerHeight),0===i&&(i=-this.scrollMargin.top),this.session.setScrollTop(i)):l+this.$size.scrollerHeight-so?(o=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,i=o/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(i):Math.round(i);return{row:a,column:s,side:i-s>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,i=o/this.characterWidth,a=this.$blockCursor?Math.floor(i):Math.round(i),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),i=r.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+i-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,r){var o=this.session;o.bgTokenizer.lines[n]=null;var i={type:t,value:e},a=o.getTokens(n);if(null==r)a.push(i);else for(var s=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);t.UIWorkerClient=function(e,t,n){var r=null,o=!1,s=Object.create(i),c=[],u=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),r&&(o?setTimeout(f):f())}});u.setEmitSync=function(e){o=e};var f=function(){var e=c.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){u.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){for(r=new e[n](s);c.length;)f()})),u},t.WorkerClient=l,t.createWorker=s})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,i=e("./lib/oop"),a=function(e,t,n,r,o,i){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=i,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){i.implement(this,o),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new r(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,i=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+i};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+i};this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,o=e("./range").Range,i=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=new(0,e("./search").Search);var f=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),i=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,i).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],i=e.column0;)y--;if(y>0)for(var b=0;r[b].isEmpty();)b++;for(var w=y;w>=b;w--)r[w].isEmpty()&&r.splice(w,1)}return r}}.call(i.prototype);var d=e("./editor").Editor;function h(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(c.defaultCommands),function(e){if(!e.textInput)return;var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var o=t.indexOf(r);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,o=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,c=l.rangeList,u=(o?l:c).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var f=l._eventRegistry;l._eventRegistry={};var d=new i(s);this.inVirtualSelectionMode=!0;for(var h=u.length;h--;){if(a)for(;h>0&&u[h].start.row==u[h-1].end.row;)h--;d.fromOrientedRange(u[h]),d.index=h,this.selection=s.selection=d;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),d.toOrientedRange(u[h])}d.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=f,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;ra&&(a=n.column),ru?e.insert(r,l.stringRepeat(" ",i-u)):e.remove(new o(r.row,r.column,r.row,r.column-i+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),f=u.start.row,d=u.end.row,h=f==d;if(h){var p,m=this.session.getLength();do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&++d0);f<0&&(f=0),d>=m&&(d=m-1)}var g=this.session.removeFullLines(f,d);g=this.$reAlignText(g,h),this.session.insert({row:f,column:0},g.join("\n")+"\n"),h||(u.start.column=0,u.end.column=g[g.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,o,i=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,o=t[3].length,t):(n+r+o!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(i=!1),n>t[1].length&&(n=t[1].length),rt[3].length&&(o=t[3].length),t):[e]})).map(t?c:i?a?function(e){return e[2]?s(n+r-e[2].length)+e[2]+s(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?s(n)+e[2]+s(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function s(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?s(n)+e[2]+s(r-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(d.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=h,e("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(e){h(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,i=e.getLine(t),a=i.search(o);if(-1!=a){for(var s=n||i.length,l=e.getLength(),c=t,u=t;++tc){var h=e.getLine(u).length;return new r(c,s,u,h)}}},this.openingBracketBlock=function(e,t,n,o,i){var a={row:n,column:o+1},s=e.$findClosingBracket(t,a,i);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,o,i){var a={row:n,column:o},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(o.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./lib/dom");function o(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,o=r.start.row,i=r.end.row,a="add"==e.action,s=o+1;st[n].column&&n++,i.unshift(n,0),t.splice.apply(t,i),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var o=1/0,i=0;i0&&!r[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=o;a<=i;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var c=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(c-=t.scrollLeft),s.el.style.left=c+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,o=e("../lib/dom"),i=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var c,u=function(e,t,n){var r=e.getAnnotations().sort(i.comparePoints);if(r.length){var o=function(e,t,n){for(var r=0,o=e.length-1;r<=o;){var i=r+o>>1,a=n(t,e[i]);if(a>0)r=i+1;else{if(!(a<0))return i;o=i-1}}return-(r+1)}(r,{row:t,column:-1},i.comparePoints);o<0&&(o=-o-1),o>=r.length?o=n>0?0:r.length-1:0===o&&n<0&&(o=r.length-1);var a=r[o];if(a&&n){if(a.row===t){do{a=r[o+=n]}while(a&&a.row===t);if(!a)return r.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=r[o+=n]}while(a&&a.row==t);return s.length&&s}}}(n,s,t);if(u){var f=u[0];a.column=(f.pos&&"number"!=typeof f.column?f.pos.sc:f.column)||0,a.row=f.row,c=e.renderer.$gutterLayer.$annotations[a.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var d={row:a.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},h=d.el.appendChild(o.createElement("div")),p=d.el.appendChild(o.createElement("div"));p.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(a).left;p.style.left=m+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",h.className="error_widget "+c.className,h.innerHTML=c.text.join("
"),h.appendChild(o.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),i=e("./lib/event"),a=e("./range").Range,s=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n(189),t.edit=function(e,n){if("string"==typeof e){var r=e;if(!(e=document.getElementById(r)))throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=o.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var c=t.createEditSession(a),f=new s(new u(e),c,n),d={document:c,editor:f,onResize:f.resize.bind(f,null)};return l&&(d.textarea=l),i.addListener(window,"resize",d.onResize),f.on("destroy",(function(){i.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),f.container.env=f.env=d,f},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new c),n},t.Range=a,t.Editor=s,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=u,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))}).call(this,n(92)(e))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&e.handleMarkers(E,t);for(r=0;rn?1:r>=n?0:NaN;var r,n},{left:function(e,r,n,o){for(null==n&&(n=0),null==o&&(o=e.length);n>>1;t(e[i],r)<0?n=i+1:o=i}return n},right:function(e,r,n,o){for(null==n&&(n=0),null==o&&(o=e.length);n>>1;t(e[i],r)>0?o=i:n=i+1}return n}}).left,s=new Date(n).getTime(),p=[];return"[object Array]"!==Object.prototype.toString.call(r)?[]:(r.forEach(function(e,t){if(!1!==e.visible){var r=e.name,y=e.color,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"[object Function]"===Object.prototype.toString.call(t)&&t(n)&&(r[n]=e[n]);return r}(e,function(e){return"data"!==e}),d=e.data,v=void 0===d?[]:d;if("[object Array]"===Object.prototype.toString.call(v)&&0!==(v=v.filter(function(e){return"number"==typeof e[i]||"number"==typeof c})).length){var m,O=f(v,n),g=v[O-1],j=v[O];if(g&&j){var x=u(g[o],a),P=u(j[o],a),h=g[i],S=j[i];null===h&&void 0!==c&&(h=c),null===S&&void 0!==c&&(S=c),m=s-x{n[e]=t[e]}),n}function g(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function v(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};let t=e;for(;t!==document;){if("none"===g(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}let y=0,b=null;function w(){var e,t;C(this),this.__resize_raf__&&(e=this.__resize_raf__,p||(p=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),p(e)),this.__resize_raf__=(t=()=>{let e=function(e){let{width:t,height:n}=e.__resize_last__,{offsetWidth:r,offsetHeight:o}=e;return r!==t||o!==n?{width:r,height:o}:null}(this);e&&(this.__resize_last__=e,E(this))},h||(h=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),h(t))}function E(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach(t=>{t.call(e)})}function C(e){let{expand:t,expandChild:n,contract:r}=e.__resize_triggers__,{scrollWidth:o,scrollHeight:i}=r,{offsetWidth:a,offsetHeight:s,scrollWidth:l,scrollHeight:c}=t;r.scrollLeft=o,r.scrollTop=i,n.style.width=a+1+"px",n.style.height=s+1+"px",t.scrollLeft=l,t.scrollTop=c}function k(e,t){var n=e.length;return tr){var l=n;n=r,r=l}o&&(or&&(r=o)),e.domain([n,r]),e.nice(i),this.ticks=e.ticks(i)}},{key:"draw",value:function(e){var t=this.ctx,n=this.options.yAxis;t.textAlign="left",t.textBaseline="bottom",t.shadowColor="#fff",t.shadowBlur=1,t.lineWidth=1,t.fillStyle=n.labels.color,t.font="".concat(n.labels.fontSize,"px Palantino"),this.ticks.forEach((function(n){var r=String(n);if(n>=1e3){r=f.format(".5s")(n);var o=/[kMGTPEZY]$/;if(o.test(r)){var i=r[r.length-1];r=r.replace(o,""),r=parseFloat(r)+i}}var a=e(n);t.strokeText(r,0,a),t.fillText(r,0,a)}))}},{key:"drawGridLine",value:function(e){var t=this.ctx,n=this.options,r=n.chart,o=n.yAxis;t.beginPath(),this.ticks.forEach((function(n){var o=e(n);t.moveTo(0,o),t.lineTo(r.width,o)})),t.strokeStyle=o.gridLineColor,t.stroke()}},{key:"drawPlotLines",value:function(e){var t=this.ctx,n=this.options,r=n.chart,o=n.yAxis,i=n.yAxis.plotLines;Array.isArray(i)&&i.forEach((function(n){var i=e(n.value);t.setLineDash([5,3]),t.beginPath(),t.moveTo(0,i),t.lineTo(r.width,i),t.strokeStyle=n.color,t.stroke(),t.setLineDash([]),t.textAlign="right",t.textBaseline="top",t.shadowColor="#fff",t.shadowBlur=1,t.lineWidth=1,t.fillStyle=n.color,t.font="".concat(o.labels.fontSize,"px Palantino"),t.strokeText(String(n.value),r.width-10,i),t.fillText(String(n.value),r.width-10,i)}))}}]),e}(),P=n(6);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A=new(n.n(P).a),T=function(){function e(t,n,r,o){l()(this,e),this.options=void 0,this.ctx=void 0,this.flag=void 0,this.isMouserover=void 0,this.options=t,this.ctx=n,this.flag=!1,this.init(r,o),this.isMouserover=!1}return u()(e,[{key:"init",value:function(e,t){var n=this.options.chart.id,r=document.createElement("div");r.id="".concat(n,"-tooltip"),r.className="ts-graph-tooltip",document.getElementById(r.id)||e.insertBefore(r,t)}},{key:"clear",value:function(){var e=this.options,t=e.ratio,n=e.chart,r=n.id,o=n.containerWidth,i=n.containerHeight,a=document.getElementById("".concat(r,"-tooltip"));this.isMouserover=!1,this.ctx.save(),this.ctx.setTransform(1*t,0,0,1*t,0,0),this.ctx.clearRect(0,0,o,i),this.ctx.restore(),a.style.top="-99999px",a.lastChild&&a.removeChild(a.lastChild)}},{key:"getNearestPoints",value:function(e,t,n,r){var o=this,i=this.options,s=i.series,l=void 0===s?[]:s,c=i.chart,u=c.id,f=c.colors,h=i.tooltip.shared,p=i.xkey,m=i.ykey,g=i.timestamp,v=i.fillNull,y=t.invert(e[0]),b=[],w={x:y,xkey:p,ykey:m,timestamp:g,fillNull:v};this.flag?(w.id=u,w.flag=this.flag,A.postMessage(w)):(w.id=u,w.str=JSON.stringify(l),w.flag=this.flag,A.postMessage(w),this.flag=!0),A.onmessage=function(i){if(!1!==o.isMouserover){"[object Array]"===Object.prototype.toString.call(i.data)&&(b=i.data.map((function(e){return function(e){for(var t=1;t1){var u=Number.POSITIVE_INFINITY;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var m=(s=e[0],l=Number(p),Math.sqrt(Math.pow(l-s,2)));mg&&(e=e.slice(0,g),v=!0),p.className="ts-graph-tooltip-content",h.appendChild(p),"[object Function]"===Object.prototype.toString.call(s.formatter))p.innerHTML=s.formatter(o()(e),o()(m));else{var y=e[0],b=document.createDocumentFragment(),w=document.createElement("ul"),E=document.createElement("li"),C=new Date(y.timestamp);if(l&&l.timezoneOffset){var k=C.getTimezoneOffset(),O=C.getTime()+60*k*1e3+60*l.timezoneOffset*1e3;C=new Date(O)}var S=document.createTextNode(f.timeFormat("%Y-%m-%d %H:%M:%S")(C));if(E.appendChild(S),E.style.color="#666",w.style.maxWidth="".concat(c/1.5,"px"),w.appendChild(E),b.appendChild(w),e.forEach((function(e){var t=e.color,n=e.name,r=e.value,o=e.filledNull,i=document.createElement("li");if(t){var a=document.createElement("span"),s=document.createTextNode("● ");a.style.color=t,a.appendChild(s),i.appendChild(a)}if(n){var l=document.createTextNode("".concat(n,": "));i.appendChild(l)}if(r){var c=document.createElement("strong"),u=document.createTextNode("".concat(f.format(",.3f")(r)).concat(o?"(空值填补,仅限看图使用)":""));c.appendChild(u),i.appendChild(c)}w.appendChild(i)})),v){var x=document.createElement("li"),P=document.createTextNode("......");x.appendChild(P),w.appendChild(x)}p.appendChild(b)}var _=p.offsetWidth,A=p.offsetHeight;h.style.left="".concat(t[0]-_-20,"px"),h.style.top="".concat(t[1]+20,"px"),t[0]-_-20<0&&(h.style.left="".concat(t[0]+20,"px"),t[0]+20+_>c&&(h.style.left="0px")),t[1]+20+A>u&&(t[1]-A-20<0?h.style.top="0px":h.style.top="".concat(t[1]-A-20,"px")),h.style.visibility="visible"}},{key:"drawSymbol",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.ctx;e.forEach((function(e){var n=e.x,r=e.y,o=e.color;t.beginPath(),t.arc(n,r,5,0,360,!1),t.lineWidth=1,t.fillStyle=o,t.fill(),t.beginPath(),t.arc(n,r,3,0,360,!1),t.lineWidth=1,t.fillStyle="white",t.fill()}))}},{key:"drawCrosshair",value:function(e){var t=this.ctx,n=this.options,r=n.chart,o=n.xAxis,i=r.height-o.tickpadding-o.labels.fontSize-o.tickLength;t.beginPath(),t.moveTo(e,0),t.lineTo(e,i),t.lineWidth=1,t.strokeStyle=o.lineColor,t.stroke()}}]),e}(),M=function(){function e(t,n){l()(this,e),this.options=void 0,this.ctx=void 0,this.options=t,this.ctx=n}return u()(e,[{key:"draw",value:function(e,t){var n=this.options,r=n.series,o=n.chart.colors,i=n.xkey,a=n.ykey,s=n.timestamp,l=n.fillNull,c=n.notDisplayedSeries,u=this.ctx;Object(d.sortBy)(r,"zIndex").forEach((function(n,r){if(!1!==n.visible&&!(c.indexOf(n.name)>-1)){var d=n.color||k(o,r);n.color=d,u.beginPath();var h=f.line().x((function(t){var n="X"===s?1e3*t[i]:t[i];return e(new Date(n))})).y((function(e){var n=e[a];return"number"==typeof n?t(n):"number"==typeof l?t(l):void 0})).defined((function(e){return"number"==typeof e[a]||"number"==typeof l})).context(u);u.lineTo(0,0),h(n.data||[]),u.lineJoin="round",u.lineWidth=2,u.strokeStyle=d,u.lineCap="round",u.stroke()}}))}}]),e}(),R=function(){function e(t,n,r,o){l()(this,e),this.options=void 0,this.reset=void 0,this.options=t,this.init(r,o),this.reset=n}return u()(e,[{key:"init",value:function(e,t){var n=this.options.chart,r=n.id,o=n.containerHeight,i=document.createElement("div"),a=document.createElement("div"),s=document.createElement("a"),l=document.createTextNode("Reset zoom");i.id="".concat(r,"-zoom"),i.className="ts-graph-zoom",a.id="".concat(r,"-zoom-marker"),a.className="ts-graph-zoom-marker",a.style.height="".concat(o,"px"),s.id="".concat(r,"-zoom-resetBtn"),s.className="ts-graph-zoom-resetBtn",s.appendChild(l),i.appendChild(a),i.appendChild(s),e.insertBefore(i,t),this.onReset()}},{key:"onReset",value:function(){var e=this,t=this.options.chart.id;document.getElementById("".concat(t,"-zoom-resetBtn")).addEventListener("click",(function(t){t.stopPropagation(),e.reset(),e.clearResetBtn()}))}},{key:"onZoom",value:function(e,t,n){var r=this.options.chart.width,o=t[0]-e[0];if(o){var i=r/Math.abs(o),a=t[0]>e[0]?e[0]:t[0],s=f.zoomIdentity.translate(-a*i,0).scale(i);this.drawResetBtn(),n(s)}}},{key:"clearMarker",value:function(){var e=this.options.chart.id,t=document.getElementById("".concat(e,"-zoom-marker"));t.style.display="none",t.style.width="0px",t.style.left="unset",t.style.right="unset"}},{key:"drawMarker",value:function(e,t){var n=this.options.chart.marginLeft,r=e[0],o=t[0],i=this.options.chart,a=i.id,s=i.containerWidth,l=document.getElementById("".concat(a,"-zoom-marker"));l.style.display="block",l.style.top="0px",r=0&&r<=a}));return L({},e,{data:t})}return e}))},this.handleResize=function(){var e=n.options.chart,t=e.renderTo.offsetWidth,r=e.renderTo.offsetHeight;n.options.chart.width=t-e.marginLeft-e.marginRight,n.options.chart.height=r-e.marginTop-e.marginBottom,n.options.chart.containerWidth=t,n.options.chart.containerHeight=r,n.container.style.width="".concat(t,"px"),n.container.style.height="".concat(r,"px"),n.retinaScaled(n.backCanvas,"back"),n.retinaScaled(n.frontCanvas,"front"),n.retinaScaled(n.eventCanvas,"event"),n.initScales(),n.draw()},this.handleZoom=function(e){var t=n.options,r=t.ykey,o=t.yAxis,i=n.options.series;if(e?(n.transform=e,n.xScales=e.rescaleX(n.xScales),i=n.getZoomedSeries()):(n.transform=void 0,n.xScales=n.xAxis.init()),Array.isArray(i)){var a=o.min||-1/0,s=o.max||1/0,l=!0,c=!1,u=void 0;try{for(var f,d=i[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var h=f.value,p=Array.isArray(h.data)?h.data:[],m=void 0;for(m=0;mg&&(s=g))}}}catch(e){c=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}n.yAxis.setDomain(n.yScales,{ymin:a,ymax:s})}n.draw(),n.options.onZoom(n.getZoomedSeries)},this.handleLegendItemClick=function(e){var t=n.options.notDisplayedSeries;-1===t.indexOf(e)?t.push(e):(n.options.notDisplayedSeries=t.filter((function(t){return t!==e})),n.update(n.options))};var r={ratio:window.devicePixelRatio||1,xkey:0,ykey:1,timestamp:"x",chart:{id:Object(d.uniqueId)("ts-graph-"),colors:["#3399CC","#CC9933","#9966CC","#66CC66","#CC3333","#99CCCC","#CCCC66","#CC99CC","#99CC99","#CC6666","#336699","#996633","#993399","#339966","#993333"],width:t.chart.renderTo.offsetWidth,height:t.chart.renderTo.offsetHeight||350,marginTop:10,marginRight:10,marginBottom:10,marginLeft:10},xAxis:{lineColor:"#ccc",lineWidth:1,tickLength:5,tickpadding:5,tickColor:"#ccc",labels:{color:"#999",fontSize:11}},yAxis:{lineColor:"#ccc",lineWidth:1,tickLength:5,tickpadding:5,tickColor:"#ccc",gridLineColor:"#efefef",labels:{color:"#999",fontSize:11,style:{fontSize:11,color:"#999"}}},tooltip:{shared:!0},series:[],legend:{align:"center",verticalAlign:"top",enabled:!1},fillNull:void 0,onClick:function(){},onZoom:function(){}},o=Object(d.merge)({},r,t);void 0===t.chart.marginTop&&o.legend.enabled&&(o.chart.marginTop=20),this.handleResize=Object(d.debounce)(this.handleResize,300),this.init(o)}return u()(e,[{key:"init",value:function(e){var t=e.chart;this.options=e,this.options.notDisplayedSeries=[],this.options.chart.containerWidth=t.width,this.options.chart.containerHeight=t.height,this.options.chart.width=t.width-t.marginLeft-t.marginRight,this.options.chart.height=t.height-t.marginTop-t.marginBottom,this.createContainer(),this.createCanvas(),this.initEvent(),this.initLine(),this.initLegend(),this.initTooltip(),this.initZoom(),this.initSeries(),this.initScales(),this.initScales(),this.draw()}},{key:"clearRect",value:function(e){var t=this.options.chart,n=t.containerWidth,r=t.containerHeight;e.clearRect(0,0,n,r)}},{key:"draw",value:function(){this.clearRect(this.backContext),this.yAxis.drawGridLine(this.yScales),this.line.draw(this.xScales,this.yScales),this.xAxis.draw(this.xScales),this.yAxis.draw(this.yScales),this.xAxis.drawPlotLines(this.xScales),this.yAxis.drawPlotLines(this.yScales),this.legend.draw()}},{key:"update",value:function(e){var t=Object(d.assign)({},this.options,e);e.series&&(t.series=e.series),this.options=t,this.initSeries(),this.initLine(),this.initTooltip(),this.initScales(),this.initScales(),this.legend.updateOptions(t),this.draw()}},{key:"getSeries",value:function(){return o()(this.options.series)}},{key:"initEvent",value:function(){var e,t=!1,n=[],r=!1,o=this,i=Object(d.debounce)((function(e){r&&(o.tooltip.draw(e,o.xScales,o.yScales),t&&o.zoom.drawMarker(n,e))}),10),a=Object(d.throttle)((function(){o.tooltip.clear()}),10);f.select(this.eventCanvas).on("mousemove",(function(){var e=f.mouse(this);r=!0,i(e)})).on("mouseleave",(function(){var t=f.mouse(this);e=t,r=!1,a()})).on("mousedown",(function(){var e=f.mouse(this);t=!0,n=e})).on("mouseup",(function(){f.event.stopPropagation();var e=f.mouse(this);n&&n[0]!==e[0]?(o.zoom.clearMarker(),o.zoom.onZoom(n,e,(function(e){o.handleZoom(e)}))):o.options.onClick(f.event),t=!1,n=[]})).on("touchmove",(function(){var e=f.mouse(this);o.tooltip.draw(e,o.xScales,o.yScales),t&&o.zoom.drawMarker(n,e)})).on("touchend",(function(){var t=f.mouse(this);e=t,r=!1,a()})),window.addEventListener("mouseup",(function(){if(n.length){var r=e;t=!1,o.zoom.clearMarker(),o.zoom.onZoom(n,r,(function(e){o.handleZoom(e)})),n=[]}})),function(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=function(){let{rendered:e,detached:t}=v(this);e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(C(this),this.addEventListener("scroll",w,!0)),this.__resize_rendered__=e,E(this))}.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:t,offsetHeight:n}=e,r=new ResizeObserver(()=>{(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==t||e.offsetHeight!==n))&&E(e)}),{detached:o,rendered:i}=v(e);e.__resize_observer_triggered__=!1===o&&!1===i,e.__resize_observer__=r,r.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){E(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(y||(b=function(e){var t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){let t=g(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};let n=m("div",{className:"resize-triggers"}),r=m("div",{className:"resize-expand-trigger"}),o=m("div"),i=m("div",{className:"resize-contract-trigger"});r.appendChild(o),n.appendChild(r),n.appendChild(i),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:o,contract:i},C(e),e.addEventListener("scroll",w,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=v(e).rendered,window.MutationObserver){let t=new MutationObserver(e.__resize_mutation_handler__);t.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=t}e.__resize_listeners__.push(t),y++}(this.options.chart.renderTo,this.handleResize)}},{key:"retinaScaled",value:function(e,t){var n=this.options,r=n.chart,o=n.ratio,i=e.getContext("2d"),a="front"===t?r.containerWidth:r.width,s="front"===t?r.containerHeight:r.height,l="front"===t?"0px":"".concat(r.marginLeft,"px"),c="front"===t?"0px":"".concat(r.marginTop,"px");e.width=a*o,e.height=s*o,e.style.width="".concat(a,"px"),e.style.height="".concat(s,"px"),e.style.position="absolute",e.style.left=l,e.style.top=c,"front"===t&&i.translate(r.marginLeft*o,r.marginTop*o),i.scale(o,o)}},{key:"createContainer",value:function(){var e=this.options.chart,t=document.createElement("div");t.style.position="relative",t.style.width="".concat(e.containerWidth,"px"),t.style.height="".concat(e.containerHeight,"px"),t.style.overflow="hidden",e.renderTo.appendChild(t),this.container=t}},{key:"createCanvas",value:function(){var e=this.options.chart.id;function t(t){var n=document.createElement("canvas"),r=n.getContext("2d");n.setAttribute("id","".concat(e,"-").concat(t,"Canvas")),this.container.appendChild(n),this["".concat(t,"Canvas")]=n,this["".concat(t,"Context")]=r,this.retinaScaled(n,t)}t.call(this,"back"),t.call(this,"front"),t.call(this,"event")}},{key:"initSeries",value:function(){var e=this.options,t=e.fillNull,n=e.series,r=e.xkey,o=e.ykey,i=e.yAxis,a=-1/0,s=1/0,l=i.min,c=i.max;if(Array.isArray(n)){var u=[],f=!0,d=!1,h=void 0;try{for(var p,m=n[Symbol.iterator]();!(f=(p=m.next()).done);f=!0){var g=p.value,v=Array.isArray(g.data)?g.data:[],y=[],b=!1,w=void 0;for(w=0;w0&&wC&&(s=C),"number"==typeof k?(("number"!=typeof l||kc)&&(c=k)):"number"==typeof t&&(tc&&(c=t))}u.push(L({},g,{data:y}))}}catch(e){d=!0,h=e}finally{try{f||null==m.return||m.return()}finally{if(d)throw h}}this.options.series=u,this.options.xmin=a,this.options.xmax=s,this.options.ymin=l,this.options.ymax=c}}},{key:"initLine",value:function(){this.line=new M(this.options,this.backContext)}},{key:"initTooltip",value:function(){this.tooltip=new T(this.options,this.frontContext,this.container,this.eventCanvas)}},{key:"initZoom",value:function(){this.zoom=new R(this.options,this.handleZoom,this.container,this.eventCanvas)}},{key:"initLegend",value:function(){this.legend=new N(this.options,this.handleLegendItemClick,this.container,this.eventCanvas)}},{key:"initScales",value:function(){var e=new S(this.options,this.backContext),t=new x(this.options,this.backContext);this.xAxis=e;var n=e.init();this.transform&&(n=this.transform.rescaleX(n)),this.xScales=n,this.yAxis=t,this.yScales=t.init()}},{key:"destroy",value:function(){f.select(this.eventCanvas).on("mousemove",null).on("mouseleave",null).on("mousedown",null).on("mouseup",null).on("touchmove",null),f.select(this.container).remove(),function(e,t){let n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",w),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--y&&b&&b.parentNode.removeChild(b)}}(this.options.chart.renderTo,this.handleResize),delete this.options}}]),e}()}]))},function(e,t,n){var r,o; +/*! @preserve + * numeral.js + * version : 2.0.6 + * author : Adam Draper + * license : MIT + * http://adamwdraper.github.com/Numeral-js/ + */void 0===(o="function"==typeof(r=function(){var e,t,n,r,o,i={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in i)if((s="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&n.match(s)){a=i[o].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var o,i,s,l,c,u,f,d,h=a[e.options.currentLocale],p=!1,m=!1,g="",v="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),s>=1e12&&!i||"t"===i?(g+=h.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!i||"b"===i?(g+=h.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!i||"m"===i?(g+=h.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!i||"k"===i)&&(g+=h.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],c=n.split(".")[1],f=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),v=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):v=e._.toFixed(t,c.length,r),l=v.split(".")[0],v=e._.includes(v,".")?h.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):l=e._.toFixed(t,0,r),g&&!i&&Number(l)>=1e3&&g!==h.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case h.abbreviations.thousand:g=h.abbreviations.million;break;case h.abbreviations.million:g=h.abbreviations.billion;break;case h.abbreviations.billion:g=h.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length0;b--)l="0"+l;return f>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(l=""),d=l+v+(g||""),p?d=(p&&y?"(":"")+d+(p&&y?")":""):u>=0?d=0===u?(y?"-":"+")+d:d+(y?"-":"+"):y&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,o=a[l.currentLocale],i=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;ir?e:r}),1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=l,e.formats=i,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==i)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,a,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)o=l.zeroFormat;else if(null===s&&null!==l.nullFormat)o=l.nullFormat;else{for(r in i)if(c.match(i[r].regexps.format)){a=i[r].format;break}o=(a=a||e._.numberToFormat)(s,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,o){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,o){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,s,l,c=e._.includes(o,"ib")?r:n,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===t||0===t||t>=s&&t0&&(t/=s);break}return e._.numberToFormat(t,o,i)+u},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],(function(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";var r=n(322),o=n(325),i=[].slice,a=["keyword","gray","hex"],s={};Object.keys(o).forEach((function(e){s[i.call(o[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var f=r.get(e);if(null===f)throw new Error("Unable to parse color from string: "+e);this.model=f.model,u=o[this.model].channels,this.color=f.value.slice(0,u),this.valpha="number"==typeof f.value[u]?f.value[u]:1}else if(e.length){this.model=t||"rgb",u=o[this.model].channels;var d=i.call(e,0,u);this.color=h(d,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=o[this.model].labels,v=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===a.indexOf(e)){var t=o[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new c(d(o[this.model][e].raw(this.color)).concat(n),e)},c[e]=function(n){return"number"==typeof n&&(n=h(i.call(arguments),t)),new c(n,e)}}})),e.exports=c},function(e,t,n){e.exports=n(19)(736)},function(e,t,n){e.exports=n(19)(923)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(0)),o=h(n(1)),i=f(n(134)),a=f(n(70)),s=f(n(16)),l=f(n(381)),c=n(382),u=n(44);function f(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;tn?"".concat(n,"+"):t}},{key:"getDispayCount",value:function(){return this.isDot()?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var e=this.props,t=e.title,n=e.count;return t||("string"==typeof n||"number"==typeof n?n:void 0)}},{key:"getStyleWithOffset",value:function(){var e=this.props,t=e.offset,n=e.style;return t?m({right:-parseInt(t[0],10),marginTop:t[1]},n):n}},{key:"getBadgeClassName",value:function(e){var t,n=this.props,r=n.className,o=n.children;return(0,s.default)(r,e,(g(t={},"".concat(e,"-status"),this.hasStatus()),g(t,"".concat(e,"-not-a-wrapper"),!o),t))}},{key:"hasStatus",value:function(){var e=this.props,t=e.status,n=e.color;return!!t||!!n}},{key:"isZero",value:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e}},{key:"isDot",value:function(){var e=this.props.dot,t=this.isZero();return e&&!t||this.hasStatus()}},{key:"isHidden",value:function(){var e=this.props.showZero,t=this.getDispayCount(),n=this.isZero(),r=this.isDot();return(null==t||""===t||n&&!e)&&!r}},{key:"renderStatusText",value:function(e){var t=this.props.text;return this.isHidden()||!t?null:r.createElement("span",{className:"".concat(e,"-status-text")},t)}},{key:"renderDispayComponent",value:function(){var e=this.props.count;if(e&&"object"===p(e))return r.cloneElement(e,{style:m(m({},this.getStyleWithOffset()),e.props&&e.props.style)})}},{key:"renderBadgeNumber",value:function(e,t){var n,o=this.props,i=o.status,a=o.count,c=o.color,u=this.getDispayCount(),f=this.isDot(),d=this.isHidden(),h=(0,s.default)((g(n={},"".concat(e,"-dot"),f),g(n,"".concat(e,"-count"),!f),g(n,"".concat(e,"-multiple-words"),!f&&a&&a.toString&&a.toString().length>1),g(n,"".concat(e,"-status-").concat(i),!!i),g(n,"".concat(e,"-status-").concat(c),O(c)),n)),p=this.getStyleWithOffset();return c&&!O(c)&&((p=p||{}).background=c),d?null:r.createElement(l.default,{prefixCls:t,"data-show":!d,className:h,count:u,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:p,key:"scrollNumber"})}},{key:"render",value:function(){return r.createElement(u.ConfigConsumer,null,this.renderBadge)}}])&&y(n.prototype,o),c&&y(n,c),d}(r.Component);t.default=S,S.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},S.propTypes={count:o.node,showZero:o.bool,dot:o.bool,overflowCount:o.number}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,f=Math.max,d=Math.min,h=function(){return c.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(E,t),u?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-c>=i}function E(){var e=h();if(w(e))return C(e);s=setTimeout(E,function(e){var n=t-(e-l);return g?d(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function k(){var e=h(),n=w(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(g)return s=setTimeout(E,t),y(l)}return void 0===s&&(s=setTimeout(E,t)),a}return t=m(t)||0,p(n)&&(u=!!n.leading,i=(g="maxWait"in n)?f(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},k.flush=function(){return void 0===s?a:C(h())},k}}).call(this,n(113))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,f=Math.max,d=Math.min,h=function(){return c.Date.now()};function p(e,t,n){var r,o,i,a,s,l,c=0,u=!1,p=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(E,t),u?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function E(){var e=h();if(w(e))return C(e);s=setTimeout(E,function(e){var n=t-(e-l);return p?d(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function k(){var e=h(),n=w(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(p)return s=setTimeout(E,t),y(l)}return void 0===s&&(s=setTimeout(E,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(p="maxWait"in n)?f(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},k.flush=function(){return void 0===s?a:C(h())},k}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),p(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,n(113))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(390),o=n(391);t.diff=o.default;var i=n(190);t.split=i.default,t.default=r.default},function(e,t,n){t.hot=function(e){return e}},,function(e,t,n){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var o=t&&t.prototype instanceof u?t:u,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function f(){}function d(){}var h={};h[o]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(k([])));m&&m!==t&&n.call(m,o)&&(h=m);var g=d.prototype=u.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,a){var s=l(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){},function(e,t,n){"use strict";n(37),n(213)},function(e,t,n){},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(1)),o=m(n(0)),i=h(n(16)),a=h(n(70)),s=h(n(20)),l=n(44),c=n(123),u=h(n(217)),f=h(n(218)),d=n(124);function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,r=this.props,i=r.showInfo,a=r.format,l=r.type,c=r.percent,u=r.successPercent;if(!i)return null;var f="circle"===l||"dashboard"===l?"":"-circle";return a||"exception"!==t&&"success"!==t?n=(a||function(e){return"".concat(e,"%")})((0,d.validProgress)(c),(0,d.validProgress)(u)):"exception"===t?n=o.createElement(s.default,{type:"close".concat(f),theme:"line"===l?"filled":"outlined"}):"success"===t&&(n=o.createElement(s.default,{type:"check".concat(f),theme:"line"===l?"filled":"outlined"})),o.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return o.createElement(l.ConfigConsumer,null,this.renderProgress)}}])&&w(n.prototype,r),c&&w(n,c),p}(o.Component);t.default=A,A.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:"#f3f3f3",size:"default",gapDegree:0,strokeLinecap:"round"},A.propTypes={status:r.oneOf(_),type:r.oneOf(P),showInfo:r.bool,percent:r.number,width:r.number,strokeWidth:r.number,strokeLinecap:r.oneOf(["round","square"]),strokeColor:r.oneOfType([r.string,r.object]),trailColor:r.string,format:r.func,gapDegree:r.number}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.handleGradient=t.sortGradient=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(124);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.default)(b(b({fieldNameProp:"id"},e),{fieldMetaProp:h.FIELD_META_PROP,fieldDataProp:h.FIELD_DATA_PROP}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(23)),o=u(n(28)),i=u(n(136)),a=u(n(229)),s=u(n(152)),l=n(269),c=n(127);function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=window.getComputedStyle,r=n?n(e):e.currentStyle;if(r)return r[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}var d={getForm:function(){return(0,r.default)({},l.mixin.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){var s=this,l=(0,c.getParams)(e,t,n),u=l.names,d=l.callback,h=l.options;return this.validateFields(u,h,(function(e,t){if(e){var n=s.fieldsStore.getValidFieldsName(),l=void 0,c=void 0;if(n.forEach((function(t){if((0,a.default)(e,t)){var n=s.getFieldInstance(t);if(n){var r=o.default.findDOMNode(n),i=r.getBoundingClientRect().top;"hidden"!==r.type&&(void 0===c||c>i)&&(c=i,l=r)}}})),l){var u=h.container||function(e){for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var r=f(t,"overflowY");if(t!==e&&("auto"===r||"scroll"===r)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(l);(0,i.default)(l,u,(0,r.default)({onlyScrollIfNeeded:!0},h.scroll))}}"function"==typeof d&&d(e,t)}))}};t.default=function(e){return(0,s.default)((0,r.default)({},e),[d])},e.exports=t.default},function(e,t,n){var r=n(230),o=n(231);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(149),o=n(232),i=n(233),a=n(150),s=n(234),l=n(151);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,f=!1;++c1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},s=e,l=n,f=r;if("function"==typeof l&&(f=l,l={}),!this.rules||0===Object.keys(this.rules).length)return f&&f(),Promise.resolve();function d(e){var t,n,r=void 0,o=[],i={};for(r=0;r0&&void 0!==arguments[0]?arguments[0]:[],c=i;if(Array.isArray(c)||(c=[c]),!l.suppressWarning&&c.length&&u.warning("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map((0,a.complementError)(n)),l.first&&c.length)return y[n.field]=1,t(c);if(r){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map((0,a.complementError)(n)):l.error?[l.error(n,(0,a.format)(l.messages.required,n.field))]:[],t(c);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=o({},f,e.rule.fields))if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(s.bind(null,h))}var m=new u(f);m.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),m.validate(e.value,e.rule.options||l,(function(e){var n=[];c&&c.length&&n.push.apply(n,c),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(c)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=void 0;n.asyncValidator?f=n.asyncValidator(n,e.value,c,e.source,l):n.validator&&(!0===(f=n.validator(n,e.value,c,e.source,l))?c():!1===f?c(n.message||n.field+" fails"):f instanceof Array?c(f):f instanceof Error&&c(f.message)),f&&f.then&&f.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){d(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!l.default.hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?l.default.required:l.default[this.getType(e)]||!1}},u.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");l.default[e]=t},u.warning=a.warning,u.messages=c.messages,t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(242)),o=v(n(248)),i=v(n(249)),a=v(n(250)),s=v(n(251)),l=v(n(252)),c=v(n(253)),u=v(n(254)),f=v(n(255)),d=v(n(256)),h=v(n(257)),p=v(n(258)),m=v(n(259)),g=v(n(260));function v(e){return e&&e.__esModule?e:{default:e}}t.default={string:r.default,method:o.default,number:i.default,boolean:a.default,regexp:s.default,integer:l.default,float:c.default,array:u.default,object:f.default,enum:d.default,pattern:h.default,date:p.default,url:g.default,hex:g.default,email:g.default,required:m.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,s,o,"string"),(0,a.isEmptyValue)(t,"string")||(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o),i.default.pattern(e,t,r,s,o),!0===e.whitespace&&i.default.whitespace(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){(/^\s+$/.test(t)||""===t)&&o.push(r.format(i.messages.whitespace,e.fullField))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51)),a=n(154),s=(r=a)&&r.__esModule?r:{default:r};var l={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},c={integer:function(e){return c.number(e)&&parseInt(e,10)===e},float:function(e){return c.number(e)&&!c.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!c.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(l.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(l.url)},hex:function(e){return"string"==typeof e&&!!e.match(l.hex)}};t.default=function(e,t,n,r,a){if(e.required&&void 0===t)(0,s.default)(e,t,n,r,a);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?c[l](t)||r.push(i.format(a.messages.types[l],e.fullField,e.type)):l&&(void 0===t?"undefined":o(t))!==e.type&&r.push(i.format(a.messages.types[l],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){var a="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,c=t,u=null,f="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(f?u="number":d?u="string":h&&(u="array"),!u)return!1;h&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&o.push(r.format(i.messages[u].len,e.fullField,e.len)):s&&!l&&ce.max?o.push(r.format(i.messages[u].max,e.fullField,e.max)):s&&l&&(ce.max)&&o.push(r.format(i.messages[u].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(r.format(i.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&i.default.type(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(51),i=n(65),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();a.default.required(e,t,r,s,i),void 0!==t&&a.default.type(e,t,r,s,i)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),(0,a.isEmptyValue)(t)||i.default.type(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"array")&&!e.required)return n();i.default.required(e,t,r,s,o,"array"),(0,a.isEmptyValue)(t,"array")||(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&i.default.type(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),t&&i.default.enum(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,s,o),(0,a.isEmptyValue)(t,"string")||i.default.pattern(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();if(i.default.required(e,t,r,s,o),!(0,a.isEmptyValue)(t)){var l=void 0;l="number"==typeof t?new Date(t):t,i.default.type(e,l,r,s,o),l&&i.default.range(e,l.getTime(),r,s,o)}}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(65),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var s=[],l=Array.isArray(t)?"array":void 0===t?"undefined":o(t);a.default.required(e,t,r,s,i,l),n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=e.type,l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,s)&&!e.required)return n();i.default.required(e,t,r,l,o,s),(0,a.isEmptyValue)(t,s)||i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=r;t.messages=r()},function(e,t,n){e.exports=n(19)(396)},function(e,t,n){var r=n(264),o=n(149),i=n(150),a=n(265),s=n(151);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,f=u-1,d=e;null!=d&&++c=0}),"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,r=(0,o.default)({},this.fields,e),i={};Object.keys(n).forEach((function(e){i[e]=t.getValueFromFields(e,r)})),Object.keys(i).forEach((function(e){var n=i[e],a=t.getFieldMeta(e);if(a&&a.normalize){var s=a.normalize(n,t.getValueFromFields(e,t.fields),i);s!==n&&(r[e]=(0,o.default)({},r[e],{value:s}))}})),this.fields=r}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce((function(e,n){var r=t[n];return r&&"value"in r&&(e[n]={}),e}),{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach((function(t){var n=e.fields[t],r=e.fieldsMeta[t];n&&r&&(0,u.hasRules)(r.validate)&&(e.fields[t]=(0,o.default)({},n,{dirty:!0}))}))}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var r=this.getFieldMeta(e);return r&&r.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter((function(t){return!e.getFieldMeta(t).hidden})):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter((function(e){return t.some((function(t){return e===t||(0,u.startsWith)(e,t)&&[".","["].indexOf(e[t.length])>=0}))}))}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,o=e.valuePropName,i=this.getField(t),a="value"in i?i.value:e.initialValue;return n?n(a):(0,r.default)({},o,a)}},{key:"getField",value:function(e){return(0,o.default)({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter((function(t){return!e.fields[t]})).map((function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}})).reduce((function(e,t){return(0,s.default)(e,t.name,(0,c.default)(t))}),{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce((function(t,n){return(0,s.default)(t,n,(0,c.default)(e.fields[n]))}),this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce((function(e,n){return(0,s.default)(e,n,t(n))}),{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||1===n.length&&n[0]===e)return t(e);var r="["===n[0][e.length],o=r?e.length:e.length+1;return n.reduce((function(e,n){return(0,s.default)(e,n.slice(o),t(n))}),r?[]:{})}},{key:"isValidNestedFieldName",value:function(e){return this.getAllFieldsName().every((function(t){return!d(t,e)&&!d(e,t)}))}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),e}(),m=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),r=e.fieldsMeta;Object.keys(n).forEach((function(t){r[t]&&e.setFieldMeta(t,(0,o.default)({},e.getFieldMeta(t),{initialValue:n[t]}))}))},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce((function(t,r){return(0,s.default)(t,r,e.getValueFromFields(r,n))}),{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,(function(t){return e.getValueFromFields(t,n)}))},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,(function(t){return(0,u.getErrorStrs)(e.getFieldMember(t,"errors"))}))},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldValidating(t)}))},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldTouched(t)}))}};e.exports=t.default},function(e,t,n){e.exports=n(19)(313)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mixin=void 0;var r,o=n(152),i=(r=o)&&r.__esModule?r:{default:r};var a=t.mixin={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};t.default=function(e){return(0,i.default)(e,[a])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(0)),o=b(n(28)),i=b(n(1)),a=v(n(16)),s=v(n(134)),l=v(n(70)),c=v(n(271)),u=v(n(272)),f=v(n(20)),d=n(44),h=v(n(71)),p=n(123),m=n(157),g=v(n(158));function v(e){return e&&e.__esModule?e:{default:e}}function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function b(e){if(e&&e.__esModule)return e;if(null===e||"object"!==w(e)&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0));i++){var a=o[i];(!a.type||a.type!==y&&"FormItem"!==a.type.displayName)&&a.props&&(m.FIELD_META_PROP in a.props?n.push(a):a.props.children&&(n=n.concat(this.getControls(a.props.children,t))))}return n}},{key:"getOnlyControl",value:function(){var e=this.getControls(this.props.children,!1)[0];return void 0!==e?e:null}},{key:"getChildProp",value:function(e){var t=this.getOnlyControl();return t&&t.props&&t.props[e]}},{key:"getId",value:function(){return this.getChildProp("id")}},{key:"getMeta",value:function(){return this.getChildProp(m.FIELD_META_PROP)}},{key:"getField",value:function(){return this.getChildProp(m.FIELD_DATA_PROP)}},{key:"getValidateStatus",value:function(){if(!this.getOnlyControl())return"";var e=this.getField();if(e.validating)return"validating";if(e.errors)return"error";var t="value"in e?e.value:this.getMeta().initialValue;return null!=t&&""!==t?"success":""}},{key:"isRequired",value:function(){var e=this.props.required;return void 0!==e?e:!!this.getOnlyControl()&&((this.getMeta()||{}).validate||[]).filter((function(e){return!!e.rules})).some((function(e){return e.rules.some((function(e){return e.required}))}))}},{key:"renderHelp",value:function(e){var t=this.getHelpMessage(),n=t?r.createElement("div",{className:"".concat(e,"-explain"),key:"help"},t):null;return n&&(this.helpShow=!!n),r.createElement(s.default,{transitionName:"show-help",component:"",transitionAppear:!0,key:"help",onEnd:this.onHelpAnimEnd},n)}},{key:"renderExtra",value:function(e){var t=this.props.extra;return t?r.createElement("div",{className:"".concat(e,"-extra")},t):null}},{key:"renderValidateWrapper",value:function(e,t,n,o){var i=this.props,s=this.getOnlyControl,l=void 0===i.validateStatus&&s?this.getValidateStatus():i.validateStatus,c="".concat(e,"-item-control");l&&(c=(0,a.default)("".concat(e,"-item-control"),{"has-feedback":i.hasFeedback||"validating"===l,"has-success":"success"===l,"has-warning":"warning"===l,"has-error":"error"===l,"is-validating":"validating"===l}));var u="";switch(l){case"success":u="check-circle";break;case"warning":u="exclamation-circle";break;case"error":u="close-circle";break;case"validating":u="loading";break;default:u=""}var d=i.hasFeedback&&u?r.createElement("span",{className:"".concat(e,"-item-children-icon")},r.createElement(f.default,{type:u,theme:"loading"===u?"outlined":"filled"})):null;return r.createElement("div",{className:c},r.createElement("span",{className:"".concat(e,"-item-children")},t,d),n,o)}},{key:"renderWrapper",value:function(e,t){var n=this;return r.createElement(g.default.Consumer,{key:"wrapper"},(function(o){var i=o.wrapperCol,s=o.vertical,l=n.props.wrapperCol,c=("wrapperCol"in n.props?l:i)||{},f=(0,a.default)("".concat(e,"-item-control-wrapper"),c.className);return r.createElement(g.default.Provider,{value:{vertical:s}},r.createElement(u.default,E({},c,{className:f}),t))}))}},{key:"renderLabel",value:function(e){var t=this;return r.createElement(g.default.Consumer,{key:"label"},(function(n){var o,i=n.vertical,s=n.labelAlign,l=n.labelCol,c=n.colon,f=t.props,d=f.label,h=f.labelCol,p=f.labelAlign,m=f.colon,g=f.id,v=f.htmlFor,y=t.isRequired(),b=("labelCol"in t.props?h:l)||{},w="labelAlign"in t.props?p:s,k="".concat(e,"-item-label"),O=(0,a.default)(k,"left"===w&&"".concat(k,"-left"),b.className),S=d,x=!0===m||!1!==c&&!1!==m;x&&!i&&"string"==typeof d&&""!==d.trim()&&(S=d.replace(/[::]\s*$/,""));var P=(0,a.default)((C(o={},"".concat(e,"-item-required"),y),C(o,"".concat(e,"-item-no-colon"),!x),o));return d?r.createElement(u.default,E({},b,{className:O}),r.createElement("label",{htmlFor:v||g||t.getId(),className:P,title:"string"==typeof d?d:"",onClick:t.onLabelClick},S)):null}))}},{key:"renderChildren",value:function(e){var t=this.props.children;return[this.renderLabel(e),this.renderWrapper(e,this.renderValidateWrapper(e,t,this.renderHelp(e),this.renderExtra(e)))]}},{key:"render",value:function(){return r.createElement(d.ConfigConsumer,null,this.renderFormItem)}}])&&O(n.prototype,i),p&&O(n,p),y}(r.Component);t.default=N,N.defaultProps={hasFeedback:!1},N.propTypes={prefixCls:i.string,label:i.oneOfType([i.string,i.node]),labelCol:i.object,help:i.oneOfType([i.node,i.bool]),validateStatus:i.oneOf(D),hasFeedback:i.bool,wrapperCol:i.object,className:i.string,id:i.string,children:i.node,colon:i.bool}},function(e,t,n){e.exports=n(19)(1324)},function(e,t,n){e.exports=n(19)(1330)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(16))&&o.__esModule?o:{default:o},s=n(44);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t=0),e),g),x=c(c({},this.props),{children:null,inkBarAnimated:b,extraContent:h,style:s,prevIcon:k,nextIcon:O,className:S});return t=d?d(x,o.default):r.createElement(o.default,x),r.cloneElement(t)}}])&&h(n.prototype,s),l&&h(n,l),b}(r.Component);t.default=y,y.defaultProps={animated:!0,type:"line"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(23)),o=g(n(58)),i=g(n(21)),a=g(n(45)),s=g(n(18)),l=g(n(22)),c=g(n(0)),u=g(n(1)),f=g(n(278)),d=g(n(279)),h=g(n(280)),p=g(n(281)),m=g(n(282));function g(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,a.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(0,o.default)(e,["children"]);return c.default.createElement(m.default,null,(function(e,o){return c.default.createElement(h.default,(0,r.default)({saveRef:e},n),c.default.createElement(p.default,(0,r.default)({saveRef:e,getRef:o},n),c.default.createElement(d.default,(0,r.default)({saveRef:e,renderTabBarNode:t},n)),c.default.createElement(f.default,(0,r.default)({saveRef:e,getRef:o},n))))}))}}]),t}(c.default.Component);t.default=v,v.propTypes={children:u.default.func},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(39)),o=d(n(21)),i=d(n(45)),a=d(n(18)),s=d(n(22)),l=d(n(0)),c=d(n(1)),u=d(n(16)),f=n(102);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=e.props,r=n.styles,o=n.panels,i=n.activeKey,a=n.direction,s=e.props.getRef("root"),l=e.props.getRef("nav")||s,c=e.props.getRef("inkBar"),u=e.props.getRef("activeTab"),d=c.style,h=e.props.tabBarPosition,p=(0,f.getActiveIndex)(o,i);if(t&&(d.display="none"),u){var m=u,g=(0,f.isTransform3dSupported)(d);if((0,f.setTransform)(d,""),d.width="",d.height="",d.left="",d.top="",d.bottom="",d.right="","top"===h||"bottom"===h){var v=(0,f.getLeft)(m,l),y=m.offsetWidth;y===s.offsetWidth?y=0:r.inkBar&&void 0!==r.inkBar.width&&(y=parseFloat(r.inkBar.width,10))&&(v+=(m.offsetWidth-y)/2),"rtl"===a&&(v=(0,f.getStyle)(m,"margin-left")-v),g?(0,f.setTransform)(d,"translate3d("+v+"px,0,0)"):d.left=v+"px",d.width=y+"px"}else{var b=(0,f.getTop)(m,l,!0),w=m.offsetHeight;r.inkBar&&void 0!==r.inkBar.height&&(w=parseFloat(r.inkBar.height,10))&&(b+=(m.offsetHeight-w)/2),g?((0,f.setTransform)(d,"translate3d(0,"+b+"px,0)"),d.top="0"):d.top=b+"px",d.height=w+"px"}}d.display=-1!==p?"block":"none"}var p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.timeout=setTimeout((function(){h(e,!0)}),0)}},{key:"componentDidUpdate",value:function(){h(this)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,o=t.styles,i=t.inkBarAnimated,a=n+"-ink-bar",s=(0,u.default)((e={},(0,r.default)(e,a,!0),(0,r.default)(e,i?a+"-animated":a+"-no-animated",!0),e));return l.default.createElement("div",{style:o.inkBar,className:s,key:"inkBar",ref:this.props.saveRef("inkBar")})}}]),t}(l.default.Component);t.default=p,p.propTypes={prefixCls:c.default.string,styles:c.default.object,inkBarAnimated:c.default.bool,saveRef:c.default.func,direction:c.default.string},p.defaultProps={prefixCls:"",inkBarAnimated:!0,styles:{},saveRef:function(){}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(23)),o=h(n(39)),i=h(n(21)),a=h(n(45)),s=h(n(18)),l=h(n(22)),c=h(n(0)),u=h(n(66)),f=h(n(1)),d=n(102);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,a.default)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.panels,i=t.activeKey,a=t.prefixCls,s=t.tabBarGutter,l=t.saveRef,f=t.tabBarPosition,h=t.renderTabBarNode,p=t.direction,m=[];return c.default.Children.forEach(n,(function(t,g){if(t){var v=t.key,y=i===v?a+"-tab-active":"";y+=" "+a+"-tab";var b={};t.props.disabled?y+=" "+a+"-tab-disabled":b={onClick:e.props.onTabClick.bind(e,v)};var w={};i===v&&(w.ref=l("activeTab"));var E=s&&g===n.length-1?0:s,C="rtl"===p?"marginLeft":"marginRight",k=(0,o.default)({},(0,d.isVertical)(f)?"marginBottom":C,E);(0,u.default)("tab"in t.props,"There must be `tab` property on children of Tabs.");var O=c.default.createElement("div",(0,r.default)({role:"tab","aria-disabled":t.props.disabled?"true":"false","aria-selected":i===v?"true":"false"},b,{className:y,key:v,style:k},w),t.props.tab);h&&(O=h(O)),m.push(O)}})),c.default.createElement("div",{ref:l("navTabsContainer")},m)}}]),t}(c.default.Component);t.default=p,p.propTypes={activeKey:f.default.string,panels:f.default.node,prefixCls:f.default.string,tabBarGutter:f.default.number,onTabClick:f.default.func,saveRef:f.default.func,renderTabBarNode:f.default.func,tabBarPosition:f.default.string,direction:f.default.string},p.defaultProps={panels:[],prefixCls:[],tabBarGutter:null,onTabClick:function(){},saveRef:function(){}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(23)),o=m(n(39)),i=m(n(58)),a=m(n(21)),s=m(n(45)),l=m(n(18)),c=m(n(22)),u=n(0),f=m(u),d=m(n(1)),h=m(n(16)),p=n(102);function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,a.default)(this,t),(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.onKeyDown,a=e.className,s=e.extraContent,l=e.style,c=e.tabBarPosition,d=e.children,m=(0,i.default)(e,["prefixCls","onKeyDown","className","extraContent","style","tabBarPosition","children"]),g=(0,h.default)(t+"-bar",(0,o.default)({},a,!!a)),v="top"===c||"bottom"===c,y=v?{float:"right"}:{},b=s&&s.props?s.props.style:{},w=d;return s&&(w=[(0,u.cloneElement)(s,{key:"extra",style:(0,r.default)({},y,b)}),(0,u.cloneElement)(d,{key:"content"})],w=v?w:w.reverse()),f.default.createElement("div",(0,r.default)({role:"tablist",className:g,tabIndex:"0",ref:this.props.saveRef("root"),onKeyDown:n,style:l},(0,p.getDataAttr)(m)),w)}}]),t}(f.default.Component);t.default=g,g.propTypes={prefixCls:d.default.string,className:d.default.string,style:d.default.object,tabBarPosition:d.default.oneOf(["left","right","top","bottom"]),children:d.default.node,extraContent:d.default.node,onKeyDown:d.default.func,saveRef:d.default.func},g.defaultProps={prefixCls:"",className:"",style:{},tabBarPosition:"top",extraContent:null,children:null,onKeyDown:function(){},saveRef:function(){}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(39)),o=p(n(21)),i=p(n(45)),a=p(n(18)),s=p(n(22)),l=p(n(0)),c=p(n(1)),u=p(n(16)),f=p(n(159)),d=p(n(137)),h=n(102);function p(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var n=(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.prevTransitionEnd=function(e){if("opacity"===e.propertyName){var t=n.props.getRef("container");n.scrollToActiveTab({target:t,currentTarget:t})}},n.scrollToActiveTab=function(e){var t=n.props.getRef("activeTab"),r=n.props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&t){var o=n.isNextPrevShown()&&n.lastNextPrevShown;if(n.lastNextPrevShown=n.isNextPrevShown(),o){var i=n.getScrollWH(t),a=n.getOffsetWH(r),s=n.offset,l=n.getOffsetLT(r),c=n.getOffsetLT(t);l>c?(s+=l-c,n.setOffset(s)):l+a=0)l=!1,this.setOffset(0,!1),i=0;else if(a1&&void 0!==arguments[1])||arguments[1],n=Math.min(0,e);if(this.offset!==n){this.offset=n;var r={},o=this.props.tabBarPosition,i=this.props.getRef("nav").style,a=(0,h.isTransform3dSupported)(i);"left"===o||"right"===o?r=a?{value:"translate3d(0,"+n+"px,0)"}:{name:"top",value:n+"px"}:a?("rtl"===this.props.direction&&(n=-n),r={value:"translate3d("+n+"px,0,0)"}):r={name:"left",value:n+"px"},a?(0,h.setTransform)(i,r.value):i[r.name]=r.value,t&&this.setNextPrev()}}},{key:"setPrev",value:function(e){this.state.prev!==e&&this.setState({prev:e})}},{key:"setNext",value:function(e){this.state.next!==e&&this.setState({next:e})}},{key:"isNextPrevShown",value:function(e){return e?e.next||e.prev:this.state.next||this.state.prev}},{key:"render",value:function(){var e,t,n,o,i=this.state,a=i.next,s=i.prev,c=this.props,f=c.prefixCls,d=c.scrollAnimated,h=c.navWrapper,p=c.prevIcon,m=c.nextIcon,g=s||a,v=l.default.createElement("span",{onClick:s?this.prev:null,unselectable:"unselectable",className:(0,u.default)((e={},(0,r.default)(e,f+"-tab-prev",1),(0,r.default)(e,f+"-tab-btn-disabled",!s),(0,r.default)(e,f+"-tab-arrow-show",g),e)),onTransitionEnd:this.prevTransitionEnd},p||l.default.createElement("span",{className:f+"-tab-prev-icon"})),y=l.default.createElement("span",{onClick:a?this.next:null,unselectable:"unselectable",className:(0,u.default)((t={},(0,r.default)(t,f+"-tab-next",1),(0,r.default)(t,f+"-tab-btn-disabled",!a),(0,r.default)(t,f+"-tab-arrow-show",g),t))},m||l.default.createElement("span",{className:f+"-tab-next-icon"})),b=f+"-nav",w=(0,u.default)((n={},(0,r.default)(n,b,!0),(0,r.default)(n,d?b+"-animated":b+"-no-animated",!0),n));return l.default.createElement("div",{className:(0,u.default)((o={},(0,r.default)(o,f+"-nav-container",1),(0,r.default)(o,f+"-nav-container-scrolling",g),o)),key:"container",ref:this.props.saveRef("container")},v,y,l.default.createElement("div",{className:f+"-nav-wrap",ref:this.props.saveRef("navWrap")},l.default.createElement("div",{className:f+"-nav-scroll"},l.default.createElement("div",{className:w,ref:this.props.saveRef("nav")},h(this.props.children)))))}}]),t}(l.default.Component);t.default=m,m.propTypes={activeKey:c.default.string,getRef:c.default.func.isRequired,saveRef:c.default.func.isRequired,tabBarPosition:c.default.oneOf(["left","right","top","bottom"]),prefixCls:c.default.string,scrollAnimated:c.default.bool,onPrevClick:c.default.func,onNextClick:c.default.func,navWrapper:c.default.func,children:c.default.node,prevIcon:c.default.node,nextIcon:c.default.node,direction:c.default.node},m.defaultProps={tabBarPosition:"left",prefixCls:"",scrollAnimated:!0,onPrevClick:function(){},onNextClick:function(){},navWrapper:function(e){return e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(21)),o=c(n(45)),i=c(n(18)),a=c(n(22)),s=c(n(0)),l=c(n(1));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){var e,n,o,a;(0,r.default)(this,t);for(var s=arguments.length,l=Array(s),c=0;c=0||(o[n]=e[n]);return o}},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(289)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(30);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return i[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(324),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(166),o=n(326),i={};Object.keys(r).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var r=t[n];i[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},function(e,t,n){var r=n(166);function o(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,o=0;ou,n),o=void 0;return o=t.yearu?e.nextDecade:f.bind(e,t.year),a.default.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:o,className:(0,l.default)(r)},a.default.createElement("a",{className:d+"-year"},t.content))}));return a.default.createElement("tr",{key:n,role:"row"},r)})),p=o&&o("year");return a.default.createElement("div",{className:this.prefixCls},a.default.createElement("div",null,a.default.createElement("div",{className:d+"-header"},a.default.createElement("a",{className:d+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade}),a.default.createElement("a",{className:d+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:r.decadeSelect},a.default.createElement("span",{className:d+"-decade-select-content"},c,"-",u),a.default.createElement("span",{className:d+"-decade-select-arrow"},"x")),a.default.createElement("a",{className:d+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade})),a.default.createElement("div",{className:d+"-body"},a.default.createElement("table",{className:d+"-table",cellSpacing:"0",role:"grid"},a.default.createElement("tbody",{className:d+"-tbody"},h))),p&&a.default.createElement("div",{className:d+"-footer"},p)))},t}(a.default.Component);t.default=d,d.propTypes={rootPrefixCls:s.default.string,value:s.default.object,defaultValue:s.default.object,renderFooter:s.default.func},d.defaultProps={onSelect:function(){}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(21)),o=c(n(18)),i=c(n(22)),a=c(n(0)),s=c(n(1)),l=c(n(16));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}function f(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}var d=function(e){function t(n){(0,r.default)(this,t);var i=(0,o.default)(this,e.call(this,n));return i.state={value:n.value||n.defaultValue},i.prefixCls=n.rootPrefixCls+"-decade-panel",i.nextCentury=u.bind(i,100),i.previousCentury=u.bind(i,-100),i}return(0,i.default)(t,e),t.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,r=n.locale,o=n.renderFooter,i=t.year(),s=100*parseInt(i/100,10),c=s-10,u=s+99,d=[],h=0,p=this.prefixCls,m=0;m<4;m++){d[m]=[];for(var g=0;g<3;g++){var v=c+10*h,y=c+10*h+9;d[m][g]={startDecade:v,endDecade:y},h++}}var b=o&&o("decade"),w=d.map((function(t,n){var r=t.map((function(t){var n,r=t.startDecade,o=t.endDecade,c=ru,h=((n={})[p+"-cell"]=1,n[p+"-selected-cell"]=r<=i&&i<=o,n[p+"-last-century-cell"]=c,n[p+"-next-century-cell"]=d,n),m=r+"-"+o,g=void 0;return g=c?e.previousCentury:d?e.nextCentury:f.bind(e,r),a.default.createElement("td",{key:r,onClick:g,role:"gridcell",className:(0,l.default)(h)},a.default.createElement("a",{className:p+"-decade"},m))}));return a.default.createElement("tr",{key:n,role:"row"},r)}));return a.default.createElement("div",{className:this.prefixCls},a.default.createElement("div",{className:p+"-header"},a.default.createElement("a",{className:p+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:r.previousCentury}),a.default.createElement("div",{className:p+"-century"},s,"-",u),a.default.createElement("a",{className:p+"-next-century-btn",role:"button",onClick:this.nextCentury,title:r.nextCentury})),a.default.createElement("div",{className:p+"-body"},a.default.createElement("table",{className:p+"-table",cellSpacing:"0",role:"grid"},a.default.createElement("tbody",{className:p+"-tbody"},w))),b&&a.default.createElement("div",{className:p+"-footer"},b))},t}(a.default.Component);t.default=d,d.propTypes={locale:s.default.object,value:s.default.object,defaultValue:s.default.object,rootPrefixCls:s.default.string,renderFooter:s.default.func},d.defaultProps={onSelect:function(){}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=m(n(23)),o=m(n(21)),i=m(n(18)),a=m(n(22)),s=m(n(0)),l=m(n(28)),c=m(n(1)),u=m(n(172)),f=m(n(16)),d=m(n(173)),h=m(n(174)),p=m(n(175));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,a.default)(t,e),t.prototype.onSelect=function(e){this.props.onSelect(e)},t.prototype.getRootDOMNode=function(){return l.default.findDOMNode(this)},t.prototype.render=function(){var e=this.props,t=e.value,n=e.prefixCls,o=e.showOk,i=e.timePicker,a=e.renderFooter,l=e.mode,c=null,m=a&&a(l);if(e.showToday||i||m){var g,v=void 0;e.showToday&&(v=s.default.createElement(d.default,(0,r.default)({},e,{value:t})));var y=void 0;(!0===o||!1!==o&&e.timePicker)&&(y=s.default.createElement(h.default,e));var b=void 0;e.timePicker&&(b=s.default.createElement(p.default,e));var w=void 0;(v||b||y||m)&&(w=s.default.createElement("span",{className:n+"-footer-btn"},m,(0,u.default)([v,b,y])));var E=(0,f.default)(n+"-footer",((g={})[n+"-footer-show-ok"]=y,g));c=s.default.createElement("div",{className:E},w)}return c},t}(s.default.Component);g.propTypes={prefixCls:c.default.string,showDateInput:c.default.bool,disabledTime:c.default.any,timePicker:c.default.element,selectedValue:c.default.any,showOk:c.default.bool,onSelect:c.default.func,value:c.default.object,renderFooter:c.default.func,defaultValue:c.default.object,mode:c.default.string},t.default=g,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.calendarMixinWrapper=t.calendarMixinDefaultProps=t.calendarMixinPropTypes=void 0;var r=f(n(21)),o=f(n(18)),i=f(n(22));t.getNowByCurrentStateValue=d;var a=f(n(0)),s=f(n(1)),l=f(n(16)),c=f(n(9)),u=n(90);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return e?(0,u.getTodayTime)(e):(0,c.default)()}t.calendarMixinPropTypes={value:s.default.object,defaultValue:s.default.object,onKeyDown:s.default.func},t.calendarMixinDefaultProps={onKeyDown:function(){}},t.calendarMixinWrapper=function(e){var t,n;return n=t=function(t){function n(){var e,i,s;(0,r.default)(this,n);for(var c=arguments.length,f=Array(c),d=0;d0?n:null}}]),g}(r.Component);return t.defaultProps={allowClear:!0,showToday:!0},(0,i.polyfill)(t),t};var r=y(n(0)),o=y(n(9)),i=n(30),a=g(n(170)),s=g(n(131)),l=g(n(16)),c=g(n(70)),u=g(n(20)),f=n(44),d=g(n(71)),h=g(n(105)),p=g(n(178)),m=n(179);function g(e){return e&&e.__esModule?e:{default:e}}function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){if(e&&e.__esModule)return e;if(null===e||"object"!==b(e)&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t=0||v&&v.indexOf(p.minute())>=0||y&&y.indexOf(p.second())>=0)return void n.setState({invalid:!0});if(h){if(h.hour()!==p.hour()||h.minute()!==p.minute()||h.second()!==p.second()){var b=h.clone();b.hour(p.hour()),b.minute(p.minute()),b.second(p.second()),d(b)}}else h!==p&&d(p)}else d(null);n.setState({invalid:!1})})),h(f(n),"onKeyDown",(function(e){var t=n.props,r=t.onEsc,o=t.onKeyDown;27===e.keyCode&&r(),o(e)}));var r=e.value,o=e.format;return n.state={str:r&&r.format(o)||"",invalid:!1},n}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this;this.props.focusOnOpen&&(window.requestAnimationFrame||window.setTimeout)((function(){e.refInput.focus(),e.refInput.select()}))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.format;n!==e.value&&this.setState({str:n&&n.format(r)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var e=this.props,t=e.value,n=e.defaultOpenValue;return t||n}},{key:"getInput",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.placeholder,i=t.inputReadOnly,s=this.state,l=s.invalid,c=s.str,u=l?"".concat(n,"-input-invalid"):"";return r.default.createElement("input",{className:(0,a.default)("".concat(n,"-input"),u),ref:function(t){e.refInput=t},onKeyDown:this.onKeyDown,value:c,placeholder:o,onChange:this.onInputChange,readOnly:!!i})}},{key:"render",value:function(){var e=this.props.prefixCls;return r.default.createElement("div",{className:"".concat(e,"-input-wrap")},this.getInput())}}])&&c(n.prototype,o),s&&c(n,s),t}(r.Component);h(p,"propTypes",{format:o.default.string,prefixCls:o.default.string,disabledDate:o.default.func,placeholder:o.default.string,clearText:o.default.string,value:o.default.object,inputReadOnly:o.default.bool,hourOptions:o.default.array,minuteOptions:o.default.array,secondOptions:o.default.array,disabledHours:o.default.func,disabledMinutes:o.default.func,disabledSeconds:o.default.func,onChange:o.default.func,onEsc:o.default.func,defaultOpenValue:o.default.object,currentSelectPanel:o.default.string,focusOnOpen:o.default.bool,onKeyDown:o.default.func,clearIcon:o.default.node}),h(p,"defaultProps",{inputReadOnly:!1});var m=p;t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=a(n(1)),i=a(n(348));function a(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n=0&&(r=!0),{value:n,disabled:r}},g=function(e){function t(){var e,n;l(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=12&&u.hour(u.hour()-12)),c(f)}else u.second(+t);o(u)})),p(d(n),"onEnterSelectPanel",(function(e){(0,n.props.onCurrentSelectPanelChange)(e)})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"getHourSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,a=n.hourOptions,s=n.disabledHours,l=n.showHour,c=n.use12Hours,u=n.onEsc;if(!l)return null;var f,d,h=s();return c?(f=[12].concat(a.filter((function(e){return e<12&&e>0}))),d=e%12||12):(f=a,d=e),r.default.createElement(i.default,{prefixCls:o,options:f.map((function(e){return m(e,h)})),selectedIndex:f.indexOf(d),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("hour")},onEsc:u})}},{key:"getMinuteSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,a=n.minuteOptions,s=n.disabledMinutes,l=n.defaultOpenValue,c=n.showMinute,u=n.value,f=n.onEsc;if(!c)return null;var d=s((u||l).hour());return r.default.createElement(i.default,{prefixCls:o,options:a.map((function(e){return m(e,d)})),selectedIndex:a.indexOf(e),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("minute")},onEsc:f})}},{key:"getSecondSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,a=n.secondOptions,s=n.disabledSeconds,l=n.showSecond,c=n.defaultOpenValue,u=n.value,f=n.onEsc;if(!l)return null;var d=u||c,h=s(d.hour(),d.minute());return r.default.createElement(i.default,{prefixCls:o,options:a.map((function(e){return m(e,h)})),selectedIndex:a.indexOf(e),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("second")},onEsc:f})}},{key:"getAMPMSelect",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.use12Hours,a=t.format,s=t.isAM,l=t.onEsc;if(!o)return null;var c=["am","pm"].map((function(e){return a.match(/\sA/)?e.toUpperCase():e})).map((function(e){return{value:e}})),u=s?0:1;return r.default.createElement(i.default,{prefixCls:n,options:c,selectedIndex:u,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return e.onEnterSelectPanel("ampm")},onEsc:l})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.defaultOpenValue,o=e.value||n;return r.default.createElement("div",{className:"".concat(t,"-combobox")},this.getHourSelect(o.hour()),this.getMinuteSelect(o.minute()),this.getSecondSelect(o.second()),this.getAMPMSelect(o.hour()))}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);p(g,"propTypes",{format:o.default.string,defaultOpenValue:o.default.object,prefixCls:o.default.string,value:o.default.object,onChange:o.default.func,onAmPmChange:o.default.func,showHour:o.default.bool,showMinute:o.default.bool,showSecond:o.default.bool,hourOptions:o.default.array,minuteOptions:o.default.array,secondOptions:o.default.array,disabledHours:o.default.func,disabledMinutes:o.default.func,disabledSeconds:o.default.func,onCurrentSelectPanelChange:o.default.func,use12Hours:o.default.bool,onEsc:o.default.func,isAM:o.default.bool});var v=g;t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=l(n(1)),i=l(n(28)),a=l(n(16)),s=l(n(61));function l(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0?function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(e[1]=void 0);var r=A(e,2),o=r[0],i=r[1];"function"==typeof n.onChange&&n.onChange(e,[(0,m.formatDate)(o,n.format),(0,m.formatDate)(i,n.format)])},t.handleOpenChange=function(e){"open"in t.props||t.setState({open:e}),!1===e&&t.clearHoverValue();var n=t.props.onOpenChange;n&&n(e)},t.handleShowDateChange=function(e){return t.setState({showDate:e})},t.handleHoverChange=function(e){return t.setState({hoverValue:e})},t.handleRangeMouseLeave=function(){t.state.open&&t.clearHoverValue()},t.handleCalendarInputSelect=function(e){A(e,1)[0]&&t.setState((function(t){var n=t.showDate;return{value:e,showDate:M(e)||n}}))},t.handleRangeClick=function(e){"function"==typeof e&&(e=e()),t.setValue(e,!0);var n=t.props,r=n.onOk,o=n.onOpenChange;r&&r(e),o&&o(!1)},t.renderFooter=function(){var e=t.props,n=e.ranges,o=e.renderExtraFooter,i=x(t),a=i.prefixCls,s=i.tagPrefixCls;if(!n&&!o)return null;var l=o?r.createElement("div",{className:"".concat(a,"-footer-extra"),key:"extra"},o()):null,c=n&&Object.keys(n).map((function(e){var o=n[e],i="function"==typeof o?o.call(x(t)):o;return r.createElement(f.default,{key:e,prefixCls:s,color:"blue",onClick:function(){return t.handleRangeClick(o)},onMouseEnter:function(){return t.setState({hoverValue:i})},onMouseLeave:t.handleRangeMouseLeave},e)}));return[c&&c.length>0?r.createElement("div",{className:"".concat(a,"-footer-extra ").concat(a,"-range-quick-selector"),key:"range"},c):null,l]},t.renderRangePicker=function(e){var n,o=e.getPrefixCls,i=x(t),c=i.state,f=i.props,d=c.value,p=c.showDate,v=c.hoverValue,y=c.open,b=f.prefixCls,w=f.tagPrefixCls,k=f.popupStyle,O=f.style,S=f.disabledDate,P=f.disabledTime,_=f.showTime,T=f.showToday,M=f.ranges,R=f.onOk,N=f.locale,j=f.localeCode,L=f.format,$=f.dateRender,F=f.onCalendarChange,I=f.suffixIcon,V=f.separator,B=o("calendar",b),W=o("tag",w);t.prefixCls=B,t.tagPrefixCls=W,D(d,j),D(p,j),(0,h.default)(!("onOK"in f),"RangePicker","It should be `RangePicker[onOk]`, instead of `onOK`!");var H=(0,l.default)((C(n={},"".concat(B,"-time"),_),C(n,"".concat(B,"-range-with-ranges"),M),n)),z={onChange:t.handleChange},K={onOk:t.handleChange};f.timePicker?z.onChange=function(e){return t.handleChange(e)}:K={},"mode"in f&&(K.mode=f.mode);var U=Array.isArray(f.placeholder)?f.placeholder[0]:N.lang.rangePlaceholder[0],G=Array.isArray(f.placeholder)?f.placeholder[1]:N.lang.rangePlaceholder[1],q=r.createElement(a.default,E({},K,{seperator:V,onChange:F,format:L,prefixCls:B,className:H,renderFooter:t.renderFooter,timePicker:f.timePicker,disabledDate:S,disabledTime:P,dateInputPlaceholder:[U,G],locale:N.lang,onOk:R,dateRender:$,value:p,onValueChange:t.handleShowDateChange,hoverValue:v,onHoverChange:t.handleHoverChange,onPanelChange:f.onPanelChange,showToday:T,onInputSelect:t.handleCalendarInputSelect})),Y={};f.showTime&&(Y.width=O&&O.width||350);var J=A(d,2),X=J[0],Z=J[1],Q=!f.disabled&&f.allowClear&&d&&(X||Z)?r.createElement(u.default,{type:"close-circle",className:"".concat(B,"-picker-clear"),onClick:t.clearSelection,theme:"filled"}):null,ee=r.createElement(g.default,{suffixIcon:I,prefixCls:B}),te=function(e){var t=A(e.value,2),n=t[0],o=t[1];return r.createElement("span",{className:f.pickerInputClass},r.createElement("input",{disabled:f.disabled,readOnly:!0,value:(0,m.formatDate)(n,f.format),placeholder:U,className:"".concat(B,"-range-picker-input"),tabIndex:-1}),r.createElement("span",{className:"".concat(B,"-range-picker-separator")}," ",V," "),r.createElement("input",{disabled:f.disabled,readOnly:!0,value:(0,m.formatDate)(o,f.format),placeholder:G,className:"".concat(B,"-range-picker-input"),tabIndex:-1}),Q,ee)};return r.createElement("span",{ref:t.savePicker,id:"number"==typeof f.id?f.id.toString():f.id,className:(0,l.default)(f.className,f.pickerClass),style:E(E({},O),Y),tabIndex:f.disabled?-1:0,onFocus:f.onFocus,onBlur:f.onBlur,onMouseEnter:f.onMouseEnter,onMouseLeave:f.onMouseLeave},r.createElement(s.default,E({},f,z,{calendar:q,value:d,open:y,onOpenChange:t.handleOpenChange,prefixCls:"".concat(B,"-picker-container"),style:k}),te))};var n=e.value||e.defaultValue||[],i=A(n,2),c=i[0],d=i[1];if(c&&!(0,p.default)(o).isMoment(c)||d&&!(0,p.default)(o).isMoment(d))throw new Error("The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, see: https://u.ant.design/date-picker-value");var v,w=n&&(v=n,!Array.isArray(v)||0!==v.length&&!v.every((function(e){return!e})))?n:e.defaultPickerValue;return t.state={value:n,showDate:R(w||(0,p.default)(o)()),open:e.open,hoverValue:[]},t}return n=b,v=[{key:"getDerivedStateFromProps",value:function(e,t){var n=null;if("value"in e){var r=e.value||[];n={value:r},(0,c.default)(e.value,t.value)||(n=E(E({},n),{showDate:M(r,e.mode)||t.showDate}))}return"open"in e&&t.open!==e.open&&(n=E(E({},n),{open:e.open})),n}}],(i=[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"setValue",value:function(e,t){this.handleChange(e),!t&&this.props.showTime||"open"in this.props||this.setState({open:!1})}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"render",value:function(){return r.createElement(d.ConfigConsumer,null,this.renderRangePicker)}}])&&k(n.prototype,i),v&&k(n,v),b}(r.Component);N.defaultProps={allowClear:!0,showToday:!1,separator:"~"},(0,i.polyfill)(N);var j=N;t.default=j},function(e,t,n){"use strict";t.__esModule=!0;var r=w(n(23)),o=w(n(21)),i=w(n(18)),a=w(n(22)),s=w(n(0)),l=w(n(1)),c=w(n(9)),u=w(n(16)),f=n(30),d=w(n(112)),h=w(n(355)),p=w(n(173)),m=w(n(174)),g=w(n(175)),v=n(176),y=n(90),b=n(360);function w(e){return e&&e.__esModule?e:{default:e}}function E(){}function C(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var n=0;n0&&(r[1-o]=this.state.showTimePicker?r[o]:void 0),this.props.onInputSelect(r),this.fireSelectValueChange(r,null,n||{source:"dateInput"})}}var P=function(e){function t(n){(0,o.default)(this,t);var r=(0,i.default)(this,e.call(this,n));_.call(r);var a=n.selectedValue||n.defaultSelectedValue,s=O(n,1);return r.state={selectedValue:a,prevSelectedValue:a,firstSelectedValue:null,hoverValue:n.hoverValue||[],value:s,showTimePicker:!1,mode:n.mode||["date","date"],panelTriggerSource:""},r}return(0,a.default)(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return"value"in e&&(n.value=O(e,0)),"hoverValue"in e&&!C(t.hoverValue,e.hoverValue)&&(n.hoverValue=e.hoverValue),"selectedValue"in e&&(n.selectedValue=e.selectedValue,n.prevSelectedValue=e.selectedValue),"mode"in e&&!C(t.mode,e.mode)&&(n.mode=e.mode),n},t.prototype.render=function(){var e,t,n=this.props,o=this.state,i=n.prefixCls,a=n.dateInputPlaceholder,l=n.seperator,c=n.timePicker,f=n.showOk,d=n.locale,v=n.showClear,b=n.showToday,w=n.type,E=n.clearIcon,C=o.hoverValue,k=o.selectedValue,O=o.mode,S=o.showTimePicker,x=((e={})[n.className]=!!n.className,e[i]=1,e[i+"-hidden"]=!n.visible,e[i+"-range"]=1,e[i+"-show-time-picker"]=S,e[i+"-week-number"]=n.showWeekNumber,e),P=(0,u.default)(x),_={selectedValue:o.selectedValue,onSelect:this.onSelect,onDayHover:"start"===w&&k[1]||"end"===w&&k[0]||C.length?this.onDayHover:void 0},A=void 0,T=void 0;a&&(Array.isArray(a)?(A=a[0],T=a[1]):A=T=a);var M=!0===f||!1!==f&&!!c,R=(0,u.default)(((t={})[i+"-footer"]=!0,t[i+"-range-bottom"]=!0,t[i+"-footer-show-ok"]=M,t)),D=this.getStartValue(),N=this.getEndValue(),j=(0,y.getTodayTime)(D),L=j.month(),$=j.year(),F=D.year()===$&&D.month()===L||N.year()===$&&N.month()===L,I=D.clone().add(1,"months"),V=I.year()===N.year()&&I.month()===N.month(),B=n.renderFooter();return s.default.createElement("div",{ref:this.saveRoot,className:P,style:n.style,tabIndex:"0",onKeyDown:this.onKeyDown},n.renderSidebar(),s.default.createElement("div",{className:i+"-panel"},v&&k[0]&&k[1]?s.default.createElement("a",{role:"button",title:d.clear,onClick:this.clear},E||s.default.createElement("span",{className:i+"-clear-btn"})):null,s.default.createElement("div",{className:i+"-date-panel",onMouseLeave:"both"!==w?this.onDatePanelLeave:void 0,onMouseEnter:"both"!==w?this.onDatePanelEnter:void 0},s.default.createElement(h.default,(0,r.default)({},n,_,{hoverValue:C,direction:"left",disabledTime:this.disabledStartTime,disabledMonth:this.disabledStartMonth,format:this.getFormat(),value:D,mode:O[0],placeholder:A,onInputChange:this.onStartInputChange,onInputSelect:this.onStartInputSelect,onValueChange:this.onStartValueChange,onPanelChange:this.onStartPanelChange,showDateInput:this.props.showDateInput,timePicker:c,showTimePicker:S||"time"===O[0],enablePrev:!0,enableNext:!V||this.isMonthYearPanelShow(O[1]),clearIcon:E})),s.default.createElement("span",{className:i+"-range-middle"},l),s.default.createElement(h.default,(0,r.default)({},n,_,{hoverValue:C,direction:"right",format:this.getFormat(),timePickerDisabledTime:this.getEndDisableTime(),placeholder:T,value:N,mode:O[1],onInputChange:this.onEndInputChange,onInputSelect:this.onEndInputSelect,onValueChange:this.onEndValueChange,onPanelChange:this.onEndPanelChange,showDateInput:this.props.showDateInput,timePicker:c,showTimePicker:S||"time"===O[1],disabledTime:this.disabledEndTime,disabledMonth:this.disabledEndMonth,enablePrev:!V||this.isMonthYearPanelShow(O[0]),enableNext:!0,clearIcon:E}))),s.default.createElement("div",{className:R},b||n.timePicker||M||B?s.default.createElement("div",{className:i+"-footer-btn"},B,b?s.default.createElement(p.default,(0,r.default)({},n,{disabled:F,value:o.value[0],onToday:this.onToday,text:d.backToToday})):null,n.timePicker?s.default.createElement(g.default,(0,r.default)({},n,{showTimePicker:S||"time"===O[0]&&"time"===O[1],onOpenTimePicker:this.onOpenTimePicker,onCloseTimePicker:this.onCloseTimePicker,timePickerDisabled:!this.hasSelectedValue()||C.length})):null,M?s.default.createElement(m.default,(0,r.default)({},n,{onOk:this.onOk,okDisabled:!this.isAllowedDateAndTime(k)||!this.hasSelectedValue()||C.length})):null):null)))},t}(s.default.Component);P.propTypes=(0,r.default)({},v.propType,{prefixCls:l.default.string,dateInputPlaceholder:l.default.any,seperator:l.default.string,defaultValue:l.default.any,value:l.default.any,hoverValue:l.default.any,mode:l.default.arrayOf(l.default.oneOf(["time","date","month","year","decade"])),showDateInput:l.default.bool,timePicker:l.default.any,showOk:l.default.bool,showToday:l.default.bool,defaultSelectedValue:l.default.array,selectedValue:l.default.array,onOk:l.default.func,showClear:l.default.bool,locale:l.default.object,onChange:l.default.func,onSelect:l.default.func,onValueChange:l.default.func,onHoverChange:l.default.func,onPanelChange:l.default.func,format:l.default.oneOfType([l.default.string,l.default.arrayOf(l.default.string)]),onClear:l.default.func,type:l.default.any,disabledDate:l.default.func,disabledTime:l.default.func,clearIcon:l.default.node,onKeyDown:l.default.func}),P.defaultProps=(0,r.default)({},v.defaultProp,{type:"both",seperator:"~",defaultSelectedValue:[],onValueChange:E,onHoverChange:E,onPanelChange:E,disabledTime:E,onInputSelect:E,showToday:!0,showDateInput:!0});var _=function(){var e=this;this.onDatePanelEnter=function(){e.hasSelectedValue()&&e.fireHoverValueChange(e.state.selectedValue.concat())},this.onDatePanelLeave=function(){e.hasSelectedValue()&&e.fireHoverValueChange([])},this.onSelect=function(t){var n=e.props.type,r=e.state,o=r.selectedValue,i=r.prevSelectedValue,a=r.firstSelectedValue,s=void 0;if("both"===n)a?e.compare(a,t)<0?((0,y.syncTime)(i[1],t),s=[a,t]):((0,y.syncTime)(i[0],t),(0,y.syncTime)(i[1],a),s=[t,a]):((0,y.syncTime)(i[0],t),s=[t]);else if("start"===n){(0,y.syncTime)(i[0],t);var l=o[1];s=l&&e.compare(l,t)>0?[t,l]:[t]}else{var c=o[0];c&&e.compare(c,t)<=0?((0,y.syncTime)(i[1],t),s=[c,t]):((0,y.syncTime)(i[0],t),s=[t])}e.fireSelectValueChange(s)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,r=t.ctrlKey||t.metaKey,o=e.state,i=o.selectedValue,a=o.hoverValue,s=o.firstSelectedValue,l=o.value,u=e.props,f=u.onKeyDown,h=u.disabledDate,p=function(n){var r=void 0,o=void 0,u=void 0;if(s?1===a.length?(r=a[0].clone(),o=n(r),u=e.onDayHover(o)):(r=a[0].isSame(s,"day")?a[1]:a[0],o=n(r),u=e.onDayHover(o)):(r=a[0]||i[0]||l[0]||(0,c.default)(),u=[o=n(r)],e.fireHoverValueChange(u)),u.length>=2){if(u.some((function(e){return!(0,b.includesTime)(l,e,"month")}))){var f=u.slice().sort((function(e,t){return e.valueOf()-t.valueOf()}));f[0].isSame(f[1],"month")&&(f[1]=f[0].clone().add(1,"month")),e.fireValueChange(f)}}else if(1===u.length){var d=l.findIndex((function(e){return e.isSame(r,"month")}));if(-1===d&&(d=0),l.every((function(e){return!e.isSame(o,"month")}))){var h=l.slice();h[d]=o.clone(),e.fireValueChange(h)}}return t.preventDefault(),o};switch(n){case d.default.DOWN:return void p((function(e){return(0,b.goTime)(e,1,"weeks")}));case d.default.UP:return void p((function(e){return(0,b.goTime)(e,-1,"weeks")}));case d.default.LEFT:return void p(r?function(e){return(0,b.goTime)(e,-1,"years")}:function(e){return(0,b.goTime)(e,-1,"days")});case d.default.RIGHT:return void p(r?function(e){return(0,b.goTime)(e,1,"years")}:function(e){return(0,b.goTime)(e,1,"days")});case d.default.HOME:return void p((function(e){return(0,b.goStartMonth)(e)}));case d.default.END:return void p((function(e){return(0,b.goEndMonth)(e)}));case d.default.PAGE_DOWN:return void p((function(e){return(0,b.goTime)(e,1,"month")}));case d.default.PAGE_UP:return void p((function(e){return(0,b.goTime)(e,-1,"month")}));case d.default.ENTER:var m=void 0;return!(m=0===a.length?p((function(e){return e})):1===a.length?a[0]:a[0].isSame(s,"day")?a[1]:a[0])||h&&h(m)||e.onSelect(m),void t.preventDefault();default:f&&f(t)}}},this.onDayHover=function(t){var n=[],r=e.state,o=r.selectedValue,i=r.firstSelectedValue,a=e.props.type;if("start"===a&&o[1])n=e.compare(t,o[1])<0?[t,o[1]]:[t];else if("end"===a&&o[0])n=e.compare(t,o[0])>0?[o[0],t]:[];else{if(!i)return e.state.hoverValue.length&&e.setState({hoverValue:[]}),n;n=e.compare(t,i)<0?[t,i]:[i,t]}return e.fireHoverValueChange(n),n},this.onToday=function(){var t=(0,y.getTodayTime)(e.state.value[0]),n=t.clone().add(1,"months");e.setState({value:[t,n]})},this.onOpenTimePicker=function(){e.setState({showTimePicker:!0})},this.onCloseTimePicker=function(){e.setState({showTimePicker:!1})},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDateAndTime(t)&&e.props.onOk(e.state.selectedValue)},this.onStartInputChange=function(){for(var t=arguments.length,n=Array(t),r=0;r-1},this.hasSelectedValue=function(){var t=e.state.selectedValue;return!!t[1]&&!!t[0]},this.compare=function(t,n){return e.props.timePicker?t.diff(n):t.diff(n,"days")},this.fireSelectValueChange=function(t,n,r){var o=e.props.timePicker,i=e.state.prevSelectedValue;if(o&&o.props.defaultValue){var a=o.props.defaultValue;!i[0]&&t[0]&&(0,y.syncTime)(a[0],t[0]),!i[1]&&t[1]&&(0,y.syncTime)(a[1],t[1])}if("selectedValue"in e.props||e.setState({selectedValue:t}),!e.state.selectedValue[0]||!e.state.selectedValue[1]){var s=t[0]||(0,c.default)(),l=t[1]||s.clone().add(1,"months");e.setState({selectedValue:t,value:k([s,l])})}t[0]&&!t[1]&&(e.setState({firstSelectedValue:t[0]}),e.fireHoverValueChange(t.concat())),e.props.onChange(t),(n||t[0]&&t[1])&&(e.setState({prevSelectedValue:t,firstSelectedValue:null}),e.fireHoverValueChange([]),e.props.onSelect(t,r))},this.fireValueChange=function(t){var n=e.props;"value"in n||e.setState({value:t}),n.onValueChange(t)},this.fireHoverValueChange=function(t){var n=e.props;"hoverValue"in n||e.setState({hoverValue:t}),n.onHoverChange(t)},this.clear=function(){e.fireSelectValueChange([],!0),e.props.onClear()},this.disabledStartTime=function(t){return e.props.disabledTime(t,"start")},this.disabledEndTime=function(t){return e.props.disabledTime(t,"end")},this.disabledStartMonth=function(t){var n=e.state.value;return t.isAfter(n[1],"month")},this.disabledEndMonth=function(t){var n=e.state.value;return t.isBefore(n[0],"month")}};(0,f.polyfill)(P),t.default=(0,v.commonMixinWrapper)(P),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(23)),o=h(n(21)),i=h(n(18)),a=h(n(22)),s=h(n(0)),l=h(n(1)),c=h(n(171)),u=h(n(356)),f=h(n(359)),d=n(90);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,a.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.value,o=e.hoverValue,i=e.selectedValue,a=e.mode,l=e.direction,h=e.locale,p=e.format,m=e.placeholder,g=e.disabledDate,v=e.timePicker,y=e.disabledTime,b=e.timePickerDisabledTime,w=e.showTimePicker,E=e.onInputChange,C=e.onInputSelect,k=e.enablePrev,O=e.enableNext,S=e.clearIcon,x=e.showClear,P=e.inputMode,_=w&&v,A=_&&y?(0,d.getTimeConfig)(i,y):null,T=t+"-range",M={locale:h,value:n,prefixCls:t,showTimePicker:w},R="left"===l?0:1,D=_&&s.default.cloneElement(v,(0,r.default)({showHour:!0,showMinute:!0,showSecond:!0},v.props,A,b,{onChange:E,defaultOpenValue:n,value:i[R]})),N=e.showDateInput&&s.default.createElement(f.default,{format:p,locale:h,prefixCls:t,timePicker:v,disabledDate:g,placeholder:m,disabledTime:y,value:n,showClear:x||!1,selectedValue:i[R],onChange:E,onSelect:C,clearIcon:S,inputMode:P});return s.default.createElement("div",{className:T+"-part "+T+"-"+l},N,s.default.createElement("div",{style:{outline:"none"}},s.default.createElement(c.default,(0,r.default)({},M,{mode:a,enableNext:O,enablePrev:k,onValueChange:e.onValueChange,onPanelChange:e.onPanelChange,disabledMonth:e.disabledMonth})),w?s.default.createElement("div",{className:t+"-time-picker"},s.default.createElement("div",{className:t+"-time-picker-panel"},D)):null,s.default.createElement("div",{className:t+"-body"},s.default.createElement(u.default,(0,r.default)({},M,{hoverValue:o,selectedValue:i,dateRender:e.dateRender,onSelect:e.onSelect,onDayHover:e.onDayHover,disabledDate:g,showWeekNumber:e.showWeekNumber})))))},t}(s.default.Component);p.propTypes={prefixCls:l.default.string,value:l.default.any,hoverValue:l.default.any,selectedValue:l.default.any,direction:l.default.any,locale:l.default.any,showDateInput:l.default.bool,showTimePicker:l.default.bool,format:l.default.any,placeholder:l.default.any,disabledDate:l.default.any,timePicker:l.default.any,disabledTime:l.default.any,onInputChange:l.default.func,onInputSelect:l.default.func,timePickerDisabledTime:l.default.object,enableNext:l.default.any,enablePrev:l.default.any,clearIcon:l.default.node,dateRender:l.default.func,inputMode:l.default.string},t.default=p,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(21)),o=c(n(18)),i=c(n(22)),a=c(n(0)),s=c(n(357)),l=c(n(358));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls;return a.default.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},a.default.createElement(s.default,e),a.default.createElement(l.default,e))},t}(a.default.Component);t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(21)),o=c(n(18)),i=c(n(22)),a=c(n(0)),s=c(n(181)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value.localeData(),n=e.prefixCls,r=[],o=[],i=t.firstDayOfWeek(),c=void 0,u=(0,l.default)(),f=0;ft.year()?1:e.year()===t.year()&&e.month()>t.month()}var m=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,o=e.value,i=e.showWeekNumber,s=e.dateRender,f=e.disabledDate,m=e.hoverValue,g=void 0,v=void 0,y=void 0,b=[],w=(0,u.getTodayTime)(o),E=n+"-cell",C=n+"-week-number-cell",k=n+"-date",O=n+"-today",S=n+"-selected-day",x=n+"-selected-date",P=n+"-selected-start-date",_=n+"-selected-end-date",A=n+"-in-range-cell",T=n+"-last-month-cell",M=n+"-next-month-btn-day",R=n+"-disabled-cell",D=n+"-disabled-cell-first-of-row",N=n+"-disabled-cell-last-of-row",j=n+"-last-day-of-month",L=o.clone();L.date(1);var $=(L.day()+7-o.localeData().firstDayOfWeek())%7,F=L.clone();F.add(0-$,"days");var I=0;for(g=0;g0&&(q=b[I-1]);var Y=E,J=!1,X=!1;d(y,w)&&(Y+=" "+O,H=!0);var Z=h(y,o),Q=p(y,o);if(r&&Array.isArray(r)){var ee=m.length?m:r;if(!Z&&!Q){var te=ee[0],ne=ee[1];te&&d(y,te)&&(X=!0,K=!0,Y+=" "+P),(te||ne)&&(d(y,ne)?(X=!0,K=!0,Y+=" "+_):(null==te&&y.isBefore(ne,"day")||null==ne&&y.isAfter(te,"day")||y.isAfter(te,"day")&&y.isBefore(ne,"day"))&&(Y+=" "+A))}}else d(y,o)&&(X=!0,K=!0);d(y,r)&&(Y+=" "+x),Z&&(Y+=" "+T),Q&&(Y+=" "+M),y.clone().endOf("month").date()===y.date()&&(Y+=" "+j),f&&f(y,o)&&(J=!0,q&&f(q,o)||(Y+=" "+D),G&&f(G,o)||(Y+=" "+N)),X&&(Y+=" "+S),J&&(Y+=" "+R);var re=void 0;if(s)re=s(y,o);else{var oe=t?t(y,o):y.date();re=a.default.createElement("div",{key:(V=y,"rc-calendar-"+V.year()+"-"+V.month()+"-"+V.date()),className:k,"aria-selected":X,"aria-disabled":J},oe)}U.push(a.default.createElement("td",{key:I,onClick:J?void 0:e.onSelect.bind(null,y),onMouseEnter:J?void 0:e.onDayHover&&e.onDayHover.bind(null,y)||void 0,role:"gridcell",title:(0,u.getTitleString)(y),className:Y},re)),I++}B.push(a.default.createElement("tr",{key:g,role:"row",className:(0,l.default)((W={},W[n+"-current-week"]=H,W[n+"-active-week"]=K,W))},z,U))}return a.default.createElement("tbody",{className:n+"-tbody"},B)},t}(a.default.Component);m.propTypes={contentRender:s.default.func,dateRender:s.default.func,disabledDate:s.default.func,prefixCls:s.default.string,selectedValue:s.default.oneOfType([s.default.object,s.default.arrayOf(s.default.object)]),value:s.default.object,hoverValue:s.default.any,showWeekNumber:s.default.bool},m.defaultProps={hoverValue:[]},t.default=m,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(21)),o=h(n(18)),i=h(n(22)),a=h(n(0)),s=h(n(28)),l=h(n(1)),c=h(n(112)),u=n(30),f=h(n(9)),d=n(90);function h(e){return e&&e.__esModule?e:{default:e}}var p=void 0,m=void 0,g=void 0,v=function(e){function t(n){(0,r.default)(this,t);var i=(0,o.default)(this,e.call(this,n));y.call(i);var a=n.selectedValue;return i.state={str:(0,d.formatDate)(a,i.props.format),invalid:!1,hasFocus:!1},i}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(){!g||!this.state.hasFocus||this.state.invalid||0===p&&0===m||g.setSelectionRange(p,m)},t.getDerivedStateFromProps=function(e,t){var n={};g&&(p=g.selectionStart,m=g.selectionEnd);var r=e.selectedValue;return t.hasFocus||(n={str:(0,d.formatDate)(r,e.format),invalid:!1}),n},t.getInstance=function(){return g},t.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,o=e.locale,i=e.prefixCls,s=e.placeholder,l=e.clearIcon,c=e.inputMode,u=n?i+"-input-invalid":"";return a.default.createElement("div",{className:i+"-input-wrap"},a.default.createElement("div",{className:i+"-date-input-wrap"},a.default.createElement("input",{ref:this.saveDateInput,className:i+"-input "+u,value:r,disabled:e.disabled,placeholder:s,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:c})),e.showClear?a.default.createElement("a",{role:"button",title:o.clear,onClick:this.onClear},l||a.default.createElement("span",{className:i+"-clear-btn"})):null)},t}(a.default.Component);v.propTypes={prefixCls:l.default.string,timePicker:l.default.object,value:l.default.object,disabledTime:l.default.any,format:l.default.oneOfType([l.default.string,l.default.arrayOf(l.default.string)]),locale:l.default.object,disabledDate:l.default.func,onChange:l.default.func,onClear:l.default.func,placeholder:l.default.string,onSelect:l.default.func,selectedValue:l.default.object,clearIcon:l.default.node,inputMode:l.default.string};var y=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,r=e.props,o=r.disabledDate,i=r.format,a=r.onChange,s=r.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=(0,f.default)(n,i,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||o&&o(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState((function(e,t){return{hasFocus:!1,str:(0,d.formatDate)(t.value,t.format)}}))},this.onKeyDown=function(t){var n=t.keyCode,r=e.props,o=r.onSelect,i=r.value,a=r.disabledDate;n===c.default.ENTER&&o&&((!a||!a(i))&&o(i.clone()),t.preventDefault())},this.getRootDOMNode=function(){return s.default.findDOMNode(e)},this.focus=function(){g&&g.focus()},this.saveDateInput=function(e){g=e}};(0,u.polyfill)(v),t.default=v,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.goStartMonth=function(e){return e.clone().startOf("month")},t.goEndMonth=function(e){return e.clone().endOf("month")},t.goTime=function(e,t,n){return e.clone().add(t,n)},t.includesTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2];return e.some((function(e){return e.isSame(t,n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(0)),o=m(n(9)),i=n(30),a=h(n(115)),s=h(n(131)),l=h(n(16)),c=h(n(20)),u=n(44),f=h(n(105)),d=h(n(182));function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;ro?i>=a?10+e:20+e:i<=a?10+e:e}},{key:"renderCurrentNumber",value:function(e,t,n){if("number"==typeof t){var o=this.getPositionByNum(t,n),a=this.state.animateStarted||void 0===v(this.lastCount)[n];return r.createElement("span",{className:"".concat(e,"-only"),style:{transition:a?"none":void 0,msTransform:"translateY(".concat(100*-o,"%)"),WebkitTransform:"translateY(".concat(100*-o,"%)"),transform:"translateY(".concat(100*-o,"%)")},key:n},function(e,t){for(var n=[],o=0;o<30;o++)n.push(r.createElement("p",{key:o.toString(),className:(0,i.default)(t,{current:e===o})},o%10));return n}(o,"".concat(e,"-only-unit")))}return r.createElement("span",{key:"symbol",className:"".concat(e,"-symbol")},t)}},{key:"renderNumberElement",value:function(e){var t=this,n=this.state.count;return n&&Number(n)%1==0?v(n).map((function(n,r){return t.renderCurrentNumber(e,n,r)})).reverse():n}},{key:"render",value:function(){return r.createElement(s.ConfigConsumer,null,this.renderScrollNumber)}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}))}],l=[{key:"getDerivedStateFromProps",value:function(e,t){return"count"in e?t.count===e.count?null:{animateStarted:!0}:null}}],a&&d(n.prototype,a),l&&d(n,l),u}(r.Component);y.defaultProps={count:null,onAnimated:function(){}},(0,a.polyfill)(y);var b=y;t.default=b},function(e,t,n){e.exports=n(19)(1342)},function(e,t,n){},function(e,t,n){e.exports=n(19)(347)},function(e,t,n){"use strict";var r=n(133),o=n(186),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,o,i,a,l,u,f,h,p,m,g,v){var y,b=t;if("function"==typeof u?b=u(n,b):b instanceof Date?b=p(b):"comma"===o&&s(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?p(e):e})).join(",")),null===b){if(i)return l&&!g?l(n,d.encoder,v,"key"):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(b))return l?[m(g?n:l(n,d.encoder,v,"key"))+"="+m(l(b,d.encoder,v,"value"))]:[m(n)+"="+m(String(b))];var w,E=[];if(void 0===b)return E;if(s(u))w=u;else{var C=Object.keys(b);w=f?C.sort(f):C}for(var k=0;k0?y+v:""}},function(e,t,n){"use strict";var r=n(133),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var f=0;n.depth>0&&null!==(s=a.exec(i))&&f=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:a[c]=o:a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=i(g)?[g]:g),o.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(u),h=0;h-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];C.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})};var O=self.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function S(e,t){return new Promise((function(n,r){var o=new w(e,t);if(o.signal&&o.signal.aborted)return r(new O("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new C(o,r))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new O("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,self.fetch||(self.fetch=S,self.Headers=h,self.Request=w,self.Response=C)},function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,i=a(o),s=this._rootContainsTarget(o),l=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(o,t),u=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:t,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,u)&&this._queuedEntries.push(u):l&&l.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var r,o,i,s,c,u,f,d,h=a(t),p=l(t),m=!1;!m;){var g=null,v=1==p.nodeType?window.getComputedStyle(p):{};if("none"==v.display)return;if(p==this.root||p==e?(m=!0,g=n):p!=e.body&&p!=e.documentElement&&"visible"!=v.overflow&&(g=a(p)),g&&(r=g,o=h,i=void 0,s=void 0,c=void 0,u=void 0,f=void 0,d=void 0,i=Math.max(r.top,o.top),s=Math.min(r.bottom,o.bottom),c=Math.max(r.left,o.left),u=Math.min(r.right,o.right),d=s-i,!(h=(f=u-c)>=0&&d>=0&&{top:i,bottom:s,left:c,right:u,width:f,height:d})))break;p=l(p)}return h}},r.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o0&&this.handleMarkers(k);var P=this.editor.$options;c.editorOptions.forEach((function(t){P.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option "+t+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(E)&&E.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),n&&(this.refEditor.className+=" "+n),w&&w(this.editor),this.editor.resize(),a&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,r=0;r 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some((function(t){return t.session===e}))&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,o=0;o-1},_.prototype.set=function(e,t){var n=this.__data__,r=T(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new P,map:new(k||_),string:new P}},A.prototype.delete=function(e){return D(this,e).delete(e)},A.prototype.get=function(e){return D(this,e).get(e)},A.prototype.has=function(e){return D(this,e).has(e)},A.prototype.set=function(e,t){return D(this,e).set(e,t),this};var j=$((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(i,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));function L(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new($.Cache||A),n}$.Cache=A;var F=Array.isArray;function I(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:M(e,t);return void 0===r?n:r}}).call(this,n(113))},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,s=this.diff_commonPrefix(e,t),l=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var u=this.diff_compute_(e,t,a,i);return l&&u.unshift(new n.Diff(0,l)),c&&u.push(new n.Diff(0,c)),this.diff_cleanupMerge(u),u},n.prototype.diff_compute_=function(e,t,r,o){var i;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,s=e.length>t.length?t:e,l=a.indexOf(s);if(-1!=l)return i=[new n.Diff(1,a.substring(0,l)),new n.Diff(0,s),new n.Diff(1,a.substring(l+s.length))],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var c=this.diff_halfMatch_(e,t);if(c){var u=c[0],f=c[1],d=c[2],h=c[3],p=c[4],m=this.diff_main(u,d,r,o),g=this.diff_main(f,h,r,o);return m.concat([new n.Diff(0,p)],g)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},n.prototype.diff_lineMode_=function(e,t,r){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var i=o.lineArray,a=this.diff_main(e,t,!1,r);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var s=0,l=0,c=0,u="",f="";s=1&&c>=1){a.splice(s-l-c,l+c),s=s-l-c;for(var d=this.diff_main(u,f,!1,r),h=d.length-1;h>=0;h--)a.splice(s,0,d[h]);s+=d.length}c=0,l=0,u="",f=""}s++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,r){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),f=0;fr);y++){for(var b=-y+p;b<=y-m;b+=2){for(var w=s+b,E=(x=b==-y||b!=y&&c[w-1]o)m+=2;else if(E>i)p+=2;else if(h){if((O=s+d-b)>=0&&O=(k=o-u[O]))return this.diff_bisectSplit_(e,t,x,E,r)}}for(var C=-y+g;C<=y-v;C+=2){for(var k,O=s+C,S=(k=C==-y||C!=y&&u[O-1]o)v+=2;else if(S>i)g+=2;else if(!h){if((w=s+d-C)>=0&&w=(k=o-k))return this.diff_bisectSplit_(e,t,x,E,r)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=this.diff_main(i,a,!1,o),u=this.diff_main(s,l,!1,o);return c.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,s=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,s,u]:null}var a,s,l,c,u,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));return f||d?(a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(s=a[0],l=a[1],c=a[2],u=a[3]):(c=a[0],u=a[1],s=a[2],l=a[3]),[s,l,c,u,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],o=0,i=null,a=0,s=0,l=0,c=0,u=0;a0?r[o-1]:-1,s=0,l=0,c=0,u=0,i=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=p?(h>=f.length/2||h>=d.length/2)&&(e.splice(a,0,new n.Diff(0,d.substring(0,h))),e[a-1][1]=f.substring(0,f.length-h),e[a+1][1]=d.substring(h),a++):(p>=f.length/2||p>=d.length/2)&&(e.splice(a,0,new n.Diff(0,f.substring(0,p))),e[a-1][0]=1,e[a-1][1]=d.substring(0,d.length-p),e[a+1][0]=-1,e[a+1][1]=f.substring(p),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),o=t.charAt(0),i=r.match(n.nonAlphaNumericRegex_),a=o.match(n.nonAlphaNumericRegex_),s=i&&r.match(n.whitespaceRegex_),l=a&&o.match(n.whitespaceRegex_),c=s&&r.match(n.linebreakRegex_),u=l&&o.match(n.linebreakRegex_),f=c&&e.match(n.blanklineEndRegex_),d=u&&t.match(n.blanklineStartRegex_);return f||d?5:c||u?4:i&&!s&&l?3:s||l?2:i||a?1:0}for(var r=1;r=d&&(d=h,c=o,u=i,f=a)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=u,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],o=0,i=null,a=0,s=!1,l=!1,c=!1,u=!1;a0?r[o-1]:-1,c=u=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,r=0,o=0,i=0,a="",s="";r1?(0!==o&&0!==i&&(0!==(t=this.diff_commonPrefix(s,a))&&(r-o-i>0&&0==e[r-o-i-1][0]?e[r-o-i-1][1]+=s.substring(0,t):(e.splice(0,0,new n.Diff(0,s.substring(0,t))),r++),s=s.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(s,a))&&(e[r][1]=s.substring(s.length-t)+e[r][1],s=s.substring(0,s.length-t),a=a.substring(0,a.length-t))),r-=o+i,e.splice(r,o+i),a.length&&(e.splice(r,0,new n.Diff(-1,a)),r++),s.length&&(e.splice(r,0,new n.Diff(1,s)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,a="",s=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(r=1;rt));n++)i=r,a=o;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,i=/\n/g,a=0;a");switch(s){case 1:t[a]=''+l+"";break;case-1:t[a]=''+l+"";break;case 0:t[a]=""+l+""}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(i(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,s),a)));var l,c,u=1<=p;v--){var y=r[e.charAt(v-1)];if(g[v]=0===h?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(f[v+1]|f[v])<<1|1|f[v+1],g[v]&u){var b=i(h,v-1);if(b<=a){if(a=b,!((s=v-1)>n))break;p=Math.max(1,2*n-s)}}}if(i(h+1,n)>a)break;f=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)i=e,o=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)o=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");o=e,i=r}if(0===i.length)return[];for(var a=[],s=new n.patch_obj,l=0,c=0,u=0,f=o,d=o,h=0;h=2*this.Patch_Margin&&l&&(this.patch_addContext_(s,f),a.push(s),s=new n.patch_obj,l=0,f=d,c=u)}1!==p&&(c+=m.length),-1!==p&&(u+=m.length)}return l&&(this.patch_addContext_(s,f),a.push(s)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,c,l),-1==a)o[i]=!1,r-=e[i].length2-e[i].length1;else if(o[i]=!0,r=a-l,c==(s=-1==u?t.substring(a,a+c.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+c.length);else{var f=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,h=0,p=0;pa[0][1].length){var s=t-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,r)),i.length1+=t,i.length2+=t;else if(t>a[a.length-1][1].length){s=t-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,s),i.length1+=s,i.length2+=s}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(l.length1+=f.length,i+=f.length,c=!1,l.diffs.push(new n.Diff(u,f)),o.diffs.shift()):(f=f.substring(0,t-l.length1-this.Patch_Margin),l.length1+=f.length,i+=f.length,0===u?(l.length2+=f.length,a+=f.length):c=!1,l.diffs.push(new n.Diff(u,f)),f==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(f.length))}s=(s=this.diff_text2(l.diffs)).substring(s.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(l.length1+=d.length,l.length2+=d.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=d:l.diffs.push(new n.Diff(0,d))),c||e.splice(++r,0,l)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};r.inherits(s,o),t.ShHighlightRules=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,n,r){var o,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(o=i.match(this.foldingStartMarker)){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(o=i.match(this.foldingStopMarker))){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),i=t,a=n.length,s=t+=1,l=e.getLength();++tc)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=i)break;if(u.isMultiLine())t=u.end.row;else if(r==c)break}s=t}}return new o(i,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),i=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++na)return new o(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,i=e("./sh_highlight_rules").ShHighlightRules,a=e("../range").Range,s=e("./folding/cstyle").FoldMode,l=e("./behaviour/cstyle").CstyleBehaviour,c=function(){this.HighlightRules=i,this.foldingRules=new s,this.$behaviour=new l};r.inherits(c,o),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return r;"start"==e&&(t.match(/^.*[\{\(\[:]\s*$/)&&(r+=n));return r};var e={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(t,n,r){if("\r\n"!==r&&"\r"!==r&&"\n"!==r)return!1;var o=this.getTokenizer().getLineTokens(n.trim(),t).tokens;if(!o)return!1;do{var i=o.pop()}while(i&&("comment"==i.type||"text"==i.type&&i.value.match(/^\s+$/)));return!!i&&("keyword"==i.type&&e[i.value])},this.autoOutdent=function(e,t,n){n+=1;var r=this.$getIndent(t.getLine(n)),o=t.getTabString();r.slice(-o.length)==o&&t.remove(new a(n,r.length-o.length,n,r.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(c.prototype),t.Mode=c})),ace.require(["ace/mode/sh"],(function(t){e&&(e.exports=t)}))}).call(this,n(92)(e))},function(e,t,n){(function(e){ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.require(["ace/theme/monokai"],(function(t){e&&(e.exports=t)}))}).call(this,n(92)(e))},function(e,t,n){"use strict";n(37),n(398)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"comparisonOptions",(function(){return xr})),n.d(r,"graphPropTypes",(function(){return Pr})),n.d(r,"graphDefaultConfig",(function(){return _r})),n.d(r,"hexPalette",(function(){return Ar})),n.d(r,"chart",(function(){return Tr})),n.d(r,"time",(function(){return Mr})),n.d(r,"aggrOptions",(function(){return Rr})),n.d(r,"timeFormatMap",(function(){return Dr})),n.d(r,"countersMaxLength",(function(){return Nr})),n.d(r,"counterListPropType",(function(){return jr}));var o={};n.r(o),n.d(o,"normalizeEndpointCounters",(function(){return Ir})),n.d(o,"processResData",(function(){return Vr})),n.d(o,"normalizeSeries",(function(){return Br})),n.d(o,"getTooltipsContent",(function(){return Kr})),n.d(o,"getTimeLabelVal",(function(){return Ur})),n.d(o,"unionTag",(function(){return Gr})),n.d(o,"getDTagV",(function(){return Yr})),n.d(o,"hasDtag",(function(){return Xr})),n.d(o,"sortTagkvs",(function(){return Qr})),n.d(o,"isEqualBy",(function(){return eo})),n.d(o,"getYAxis",(function(){return to}));var i={};n.r(i),n.d(i,"fetchEndPoints",(function(){return oo})),n.d(i,"fetchMetrics",(function(){return io})),n.d(i,"fetchTagkv",(function(){return ao})),n.d(i,"fetchCounter",(function(){return so})),n.d(i,"normalizeMetrics",(function(){return lo})),n.d(i,"fetchCounterList",(function(){return uo})),n.d(i,"fetchHistory",(function(){return ho})),n.d(i,"getHistory",(function(){return po}));var a,s=n(0),l=n.n(s),c=n(28),u=n.n(c),f=(n(147),n(44)),d=n.n(f),h=n(116),p=n.n(h),m=n(25),g=n(202),v=n(101),y=n.n(v),b=n(120),w=n.n(b),E=n(142),C=n.n(E);function k(e){return e.type===a.literal}function O(e){return e.type===a.argument}function S(e){return e.type===a.number}function x(e){return e.type===a.date}function P(e){return e.type===a.time}function _(e){return e.type===a.select}function A(e){return e.type===a.plural}function T(e){return e.type===a.pound}function M(e){return e.type===a.tag}function R(e){return!(!e||"object"!=typeof e||0!==e.type)}function D(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(a||(a={}));var N,j=(N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){for(t=1,n=1;t",!1),f=Ce(">",!1),d=function(e){return Xe.pop(),!0},h=Ce("ge&&(ge=he,ve=[]),ve.push(e))}function _e(e,t,n){return new $($.buildMessage(e,t),e,t,n)}function Ae(){return Te()}function Te(){var e,t;for(e=[],t=Me();t!==r;)e.push(t),t=Me();return e}function Me(){var t;return(t=function(){var e,t;e=he,(t=Re())!==r&&(pe=e,n=t,t=L({type:a.literal,value:n},et()));var n;return e=t}())===r&&(t=function(){var t,n,o,i;ye++,t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));n!==r&&We()!==r&&(o=Ge())!==r&&We()!==r?(125===e.charCodeAt(he)?(i="}",he++):(i=r,0===ye&&Pe(g)),i!==r?(pe=t,s=o,n=L({type:a.argument,value:s},et()),t=n):(he=t,t=r)):(he=t,t=r);var s;ye--,t===r&&(n=r,0===ye&&Pe(p));return t}())===r&&(t=function(){var t;(t=function(){var t,n,o,i,a,s,l,c,u;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));n!==r&&We()!==r&&(o=Ge())!==r&&We()!==r?(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r&&We()!==r?("number"===e.substr(he,6)?(a="number",he+=6):(a=r,0===ye&&Pe(P)),a!==r&&We()!==r?(s=he,44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r&&(c=We())!==r&&(u=function(){var t,n,o;t=he,"::"===e.substr(he,2)?(n="::",he+=2):(n=r,0===ye&&Pe(O));n!==r&&(o=function(){var e,t,n;if(e=he,t=[],(n=je())!==r)for(;n!==r;)t.push(n),n=je();else t=r;t!==r&&(pe=e,t=L({type:0,tokens:t},et()));return e=t}())!==r?(pe=t,t=n=o):(he=t,t=r);t===r&&(t=he,pe=he,Xe.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(o=Re())!==r?(pe=t,n=S(o),t=n):(he=t,t=r));return t}())!==r?s=l=[l,c,u]:(he=s,s=r),s===r&&(s=null),s!==r&&(l=We())!==r?(125===e.charCodeAt(he)?(c="}",he++):(c=r,0===ye&&Pe(g)),c!==r?(pe=t,n=_(o,a,s),t=n):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}())===r&&(t=function(){var t,n,o,i,a,s,l,c,u;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));n!==r&&We()!==r&&(o=Ge())!==r&&We()!==r?(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r&&We()!==r?("date"===e.substr(he,4)?(a="date",he+=4):(a=r,0===ye&&Pe(F)),a===r&&("time"===e.substr(he,4)?(a="time",he+=4):(a=r,0===ye&&Pe(I))),a!==r&&We()!==r?(s=he,44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r&&(c=We())!==r&&(u=function(){var t,n,o;t=he,"::"===e.substr(he,2)?(n="::",he+=2):(n=r,0===ye&&Pe(O));n!==r&&(o=function(){var t,n,o,i;t=he,n=he,o=[],(i=Le())===r&&(i=$e());if(i!==r)for(;i!==r;)o.push(i),(i=Le())===r&&(i=$e());else o=r;n=o!==r?e.substring(n,he):o;n!==r&&(pe=t,n=L({type:1,pattern:n},et()));return t=n}())!==r?(pe=t,t=n=o):(he=t,t=r);t===r&&(t=he,pe=he,Xe.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(o=Re())!==r?(pe=t,n=S(o),t=n):(he=t,t=r));return t}())!==r?s=l=[l,c,u]:(he=s,s=r),s===r&&(s=null),s!==r&&(l=We())!==r?(125===e.charCodeAt(he)?(c="}",he++):(c=r,0===ye&&Pe(g)),c!==r?(pe=t,n=_(o,a,s),t=n):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,s,l,c,u,f,d,h;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));if(n!==r)if(We()!==r)if((o=Ge())!==r)if(We()!==r)if(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r)if(We()!==r)if("plural"===e.substr(he,6)?(s="plural",he+=6):(s=r,0===ye&&Pe(V)),s===r&&("selectordinal"===e.substr(he,13)?(s="selectordinal",he+=13):(s=r,0===ye&&Pe(B))),s!==r)if(We()!==r)if(44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r)if(We()!==r)if(c=he,"offset:"===e.substr(he,7)?(u="offset:",he+=7):(u=r,0===ye&&Pe(W)),u!==r&&(f=We())!==r&&(d=He())!==r?c=u=[u,f,d]:(he=c,c=r),c===r&&(c=null),c!==r)if((u=We())!==r){if(f=[],(d=Ie())!==r)for(;d!==r;)f.push(d),d=Ie();else f=r;f!==r&&(d=We())!==r?(125===e.charCodeAt(he)?(h="}",he++):(h=r,0===ye&&Pe(g)),h!==r?(pe=t,n=function(e,t,n,r){return L({type:a.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Ee('Duplicate option "'+n+'" in plural element: "'+be()+'"',we()),e[n]={value:r,location:o},e}),{})},et())}(o,s,c,f),t=n):(he=t,t=r)):(he=t,t=r)}else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,s,l,c,u,f;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));if(n!==r)if(We()!==r)if((o=Ge())!==r)if(We()!==r)if(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r)if(We()!==r)if("select"===e.substr(he,6)?(s="select",he+=6):(s=r,0===ye&&Pe(H)),s!==r)if(We()!==r)if(44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r)if(We()!==r){if(c=[],(u=Fe())!==r)for(;u!==r;)c.push(u),u=Fe();else c=r;c!==r&&(u=We())!==r?(125===e.charCodeAt(he)?(f="}",he++):(f=r,0===ye&&Pe(g)),f!==r?(pe=t,n=function(e,t){return L({type:a.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Ee('Duplicate option "'+n+'" in select element: "'+be()+'"',we()),e[n]={value:r,location:o},e}),{})},et())}(o,c),t=n):(he=t,t=r)):(he=t,t=r)}else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,s,p;ye++,t=he,n=he,60===e.charCodeAt(he)?(o="<",he++):(o=r,0===ye&&Pe(c));o!==r&&(i=qe())!==r&&(s=We())!==r?("/>"===e.substr(he,2)?(p="/>",he+=2):(p=r,0===ye&&Pe(u)),p!==r?n=o=[o,i,s,p]:(he=n,n=r)):(he=n,n=r);n!==r&&(pe=t,m=n,n=L({type:a.literal,value:m.join("")},et()));var m;(t=n)===r&&(t=he,(n=function(){var t,n,o,i;t=he,60===e.charCodeAt(he)?(n="<",he++):(n=r,0===ye&&Pe(c));n!==r?(pe=he,Xe.push("openingTag"),(!0?void 0:r)!==r&&(o=qe())!==r?(62===e.charCodeAt(he)?(i=">",he++):(i=r,0===ye&&Pe(f)),i!==r?(pe=he,(d()?void 0:r)!==r?(pe=t,t=n=o):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}())!==r&&(o=Te())!==r&&(i=function(){var t,n,o,i;t=he,"",he++):(i=r,0===ye&&Pe(f)),i!==r?(pe=he,(d()?void 0:r)!==r?(pe=t,t=n=o):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}())!==r?(pe=t,v=o,(g=n)!==(y=i)&&Ee('Mismatch tag "'+g+'" !== "'+y+'"',we()),n=L({type:a.tag,value:g,children:v},et()),t=n):(he=t,t=r));var g,v,y;ye--,t===r&&(n=r,0===ye&&Pe(l));return t}())===r&&(t=function(){var t,n;t=he,35===e.charCodeAt(he)?(n="#",he++):(n=r,0===ye&&Pe(s));n!==r&&(pe=t,n=L({type:a.pound},et()));return t=n}()),t}function Re(){var e,t,n;if(e=he,t=[],(n=ze())===r&&(n=Ke())===r&&(n=Ue()),n!==r)for(;n!==r;)t.push(n),(n=ze())===r&&(n=Ke())===r&&(n=Ue());else t=r;return t!==r&&(pe=e,t=t.join("")),e=t}function De(){var t,n,o,i,a;if(ye++,t=he,n=[],o=he,i=he,ye++,(a=Ve())===r&&(y.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(b))),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r),o!==r)for(;o!==r;)n.push(o),o=he,i=he,ye++,(a=Ve())===r&&(y.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(b))),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r);else n=r;return t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(v)),t}function Ne(){var t,n,o;return ye++,t=he,47===e.charCodeAt(he)?(n="/",he++):(n=r,0===ye&&Pe(C)),n!==r&&(o=De())!==r?(pe=t,t=n=o):(he=t,t=r),ye--,t===r&&(n=r,0===ye&&Pe(E)),t}function je(){var e,t,n,o;if(ye++,e=he,We()!==r)if((t=De())!==r){for(n=[],o=Ne();o!==r;)n.push(o),o=Ne();n!==r?(pe=e,e=function(e,t){return{stem:e,options:t}}(t,n)):(he=e,e=r)}else he=e,e=r;else he=e,e=r;return ye--,e===r&&(r,0===ye&&Pe(k)),e}function Le(){var t,n,o,i;if(t=he,39===e.charCodeAt(he)?(n="'",he++):(n=r,0===ye&&Pe(A)),n!==r){if(o=[],(i=ze())===r&&(T.test(e.charAt(he))?(i=e.charAt(he),he++):(i=r,0===ye&&Pe(M))),i!==r)for(;i!==r;)o.push(i),(i=ze())===r&&(T.test(e.charAt(he))?(i=e.charAt(he),he++):(i=r,0===ye&&Pe(M)));else o=r;o!==r?(39===e.charCodeAt(he)?(i="'",he++):(i=r,0===ye&&Pe(A)),i!==r?t=n=[n,o,i]:(he=t,t=r)):(he=t,t=r)}else he=t,t=r;if(t===r)if(t=[],(n=ze())===r&&(R.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(D))),n!==r)for(;n!==r;)t.push(n),(n=ze())===r&&(R.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(D)));else t=r;return t}function $e(){var t,n;if(t=[],N.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(j)),n!==r)for(;n!==r;)t.push(n),N.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(j));else t=r;return t}function Fe(){var t,n,o,i,a,s,l;return t=he,We()!==r&&(n=Je())!==r&&We()!==r?(123===e.charCodeAt(he)?(o="{",he++):(o=r,0===ye&&Pe(m)),o!==r?(pe=he,Xe.push("select"),(!0?void 0:r)!==r&&(i=Te())!==r?(125===e.charCodeAt(he)?(a="}",he++):(a=r,0===ye&&Pe(g)),a!==r?(pe=t,s=n,l=i,Xe.pop(),t=L({id:s,value:l},et())):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r),t}function Ie(){var t,n,o,i,a,s,l;return t=he,We()!==r&&(n=function(){var t,n,o,i;return t=he,n=he,61===e.charCodeAt(he)?(o="=",he++):(o=r,0===ye&&Pe(z)),o!==r&&(i=He())!==r?n=o=[o,i]:(he=n,n=r),(t=n!==r?e.substring(t,he):n)===r&&(t=Je()),t}())!==r&&We()!==r?(123===e.charCodeAt(he)?(o="{",he++):(o=r,0===ye&&Pe(m)),o!==r?(pe=he,Xe.push("plural"),(!0?void 0:r)!==r&&(i=Te())!==r?(125===e.charCodeAt(he)?(a="}",he++):(a=r,0===ye&&Pe(g)),a!==r?(pe=t,s=n,l=i,Xe.pop(),t=L({id:s,value:l},et())):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r),t}function Ve(){var t;return ye++,U.test(e.charAt(he))?(t=e.charAt(he),he++):(t=r,0===ye&&Pe(G)),ye--,t===r&&(r,0===ye&&Pe(K)),t}function Be(){var t;return ye++,Y.test(e.charAt(he))?(t=e.charAt(he),he++):(t=r,0===ye&&Pe(J)),ye--,t===r&&(r,0===ye&&Pe(q)),t}function We(){var t,n,o;for(ye++,t=he,n=[],o=Ve();o!==r;)n.push(o),o=Ve();return t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(X)),t}function He(){var t,n,o,i,a;return ye++,t=he,45===e.charCodeAt(he)?(n="-",he++):(n=r,0===ye&&Pe(Q)),n===r&&(n=null),n!==r&&(o=Ye())!==r?(pe=t,i=n,t=n=(a=o)?i?-a:a:0):(he=t,t=r),ye--,t===r&&(n=r,0===ye&&Pe(Z)),t}function ze(){var t,n;return ye++,t=he,"''"===e.substr(he,2)?(n="''",he+=2):(n=r,0===ye&&Pe(te)),n!==r&&(pe=t,n="'"),ye--,(t=n)===r&&(n=r,0===ye&&Pe(ee)),t}function Ke(){var t,n,o,i,a,s;if(t=he,39===e.charCodeAt(he)?(n="'",he++):(n=r,0===ye&&Pe(A)),n!==r)if((o=function(){var t,n,o,i;t=he,n=he,e.length>he?(o=e.charAt(he),he++):(o=r,0===ye&&Pe(w));o!==r?(pe=he,(i=(i="<"===(a=o)||">"===a||"{"===a||"}"===a||Qe()&&"#"===a)?void 0:r)!==r?n=o=[o,i]:(he=n,n=r)):(he=n,n=r);var a;t=n!==r?e.substring(t,he):n;return t}())!==r){for(i=he,a=[],"''"===e.substr(he,2)?(s="''",he+=2):(s=r,0===ye&&Pe(te)),s===r&&(T.test(e.charAt(he))?(s=e.charAt(he),he++):(s=r,0===ye&&Pe(M)));s!==r;)a.push(s),"''"===e.substr(he,2)?(s="''",he+=2):(s=r,0===ye&&Pe(te)),s===r&&(T.test(e.charAt(he))?(s=e.charAt(he),he++):(s=r,0===ye&&Pe(M)));(i=a!==r?e.substring(i,he):a)!==r?(39===e.charCodeAt(he)?(a="'",he++):(a=r,0===ye&&Pe(A)),a===r&&(a=null),a!==r?(pe=t,t=n=o+i.replace("''","'")):(he=t,t=r)):(he=t,t=r)}else he=t,t=r;else he=t,t=r;return t}function Ue(){var t,n,o,i,a;return t=he,n=he,e.length>he?(o=e.charAt(he),he++):(o=r,0===ye&&Pe(w)),o!==r?(pe=he,(i=(i=!("<"===(a=o)||"{"===a||Qe()&&"#"===a||Ze()&&"}"===a||Ze()&&">"===a))?void 0:r)!==r?n=o=[o,i]:(he=n,n=r)):(he=n,n=r),n===r&&(10===e.charCodeAt(he)?(n="\n",he++):(n=r,0===ye&&Pe(ne))),t=n!==r?e.substring(t,he):n}function Ge(){var t,n;return ye++,t=he,(n=Ye())===r&&(n=Je()),t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(re)),t}function qe(){var t,n;return ye++,t=he,(n=Ye())===r&&(n=function(){var t,n,o,i,a;ye++,t=he,n=[],45===e.charCodeAt(he)?(o="-",he++):(o=r,0===ye&&Pe(Q));o===r&&(o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r));if(o!==r)for(;o!==r;)n.push(o),45===e.charCodeAt(he)?(o="-",he++):(o=r,0===ye&&Pe(Q)),o===r&&(o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r));else n=r;t=n!==r?e.substring(t,he):n;ye--,t===r&&(n=r,0===ye&&Pe(de));return t}()),t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(oe)),t}function Ye(){var t,n,o,i,a;if(ye++,t=he,48===e.charCodeAt(he)?(n="0",he++):(n=r,0===ye&&Pe(ae)),n!==r&&(pe=t,n=0),(t=n)===r){if(t=he,n=he,se.test(e.charAt(he))?(o=e.charAt(he),he++):(o=r,0===ye&&Pe(le)),o!==r){for(i=[],ce.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(ue));a!==r;)i.push(a),ce.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(ue));i!==r?n=o=[o,i]:(he=n,n=r)}else he=n,n=r;n!==r&&(pe=t,n=parseInt(n.join(""),10)),t=n}return ye--,t===r&&(n=r,0===ye&&Pe(ie)),t}function Je(){var t,n,o,i,a;if(ye++,t=he,n=[],o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r),o!==r)for(;o!==r;)n.push(o),o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r);else n=r;return t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(fe)),t}var Xe=["root"];function Ze(){return Xe.length>1}function Qe(){return"plural"===Xe[Xe.length-1]}function et(){return t&&t.captureLocation?{location:we()}:{}}if((n=i())!==r&&he===e.length)return n;throw n!==r&&he1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(q,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=K(K({},t),J(o.options[0])))}else if(Y.test(o.stem))t=K(K({},t),J(o.stem));else{var i=X(o.stem);i&&(t=K(K({},t),i))}}return t}var ee,te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ee||(ee={}));var ne,re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.code=n,r}return te(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),oe=function(e){function t(t,n,r){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE")||this}return te(t,e),t}(re),ie=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',"MISSING_VALUE")||this}return te(t,e),t}(re);function ae(e){return"function"==typeof e}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ne||(ne={}));var se=function(){return(se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n(r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t),{})}function pe(e){fe(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}const me={formats:{},messages:{},timeZone:void 0,textComponent:s.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function ge(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}){const t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:z(Intl.DateTimeFormat,e.dateTime),getNumberFormat:z(Intl.NumberFormat,e.number),getMessageFormat:z(ue,e.message),getRelativeTimeFormat:z(t,e.relativeTime),getPluralRules:z(Intl.PluralRules,e.pluralRules),getListFormat:z(n,e.list),getDisplayNames:z(r,e.displayNames)}}function ve(e,t,n,r){const o=e&&e[t];let i;if(o&&(i=o[n]),i)return i;r(new de("UNSUPPORTED_FORMATTER",`No ${t} format named: ${n}`))}const ye=C.a||E;const be=s.createContext(null),{Consumer:we,Provider:Ee}=be,Ce=Ee,ke=be;function Oe(e,t){const{intlPropName:n="intl",forwardRef:r=!1,enforceContext:o=!0}=t||{},i=t=>s.createElement(we,null,i=>(o&&pe(i),s.createElement(e,Object.assign({},t,{[n]:i},{ref:r?t.forwardedRef:null}))));var a;return i.displayName=`injectIntl(${a=e,a.displayName||a.name||"Component"})`,i.WrappedComponent=e,ye(r?s.forwardRef((e,t)=>s.createElement(i,Object.assign({},e,{forwardedRef:t}))):i,e)}const Se=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function xe({locale:e,formats:t,onError:n},r,o={}){const{format:i}=o,a=i&&ve(t,"number",i,n)||{};return r(e,he(o,Se,a))}function Pe(e,t,n,r={}){try{return xe(e,t,r).format(n)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting number.",t))}return String(n)}function _e(e,t,n,r={}){try{return xe(e,t,r).formatToParts(n)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting number.",t))}return[]}const Ae=["numeric","style"];function Te(e,t,n,r,o={}){r||(r="second");Intl.RelativeTimeFormat||e.onError(new re('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function({locale:e,formats:t,onError:n},r,o={}){const{format:i}=o,a=!!i&&ve(t,"relative",i,n)||{};return r(e,he(o,Ae,a))}(e,t,o).format(n,r)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting relative time.",t))}return String(n)}const Me=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Re({locale:e,formats:t,onError:n,timeZone:r},o,i,a={}){const{format:s}=a,l=Object.assign(Object.assign({},r&&{timeZone:r}),s&&ve(t,o,s,n));let c=he(a,Me,l);return"time"!==o||c.hour||c.minute||c.second||(c=Object.assign(Object.assign({},c),{hour:"numeric",minute:"numeric"})),i(e,c)}function De(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Re(e,"date",t,r).format(o)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting date.",t))}return String(o)}function Ne(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Re(e,"time",t,r).format(o)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting time.",t))}return String(o)}function je(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Re(e,"date",t,r).formatToParts(o)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting date.",t))}return[]}function Le(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Re(e,"time",t,r).formatToParts(o)}catch(t){e.onError(new de("FORMAT_ERROR","Error formatting time.",t))}return[]}const $e=["localeMatcher","type"];function Fe({locale:e,onError:t},n,r,o={}){Intl.PluralRules||t(new re('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));const i=he(o,$e);try{return n(e,i).select(r)}catch(e){t(new de("FORMAT_ERROR","Error formatting plural.",e))}return"other"}function Ie(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Object.assign({timeZone:t},e[r]),n),{})}function Ve(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((n,r)=>(n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n),{})}function Be(e,t){if(!t)return e;const n=ue.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:Ve(Ie(n.date,t),Ie(e.date||{},t)),time:Ve(Ie(n.time,t),Ie(e.time||{},t))})}function We({locale:e,formats:t,messages:n,defaultLocale:r,defaultFormats:o,onError:i,timeZone:a,wrapRichTextChunksInFragment:l},c,u={id:""},f={}){const{id:d,defaultMessage:h}=u;fe(!!d,"[React Intl] An `id` must be provided to format a message.");const p=n&&n[String(d)];t=Be(t,a),o=Be(o,a);let m="";if(p)try{m=c.getMessageFormat(p,e,t,{formatters:c}).format(f)}catch(t){i(new de("FORMAT_ERROR",`Error formatting message: "${d}" for locale: "${e}"`+(h?", using default message as fallback.":""),t))}else(!h||e&&e.toLowerCase()!==r.toLowerCase())&&i(new de("MISSING_TRANSLATION",`Missing message: "${d}" for locale: "${e}"`+(h?", using default message as fallback.":"")));if(!m&&h)try{m=c.getMessageFormat(h,r,o).format(f)}catch(e){i(new de("FORMAT_ERROR",`Error formatting the default message for: "${d}"`,e))}return m?Array.isArray(m)&&l?(g=m,s.createElement(s.Fragment,null,...g)):m:(i(new de("FORMAT_ERROR",`Cannot format message: "${d}", using message ${p||h?"source":"id"} as fallback.`)),"string"==typeof p?p||h||String(d):h||String(d));var g}var He=n(100),ze=n.n(He);const Ke=["localeMatcher","type","style"],Ue=Date.now();function Ge({locale:e,onError:t},n,r,o={}){Intl.ListFormat||t(new re('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));const i=he(o,Ke);try{const t={},o=r.map((e,n)=>{if("object"==typeof e){const r=function(e){return`${Ue}_${e}_${Ue}`}(n);return t[r]=e,r}return String(e)});if(!Object.keys(t).length)return n(e,i).format(o);return n(e,i).formatToParts(o).reduce((e,n)=>{const r=n.value;return t[r]?e.push(t[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[])}catch(e){t(new de("FORMAT_ERROR","Error formatting list.",e))}return r}const qe=["localeMatcher","style","type","fallback"];function Ye({locale:e,onError:t},n,r,o={}){Intl.DisplayNames||t(new re('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));const i=he(o,qe);try{return n(e,i).of(r)}catch(e){t(new de("FORMAT_ERROR","Error formatting display name.",e))}}const Je=ze.a||He;function Xe(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function Ze(e,t){const n=ge(t),r=Object.assign(Object.assign({},me),e),{locale:o,defaultLocale:i,onError:a}=r;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new de("MISSING_DATA",`Missing locale data for locale: "${o}" in Intl.NumberFormat. Using default locale: "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new de("MISSING_DATA",`Missing locale data for locale: "${o}" in Intl.DateTimeFormat. Using default locale: "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):(a&&a(new de("INVALID_CONFIG",`"locale" was not configured, using "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details`)),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:Pe.bind(null,r,n.getNumberFormat),formatNumberToParts:_e.bind(null,r,n.getNumberFormat),formatRelativeTime:Te.bind(null,r,n.getRelativeTimeFormat),formatDate:De.bind(null,r,n.getDateTimeFormat),formatDateToParts:je.bind(null,r,n.getDateTimeFormat),formatTime:Ne.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Le.bind(null,r,n.getDateTimeFormat),formatPlural:Fe.bind(null,r,n.getPluralRules),formatMessage:We.bind(null,r,n),formatList:Ge.bind(null,r,n.getListFormat),formatDisplayName:Ye.bind(null,r,n.getDisplayNames)})}class Qe extends s.PureComponent{constructor(){super(...arguments),this.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},this.state={cache:this.cache,intl:Ze(Xe(this.props),this.cache),prevConfig:Xe(this.props)}}static getDerivedStateFromProps(e,{prevConfig:t,cache:n}){const r=Xe(e);return Je(t,r)?null:{intl:Ze(r,n),prevConfig:r}}render(){return pe(this.state.intl),s.createElement(Ce,{value:this.state.intl},this.props.children)}}Qe.displayName="IntlProvider",Qe.defaultProps=me;var et=n(2),tt=n.n(et),nt=(n(35),n(12)),rt=n.n(nt),ot="nightingale",it="根",at=["10","30","50","100","300","500","1000"];function st(e){var t=e.history,n="".concat(ot,"-exception");return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"".concat(n,"-main")},l.a.createElement("div",{className:"".concat(n,"-title")},"403"),l.a.createElement("div",{className:"".concat(n,"-content mb10")},"抱歉,你无权访问该页面"),l.a.createElement(rt.a,{icon:"arrow-left",type:"primary",onClick:function(){t.push({pathname:"/"})}},"返回首页")))}function lt(e){var t=e.history,n="".concat(ot,"-exception");return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"".concat(n,"-main")},l.a.createElement("div",{className:"".concat(n,"-title")},"404"),l.a.createElement("div",{className:"".concat(n,"-content mb10")},"抱歉,你访问的页面不存在"),l.a.createElement(rt.a,{icon:"arrow-left",type:"primary",onClick:function(){t.push({pathname:"/"})}},"返回首页")))}n(209);var ct=n(14),ut=n.n(ct),ft=n(26),dt=n.n(ft),ht=n(11),pt=n.n(ht);function mt(e){return"".concat("/api/portal").concat(e)}var gt={login:mt("/auth/login"),logout:mt("/auth/logout"),selftProfile:mt("/self/profile"),selftPassword:mt("/self/password"),selftToken:mt("/self/token"),user:mt("/user"),users:mt("/users"),team:mt("/team"),tree:mt("/tree"),treeSearch:mt("/tree/search"),node:mt("/node"),maskconf:mt("/maskconf"),stra:mt("/stra"),event:mt("/event"),screen:mt("/screen"),subclass:mt("/subclass"),chart:mt("/chart"),collect:mt("/collect"),endpoint:mt("/endpoint"),tmpchart:mt("/tmpchart"),graphIndex:"/api/index",graphTransfer:"/api/transfer"},vt=n(135),yt=n.n(vt),bt=(n(48),n(20)),wt=n.n(bt),Et=(n(212),n(192)),Ct=n.n(Et),kt=n(4),Ot=n.n(kt),St=n(5),xt=n.n(St),Pt=n(6),_t=n.n(Pt),At=n(7),Tt=n.n(At),Mt=n(3),Rt=n.n(Mt),Dt=n(191);n(215);function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t2&&void 0!==a[2])||a[2],e.next=3,fetch(t,jt(jt({headers:{"content-type":"application/json"}},n),{},{signal:$t}));case 3:if(!((o=e.sent).status<200||o.status>=300)){e.next=8;break}throw It(o.statusText),new Error(o.statusText);case 8:return e.next=10,o.json();case 10:if(i=e.sent,"object"!==yt()(i)||""===i.err){e.next=20;break}if("unauthorized"!==i.err){e.next=17;break}throw window.location.href="/#/login","unauthorized";case 17:throw r&&It(i.err),new Error(i.err);case 20:return e.abrupt("return",i.dat);case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t-1?window.location.href="".concat(e.callback,"&sig=").concat(e.sig):window.location.href="".concat(e.callback,"?sig=").concat(e.sig):tt.a.findKey(t,"from")?r.push(t.from):r.push({pathname:"/"})}))}))},e}return xt()(n,[{key:"render",value:function(){var e="".concat(ot,"-login"),t=this.props.history,n=this.props.form.getFieldDecorator,r=Gt.getIsAuthenticated(),o=this.props.intl.formatMessage;return r?(t.push({pathname:"/"}),null):l.a.createElement("div",{className:e},l.a.createElement("div",{className:"".concat(e,"-main")},l.a.createElement(Yt.a,null,l.a.createElement("div",{className:"".concat(e,"-title")},o({id:"login.title"})),l.a.createElement(tn.a,{onSubmit:this.handleSubmit},l.a.createElement(sn,null,n("username",{rules:[{required:!0}]})(l.a.createElement(Qt.a,{prefix:l.a.createElement(wt.a,{type:"user",style:{color:"rgba(0,0,0,.25)"}}),placeholder:o({id:"user.username"})}))),l.a.createElement(sn,null,n("password",{rules:[{required:!0}]})(l.a.createElement(Qt.a,{prefix:l.a.createElement(wt.a,{type:"lock",style:{color:"rgba(0,0,0,.25)"}}),type:"password",placeholder:o({id:"user.password"})}))),l.a.createElement(sn,null,n("is_ldap",{valuePropName:"checked",initialValue:!1})(l.a.createElement(Xt.a,null,o({id:"login.ldap"}))),l.a.createElement(rt.a,{type:"primary",htmlType:"submit",className:"".concat(e,"-submitBtn")},o({id:"form.login"})))))))}}]),n}(s.Component),cn=Oe(tn.a.create()(ln)),un=n(15),fn=n.n(un),dn=n(117),hn=n.n(dn);function pn(e){var t=e.component,n=e.rootVisible,r=void 0!==n&&n,o=hn()(e,["component","rootVisible"]),i=Gt.getSelftProfile().isroot,a=Gt.getIsAuthenticated();return l.a.createElement(m.Route,fn()({},o,{render:function(e){return a?r&&!i?l.a.createElement(m.Redirect,{to:{pathname:"/403"}}):l.a.createElement(t,e):l.a.createElement(m.Redirect,{to:{pathname:"/login",state:{from:e.location}}})}}))}n(36);var mn=n(13),gn=n.n(mn),vn=(n(128),n(95)),yn=n.n(vn);var bn=tn.a.Item,wn=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){return Ot()(this,n),t.apply(this,arguments)}return xt()(n,[{key:"validateFields",value:function(){return this.props.form.validateFields}},{key:"renderLabel",value:function(e){return"register"===this.props.type?"":e}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.isrootVsible,r=e.initialValue,o=this.props.form.getFieldDecorator,i=this.props.intl.formatMessage;return l.a.createElement(tn.a,{layout:"vertical"},"post"===t||"register"===t?l.a.createElement(s.Fragment,null,l.a.createElement(bn,{label:this.renderLabel(i({id:"user.username"})),required:!0},o("username",{rules:[{required:!0}]})(l.a.createElement(Qt.a,{placeholder:i({id:"user.username"})}))),l.a.createElement(bn,{label:this.renderLabel(i({id:"user.password"})),required:!0},o("password",{rules:[{required:!0}]})(l.a.createElement(Qt.a,{type:"password",placeholder:i({id:"user.password"})})))):null,l.a.createElement(bn,{label:this.renderLabel(i({id:"user.dispname"})),required:!0},o("dispname",{initialValue:r.dispname,rules:[{required:!0}]})(l.a.createElement(Qt.a,{placeholder:i({id:"user.dispname"})}))),l.a.createElement(bn,{label:this.renderLabel(i({id:"user.phone"}))},o("phone",{initialValue:r.phone})(l.a.createElement(Qt.a,{placeholder:i({id:"user.phone"}),style:{width:"100%"}}))),l.a.createElement(bn,{label:this.renderLabel(i({id:"user.email"}))},o("email",{initialValue:r.email})(l.a.createElement(Qt.a,{placeholder:i({id:"user.email"})}))),l.a.createElement(bn,{label:this.renderLabel("im")},o("im",{initialValue:r.im})(l.a.createElement(Qt.a,{placeholder:"im"}))),n?l.a.createElement(bn,{label:this.renderLabel(i({id:"user.isroot"}))},o("is_root",{valuePropName:"checked",initialValue:1===r.is_root})(l.a.createElement(yn.a,{checkedChildren:l.a.createElement(wt.a,{type:"check"}),unCheckedChildren:l.a.createElement(wt.a,{type:"close"})}))):null)}}]),n}(s.Component);wn.defaultProps={type:"post",isrootVsible:!1,initialValue:{}};var En=tn.a.create()(Oe(wn));function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t{this.props.defaultMessage||pe(e);const{formatMessage:t=mr,textComponent:n=s.Fragment}=e||{},{id:r,description:o,defaultMessage:i,values:a,children:l,tagName:c=n}=this.props;let u=t({id:r,description:o,defaultMessage:i},a);return Array.isArray(u)||(u=[u]),"function"==typeof l?l(...u):c?s.createElement(c,null,...u):u})}}gr.displayName="FormattedMessage",gr.defaultProps={values:{}};var vr=gr,yr=n(40),br=n.n(yr),wr=n(9),Er=n.n(wr),Cr=n(193),kr=n.n(Cr),Or=n(97),Sr=(n(315),Er()()),xr=[{label:"1小时",labelEn:"1 hour",value:"3600000"},{label:"2小时",labelEn:"2 hours",value:"7200000"},{label:"1天",labelEn:"1 day",value:"86400000"},{label:"2天",labelEn:"2 days",value:"172800000"},{label:"7天",labelEn:"7 days",value:"604800000"}],Pr={title:Rn.a.string,type:Rn.a.string,now:Rn.a.oneOfType([Rn.a.string,Rn.a.number]),start:Rn.a.oneOfType([Rn.a.string,Rn.a.number]),end:Rn.a.oneOfType([Rn.a.string,Rn.a.number]),comparison:Rn.a.arrayOf(Rn.a.string),comparisonOptions:Rn.a.array,relativeTimeComparison:Rn.a.bool,tag_id:Rn.a.number,fillNull:Rn.a.number,threshold:Rn.a.number,unit:Rn.a.string,yAxisMin:Rn.a.number,yAxisMax:Rn.a.number,outerChain:Rn.a.string,legend:Rn.a.bool,shared:Rn.a.bool,cf:Rn.a.string,timezoneOffset:Rn.a.string,origin:Rn.a.bool,metrics:Rn.a.arrayOf(Rn.a.shape({selectedEndpoint:Rn.a.array,selectedMetric:Rn.a.string,aggrFunc:Rn.a.string,aggrGroup:Rn.a.array,selectedTagkv:Rn.a.array,tagKv:Rn.a.array,counters:Rn.a.array}))},_r={title:"",type:"chart",now:Sr.clone().format("x"),start:Sr.clone().subtract(36e5,"ms").format("x"),end:Sr.clone().format("x"),comparisonOptions:xr,threshold:void 0,legend:!1,shared:!1,metrics:[{selectedEndpoint:[],selectedMetric:"",aggrFunc:void 0,aggrGroup:[],selectedTagkv:[],consolFunc:"AVERAGE"}]},Ar=["#3399CC","#CC9933","#9966CC","#66CC66","#CC3333","#99CCCC","#CCCC66","#CC99CC","#99CC99","#CC6666","#336699","#996633","#993399","#339966","#993333"],Tr={chart:{zoomType:"x",marginRight:10,marginTop:1,marginBottom:30,height:350,animation:!1,ignoreHiddenSeries:!1},time:{},title:{align:"left",x:0,style:{color:"#666",fontSize:12}},credits:{enabled:!1},xAxis:{labels:{enabled:!0,style:{color:"#999",fontSize:11}}},yAxis:{title:{text:""},opposite:!1,gridLineColor:"#f1f1f1",labels:{align:"left",x:0,style:{fontSize:11,color:"#999"}}},scrollbar:{enabled:!1},rangeSelector:{enabled:!1},exporting:{enabled:!1},navigator:{enabled:!1},plotOptions:{series:{animation:!1,turboThreshold:0,dataGrouping:{enabled:!1}}},tooltip:{dateTimeLabelFormats:{millisecond:"%Y-%m-%d %H:%M:%S",second:"%Y-%m-%d %H:%M:%S",minute:"%Y-%m-%d %H:%M:%S",hour:"%Y-%m-%d %H:%M:%S",day:"%Y-%m-%d %H:%M:%S",week:"%Y-%m-%d %H:%M:%S",month:"%Y-%m-%d %H:%M:%S",year:"%Y-%m-%d %H:%M:%S"},animation:!1,valueDecimals:3,backgroundColor:null,borderWidth:0,shadow:!1,useHTML:!0,shared:!1,split:!1},series:[]},Mr=[{label:"1小时",value:"3600000"},{label:"2小时",value:"7140000"},{label:"1天",value:"86400000"},{label:"2天",value:"172800000"},{label:"7天",value:"604800000"},{label:"30天",value:"2592000000"},{label:"其它",value:"custom"}],Rr=[{label:"求和",value:"sum"},{label:"均值",value:"avg"},{label:"最大值",value:"max"},{label:"最小值",value:"min"}],Dr={moment:"YYYY-MM-DD HH:mm:ss",antd:"yyyy-MM-dd HH:mm:ss"},Nr=2e3,jr=Rn.a.arrayOf(Rn.a.shape({ns:Rn.a.string,metric:Rn.a.string,counter:Rn.a.string}));function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t-1&&(l=",".concat(e.counter.substring(e.counter.indexOf("/")+1)));var c="".concat(n).concat(l),u={id:c,name:c,tags:c,data:e.values,lineWidth:2,color:a,oldColor:a,comparison:i};o.push(u)})),o}var Wr=n(194),Hr=n.n(Wr),zr="YYYY-MM-DD HH:mm:ss";function Kr(e){var t=e.chartWidth,n=e.isComparison,r=e.points,o=tt.a.orderBy(r,(function(e){var t=e.series;if(n){var r=(t?t.userOptions:{comparison:0}).comparison;return Number(r)||0}return tt.a.get(t,"userOptions.tags")})),i="";return i+=function(e){var t=e.points,n=Er()(t[0].timestamp).format(zr);return''.concat(n,"
")}(e),tt.a.each(o,(function(t){i+=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.color,r=e.filledNull,o=e.serieOptions,i=void 0===o?{}:o,a=e.timestamp,s=t.comparison,l=t.isComparison,c=i.tags,u=Hr()(e.value).format("0,0[.]000"),f=c;if(f=tt.a.chain(f).replace("<","<").replace(">",">").value(),l){var d=i.comparison&&"number"==typeof i.comparison?Er()(a).subtract(i.comparison,"seconds"):Er()(a),h=tt.a.every(s,(function(e){return tt.a.isInteger(Number(e)/864e5)}));if(h){var p=d.format("YYYY-MM-DD");f="".concat(p)}else{var m=d.format(zr);f="".concat(m," ").concat(f)}}return'\n ').concat(f,":").concat(u).concat(r?"(空值填补,仅限看图使用)":"","
")}(t,e)})),'
').concat(i,"
")}function Ur(e,t,n){var r=Number(t)-Number(e),o=tt.a.find(Mr,{value:tt.a.toString(r)});return o?o[n]:"label"===n?"自定义":"custom"}function Gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];tt.a.each(e,(function(e){var n=e.tagkv,r=void 0===n?[]:n;tt.a.each(r,(function(e){var n=e.tagk,r=e.tagv,o=void 0===r?[]:r,i=tt.a.filter(o,(function(e){return e})),a=tt.a.find(t,{tagk:n});a?a.tagv=tt.a.sortBy(tt.a.union(a.tagv,i)):t.push({tagk:n,tagv:tt.a.sortBy(i)})}))}));var n=tt.a.remove(t,(function(e){return"host"===e.tagk}));return t=tt.a.sortBy(t,"tagk"),n&&n.length&&t.unshift(n[0]),t}function qr(e,t,n){var r=t.replace(e,""),o=new RegExp(r);return tt.a.filter(n,(function(t){return"=all"===e||("=+"===e?o.test(t):"=-"===e&&!o.test(t))}))}function Yr(e,t){var n=t.tagk,r=t.tagv,o=void 0===r?[""]:r,i=(tt.a.find(e,{tagk:n})||{}).tagv||[],a=o,s=o[0]||"";return 0===s.indexOf("=all")?a=tt.a.includes(i,"")?tt.a.filter(i,(function(e){return""!==e})):i:0===s.indexOf("=+")?a=qr("=+",s,i):0===s.indexOf("=-")&&(a=qr("=-",s,i)),a}var Jr=["=all","=+","=-"];function Xr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return tt.a.some(e,(function(e){return tt.a.isObject(e)&&tt.a.isArray(e.tagv)?tt.a.some(e.tagv,(function(e){return!!tt.a.isString(e)&&Zr(e)})):!!tt.a.isString(e)&&Zr(e)}))}function Zr(e){return tt.a.some(Jr,(function(t){return 0===e.indexOf(t)}))}function Qr(e){if(!e)return e;var t=tt.a.noop;try{t=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare}catch(e){console.error(e)}return function(e,t){return tt.a.map(e,(function(e){return e&&e.tagv&&0!==e.tagv.length?(e.tagv=e.tagv.sort((function(e,n){return t(e,n)})),e):e}))}(e,t)}function eo(e,t,n){return tt.a.isEqualWith(e,t,(function(e,t,r){if(void 0!==r)return tt.a.isEqual(e[n],t[n])}))}function to(e,t){var n=t.threshold,r=t.yAxisMin,o=t.yAxisMax,i=tt.a.clone(e);return null!=n?i.plotLines=[{value:n,color:"red"}]:delete i.plotLines,null!=r&&null!=o?(i.min=r,i.max=o):(delete i.min,delete i.max),i}function no(e){return{metrics:"".concat(gt.graphIndex,"/metrics"),tagkv:"".concat(gt.graphIndex,"/tagkv"),counter:"".concat(gt.graphIndex,"/counter/fullmatch"),history:"".concat(gt.graphTransfer,"/data/ui")}[e]}function ro(e){return"=all"===e?"=all":0===e.indexOf("=+")?"=+":0===e.indexOf("=-")?"=-":void 0}function oo(e){return Vt("".concat(gt.endpoint,"s/bynodeids?ids=").concat(e),void 0,!1).then((function(e){return tt.a.map(e,"ident")}))}function io(e,t){Xr(e)&&(e=qr(ro(e[0]),e[0],t));return Vt(no("metrics"),{method:"POST",body:JSON.stringify({endpoints:e})},!1).then((function(e){return tt.a.chain(e.metrics).compact().flattenDeep().union().sortBy((function(e){return tt.a.lowerCase(e)})).value()}))}function ao(e,t,n){Xr(e)&&(e=qr(ro(e[0]),e[0],n));return Vt(no("tagkv"),{method:"POST",body:JSON.stringify({endpoints:tt.a.isArray(e)?e:[e],metrics:tt.a.isArray(t)?t:[t]})},!1).then((function(e){var t=[];return tt.a.each(e,(function(e){var r=e.tagkv;t=[{tagk:"endpoint",tagv:n}].concat(dr()(r||[]))})),t}))}function so(e){return Vt(no("counter"),{method:"POST",body:JSON.stringify(e)},!1)}function lo(e,t){return co.apply(this,arguments)}function co(){return(co=dt()(ut.a.mark((function e(t,n){var r,o,i,a,s,l,c,u,f,d,h;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=tt.a.cloneDeep(t),o=!1,i=0;case 3:if(!(i0&&void 0!==arguments[0]?arguments[0]:[],t=tt.a.map(e,(function(e){var t=e.id,n=e.metric,r=e.tags,o=e.data,i=e.comparison,a=To(o);return{id:t,metric:n,tags:r,comparison:i,last:a.last,avg:a.avg,max:a.max,min:a.min,sum:a.sum,color:e.color}}));return tt.a.orderBy(t,"counter")}(e);return tt.a.filter(r,(function(e){return e.tags.match(n)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.comparisonOptions,r=t.onSelectedChange,o=this.state,i=o.searchText,a=o.selectedKeys,s=o.highlightedKeys,c=s,u=this.filterData(),f=u[0],d=[{title:l.a.createElement("span",null," Series(",u.length,") "),dataIndex:"tags",filterDropdown:l.a.createElement("div",{className:"custom-filter-dropdown"},l.a.createElement(Qt.a,{placeholder:"Input serie name",value:i,onChange:this.handleInputChange,onPressEnter:this.handleSearch}),l.a.createElement(rt.a,{type:"primary",onClick:this.handleSearch},"Search")),filterDropdownVisible:this.state.filterDropdownVisible,onFilterDropdownVisibleChange:function(t){return e.setState({filterDropdownVisible:t})},render:function(t,r){var o=function(e,t,n){var r=e.tags,o=e.comparison,i=r;if(o&&"number"==typeof o){var a=tt.a.find(t,{value:"".concat(o,"000")});if(a&&a.label){var s="en"===n.locale?a.labelEn:"环比".concat(a.label);i+=" ".concat(s)}}if(i.length>80){var l=i.substr(0,40),c=i.substr(-40);i="".concat(l,"......").concat(c)}return i}(r,n,e.props.intl);return l.a.createElement("span",{title:t,onClick:function(){return e.handleClickCounter(r)},onContextMenu:function(n){return e.handleContextMenu(n,t)},style:{cursor:"pointer",opacity:c.length?tt.a.includes(c,r.id)?1:.5:1}},l.a.createElement("span",{style:{color:r.color}},"● "),o)}},{title:"Max",dataIndex:"max",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},e)},sorter:function(e,t){return Number(e.max)-Number(t.max)}},{title:"Min",dataIndex:"min",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},e)},sorter:function(e,t){return Number(e.min)-Number(t.min)}},{title:"Avg",dataIndex:"avg",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},null!==e?e:"null")},sorter:function(e,t){return Number(e.avg)-Number(t.avg)}},{title:"Sum",dataIndex:"sum",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},null!==e?e:"null")},sorter:function(e,t){return Number(e.sum)-Number(t.sum)}},{title:"Last",dataIndex:"last",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},null!==e?e:"null")},sorter:function(e,t){return Number(e.last)-Number(t.last)}}],h={selectedRowKeys:"normal"===a?tt.a.map(u,(function(e){return e.id})):a,onChange:function(t){e.setState({selectedKeys:t},(function(){r(t,s)}))}};return!1===tt.a.get(f,"isSameMetric")&&d.unshift({title:"Metric",dataIndex:"metric",width:60}),l.a.createElement("div",{className:"graph-legend",style:So(So({},this.props.style),{},{margin:"0 5px 5px 5px"})},l.a.createElement(vo.a,{rowKey:function(e){return"".concat(e.id,"-").concat(e.comparison)},size:"middle",rowSelection:h,columns:d,dataSource:u,pagination:!1,scroll:{y:220}}),l.a.createElement(ko,{visible:this.state.contextMenuVisiable,left:this.state.contextMenuLeft,top:this.state.contextMenuTop},l.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-vertical ant-dropdown-menu-light ant-dropdown-menu-root"},l.a.createElement("li",{className:"ant-dropdown-menu-item"},l.a.createElement("a",{onClick:this.handleCopyCounter},"copy counter")))))}}]),n}(s.Component);function Po(e,t){return"normal"===t||tt.a.includes(t,tt.a.get(e,"id"))}function _o(e,t,n){return t.length&&!tt.a.includes(t,tt.a.get(e,"id"))?Eo()(n).lighten(.5).desaturate(.7).hex():n}function Ao(e,t,n,r){return tt.a.includes(t,tt.a.get(e,"id"))?n+r:r}function To(e){var t=null,n=null,r=null,o=null,i=null,a=0;return tt.a.isArray(e)?(tt.a.forEach(e,(function(e){var n=tt.a.get(e,"[0]"),s=tt.a.get(e,"[1]");"number"==typeof n&&"number"==typeof s&&(null===i&&(i=0),i+=s,(null===r||rs)&&(o=s),t=s,a++)})),tt.a.isNumber(i)&&(n=i/a),"number"==typeof t&&(t=Number(Number(t).toFixed(3))),"number"==typeof n&&(n=Number(Number(n).toFixed(3))),"number"==typeof r&&(r=Number(Number(r).toFixed(3))),"number"==typeof o&&(o=Number(Number(o).toFixed(3))),"number"==typeof i&&(i=Number(Number(i).toFixed(3))),{last:t,avg:n,max:r,min:o,sum:i}):{last:t,avg:n,max:r,min:o,sum:i}}xo.defaultProps={style:{},series:[],onSelectedChange:tt.a.noop};var Mo=Oe(xo);var Ro=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){return Ot()(this,n),t.apply(this,arguments)}return xt()(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.selectedMetric,r=t;return t||(r=n),l.a.createElement("div",{className:"graph-title"},l.a.createElement("div",{title:r,style:{width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},r))}}]),n}(s.Component);Ro.defaultProps={title:"",selectedMetric:""};n(87);var Do=n(57),No=n.n(Do);var jo=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){return Ot()(this,n),t.apply(this,arguments)}return xt()(n,[{key:"shouldComponentUpdate",value:function(e){return!tt.a.isEqual(e,this.props)}},{key:"getContent",value:function(){var e=this.props,t=e.graphConfig,n=e.counterList,r=t.unit,o=t.start,i=t.end,a=tt.a.groupBy(n,"metric");return tt.a.map(a,(function(e,t){var n=e[0]||{};return l.a.createElement("ul",{className:"graph-info",key:t},l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Metric:"),l.a.createElement("span",{className:"graph-info-value"},t)),l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Step:"),l.a.createElement("span",{className:"graph-info-value"},n.step?"".concat(n.step," s"):"无")),l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Time:"),l.a.createElement("span",{className:"graph-info-value"},Er()(Number(o)).format(Dr.moment),l.a.createElement("span",null," - "),Er()(Number(i)).format(Dr.moment))),r?l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Unit:"),l.a.createElement("span",{className:"graph-info-value"},r)):null)}))}},{key:"render",value:function(){return l.a.createElement(No.a,{trigger:"click",content:this.getContent(),placement:"topLeft"},this.props.children)}}]),n}(s.Component);var Lo=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=(n-1)*o&&t500&&(i=i.splice(0,500),gn.a.warning("Can only select a maximum of 500")),o&&(i=tt.a.uniq(t.concat(r.filterData()))),r.setState({selected:i},(function(){r.props.onSelectAll.call(qo()(r),i),r.props.onChange.call(qo()(r),i)}))},r.search=function(e){var t=e.target.value;r.setState({searchVal:t,current:1},(function(){r.props.onSearch.call(qo()(r),t,r.filterData())}))},r.paginationChange=function(e){r.setState({current:e})},r.createSelectedList=function(){var e=r.state.selected,t=tt.a.filter(e,(function(e,t){return t=(o-1)*i&&t-1},l.a.createElement("span",{title:e,className:"multipicker-tagItem",style:{maxWidth:a-70}},e))))})),s},r.state={current:1,width:400,searchVal:"",manualVisible:!1,manualVal:"",selected:[]},r}return xt()(n,[{key:"componentWillMount",value:function(){this.initialState(this.props)}},{key:"componentDidMount",value:function(){var e=this.multipicker.clientWidth;this.setState({width:e})}},{key:"componentWillReceiveProps",value:function(e){this.initialState(e)}},{key:"getSelected",value:function(){return tt.a.clone(this.state.selected)}},{key:"setSelected",value:function(e){this.setState({selected:e})}},{key:"initialState",value:function(e){var t=e.data,n=e.defaultPageSize,r=e.selected;this.setState({data:tt.a.uniq(t),defaultPageSize:n,selected:r})}},{key:"filterData",value:function(){var e=this.state,t=e.data,n=e.searchVal;try{var r=new RegExp(n,"i");return tt.a.filter(t,(function(e){return r.test(e)}))}catch(e){return[]}}},{key:"render",value:function(){var e=this,t=this.props.manualEntry,n=this.state,r=n.current,o=n.defaultPageSize,i=n.selected,a=void 0===i?[]:i,s=this.filterData();return l.a.createElement("div",{className:"multipicker-panel",ref:function(t){e.multipicker=t},style:{width:this.props.width}},l.a.createElement("div",{className:"multipicker-selected-list-box"},l.a.createElement(lr.a,null,l.a.createElement(ur.a,{span:14},l.a.createElement("strong",null,l.a.createElement(vr,{id:"select.selected"}),"(",a.length,"):"),l.a.createElement("a",{className:"remove-all",onClick:this.removeAll},l.a.createElement(vr,{id:"select.selected.clear"})),t&&l.a.createElement(No.a,{placement:"topLeft",trigger:"click",visible:this.state.manualVisible,onVisibleChange:function(t){e.setState({manualVisible:t})},content:l.a.createElement("div",null,l.a.createElement(Yo,{type:"textarea",autosize:{minRows:2,maxRows:6},style:{width:230},placeholder:"多个值用换行分割",value:this.state.manualVal,onChange:function(t){e.setState({manualVal:t.target.value})}}),l.a.createElement("div",{style:{marginTop:5}},l.a.createElement(rt.a,{size:"small",onClick:this.handleManualEntry},"Ok")))},l.a.createElement("a",{style:{paddingLeft:10},onClick:function(){e.setState({manualVisible:!e.state.manualVisible})}},l.a.createElement(vr,{id:"select.manual.input"}))))),l.a.createElement("ul",{className:"multipicker-selected-list"},this.createSelectedList())),l.a.createElement("div",{className:"multipicker-option-list-box"},l.a.createElement(lr.a,null,l.a.createElement(ur.a,{span:16},l.a.createElement("strong",null,l.a.createElement(vr,{id:"select.total"}),"(",s.length,"):"),l.a.createElement("a",{className:"select-all-currentPage",onClick:this.currentPageSelectAll,style:{paddingRight:10}},l.a.createElement(vr,{id:"select.current.page"})),l.a.createElement("a",{className:"select-all",onClick:this.selectAll},l.a.createElement(vr,{id:"select.all"}))),l.a.createElement(ur.a,{span:8},l.a.createElement("div",{className:"multipicker-search"},l.a.createElement(Qt.a,{size:"small",type:"text",className:"keyword",placeholder:"support regular",onChange:this.search})))),l.a.createElement("ul",{className:"multipicker-option-list"},this.createOptionList(s)),l.a.createElement("div",{style:{marginTop:10,textAlign:"center"}},l.a.createElement(zo.a,{size:"small",current:r,defaultPageSize:o,total:s.length,onChange:this.paginationChange}))))}}]),n}(s.Component);Jo.propTypes={width:Rn.a.oneOfType([Rn.a.string,Rn.a.number]),data:Rn.a.array,selected:Rn.a.array,selectedMaxDisplayNum:Rn.a.number,manualEntry:Rn.a.bool,defaultPageSize:Rn.a.number,onChange:Rn.a.func,onRemoveAll:Rn.a.func,onCurrentPageSelectAll:Rn.a.func,onSelectAll:Rn.a.func,onSearch:Rn.a.func,onSelectedClick:Rn.a.func},Jo.defaultProps={width:400,data:[],selected:[],selectedMaxDisplayNum:100,manualEntry:!1,defaultPageSize:5,onChange:function(){},onRemoveAll:function(){},onCurrentPageSelectAll:function(){},onSelectAll:function(){},onSearch:function(){},onSelectedClick:function(){}};var Xo=Jo;var Zo=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i")?tt.a.filter(e,(function(e){return""!==e})):e;if(0===n.indexOf("=+")){var r=n.substring(2);return tt.a.filter(e,(function(e){return e.indexOf(r)>-1}))}if(0===n.indexOf("=-")){var o=n.substring(2);return tt.a.filter(e,(function(e){return-1===e.indexOf(o)}))}return t}return t},e.dynamicSwitchChange=function(t){e.setState({dynamicSwitch:t})},e}return xt()(n,[{key:"componentWillMount",value:function(){this.preSetState(this.props)}},{key:"componentWillReceiveProps",value:function(e){tt.a.isEqual(e.data,this.props.data)&&tt.a.isEqual(e.selectedTagkv,this.props.selectedTagkv)||this.preSetState(e)}},{key:"hide",value:function(e){var t="".concat(e,"visible");this.setState(pt()({},t,!1))}},{key:"show",value:function(e){var t="".concat(e,"visible");this.setState(pt()({},t,!0))}},{key:"submit",value:function(e){var t=this.state.selectedTagkv,n=this.props.onChange,r=this.refs["".concat(e,"multipicker")].getSelected();this.hide(e),n(e,r,t)}},{key:"handleVisibleChange",value:function(e,t){e?this.show(t):(this.submit(t),this.hide(t))}},{key:"dynamicSelect",value:function(e,t,n){var r,o=this.state.selectedTagkv,i=tt.a.findIndex(o,{tagk:e});"=all"===t?r=["=all"]:"=+"===t?r=["=+".concat(n)]:"=-"===t&&(r=["=-".concat(n)]),this.setState(br()(this.state,{selectedTagkv:{$splice:[[i,1,{tagk:e,tagv:r}]]}}))}},{key:"multipickerChange",value:function(e,t){var n=this.state.selectedTagkv,r=tt.a.findIndex(n,{tagk:e});Xr(t)&&t.splice(0,1),this.setState(br()(this.state,{selectedTagkv:{$splice:[[r,1,{tagk:e,tagv:t}]]}}))}},{key:"preSetState",value:function(e){var t=e.data,n=e.selectedTagkv,r=Qr(tt.a.cloneDeep(t));this.setState({data:r,selectedTagkv:tt.a.cloneDeep(n)})}},{key:"render",value:function(){var e=this,t=this.props.type,n=this.state,r=n.data,o=n.selectedTagkv,i=n.dynamicSwitch;return l.a.createElement("div",{style:{position:"relative"}},tt.a.map(r,(function(n){var r,a=n.tagk,s=n.tagv,c=void 0===s?[]:s,u=tt.a.find(o,{tagk:a}),f=u?u.tagv:[],d=e.getRealSelectedTagv(c,f),h=l.a.createElement("span",null,l.a.createElement(Xo,{ref:"".concat(a,"multipicker"),dynamic:!0,data:c,selected:f,onChange:function(t){return e.multipickerChange(a,t)}}),l.a.createElement("div",{style:{marginTop:10,textAlign:"center"}},l.a.createElement(rt.a.Group,null,l.a.createElement(rt.a,{onClick:function(){return e.hide(a)}},"Cancel"),l.a.createElement(rt.a,{type:"primary",onClick:function(){return e.submit(a)}},"Ok"))),l.a.createElement("div",{ref:"".concat(a,"dynamic"),style:{position:"absolute",top:41,right:18}},i?l.a.createElement("span",null,l.a.createElement("span",null,l.a.createElement(vr,{id:"select.dynamic"}),": "),l.a.createElement("a",{onClick:function(){return e.dynamicSelect(a,"=all")}},l.a.createElement(vr,{id:"select.all"})),l.a.createElement("span",{className:"ant-divider"}),l.a.createElement(No.a,{trigger:"click",content:l.a.createElement("div",{style:{width:200}},l.a.createElement(Qt.a,{placeholder:"Press enter to submit",onKeyDown:function(t){13===t.keyCode&&e.dynamicSelect(a,"=+",t.target.value)}})),getTooltipContainer:function(){return e.refs["".concat(a,"dynamic")]}},l.a.createElement("a",null,l.a.createElement(vr,{id:"select.include"}))),l.a.createElement("span",{className:"ant-divider"}),l.a.createElement(No.a,{trigger:"click",content:l.a.createElement("div",{style:{width:200}},l.a.createElement(Qt.a,{placeholder:"请输入关键词,Enter键提交",onKeyDown:function(t){13===t.keyCode&&e.dynamicSelect(a,"=-",t.target.value)}})),getTooltipContainer:function(){return e.refs["".concat(a,"dynamic")]}},l.a.createElement("a",null,l.a.createElement(vr,{id:"select.exclude"})))):l.a.createElement("div",null,l.a.createElement(vr,{id:"select.dynamic"})," ",l.a.createElement(yn.a,{onChange:e.dynamicSwitchChange,size:"small"}))));return r="popover"===t?l.a.createElement(No.a,{key:a,content:h,title:a,trigger:"click",visible:!!e.state["".concat(a,"visible")],onVisibleChange:function(t){return e.handleVisibleChange(t,a)}},e.props.renderItem(a,c,d)):l.a.createElement("div",null,l.a.createElement(bo.a,{title:a,width:450,wrapClassName:"tagkvModal",visible:!!e.state["".concat(a,"visible")],closable:!1,onCancel:function(){e.hide("tagk")},footer:[]},h),e.props.renderItem(a,c,f,e.show.bind(e))),e.props.wrapInner&&(r=e.props.wrapInner(r,a,c,f)),r})))}}]),n}(s.Component);Zo.defaultProps={data:[],selectedTagkv:[],type:"popover",wrapInner:void 0};n(89);var Qo=n(56),ei=n.n(Qo);function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t-1?n.length?br()(a.selectedTagkv,{$splice:[[s,1,{tagk:t,tagv:n}]]}):br()(a.selectedTagkv,{$splice:[[s,1]]}):n.length?br()(a.selectedTagkv,{$push:[{tagk:t,tagv:n}]}):a.selectedTagkv,"endpoint"===t&&(c=n),i("update",o.id,{metrics:[li(li({},o.metrics[0]),{},{selectedTagkv:l,selectedEndpoint:c})]})},e}return xt()(n,[{key:"dateChange",value:function(e,t){var n=this.props,r=n.data,o=n.onChange,i=r.start,a=r.end;if(Er.a.isMoment(t)){var s=t.format("x");"start"===e&&(i=s),"end"===e&&(a=s),o("update",r.id,{start:i,end:a})}}},{key:"renderTagkv",value:function(){var e=this.props.data.metrics;if(1===e.length){var t=e[0]||{};return l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Zo,{data:t.tagkv,selectedTagkv:t.selectedTagkv,onChange:this.tagkvChange,renderItem:function(e,t,n){return l.a.createElement(rt.a,{size:"small",type:"ghost",style:{marginRight:10}},0!==tt.a.size(n)?e+"("+tt.a.size(n)+")":e,l.a.createElement(wt.a,{type:"down"}))}}))}return null}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.onChange,o=n.now,i=n.start,a=n.end,s=n.comparison,c=o===a?Ur(i,a,"label"):"其他",u=o===a?Ur(i,a,"value"):"custom",f=Er()(Number(i)).format(Dr.moment),d=Er()(Number(a)).format(Dr.moment),h=tt.a.map(tt.a.get(n.metrics,"[0].tagkv"),(function(e){return{label:e.tagk,value:e.tagk}}));return l.a.createElement("div",{className:"graph-config-inner"},l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(rt.a,{size:"small",type:"ghost",onClick:this.refresh},l.a.createElement(vr,{id:"graph.refresh"}))),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Wo.a,{size:"small",style:{width:70},value:l.a.createElement(vr,{id:c}),onChange:this.timeOptionChange},tt.a.map(Mr,(function(e){return l.a.createElement(ci,{key:e.value,value:e.value},l.a.createElement(vr,{id:e.label}))}))),"custom"===u&&l.a.createElement("span",{style:{display:"inline-block",paddingLeft:10,lineHeight:"22px",verticalAlign:"top"}},l.a.createElement(Vo.a,{showTime:!0,size:"small",key:"datePickerStart",style:{width:165,minWidth:165},format:Dr.moment,defaultValue:Er()(f),onOk:function(t){return e.dateChange("start",t)}}),l.a.createElement("span",{key:"datePickerDivider",style:{paddingLeft:5,paddingRight:5}},"-"),l.a.createElement(Vo.a,{showTime:!0,size:"small",key:"datePickerEnd",style:{width:165,minWidth:165},format:Dr.moment,defaultValue:Er()(d),onOk:function(t){return e.dateChange("end",t)}}))),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(vr,{id:"graph.config.aggr"}),":",l.a.createElement(Wo.a,{allowClear:!0,size:"small",style:{width:85},placeholder:"无",value:tt.a.get(n.metrics,"[0].aggrFunc"),onChange:this.handleAggrFuncChange},l.a.createElement(ci,{value:"sum"},l.a.createElement(vr,{id:"graph.config.aggr.sum"})),l.a.createElement(ci,{value:"avg"},l.a.createElement(vr,{id:"graph.config.aggr.avg"})),l.a.createElement(ci,{value:"max"},l.a.createElement(vr,{id:"graph.config.aggr.max"})),l.a.createElement(ci,{value:"min"},l.a.createElement(vr,{id:"graph.config.aggr.min"})))),tt.a.get(n.metrics,"[0].aggrFunc")?l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Fo.a,{title:"按照某个 tag 聚合出多条曲线"},l.a.createElement("span",null,l.a.createElement(vr,{id:"graph.config.aggr.group"}),":")),l.a.createElement(Wo.a,{mode:"multiple",size:"small",style:{minWidth:60},dropdownMatchSelectWidth:!1,value:tt.a.get(n.metrics,"[0].aggrGroup",[]),onChange:function(e){r("update",n.id,{metrics:[li(li({},n.metrics[0]),{},{aggrGroup:e})]})}},tt.a.map(h,(function(e){return l.a.createElement(ci,{key:e.value,value:e.value},e.label)})))):null,l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(vr,{id:"graph.config.comparison"}),":",l.a.createElement(ai,{comparison:s,relativeTimeComparison:n.relativeTimeComparison,comparisonOptions:n.comparisonOptions,graphConfig:n,onChange:this.handleComparisonChange}),l.a.createElement("input",{style:{position:"fixed",left:-1e4},id:"hiddenInput".concat(n.id)})),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Xt.a,{checked:!!n.legend,onChange:this.legendChange},"Legend")),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Xt.a,{checked:!!n.shared,onChange:this.sharedChange},"Multi")),this.renderTagkv())}}]),n}(s.Component);function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;tt&&(n=l.a.createElement("span",{className:"counters-maxLength"},"Too many series,Current",e.length,"cap",t,",Please reduce the number of series")),n}},{key:"initHighcharts",value:function(e,t){var n=this,r=this.getGraphConfig(e.data),o={timestamp:"x",chart:{height:e.height,renderTo:this.graphWrapEle},xAxis:r.xAxis,yAxis:to({},r),tooltip:{shared:r.shared,formatter:function(e){return Kr({points:e,chartWidth:n.graphWrapEle.offsetWidth-40,comparison:r.comparison,isComparison:!!tt.a.get(r.comparison,"length")})}},series:t,legend:{enabled:!1},onZoom:function(e){n.getZoomedSeries=e,n.forceUpdate()}};this.chart||(this.props.onWillInit(o),this.chart=new kr.a(o),this.props.onDidInit(this.chart,o))}},{key:"updateHighcharts",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.data,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.series;if(this.chart){t=this.getGraphConfig(t);var r={yAxis:to(this.chart.options.yAxis,t),tooltip:{xAxis:t.xAxis,shared:t.shared,formatter:function(n){return Kr({points:n,chartWidth:e.graphWrapEle.offsetWidth-40,comparison:t.comparison,isComparison:!!tt.a.get(t.comparison,"length")})}},series:n};this.props.onWillUpdate(this.chart,r),this.chart.update(r),this.props.onDidUpdate(this.chart,r)}else this.initHighcharts(this.props)}},{key:"render",value:function(){var e=this,t=this.state,n=t.spinning,r=t.errorText,o=t.isOrigin,i=this.props,a=i.height,s=i.onChange,c=i.extraRender,u=i.data,f=this.getGraphConfig(u);return l.a.createElement("div",{className:f.legend?"graph-container graph-container-hasLegend":"graph-container"},l.a.createElement("div",{className:"graph-header",style:{height:this.headerHeight,lineHeight:"".concat(this.headerHeight,"px")}},l.a.createElement("div",{className:"graph-extra"},l.a.createElement("div",{style:{display:"inline-block"}},this.props.useDragHandle?l.a.createElement(hi,null):null,tt.a.isFunction(c)?c(this):l.a.createElement(Lo,{graphConfig:f,counterList:this.counterList,onOpenGraphConfig:this.props.onOpenGraphConfig,moreList:this.props.extraMoreList}))),l.a.createElement(Ro,{title:u.title,selectedNs:tt.a.reduce(f.metrics,(function(e,t){return tt.a.concat(e,t.selectedNs)}),[]),selectedMetric:tt.a.reduce(f.metrics,(function(e,t){return tt.a.concat(e,t.selectedMetric)}),[]),metricMap:this.props.metricMap})),this.props.graphConfigInnerVisible?l.a.createElement(ui,{isOrigin:o,data:f,onChange:s}):null,l.a.createElement(Jn.a,{spinning:n},l.a.createElement("div",{style:{height:a,display:r?"block":"none"}},r?l.a.createElement("div",{className:"graph-errorText"},r):null),l.a.createElement("div",{className:"graph-content",ref:function(t){e.graphWrapEle=t},style:{height:a,backgroundColor:"#fff",display:r?"none":"block"}})),l.a.createElement(Mo,{style:{display:f.legend?"block":"none"},series:this.getZoomedSeries(),onSelectedChange:this.handleLegendRowSelectedChange,comparisonOptions:f.comparisonOptions}))}}]),r}(s.Component);pi.defaultProps={height:350,graphConfigInnerVisible:!0,extraRender:void 0,extraMoreList:void 0,metricMap:void 0,onChange:tt.a.noop,onWillInit:tt.a.noop,onDidInit:tt.a.noop,onWillUpdate:tt.a.noop,onDidUpdate:tt.a.noop,onOpenGraphConfig:tt.a.noop},pi.setOptions=function(e){window.OdinGraphOptions=e};n(77);var mi=n(50),gi=n.n(mi);function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t-1?o.length?a.selectedTagkv=br()(a.selectedTagkv,{$splice:[[l,1,{tagk:r,tagv:o}]]}):a.selectedTagkv=br()(a.selectedTagkv,{$splice:[[l,1]]}):o.length&&(a.selectedTagkv=br()(a.selectedTagkv,{$push:[{tagk:r,tagv:o}]})),t.setState(br()(t.state,{graphConfig:{metrics:{$splice:[[s,1,a]]}}})),e.prev=6,t.setLoading(!0),e.next=10,t.fetchCounterList(a);case 10:t.setLoading(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(6),console.error(e.t0),t.setLoading(!1);case 17:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(t,n,r){return e.apply(this,arguments)}}(),t.handleAggregateChange=function(e,n){var r=t.state.graphConfig.metrics,o=tt.a.cloneDeep(tt.a.find(r,{selectedMetric:e})),i=tt.a.findIndex(r,{selectedMetric:e});o.aggrFunc=n,t.setState(br()(t.state,{graphConfig:{metrics:{$splice:[[i,1,o]]}}}))},t.handleconsolFuncChange=function(e,n){var r=t.state.graphConfig.metrics,o=tt.a.cloneDeep(tt.a.find(r,{selectedMetric:e})),i=tt.a.findIndex(r,{selectedMetric:e});o.consolFunc=n,t.setState(br()(t.state,{graphConfig:{metrics:{$splice:[[i,1,o]]}}}))},t.handleAggregateDimensionChange=function(e,n){var r=t.state.graphConfig.metrics,o=tt.a.cloneDeep(tt.a.find(r,{selectedMetric:e})),i=tt.a.findIndex(r,{selectedMetric:e});o.aggrGroup=n,t.setState(br()(t.state,{graphConfig:{metrics:{$splice:[[i,1,o]]}}}))},t.handleSubclassChange=function(e){t.setState(br()(t.state,{graphConfig:{subclassId:{$set:e}}}))},t.handleTitleChange=function(e){t.setState(br()(t.state,{graphConfig:{title:{$set:e.target.value}}}))},t.handleTimeOptionChange=function(e){var n=Er()(),r=t.state.graphConfig,o=r.start,i=r.end;"custom"!==e?(o=n.clone().subtract(Number(e),"ms").format("x"),i=n.format("x")):(o=Er()(Number(o)).format("x"),i=Er()().format("x")),t.setState(br()(t.state,{graphConfig:{start:{$set:o},end:{$set:i},now:{$set:i}}}))},t.handleDateChange=function(e,n){var r=Er.a.isMoment(n)?n.format("x"):null;t.setState(br()(t.state,{graphConfig:pt()({},e,{$set:r})}))},t.handleThresholdChange=function(e){t.setState(br()(t.state,{graphConfig:{threshold:{$set:e}}}))};var n,r=e.data,o=(n=r.metrics,tt.a.isEmpty(n)?[{key:tt.a.uniqueId("METRIC_"),selectedNid:void 0,selectedMetric:""}]:tt.a.map(n,(function(e){return yi(yi({},e),{},{key:e.selectedMetric||tt.a.uniqueId("METRIC_")})})));return t.state={graphConfig:yi(yi(yi({},_r),e.data),{},{metrics:o}),loading:!1,tableEmptyText:"No data",nsSearchVal:"",counterListVisible:!1,advancedVisible:!1,treeData:void 0,originTreeData:void 0},t}return xt()(s,[{key:"componentDidMount",value:function(){var e=this;this.fetchTreeData((function(){e.fetchAllByMetric()}))}},{key:"setLoading",value:function(e){this.setState({loading:e}),this.props.btnDisable(e)}},{key:"getColumns",value:function(){return[{title:"曲线",dataIndex:"counter"},{title:"周期",dataIndex:"step",width:45,render:function(e){return l.a.createElement("span",null,e,"s")}}]}},{key:"fetchTreeData",value:function(e){var t=this;Vt(gt.tree).then((function(n){var r=Bn(n);t.setState({treeData:r,originTreeData:n},(function(){e&&e()}))}))}},{key:"fetchAllByMetric",value:(i=dt()(ut.a.mark((function e(){var t,n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.graphConfig.metrics,n=tt.a.cloneDeep(t[0]),r=0,!n){e.next=25;break}if(e.prev=4,this.setLoading(!0),void 0===n.selectedNid){e.next=18;break}return e.next=9,this.fetchEndpoints(n);case 9:if(tt.a.isEmpty(n.selectedEndpoint)){e.next=18;break}return e.next=12,this.fetchMetrics(n);case 12:if(!n.selectedMetric){e.next=18;break}return e.next=15,this.fetchTagkv(n);case 15:if(!n.selectedTagkv){e.next=18;break}return e.next=18,this.fetchCounterList(n);case 18:this.setState(br()(this.state,{graphConfig:{metrics:{$splice:[[r,1,n]]}}})),this.setLoading(!1),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(4),this.setLoading(!1);case 25:case"end":return e.stop()}}),e,this,[[4,22]])}))),function(){return i.apply(this,arguments)})},{key:"fetchEndpoints",value:(o=dt()(ut.a.mark((function e(t){var n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo(t.selectedNid,this.context.habitsId);case 3:return n=e.sent,Xr(r=t.selectedEndpoint||["=all"])||(r=tt.a.intersection(n,t.selectedEndpoint)),t.endpoints=n,t.selectedEndpoint=r,e.abrupt("return",t);case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(e){return o.apply(this,arguments)})},{key:"fetchMetrics",value:(r=dt()(ut.a.mark((function e(t){var n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,io(t.selectedEndpoint,t.endpoints);case 3:return n=e.sent,r=tt.a.indexOf(n,t.selectedMetric)>-1?t.selectedMetric:"",t.metrics=n,t.selectedMetric=r,e.abrupt("return",t);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e){return r.apply(this,arguments)})},{key:"fetchTagkv",value:(n=dt()(ut.a.mark((function e(t){var n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ao(t.selectedEndpoint,t.selectedMetric,t.endpoints);case 3:n=e.sent,Xr(r=t.selectedTagkv||tt.a.chain(n).map((function(e){return{tagk:e.tagk,tagv:["=all"]}})).value())||(r=Ei(t.selectedTagkv,n)),t.tagkv=n,t.selectedTagkv=r,e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"fetchCounterList",value:(t=dt()(ut.a.mark((function e(t){var n;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,uo([{selectedEndpoint:t.selectedEndpoint,selectedMetric:t.selectedMetric,selectedTagkv:t.selectedTagkv,tagkv:t.tagkv}]);case 3:n=e.sent,t.counterList=n,e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return t.apply(this,arguments)})},{key:"renderMetrics",value:function(){var e=this,t=(0,this.context.getSelectedNode)(),n=this.state.graphConfig.metrics,r=n[0],o=r.selectedMetric,i=tt.a.filter(r.tagkv,(function(e){return"endpoint"!==e.tagk})),a=tt.a.isEmpty(r.selectedNid)?[t.id]:r.selectedNid,s=tt.a.map(tt.a.get(n,"[0].tagkv"),(function(e){return{label:e.tagk,value:e.tagk}}));return l.a.createElement("div",null,l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.node"}),style:{marginBottom:5},required:!0},l.a.createElement(gi.a,{showSearch:!0,allowClear:!0,treeDefaultExpandedKeys:tt.a.map(a,tt.a.toString),treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:200,overflow:"auto"},value:r.selectedNid,onChange:function(t){return e.handleNsChange(t,r)}},Wn(this.state.treeData))),l.a.createElement(Zo,{type:"modal",data:[{tagk:"endpoint",tagv:r.endpoints}],selectedTagkv:[{tagk:"endpoint",tagv:r.selectedEndpoint}],onChange:function(t,n){e.handleEndpointChange(n)},renderItem:function(e,t,n,r){return l.a.createElement(Qt.a,{readOnly:!0,value:tt.a.join(tt.a.slice(n,0,40),", "),size:"default",onClick:function(){r(e)}})},wrapInner:function(e,t){return l.a.createElement(bi,{key:t,labelCol:{span:3},wrapperCol:{span:21},label:t,style:{marginBottom:5},className:"graph-tags",required:!0},e)}}),l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.metric"}),style:{marginBottom:5},required:!0},l.a.createElement(Wo.a,{showSearch:!0,size:"default",style:{width:"100%"},className:"select-metric",value:r.selectedMetric,onChange:function(t){return e.handleMetricChange(t,o)}},tt.a.map(r.metrics,(function(e){return l.a.createElement(wi,{key:e},e)})))),l.a.createElement(lr.a,{style:{marginBottom:5}},l.a.createElement(ur.a,{span:12},l.a.createElement(bi,{labelCol:{span:6},wrapperCol:{span:18},label:l.a.createElement(vr,{id:"graph.config.aggr"}),style:{marginBottom:0}},l.a.createElement(Wo.a,{allowClear:!0,size:"default",style:{width:"100%"},value:r.aggrFunc,onChange:function(t){return e.handleAggregateChange(o,t)}},l.a.createElement(wi,{value:"sum"},l.a.createElement(vr,{id:"graph.config.aggr.sum"})),l.a.createElement(wi,{value:"avg"},l.a.createElement(vr,{id:"graph.config.aggr.avg"})),l.a.createElement(wi,{value:"max"},l.a.createElement(vr,{id:"graph.config.aggr.max"})),l.a.createElement(wi,{value:"min"},l.a.createElement(vr,{id:"graph.config.aggr.min"}))))),l.a.createElement(ur.a,{span:12},l.a.createElement(bi,{labelCol:{span:5},wrapperCol:{span:19},label:l.a.createElement(vr,{id:"graph.config.aggr.group"}),style:{marginBottom:0}},l.a.createElement(Wo.a,{mode:"multiple",size:"default",style:{width:"100%"},disabled:!r.aggrFunc,value:r.aggrGroup||[],onChange:function(t){return e.handleAggregateDimensionChange(o,t)}},tt.a.map(s,(function(e){return l.a.createElement(wi,{key:e.value,value:e.value},e.label)})))))),l.a.createElement(Zo,{type:"modal",data:i,selectedTagkv:r.selectedTagkv,onChange:function(t,n){e.handleTagkvChange(o,t,n)},renderItem:function(e,t,n,r){return l.a.createElement(Qt.a,{readOnly:!0,value:tt.a.join(tt.a.slice(n,0,40),", "),size:"default",onClick:function(){r(e)}})},wrapInner:function(e,t){return l.a.createElement(bi,{key:t,labelCol:{span:3},wrapperCol:{span:21},label:t,style:{marginBottom:5},className:"graph-tags",required:!0},e)}}),l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.series"}),style:{marginBottom:5}},l.a.createElement("span",{style:{color:"#ff7f00",paddingRight:5}},tt.a.get(r.counterList,"length"),l.a.createElement(vr,{id:"graph.config.series.unit"})),l.a.createElement("a",{onClick:function(){e.setState({counterListVisible:!e.state.counterListVisible})}},l.a.createElement(wt.a,{type:this.state.counterListVisible?"circle-o-up":"circle-o-down"})),this.state.counterListVisible&&l.a.createElement(vo.a,{bordered:!1,size:"middle",columns:this.getColumns(),dataSource:r.counterList,locale:{emptyText:r.tableEmptyText}})))}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.graphConfig,o=r.now,i=r.start,a=r.end,s=o===a?Ur(i,a,"value"):"custom",c=Er()(Number(i)).format(Dr.moment),u=Er()(Number(a)).format(Dr.moment);return l.a.createElement(Jn.a,{spinning:n},l.a.createElement(tn.a,null,this.props.isScreen?l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.cate"}),style:{marginBottom:5},required:!0},l.a.createElement(Wo.a,{style:{width:"100%"},value:r.subclassId,onChange:this.handleSubclassChange},tt.a.map(this.props.subclassOptions,(function(e){return l.a.createElement(wi,{key:e.id,value:e.id},e.name)})))):null,l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.graph.title"}),style:{marginBottom:5}},l.a.createElement(Qt.a,{style:{width:"100%"},value:r.title,onChange:this.handleTitleChange,placeholder:"The metric name as the default title"})),l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.time"}),style:{marginTop:5,marginBottom:0},required:!0},l.a.createElement(Wo.a,{size:"default",style:"custom"===s?{width:198,marginRight:10}:{width:"100%"},value:s,onChange:this.handleTimeOptionChange},tt.a.map(Mr,(function(e){return l.a.createElement(wi,{key:e.value,value:e.value},l.a.createElement(vr,{id:e.label}))}))),"custom"===s&&[l.a.createElement(Vo.a,{key:"datePickerStart",format:Dr.moment,style:{position:"relative",width:193,minWidth:193},defaultValue:Er()(c),onOk:function(t){return e.handleDateChange("start",t)}}),l.a.createElement("span",{key:"datePickerDivider",style:{paddingLeft:10,paddingRight:10}},"-"),l.a.createElement(Vo.a,{key:"datePickerEnd",format:Dr.moment,style:{position:"relative",width:194,minWidth:194},defaultValue:Er()(u),onOk:function(t){return e.handleDateChange("end",t)}})]),l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.comparison"}),style:{marginBottom:0}},l.a.createElement(ai,{size:"default",comparison:r.comparison,relativeTimeComparison:r.relativeTimeComparison,comparisonOptions:r.comparisonOptions,graphConfig:r,onChange:function(t){e.handleCommonFieldChange({start:t.start,end:t.end,now:t.now,comparison:t.comparison,relativeTimeComparison:t.relativeTimeComparison,comparisonOptions:t.comparisonOptions})}})),this.renderMetrics(),l.a.createElement(bi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(vr,{id:"graph.config.threshold"}),style:{marginBottom:5}},l.a.createElement(ei.a,{style:{width:"100%"},value:r.threshold,onChange:this.handleThresholdChange}))))}}]),s}(s.Component);Ci.contextTypes={getSelectedNode:Rn.a.func,habitsId:Rn.a.string},Ci.defaultProps={data:{},isScreen:!1,subclassOptions:[]};n(364);function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Oi=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(e){var r;return Ot()(this,n),(r=t.call(this,e)).state={key:tt.a.uniqueId("graphConfigModal_"),visible:!1,title:"图表配置",type:"add",btnName:"看图",btnDisabled:!1,data:{},isScreen:!1,subclassOptions:[]},r}return xt()(n,[{key:"showModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.type,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.btnName,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.isScreen,o=n.subclassOptions;delete n.isScreen,delete n.subclassOptions,this.setState({key:tt.a.uniqueId("graphConfigModal_"),visible:!0,type:e,btnName:t,data:n,isScreen:r,subclassOptions:o})}},{key:"handleSubmit",value:function(e,t){var n=this.refs.graphConfigForm,r=this.props.onChange,o=n.state.graphConfig,i=o.start,a=o.end;Number(i)>Number(a)?gn.a.error("开始时间不能大于结束时间"):this.setState({visible:!1},(function(){r(e,function(e){for(var t=1;t-1){var o=r.split("$Name");0===e.indexOf(o[0])&&e.indexOf(o[1])>0&&(t=n)}})),t);var t}function zi(e,t){var n=tt.a.filter(t,(function(t){return tt.a.find(t.metrics,{selectedMetric:e})}));return n.length?l.a.createElement("span",{style:{color:"#999"}}," +",n.length):null}var Ki=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a-1})):[],tt.a.concat([],o)):[]}return o}},{key:"dynamicMetricMaps",value:function(){var e=this.props.metrics;return tt.a.filter(ji,(function(t){var n=t.dynamic,r=t.filter;if(!n)return!0;if(r&&r.type&&r.value){var o=Fi(r.type,r.value,e);return!(!o||0===o.length)}return!1}))}},{key:"renderMetricList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=this.props.graphs;return l.a.createElement("div",{className:"tabPane"},t.length?l.a.createElement("ul",{className:"ant-menu ant-menu-vertical ant-menu-root",style:{border:"none"}},tt.a.map(t,(function(t,o){return l.a.createElement("li",{className:"ant-menu-item",key:o,onClick:function(){e.handleMetricClick(t)}},l.a.createElement(Fo.a,{key:"".concat(n,"_").concat(t),placement:"right",visible:e.state.metricTipVisible["".concat(n,"_").concat(t)],onVisibleChange:function(r){var o="".concat(n,"_").concat(t),i=Hi(t),a=e.state.metricTipVisible;a[o]=!(!r||!i),e.setState({metricTipVisible:a})}},l.a.createElement("span",null,t)),zi(t,r))}))):l.a.createElement("div",{style:{textAlign:"center"}},"No data"))}},{key:"renderMetricTabs",value:function(){var e=this,t=this.state,n=t.searchValue,r=t.activeKey,o=this.normalizMetrics(r),i=o;if(n)try{var a=new RegExp(n,"i");i=tt.a.filter(o,(function(e){return a.test(e)}))}catch(e){i=[]}var s=this.dynamicMetricMaps(),c=tt.a.map(s,(function(t){var n="zh"==e.props.intl.locale?t.alias:t.key;return l.a.createElement(Wi,{tab:n,key:t.key},e.renderMetricList(i,t.key))}));return c.unshift(l.a.createElement(Wi,{tab:l.a.createElement(vr,{id:"graph.metric.list.all"}),key:"ALL"},this.renderMetricList(i,"ALL"))),l.a.createElement(Ai.a,{type:"card",activeKey:r,onChange:this.handleMetricTabsChange},c)}},{key:"render",value:function(){return l.a.createElement(Jn.a,{spinning:this.props.loading},l.a.createElement(Yt.a,{className:"".concat(Ni,"-card"),title:l.a.createElement("span",{className:"".concat(Ni,"-metrics-title")},l.a.createElement("span",null,l.a.createElement(vr,{id:"graph.metric.list.title"})),l.a.createElement(Qt.a,{size:"small",placeholder:"Search",onChange:this.handleMetricsSearch}))},this.renderMetricTabs()))}}]),n}(s.Component);Ki.defaultProps={nid:void 0,hosts:[],selectedHosts:[],metrics:[],graphs:[],onSelect:function(){}};var Ui=Oe(Ki);function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t1&&void 0!==o[1]?o[1]:[],r=[],tt.a.isEmpty(t)){e.next=14;break}return e.prev=3,this.setState({metricsLoading:!0}),e.next=7,i.fetchMetrics(t,n);case 7:r=e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.log(e.t0);case 13:this.setState({metricsLoading:!1});case 14:return e.abrupt("return",r);case 15:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return n.apply(this,arguments)})},{key:"processBaseMetrics",value:(t=dt()(ut.a.mark((function e(){var t,n,r,o,a,s,l,c,u,f,d;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.context.getSelectedNode,n=this.state,r=n.selectedHosts,o=n.hosts,a=t(),s=tt.a.get(a,"id"),l=Er()(),c=[],u=0;case 7:if(!(u<$i.length)){e.next=19;break}return e.next=10,i.fetchTagkv(r,$i[u],o);case 10:f=e.sent,d=tt.a.cloneDeep(f),tt.a.find(d,{tagk:"endpoint"}).tagv=r,c.push({id:Number(tt.a.uniqueId()),now:l.clone().format("x"),start:l.clone().subtract(36e5,"ms").format("x"),end:l.clone().format("x"),metrics:[{selectedNid:s,selectedEndpoint:r,endpoints:o,selectedMetric:$i[u],selectedTagkv:d,tagkv:f,aggrFunc:void 0,counterList:[]}]}),this.setState({graphs:c});case 16:u++,e.next=7;break;case 19:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.selectedTreeNode,r=t.hostsLoading,o=t.hosts,i=t.selectedHosts,a=t.metricsLoading,s=t.metrics,c=t.graphs,u=t.globalOptions;return this.allHostsMode||n?l.a.createElement("div",{className:Ni},l.a.createElement(Tn.a,{style:{height:"100%",position:"relative"}},l.a.createElement(ia,null,l.a.createElement(lr.a,{gutter:10},l.a.createElement(ur.a,{span:12},l.a.createElement(na,{graphConfigs:c,loading:r,hosts:o,selectedHosts:i,onSelectedHostsChange:function(){var t=dt()(ut.a.mark((function t(n,r){var i;return ut.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMetrics(r,o);case 2:i=t.sent,e.setState({hosts:n,selectedHosts:r,metrics:i});case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),updateGraph:function(t){e.setState({graphs:t})}})),l.a.createElement(ur.a,{span:12},l.a.createElement(Ui,{ref:function(t){e.metricSelect=t},nid:tt.a.get(n,"id"),loading:a,hosts:o,selectedHosts:i,metrics:s,graphs:c,globalOptions:u,onSelect:function(t){e.handleGraphConfigSubmit("unshift",t)}}))),l.a.createElement(lr.a,{style:{padding:"10px 0"}},l.a.createElement(ur.a,{span:16},l.a.createElement(Si,fn()({},u,{onChange:function(t){e.setState({globalOptions:oa(oa({},e.state.globalOptions),t)},(function(){e.handleBatchUpdateGraphs(t)}))}}))),l.a.createElement(ur.a,{span:8,style:{textAlign:"right"}},l.a.createElement(rt.a,{onClick:this.handleSubscribeGraphs,disabled:!c.length,style:{background:"#fff",marginRight:8}},l.a.createElement(vr,{id:"graph.subscribe"})),l.a.createElement(rt.a,{onClick:this.handleShareGraphs,disabled:!c.length,style:{background:"#fff",marginRight:8}},l.a.createElement(vr,{id:"graph.share"})),l.a.createElement(rt.a,{onClick:this.handleRemoveGraphs,disabled:!c.length,style:{background:"#fff"}},l.a.createElement(vr,{id:"graph.clear"})))),l.a.createElement(ta,{value:c,onChange:this.handleUpdateGraph,onGraphConfigSubmit:this.handleGraphConfigSubmit})))):l.a.createElement("div",null,l.a.createElement(vr,{id:"please.select.node"}))}}]),s}(s.Component);aa.contextTypes={nsTreeVisibleChange:Rn.a.func,getSelectedNode:Rn.a.func,getNodes:Rn.a.func,habitsId:Rn.a.string};var sa=Pi(Oe(aa),{visible:!0}),la=n(98),ca=n.n(la);function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fa(e){for(var t=1;tAa&&(a+=" drop-over-downward"),o.index-1})):t}},{key:"render",value:function(){var e=this,t=this.state.search,n="".concat(ot,"-monitor-screen"),r=this.filterData();return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"mb10"},l.a.createElement(rt.a,{className:"mr10",onClick:this.handleAdd},l.a.createElement(vr,{id:"screen.create"})),l.a.createElement(Qt.a,{style:{width:200},placeholder:"Search",value:t,onChange:function(t){e.setState({search:t.target.value})}})),l.a.createElement(vo.a,{rowKey:"id",dataSource:r,pagination:!1,components:{body:{row:Ra}},onRow:function(t,n){return{index:n,moveRow:e.moveRow}},columns:[{title:l.a.createElement(vr,{id:"table.name"}),dataIndex:"name",render:function(e,t){return l.a.createElement(m.Link,{to:{pathname:"/monitor/screen/".concat(t.id)}},e)}},{title:l.a.createElement(vr,{id:"table.creator"}),width:200,dataIndex:"last_updator"},{title:l.a.createElement(vr,{id:"table.operations"}),width:200,render:function(t,n){return l.a.createElement("span",null,l.a.createElement("a",{onClick:function(){return e.handleModify(n)}},l.a.createElement(vr,{id:"table.modify"})),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"table.delete.sure"}),onConfirm:function(){return e.handleDel(n.id)}},l.a.createElement("a",null,l.a.createElement(vr,{id:"table.delete"}))))}}]}))}}]),n}(s.Component);Da.contextTypes={getSelectedNode:Rn.a.func};var Na=Pi(Object(va.DragDropContext)(ba.a)(Oe(Da)),{visible:!0}),ja=n(115),La=n(139),$a=n.n(La);n(373),n(374);function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ia(e){for(var t=1;t0)e.setState({countdown:n-1});else{var r=e.state.chartData,o=tt.a.cloneDeep(r),i=Er()();tt.a.each(o,(function(e){tt.a.each(e,(function(e){var t=e.configs;e.configs=os(os({},e.configs),as(i,t))}))})),e.setState({chartData:o,countdown:9})}t()}),1e3)}()},e.handleAddSubclass=function(){var t=e.state.subclassData,n=tt.a.get(e.props,"match.params.screenId");za({title:"新增分类",onOk:function(r){Vt("".concat(gt.screen,"/").concat(n,"/subclass"),{method:"POST",body:JSON.stringify(os(os({},r),{},{weight:t.length}))}).then((function(){gn.a.success("新增分类成功!"),e.fetchSubclass(e.props)}))}})},e.handleBatchMoveSubclass=function(){ns({data:e.state.subclassData,treeData:tt.a.cloneDeep(e.state.originTreeData),onOk:function(t){var n=tt.a.map(t.subclasses,(function(e){return{id:e,screen_id:t.screenId}}));Vt("".concat(gt.subclass,"es/loc"),{method:"PUT",body:JSON.stringify(n)}).then((function(){gn.a.success("批量移动分类成功!"),e.fetchSubclass(e.props)}))}})},e.handleModSubclass=function(t){Ga({title:"修改分类",name:t.name,onOk:function(n){Vt("".concat(gt.subclass),{method:"PUT",body:JSON.stringify([os(os({},n),{},{id:t.id})])}).then((function(){gn.a.success("修改分类成功!"),e.fetchSubclass(e.props)}))}})},e.handleDelSubclass=function(t){Vt("".concat(gt.subclass,"/").concat(t),{method:"DELETE"}).then((function(){gn.a.success("删除分类成功!"),e.fetchSubclass(e.props)}))},e.handleMoveSubclass=function(t,n){var r=e.state.subclassData,o=tt.a.map(r,(function(e){var r=e.weight;return"up"===t?(e.weight===n&&(r=n-1),e.weight===n-1&&(r=n)):"down"===t&&(e.weight===n&&(r=n+1),e.weight===n+1&&(r=n)),os(os({},e),{},{weight:r})}));Vt("".concat(gt.subclass),{method:"PUT",body:JSON.stringify(o)}).then((function(){gn.a.success("分类移动成功!"),e.setState({subclassData:tt.a.sortBy(o,"weight")})}))},e.handleAddChart=function(t){var n=e.state.chartData,r=tt.a.cloneDeep(n),o=r[e.currentSubclassId]||[];Vt("".concat(gt.subclass,"/").concat(e.currentSubclassId,"/chart"),{method:"POST",body:JSON.stringify({configs:JSON.stringify(os({},t)),weight:o.length})}).then((function(n){r[e.currentSubclassId]=tt.a.concat(o,[{configs:t,id:n,subclass_id:e.currentSubclassId,weight:o.length}]),e.setState({chartData:r})}))},e.handleModChart=function(t,n,r){Vt("".concat(gt.chart,"/").concat(n),{method:"PUT",body:JSON.stringify({subclass_id:r.subclassId,configs:JSON.stringify(r.configs)})}).then((function(){var o=e.state.chartData,i=tt.a.cloneDeep(o),a=tt.a.find(i[t],{id:n});a&&(a.subclass_id=r.subclassId,a.configs=r.configs),e.setState({chartData:i})}))},e.handleDelChart=function(t,n){var r=e.state.chartData,o=tt.a.cloneDeep(r),i=tt.a.findIndex(o[t],{id:n});o[t].splice(i,1),tt.a.each(o[t],(function(e,t){e.weight=t})),e.setState({chartData:o}),Vt("".concat(gt.chart,"/").concat(n),{method:"DELETE"}).then((function(){gn.a.success("删除图表成功!")}));var a=tt.a.map(o[t],(function(e){return{id:e.id,weight:e.weight}}));Vt("".concat(gt.chart,"s/weights"),{method:"PUT",body:JSON.stringify(a)})},e.handleGraphConfigChange=function(t,n){var r=n.subclassId;delete n.subclassId,tt.a.each(n.metrics,(function(e){delete e.key,delete e.metrics,delete e.tagkv,delete e.counterList})),"push"===t?e.handleAddChart(n):"update"===t&&e.handleModChart(r,n.id,{subclassId:r,configs:n})},e.handleTimeOptionChange=function(t){var n,r,o=Er()(),i=e.state.chartData,a=tt.a.cloneDeep(i),s=o.format("x");"custom"!==t?(n=o.clone().subtract(Number(t),"ms").format("x"),r=o.format("x")):(n=o.clone().subtract(2,"hour").format("x"),r=Er()().format("x")),tt.a.each(a,(function(e){tt.a.each(e,(function(e){e.configs=os(os({},e.configs),{},{now:s,end:r,start:n})}))})),e.setState({chartData:a,now:s,start:n,end:r})},e.handleDateChange=function(t,n){var r=e.state.chartData,o=tt.a.cloneDeep(r),i=tt.a.isDate(n)?tt.a.toString(n.getTime()):null;tt.a.each(o,(function(e){tt.a.each(e,(function(e){e.configs=os(os({},e.configs),{},pt()({},t,i))}))})),e.setState(pt()({chartData:o},t,i))},e.renderSubclass=function(t,n){var r=e.state,o=r.chartData,i=r.subclassData,a=o[t.id];return l.a.createElement(Yt.a,{key:t.id,type:"inner",className:"ant-card-compact mb10",bodyStyle:{padding:10},title:t.name,extra:l.a.createElement("span",null,l.a.createElement("a",{onClick:function(){e.graphConfigForm&&(e.currentSubclassId=t.id,e.graphConfigForm.showModal("push",e.props.intl.formatMessage({id:"table.create"})))}},l.a.createElement(vr,{id:"screen.tag.graph.add"})),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement("a",{onClick:function(){return e.handleModSubclass(t)}},l.a.createElement(vr,{id:"table.modify"})),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"table.delete.sure"}),onConfirm:function(){return e.handleDelSubclass(t.id)}},l.a.createElement("a",null,l.a.createElement(vr,{id:"table.delete"}))),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement("a",{disabled:0===n,onClick:function(){return e.handleMoveSubclass("up",n)}},l.a.createElement(vr,{id:"screen.tag.up"})),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement("a",{disabled:n===i.length-1,onClick:function(){return e.handleMoveSubclass("down",n)}},l.a.createElement(vr,{id:"screen.tag.down"})))},l.a.createElement(Za,{axis:"xy",useDragHandle:!0,data:a,colNum:e.state.colNum,graphsInstance:e.graphs,graphConfigForm:e.graphConfigForm,subclassData:e.state.subclassData,originTreeData:e.state.originTreeData,onDelChart:function(n){return e.handleDelChart(t.id,n)},onSortEnd:function(n){var r=n.oldIndex,o=n.newIndex,i=tt.a.sortBy(tt.a.map(a,(function(e,t){var n=e.weight;return t===r&&(n=a[o].weight),rr&&t<=o&&(n=e.weight-1),r>o&&t>=o&&t-1&&(b=l.a.createElement("strong",{style:{color:"#2DB7F5"}},o));var C=l.a.createElement("span",null,v,b);if(m>-1){var k=h.substring(p+2,m);C=l.a.createElement("span",null,C,k,w)}if("nodata"!==a){var O=m>-1?m:p,S=h.substring(O+2,g);C=l.a.createElement("span",null,C,S,E,y)}else{var x=h.substring(p+2);C=l.a.createElement("span",null,C,x)}return l.a.createElement("div",null,!e&&l.a.createElement("span",{style:{color:"#999"}},l.a.createElement(vr,{id:"stra.preview"}),":"),l.a.createElement("span",{style:{paddingRight:5}},i||"${metric}"),C)}},{key:"renderFuncParams",value:function(e){var t=this,n=this.props.value,r=n.func,o=n.params,i=void 0===o?[]:o,a=["diff","pdiff"].indexOf(r)>-1?2:1,s=tt.a.toNumber(i[e]);return 0===e?"c_avg_rate_abs"===r||"c_avg_rate"===r||"c_avg_abs"===r||"c_avg"===r?(s=tt.a.toString(1!==i[e]?i[e]:86400),l.a.createElement(Wo.a,{style:{display:"inline-block",width:80,marginRight:8},value:s,onChange:function(n){t.handleParamsChange(e,tt.a.toNumber(n))}},l.a.createElement(Ms,{value:"86400"},"1"),l.a.createElement(Ms,{value:"604800"},"7"))):"happen"===r||"ndiff"===r?l.a.createElement(ei.a,{key:e,value:s,min:a,max:tt.a.toNumber(i[0]),style:{display:"inline-block"},onChange:function(n){t.handleParamsChange(e,n)}}):l.a.createElement("span",null,"不是合法的 param"):l.a.createElement("span",null,"不是合法的 param")}},{key:"renderParams",value:function(){var e=this,t=this.props.value;return"canary"===t.func?null:l.a.createElement("div",{style:{marginTop:5}},tt.a.map(tt.a.get(Ss[t.func],"params",[]),(function(t,n){return l.a.createElement("div",{key:t,style:{display:"inline-block",verticalAlign:"top"}},l.a.createElement("span",{style:{color:0===n?"#2DB7F5":"#FFB727"}},t),l.a.createElement("span",{style:{marginRight:8,marginLeft:2}},":"),e.renderFuncParams(n))})),"nodata"!==t.func&&l.a.createElement("div",{style:{display:"inline-block"}},l.a.createElement("div",{style:{display:"inline-block",verticalAlign:"top"}},l.a.createElement("span",{style:{color:"#FF6F27"}},"v"),l.a.createElement("span",{style:{marginRight:8,marginLeft:2}},":"),l.a.createElement(Wo.a,{size:"default",style:{width:70},value:t.eopt,onChange:this.handleEoptChange},l.a.createElement(Ms,{value:"="},"="),l.a.createElement(Ms,{value:">"},">"),l.a.createElement(Ms,{value:">="},">="),l.a.createElement(Ms,{value:"<"},"<"),l.a.createElement(Ms,{value:"<="},"<="),l.a.createElement(Ms,{value:"!="},"!="))),l.a.createElement("div",{style:{display:"inline-block",marginLeft:10}},l.a.createElement(ei.a,{size:"default",step:.01,value:t.threshold,onChange:this.handleThresholdChange}))))}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.metrics,r=e.renderHeader,o=e.renderFooter,i=e.metricError;return l.a.createElement(Yt.a,{bodyStyle:{padding:10},style:{marginTop:10}},l.a.createElement("div",{className:"expression-headerExtra"},r(t)),l.a.createElement("div",{className:"expression-content"},l.a.createElement("div",null,l.a.createElement("div",{className:i&&"has-error",style:{display:"inline-block",verticalAlign:"top"}},l.a.createElement(Wo.a,{mode:"combobox",notFoundContent:"",size:"default",style:{width:250},placeholder:"Metric name",defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!1,showSearch:!0,value:t.metric,onChange:this.handleMetricChange},tt.a.map(n,(function(e){return l.a.createElement(Ms,{key:e,value:e},e)}))),l.a.createElement("div",{className:"ant-form-explain"},i)),l.a.createElement(Wo.a,{style:{width:220,marginLeft:10},size:"default",value:t.func,onChange:this.handleFuncChange},tt.a.map(Ss,(function(e,t){return l.a.createElement(Ms,{key:t,value:t},e.label," - ",t)})))),this.renderParams()),this.renderPreview(),"all"===t.func?l.a.createElement("div",{style:{color:"#f50",lineHeight:1}},l.a.createElement(vr,{id:"stra.preview.all.help"})):null,l.a.createElement("div",{className:"expression-footerExtra"},o(t)))}}]),n}(s.Component);Rs.propTypes=Ts(Ts({},Ps),{},{value:Rn.a.object,metricError:Rn.a.string}),Rs.defaultProps=Ts(Ts({},_s),{},{value:xs,metricError:""});var Ds=Oe(Rs);n(375);function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function js(e){for(var t=1;t0?e[0].tagkv:[],"tagk"),o={};tt.a.each(n,(function(e){e&&e.tagk&&e.tagv&&(o[e.tagk]=tt.a.sortBy(e.tagv))})),t.currentMetric=r,t.setState({tags:o})}))}}},{key:"fetchNotifyData",value:(t=dt()(ut.a.mark((function e(){var t,n,r,o,i,a,s=arguments;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=s.length>1&&void 0!==s[1]?s[1]:{},this.setState({notifyDataLoading:!0}),e.prev=3,r=rn.a.stringify(Cl({limit:1e3},t)),o=rn.a.stringify(Cl({limit:1e3},n)),e.next=8,Vt("".concat(gt.team,"?").concat(r));case 8:return i=e.sent,e.next=11,Vt("".concat(gt.user,"?").concat(o));case 11:a=e.sent,this.setState({notifyGroupData:i.list,notifyUserData:a.list}),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),console.log(e.t0);case 18:this.setState({notifyDataLoading:!1});case 19:case"end":return e.stop()}}),e,this,[[3,15]])}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props.form,n=t.getFieldDecorator,r=t.getFieldValue,o=t.setFieldsValue,i={labelCol:{span:4},wrapperCol:{span:16}};return n("category",{initialValue:1}),l.a.createElement(tn.a,{className:"".concat(Ti,"-strategy-form"),layout:"horizontal",onSubmit:this.handleSubmit},l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.name"})}),n("name",{initialValue:this.props.initialValues.name,rules:[{required:!0}]})(l.a.createElement(Qt.a,null))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.node"})}),n("nid",{initialValue:this.props.initialValues.nid,onChange:function(t){e.handleNsChange(t),o({exclude_nid:[]})}})(l.a.createElement(gi.a,{showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:400,overflow:"auto"}},Wn(this.state.treeData)))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.node.exclude"})}),n("excl_nid",{initialValue:this.props.initialValues.excl_nid})(l.a.createElement(gi.a,{multiple:!0,showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:400,overflow:"auto"}},Wn(this.state.excludeTreeData)))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(Fo.a,{title:l.a.createElement("div",null,l.a.createElement(vr,{id:"stra.priority.1.tip"}),l.a.createElement("br",null),l.a.createElement(vr,{id:"stra.priority.2.tip"}),l.a.createElement("br",null),l.a.createElement(vr,{id:"stra.priority.3.tip"}))},l.a.createElement("span",null,l.a.createElement(vr,{id:"stra.priority"})," ",l.a.createElement(wt.a,{type:"info-circle-o"}))),required:!0}),n("priority",{initialValue:this.props.initialValues.priority||3})(l.a.createElement(Ol,{size:"default"},tt.a.map({1:{alias:l.a.createElement(vr,{id:"stra.priority.1"}),color:"red"},2:{alias:l.a.createElement(vr,{id:"stra.priority.2"}),color:"yellow"},3:{alias:l.a.createElement(vr,{id:"stra.priority.3"}),color:"blue"}},(function(e,t){return l.a.createElement(Os.a,{key:t,value:Number(t)},e.alias)}))))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.alertDur"})}),n("alert_dur",{initialValue:void 0!==this.props.initialValues.alert_dur?this.props.initialValues.alert_dur:180})(l.a.createElement(ei.a,{min:0})),l.a.createElement(vr,{id:"stra.seconds"})),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.trigger"}),validateStatus:"success",help:""}),n("exprs",{initialValue:this.props.initialValues.exprs||[$s.defaultExpressionValue],onChange:this.handleExpressionsChange,rules:[{validator:$s.checkExpressions}]})(l.a.createElement($s,{alertDuration:r("alert_dur"),headerExtra:l.a.createElement("div",null,"headerExtra"),metrics:this.state.metrics}))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.tag"})}),n("tags",{initialValue:this.props.initialValues.tags||[]})(l.a.createElement(el,{tags:this.state.tags}))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.action"}),validateStatus:"success",help:""}),n("action",{initialValue:this.props.initialValues.action||ol.defaultValue,rules:[{validator:ol.checkActions}]})(l.a.createElement(ol,{loading:this.state.notifyDataLoading,notifyGroupData:this.state.notifyGroupData,notifyUserData:this.state.notifyUserData,fetchNotifyData:this.fetchNotifyData.bind(this)}))),l.a.createElement(lr.a,{style:{marginBottom:10}},l.a.createElement(ur.a,{offset:4},l.a.createElement("a",{onClick:function(){e.setState({advanced:!e.state.advanced})}},l.a.createElement(vr,{id:"stra.advanced"})," ",l.a.createElement(wt.a,{type:this.state.advanced?"up":"down"})))),l.a.createElement("div",{style:{display:this.state.advanced?"block":"none"}},l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.recovery.dur"})}),n("recovery_dur",{initialValue:void 0!==this.props.initialValues.recovery_dur?this.props.initialValues.recovery_dur:0})(l.a.createElement(ei.a,{min:0})),l.a.createElement(vr,{id:"stra.seconds"})," (",l.a.createElement(vr,{id:"stra.recovery.dur.help.1"})," ",r("recovery_dur")," ",l.a.createElement(vr,{id:"stra.recovery.dur.help.2"})," )"),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.recovery.notify"})}),n("recovery_notify",{initialValue:void 0!==this.props.initialValues.recovery_notify&&!this.props.initialValues.recovery_notify,valuePropName:"checked"})(l.a.createElement(Xt.a,null,l.a.createElement(vr,{id:"stra.recovery.notify.checkbox"})))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.period.time"})}),n("period_time",{initialValue:this.props.initialValues.period_time||dl.defaultValue})(l.a.createElement(dl,null))),l.a.createElement(kl,fn()({},i,{label:l.a.createElement(vr,{id:"stra.alert.upgrade"}),validateStatus:"success",help:""}),n("alert_upgrade",{initialValue:this.props.initialValues.alert_upgrade||gl.defaultValue,rules:[{validator:gl.checkAlarmUpgrade}]})(l.a.createElement(gl,{loading:this.state.notifyDataLoading,notifyGroupData:this.state.notifyGroupData,notifyUserData:this.state.notifyUserData,fetchNotifyData:this.fetchNotifyData.bind(this)})))),l.a.createElement(kl,{wrapperCol:{span:16,offset:4},style:{marginTop:24}},l.a.createElement(rt.a,{type:"primary",htmlType:"submit"},l.a.createElement(vr,{id:"form.submit"}))))}}]),o}(s.Component);Sl.contextTypes={habitsId:Rn.a.string},Sl.defaultProps={initialValues:{}};var xl=tn.a.create()(Oe(Sl));n(132);var Pl=Pi(Oe(function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==o[0]?o[0]:this.props,n=o.length>1?o[1]:void 0,this.setState({loading:!0}),e.next=5,this.fetchData(t,n);case 5:(r=e.sent)&&this.setState({data:tt.a.get(r,"data"),pagination:tt.a.get(r,"pagination")}),this.setState({loading:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchData",value:(t=dt()(ut.a.mark((function e(){var t,n,r,o,i,a,s,l,c,u,f,d=arguments;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[0]:this.props,n=d.length>1?d[1]:void 0,r=t.url,o=t.query,i=t.backendPagingEnabled,a=t.processData,r){e.next=5;break}return e.abrupt("return");case 5:return s=this.state.pagination,l={},i&&(l={limit:s.pageSize,p:s.current}),o&&(l=Ql(Ql({},l),o)),n&&(l=Ql(Ql({},l),n)),c=s,u=[],e.prev=12,e.next=15,Vt("".concat(r,"?").concat(rn.a.stringify(l)));case 15:if((f=e.sent)&&("total"in f?(c=Ql(Ql({},s),{},{current:s.current,total:f.total}),u=f.list):Array.isArray(f)&&(u=f)),!a){e.next=21;break}return e.next=20,a(u);case 20:u=e.sent;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),console.log(e.t0);case 26:return e.abrupt("return",{data:u,pagination:c});case 27:case"end":return e.stop()}}),e,this,[[12,23]])}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){return l.a.createElement(vo.a,fn()({size:"small",rowKey:"id",tableLayout:"fixed",loading:this.state.loading,pagination:Ql(Ql({},this.state.pagination),{},{showTotal:function(e){return"Total ".concat(e," items")},pageSizeOptions:at}),rowClassName:function(e,t){return t%2==1?"table-row-bg":""},dataSource:this.state.data,onChange:this.handleTableChange},this.props.tableProps))}}]),o}(s.Component);tc.defaultProps={backendPagingEnabled:!0};var nc="".concat(Ti,"-history"),rc=Wo.a.Option,oc=Qt.a.Search,ic=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(e){var r;Ot()(this,n),(r=t.call(this,e)).fetchTable=void 0,r.otherParamsKey=void 0,r.componentWillReceiveProps=function(e){!e.nodepath||e.nodepath===r.props.nodepath&&e.activeKey!==e.type||r.updateTime((function(){r.setState({nodepath:e.nodepath})}))},r.updateTime=function(e){var t=Er()(),n=r.state.etime-r.state.stime;r.setState({stime:t.clone().unix()-n,etime:t.clone().unix()},(function(){e&&e()}))},r.handleDelete=function(e){Vt("".concat(gt.event,"/cur/").concat(e),{method:"DELETE"}).then((function(){gn.a.success("忽略报警成功!"),r.fetchTable.reload()}))},r.handleClaim=function(e){Vt("".concat(r.getFetchDataUrl(),"s/claim"),{method:"POST",body:JSON.stringify({id:e})}).then((function(){gn.a.success("认领报警成功!"),r.fetchTable.reload()}))},r.handleClaimAll=function(){Vt("".concat(r.getFetchDataUrl(),"s/claim"),{method:"POST",body:JSON.stringify({nodepath:r.props.nodepath})}).then((function(){gn.a.success("一健认领报警成功!"),r.fetchTable.reload()}))};var o=Er()();return"alert"===e.type?r.otherParamsKey=["stime","etime","priorities","nodepath"]:r.otherParamsKey=["stime","etime","priorities","nodepath","type"],r.state={searchValue:"",data:[],loading:!1,customTime:!1,stime:o.clone().subtract(2,"hours").unix(),etime:o.clone().unix(),priorities:void 0,type:void 0,nodepath:e.nodepath},r}return xt()(n,[{key:"getFetchDataUrl",value:function(){var e=this.props,t=e.type;if(e.nodepath)return"".concat(gt.event,"alert"===t?"/cur":"/his")}},{key:"getQuery",value:function(){var e=this.props.nodepath,t=this.state;return{stime:t.stime,etime:t.etime,priorities:t.priorities,nodepath:e,type:t.type,query:t.searchValue}}},{key:"getColumns",value:function(){var e=this,t=[{title:l.a.createElement(vr,{id:"event.table.time"}),dataIndex:"etime",fixed:"left",width:100,render:function(e){return Er.a.unix(e).format("YYYY-MM-DD HH:mm:ss")}},{title:l.a.createElement(vr,{id:"event.table.stra"}),dataIndex:"sname",width:100,fixed:"left"},{title:l.a.createElement(vr,{id:"event.table.priority"}),dataIndex:"priority",width:50,render:function(e){var t=tt.a.find(Mi,{value:e});return l.a.createElement(Uo.a,{color:tt.a.get(t,"color")},tt.a.get(t,"label"))}},{title:"endpoint",dataIndex:"endpoint"},{title:"tags",dataIndex:"tags"},{title:l.a.createElement(vr,{id:"event.table.notify"}),dataIndex:"status",fixed:"right",width:70,render:function(e){return tt.a.join(e,", ")}},{title:l.a.createElement(vr,{id:"table.operations"}),fixed:"right",width:"zh"===this.props.intl.locale?100:130,render:function(t,n){return l.a.createElement("span",null,l.a.createElement(m.Link,{to:{pathname:"/monitor/history/".concat("alert"===e.props.type?"cur":"his","/").concat(n.id)},target:"_blank"},l.a.createElement(vr,{id:"table.detail"})),"alert"===e.props.type?l.a.createElement("span",null,l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"event.table.ignore.sure"}),onConfirm:function(){return e.handleDelete(n.id)}},l.a.createElement("a",null,l.a.createElement(vr,{id:"event.table.ignore"}))),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"event.table.claim.sure"}),onConfirm:function(){return e.handleClaim(n.id)}},l.a.createElement("a",null,l.a.createElement(vr,{id:"event.table.claim"})))):null,l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(m.Link,{to:{pathname:"/monitor/silence/add",search:"".concat("alert"===e.props.type?"cur":"his","=").concat(n.id,"&nid=").concat(e.props.nid)},target:"_blank"},l.a.createElement(vr,{id:"event.table.shield"})))}}];return"alert"===this.props.type&&t.splice(5,0,{title:l.a.createElement(vr,{id:"event.table.assignees"}),dataIndex:"claimants",width:50,fixed:"right",render:function(e){return tt.a.join(e,", ")}}),"all"===this.props.type&&t.splice(3,0,{title:l.a.createElement(vr,{id:"event.table.status"}),dataIndex:"event_type",width:70,render:function(e){var t=tt.a.find(Ri,{value:e})||{};return l.a.createElement("span",{style:{color:t.color}},l.a.createElement(Xl.a,{status:t.status}),l.a.createElement(vr,{id:"event.table.status.".concat(t.value)}))}}),t}},{key:"render",value:function(){var e=this,t=this.state,n=t.customTime,r=t.stime,o=t.etime,i=t.priorities,a=t.type,s=n?"custom":(o-r)/3600;return l.a.createElement("div",{className:nc},l.a.createElement("div",{className:"".concat(nc,"-operationbar"),style:{marginBottom:10}},l.a.createElement(lr.a,null,l.a.createElement(ur.a,{span:18},l.a.createElement(Wo.a,{style:{width:100,marginRight:8},value:s,onChange:function(t){if("custom"!==t){var n=Er()(),r=n.clone().subtract(t,"hours").unix(),o=n.clone().unix();e.setState({customTime:!1,stime:r,etime:o})}else e.setState({customTime:!0})}},tt.a.map(Di,(function(e){return l.a.createElement(rc,{key:e.value,value:e.value},l.a.createElement(vr,{id:e.label}))}))),n?l.a.createElement("span",null,l.a.createElement(Vo.a,{style:{marginRight:8},showTime:!0,format:"YYYY-MM-DD HH:mm:ss",value:Er.a.unix(r),placeholder:"Start",onChange:function(t){t&&e.setState({stime:t.unix()})}}),l.a.createElement(Vo.a,{style:{marginRight:8},showTime:!0,format:"YYYY-MM-DD HH:mm:ss",value:Er.a.unix(o),placeholder:"End",onChange:function(t){t&&e.setState({etime:t.unix()})}})):null,"all"===this.props.type?l.a.createElement(Wo.a,{style:{minWidth:90,marginRight:8},placeholder:this.props.intl.formatMessage({id:"event.table.status"}),allowClear:!0,value:a,onChange:function(t){e.updateTime((function(){e.setState({type:t})}))}},tt.a.map(Ri,(function(e){return l.a.createElement(rc,{key:e.value,value:e.value},l.a.createElement(vr,{id:"event.table.status.".concat(e.value)}))}))):null,l.a.createElement(Wo.a,{style:{minWidth:90,marginRight:8},placeholder:this.props.intl.formatMessage({id:"event.table.priority"}),allowClear:!0,mode:"multiple",value:i?tt.a.map(tt.a.split(i,","),tt.a.toNumber):[],onChange:function(t){e.updateTime((function(){e.setState({priorities:tt.a.isEmpty(t)?void 0:tt.a.join(t,",")})}))}},tt.a.map(Mi,(function(e){return l.a.createElement(rc,{key:e.value,value:e.value},e.label)}))),l.a.createElement(oc,{placeholder:"Search",style:{width:200},onSearch:function(t){e.setState({searchValue:t})}})),l.a.createElement(ur.a,{span:6,style:{textAlign:"right"}},"alert"===this.props.type?l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"event.table.claim.all.sure"}),onConfirm:function(){return e.handleClaimAll()}},l.a.createElement(rt.a,null,l.a.createElement(vr,{id:"event.table.claim.all"}))):null))),l.a.createElement("div",{className:"alarm-strategy-content"},l.a.createElement(tc,{ref:function(t){return e.fetchTable=t},url:this.getFetchDataUrl(),query:this.getQuery(),tableProps:{columns:this.getColumns(),scroll:{x:900}}})))}}]),n}(s.Component);ic.defaultProps={nodepath:void 0,nid:void 0};var ac=Oe(ic);var sc=Ai.a.TabPane,lc=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i36e5&&(i=o-36e5,o+=36e5);var a=tt.a.map(n.points,(function(e){return{value:1e3*e.timestamp,color:"red"}})),s=[{tagk:"endpoint",tagv:[t.endpoint]}];t.tags&&(s=tt.a.concat(s,tt.a.map(n.tags,(function(e,t){return{tagk:t,tagv:[e]}}))));var c=tt.a.get(this.props,"match.params.historyType"),u=tt.a.get(this.props,"match.params.historyId"),f=t.nid,d=[],h=[];return tt.a.forEach(t.detail,(function(e){d.push({id:(new Date).getTime(),start:i,end:o,xAxis:{plotLines:a},metrics:[{selectedNid:t.nid,selectedEndpoint:[t.endpoint],selectedMetric:e.metric,selectedTagkv:s}]}),h.push({metric:e.metric,points:e.points})})),l.a.createElement("div",{className:uc},l.a.createElement("div",{style:{border:"1px solid #e8e8e8"}},tt.a.map(d,(function(t){return l.a.createElement(xi,{height:250,graphConfigInnerVisible:!1,data:t,extraRender:function(n){return[l.a.createElement("span",{className:"graph-operationbar-item",key:"info"},l.a.createElement(jo,{graphConfig:n.getGraphConfig(n.props.data),counterList:n.counterList},l.a.createElement(wt.a,{type:"info-circle-o"}))),l.a.createElement("span",{className:"graph-extra-item",key:"more"},l.a.createElement(wt.a,{type:"arrows-alt",onClick:function(){e.handleShareGraph(t)}}))]}})}))),l.a.createElement("div",{className:"".concat(uc,"-detail mt10")},l.a.createElement(Yt.a,{title:l.a.createElement(vr,{id:"event.table.detail.title"}),bodyStyle:{padding:"10px 16px"},extra:l.a.createElement("span",null,l.a.createElement(m.Link,{to:{pathname:"/monitor/silence/add",search:"".concat(c,"=").concat(u,"&nid=").concat(f)}},l.a.createElement(vr,{id:"event.table.shield"})),"cur"===c?l.a.createElement("span",null,l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"event.table.claim.sure"}),onConfirm:function(){return e.handleClaim(u)}},l.a.createElement("a",null,l.a.createElement(vr,{id:"event.table.claim"})))):null)},l.a.createElement("div",{className:"".concat(uc,"-detail-list")},l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.stra"}),":"),l.a.createElement(m.Link,{target:"_blank",to:{pathname:"/monitor/strategy/".concat(t.sid)}},t.sname)),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.status"}),":"),tt.a.get(tt.a.find(Mi,{value:t.priority}),"label"),l.a.createElement("span",{style:{paddingLeft:8}},tt.a.get(tt.a.find(Ri,{value:t.event_type}),"label"))),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.notify"}),":"),tt.a.join(t.status,", ")),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.time"}),":"),Er.a.unix(t.etime).format("YYYY-MM-DD HH:mm:ss")),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.node"}),":"),t.node_path),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},"Endpoint:"),t.endpoint),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.metric"}),":"),tt.a.get(t.detail,"[0].metric")),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},"Tags:"),t.tags),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(vr,{id:"event.table.expression"}),":"),t.info),tt.a.map(h,(function(e){return l.a.createElement("div",null,l.a.createElement("div",{className:"label"},l.a.createElement(vr,{id:"event.table.scene"}),":"),e.metric,l.a.createElement(vo.a,{style:{display:"block",marginLeft:80},size:"small",rowKey:"timestamp",dataSource:e.points,columns:[{title:l.a.createElement(vr,{id:"event.table.scene.time"}),dataIndex:"timestamp",width:200,render:function(e){return l.a.createElement("span",null,Er.a.unix(e).format("YYYY-MM-DD HH:mm:ss"))}},{title:l.a.createElement(vr,{id:"event.table.scene.value"}),dataIndex:"value"},{title:"Extra",dataIndex:"extra"}],pagination:!1}))}))))))}}]),n}(s.Component))),hc={log:"日志",port:"端口",proc:"进程",plugin:"插件"},pc=[10,30,60,120,300,600,1800,3600],mc={pattern:/^[\u4e00-\u9fa5a-zA-Z0-9\.\-\_]{0,128}$/,message:"名称只允许 英文数字 . - _"};var gc=tn.a.Item,vc=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i-1}))),r&&(o=tt.a.filter(o,(function(e){return e.collect_type===r}))),o},e}return xt()(n,[{key:"fetchData",value:function(){var e=this;void 0!==this.selectedNodeId&&(this.setState({loading:!0}),Vt("".concat(gt.collect,"/list?nid=").concat(this.selectedNodeId)).then((function(t){e.setState({data:t})})).finally((function(){e.setState({loading:!1})})))}},{key:"render",value:function(){var e=this,t=this.filterData(),n=this.state.selectedRows,r=!tt.a.isEmpty(n);return l.a.createElement("div",null,l.a.createElement(lr.a,null,l.a.createElement(ur.a,{span:12,className:"mb10"},l.a.createElement(Wo.a,{allowClear:!0,style:{width:100,marginRight:8},className:"mr10",placeholder:this.props.intl.formatMessage({id:"collect.common.type"}),value:this.state.collectType,onChange:function(t){e.setState({collectType:t})}},tt.a.map(hc,(function(e,t){return l.a.createElement(Wo.a.Option,{key:t,value:t},l.a.createElement(vr,{id:"collect.".concat(t)}))}))),l.a.createElement(Qt.a.Search,{style:{width:200},onSearch:this.handleSearchChange})),l.a.createElement(ur.a,{span:12,style:{textAlign:"right"}},l.a.createElement(xn.a,{overlay:l.a.createElement(_n.a,null,tt.a.map(hc,(function(e,t){return l.a.createElement(_n.a.Item,{key:t},l.a.createElement(m.Link,{to:{pathname:"/monitor/collect/add/".concat(t)}},l.a.createElement(vr,{id:"collect.".concat(t)})))})))},l.a.createElement(rt.a,{style:{marginRight:8}},l.a.createElement(vr,{id:"table.create"})," ",l.a.createElement(wt.a,{type:"down"}))),l.a.createElement(xn.a,{overlay:l.a.createElement(_n.a,null,l.a.createElement(_n.a.Item,null,l.a.createElement(rt.a,{type:"link",disabled:!r,onClick:this.handleBatchDelete},l.a.createElement(vr,{id:"table.delete"}))),l.a.createElement(_n.a.Item,null,l.a.createElement(rt.a,{type:"link",disabled:!r,onClick:this.handleBatchCloneToOtherNid},l.a.createElement(vr,{id:"clone.to.other.node"}))))},l.a.createElement(rt.a,null,l.a.createElement(vr,{id:"table.batch.operations"})," ",l.a.createElement(wt.a,{type:"down"}))))),l.a.createElement(vo.a,{rowKey:function(e){return e.id+e.collect_type},rowSelection:{selectedRowKeys:this.state.selectedRowKeys,onChange:function(t,n){e.setState({selectedRowKeys:t,selectedRows:n})}},dataSource:t,columns:[{title:l.a.createElement(vr,{id:"collect.common.name"}),dataIndex:"name"},{title:l.a.createElement(vr,{id:"collect.common.type"}),dataIndex:"collect_type",render:function(e){return l.a.createElement(vr,{id:"collect.".concat(e)})}},{title:l.a.createElement(vr,{id:"collect.common.creator"}),dataIndex:"creator"},{title:l.a.createElement(vr,{id:"collect.common.last_updated"}),dataIndex:"last_updated",render:function(e){return Er()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:l.a.createElement(vr,{id:"table.operations"}),render:function(t,n){return l.a.createElement("span",null,l.a.createElement(m.Link,{to:{pathname:"/monitor/collect/modify/".concat(tt.a.lowerCase(n.collect_type),"/").concat(n.id)}},l.a.createElement(vr,{id:"table.modify"})),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(m.Link,{to:{pathname:"/monitor/collect/clone/".concat(tt.a.lowerCase(n.collect_type),"/").concat(n.id)}},l.a.createElement(vr,{id:"table.clone"})),l.a.createElement(ga.a,{type:"vertical"}),l.a.createElement(pa.a,{title:l.a.createElement(vr,{id:"table.delete.sure"}),onConfirm:function(){e.handleDelete(n)}},l.a.createElement("a",null,l.a.createElement(vr,{id:"table.delete"}))))}}]}))}}]),n}(s.Component);Ec.contextTypes={getNodes:Rn.a.func,getSelectedNode:Rn.a.func};var Cc=Pi(Oe(Ec),{visible:!0});function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];n.current=[],t.current=-1,a((function(){return(e||[]).forEach((function(e,t){r(t)})),e||[]}))}}}(t.env),c=a.list,u=a.remove,f=a.getKey,d=a.push,h=a.resetList;Object(s.useEffect)((function(){h(t.env)}),[JSON.stringify(t.env)]),o("collect_type",{initialValue:t.collect_type});var g=Object(s.useState)(!1),v=p()(g,2),y=v[0],b=v[1];return l.a.createElement(tn.a,{layout:"horizontal",onSubmit:function(t){t.preventDefault(),e.form.validateFields((function(t,n){if(t)console.error(t);else{if(b(!0),n.env){var r=n.env,o={};tt.a.forEach(r,(function(e){o[e.name]=e.value})),n.env=JSON.stringify(o)}e.onSubmit(n).catch((function(){b(!1)}))}}))}},l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.common.node"})}),o("nid",{initialValue:t.nid,rules:[{required:!0}]})(l.a.createElement(gi.a,{style:{width:500},showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:400,overflow:"auto"}},Wn(e.treeData)))),l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.common.name"})}),l.a.createElement(Qt.a,fn()({},r("name",{initialValue:t.name,rules:[{required:!0},mc]}),{size:"default",style:{width:500},placeholder:e.intl.formatMessage({id:"collect.plugin.name.placeholder"})}))),l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.plugin.filepath"})}),l.a.createElement(Qt.a,fn()({},r("file_path",{initialValue:t.file_path,rules:[{required:!0}]}),{style:{width:500},placeholder:e.intl.formatMessage({id:"collect.plugin.filepath.placeholder"})}))),l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.plugin.params"})}),l.a.createElement(Qt.a,fn()({},r("params",{initialValue:t.params}),{style:{width:500}}))),l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.plugin.env"})}),tt.a.map(c,(function(e,t){return l.a.createElement(lr.a,{key:f(t),gutter:10},l.a.createElement(ur.a,{span:9},l.a.createElement(lu,null,o("env[".concat(f(t),"].name"),{initialValue:e.name,rules:[{required:!0}]})(l.a.createElement(Qt.a,{placeholder:"field name",style:{width:"100%"}})))),l.a.createElement(ur.a,{span:10},l.a.createElement(lu,null,o("env[".concat(f(t),"].value"),{initialValue:e.value,rules:[{required:!0}]})(l.a.createElement(Qt.a,{placeholder:"field value",style:{width:"100%"}})))),l.a.createElement(ur.a,{span:5},c.length>0&&l.a.createElement(wt.a,{type:"minus-circle-o",style:{marginLeft:8},onClick:function(){u(t)}})))})),l.a.createElement(wt.a,{type:"plus-circle-o",style:{marginLeft:8},onClick:function(){d({name:"",value:""})}})),l.a.createElement(lu,fn()({},uu,{label:"Stdin"}),l.a.createElement(su,fn()({placeholder:""},r("stdin",{initialValue:t.stdin}),{style:{width:500,height:200}}))),l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.common.step"})}),l.a.createElement(Wo.a,fn()({size:"default",style:{width:100}},r("step",{initialValue:t.step,rules:[{required:!0}]})),tt.a.map(pc,(function(e){return l.a.createElement(cu,{key:e,value:e},e)})))," ",l.a.createElement(vr,{id:"collect.common.step.unit"})),l.a.createElement(lu,fn()({},uu,{label:l.a.createElement(vr,{id:"collect.common.note"})}),l.a.createElement(Qt.a,fn()({type:"textarea",placeholder:""},r("comment",{initialValue:t.comment}),{style:{width:500}}))),l.a.createElement(lu,{wrapperCol:{offset:6},style:{marginTop:24}},l.a.createElement(rt.a,{type:"primary",htmlType:"submit",loading:y},l.a.createElement(vr,{id:"form.submit"})),l.a.createElement(rt.a,{style:{marginLeft:8}},l.a.createElement(m.Link,{to:{pathname:"/monitor/collect"}},l.a.createElement(vr,{id:"form.goback"})))))})))};function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"export",n=bu.a.utils.book_new(),r=bu.a.utils.json_to_sheet(e);bu.a.utils.book_append_sheet(n,r,t),bu.a.writeFile(n,"".concat(t,".xlsx"))}var Eu=function(e){_t()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=Rt()(e);if(t()){var o=Rt()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt()(this,n)}}(n);function n(){var e;Ot()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:"";r.lastFetchId+=1;var t=r.lastFetchId;r.setState({users:[],fetching:!0}),Vt("".concat(gt.user,"?limit=1000&query=").concat(e)).then((function(e){t===r.lastFetchId&&r.setState({users:e.list,fetching:!1})}))},r.fetchUser=tt.a.debounce(r.fetchUser,500),r}return xt()(n,[{key:"componentDidMount",value:function(){this.fetchUser()}},{key:"validateFields",value:function(){return this.props.form.validateFields}},{key:"renderUserSelect",value:function(){var e=this,t=this.state,n=t.users,r=t.fetching;return l.a.createElement(Wo.a,{mode:"multiple",showSearch:!0,filterOption:!1,notFoundContent:r?l.a.createElement(Jn.a,{size:"small"}):null,onSearch:this.fetchUser,onDropdownVisibleChange:function(t){t||e.fetchUser()}},tt.a.map(n,(function(e){return l.a.createElement(Of,{key:e.id,value:e.id},e.username)})))}},{key:"render",value:function(){var e=this.props.initialValue,t=this.props.form,n=t.getFieldDecorator,r=t.getFieldValue;return l.a.createElement(tn.a,{layout:"vertical"},l.a.createElement(Cf,{label:l.a.createElement(vr,{id:"team.ident"}),required:!0},n("ident",{initialValue:e.ident,rules:[{required:!0}]})(l.a.createElement(Qt.a,null))),l.a.createElement(Cf,{label:l.a.createElement(vr,{id:"team.name"}),required:!0},n("name",{initialValue:e.name,rules:[{required:!0}]})(l.a.createElement(Qt.a,null))),l.a.createElement(Cf,{label:l.a.createElement(vr,{id:"team.mgmt"}),required:!0},n("mgmt",{initialValue:e.mgmt||0,rules:[{required:!0}]})(l.a.createElement(kf,null,l.a.createElement(Os.a,{value:0},l.a.createElement(vr,{id:"team.mgmt.member"})),l.a.createElement(Os.a,{value:1},l.a.createElement(vr,{id:"team.mgmt.admin"}))))),1===r("mgmt")?l.a.createElement(Cf,{label:l.a.createElement(vr,{id:"team.admins"})},n("admins",{initialValue:e.admins,rules:[{required:1===r("mgmt")}]})(this.renderUserSelect())):null,l.a.createElement(Cf,{label:l.a.createElement(vr,{id:"team.members"})},n("members",{initialValue:e.members})(this.renderUserSelect())))}}]),n}(s.Component);Sf.defaultProps={initialValue:{}};var xf=tn.a.create()(Sf);function Pf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t children");r=e}})),r}var N={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},j={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},L=[],$=[];function F(e,t,n){e.addEventListener(t,n,!1)}function I(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete N.animationstart.animation,delete j.animationend.animation),"TransitionEvent"in window||(delete N.transitionstart.transition,delete j.transitionend.transition),t(N,L),t(j,$)}();var V={startEvents:L,addStartEventListener:function(e,t){0!==L.length?L.forEach((function(n){F(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==L.length&&L.forEach((function(n){I(e,n,t)}))},endEvents:$,addEndEventListener:function(e,t){0!==$.length?$.forEach((function(n){F(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==$.length&&$.forEach((function(n){I(e,n,t)}))}},B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W=0!==V.endEvents.length,H=["Webkit","Moz","O","ms"],z=["-webkit-","-moz-","-o-","ms-",""];function K(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o children");return o.a.createElement(te,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=ne({className:t.className,style:t.style},t.componentProps)),o.a.createElement(i,a,r)}return r[0]||null}}]),t}(o.a.Component);se.isAnimate=!0,se.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:ae,onEnter:ae,onLeave:ae,onAppear:ae};var le=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=M(ie(r));e.isValidChildByKey(o,t)?"appear"===n?J.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):J.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,a,s=M(ie(n));if(e.isValidChildByKey(s,t))e.performEnter(t);else{var l=function(){J.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=s,i=n.showProp,(a=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(a=!1)})),a?l():e.setState({children:s},l)}}}},ce=T(se),ue=n(58),fe=n.n(ue),de=function(e){function t(){return w()(this,t),C()(this,e.apply(this,arguments))}return O()(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=fe()(e,["hiddenClassName","visible"]);return t||o.a.Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),o.a.createElement("div",r)):o.a.Children.only(r.children)},t}(r.Component);de.propTypes={children:l.a.any,className:l.a.string,visible:l.a.bool,hiddenClassName:l.a.string};var he=de,pe=function(e){function t(){return w()(this,t),C()(this,e.apply(this,arguments))}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),o.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:e.style},o.a.createElement(he,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(r.Component);pe.propTypes={hiddenClassName:l.a.string,className:l.a.string,prefixCls:l.a.string,onMouseEnter:l.a.func,onMouseLeave:l.a.func,children:l.a.any};var me=pe;function ge(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ve(e,t){this[e]=t}var ye=function(e){function t(n){w()(this,t);var r=C()(this,e.call(this,n));return be.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=ve.bind(r,"popupInstance"),r.saveAlignRef=ve.bind(r,"alignInstance"),r}return O()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return a.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,i=n.targetHeight,a=n.targetWidth,s=this.props,l=s.align,c=s.visible,u=s.prefixCls,f=s.style,d=s.getClassNameFromAlign,h=s.destroyPopupOnHide,m=s.stretch,g=s.children,v=s.onMouseEnter,b=s.onMouseLeave,w=this.getClassName(this.currentAlignClassName||d(l)),E=u+"-hidden";c||(this.currentAlignClassName=null);var C={};m&&(-1!==m.indexOf("height")?C.height=i:-1!==m.indexOf("minHeight")&&(C.minHeight=i),-1!==m.indexOf("width")?C.width=a:-1!==m.indexOf("minWidth")&&(C.minWidth=a),r||(C.visibility="hidden",p()((function(){e.alignInstance&&e.alignInstance.forceAlign()}))));var k={className:w,prefixCls:u,ref:t,onMouseEnter:v,onMouseLeave:b,style:y()({},C,f,this.getZIndexStyle())};return h?o.a.createElement(ce,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),onLeave:this.onAnimateLeaved},c?o.a.createElement(A.default,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:l,onAlign:this.onAlign},o.a.createElement(me,y()({visible:!0},k),g)):null):o.a.createElement(ce,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible",onLeave:this.onAnimateLeaved},o.a.createElement(A.default,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:c,childrenProps:{visible:"xVisible"},disabled:!c,align:l,onAlign:this.onAlign},o.a.createElement(me,y()({hiddenClassName:E},k),g)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=o.a.createElement(he,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=o.a.createElement(ce,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return o.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(r.Component);ye.propTypes={visible:l.a.bool,style:l.a.object,getClassNameFromAlign:l.a.func,onAlign:l.a.func,getRootDomNode:l.a.func,onMouseEnter:l.a.func,align:l.a.any,destroyPopupOnHide:l.a.bool,className:l.a.string,prefixCls:l.a.string,onMouseLeave:l.a.func,stretch:l.a.string,children:l.a.node,point:l.a.shape({pageX:l.a.number,pageY:l.a.number})};var be=function(){var e=this;this.onAlign=function(t,n){var r=e.props,o=r.getClassNameFromAlign(n);e.currentAlignClassName!==o&&(e.currentAlignClassName=o,t.className=e.getClassName(o)),r.onAlign(t,n)},this.onAnimateLeaved=function(){var t=e.props.stretch,n=e.state.stretchChecked;t&&n&&e.setState({stretchChecked:!1})},this.setStretchSize=function(){var t=e.props.getRootDomNode,n=e.state,r=n.stretchChecked,o=n.targetHeight,i=n.targetWidth,a=t();if(a){var s=a.offsetHeight,l=a.offsetWidth;o===s&&i===l&&r||e.setState({stretchChecked:!0,targetHeight:s,targetWidth:l})}},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}},we=ye;function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var n=0;n-1}var Je="SHOW_ALL",Xe="SHOW_PARENT",Ze="SHOW_CHILD";function Qe(){return(Qe=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map(dn)}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=hn(e),a=hn(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var mn=Object.keys(un.a);var gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:un.b,n=function(n){function r(){var e,t,n,o;w()(this,r);for(var i=arguments.length,a=Array(i),s=0;sn&&(u="".concat(u.slice(0,n),"...")),o.a.createElement("li",vn({style:bn({},at,{},i)},st,{role:"menuitem",className:Fe()("".concat(t,"-selection__choice"),r),title:ot(a)}),l&&o.a.createElement("span",{className:"".concat(t,"-selection__choice__remove"),onClick:this.onRemove},"function"==typeof c?o.a.createElement(c,bn({},this.props)):c),o.a.createElement("span",{className:"".concat(t,"-selection__choice__content")},u))}}])&&En(n.prototype,r),i&&En(n,i),t}(o.a.Component);xn(Pn,"propTypes",{prefixCls:l.a.string,maxTagTextLength:l.a.number,onRemove:l.a.func,className:l.a.string,style:l.a.object,label:l.a.node,value:l.a.oneOfType([l.a.string,l.a.number]),removeIcon:l.a.oneOfType([l.a.node,l.a.func])});var _n=Pn;function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tn(e,t){for(var n=0;n=0&&(p=t.slice(0,s)),p.forEach((function(e){var t=e.label,n=e.value,r=((u[n]||{}).node||{}).props,o=(r=void 0===r?{}:r).disabled;h.push({key:n,type:"selector",label:t,value:n,disabled:o})})),s>=0&&s1&&void 0!==arguments[1]&&arguments[1],r=n.props.onDropdownVisibleChange;r&&!1===r(e,{documentClickClose:!e&&t})||n.setUncontrolledState({open:e})})),Or(Cr(n),"isMultiple",(function(){var e=n.props,t=e.multiple,r=e.treeCheckable;return!(!t&&!r)})),Or(Cr(n),"isLabelInValue",(function(){return ut(n.props)})),Or(Cr(n),"isSearchValueControlled",(function(){var e=n.props.inputValue;return"searchValue"in n.props||"inputValue"in n.props&&null!==e})),Or(Cr(n),"forcePopupAlign",(function(){var e=n.selectTriggerRef.current;e&&e.forcePopupAlign()})),Or(Cr(n),"delayForcePopupAlign",(function(){p()((function(){p()(n.forcePopupAlign)}))})),Or(Cr(n),"triggerChange",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.state,i=o.valueEntities,a=o.searchValue,s=o.selectorValueList,l=n.props,c=l.onChange,u=l.disabled,f=l.treeCheckable,d=l.treeCheckStrictly;if(!u){var h=br({preValue:s.map((function(e){return{label:e.label,value:e.value}}))},r),p=mt(t,n.props,i);if(!("value"in n.props)){var m={missValueList:e,valueList:t,selectorValueList:p};a&&f&&!d&&(m.searchHalfCheckedKeys=wt(t,i)),n.setState(m)}if(c){var g;g=n.isMultiple()?[].concat(vr(e),vr(p)):p.slice(0,1);var v,y=null;n.isLabelInValue()?v=g.map((function(e){return{label:e.label,value:e.value}})):(y=[],v=g.map((function(e){var t=e.label,n=e.value;return y.push(t),n}))),n.isMultiple()||(v=v[0]),c(v,y,h)}}}));var r,o=e.prefixAria,i=e.defaultOpen,a=e.open;return n.state={open:a||i,valueList:[],searchHalfCheckedKeys:[],missValueList:[],selectorValueList:[],valueEntities:{},keyEntities:{},searchValue:"",init:!0},n.selectorRef=it(),n.selectTriggerRef=it(),n.ariaId=(r="".concat(o,"-list"),ct+=1,"".concat(r,"_").concat(ct)),n}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kr(e,t)}(t,e),n=t,a=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=void 0===n?{}:n,o=e.treeCheckable,i=e.treeCheckStrictly,a=e.filterTreeNode,s=e.treeNodeFilterProp,l=e.treeDataSimpleMode,c={prevProps:e,init:!1};function u(t,n){return r[t]!==e[t]&&(n(e[t],r[t]),!0)}var f,h=!1;u("open",(function(e){c.open=e}));var p,m,g,v,y,b,w,E=!1,C=!1;if(u("treeData",(function(e){f=vt(e),E=!0})),u("treeDataSimpleMode",(function(e,t){if(e){var n=t&&!0!==t?t:{};d()(e,n)||(C=!0)}})),l&&(E||C)){var k=br({id:"id",pId:"pId",rootPId:null},!0!==l?l:{});f=vt((p=e.treeData,g=(m=k).id,v=m.pId,y=m.rootPId,b={},w=[],p.map((function(e){var t=tt({},e),n=t[g];return b[n]=t,t.key=t.key||n,t})).forEach((function(e){var t=e[v],n=b[t];n&&(n.children=n.children||[],n.children.push(e)),(t===y||!n&&null===y)&&w.push(e)})),w))}if(e.treeData||u("children",(function(e){f=Array.isArray(e)?e:[e]})),f){var O=function(e){return Object(Ge.h)(e,{initWrapper:yt,processEntity:bt})}(f);c.treeNodes=f,c.posEntities=O.posEntities,c.valueEntities=O.valueEntities,c.keyEntities=O.keyEntities,h=!0}if(t.init&&u("defaultValue",(function(t){c.valueList=ht(t,e),h=!0})),u("value",(function(t){c.valueList=ht(t,e),h=!0})),h){var S=[],x=[],P=[],_=c.valueList;_||(_=[].concat(vr(t.valueList),vr(t.missValueList)));var A={};if(_.forEach((function(e){var n=e.value,r=e.label,o=(c.valueEntities||t.valueEntities)[n];if(A[n]=r,o)return P.push(o.key),void x.push(e);S.push(e)})),o&&!i){var T=Et(P,!0,c.keyEntities||t.keyEntities).checkedKeys;c.valueList=T.map((function(e){var n=(c.keyEntities||t.keyEntities)[e].value,r={value:n};return void 0!==A[n]&&(r.label=A[n]),r}))}else c.valueList=x;c.missValueList=S,c.selectorValueList=mt(c.valueList,e,c.valueEntities||t.valueEntities)}if(u("inputValue",(function(e){null!==e&&(c.searchValue=e)})),u("searchValue",(function(e){c.searchValue=e})),void 0!==c.searchValue||t.searchValue&&f){var M=void 0!==c.searchValue?c.searchValue:t.searchValue,R=String(M).toUpperCase(),D=a;!1===a?D=function(){return!0}:"function"!=typeof D&&(D=function(e,t){return-1!==String(t.props[s]).toUpperCase().indexOf(R)}),c.filteredTreeNodes=dt(c.treeNodes||t.treeNodes,M,D,c.valueEntities||t.valueEntities,mr)}return h&&o&&!i&&(c.searchValue||t.searchValue)&&(c.searchHalfCheckedKeys=wt(c.valueList,c.valueEntities||t.valueEntities)),u("showCheckedStrategy",(function(){c.selectorValueList=c.selectorValueList||mt(c.valueList||t.valueList,e,c.valueEntities||t.valueEntities)})),c}}],(r=[{key:"getChildContext",value:function(){return{rcTreeSelect:{onSelectorFocus:this.onSelectorFocus,onSelectorBlur:this.onSelectorBlur,onSelectorKeyDown:this.onComponentKeyDown,onSelectorClear:this.onSelectorClear,onMultipleSelectorRemove:this.onMultipleSelectorRemove,onTreeNodeSelect:this.onTreeNodeSelect,onTreeNodeCheck:this.onTreeNodeCheck,onPopupKeyDown:this.onComponentKeyDown,onSearchInputChange:this.onSearchInputChange,onSearchInputKeyDown:this.onSearchInputKeyDown}}}},{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props.prefixCls,o=this.state,a=o.valueList,s=o.open,l=o.selectorValueList,c=o.valueEntities,u=this.isMultiple();if(t.valueList!==a&&this.forcePopupAlign(),!u&&l.length&&!t.open&&s&&this.popup){var f=l[0].value,d=this.popup.getTree().domTreeNodes[(c[f]||{}).key];if(d){var h=Object(i.findDOMNode)(d);p()((function(){var e=function(e,t){for(var n=e;n;){if(Ye(n,t))return n;n=n.parentNode}return null}(Object(i.findDOMNode)(n.popup),"".concat(r,"-dropdown")),t=n.popup.searchRef.current;h&&e&&t&&g()(h,e,{onlyScrollIfNeeded:!0,offsetTop:t.offsetHeight})}))}}}},{key:"focus",value:function(){this.selectorRef.current.focus()}},{key:"blur",value:function(){this.selectorRef.current.blur()}},{key:"render",value:function(){var e=this.state,t=e.valueList,n=e.missValueList,r=e.selectorValueList,i=e.searchHalfCheckedKeys,a=e.valueEntities,s=e.keyEntities,l=e.searchValue,c=e.open,u=e.focused,f=e.treeNodes,d=e.filteredTreeNodes,h=this.props,p=h.prefixCls,m=h.treeExpandedKeys,g=h.onTreeExpand,v=this.isMultiple(),y=br({},this.props,{isMultiple:v,valueList:t,searchHalfCheckedKeys:i,selectorValueList:[].concat(vr(n),vr(r)),valueEntities:a,keyEntities:s,searchValue:l,upperSearchValue:(l||"").toUpperCase(),open:c,focused:u,onChoiceAnimationLeave:this.onChoiceAnimationLeave,dropdownPrefixCls:"".concat(p,"-dropdown"),ariaId:this.ariaId}),b=v?lr:sr,w=o.a.createElement(b,gr({ref:this.setPopupRef},y,{onTreeExpanded:this.delayForcePopupAlign,treeNodes:f,filteredTreeNodes:d,treeExpandedKeys:m,onTreeExpand:g})),E=v?Zn:sn,C=o.a.createElement(E,gr({},y,{ref:this.selectorRef}));return o.a.createElement(At,gr({},y,{ref:this.selectTriggerRef,popupElement:w,onKeyDown:this.onKeyDown,onDropdownVisibleChange:this.onDropdownVisibleChange}),C)}}])&&wr(n.prototype,r),a&&wr(n,a),t}(o.a.Component);Or(Sr,"propTypes",{prefixCls:l.a.string,prefixAria:l.a.string,multiple:l.a.bool,showArrow:l.a.bool,open:l.a.bool,value:fr,autoFocus:l.a.bool,defaultOpen:l.a.bool,defaultValue:fr,showSearch:l.a.bool,placeholder:l.a.node,inputValue:l.a.string,searchValue:l.a.string,autoClearSearchValue:l.a.bool,searchPlaceholder:l.a.node,disabled:l.a.bool,children:l.a.node,labelInValue:l.a.bool,maxTagCount:l.a.number,maxTagPlaceholder:l.a.oneOfType([l.a.node,l.a.func]),maxTagTextLength:l.a.number,showCheckedStrategy:l.a.oneOf([Je,Xe,Ze]),dropdownMatchSelectWidth:l.a.bool,treeData:l.a.array,treeDataSimpleMode:l.a.oneOfType([l.a.bool,l.a.object]),treeNodeFilterProp:l.a.string,treeNodeLabelProp:l.a.string,treeCheckable:l.a.oneOfType([l.a.bool,l.a.node]),treeCheckStrictly:l.a.bool,treeIcon:l.a.bool,treeLine:l.a.bool,treeDefaultExpandAll:l.a.bool,treeDefaultExpandedKeys:l.a.array,treeExpandedKeys:l.a.array,loadData:l.a.func,filterTreeNode:l.a.oneOfType([l.a.func,l.a.bool]),notFoundContent:l.a.node,onSearch:l.a.func,onSelect:l.a.func,onDeselect:l.a.func,onChange:l.a.func,onDropdownVisibleChange:l.a.func,onTreeExpand:l.a.func,inputIcon:l.a.oneOfType([l.a.node,l.a.func]),clearIcon:l.a.oneOfType([l.a.node,l.a.func]),removeIcon:l.a.oneOfType([l.a.node,l.a.func]),switcherIcon:l.a.oneOfType([l.a.node,l.a.func])}),Or(Sr,"childContextTypes",{rcTreeSelect:l.a.shape(br({},Ft,{},Jn,{},qt,{onSearchInputChange:l.a.func,onSearchInputKeyDown:l.a.func}))}),Or(Sr,"defaultProps",{prefixCls:"rc-tree-select",prefixAria:"rc-tree-select",showArrow:!0,showSearch:!0,autoClearSearchValue:!0,showCheckedStrategy:Ze,treeNodeFilterProp:"value",treeNodeLabelProp:"title",treeIcon:!1,notFoundContent:"Not Found"}),Sr.TreeNode=mr,Sr.SHOW_ALL=Je,Sr.SHOW_PARENT=Xe,Sr.SHOW_CHILD=Ze,Sr.displayName="TreeSelect",Object(c.polyfill)(Sr);var xr=Sr,Pr=mr;t.default=xr},function(e,t,n){"use strict";n.r(t);var r=n(23),o=n.n(r),i=n(0),a=n.n(i),s=n(21),l=n.n(s),c=n(18),u=n.n(c),f=n(22),d=n.n(f),h=n(28),p=n.n(h),m={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=m.F1&&t<=m.F12)return!1;switch(t){case m.ALT:case m.CAPS_LOCK:case m.CONTEXT_MENU:case m.CTRL:case m.DOWN:case m.END:case m.ESC:case m.HOME:case m.INSERT:case m.LEFT:case m.MAC_FF_META:case m.META:case m.NUMLOCK:case m.NUM_CENTER:case m.PAGE_DOWN:case m.PAGE_UP:case m.PAUSE:case m.PRINT_SCREEN:case m.RIGHT:case m.SHIFT:case m.UP:case m.WIN_KEY:case m.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=m.ZERO&&e<=m.NINE)return!0;if(e>=m.NUM_ZERO&&e<=m.NUM_MULTIPLY)return!0;if(e>=m.A&&e<=m.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case m.SPACE:case m.QUESTION_MARK:case m.NUM_PLUS:case m.NUM_MINUS:case m.NUM_PERIOD:case m.NUM_DIVISION:case m.SEMICOLON:case m.DASH:case m.EQUALS:case m.COMMA:case m.PERIOD:case m.SLASH:case m.APOSTROPHE:case m.SINGLE_QUOTE:case m.OPEN_SQUARE_BRACKET:case m.BACKSLASH:case m.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},g=m;var v=n(143),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var U={},G=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return K(U),U={},void(document.body.className=n.replace(t,"").trim())}var r=function(e){if("undefined"==typeof document)return 0;if(e||void 0===H){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),H=o-i}return H}();if(r&&(U=K({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return n(Y({},t,{},s,{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},(function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null}))}}])&&Z(n.prototype,r),o&&Z(n,o),s}(a.a.Component);le.propTypes={wrapperClassName:x.a.string,forceRender:x.a.bool,getContainer:x.a.any,children:x.a.func,visible:x.a.bool};var ce=Object(P.polyfill)(le);t.default=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender;return!1===n?i.createElement(O,o()({},e,{getOpenCount:function(){return 2}})):i.createElement(ce,{visible:t,forceRender:r,getContainer:n},(function(t){return i.createElement(O,o()({},e,t))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"TabPane",(function(){return W})),n.d(t,"TabContent",(function(){return q}));var r=n(23),o=n.n(r),i=n(39),a=n.n(i),s=n(58),l=n.n(s),c=n(21),u=n.n(c),f=n(45),d=n.n(f),h=n(18),p=n.n(h),m=n(22),g=n.n(m),v=n(0),y=n.n(v),b=n(1),w=n.n(b),E=n(16),C=n.n(E),k=n(61),O=n.n(k),S=n(30),x=37,P=38,_=39,A=40;function T(e){var t=[];return y.a.Children.forEach(e,(function(e){e&&t.push(e)})),t}function M(e){return"left"===e||"right"===e}function R(e){return Object.keys(e).reduce((function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})}var D=n(38),N=n(94),j=n.n(N)()({}),L=j.Provider,$=j.Consumer,F={width:0,height:0,overflow:"hidden",position:"absolute"},I=function(e){function t(){var e,n,r,o;u()(this,t);for(var i=arguments.length,a=Array(i),s=0;s=0}(e,t.activeKey)||(n.activeKey=H(e)),Object.keys(n).length>0?n:null}}]),t}(y.a.Component),K=function(){var e=this;this.onTabClick=function(t,n){e.tabBar.props.onTabClick&&e.tabBar.props.onTabClick(t,n),e.setActiveKey(t)},this.onNavKeyDown=function(t){var n=t.keyCode;if(n===_||n===A){t.preventDefault();var r=e.getNextActiveKey(!0);e.onTabClick(r)}else if(n===x||n===P){t.preventDefault();var o=e.getNextActiveKey(!1);e.onTabClick(o)}},this.onScroll=function(e){var t=e.target;t===e.currentTarget&&t.scrollLeft>0&&(t.scrollLeft=0)},this.setSentinelStart=function(t){e.sentinelStart=t},this.setSentinelEnd=function(t){e.sentinelEnd=t},this.setPanelSentinelStart=function(t){t!==e.panelSentinelStart&&e.updateSentinelContext(),e.panelSentinelStart=t},this.setPanelSentinelEnd=function(t){t!==e.panelSentinelEnd&&e.updateSentinelContext(),e.panelSentinelEnd=t},this.setActiveKey=function(t){e.state.activeKey!==t&&("activeKey"in e.props||e.setState({activeKey:t}),e.props.onChange(t))},this.getNextActiveKey=function(t){var n=e.state.activeKey,r=[];y.a.Children.forEach(e.props.children,(function(e){e&&!e.props.disabled&&(t?r.push(e):r.unshift(e))}));var o=r.length,i=o&&r[0].key;return r.forEach((function(e,t){e.key===n&&(i=t===o-1?r[0].key:r[t+1].key)})),i}};z.propTypes={destroyInactiveTabPane:w.a.bool,renderTabBar:w.a.func.isRequired,renderTabContent:w.a.func.isRequired,navWrapper:w.a.func,onChange:w.a.func,children:w.a.node,prefixCls:w.a.string,className:w.a.string,tabBarPosition:w.a.string,style:w.a.object,activeKey:w.a.string,defaultActiveKey:w.a.string,direction:w.a.string},z.defaultProps={prefixCls:"rc-tabs",destroyInactiveTabPane:!1,onChange:function(){},navWrapper:function(e){return e},tabBarPosition:"top",children:null,style:{},direction:"ltr"},z.TabPane=W,Object(S.polyfill)(z);var U=z,G=function(e){function t(){return u()(this,t),p()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g()(t,e),d()(t,[{key:"getTabPanes",value:function(){var e=this.props,t=e.activeKey,n=e.children,r=[];return y.a.Children.forEach(n,(function(n){if(n){var o=n.key,i=t===o;r.push(y.a.cloneElement(n,{active:i,destroyInactiveTabPane:e.destroyInactiveTabPane,rootPrefixCls:e.prefixCls}))}})),r}},{key:"render",value:function(){var e,t,n=this.props,r=n.prefixCls,i=n.children,s=n.activeKey,l=n.className,c=n.tabBarPosition,u=n.animated,f=n.animatedWithMargin,d=n.direction,h=n.style,p=C()((e={},a()(e,r+"-content",!0),a()(e,u?r+"-content-animated":r+"-content-no-animated",!0),e),l);if(u){var m=function(e,t){for(var n=T(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:"ltr",r=M(t)?"translateY":"translateX";return M(t)||"rtl"!==n?r+"("+100*-e+"%) translateZ(0)":r+"("+100*e+"%) translateZ(0)"}(m,c,d),WebkitTransform:t,MozTransform:t};h=o()({},h,g)}else h=o()({},h,{display:"none"})}return y.a.createElement("div",{className:p,style:h},this.getTabPanes())}}]),t}(y.a.Component),q=G;G.propTypes={animated:w.a.bool,animatedWithMargin:w.a.bool,prefixCls:w.a.string,children:w.a.node,activeKey:w.a.string,style:w.a.any,tabBarPosition:w.a.string,className:w.a.string,destroyInactiveTabPane:w.a.bool,direction:w.a.string},G.defaultProps={animated:!0};t.default=U},function(e,t,n){"use strict";n.r(t),n.d(t,"Line",(function(){return A})),n.d(t,"Circle",(function(){return U}));var r=n(0),o=n.n(r);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N(e,t){for(var n=0;n4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,c=0,u=-2*a;switch(i){case"left":s=-a,l=0,c=2*a,u=0;break;case"right":s=a,l=0,c=-2*a,u=0;break;case"bottom":l=a,u=2*a}var f="M 50,50 m ".concat(s,",").concat(l,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(c,",").concat(-u,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-c,",").concat(u),d=2*Math.PI*a,h={stroke:n,strokeDasharray:"".concat(t/100*(d-o),"px ").concat(d,"px"),strokeDashoffset:"-".concat(o/2+e/100*(d-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:f,pathStyle:h}}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(a,e);var t,n,r,i=L(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),V(F(e=i.call(this)),"paths",{}),V(F(e),"gradientId",0),e.gradientId=B,B+=1,e}return t=a,(n=[{key:"getStokeList",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.percent,i=t.strokeColor,a=t.strokeWidth,s=t.strokeLinecap,l=t.gapDegree,c=t.gapPosition,u=H(r),f=H(i),d=0;return u.map((function(t,r){var i=f[r]||f[f.length-1],u="[object Object]"===Object.prototype.toString.call(i)?"url(#".concat(n,"-gradient-").concat(e.gradientId,")"):"",h=z(d,t,i,a,l,c),p=h.pathString,m=h.pathStyle;return d+=t,o.a.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:p,stroke:u,strokeLinecap:s,strokeWidth:a,opacity:0===t?0:1,fillOpacity:"0",style:m,ref:function(t){e.paths[r]=t}})}))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.strokeWidth,r=e.trailWidth,i=e.gapDegree,a=e.gapPosition,s=e.trailColor,l=e.strokeLinecap,c=e.style,u=e.className,f=e.strokeColor,d=D(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor"]),h=z(0,100,s,n,i,a),p=h.pathString,m=h.pathStyle;delete d.percent;var g=H(f).find((function(e){return"[object Object]"===Object.prototype.toString.call(e)}));return o.a.createElement("svg",R({className:"".concat(t,"-circle ").concat(u),viewBox:"0 0 100 100",style:c},d),g&&o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"".concat(t,"-gradient-").concat(this.gradientId),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(g).sort((function(e,t){return W(e)-W(t)})).map((function(e,t){return o.a.createElement("stop",{key:t,offset:e,stopColor:g[e]})})))),o.a.createElement("path",{className:"".concat(t,"-circle-trail"),d:p,stroke:s,strokeLinecap:l,strokeWidth:r||n,fillOpacity:"0",style:m}),this.getStokeList().reverse())}}])&&N(t.prototype,n),r&&N(t,r),a}(r.Component);K.propTypes=M(M({},v),{},{gapPosition:p.a.oneOf(["top","bottom","left","right"])}),K.defaultProps=M(M({},m),{},{gapPosition:"top"});var U=d(K);t.default={Line:A,Circle:U}},function(e,t,n){"use strict";n.r(t);var r=n(58),o=n.n(r),i=n(23),a=n.n(i),s=n(21),l=n.n(s),c=n(18),u=n.n(c),f=n(22),d=n.n(f),h=n(0),p=n.n(h),m=n(1),g=n.n(m),v=n(16),y=n.n(v),b=n(38),w=n(45),E=n.n(w),C=function(e){function t(){l()(this,t);var e=u()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={active:!1},e.onTouchStart=function(t){e.triggerEvent("TouchStart",!0,t)},e.onTouchMove=function(t){e.triggerEvent("TouchMove",!1,t)},e.onTouchEnd=function(t){e.triggerEvent("TouchEnd",!1,t)},e.onTouchCancel=function(t){e.triggerEvent("TouchCancel",!1,t)},e.onMouseDown=function(t){e.triggerEvent("MouseDown",!0,t)},e.onMouseUp=function(t){e.triggerEvent("MouseUp",!1,t)},e.onMouseLeave=function(t){e.triggerEvent("MouseLeave",!1,t)},e}return d()(t,e),E()(t,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"triggerEvent",value:function(e,t,n){var r="on"+e,o=this.props.children;o.props[r]&&o.props[r](n),t!==this.state.active&&this.setState({active:t})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,r=e.activeClassName,o=e.activeStyle,i=n?void 0:{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave},s=p.a.Children.only(t);if(!n&&this.state.active){var l=s.props,c=l.style,u=l.className;return!1!==o&&(o&&(c=a()({},c,o)),u=y()(u,r)),p.a.cloneElement(s,a()({className:u,style:c},i))}return p.a.cloneElement(s,i)}}]),t}(p.a.Component),k=C;C.defaultProps={disabled:!1};var O=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.disabled,r=o()(e,["prefixCls","disabled"]);return p.a.createElement(k,{disabled:n,activeClassName:t+"-handler-active"},p.a.createElement("span",r))},t}(h.Component);O.propTypes={prefixCls:g.a.string,disabled:g.a.bool,onTouchStart:g.a.func,onTouchEnd:g.a.func,onMouseDown:g.a.func,onMouseUp:g.a.func,onMouseLeave:g.a.func};var S=O;function x(){}function P(e){e.preventDefault()}var _=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,A=function(e){return null!=e},T=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},M=function(e){function t(n){l()(this,t);var r=u()(this,e.call(this,n));R.call(r);var o=void 0;o="value"in n?n.value:n.defaultValue,r.state={focused:n.autoFocus};var i=r.getValidValue(r.toNumber(o));return r.state=a()({},r.state,{inputValue:r.toPrecisionAsStep(i),value:i}),r}return d()(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.value,r=t.onChange,o=t.max,i=t.min,a=this.state.focused;if(e){if(!T(e.value,n)||!T(e.max,o)||!T(e.min,i)){var s=a?n:this.getValidValue(n),l=void 0;l=this.pressingUpOrDown?s:this.inputting?this.rawInput:this.toPrecisionAsStep(s),this.setState({value:s,inputValue:l})}var c="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==o&&"number"==typeof c&&c>o&&r&&r(o),"min"in this.props&&e.min!==i&&"number"==typeof c&&c1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(e,10);return isNaN(r)?e:(rn&&(r=n),r)},t.prototype.setValue=function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),o=this.state,i=o.value,a=void 0===i?null:i,s=o.inputValue,l=void 0===s?null:s,c="number"==typeof r?r.toFixed(n):""+r,u=r!==a||c!==""+l;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),u&&this.props.onChange(r),r},t.prototype.getPrecision=function(e){if(A(this.props.precision))return this.props.precision;var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},t.prototype.getMaxPrecision=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(A(r))return r;var i=this.getPrecision(t),a=this.getPrecision(o),s=this.getPrecision(e);return e?Math.max(s,i+a):i+a},t.prototype.getPrecisionFactor=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)},t.prototype.fixCaret=function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(e){}},t.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},t.prototype.blur=function(){this.input.blur()},t.prototype.select=function(){this.input.select()},t.prototype.formatWrapper=function(e){return this.props.formatter?this.props.formatter(e):e},t.prototype.toPrecisionAsStep=function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)},t.prototype.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},t.prototype.toNumber=function(e){var t=this.props.precision,n=this.state.focused,r=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||r?e:A(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)},t.prototype.upStep=function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e+r*n*t)/r).toFixed(o);return this.toNumber(i)},t.prototype.downStep=function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e-r*n*t)/r).toFixed(o);return this.toNumber(i)},t.prototype.step=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),t&&(t.persist(),t.preventDefault());var i=this.props;if(!i.disabled){var a=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(a)){var s=this[e+"Step"](a,r),l=s>i.max||si.max?s=i.max:s=t.max&&(d=n+"-handler-up-disabled"),g<=t.min&&(h=n+"-handler-down-disabled")}var v={};for(var b in t)!t.hasOwnProperty(b)||"data-"!==b.substr(0,5)&&"aria-"!==b.substr(0,5)&&"role"!==b||(v[b]=t[b]);var w=!t.readOnly&&!t.disabled,E=this.getInputDisplayValue(),C=void 0,k=void 0;s?(C={onTouchStart:w&&!d?this.up:x,onTouchEnd:this.stop},k={onTouchStart:w&&!h?this.down:x,onTouchEnd:this.stop}):(C={onMouseDown:w&&!d?this.up:x,onMouseUp:this.stop,onMouseLeave:this.stop},k={onMouseDown:w&&!h?this.down:x,onMouseUp:this.stop,onMouseLeave:this.stop});var O=!!d||r||i,_=!!h||r||i;return p.a.createElement("div",{className:f,style:t.style,title:t.title,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseOver:t.onMouseOver,onMouseOut:t.onMouseOut},p.a.createElement("div",{className:n+"-handler-wrap"},p.a.createElement(S,a()({ref:this.saveUp,disabled:O,prefixCls:n,unselectable:"unselectable"},C,{role:"button","aria-label":"Increase Value","aria-disabled":!!O,className:n+"-handler "+n+"-handler-up "+d}),c||p.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:P})),p.a.createElement(S,a()({ref:this.saveDown,disabled:_,prefixCls:n,unselectable:"unselectable"},k,{role:"button","aria-label":"Decrease Value","aria-disabled":!!_,className:n+"-handler "+n+"-handler-down "+h}),u||p.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:P}))),p.a.createElement("div",{className:n+"-input-wrap"},p.a.createElement("input",a()({role:"spinbutton","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":m,required:t.required,type:t.type,placeholder:t.placeholder,onClick:t.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:t.tabIndex,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:w?this.onKeyDown:x,onKeyUp:w?this.onKeyUp:x,autoFocus:t.autoFocus,maxLength:t.maxLength,readOnly:t.readOnly,disabled:t.disabled,max:t.max,min:t.min,step:t.step,name:t.name,title:t.title,id:t.id,onChange:this.onChange,ref:this.saveInput,value:E,pattern:t.pattern,inputMode:t.inputMode},v))))},t}(p.a.Component);M.propTypes={value:g.a.oneOfType([g.a.number,g.a.string]),defaultValue:g.a.oneOfType([g.a.number,g.a.string]),focusOnUpDown:g.a.bool,autoFocus:g.a.bool,onChange:g.a.func,onPressEnter:g.a.func,onKeyDown:g.a.func,onKeyUp:g.a.func,prefixCls:g.a.string,tabIndex:g.a.oneOfType([g.a.string,g.a.number]),disabled:g.a.bool,onFocus:g.a.func,onBlur:g.a.func,readOnly:g.a.bool,max:g.a.number,min:g.a.number,step:g.a.oneOfType([g.a.number,g.a.string]),upHandler:g.a.node,downHandler:g.a.node,useTouch:g.a.bool,formatter:g.a.func,parser:g.a.func,onMouseEnter:g.a.func,onMouseLeave:g.a.func,onMouseOver:g.a.func,onMouseOut:g.a.func,onMouseUp:g.a.func,precision:g.a.number,required:g.a.bool,pattern:g.a.string,decimalSeparator:g.a.string,inputMode:g.a.string},M.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-_,step:1,style:{},onChange:x,onKeyDown:x,onPressEnter:x,onFocus:x,onBlur:x,parser:function(e){return e.replace(/[^\w\.-]+/g,"")},required:!1,autoComplete:"off"};var R=function(){var e=this;this.onKeyDown=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=!1;function f(){d||(d=!0,s()(!1,"Tree only accept TreeNode as children."))}function h(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function p(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function m(e){return e.split("-")}function g(e,t){return"".concat(e,"-").concat(t)}function v(e){return e&&e.type&&e.type.isTreeNode}function y(e){return Object(i.default)(e).filter(v)}function b(e){var t=e.props||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function w(e,t){!function n(o,i,a){var s=o?o.props.children:e,l=o?g(a.pos,i):0,c=y(s);if(o){var u={node:o,index:i,pos:l,key:o.key||l,parentPos:a.node?a.pos:null};t(u)}r.Children.forEach(c,(function(e,t){n(e,t,{node:o,pos:l})}))}(null)}function E(e,t){var n=Object(i.default)(e).map(t);return 1===n.length?n[0]:n}function C(e,t){var n=t.props,r=n.eventKey,o=n.pos,i=[];return w(e,(function(e){var t=e.key;i.push(t)})),i.push(r||o),i}function k(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,i=r.bottom,a=r.height,s=Math.max(.25*a,2);return n<=o+s?-1:n>=i-s?1:0}function O(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function S(e){return e?e.map((function(e){return String(e)})):e}var x=function(e){return e};function P(e,t){if(!e)return[];var n=(t||{}).processProps,r=void 0===n?x:n;return(Array.isArray(e)?e:[e]).map((function(e){var n=e.children,i=u(e,["children"]),a=P(n,t);return o.a.createElement(l.a,Object.assign({},r(i)),a)}))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i={},a={},s={posEntities:i,keyEntities:a};return n&&(s=n(s)||s),w(e,(function(e){var t=e.node,n=e.index,o=e.pos,l=e.key,c=e.parentPos,u={node:t,index:n,key:l,pos:o};i[o]=u,a[l]=u,u.parent=i[c],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,s)})),o&&o(s),s}function A(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==c(e))return s()(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t.checkedKeys=S(t.checkedKeys),t.halfCheckedKeys=S(t.halfCheckedKeys),t}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={},i={};function a(e){if(o[e]!==t){var r=n[e];if(r){var s=r.children,l=r.parent;if(!b(r.node)){var c=!0,u=!1;(s||[]).filter((function(e){return!b(e.node)})).forEach((function(e){var t=e.key,n=o[t],r=i[t];(n||r)&&(u=!0),n||(c=!1)})),o[e]=!!t&&c,i[e]=u,l&&a(l.key)}}}}function l(e){if(o[e]!==t){var r=n[e];if(r){var i=r.children;b(r.node)||(o[e]=t,(i||[]).forEach((function(e){l(e.key)})))}}}function c(e){var r=n[e];if(r){var i=r.children,c=r.parent,u=r.node;o[e]=t,b(u)||((i||[]).filter((function(e){return!b(e.node)})).forEach((function(e){l(e.key)})),c&&a(c.key))}else s()(!1,"'".concat(e,"' does not exist in the tree."))}(r.checkedKeys||[]).forEach((function(e){o[e]=!0})),(r.halfCheckedKeys||[]).forEach((function(e){i[e]=!0})),(e||[]).forEach((function(e){c(e)}));var u=[],d=[];return Object.keys(o).forEach((function(e){o[e]&&u.push(e)})),Object.keys(i).forEach((function(e){!o[e]&&i[e]&&d.push(e)})),{checkedKeys:u,halfCheckedKeys:d}}function M(e,t){var n={};return(e||[]).forEach((function(e){!function e(r){if(!n[r]){var o=t[r];if(o){n[r]=!0;var i=o.parent,a=o.node;a.props&&a.props.disabled||i&&e(i.key)}}}(e)})),Object.keys(n)}function N(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},function(e,t,n){e.exports=n(19)(1323)},function(e,t,n){"use strict";n(37),n(208)},function(e,t,n){"use strict";n(37),n(286)},function(e,t,n){},function(e,t,n){e.exports=n(19)(37)},function(e,t,n){e.exports=n(19)(32)},function(e,t,n){"use strict";var r=n(126),o=n(153),i={}.hasOwnProperty;var a=["$push","$unshift","$splice","$set","$merge","$apply"],s={};function l(e,t,n){o(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e);var r=t[n];o(Array.isArray(r),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",n,r)}a.forEach((function(e){s[e]=!0})),e.exports=function e(t,n){if(o("object"==typeof n,"update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?",a.join(", "),"$set"),i.call(n,"$set"))return o(1===Object.keys(n).length,"Cannot have more than one key in an object with %s","$set"),n.$set;var c,u=(c=t,Array.isArray(c)?c.concat():c&&"object"==typeof c?r(new c.constructor,c):c);if(i.call(n,"$merge")){var d=n.$merge;o(d&&"object"==typeof d,"update(): %s expects a spec of type 'object'; got %s","$merge",d),o(u&&"object"==typeof u,"update(): %s expects a target of type 'object'; got %s","$merge",u),r(u,n.$merge)}for(var f in i.call(n,"$push")&&(l(t,n,"$push"),n.$push.forEach((function(e){u.push(e)}))),i.call(n,"$unshift")&&(l(t,n,"$unshift"),n.$unshift.forEach((function(e){u.unshift(e)}))),i.call(n,"$splice")&&(o(Array.isArray(t),"Expected %s target to be an array; got %s","$splice",t),o(Array.isArray(n.$splice),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?","$splice",n.$splice),n.$splice.forEach((function(e){o(Array.isArray(e),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?","$splice",n.$splice),u.splice.apply(u,e)}))),i.call(n,"$apply")&&(o("function"==typeof n.$apply,"update(): expected spec of %s to be a function; got %s.","$apply",n.$apply),u=n.$apply(u)),n)s.hasOwnProperty(f)&&s[f]||(u[f]=e(t[f],n[f]));return u}},function(e,t,n){"use strict";n(37),n(224),n(125)},function(e,t,n){"use strict";n(37),n(321),n(35)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(30),i=d(n(63)),a=d(n(20)),s=d(n(12)),l=d(n(111)),c=d(n(185)),u=n(44);function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t0?"-".concat(h):h,w=(0,a.default)(p,y,"".concat(y,"-").concat(l),(u(n={},"".concat(y,"-with-text").concat(b),m),u(n,"".concat(y,"-dashed"),!!g),n));return i.createElement("div",c({className:w},v,{role:"separator"}),m&&i.createElement("span",{className:"".concat(y,"-inner-text")},m))}))};t.default=f},function(e,t,n){"use strict";n(37),n(320),n(130)},function(e,t,n){"use strict";n(37),n(211)},function(e,t,n){"use strict";var r=n(225),o=n(126),i=n(226);function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function l(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:i(a),n(i(o),a,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r}t.extract=s,t.parse=l,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[a(t,e),"[",r,"]"].join(""):[a(t,e),"[",a(r,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return a(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return a(r,t)+"="+a(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:l(s(e),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(0)),o=h(n(400)),i=d(n(16)),a=d(n(70)),s=n(44),l=d(n(71)),c=n(363),u=d(n(20));function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[r];r=0&&("small"===g||"large"===g)),"Tabs","`type=card|editable-card` doesn't have small or large size, it's by design.");var T=o("tabs",h),M=(0,s.default)(m,(y(n={},"".concat(T,"-vertical"),"left"===C||"right"===C),y(n,"".concat(T,"-").concat(g),!!g),y(n,"".concat(T,"-card"),E.indexOf("card")>=0),y(n,"".concat(T,"-").concat(E),!0),y(n,"".concat(T,"-no-animation"),!A),n)),N=[];"editable-card"===E&&(N=[],r.Children.forEach(k,(function(t,n){if(!r.isValidElement(t))return t;var o=t.props.closable,i=(o=void 0===o||o)?r.createElement(u.default,{type:"close",className:"".concat(T,"-close-x"),onClick:function(n){return e.removeTab(t.key,n)}}):null;N.push(r.cloneElement(t,{tab:r.createElement("div",{className:o?void 0:"".concat(T,"-tab-unclosable")},t.props.tab,i),key:t.key||n}))})),P||(_=r.createElement("span",null,r.createElement(u.default,{type:"plus",className:"".concat(T,"-new-tab"),onClick:e.createNewTab}),_))),_=_?r.createElement("div",{className:"".concat(T,"-extra-content")},_):null;var D=x(e.props,[]),j=(0,s.default)("".concat(T,"-").concat(C,"-content"),E.indexOf("card")>=0&&"".concat(T,"-card-content"));return r.createElement(i.default,v({},e.props,{prefixCls:T,className:M,tabBarPosition:C,renderTabBar:function(){return r.createElement(c.default,v({},(0,l.default)(D,["className"]),{tabBarExtraContent:_}))},renderTabContent:function(){return r.createElement(a.default,{className:j,animated:A,animatedWithMargin:!0})},onChange:e.handleChange}),N.length>0?N:k)},e}return n=P,(p=[{key:"componentDidMount",value:function(){var e=o.findDOMNode(this);e&&!h.isFlexSupported&&-1===e.className.indexOf(" no-flex")&&(e.className+=" no-flex")}},{key:"render",value:function(){return r.createElement(d.ConfigConsumer,null,this.renderTabs)}}])&&E(n.prototype,p),m&&E(n,m),P}(r.Component);t.default=P,P.TabPane=i.TabPane,P.defaultProps={hideAdd:!1,tabPosition:"top"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var i,a,s,l=(i=r,a="undefined"!=typeof window?window:{},s={animationend:o("Animation","AnimationEnd"),transitionend:o("Transition","TransitionEnd")},i&&("AnimationEvent"in a||delete s.animationend.animation,"TransitionEvent"in a||delete s.transitionend.transition),s),c={};r&&(c=document.createElement("div").style);var u={};function d(e){if(u[e])return u[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:0,i=e.state,a=i.keyEntities,s=i.expandedKeys,l=void 0===s?[]:s,c=i.selectedKeys,u=void 0===c?[]:c,d=i.halfCheckedKeys,f=void 0===d?[]:d,p=i.loadedKeys,m=void 0===p?[]:p,g=i.loadingKeys,v=void 0===g?[]:g,y=i.dragOverNodeKey,b=i.dropPosition,w=Object(h.l)(o,n),E=t.key||w;return a[E]?r.cloneElement(t,{key:E,eventKey:E,expanded:-1!==l.indexOf(E),selected:-1!==u.indexOf(E),loaded:-1!==m.indexOf(E),loading:-1!==v.indexOf(E),checked:e.isKeyChecked(E),halfChecked:-1!==f.indexOf(E),pos:w,dragOver:y===E&&0===b,dragOverGapTop:y===E&&-1===b,dragOverGapBottom:y===E&&1===b}):(Object(h.p)(),null)},e}return n=l,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};function o(t){return!n&&t in e||n&&n[t]!==e[t]}var i=null;if(o("treeData")?i=Object(h.g)(e.treeData):o("children")&&(i=Object(u.default)(e.children)),i){r.treeNode=i;var a=Object(h.h)(i);r.keyEntities=a.keyEntities}var s,l=r.keyEntities||t.keyEntities;if(o("expandedKeys")||n&&o("autoExpandParent")?r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?Object(h.f)(e.expandedKeys,l):e.expandedKeys:!n&&e.defaultExpandAll?r.expandedKeys=Object.keys(l):!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(h.f)(e.defaultExpandedKeys,l):e.defaultExpandedKeys),e.selectable&&(o("selectedKeys")?r.selectedKeys=Object(h.d)(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=Object(h.d)(e.defaultSelectedKeys,e))),e.checkable&&(o("checkedKeys")?s=Object(h.n)(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?s=Object(h.n)(e.defaultCheckedKeys)||{}:i&&(s=Object(h.n)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var c=s,d=c.checkedKeys,f=void 0===d?[]:d,p=c.halfCheckedKeys,m=void 0===p?[]:p;if(!e.checkStrictly){var g=Object(h.e)(f,!0,l);f=g.checkedKeys,m=g.halfCheckedKeys}r.checkedKeys=f,r.halfCheckedKeys=m}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}],(o=[{key:"render",value:function(){var e,t,n,o=this,i=this.state.treeNode,a=this.props,l=a.prefixCls,c=a.className,u=a.focusable,d=a.style,p=a.showLine,m=a.tabIndex,g=void 0===m?0:m,v=a.selectable,y=a.showIcon,b=a.icon,w=a.switcherIcon,E=a.draggable,C=a.checkable,k=a.checkStrictly,O=a.disabled,S=a.motion,x=a.loadData,P=a.filterTreeNode,_=Object(h.i)(this.props);return u&&(_.tabIndex=g),r.createElement(f.a.Provider,{value:{prefixCls:l,selectable:v,showIcon:y,icon:b,switcherIcon:w,draggable:E,checkable:C,checkStrictly:k,disabled:O,motion:S,loadData:x,filterTreeNode:P,renderTreeNode:this.renderTreeNode,isKeyChecked:this.isKeyChecked,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop,registerTreeNode:this.registerTreeNode}},r.createElement("ul",Object.assign({},_,{className:s()(l,c,(e={},t="".concat(l,"-show-line"),n=p,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),style:d,role:"tree",unselectable:"on"}),Object(h.m)(i,(function(e,t){return o.renderTreeNode(e,t)}))))}}])&&g(n.prototype,o),i&&g(n,i),l}(r.Component);E.propTypes={prefixCls:i.a.string,className:i.a.string,style:i.a.object,tabIndex:i.a.oneOfType([i.a.string,i.a.number]),children:i.a.any,treeData:i.a.array,showLine:i.a.bool,showIcon:i.a.bool,icon:i.a.oneOfType([i.a.node,i.a.func]),focusable:i.a.bool,selectable:i.a.bool,disabled:i.a.bool,multiple:i.a.bool,checkable:i.a.oneOfType([i.a.bool,i.a.node]),checkStrictly:i.a.bool,draggable:i.a.bool,defaultExpandParent:i.a.bool,autoExpandParent:i.a.bool,defaultExpandAll:i.a.bool,defaultExpandedKeys:i.a.arrayOf(i.a.string),expandedKeys:i.a.arrayOf(i.a.string),defaultCheckedKeys:i.a.arrayOf(i.a.string),checkedKeys:i.a.oneOfType([i.a.arrayOf(i.a.oneOfType([i.a.string,i.a.number])),i.a.object]),defaultSelectedKeys:i.a.arrayOf(i.a.string),selectedKeys:i.a.arrayOf(i.a.string),onClick:i.a.func,onDoubleClick:i.a.func,onExpand:i.a.func,onCheck:i.a.func,onSelect:i.a.func,onLoad:i.a.func,loadData:i.a.func,loadedKeys:i.a.arrayOf(i.a.string),onMouseEnter:i.a.func,onMouseLeave:i.a.func,onRightClick:i.a.func,onDragStart:i.a.func,onDragEnter:i.a.func,onDragOver:i.a.func,onDragLeave:i.a.func,onDragEnd:i.a.func,onDrop:i.a.func,filterTreeNode:i.a.func,motion:i.a.object,switcherIcon:i.a.oneOfType([i.a.node,i.a.func])},E.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},Object(d.polyfill)(E);var C=E,k=n(106);n.d(t,"TreeNode",(function(){return k.a}));var O=C;O.TreeNode=k.a;t.default=O},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:"ltr",r=l(t)?"translateY":"translateX";if(!l(t)&&"rtl"===n)return r+"("+100*e+"%) translateZ(0)";return r+"("+100*-e+"%) translateZ(0)"},t.getMarginStyle=function(e,t){var n=l(t)?"marginTop":"marginLeft";return(0,r.default)({},n,100*-e+"%")},t.getStyle=c,t.setPxStyle=function(e,t,n){t=n?"0px, "+t+"px, 0px":t+"px, 0px, 0px",s(e.style,"translate3d("+t+")")},t.getDataAttr=function(e){return Object.keys(e).reduce((function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})},t.getLeft=function(e,t){return d("left","offsetWidth","right",e,t)},t.getTop=function(e,t){return d("top","offsetHeight","bottom",e,t)};var o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=[];return o.default.Children.forEach(e,(function(e){e&&t.push(e)})),t}function s(e,t){e.transform=t,e.webkitTransform=t,e.mozTransform=t}function l(e){return"left"===e||"right"===e}function c(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function u(e,t){return+e.getPropertyValue(t).replace("px","")}function d(e,t,n,r,o){var i=c(o,"padding-"+e);if(!r||!r.parentNode)return i;var a=r.parentNode.childNodes;return Array.prototype.some.call(a,(function(o){var a=window.getComputedStyle(o);return o!==r?(i+=u(a,"margin-"+e),i+=o[t],i+=u(a,"margin-"+n),"content-box"===a.boxSizing&&(i+=u(a,"border-"+e+"-width")+u(a,"border-"+n+"-width")),!1):(i+=u(a,"margin-"+e),!0)})),i}},function(e,t,n){"use strict";n(37),n(318)},function(e,t,n){"use strict";n(37),n(331),n(32),n(169),n(93)},function(e,t,n){e.exports=n(19)(1281)},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n.n(o),a=n(16),s=n.n(a),l=n(108),c=n(82),u=n(30),d=n(118),f=n(33);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;ts))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,f=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++u-1},re.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(z||re),string:new ne}},oe.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return ge(this,e).get(e)},oe.prototype.has=function(e){return ge(this,e).has(e)},oe.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(r)}return n.set(e,t),this.size=n.size,this};var ye=V?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function _e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ae(e){return null!=e&&"object"==typeof e}var Te=y?function(e){return function(t){return e(t)}}(y):function(e){return Ae(e)&&Pe(e.length)&&!!c[ce(e)]};function Me(e){return null!=(t=e)&&Pe(t.length)&&!xe(t)?se(e):he(e);var t}n.exports=function(e,t){return de(e,t)}}).call(this,n(113),n(92)(e))},function(e,t,n){"use strict";n.r(t);var r=n(23),o=n.n(r),i=n(21),a=n.n(i),s=n(18),l=n.n(s),c=n(22),u=n.n(c),d=n(0),f=n.n(d),h=n(28),p=n.n(h),m=n(1),g=n.n(m),v=n(38),y=n(30),b=6,w=7,E=n(9),C=n.n(E),k=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value.localeData(),n=e.prefixCls,r=[],o=[],i=t.firstDayOfWeek(),a=void 0,s=C()(),l=0;lt.year()?1:e.year()===t.year()&&e.month()>t.month()}var L=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,o=e.value,i=e.showWeekNumber,a=e.dateRender,s=e.disabledDate,l=e.hoverValue,c=void 0,u=void 0,d=void 0,h=[],p=P(o),m=n+"-cell",g=n+"-week-number-cell",v=n+"-date",y=n+"-today",E=n+"-selected-day",C=n+"-selected-date",k=n+"-selected-start-date",O=n+"-selected-end-date",x=n+"-in-range-cell",A=n+"-last-month-cell",T=n+"-next-month-btn-day",M=n+"-disabled-cell",N=n+"-disabled-cell-first-of-row",L=n+"-disabled-cell-last-of-row",$=n+"-last-day-of-month",F=o.clone();F.date(1);var I=(F.day()+7-o.localeData().firstDayOfWeek())%7,V=F.clone();V.add(0-I,"days");var B=0;for(c=0;c0&&(J=h[B-1]);var X=m,Z=!1,Q=!1;D(d,p)&&(X+=" "+y,K=!0);var ee=j(d,o),te=R(d,o);if(r&&Array.isArray(r)){var ne=l.length?l:r;if(!ee&&!te){var re=ne[0],oe=ne[1];re&&D(d,re)&&(Q=!0,G=!0,X+=" "+k),(re||oe)&&(D(d,oe)?(Q=!0,G=!0,X+=" "+O):(null==re&&d.isBefore(oe,"day")||null==oe&&d.isAfter(re,"day")||d.isAfter(re,"day")&&d.isBefore(oe,"day"))&&(X+=" "+x))}}else D(d,o)&&(Q=!0,G=!0);D(d,r)&&(X+=" "+C),ee&&(X+=" "+A),te&&(X+=" "+T),d.clone().endOf("month").date()===d.date()&&(X+=" "+$),s&&s(d,o)&&(Z=!0,J&&s(J,o)||(X+=" "+N),Y&&s(Y,o)||(X+=" "+L)),Q&&(X+=" "+E),Z&&(X+=" "+M);var ie=void 0;if(a)ie=a(d,o);else{var ae=t?t(d,o):d.date();ie=f.a.createElement("div",{key:(W=d,"rc-calendar-"+W.year()+"-"+W.month()+"-"+W.date()),className:v,"aria-selected":Q,"aria-disabled":Z},ae)}q.push(f.a.createElement("td",{key:B,onClick:Z?void 0:e.onSelect.bind(null,d),onMouseEnter:Z?void 0:e.onDayHover&&e.onDayHover.bind(null,d)||void 0,role:"gridcell",title:_(d),className:X},ie)),B++}H.push(f.a.createElement("tr",{key:c,role:"row",className:S()((z={},z[n+"-current-week"]=K,z[n+"-active-week"]=G,z))},U,q))}return f.a.createElement("tbody",{className:n+"-tbody"},H)},t}(f.a.Component);L.propTypes={contentRender:g.a.func,dateRender:g.a.func,disabledDate:g.a.func,prefixCls:g.a.string,selectedValue:g.a.oneOfType([g.a.object,g.a.arrayOf(g.a.object)]),value:g.a.object,hoverValue:g.a.any,showWeekNumber:g.a.bool},L.defaultProps={hoverValue:[]};var $=L,F=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls;return f.a.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},f.a.createElement(k,e),f.a.createElement($,e))},t}(f.a.Component);function I(e){return e}function V(e){return f.a.Children.map(e,I)}var B=function(e){function t(){var n,r,o;a()(this,t);for(var i=arguments.length,s=Array(i),c=0;cl,n),o=void 0;return o=t.yearl?e.nextDecade:q.bind(e,t.year),f.a.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:o,className:S()(r)},f.a.createElement("a",{className:c+"-year"},t.content))}));return f.a.createElement("tr",{key:n,role:"row"},r)})),d=o&&o("year");return f.a.createElement("div",{className:this.prefixCls},f.a.createElement("div",null,f.a.createElement("div",{className:c+"-header"},f.a.createElement("a",{className:c+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade}),f.a.createElement("a",{className:c+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:r.decadeSelect},f.a.createElement("span",{className:c+"-decade-select-content"},s,"-",l),f.a.createElement("span",{className:c+"-decade-select-arrow"},"x")),f.a.createElement("a",{className:c+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade})),f.a.createElement("div",{className:c+"-body"},f.a.createElement("table",{className:c+"-table",cellSpacing:"0",role:"grid"},f.a.createElement("tbody",{className:c+"-tbody"},u))),d&&f.a.createElement("div",{className:c+"-footer"},d)))},t}(f.a.Component),J=Y;Y.propTypes={rootPrefixCls:g.a.string,value:g.a.object,defaultValue:g.a.object,renderFooter:g.a.func},Y.defaultProps={onSelect:function(){}};function X(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}function Z(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}var Q=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return r.state={value:n.value||n.defaultValue},r.prefixCls=n.rootPrefixCls+"-decade-panel",r.nextCentury=X.bind(r,100),r.previousCentury=X.bind(r,-100),r}return u()(t,e),t.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,r=n.locale,o=n.renderFooter,i=t.year(),a=100*parseInt(i/100,10),s=a-10,l=a+99,c=[],u=0,d=this.prefixCls,h=0;h<4;h++){c[h]=[];for(var p=0;p<3;p++){var m=s+10*u,g=s+10*u+9;c[h][p]={startDecade:m,endDecade:g},u++}}var v=o&&o("decade"),y=c.map((function(t,n){var r=t.map((function(t){var n,r=t.startDecade,o=t.endDecade,s=rl,u=((n={})[d+"-cell"]=1,n[d+"-selected-cell"]=r<=i&&i<=o,n[d+"-last-century-cell"]=s,n[d+"-next-century-cell"]=c,n),h=r+"-"+o,p=void 0;return p=s?e.previousCentury:c?e.nextCentury:Z.bind(e,r),f.a.createElement("td",{key:r,onClick:p,role:"gridcell",className:S()(u)},f.a.createElement("a",{className:d+"-decade"},h))}));return f.a.createElement("tr",{key:n,role:"row"},r)}));return f.a.createElement("div",{className:this.prefixCls},f.a.createElement("div",{className:d+"-header"},f.a.createElement("a",{className:d+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:r.previousCentury}),f.a.createElement("div",{className:d+"-century"},a,"-",l),f.a.createElement("a",{className:d+"-next-century-btn",role:"button",onClick:this.nextCentury,title:r.nextCentury})),f.a.createElement("div",{className:d+"-body"},f.a.createElement("table",{className:d+"-table",cellSpacing:"0",role:"grid"},f.a.createElement("tbody",{className:d+"-tbody"},y))),v&&f.a.createElement("div",{className:d+"-footer"},v))},t}(f.a.Component),ee=Q;function te(e){var t=this.props.value.clone();t.add(e,"months"),this.props.onValueChange(t)}function ne(e){var t=this.props.value.clone();t.add(e,"years"),this.props.onValueChange(t)}function re(e,t){return e?t:null}Q.propTypes={locale:g.a.object,value:g.a.object,defaultValue:g.a.object,rootPrefixCls:g.a.string,renderFooter:g.a.func},Q.defaultProps={onSelect:function(){}};var oe=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return ie.call(r),r.nextMonth=te.bind(r,1),r.previousMonth=te.bind(r,-1),r.nextYear=ne.bind(r,1),r.previousYear=ne.bind(r,-1),r.state={yearPanelReferer:null},r}return u()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.prefixCls,r=t.locale,o=t.mode,i=t.value,a=t.showTimePicker,s=t.enableNext,l=t.enablePrev,c=t.disabledMonth,u=t.renderFooter,d=null;return"month"===o&&(d=f.a.createElement(U,{locale:r,value:i,rootPrefixCls:n,onSelect:this.onMonthSelect,onYearPanelShow:function(){return e.showYearPanel("month")},disabledDate:c,cellRender:t.monthCellRender,contentRender:t.monthCellContentRender,renderFooter:u,changeYear:this.changeYear})),"year"===o&&(d=f.a.createElement(J,{locale:r,defaultValue:i,rootPrefixCls:n,onSelect:this.onYearSelect,onDecadePanelShow:this.showDecadePanel,renderFooter:u})),"decade"===o&&(d=f.a.createElement(ee,{locale:r,defaultValue:i,rootPrefixCls:n,onSelect:this.onDecadeSelect,renderFooter:u})),f.a.createElement("div",{className:n+"-header"},f.a.createElement("div",{style:{position:"relative"}},re(l&&!a,f.a.createElement("a",{className:n+"-prev-year-btn",role:"button",onClick:this.previousYear,title:r.previousYear})),re(l&&!a,f.a.createElement("a",{className:n+"-prev-month-btn",role:"button",onClick:this.previousMonth,title:r.previousMonth})),this.monthYearElement(a),re(s&&!a,f.a.createElement("a",{className:n+"-next-month-btn",onClick:this.nextMonth,title:r.nextMonth})),re(s&&!a,f.a.createElement("a",{className:n+"-next-year-btn",onClick:this.nextYear,title:r.nextYear}))),d)},t}(f.a.Component);oe.propTypes={prefixCls:g.a.string,value:g.a.object,onValueChange:g.a.func,showTimePicker:g.a.bool,onPanelChange:g.a.func,locale:g.a.object,enablePrev:g.a.any,enableNext:g.a.any,disabledMonth:g.a.func,renderFooter:g.a.func,onMonthSelect:g.a.func},oe.defaultProps={enableNext:1,enablePrev:1,onPanelChange:function(){},onValueChange:function(){}};var ie=function(){var e=this;this.onMonthSelect=function(t){e.props.onPanelChange(t,"date"),e.props.onMonthSelect?e.props.onMonthSelect(t):e.props.onValueChange(t)},this.onYearSelect=function(t){var n=e.state.yearPanelReferer;e.setState({yearPanelReferer:null}),e.props.onPanelChange(t,n),e.props.onValueChange(t)},this.onDecadeSelect=function(t){e.props.onPanelChange(t,"year"),e.props.onValueChange(t)},this.changeYear=function(t){t>0?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,r=n.prefixCls,o=n.locale,i=n.value,a=i.localeData(),s=o.monthBeforeYear,l=r+"-"+(s?"my-select":"ym-select"),c=t?" "+r+"-time-status":"",u=f.a.createElement("a",{className:r+"-year-select"+c,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:o.yearSelect},i.format(o.yearFormat)),d=f.a.createElement("a",{className:r+"-month-select"+c,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:o.monthSelect},o.monthFormat?i.format(o.monthFormat):a.monthsShort(i)),h=void 0;t&&(h=f.a.createElement("a",{className:r+"-day-select"+c,role:"button"},i.format(o.dayFormat)));var p=[];return p=s?[d,h,u]:[u,d,h],f.a.createElement("span",{className:l},V(p))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}},ae=oe;function se(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.timePicker,i=e.disabled,a=e.disabledDate,s=e.onToday,l=e.text,c=(!l&&o?n.now:l)||n.today,u=a&&!M(P(r),a)||i,d=u?t+"-today-btn-disabled":"";return f.a.createElement("a",{className:t+"-today-btn "+d,role:"button",onClick:u?null:s,title:A(r)},c)}function le(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,i=t+"-ok-btn";return r&&(i+=" "+t+"-ok-btn-disabled"),f.a.createElement("a",{className:i,role:"button",onClick:r?null:o},n.ok)}function ce(e){var t,n=e.prefixCls,r=e.locale,o=e.showTimePicker,i=e.onOpenTimePicker,a=e.onCloseTimePicker,s=e.timePickerDisabled,l=S()(((t={})[n+"-time-picker-btn"]=!0,t[n+"-time-picker-btn-disabled"]=s,t)),c=null;return s||(c=o?a:i),f.a.createElement("a",{className:l,role:"button",onClick:c},o?r.dateSelect:r.timeSelect)}var ue=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.onSelect=function(e){this.props.onSelect(e)},t.prototype.getRootDOMNode=function(){return p.a.findDOMNode(this)},t.prototype.render=function(){var e=this.props,t=e.value,n=e.prefixCls,r=e.showOk,i=e.timePicker,a=e.renderFooter,s=e.mode,l=null,c=a&&a(s);if(e.showToday||i||c){var u,d=void 0;e.showToday&&(d=f.a.createElement(se,o()({},e,{value:t})));var h=void 0;(!0===r||!1!==r&&e.timePicker)&&(h=f.a.createElement(le,e));var p=void 0;e.timePicker&&(p=f.a.createElement(ce,e));var m=void 0;(d||p||h||c)&&(m=f.a.createElement("span",{className:n+"-footer-btn"},c,V([d,p,h])));var g=S()(n+"-footer",((u={})[n+"-footer-show-ok"]=h,u));l=f.a.createElement("div",{className:g},m)}return l},t}(f.a.Component);ue.propTypes={prefixCls:g.a.string,showDateInput:g.a.bool,disabledTime:g.a.any,timePicker:g.a.element,selectedValue:g.a.any,showOk:g.a.bool,onSelect:g.a.func,value:g.a.object,renderFooter:g.a.func,defaultValue:g.a.object,mode:g.a.string};var de=ue;function fe(e){return e?P(e):C()()}var he={value:g.a.object,defaultValue:g.a.object,onKeyDown:g.a.func},pe={onKeyDown:function(){}};function me(){}var ge={className:g.a.string,locale:g.a.object,style:g.a.object,visible:g.a.bool,onSelect:g.a.func,prefixCls:g.a.string,onChange:g.a.func,onOk:g.a.func},ve={locale:{today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},style:{},visible:!0,prefixCls:"rc-calendar",className:"",onSelect:me,onChange:me,onClear:me,renderFooter:function(){return null},renderSidebar:function(){return null}},ye=void 0,be=void 0,we=void 0,Ee=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));Ce.call(r);var o=n.selectedValue;return r.state={str:N(o,r.props.format),invalid:!1,hasFocus:!1},r}return u()(t,e),t.prototype.componentDidUpdate=function(){!we||!this.state.hasFocus||this.state.invalid||0===ye&&0===be||we.setSelectionRange(ye,be)},t.getDerivedStateFromProps=function(e,t){var n={};we&&(ye=we.selectionStart,be=we.selectionEnd);var r=e.selectedValue;return t.hasFocus||(n={str:N(r,e.format),invalid:!1}),n},t.getInstance=function(){return we},t.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,o=e.locale,i=e.prefixCls,a=e.placeholder,s=e.clearIcon,l=e.inputMode,c=n?i+"-input-invalid":"";return f.a.createElement("div",{className:i+"-input-wrap"},f.a.createElement("div",{className:i+"-date-input-wrap"},f.a.createElement("input",{ref:this.saveDateInput,className:i+"-input "+c,value:r,disabled:e.disabled,placeholder:a,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:l})),e.showClear?f.a.createElement("a",{role:"button",title:o.clear,onClick:this.onClear},s||f.a.createElement("span",{className:i+"-clear-btn"})):null)},t}(f.a.Component);Ee.propTypes={prefixCls:g.a.string,timePicker:g.a.object,value:g.a.object,disabledTime:g.a.any,format:g.a.oneOfType([g.a.string,g.a.arrayOf(g.a.string)]),locale:g.a.object,disabledDate:g.a.func,onChange:g.a.func,onClear:g.a.func,placeholder:g.a.string,onSelect:g.a.func,selectedValue:g.a.object,clearIcon:g.a.node,inputMode:g.a.string};var Ce=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,r=e.props,o=r.disabledDate,i=r.format,a=r.onChange,s=r.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=C()(n,i,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||o&&o(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState((function(e,t){return{hasFocus:!1,str:N(t.value,t.format)}}))},this.onKeyDown=function(t){var n=t.keyCode,r=e.props,o=r.onSelect,i=r.value,a=r.disabledDate;n===v.default.ENTER&&o&&((!a||!a(i))&&o(i.clone()),t.preventDefault())},this.getRootDOMNode=function(){return p.a.findDOMNode(e)},this.focus=function(){we&&we.focus()},this.saveDateInput=function(e){we=e}};Object(y.polyfill)(Ee);var ke=Ee;function Oe(){}var Se=function(e){return!(!C.a.isMoment(e)||!e.isValid())&&e},xe=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return Pe.call(r),r.state={mode:r.props.mode||"date",value:Se(n.value)||Se(n.defaultValue)||C()(),selectedValue:n.selectedValue||n.defaultSelectedValue},r}return u()(t,e),t.prototype.componentDidMount=function(){this.props.showDateInput&&this.saveFocusElement(ke.getInstance())},t.getDerivedStateFromProps=function(e,t){var n=e.value,r=e.selectedValue,o={};return"mode"in e&&t.mode!==e.mode&&(o={mode:e.mode}),"value"in e&&(o.value=Se(n)||Se(e.defaultValue)||fe(t.value)),"selectedValue"in e&&(o.selectedValue=r),o},t.prototype.render=function(){var e=this.props,t=this.state,n=e.locale,r=e.prefixCls,i=e.disabledDate,a=e.dateInputPlaceholder,s=e.timePicker,l=e.disabledTime,c=e.clearIcon,u=e.renderFooter,d=e.inputMode,h=e.monthCellRender,p=e.monthCellContentRender,m=t.value,g=t.selectedValue,v=t.mode,y="time"===v,b=y&&l&&s?T(g,l):null,w=null;if(s&&y){var E=o()({showHour:!0,showSecond:!0,showMinute:!0},s.props,b,{onChange:this.onDateInputChange,value:g,disabledTime:l});void 0!==s.props.defaultValue&&(E.defaultOpenValue=s.props.defaultValue),w=f.a.cloneElement(s,E)}var C=e.showDateInput?f.a.createElement(ke,{format:this.getFormat(),key:"date-input",value:m,locale:n,placeholder:a,showClear:!0,disabledTime:l,disabledDate:i,onClear:this.onClear,prefixCls:r,selectedValue:g,onChange:this.onDateInputChange,onSelect:this.onDateInputSelect,clearIcon:c,inputMode:d}):null,k=[];return e.renderSidebar&&k.push(e.renderSidebar()),k.push(f.a.createElement("div",{className:r+"-panel",key:"panel"},C,f.a.createElement("div",{tabIndex:this.props.focusablePanel?0:void 0,className:r+"-date-panel"},f.a.createElement(ae,{locale:n,mode:v,value:m,onValueChange:this.setValue,onPanelChange:this.onPanelChange,renderFooter:u,showTimePicker:y,prefixCls:r,monthCellRender:h,monthCellContentRender:p}),s&&y?f.a.createElement("div",{className:r+"-time-picker"},f.a.createElement("div",{className:r+"-time-picker-panel"},w)):null,f.a.createElement("div",{className:r+"-body"},f.a.createElement(F,{locale:n,value:m,selectedValue:g,prefixCls:r,dateRender:e.dateRender,onSelect:this.onDateTableSelect,disabledDate:i,showWeekNumber:e.showWeekNumber})),f.a.createElement(de,{showOk:e.showOk,mode:v,renderFooter:e.renderFooter,locale:n,prefixCls:r,showToday:e.showToday,disabledTime:l,showTimePicker:y,showDateInput:e.showDateInput,timePicker:s,selectedValue:g,timePickerDisabled:!g,value:m,disabledDate:i,okDisabled:!(!1===e.showOk||g&&this.isAllowedDate(g)),onOk:this.onOk,onSelect:this.onSelect,onToday:this.onToday,onOpenTimePicker:this.openTimePicker,onCloseTimePicker:this.closeTimePicker})))),this.renderRoot({children:k,className:e.showWeekNumber?r+"-week-number":""})},t}(f.a.Component);xe.propTypes=o()({},he,ge,{prefixCls:g.a.string,className:g.a.string,style:g.a.object,defaultValue:g.a.object,value:g.a.object,selectedValue:g.a.object,defaultSelectedValue:g.a.object,mode:g.a.oneOf(["time","date","month","year","decade"]),locale:g.a.object,showDateInput:g.a.bool,showWeekNumber:g.a.bool,showToday:g.a.bool,showOk:g.a.bool,onSelect:g.a.func,onOk:g.a.func,onKeyDown:g.a.func,timePicker:g.a.element,dateInputPlaceholder:g.a.any,onClear:g.a.func,onChange:g.a.func,onPanelChange:g.a.func,disabledDate:g.a.func,disabledTime:g.a.any,dateRender:g.a.func,renderFooter:g.a.func,renderSidebar:g.a.func,clearIcon:g.a.node,focusablePanel:g.a.bool,inputMode:g.a.string,onBlur:g.a.func}),xe.defaultProps=o()({},pe,ve,{showToday:!0,showDateInput:!0,timePicker:null,onOk:Oe,onPanelChange:Oe,focusablePanel:!0});var Pe=function(){var e=this;this.onPanelChange=function(t,n){var r=e.props,o=e.state;"mode"in r||e.setState({mode:n}),r.onPanelChange(t||o.value,n)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,r=t.ctrlKey||t.metaKey,o=e.props.disabledDate,i=e.state.value;switch(n){case v.default.DOWN:return e.goTime(1,"weeks"),t.preventDefault(),1;case v.default.UP:return e.goTime(-1,"weeks"),t.preventDefault(),1;case v.default.LEFT:return r?e.goTime(-1,"years"):e.goTime(-1,"days"),t.preventDefault(),1;case v.default.RIGHT:return r?e.goTime(1,"years"):e.goTime(1,"days"),t.preventDefault(),1;case v.default.HOME:return e.setValue(e.state.value.clone().startOf("month")),t.preventDefault(),1;case v.default.END:return e.setValue(function(e){return e.clone().endOf("month")}(e.state.value)),t.preventDefault(),1;case v.default.PAGE_DOWN:return e.goTime(1,"month"),t.preventDefault(),1;case v.default.PAGE_UP:return e.goTime(-1,"month"),t.preventDefault(),1;case v.default.ENTER:return o&&o(i)||e.onSelect(i,{source:"keyboard"}),t.preventDefault(),1;default:return e.props.onKeyDown(t),1}}},this.onClear=function(){e.onSelect(null),e.props.onClear()},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDate(t)&&e.props.onOk(t)},this.onDateInputChange=function(t){e.onSelect(t,{source:"dateInput"})},this.onDateInputSelect=function(t){e.onSelect(t,{source:"dateInputSelect"})},this.onDateTableSelect=function(t){var n,r,o=e.props.timePicker;if(!e.state.selectedValue&&o){var i=o.props.defaultValue;i&&(n=i,r=t,C.a.isMoment(n)&&C.a.isMoment(r)&&(r.hour(n.hour()),r.minute(n.minute()),r.second(n.second()),r.millisecond(n.millisecond())))}e.onSelect(t)},this.onToday=function(){var t=P(e.state.value);e.onSelect(t,{source:"todayButton"})},this.onBlur=function(t){setTimeout((function(){var n=ke.getInstance(),r=e.rootInstance;!r||r.contains(document.activeElement)||n&&n.contains(document.activeElement)||e.props.onBlur&&e.props.onBlur(t)}),0)},this.getRootDOMNode=function(){return p.a.findDOMNode(e)},this.openTimePicker=function(){e.onPanelChange(null,"time")},this.closeTimePicker=function(){e.onPanelChange(null,"date")},this.goTime=function(t,n){e.setValue(function(e,t,n){return e.clone().add(t,n)}(e.state.value,t,n))}};Object(y.polyfill)(xe);var _e,Ae,Te,Me=function(e){var t,n;return n=t=function(t){function n(){var e,r,o;a()(this,n);for(var i=arguments.length,s=Array(i),c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(94),o=n.n(r)()(null)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateShowHourMinuteSecond=x,t.default=void 0;var r=v(n(0)),o=v(n(9)),i=m(n(70)),a=n(30),s=m(n(350)),l=m(n(16)),c=m(n(71)),u=m(n(111)),d=n(44),f=m(n(352)),h=m(n(105)),p=m(n(20));function m(e){return e&&e.__esModule?e:{default:e}}function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t-1||e.indexOf("h")>-1||e.indexOf("k")>-1,showMinute:e.indexOf("m")>-1,showSecond:e.indexOf("s")>-1}}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(v,e);var t,n,a,m,g=(t=v,function(){var e,n=O(t);if(k()){var r=O(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return C(this,e)});function v(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=g.call(this,e)).getDefaultLocale=function(){return b(b({},f.default),t.props.locale)},t.handleOpenClose=function(e){var n=e.open,r=t.props.onOpenChange;r&&r(n)},t.saveTimePicker=function(e){t.timePickerRef=e},t.handleChange=function(e){"value"in t.props||t.setState({value:e});var n=t.props,r=n.onChange,o=n.format,i=void 0===o?"HH:mm:ss":o;r&&r(e,e&&e.format(i)||"")},t.renderTimePicker=function(e){return r.createElement(d.ConfigConsumer,null,(function(n){var o=n.getPopupContainer,a=n.getPrefixCls,c=t.props,u=c.getPopupContainer,d=c.prefixCls,f=c.className,h=c.addon,p=c.placeholder,m=S(c,["getPopupContainer","prefixCls","className","addon","placeholder"]),g=m.size,v=(0,i.default)(m,["defaultValue","suffixIcon","allowEmpty","allowClear"]),y=t.getDefaultFormat(),w=a("time-picker",d),E=(0,l.default)(f,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"".concat(w,"-").concat(g),!!g));return r.createElement(s.default,b({},x(y),v,{allowEmpty:t.getAllowClear(),prefixCls:w,getPopupContainer:u||o,ref:t.saveTimePicker,format:y,className:E,value:t.state.value,placeholder:void 0===p?e.placeholder:p,onChange:t.handleChange,onOpen:t.handleOpenClose,onClose:t.handleOpenClose,addon:function(e){return h?r.createElement("div",{className:"".concat(w,"-panel-addon")},h(e)):null},inputIcon:t.renderInputIcon(w),clearIcon:t.renderClearIcon(w)}))}))};var n=e.value||e.defaultValue;if(n&&!(0,h.default)(o).isMoment(n))throw new Error("The value/defaultValue of TimePicker must be a moment object after `antd@2.0`, see: https://u.ant.design/time-picker-value");return t.state={value:n},(0,c.default)(!("allowEmpty"in e),"TimePicker","`allowEmpty` is deprecated. Please use `allowClear` instead."),t}return n=v,m=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}],(a=[{key:"getDefaultFormat",value:function(){var e=this.props,t=e.format,n=e.use12Hours;return t||(n?"h:mm:ss a":"HH:mm:ss")}},{key:"getAllowClear",value:function(){var e=this.props,t=e.allowClear,n=e.allowEmpty;return"allowClear"in this.props?t:n}},{key:"focus",value:function(){this.timePickerRef.focus()}},{key:"blur",value:function(){this.timePickerRef.blur()}},{key:"renderInputIcon",value:function(e){var t=this.props.suffixIcon,n=t&&r.isValidElement(t)&&r.cloneElement(t,{className:(0,l.default)(t.props.className,"".concat(e,"-clock-icon"))})||r.createElement(p.default,{type:"clock-circle",className:"".concat(e,"-clock-icon")});return r.createElement("span",{className:"".concat(e,"-icon")},n)}},{key:"renderClearIcon",value:function(e){var t=this.props.clearIcon,n="".concat(e,"-clear");return t&&r.isValidElement(t)?r.cloneElement(t,{className:(0,l.default)(t.props.className,n)}):r.createElement(p.default,{type:"close-circle",className:n,theme:"filled"})}},{key:"render",value:function(){return r.createElement(u.default,{componentName:"TimePicker",defaultLocale:this.getDefaultLocale()},this.renderTimePicker)}}])&&w(n.prototype,a),m&&w(n,m),v}(r.Component);P.defaultProps={align:{offset:[0,-2]},disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up",focusOnOpen:!0},(0,a.polyfill)(P);var _=P;t.default=_},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(185))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){e.exports=n(19)(878)},function(e,t,n){"use strict";(function(e){var r=n(145);n(387);var o=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};var i=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1,defaultInstance:!1},o=!1,i=!1,a=!1;"number"==typeof r?(e&&e.env,o=!0,i=!1):"object"===p(r)&&r&&(i=r.global||!1,o=r.core||!1,a=r.defaultInstance||!1),i?t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,n):o?t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,n):a?this.defaultMiddlewares.push(n):this.middlewares.push(n)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=m([].concat(c(this.middlewares),c(this.defaultMiddlewares),c(t.globalMiddlewares),c(t.coreMiddlewares)));return n(e)}}]),t}();g.globalMiddlewares=[],g.defaultGlobalMiddlewaresLength=0,g.coreMiddlewares=[],g.defaultCoreMiddlewaresLength=0;var v=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var y=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t},b=h((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t})),w=h((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t}));var E=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)};var C=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},k=h((function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function n(r,o,i){return t()?e.exports=n=Reflect.construct:e.exports=n=function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&w(o,n.prototype),o},n.apply(null,arguments)}e.exports=n})),O=h((function(e){function t(n){var r="function"==typeof Map?new Map:void 0;return e.exports=t=function(e){if(null===e||!C(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return k(e,arguments,b(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),w(t,e)},t(n)}e.exports=t})),S=function(){function e(t){u(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return f(e,[{key:"extendOptions",value:function(e){this.maxCache=e.maxCache||0}},{key:"get",value:function(e){return this.cache.get(JSON.stringify(e))}},{key:"set",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var o=c(this.cache.keys())[0];this.cache.delete(o),this.timer[o]&&clearTimeout(this.timer[o])}var i=JSON.stringify(e);this.cache.set(i,t),r>0&&(this.timer[i]=setTimeout((function(){n.cache.delete(i),delete n.timer[i]}),r))}},{key:"delete",value:function(e){var t=JSON.stringify(e);return delete this.timer[t],this.cache.delete(t)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),x=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return u(this,t),(r=y(this,b(t).call(this,e))).name="RequestError",r.request=n,r.type=o,r}return E(t,e),t}(O(Error)),P=function(e){function t(e,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return u(this,t),(i=y(this,b(t).call(this,n||e.statusText))).name="ResponseError",i.data=r,i.response=e,i.request=o,i.type=a,i}return E(t,e),t}(O(Error));function _(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsText(e,"GBK")}))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{return JSON.parse(e)}catch(o){if(t)throw new P(n,"JSON.parse fail",e,r,"ParseError")}return e}function T(e,t){return new Promise((function(n,r){setTimeout((function(){r(new x("timeout of ".concat(e,"ms exceeded"),t,"Timeout"))}),e)}))}function M(e){return new Promise((function(t,n){e.cancelToken&&e.cancelToken.promise.then((function(e){n(e)}))}))}var N=Object.prototype.toString;function D(){var t;return void 0!==e&&"[object process]"===N.call(e)&&(t="NODE"),"undefined"!=typeof XMLHttpRequest&&(t="BROWSER"),t}function j(e){return"object"===p(e)&&"[object Array]"===Object.prototype.toString.call(e)}function R(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function L(e){return null!==e&&"object"===p(e)}function $(e,t){if(e)if("object"!==p(e)&&(e=[e]),j(e))for(var n=0;n=200&&n.status<300)return s?void(e.res={data:t,response:n}):void(e.res=t);throw new P(n,"http error",t,o,"HttpError")}}})).catch((function(t){if(t instanceof x||t instanceof P)throw t;var n=e.req,r=e.res;throw t.request=t.request||n,t.response=t.response||r,t.type=t.type||t.name,t.data=t.data||void 0,t}))}],z=[function(t,n){if(!t)return n();var r=t.req,o=(r=void 0===r?{}:r).options,i=void 0===o?{}:o,a=r.url,s=void 0===a?"":a,l=t.cache,c=t.responseInterceptors,u=i.timeout,d=void 0===u?0:u,f=i.__umiRequestCoreType__,h=void 0===f?"normal":f,p=i.useCache,m=void 0!==p&&p,g=i.method,v=void 0===g?"get":g,y=i.params,b=i.ttl,w=i.validateCache,E=void 0===w?B:w;if("normal"!==h)return e&&e.env,n();var C=fetch;if(!C)throw new Error("Global fetch not exist!");var k,O="BROWSER"===D(),S=E(s,i)&&m&&O;if(S){var x=l.get({url:s,params:y,method:v});if(x)return(x=x.clone()).useCache=!0,t.res=x,n()}return k=d>0?Promise.race([M(i),C(s,i),T(d,t.req)]):Promise.race([M(i),C(s,i)]),c.forEach((function(e){k=k.then((function(t){var n="function"==typeof t.clone?t.clone():t;return e(n,i)}))})),k.then((function(e){if(S&&200===e.status){var r=e.clone();r.useCache=!0,l.set({url:s,params:y,method:v},r,b)}return t.res=e,n()}))}];g.globalMiddlewares=H,g.defaultGlobalMiddlewaresLength=H.length,g.coreMiddlewares=z,g.defaultCoreMiddlewaresLength=z.length;var K=function(){function e(t){u(this,e),this.onion=new g([]),this.fetchIndex=0,this.mapCache=new S(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return f(e,[{key:"use",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1};return this.onion.use(e,t),this}},{key:"extendOptions",value:function(e){this.initOptions=V(this.initOptions,e),this.mapCache.extendOptions(e)}},{key:"dealRequestInterceptors",value:function(t){return[].concat(c(e.requestInterceptors),c(this.instanceRequestInterceptors)).reduce((function(e,n){return e.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,n(t.req.url,t.req.options)}))}),Promise.resolve()).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,Promise.resolve()}))}},{key:"request",value:function(t,n){var r=this,o=this.onion,i={req:{url:t,options:n},res:null,cache:this.mapCache,responseInterceptors:[].concat(c(e.responseInterceptors),c(this.instanceResponseInterceptors))};if("string"!=typeof t)throw new Error("url MUST be a string");return new Promise((function(e,t){r.dealRequestInterceptors(i).then((function(){return o.execute(i)})).then((function(){e(i.res)})).catch((function(n){var r=i.req.options.errorHandler;if(r)try{var o=r(n);e(o)}catch(e){t(e)}else t(n)}))}))}}],[{key:"requestUse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");n.global?e.requestInterceptors.push(t):this.instanceRequestInterceptors.push(t)}},{key:"responseUse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");n.global?e.responseInterceptors.push(t):this.instanceResponseInterceptors.push(t)}}]),e}();function U(e){this.message=e}function G(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new U(e),t(n.reason))}))}function q(e){return!(!e||!e.__CANCEL__)}K.requestInterceptors=[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=t.suffix;return n&&(e="".concat(n).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:t}}],K.responseInterceptors=[],U.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},U.prototype.__CANCEL__=!0,G.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},G.source=function(){var e;return{token:new G((function(t){e=t})),cancel:e}};var Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new K(e),n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=V(t.initOptions,n);return t.request(e,r)};n.use=t.use.bind(t),n.fetchIndex=t.fetchIndex,n.interceptors={request:{use:K.requestUse.bind(t)},response:{use:K.responseUse.bind(t)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach((function(e){n[e]=function(t,r){return n(t,i({},r,{method:e}))}})),n.Cancel=U,n.CancelToken=G,n.isCancel=q,n.extendOptions=t.extendOptions.bind(t),n.middlewares={instance:t.onion.middlewares,defaultInstance:t.onion.defaultMiddlewares,global:g.globalMiddlewares,core:g.coreMiddlewares},n},J=(Y({parseResponse:!1}),Y({}));t.a=J}).call(this,n(384))},function(e,t,n){e.exports=n(19)(126)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validProgress=function(e){if(!e||e<0)return 0;if(e>100)return 100;return e}},function(e,t,n){"use strict";n(37),n(221)},function(e,t,n){e.exports=n(19)(219)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(23));t.argumentContainer=function(e,t){return e.displayName="Form("+function(e){return e.displayName||e.name||"WrappedComponent"}(t)+")",e.WrappedComponent=t,(0,o.default)(e,t)},t.identity=function(e){return e},t.flattenArray=function(e){return Array.prototype.concat.apply([],e)},t.treeTraverse=s,t.flattenFields=function(e,t,n){var r={};return s(void 0,e,t,n,(function(e,t){r[e]=t})),r},t.normalizeValidateRules=function(e,t,n){var o=e.map((function(e){var t=(0,r.default)({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t}));t&&o.push({trigger:n?[].concat(n):[],rules:t});return o},t.getValidateTriggers=function(e){return e.filter((function(e){return!!e.rules&&e.rules.length})).map((function(e){return e.trigger})).reduce((function(e,t){return e.concat(t)}),[])},t.getValueFromEvent=function(e){if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value},t.getErrorStrs=function(e){if(e)return e.map((function(e){return e&&e.message?e.message:e}));return e},t.getParams=function(e,t,n){var r=e,o=t,i=n;void 0===n&&("function"==typeof r?(i=r,o={},r=void 0):Array.isArray(r)?"function"==typeof o?(i=o,o={}):o=o||{}:(i=o,o=r||{},r=void 0));return{names:r,options:o,callback:i}},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.hasRules=function(e){if(e)return e.some((function(e){return e.rules&&e.rules.length}));return!1},t.startsWith=function(e,t){return 0===e.lastIndexOf(t,0)};var o=a(n(268)),i=a(n(66));function a(e){return e&&e.__esModule?e:{default:e}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],o=arguments[4];if(n(e,t))o(e,t);else if(null==t);else if(Array.isArray(t))t.forEach((function(t,i){return s(e+"["+i+"]",t,n,r,o)}));else{if("object"!=typeof t)return void(0,i.default)(!1,r);Object.keys(t).forEach((function(i){var a=t[i];s(e+(e?".":"")+i,a,n,r,o)}))}}},function(e,t,n){"use strict";n(37),n(287)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warnOnlyTreeNode=function(){if(u)return;u=!0,(0,i.default)(!1,"Tree only accept TreeNode as children.")},t.arrDel=function(e,t){var n=e.slice(),r=n.indexOf(t);r>=0&&n.splice(r,1);return n},t.arrAdd=function(e,t){var n=e.slice();-1===n.indexOf(t)&&n.push(t);return n},t.posToArr=function(e){return e.split("-")},t.getPosition=d,t.isTreeNode=f,t.getNodeChildren=h,t.isCheckDisabled=p,t.traverseTreeNodes=m,t.mapChildren=function(e,t){var n=(0,o.default)(e).map(t);if(1===n.length)return n[0];return n},t.getDragNodesKeys=function(e,t){var n=t.props,r=n.eventKey,o=n.pos,i=[];return m(e,(function(e){var t=e.key;i.push(t)})),i.push(r||o),i},t.calcDropPosition=function(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,i=r.bottom,a=r.height,s=Math.max(.25*a,2);if(n<=o+s)return-1;if(n>=i-s)return 1;return 0},t.calcSelectedKeys=function(e,t){if(!e)return;if(t.multiple)return e.slice();if(e.length)return[e[0]];return e},t.convertDataToTree=function e(t,n){if(!t)return[];var o=(n||{}).processProps,i=void 0===o?v:o;return(Array.isArray(t)?t:[t]).map((function(t){var o=t.children,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["children"]),l=e(o,n);return r.default.createElement(a.default,Object.assign({},i(s)),l)}))},t.convertTreeToEntities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i={},a={},s={posEntities:i,keyEntities:a};n&&(s=n(s)||s);m(e,(function(e){var t=e.node,n=e.index,o=e.pos,l=e.key,c=e.parentPos,u={node:t,index:n,key:l,pos:o};i[o]=u,a[l]=u,u.parent=i[c],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,s)})),o&&o(s);return s},t.parseCheckedKeys=function(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==c(e))return(0,i.default)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t.checkedKeys=g(t.checkedKeys),t.halfCheckedKeys=g(t.halfCheckedKeys),t},t.conductCheck=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={},a={};function s(e){if(o[e]!==t){var r=n[e];if(r){var i=r.children,l=r.parent;if(!p(r.node)){var c=!0,u=!1;(i||[]).filter((function(e){return!p(e.node)})).forEach((function(e){var t=e.key,n=o[t],r=a[t];(n||r)&&(u=!0),n||(c=!1)})),o[e]=!!t&&c,a[e]=u,l&&s(l.key)}}}}function l(e){if(o[e]!==t){var r=n[e];if(r){var i=r.children;p(r.node)||(o[e]=t,(i||[]).forEach((function(e){l(e.key)})))}}}function c(e){var r=n[e];if(r){var a=r.children,c=r.parent,u=r.node;o[e]=t,p(u)||((a||[]).filter((function(e){return!p(e.node)})).forEach((function(e){l(e.key)})),c&&s(c.key))}else(0,i.default)(!1,"'".concat(e,"' does not exist in the tree."))}(r.checkedKeys||[]).forEach((function(e){o[e]=!0})),(r.halfCheckedKeys||[]).forEach((function(e){a[e]=!0})),(e||[]).forEach((function(e){c(e)}));var u=[],d=[];return Object.keys(o).forEach((function(e){o[e]&&u.push(e)})),Object.keys(a).forEach((function(e){!o[e]&&a[e]&&d.push(e)})),{checkedKeys:u,halfCheckedKeys:d}},t.conductExpandParent=function(e,t){var n={};return(e||[]).forEach((function(e){!function e(r){if(n[r])return;var o=t[r];if(!o)return;n[r]=!0;var i=o.parent,a=o.node;if(a.props&&a.props.disabled)return;i&&e(i.key)}(e)})),Object.keys(n)},t.getDataAndAria=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=s(n(163)),i=s(n(66)),a=s(n(297));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=!1;function d(e,t){return"".concat(e,"-").concat(t)}function f(e){return e&&e.type&&e.type.isTreeNode}function h(e){return(0,o.default)(e).filter(f)}function p(e){var t=e.props||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function m(e,t){!function n(o,i,a){var s=o?o.props.children:e,l=o?d(a.pos,i):0,c=h(s);if(o){var u={node:o,index:i,pos:l,key:o.key||l,parentPos:a.node?a.pos:null};t(u)}r.Children.forEach(c,(function(e,t){n(e,t,{node:o,pos:l})}))}(null)}function g(e){return e?e.map((function(e){return String(e)})):e}var v=function(e){return e}},function(e,t,n){"use strict";n(37),n(317)},function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(21)),o=p(n(18)),i=p(n(22)),a=p(n(0)),s=p(n(28)),l=p(n(1)),c=n(30),u=p(n(343)),d=p(n(112)),f=p(n(344)),h=p(n(177));function p(e){return e&&e.__esModule?e:{default:e}}function m(){}function g(e,t){this[e]=t}var v=function(e){function t(n){(0,r.default)(this,t);var i=(0,o.default)(this,e.call(this,n));y.call(i);var a=void 0;a="open"in n?n.open:n.defaultOpen;var s=n.value||n.defaultValue;return i.saveCalendarRef=g.bind(i,"calendarInstance"),i.state={open:a,value:s},i}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e,t){!t.open&&this.state.open&&(this.focusTimeout=setTimeout(this.focusCalendar,0,this))},t.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout)},t.getDerivedStateFromProps=function(e){var t={},n=e.value,r=e.open;return"value"in e&&(t.value=n),void 0!==r&&(t.open=r),t},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.placement,r=e.style,o=e.getCalendarContainer,i=e.align,s=e.animation,l=e.disabled,c=e.dropdownClassName,u=e.transitionName,d=e.children,p=this.state;return a.default.createElement(h.default,{popup:this.getCalendarElement(),popupAlign:i,builtinPlacements:f.default,popupPlacement:n,action:l&&!p.open?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:o,popupStyle:r,popupAnimation:s,popupTransitionName:u,popupVisible:p.open,onPopupVisibleChange:this.onVisibleChange,prefixCls:t,popupClassName:c},a.default.cloneElement(d(p,e),{onKeyDown:this.onKeyDown}))},t}(a.default.Component);v.propTypes={animation:l.default.oneOfType([l.default.func,l.default.string]),disabled:l.default.bool,transitionName:l.default.string,onChange:l.default.func,onOpenChange:l.default.func,children:l.default.func,getCalendarContainer:l.default.func,calendar:l.default.element,style:l.default.object,open:l.default.bool,defaultOpen:l.default.bool,prefixCls:l.default.string,placement:l.default.any,value:l.default.oneOfType([l.default.object,l.default.array]),defaultValue:l.default.oneOfType([l.default.object,l.default.array]),align:l.default.object,dateRender:l.default.func,onBlur:l.default.func},v.defaultProps={prefixCls:"rc-calendar-picker",style:{},align:{},placement:"bottomLeft",defaultOpen:!1,onChange:m,onOpenChange:m,onBlur:m};var y=function(){var e=this;this.onCalendarKeyDown=function(t){t.keyCode===d.default.ESC&&(t.stopPropagation(),e.close(e.focus))},this.onCalendarSelect=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.props;"value"in r||e.setState({value:t}),("keyboard"===n.source||"dateInputSelect"===n.source||!r.calendar.props.timePicker&&"dateInput"!==n.source||"todayButton"===n.source)&&e.close(e.focus),r.onChange(t)},this.onKeyDown=function(t){e.state.open||t.keyCode!==d.default.DOWN&&t.keyCode!==d.default.ENTER||(e.open(),t.preventDefault())},this.onCalendarOk=function(){e.close(e.focus)},this.onCalendarClear=function(){e.close(e.focus)},this.onCalendarBlur=function(){e.setOpen(!1)},this.onVisibleChange=function(t){e.setOpen(t)},this.getCalendarElement=function(){var t=e.props,n=e.state,r=t.calendar.props,o=n.value,i=o,s={ref:e.saveCalendarRef,defaultValue:i||r.defaultValue,selectedValue:o,onKeyDown:e.onCalendarKeyDown,onOk:(0,u.default)(r.onOk,e.onCalendarOk),onSelect:(0,u.default)(r.onSelect,e.onCalendarSelect),onClear:(0,u.default)(r.onClear,e.onCalendarClear),onBlur:(0,u.default)(r.onBlur,e.onCalendarBlur)};return a.default.cloneElement(t.calendar,s)},this.setOpen=function(t,n){var r=e.props.onOpenChange;e.state.open!==t&&("open"in e.props||e.setState({open:t},n),r(t))},this.open=function(t){e.setOpen(!0,t)},this.close=function(t){e.setOpen(!1,t)},this.focus=function(){e.state.open||s.default.findDOMNode(e).focus()},this.focusCalendar=function(){e.state.open&&e.calendarInstance&&e.calendarInstance.focus()}};(0,c.polyfill)(v),t.default=v,e.exports=t.default},function(e,t,n){},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r children");r=e}})),r}var k=n(28),O=n.n(k),S=n(141),x={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},P={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},_=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){x.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){x.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){x.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=O.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"==typeof i;this.stop();var s=function(){n.stopper=null,t()};if((S.isCssAnimationSupported||!o.animation[e])&&i&&o[P[e]]){var l=a?i[e]:i+"-"+e,c=l+"-active";a&&i[e+"Active"]&&(c=i[e+"Active"]),this.stopper=Object(S.default)(r,{name:l,active:c},s)}else this.stopper=o.animation[e](r,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(g.a.Component);_.propTypes={children:y.a.any,animation:y.a.any,transitionName:y.a.any};var A=_,T="rc_animate_"+Date.now();function M(e){var t=e.children;return g.a.isValidElement(t)&&!t.key?g.a.cloneElement(t,{key:T}):t}function N(){}var D=function(e){function t(e){l()(this,t);var n=f()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return j.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:w(M(e))},n.childrenRefs={},n}return p()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=w(M(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var o,i,s,l,c=r.showProp,u=this.currentlyAnimatingKeys,d=r.exclusive?w(M(r)):this.state.children,f=[];c?(d.forEach((function(e){var t=e&&E(n,e.key),r=void 0;(r=t&&t.props[c]||!e.props[c]?t:g.a.cloneElement(t||e,a()({},c,!0)))&&f.push(r)})),n.forEach((function(e){e&&E(d,e.key)||f.push(e)}))):(o=n,i=[],s={},l=[],d.forEach((function(e){e&&E(o,e.key)?l.length&&(s[e.key]=l,l=[]):l.push(e)})),o.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(s,e.key)&&(i=i.concat(s[e.key])),i.push(e)})),f=i=i.concat(l)),this.setState({children:f}),n.forEach((function(e){var n=e&&e.key;if(!e||!u[n]){var r=e&&E(d,n);if(c){var o=e.props[c];if(r)!C(d,n,c)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),d.forEach((function(e){var r=e&&e.key;if(!e||!u[r]){var o=e&&E(n,r);if(c){var i=e.props[c];if(o)!C(n,r,c)&&i&&t.keysToLeave.push(r);else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?C(e,t,n):E(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for children");return g.a.createElement(A,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=o()({className:t.className,style:t.style},t.componentProps)),g.a.createElement(i,a,r)}return r[0]||null}}]),t}(g.a.Component);D.isAnimate=!0,D.propTypes={className:y.a.string,style:y.a.object,component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node},D.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:N,onEnter:N,onLeave:N,onAppear:N};var j=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=w(M(r));e.isValidChildByKey(o,t)?"appear"===n?x.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):x.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,a,s=w(M(n));if(e.isValidChildByKey(s,t))e.performEnter(t);else{var l=function(){x.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=s,i=n.showProp,(a=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(a=!1)})),a?l():e.setState({children:s},l)}}}};t.default=b(D)},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){e.exports=n(19)(307)},function(e,t,n){e.exports=n(19)(375)},function(e,t,n){e.exports=n(19)(834)},function(e,t,n){e.exports=n(19)(1276)},function(e,t,n){e.exports=n(19)(38)},function(e,t,n){e.exports=n(19)(305)},function(e,t,n){"use strict";var r=n(284),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.validateMessages,g=e.onFieldsChange,v=e.onValuesChange,y=e.mapProps,b=void 0===y?m.identity:y,w=e.mapPropsToFields,E=e.fieldNameProp,C=e.fieldMetaProp,k=e.fieldDataProp,O=e.formPropName,S=void 0===O?"form":O,x=e.name,P=e.withRef;return function(e){var y=(0,l.default)({displayName:"Form",mixins:t,getInitialState:function(){var e=this,t=w&&w(this.props);return this.fieldsStore=(0,p.default)(t||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},this.renderFields={},this.domFields={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach((function(t){e[t]=function(){var n;return(n=e.fieldsStore)[t].apply(n,arguments)}})),{submitting:!1}},componentDidMount:function(){this.cleanUpUselessFields()},componentWillReceiveProps:function(e){w&&this.fieldsStore.updateFields(w(e))},componentDidUpdate:function(){this.cleanUpUselessFields()},onCollectCommon:function(e,t,n){var r=this.fieldsStore.getFieldMeta(e);if(r[t])r[t].apply(r,(0,a.default)(n));else if(r.originalProps&&r.originalProps[t]){var s;(s=r.originalProps)[t].apply(s,(0,a.default)(n))}var l=r.getValueFromEvent?r.getValueFromEvent.apply(r,(0,a.default)(n)):m.getValueFromEvent.apply(void 0,(0,a.default)(n));if(v&&l!==this.fieldsStore.getFieldValue(e)){var c=this.fieldsStore.getAllValues(),u={};c[e]=l,Object.keys(c).forEach((function(e){return(0,f.default)(u,e,c[e])})),v((0,i.default)((0,o.default)({},S,this.getForm()),this.props),(0,f.default)({},e,l),u)}var d=this.fieldsStore.getField(e);return{name:e,field:(0,i.default)({},d,{value:l,touched:!0}),fieldMeta:r}},onCollect:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[e];var r=(0,i.default)({name:e,trigger:"onChange",valuePropName:"value",validate:[]},n),o=r.rules,a=r.trigger,s=r.validateTrigger,l=void 0===s?a:s,c=r.validate,u=this.fieldsStore.getFieldMeta(e);"initialValue"in r&&(u.initialValue=r.initialValue);var d=(0,i.default)({},this.fieldsStore.getFieldValuePropValue(r),{ref:this.getCacheBind(e,e+"__ref",this.saveRef)});E&&(d[E]=x?x+"_"+e:e);var f=(0,m.normalizeValidateRules)(c,o,l),h=(0,m.getValidateTriggers)(f);h.forEach((function(n){d[n]||(d[n]=t.getCacheBind(e,n,t.onCollectValidate))})),a&&-1===h.indexOf(a)&&(d[a]=this.getCacheBind(e,a,this.onCollect));var p=(0,i.default)({},u,r,{validate:f});return this.fieldsStore.setFieldMeta(e,p),C&&(d[C]=p),k&&(d[k]=this.fieldsStore.getField(e)),this.renderFields[e]=!0,d},getFieldInstance:function(e){return this.instances[e]},getRules:function(e,t){var n=e.validate.filter((function(e){return!t||e.trigger.indexOf(t)>=0})).map((function(e){return e.rules}));return(0,m.flattenArray)(n)},setFields:function(e,t){var n=this,r=this.fieldsStore.flattenRegisteredFields(e);if(this.fieldsStore.setFields(r),g){var a=Object.keys(r).reduce((function(e,t){return(0,f.default)(e,t,n.fieldsStore.getField(t))}),{});g((0,i.default)((0,o.default)({},S,this.getForm()),this.props),a,this.fieldsStore.getNestedAllFields())}this.forceUpdate(t)},setFieldsValue:function(e,t){var n=this.fieldsStore.fieldsMeta,r=this.fieldsStore.flattenRegisteredFields(e),a=Object.keys(r).reduce((function(e,t){if(n[t]){var o=r[t];e[t]={value:o}}return e}),{});if(this.setFields(a,t),v){var s=this.fieldsStore.getAllValues();v((0,i.default)((0,o.default)({},S,this.getForm()),this.props),e,s)}},saveRef:function(e,t,n){if(!n){var r=this.fieldsStore.getFieldMeta(e);return r.preserve||(this.clearedFieldMetaCache[e]={field:this.fieldsStore.getField(e),meta:r},this.clearField(e)),void delete this.domFields[e]}this.domFields[e]=!0,this.recoverClearedField(e);var o=this.fieldsStore.getFieldMeta(e);if(o){var i=o.ref;if(i){if("string"==typeof i)throw new Error("can not set ref string for "+e);"function"==typeof i?i(n):Object.prototype.hasOwnProperty.call(i,"current")&&(i.current=n)}}this.instances[e]=n},cleanUpUselessFields:function(){var e=this,t=this.fieldsStore.getAllFieldsName().filter((function(t){var n=e.fieldsStore.getFieldMeta(t);return!e.renderFields[t]&&!e.domFields[t]&&!n.preserve}));t.length&&t.forEach(this.clearField),this.renderFields={}},clearField:function(e){this.fieldsStore.clearField(e),delete this.instances[e],delete this.cachedBind[e]},resetFields:function(e){var t=this,n=this.fieldsStore.resetFields(e);(Object.keys(n).length>0&&this.setFields(n),e)?(Array.isArray(e)?e:[e]).forEach((function(e){return delete t.clearedFieldMetaCache[e]})):this.clearedFieldMetaCache={}},recoverClearedField:function(e){this.clearedFieldMetaCache[e]&&(this.fieldsStore.setFields((0,o.default)({},e,this.clearedFieldMetaCache[e].field)),this.fieldsStore.setFieldMeta(e,this.clearedFieldMetaCache[e].meta),delete this.clearedFieldMetaCache[e])},validateFieldsInternal:function(e,t,r){var o=this,a=t.fieldNames,s=t.action,l=t.options,c=void 0===l?{}:l,p={},g={},v={},y={};if(e.forEach((function(e){var t=e.name;if(!0===c.force||!1!==e.dirty){var n=o.fieldsStore.getFieldMeta(t),r=(0,i.default)({},e);r.errors=void 0,r.validating=!0,r.dirty=!0,p[t]=o.getRules(n,s),g[t]=r.value,v[t]=r}else e.errors&&(0,f.default)(y,t,{errors:e.errors})})),this.setFields(v),Object.keys(g).forEach((function(e){g[e]=o.fieldsStore.getFieldValue(e)})),r&&(0,m.isEmptyObject)(v))r((0,m.isEmptyObject)(y)?null:y,this.fieldsStore.getFieldsValue(a));else{var b=new u.default(p);n&&b.messages(n),b.validate(g,c,(function(e){var t=(0,i.default)({},y);e&&e.length&&e.forEach((function(e){var n=e.field,r=n;Object.keys(p).some((function(e){var t=p[e]||[];if(e===n)return r=e,!0;if(t.every((function(e){return"array"!==e.type}))||0!==n.indexOf(e+"."))return!1;var o=n.slice(e.length+1);return!!/^\d+$/.test(o)&&(r=e,!0)}));var o=(0,d.default)(t,r);("object"!=typeof o||Array.isArray(o))&&(0,f.default)(t,r,{errors:[]}),(0,d.default)(t,r.concat(".errors")).push(e)}));var n=[],s={};Object.keys(p).forEach((function(e){var r=(0,d.default)(t,e),i=o.fieldsStore.getField(e);(0,h.default)(i.value,g[e])?(i.errors=r&&r.errors,i.value=g[e],i.validating=!1,i.dirty=!1,s[e]=i):n.push({name:e})})),o.setFields(s),r&&(n.length&&n.forEach((function(e){var n=e.name,r=[{message:n+" need to revalidate",field:n}];(0,f.default)(t,n,{expired:!0,errors:r})})),r((0,m.isEmptyObject)(t)?null:t,o.fieldsStore.getFieldsValue(a)))}))}},validateFields:function(e,t,n){var r=this,o=new Promise((function(o,i){var a=(0,m.getParams)(e,t,n),s=a.names,l=a.options,c=(0,m.getParams)(e,t,n).callback;if(!c||"function"==typeof c){var u=c;c=function(e,t){u&&u(e,t),e?i({errors:e,values:t}):o(t)}}var d=s?r.fieldsStore.getValidFieldsFullName(s):r.fieldsStore.getValidFieldsName(),f=d.filter((function(e){var t=r.fieldsStore.getFieldMeta(e);return(0,m.hasRules)(t.validate)})).map((function(e){var t=r.fieldsStore.getField(e);return t.value=r.fieldsStore.getFieldValue(e),t}));f.length?("firstFields"in l||(l.firstFields=d.filter((function(e){return!!r.fieldsStore.getFieldMeta(e).validateFirst}))),r.validateFieldsInternal(f,{fieldNames:d,options:l},c)):c(null,r.fieldsStore.getFieldsValue(d))}));return o.catch((function(e){return console.error,e})),o},isSubmitting:function(){return this.state.submitting},submit:function(e){var t=this;this.setState({submitting:!0}),e((function(){t.setState({submitting:!1})}))},render:function(){var t=this.props,n=t.wrappedComponentRef,a=(0,r.default)(t,["wrappedComponentRef"]),l=(0,o.default)({},S,this.getForm());P?l.ref="wrappedComponent":n&&(l.ref=n);var c=b.call(this,(0,i.default)({},l,a));return s.default.createElement(e,c)}});return(0,m.argumentContainer)((0,c.default)(y),e)}},e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i,a){!e.required||n.hasOwnProperty(e.field)&&!r.isEmptyValue(t,a||e.type)||o.push(r.format(i.messages.required,e.fullField))}},function(e,t,n){var r=n(263);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(23)),o=i(n(21));function i(e){return e&&e.__esModule?e:{default:e}}t.isFormField=s,t.default=function(e){if(s(e))return e;return new a(e)};var a=function e(t){(0,o.default)(this,e),(0,r.default)(this,t)};function s(e){return e instanceof a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIELD_DATA_PROP=t.FIELD_META_PROP=void 0;t.FIELD_META_PROP="data-__meta";t.FIELD_DATA_PROP="data-__field"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(94))&&r.__esModule?r:{default:r}).default)({labelAlign:"right",vertical:!1});t.default=o},function(e,t,n){e.exports=n(19)(1318)},function(e,t,n){"use strict";n(37),n(294)},function(e,t,n){"use strict";n(37),n(295)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(0)),o=f(n(99)),i=u(n(16)),a=u(n(296)),s=u(n(20)),l=n(44),c=u(n(303));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i,a,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=r[l],u=(i=e,a=c,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-i)*a,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,o,i,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-u)-c),t){default:case 6:case 0:i=n,a=o,s=c;break;case 1:i=o,a=n,s=c;break;case 2:i=c,a=n,s=o;break;case 3:i=c,a=o,s=n;break;case 4:i=o,a=c,s=n;break;case 5:i=n,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),s=i-a;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.destroyFns=void 0;var r=m(n(0)),o=h(n(401)),i=m(n(1)),a=h(n(16)),s=h(n(327)),l=n(168),c=h(n(20)),u=h(n(12)),d=h(n(111)),f=n(44);function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t0?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,r=n.prefixCls,o=n.locale,i=n.value,s=i.localeData(),c=o.monthBeforeYear,u=r+"-"+(c?"my-select":"ym-select"),d=t?" "+r+"-time-status":"",f=a.default.createElement("a",{className:r+"-year-select"+d,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:o.yearSelect},i.format(o.yearFormat)),h=a.default.createElement("a",{className:r+"-month-select"+d,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:o.monthSelect},o.monthFormat?i.format(o.monthFormat):s.monthsShort(i)),p=void 0;t&&(p=a.default.createElement("a",{className:r+"-day-select"+d,role:"button"},i.format(o.dayFormat)));var m=[];return m=c?[h,p,f]:[f,h,p],a.default.createElement("span",{className:u},(0,l.default)(m))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}};t.default=g,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.default.Children.map(e,a)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};function a(e){return e}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.timePicker,s=e.disabled,l=e.disabledDate,c=e.onToday,u=e.text,d=(!u&&o?n.now:u)||n.today,f=l&&!(0,a.isAllowedDate)((0,a.getTodayTime)(r),l)||s,h=f?t+"-today-btn-disabled":"";return i.default.createElement("a",{className:t+"-today-btn "+h,role:"button",onClick:f?null:c,title:(0,a.getTodayTimeStr)(r)},d)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(90);e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,a=t+"-ok-btn";r&&(a+=" "+t+"-ok-btn-disabled");return i.default.createElement("a",{className:a,role:"button",onClick:r?null:o},n.ok)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=e.prefixCls,i=e.locale,a=e.showTimePicker,s=e.onOpenTimePicker,l=e.onCloseTimePicker,c=e.timePickerDisabled,u=(0,o.default)(((t={})[n+"-time-picker-btn"]=!0,t[n+"-time-picker-btn-disabled"]=c,t)),d=null;c||(d=a?l:s);return r.default.createElement("a",{className:u,role:"button",onClick:d},a?i.dateSelect:i.timeSelect)};var r=i(n(0)),o=i(n(16));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.commonMixinWrapper=t.defaultProp=t.propType=void 0;var r=l(n(21)),o=l(n(18)),i=l(n(22)),a=l(n(1)),s=l(n(139));function l(e){return e&&e.__esModule?e:{default:e}}function c(){}t.propType={className:a.default.string,locale:a.default.object,style:a.default.object,visible:a.default.bool,onSelect:a.default.func,prefixCls:a.default.string,onChange:a.default.func,onOk:a.default.func},t.defaultProp={locale:s.default,style:{},visible:!0,prefixCls:"rc-calendar",className:"",onSelect:c,onChange:c,onClear:c,renderFooter:function(){return null},renderSidebar:function(){return null}},t.commonMixinWrapper=function(e){var t,n;return n=t=function(e){function t(){var n,i,a;(0,r.default)(this,t);for(var s=arguments.length,l=Array(s),c=0;c3&&void 0!==arguments[3]?arguments[3]:1,o=[],i=0;i=0&&t.hour()<12}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,o=e.placeholder,s=e.disabledMinutes,u=e.disabledSeconds,d=e.hideDisabledOptions,f=e.showHour,h=e.showMinute,p=e.showSecond,m=e.format,g=e.defaultOpenValue,v=e.clearText,y=e.onEsc,b=e.addon,w=e.use12Hours,C=e.focusOnOpen,k=e.onKeyDown,O=e.hourStep,S=e.minuteStep,x=e.secondStep,P=e.inputReadOnly,_=e.clearIcon,A=this.state,T=A.value,M=A.currentSelectPanel,N=this.disabledHours(),D=s(T?T.hour():null),j=u(T?T.hour():null,T?T.minute():null),R=E(24,N,d,O),L=E(60,D,d,S),$=E(60,j,d,x),F=function(e,t,n,r){var o=t.slice().sort((function(t,n){return Math.abs(e.hour()-t)-Math.abs(e.hour()-n)}))[0],a=n.slice().sort((function(t,n){return Math.abs(e.minute()-t)-Math.abs(e.minute()-n)}))[0],s=r.slice().sort((function(t,n){return Math.abs(e.second()-t)-Math.abs(e.second()-n)}))[0];return(0,i.default)("".concat(o,":").concat(a,":").concat(s),"HH:mm:ss")}(g,R,L,$);return r.default.createElement("div",{className:(0,a.default)(n,"".concat(t,"-inner"))},r.default.createElement(l.default,{clearText:v,prefixCls:t,defaultOpenValue:F,value:T,currentSelectPanel:M,onEsc:y,format:m,placeholder:o,hourOptions:R,minuteOptions:L,secondOptions:$,disabledHours:this.disabledHours,disabledMinutes:s,disabledSeconds:u,onChange:this.onChange,focusOnOpen:C,onKeyDown:k,inputReadOnly:P,clearIcon:_}),r.default.createElement(c.default,{prefixCls:t,value:T,defaultOpenValue:F,format:m,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:f,showMinute:h,showSecond:p,hourOptions:R,minuteOptions:L,secondOptions:$,disabledHours:this.disabledHours,disabledMinutes:s,disabledSeconds:u,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:w,onEsc:y,isAM:this.isAM()}),b(this))}}])&&p(n.prototype,o),s&&p(n,s),t}(r.Component);b(C,"propTypes",{clearText:o.default.string,prefixCls:o.default.string,className:o.default.string,defaultOpenValue:o.default.object,value:o.default.object,placeholder:o.default.string,format:o.default.string,inputReadOnly:o.default.bool,disabledHours:o.default.func,disabledMinutes:o.default.func,disabledSeconds:o.default.func,hideDisabledOptions:o.default.bool,onChange:o.default.func,onAmPmChange:o.default.func,onEsc:o.default.func,showHour:o.default.bool,showMinute:o.default.bool,showSecond:o.default.bool,use12Hours:o.default.bool,hourStep:o.default.number,minuteStep:o.default.number,secondStep:o.default.number,addon:o.default.func,focusOnOpen:o.default.bool,onKeyDown:o.default.func,clearIcon:o.default.node}),b(C,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:w,disabledHours:w,disabledMinutes:w,disabledSeconds:w,defaultOpenValue:(0,i.default)(),use12Hours:!1,addon:w,onKeyDown:w,onAmPmChange:w,inputReadOnly:!1}),(0,s.polyfill)(C);var k=C;t.default=k},function(e,t,n){"use strict";t.__esModule=!0,t.default={DATE_ROW_COUNT:6,DATE_COL_COUNT:7},e.exports=t.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.suffixIcon,r=e.prefixCls;return n&&(o.isValidElement(n)?o.cloneElement(n,{className:(0,i.default)((t={},c(t,n.props.className,n.props.className),c(t,"".concat(r,"-picker-icon"),!0),t))}):o.createElement("span",{className:"".concat(r,"-picker-icon")},n))||o.createElement(a.default,{type:"calendar",className:"".concat(r,"-picker-icon")})};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=s(n(16)),a=s(n(20));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(367)),o=i(n(184));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t1&&l(r,"")>-1&&(n=RegExp(this.source,o.replace.call(s(this),"g","")),o.replace.call(e.slice(r.index),n,(function(){for(var e=1;er.index&&this.lastIndex--}return r},a||(RegExp.prototype.test=function(e){var t=o.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function r(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=f.call(arguments,1),o=function(){if(this instanceof o){var r=t.apply(this,n.concat(f.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(f.call(arguments)))};return t.prototype&&(r.prototype=t.prototype,o.prototype=new r,r.prototype=null),o});var o,i,a,s,l,c=Function.prototype.call,u=Array.prototype,d=Object.prototype,f=u.slice,h=c.bind(d.toString),p=c.bind(d.hasOwnProperty);if((l=p(d,"__defineGetter__"))&&(o=c.bind(d.__defineGetter__),i=c.bind(d.__defineSetter__),a=c.bind(d.__lookupGetter__),s=c.bind(d.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var m=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?m.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+ts)for(d=c;d--;)this[l+d]=this[s+d];if(i&&e===u)this.length=u,this.push.apply(this,o);else for(this.length=u+i,d=0;d>>0;if("[object Function]"!=h(e))throw new TypeError;for(;++o>>0,o=Array(r),i=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var a=0;a>>0,i=[],a=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var s=0;s>>0,o=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var i=0;i>>0,o=arguments[1];if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");for(var i=0;i>>0;if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,i=0;if(arguments.length>=2)o=arguments[1];else for(;;){if(i in n){o=n[i++];break}if(++i>=r)throw new TypeError("reduce of empty array with no initial value")}for(;i>>0;if("[object Function]"!=h(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o,i=r-1;if(arguments.length>=2)o=arguments[1];else for(;;){if(i in n){o=n[i--];break}if(--i<0)throw new TypeError("reduceRight of empty array with no initial value")}do{i in this&&(o=e.call(void 0,o,n[i],i,t))}while(i--);return o}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==h(this)?this.split(""):N(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=M(arguments[1])),r=r>=0?r:Math.max(0,n+r);r>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,M(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:d)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(p(e,t)){var n;if(n={enumerable:!0,configurable:!0},l){var r=e.__proto__;e.__proto__=d;var o=a(e,t),i=s(e,t);if(e.__proto__=r,o||i)return o&&(n.get=o),i&&(n.set=i),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(g=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=g();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,(n=new r).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function w(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Object.defineProperty){var E=w({}),C="undefined"==typeof document||w(document.createElement("div"));if(!E||!C)var k=Object.defineProperty}if(!Object.defineProperty||k){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(k)try{return k.call(Object,e,t,n)}catch(e){}if(p(n,"value"))if(l&&(a(e,t)||s(e,t))){var r=e.__proto__;e.__proto__=d,delete e[t],e[t]=n.value,e.__proto__=r}else e[t]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");p(n,"get")&&o(e,t,n.get),p(n,"set")&&i(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)p(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";p(e,t);)t+="?";e[t]=!0;var n=p(e,t);return delete e[t],n}),!Object.keys){var O=!0,S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=S.length;for(var P in{toString:null})O=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)p(e,n)&&t.push(n);if(O)for(var r=0,o=x;r0||-1)*Math.floor(Math.abs(e))),e}var N=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim"),"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r="object"==typeof navigator?navigator:{},o=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),i=r.userAgent||"",a=r.appName||"";t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==a||a.indexOf("MSAppHost")>=0?parseFloat((i.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=i.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(i.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(i.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(i.split(" Edge/")[1])||void 0,t.isAIR=i.indexOf("AdobeAIR")>=0,t.isAndroid=i.indexOf("Android")>=0,t.isChromeOS=i.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(i)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./useragent");if(t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var o=document.createTextNode(t);return n&&n.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var i=[],a=0;a=1.5,"undefined"!=typeof document){var o=document.createElement("div");t.HI_DPI&&void 0!==o.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),r.isEdge||void 0===o.style.animationName||(t.HAS_CSS_ANIMATION=!0),o=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./oop"),o=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,o=e("./keys"),i=e("./useragent"),a=null,s=0;function l(){return null==r&&function(){r=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){r={passive:!1}}})}catch(e){}}(),r}function c(e,t,n){this.elem=e,this.type=t,this.callback=n}c.prototype.destroy=function(){d(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=t.addListener=function(e,t,n,r){e.addEventListener(t,n,l()),r&&r.$toDestroy.push(new c(e,t,n))},d=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||i.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){function r(e){t&&t(e),n&&n(e),d(document,"mousemove",t),d(document,"mouseup",r),d(document,"dragstart",r)}return u(document,"mousemove",t),u(document,"mouseup",r),u(document,"dragstart",r),r},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?u(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}),n):"onwheel"in e?u(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}),n):u(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),n)},t.addMultiMouseDownListener=function(e,n,r,o,a){var s,l,c,d=0,f={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?d=0:e.detail>1?++d>4&&(d=1):d=1,i.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;c&&!a||(d=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[d-1]||600),1==d&&(s=e.clientX,l=e.clientY)}if(e._clicks=d,r[o]("mousedown",e),d>4)d=0;else if(d>1)return r[o](f[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){u(e,"mousedown",h,a)}))};var f=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function h(e,t,n){var r=f(t);if(!i.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){t.timeStamp-s<50&&(a.altGr=!0)}}}if((n in o.MODIFIER_KEYS&&(n=-1),!r&&13===n)&&(3===(l="location"in t?t.location:t.keyLocation)&&(e(t,r,-n),t.defaultPrevented)))return;if(i.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,r,n)}function p(){a=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[f(e)]},t.addCommandKeyListener=function(e,n,r){if(i.isOldGecko||i.isOpera&&!("KeyboardEvent"in window)){var o=null;u(e,"keydown",(function(e){o=e.keyCode}),r),u(e,"keypress",(function(e){return h(n,e,o)}),r)}else{var s=null;u(e,"keydown",(function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=h(n,e,e.keyCode);return s=e.defaultPrevented,t}),r),u(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)}),r),u(e,"keyup",(function(e){a[e.keyCode]=null}),r),a||(p(),u(window,"focus",p))}},"object"==typeof window&&window.postMessage&&!i.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+m++,o=function(i){i.data==r&&(t.stopPropagation(i),d(n,"message",o),e())};u(n,"message",o),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var o={row:t+1,column:0};else if(this.start.row0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;nDate.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../lib/useragent"),i=e("../lib/dom"),a=e("../lib/lang"),s=e("../clipboard"),l=o.isChrome<18,c=o.isIE,u=o.isChrome>63,d=e("../lib/keys"),f=d.KEY_MODS,h=o.isIOS,p=h?/\s/:/\n/,m=o.isMobile;t.TextInput=function(e,t){var n=i.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var g=!1,v=!1,y=!1,b=!1,w="";m||(n.style.fontSize="1px");var E=!1,C=!1,k="",O=0,S=0,x=0;try{var P=document.activeElement===n}catch(e){}r.addListener(n,"blur",(function(e){C||(t.onBlur(e),P=!1)}),t),r.addListener(n,"focus",(function(e){if(!C){if(P=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(_):_()}}),t),this.$focusScroll=!1,this.focus=function(){if(w||u||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(e){return}var r=[];if(t)for(var o=n.parentElement;o&&1==o.nodeType;)r.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement;n.focus({preventScroll:!0}),t&&r.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return P},t.on("beforeEndOperation",(function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var o=r&&(e.docChanged||e.selectionChanged);y&&o&&(k=n.value="",I()),_()}}));var _=h?function(e){if(P&&(!g||e)&&!b){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=k=r);var o=4+(e.length||(t.selection.isEmpty()?0:1));4==O&&S==o||n.setSelectionRange(4,o),O=4,S=o}}:function(){if(!y&&!b&&(P||T)){y=!0;var e=0,r=0,o="";if(t.session){var i=t.selection,a=i.getRange(),s=i.cursor.row;if(e=a.start.column,r=a.end.column,o=t.session.getLine(s),a.start.row!=s){var l=t.session.getLine(s-1);e=a.start.rows+1?c.length:r,r+=o.length+1,o=o+"\n"+c}else m&&s>0&&(o="\n"+o,r+=1,e+=1);o.length>400&&(e<400&&r<400?o=o.slice(0,400):(o="\n",e=0,r=1))}var u=o+"\n\n";if(u!=k&&(n.value=k=u,O=S=u.length),T&&(O=n.selectionStart,S=n.selectionEnd),S!=r||O!=e||n.selectionEnd!=S)try{n.setSelectionRange(e,r),O=e,S=r}catch(e){}y=!1}};this.resetSelection=_,P&&t.onFocus();var A=null;this.setInputHandler=function(e){A=e},this.getInputHandler=function(){return A};var T=!1,M=function(e,r){if(T&&(T=!1),v)return _(),e&&t.onPaste(e),v=!1,"";for(var o=n.selectionStart,i=n.selectionEnd,a=O,s=k.length-S,l=e,c=e.length-o,u=e.length-i,d=0;a>0&&k[d]==e[d];)d++,a--;for(l=l.slice(d),d=1;s>0&&k.length-d>O-1&&k[k.length-d]==e[e.length-d];)d++,s--;c-=d-1,u-=d-1;var f=l.length-d+1;return f<0&&(a=-f,f=0),l=l.slice(0,f),r||l||c||a||s||u?(b=!0,l&&!a&&!s&&!c&&!u||E?t.onTextInput(l):t.onTextInput(l,{extendLeft:a,extendRight:s,restoreStart:c,restoreEnd:u}),b=!1,k=e,O=o,S=i,x=u,l):""},N=function(e){if(y)return F();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,o=M(r,!0);(r.length>500||p.test(o)||m&&O<1&&O==S)&&_()},D=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var o=c||n?"Text":"text/plain";try{return t?!1!==r.setData(o,t):r.getData(o)}catch(e){if(!n)return D(e,t,!0)}}},j=function(e,o){var i=t.getCopyText();if(!i)return r.preventDefault(e);D(e,i)?(h&&(_(i),g=i,setTimeout((function(){g=!1}),10)),o?t.onCut():t.onCopy(),r.preventDefault(e)):(g=!0,n.value=i,n.select(),setTimeout((function(){g=!1,_(),o?t.onCut():t.onCopy()})))},R=function(e){j(e,!0)},L=function(e){j(e,!1)},$=function(e){var i=D(e);s.pasteCancelled()||("string"==typeof i?(i&&t.onPaste(i,e),o.isIE&&setTimeout(_),r.preventDefault(e)):(n.value="",v=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",(function(e){y||(g?g=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd>=k.length&&e.value===k&&k&&e.selectionEnd!==S}(n)?m&&n.selectionStart!=O&&_():(t.selectAll(),_()))}),t),r.addListener(n,"input",N,t),r.addListener(n,"cut",R,t),r.addListener(n,"copy",L,t),r.addListener(n,"paste",$,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:L(e);break;case 86:$(e);break;case 88:R(e)}}),t);var F=function(){if(y&&t.onCompositionUpdate&&!t.$readOnly){if(E)return V();if(y.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;M(e),y.markerRange&&(y.context&&(y.markerRange.start.column=y.selectionStart=y.context.compositionStartOffset),y.markerRange.end.column=y.markerRange.start.column+S-y.selectionStart+x)}}},I=function(e){t.onCompositionEnd&&!t.$readOnly&&(y=!1,t.onCompositionEnd(),t.off("mousedown",V),e&&N())};function V(){C=!0,n.blur(),n.focus(),C=!1}var B,W=a.delayedCall(F,50).schedule.bind(null,null);function H(){clearTimeout(B),B=setTimeout((function(){w&&(n.style.cssText=w,w=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}r.addListener(n,"compositionstart",(function(e){if(!y&&t.onCompositionStart&&!t.$readOnly&&(y={},!E)){e.data&&(y.useTextareaForIME=!1),setTimeout(F,0),t._signal("compositionStart"),t.on("mousedown",V);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,y.markerRange=r,y.selectionStart=O,t.onCompositionStart(y),y.useTextareaForIME?(k=n.value="",O=0,S=0):(n.msGetInputContext&&(y.context=n.msGetInputContext()),n.getInputContext&&(y.context=n.getInputContext()))}}),t),r.addListener(n,"compositionupdate",F,t),r.addListener(n,"keyup",(function(e){27==e.keyCode&&n.value.lengthS&&"\n"==k[i]?a=d.end:rS&&k.slice(0,i).split("\n").length>2?a=d.down:i>S&&" "==k[i-1]?(a=d.right,s=f.option):(i>S||i==S&&S!=O&&r==i)&&(a=d.right),r!==i&&(s|=f.shift),a){if(!t.onCommandKey({},s,a)&&t.commands){a=d.keyCodeToString(a);var l=t.commands.findKeyCommand(s,a);l&&t.execCommand(l)}O=r,S=i,_("")}}};document.addEventListener("selectionchange",i),t.on("destroy",(function(){document.removeEventListener("selectionchange",i)}))}(0,t,n)},t.$setUserAgentForTests=function(e,t){m=e,h=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/useragent");function o(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,i=e.getButton();return 0!==i?((o.getSelectionRange().isEmpty()||1==i)&&o.selection.moveToPosition(n),void(2==i&&(o.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var o=i(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](r.row,r.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)t=this.$clickSelection.end,o.end.row==r.row&&o.end.column==r.column||(r=o.start);else if(1==s&&a>=0)t=this.$clickSelection.start,o.start.row==r.row&&o.start.column==r.column||(r=o.end);else if(-1==a&&1==s)r=o.end,t=o.start;else{var l=i(this.$clickSelection,r);r=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,r,o=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),i=Date.now();(o>0||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,o=r-n.t,i=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<550&&(i=(i+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(i/a),l=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<550){Math.abs(i)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=i,n.vy=a,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(o.prototype),t.DefaultHandlers=o})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/oop"),i=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){a.call(this,e)}o.inherits(s,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),i=this.getHeight();(e+=15)+o>n&&(e-=e+o-n),(t+=15)+i>r&&(t-=20+i),a.prototype.setPosition.call(this,e,t)}}.call(s.prototype),t.GutterHandler=function(e){var t,n,o,a=e.editor,l=a.renderer.$gutterLayer,c=new s(a.container);function u(){t&&(t=clearTimeout(t)),o&&(c.hide(),o=null,a._signal("hideGutterTooltip",c),a.off("mousewheel",u))}function d(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var n=t.getDocumentPosition().row,r=a.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(i){var s=i.domEvent.target||i.domEvent.srcElement;if(r.hasCssClass(s,"ace_fold-widget"))return u();o&&e.$tooltipFollowsMouse&&d(i),n=i,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,r=l.$annotations[t];if(!r)return u();if(t==a.session.getLength()){var i=a.renderer.pixelToScreenCoordinates(0,n.y).row,s=n.$pos;if(i>a.session.documentToScreenRow(s.row,s.column))return u()}if(o!=r)if(o=r.text.join("
"),c.setHtml(o),c.show(),a._signal("showGutterTooltip",c),a.on("mousewheel",u),e.$tooltipFollowsMouse)d(n);else{var f=n.domEvent.target.getBoundingClientRect(),h=c.getElement().style;h.left=f.right+"px",h.top=f.bottom+"px"}}():u()}),50))})),i.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,o&&!t&&(t=setTimeout((function(){t=null,u()}),50))}),a),a.on("changeSession",u)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../lib/useragent"),i=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(i.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/event"),i=e("../lib/useragent");function a(e){var t=e.editor,n=r.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",i.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var a,l,c,u,d,f,h,p,m,g,v,y=t.container,b=0;function w(){var e=f;(function(e,n){var r=Date.now(),o=!n||e.row!=n.row,i=!n||e.column!=n.column;!g||o||i?(t.moveCursorToPosition(e),g=r,v={x:l,y:c}):s(v.x,v.y,l,c)>5?g=null:r-g>=200&&(t.renderer.scrollCursorIntoView(),g=null)})(f=t.renderer.screenToTextCoordinates(l,c),e),function(e,n){var r=Date.now(),o=t.renderer.layerConfig.lineHeight,i=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),s={x:{left:l-a.left,right:a.right-l},y:{top:c-a.top,bottom:a.bottom-c}},u=Math.min(s.x.left,s.x.right),d=Math.min(s.y.top,s.y.bottom),f={row:e.row,column:e.column};u/i<=2&&(f.column+=s.x.left=200&&t.renderer.scrollCursorIntoView(f):m=r:m=null}(f,e)}function E(){d=t.selection.toOrientedRange(),a=t.session.addMarker(d,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),w(),u=setInterval(w,20),b=0,o.addListener(document,"mousemove",O)}function C(){clearInterval(u),t.session.removeMarker(a),a=null,t.selection.fromOrientedRange(d),t.isFocused()&&!p&&t.$resetCursorStyle(),d=null,f=null,b=0,m=null,g=null,o.removeListener(document,"mousemove",O)}this.onDragStart=function(e){if(this.cancelDrag||!y.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}d=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",i.isOpera&&(t.container.appendChild(n),n.scrollTop=0),o.setDragImage&&o.setDragImage(n,0,0),i.isOpera&&t.container.removeChild(n),o.clearData(),o.setData("Text",t.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(e){if(y.draggable=!1,p=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;h||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,c=e.clientY,a||E(),b++,e.dataTransfer.dropEffect=h=x(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,c=e.clientY,a||(E(),b++),null!==k&&(k=null),e.dataTransfer.dropEffect=h=x(e),o.preventDefault(e)},this.onDragLeave=function(e){if(--b<=0&&a)return C(),h=null,o.preventDefault(e)},this.onDrop=function(e){if(f){var n=e.dataTransfer;if(p)switch(h){case"move":d=d.contains(f.row,f.column)?{start:f,end:f}:t.moveText(d,f);break;case"copy":d=t.moveText(d,f,!0)}else{var r=n.getData("Text");d={start:f,end:t.session.insert(f,r)},t.focus(),h=null}return C(),o.preventDefault(e)}},o.addListener(y,"dragstart",this.onDragStart.bind(e),t),o.addListener(y,"dragend",this.onDragEnd.bind(e),t),o.addListener(y,"dragenter",this.onDragEnter.bind(e),t),o.addListener(y,"dragover",this.onDragOver.bind(e),t),o.addListener(y,"dragleave",this.onDragLeave.bind(e),t),o.addListener(y,"drop",this.onDrop.bind(e),t);var k=null;function O(){null==k&&(k=setTimeout((function(){null!=k&&a&&C()}),20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function x(e){var t=["copy","copymove","all","uninitialized"],n=i.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return n&&t.indexOf(r)>=0?o="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?o="move":t.indexOf(r)>=0&&(o="copy"),o}}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=i.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;i.isIE&&"dragReady"==this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(i.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(a.prototype),t.DragdropHandler=a})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,o=e("../lib/event"),i=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,c,u,d,f,h,p="scroll",m=0,g=0,v=0,y=0;function b(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(r){var o,a,s=r.target.getAttribute("action");if("more"==s||!n)return n=!n,o=t.getCopyText(),a=t.session.getUndoManager().hasUndo(),void h.replaceChild(i.buildDom(n?["span",!o&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],o&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],o&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],a&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),h.firstChild);"paste"==s?e.readText().then((function(e){t.execCommand(s,e)})):s&&("cut"!=s&&"copy"!=s||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(s)),h.firstChild.style.display="none",n=!1,"openCommandPallete"!=s&&t.focus()};h=i.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),r(e)},onclick:r},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){h||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.container.getBoundingClientRect();h.style.top=n.pageY-r.top-3+"px",h.style.right="10px",h.style.display="",h.firstChild.style.display="none",t.on("input",E)}function E(e){h&&(h.style.display="none"),t.off("input",E)}function C(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(d.row,d.column);!e.isEmpty()&&n||(t.selection.moveToPosition(d),t.selection.selectWord()),p="wait",w()}o.addListener(e,"contextmenu",(function(e){f&&t.textInput.getElement().focus()}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(c||o.length>1)return clearTimeout(c),c=null,s=-1,void(p="zoom");f=t.$mouseHandler.isMousePressed=!0;var i=t.renderer.layerConfig.lineHeight,u=t.renderer.layerConfig.lineHeight,h=e.timeStamp;l=h;var b=o[0],w=b.clientX,E=b.clientY;Math.abs(n-w)+Math.abs(a-E)>i&&(s=-1),n=e.clientX=w,a=e.clientY=E,v=y=0;var k=new r(e,t);if(d=k.getDocumentPosition(),h-s<500&&1==o.length&&!m)g++,e.preventDefault(),e.button=0,function(){c=null,clearTimeout(c),t.selection.moveToPosition(d);var e=g>=2?t.selection.getLineRange(d.row):t.session.getBracketRange(d);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}();else{g=0;var O=t.selection.cursor,S=t.selection.isEmpty()?O:t.selection.anchor,x=t.renderer.$cursorLayer.getPixelPosition(O,!0),P=t.renderer.$cursorLayer.getPixelPosition(S,!0),_=t.renderer.scroller.getBoundingClientRect(),A=function(e,t){return(e/=u)*e+(t=t/i-.75)*t};if(e.clientX<_.left)return void(p="zoom");var T=A(e.clientX-_.left-x.left,e.clientY-_.top-x.top),M=A(e.clientX-_.left-P.left,e.clientY-_.top-P.top);T<3.5&&M<3.5&&(p=T>M?"cursor":"anchor"),p=M<3.5?"anchor":T<3.5?"cursor":"scroll",c=setTimeout(C,450)}s=h}),t),o.addListener(e,"touchend",(function(e){f=t.$mouseHandler.isMousePressed=!1,u&&clearInterval(u),"zoom"==p?(p="",m=0):c?(t.selection.moveToPosition(d),m=0,w()):"scroll"==p?(m+=60,u=setInterval((function(){m--<=0&&(clearInterval(u),u=null),Math.abs(v)<.01&&(v=0),Math.abs(y)<.01&&(y=0),m<20&&(v*=.9),m<20&&(y*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*y),e==t.session.getScrollTop()&&(m=0)}),10),E()):w(),clearTimeout(c),c=null}),t),o.addListener(e,"touchmove",(function(e){c&&(clearTimeout(c),c=null);var o=e.touches;if(!(o.length>1||"zoom"==p)){var i=o[0],s=n-i.clientX,u=a-i.clientY;if("wait"==p){if(!(s*s+u*u>4))return e.preventDefault();p="cursor"}n=i.clientX,a=i.clientY,e.clientX=i.clientX,e.clientY=i.clientY;var d=e.timeStamp,f=d-l;if(l=d,"scroll"==p){var h=new r(e,t);h.speed=1,h.wheelX=s,h.wheelY=u,10*Math.abs(s)1&&(o=n[n.length-2]);var a=l[t+"Path"];return null==a?a=l.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+o+this.get("suffix")},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var o,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{o=e(n)}catch(e){}if(o&&!t.$loading[n])return r&&r(o);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();i.loadScript(t.moduleUrl(n,a),s),c()}};var c=function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};function u(o){if(s&&s.document){l.packaged=o||e.packaged||r.packaged||s.define&&n(189).packaged;for(var i,a={},c="",u=document.currentScript||document._currentScript,d=(u&&u.ownerDocument||document).getElementsByTagName("script"),f=0;f=e){for(i=d+1;i=e;)i++;for(s=d,l=i-1;s=t.length||2!=(l=n[o-1])&&3!=l||2!=(c=t[o+1])&&3!=c?4:(i&&(c=3),c==l?c:4);case 10:return 2==(l=o>0?n[o-1]:5)&&o+10&&2==n[o-1])return 2;if(i)return 4;for(d=o+1,u=t.length;d=1425&&h<=2303||64286==h;if(l=t[d],p&&(1==l||7==l))return 1}return o<1||5==(l=t[o-1])?4:n[o-1];case 5:return i=!1,a=!0,r;case 6:return s=!0,4;case 13:case 14:case 16:case 17:case 15:i=!1;case 18:return 4}}function p(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:u[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?11:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?d[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,u){if(e.length<2)return{};var d=e.split(""),m=new Array(d.length),g=new Array(d.length),v=[];r=u?1:0,function(e,t,n,u){var d=r?c:l,f=null,m=null,g=null,v=0,y=null,b=-1,w=null,E=null,C=[];if(!u)for(w=0,u=[];w0)if(16==y){for(w=b;w-1){for(w=b;w=0&&8==u[k];k--)t[k]=r}}(d,v,d.length,n);for(var y=0;y7&&n[y]<13||4===n[y]||18===n[y])?v[y]=t.ON_R:y>0&&"ل"===d[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(d[y])&&(v[y-1]=v[y]=t.R_H,y++);d[d.length-1]===t.DOT&&(v[d.length-1]=t.B),"‫"===d[0]&&(v[0]=t.RLE);for(y=0;y=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[e];i&&(void 0===t&&(t=this.getSplitIndex()),t>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,o=r.getVisualFromLogicalIdx(n,this.bidiMap),i=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&i[o]%2!=0&&o++;for(var s=0;st&&i[o]%2==0&&(a+=this.charWidths[i[o]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,o=r.bidiLevels,i=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,d=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,h=0;h=s&&fn+i/2;){if(n+=i,r===o.length-1){i=0;break}i=this.charWidths[o[++r]]}return r>0&&o[r-1]%2!=0&&o[r]%2==0?(e0&&o[r-1]%2==0&&o[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===o.length-1&&0===i&&o[r-1]%2==0||!this.isRtlDir&&0===r&&o[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&o[r-1]%2!=0&&0!==i&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/lang"),i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){r.implement(this,i),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(!this.$silent){var o=this.$isEmpty,i=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||i)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(r);return o?(r=o.start.row,n=o.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,o=e.column+t;return n<0&&(r=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(i)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var i=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var i=o.stringReverse(r),a=this.$shortWordEndIndex(i);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var i=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&i.row===this.lead.row&&(i.column,this.lead.column),this.moveCursorTo(i.row,i.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),o=2e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],o=0,i=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l1?this.$applyToken:c.token),d>1&&(/\\\d/.test(c.regex)?u=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(d=1,u=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||s.push(c)),i[o]=l,o+=d,r.push(u),c.onMatch||(c.onMatch=null)}}r.length||(i[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],o=0,i=n.length;ou){var v=e.substring(u,g-m.length);f.type==h?f.value+=v:(f.type&&c.push(f),f={type:h,value:v})}for(var y=0;yo){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:c,state:n.length?n:r}},this.reportError=r.reportError}).call(i.prototype),t.Tokenizer=i})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],o=0;o=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,o=e("../../lib/oop"),i=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u={},d={'"':'"',"'":"'"},f=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(e,t,n,r){var o=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,o,i,a){var l=o.getCursorPosition(),c=i.doc.getLine(l.row);if("{"==a){f(o);var u=o.getSelectionRange(),d=i.doc.getTextRange(u);if(""!==d&&"{"!==d&&o.getWrapBehavioursEnabled())return h(u,d,"{","}");if(p.isSaneInsertion(o,i))return/[\]\}\)]/.test(c[l.column])||o.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(o,i,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(o,i,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(f(o),"}"==c.substring(l.column,l.column+1))if(null!==i.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&p.isAutoInsertedClosing(l,c,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){f(o);var m="";if(p.isMaybeInsertedClosing(l,c)&&(m=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===c.substring(l.column,l.column+1)){var g=i.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!g)return null;var v=this.$getIndent(i.getLine(g.row))}else{if(!m)return void p.clearMaybeInsertedClosing();v=this.$getIndent(c)}var y=v+i.getTabString();return{text:"\n"+y+"\n"+v+m,selection:[1,y.length,1,y.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,i){var a=o.doc.getTextRange(i);if(!i.isMultiLine()&&"{"==a){if(f(n),"}"==o.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,o){if("("==o){f(n);var i=n.getSelectionRange(),a=r.doc.getTextRange(i);if(""!==a&&n.getWrapBehavioursEnabled())return h(i,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==o){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,o){var i=r.doc.getTextRange(o);if(!o.isMultiLine()&&"("==i&&(f(n),")"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(e,t,n,r,o){if("["==o){f(n);var i=n.getSelectionRange(),a=r.doc.getTextRange(i);if(""!==a&&n.getWrapBehavioursEnabled())return h(i,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,o){var i=r.doc.getTextRange(o);if(!o.isMultiLine()&&"["==i&&(f(n),"]"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(e,t,n,r,o){var i=r.$mode.$quotes||d;if(1==o.length&&i[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;f(n);var a=o,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&i[l])&&n.getWrapBehavioursEnabled())return h(s,l,a,a);if(!l){var c=n.getCursorPosition(),u=r.doc.getLine(c.row),p=u.substring(c.column-1,c.column),m=u.substring(c.column,c.column+1),g=r.getTokenAt(c.row,c.column),v=r.getTokenAt(c.row,c.column+1);if("\\"==p&&g&&/escape/.test(g.type))return null;var y,b=g&&/string|escape/.test(g.type),w=!v||/string|escape/.test(v.type);if(m==a)(y=b!==w)&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var E=r.$mode.tokenRe;E.lastIndex=0;var C=E.test(p);E.lastIndex=0;var k=E.test(p);if(C||k)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var O=u[c.column-2];if(p==a&&(O==a||E.test(O)))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,o){var i=r.$mode.$quotes||d,a=r.doc.getTextRange(o);if(!o.isMultiLine()&&i.hasOwnProperty(a)&&(f(n),r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==a))return o.end.column++,o}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new a(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var o=e.getCursorPosition(),i=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,i,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=o.row,r.autoInsertedLineEnd=n+i.substr(o.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var o=e.getCursorPosition(),i=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,i)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=o.row,r.maybeInsertedLineStart=i.substr(0,o.column)+n,r.maybeInsertedLineEnd=i.substr(o.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},o.inherits(p,i),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,i=[],a=0;a2?r%c!=c-1:r%c==0})}else{if(!this.blockComment)return!1;var h=this.blockComment.start,p=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+l.escapeRegExp(h)+")"),g=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||i&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},p),o.insertInLine({row:t,column:s},h))},y=function(e,t){var n;(n=e.match(g))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&o.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),o=0;oe.length&&(E=e.length)})),s==1/0&&(s=E,i=!1,a=!1),u&&s%c!=0&&(s=Math.floor(s/c)*c),w(a?y:v)},this.toggleBlockComment=function(e,t,n,r){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var i,a,s=(m=new c(t,r.row,r.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var d,f;s&&/comment/.test(s.type);){if(-1!=(g=s.value.indexOf(o.start))){var h=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;d=new u(h,p,h,p+o.start.length);break}s=m.stepBackward()}var m;for(s=(m=new c(t,r.row,r.column)).getCurrentToken();s&&/comment/.test(s.type);){var g;if(-1!=(g=s.value.indexOf(o.end))){h=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn()+g;f=new u(h,p,h,p+o.end.length);break}s=m.stepForward()}f&&t.remove(f),d&&(t.remove(d),i=d.start.row,a=-o.start.length)}else a=o.start.length,i=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==i&&(l.start.column+=a),l.end.row==i&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,i=r.$modes[o];i||(r.$modes[o]=i=new n),r.$modes[t]||(r.$modes[t]=i),this.$embeds.push(t),this.$modes[t]=i}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var n=function(t,n,r){var o="insert"==t.action,i=(o?1:-1)*(t.end.row-t.start.row),a=(o?1:-1)*(t.end.column-t.start.column),s=t.start,l=o?s:t.end;if(e(n,s,r))return{row:n.row,column:n.column};if(e(l,n,!r))return{row:n.row+i,column:n.column+(n.row==l.row?a:0)};return{row:s.row,column:s.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var o={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:o,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(i.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./apply_delta").applyDelta,i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,i),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),i<=r&&n.fireUpdateEvent(i,r)}}};(function(){r.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(i.prototype),t.BackgroundTokenizer=i})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),i=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(var a=i.firstRow,s=i.lastRow,l=a;l<=s;l++){var c=this.cache[l];null==c&&((c=r.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new o(l,e.offset,l,e.offset+e.length)})),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)t.drawSingleLineMarker(e,c[u].toScreenRange(n),this.clazz,i)}}}).call(i.prototype),t.SearchHighlight=i})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,o,i=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l0)){var l=r(e,a.start);return 0===s?t&&0!==l?-i-2:i:l>0||0===l&&!t?i:-i-1}}return-i-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,o=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],i=1;i=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row=r)break}if("insert"==e.action)for(var l=o-r,c=-t.column+n.column;ar)break;if(u.start.row==r&&u.start.column>=t.column&&(u.start.column==t.column&&this.$bias<=0||(u.start.column+=c,u.start.row+=l)),u.end.row==r&&u.end.column>=t.column){if(u.end.column==t.column&&this.$bias<0)continue;u.end.column==t.column&&c>0&&au.start.column&&u.end.column==i[a+1].start.column&&(u.end.column-=c),u.end.column+=c,u.end.row+=l}}else for(l=r-o,c=t.column-n.column;ao)break;u.end.rowt.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=c,u.end.row+=l):u.end.row>o&&(u.end.row+=l),u.start.rowt.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=c,u.start.row+=l):u.start.row>o&&(u.start.row+=l)}if(0!=l&&a=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,o=0;o=t){s=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof i?n=e:(n=new i(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,u=n.end.column,d=this.getFoldAt(s,l,1),f=this.getFoldAt(c,u,-1);if(d&&f==d)return d.addSubFold(n);d&&!d.range.isStart(s,l)&&this.removeFold(d),f&&!f.range.isEnd(c,u)&&this.removeFold(f);var h=this.getFoldsInRange(n.range);h.length>0&&(this.removeFolds(h),h.forEach((function(e){n.addSubFold(e)})));for(var p=0;p0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e?(n=new r(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,o=this.getFoldsInRangeList(n),t)this.removeFolds(o);else for(var i=o;i.length;)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,o){null==r&&(r=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var i=this.doc,a="";return e.walk((function(e,t,n,s){if(!(tu)break}while(i&&l.test(i.type));i=o.stepBackward()}else i=o.getCurrentToken();return c.end.row=o.getCurrentTokenRow(),c.end.column=o.getCurrentTokenColumn()+i.value.length-2,c}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var o=e=e||0;o=e){o=i.end.row;try{var a=this.addFold("...",i);a&&(a.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,o=e-1;o>=0;){var i=n[o];if(null==i&&(i=n[o]=this.getFoldWidget(o)),"start"==i){var a=this.getFoldWidgetRange(o);if(r||(r=a),a&&a.end.row>=e)break}o--}return{range:-1!==o&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),o="end"===n?-1:1,i=this.getFoldAt(e,-1===o?0:r.length,o);if(i)return t.children||t.all?this.removeFold(i):this.expandFold(i),i;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(i=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(i.range))return this.removeFold(i),i;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,c=s.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=a?a.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,i=n.charAt(e.column-1),a=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(a||(i=n.charAt(e.column),e={row:e.row,column:e.column+1},a=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=o.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=o.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!r)return null;var i=new o(e.row,e.column-1,e.row,e.column),a=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);return a?[i,new o(a.row,a.column,a.row,a.column+1)]:[i]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],i=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn()-2,c=s.value;;){for(;l>=0;){var u=c.charAt(l);if(u==o){if(0==(i-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else u==e&&(i+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;l=(c=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],i=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-a.getCurrentTokenColumn();;){for(var c=s.value,u=c.length;ln&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var o=n+r>>1,i=e[o];if(t>i)n=o+1;else{if(!(t=t);i++);return(n=r[i])?(n.index=i,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var i=t;if(i>0){do{i--}while(i>=0&&n.charAt(i).match(o));i++}for(var a=t;ae&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,o=0,i=this.$foldData[o],a=i?i.start.row:1/0,s=t.length,l=0;la){if((l=i.end.row+1)>=s)break;a=(i=this.$foldData[o++])?i.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;ne.end.column&&(i.start.column+=c),i.end.row==e.end.row&&i.end.column>e.end.column&&(i.end.column+=c)),a&&i.start.row>=e.end.row&&(i.start.row+=a,i.end.row+=a)}if(i.end=this.insert(i.start,r),o.length){var s=e.start,l=i.start,c=(a=l.row-s.row,l.column-s.column);this.addFolds(o.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=c),e.end.row==s.row&&(e.end.column+=c),e.start.row+=a,e.end.row+=a,e})))}return i},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var i=this.getLine(o);n.start.row=o,n.end.row=o;for(var a=0;a0){var o;if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=o-t}else{e=this.$clipRowToDocument(e);r=(t=this.$clipRowToDocument(t))-e+1}var i=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(i).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,o=e.end,i=r.row,a=o.row,s=a-i,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(i,s);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var u=0;if(m=this.getFoldLine(o.row)){m.addRemoveChars(o.row,o.column,r.column-o.column),m.shiftRow(-s);var d=this.getFoldLine(i);d&&d!==m&&(d.merge(m),m=d),u=c.indexOf(m)+1}for(;u=o.row&&m.shiftRow(-s)}a=i}else{var f=Array(s);f.unshift(i,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,f);c=this.$foldData,u=0;if(m=this.getFoldLine(i)){var p=m.range.compareInside(r.row,r.column);0==p?(m=m.split(r.row,r.column))&&(m.shiftRow(s),m.addRemoveChars(a,0,o.column-r.column)):-1==p&&(m.addRemoveChars(i,0,o.column-r.column),m.shiftRow(s)),u=c.indexOf(m)+1}for(;u=i&&m.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(m=this.getFoldLine(i))&&m.addRemoveChars(i,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(i,a):this.$updateRowLengthCache(i,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,r){var o,i,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=n;for(r=Math.min(r,a.length-1);u<=r;)(i=this.getFoldLine(u,i))?(o=[],i.walk(function(n,r,i,s){var l;if(null!=n){(l=this.$getDisplayTokens(n,o.length))[0]=e;for(var c=1;c=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,r,o){if(0==n.length)return[];var i=[],a=n.length,s=0,l=0,c=this.$wrapAsCode,u=this.$indentedSoftWrap,d=r<=Math.max(2*o,8)||!1===u?0:Math.floor(r/2);function f(e){for(var t=e-s,r=s;rr-h;){var p=s+r-h;if(n[p-1]>=10&&n[p]>=10)f(p);else if(n[p]!=e&&n[p]!=t){for(var m=Math.max(p-(r-(r>>2)),s-1);p>m&&n[p]m&&n[p]m&&9==n[p];)p--}else for(;p>m&&n[p]<10;)p--;p>m?f(++p):(2==n[p=s+r]&&p--,f(p-h))}else{for(;p!=s-1&&n[p]!=e;p--);if(p>s){f(p);continue}for(p=s+r;p39&&a<48||a>57&&a<64?o.push(9):a>=4352&&n(a)?o.push(1,2):o.push(1)}return o},this.$getStringScreenWidth=function(e,t,r){if(0==t)return[0,0];var o,i;for(null==t&&(t=1/0),r=r||0,i=0;i=4352&&n(o)?r+=2:r+=1,!(r>t));i++);return[r,i]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=c[u],i=this.$docRowCache[u];var f=e>c[d-1]}else f=!d;for(var h=this.getLength()-1,p=this.getNextFoldLine(i),m=p?p.start.row:1/0;s<=e&&!(s+(l=this.getRowLength(i))>e||i>=h);)s+=l,++i>m&&(i=p.end.row+1,m=(p=this.getNextFoldLine(i,p))?p.start.row:1/0),f&&(this.$docRowCache.push(i),this.$screenRowCache.push(s));if(p&&p.start.row<=i)r=this.getFoldDisplayLine(p),i=p.start.row;else{if(s+l<=e||i>h)return{row:h,column:this.getLine(h).length};r=this.getLine(i),p=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[i];y&&(o=y[v],v>0&&y.length&&(g=y.indent,a=y[v-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,i,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=o&&(a=o-1),p?p.idxToPosition(a):{row:i,column:a}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,o=0,i=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),u=l.length;if(u&&c>=0){s=l[c],o=this.$screenRowCache[c];var d=e>l[u-1]}else d=!u;for(var f=this.getNextFoldLine(s),h=f?f.start.row:1/0;s=h){if((a=f.end.row+1)>e)break;h=(f=this.getNextFoldLine(a,f))?f.start.row:1/0}else a=s+1;o+=this.getRowLength(s),s=a,d&&(this.$docRowCache.push(s),this.$screenRowCache.push(o))}var p="";f&&s>=h?(p=this.getFoldDisplayLine(f,e,t),i=f.start.row):(p=this.getLine(e).substring(0,t),i=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[i];if(g){for(var v=0;p.length>=g[v];)o++,v++;p=p.substring(g[v-1]||0,p.length),m=v>0?g.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(o+=this.lineWidgets[s].rowsAbove),{row:o,column:m+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,o=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);ro&&(r=t.end.row+1,o=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;sn);i++);return[r,i]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=n}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),o=e("./lib/oop"),i=e("./range").Range,a=function(){this.$options={}};(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,o,a){return r=new i(e,n,o,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,c=s.length,u=o.length-c;e:for(var d=s.offset||0;d<=u;d++){for(var f=0;fm||(a.push(l=new i(d,m,d+c-1,g)),c>2&&(d=d+c-2))}}else for(var v=0;vE&&a[f].end.row==n.end.row;)f--;for(a=a.slice(v,f+1),v=0,f=a.length;v=s;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=l;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var u=n.length,d=function(t,o,i){var a=r?t-u+1:t;if(!(a<0)){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&lo))return!!i(a,l,a+u-1,d)||void 0}}};else if(r)d=function(t,r,o){var i,a=e.getLine(t),s=[],l=0;for(n.lastIndex=0;i=n.exec(a);){var c=i[0].length;if(l=i.index,!c){if(l>=a.length)break;n.lastIndex=l+=1}if(i.index+c>r)break;s.push(i.index,c)}for(var u=s.length-1;u>=0;u-=2){var d=s[u-1];if(o(t,d,t,d+(c=s[u])))return!0}};else d=function(t,r,o){var i,a,s=e.getLine(t);for(n.lastIndex=r;a=n.exec(s);){var l=a[0].length;if(o(t,i=a.index,t,i+l))return!0;if(!l&&(n.lastIndex=i+=1,i>=s.length))return!1}};return{forEach:c}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/keys"),o=e("../lib/useragent"),i=r.KEY_MODS;function a(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var o in r){var i=r[o];if(i==e)delete r[o];else if(Array.isArray(i)){var a=i.indexOf(e);-1!=a&&(i.splice(a,1),1==i.length&&(r[o]=i[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=i[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var a=this.parseKeys(e),s=i[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var o,i=this.commandKeyBinding;if(n)if(!i[t]||this.$singleCommand)i[t]=n;else{Array.isArray(i[t])?-1!=(o=i[t].indexOf(n))&&i[t].splice(o,1):i[t]=[i[t]],"number"!=typeof r&&(r=e(n));var a=i[t];for(o=0;or)break}a.splice(o,0,n)}else delete i[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),o=r[n];if(r.FUNCTION_KEYS[o])n=r.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var i=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;i|=s}return{key:n,hashId:i}},this.findKeyCommand=function(e,t){var n=i[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var o=i[t]+n,a=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:a}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,i=e("../lib/event_emitter").EventEmitter,a=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(a,o),function(){r.implement(this,i),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),o=e("../config"),i=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=o.row+1;c++){var u=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(c)));0!==u.length&&(u=" "+u),l+=u}o.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,o=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a=o.lastRow||r.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var i=this.selection.toJSON();this.curOp.selectionAfter=i,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(i),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());if(!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session)),n){var r="ace_bracket";Array.isArray(n)?1==n.length&&(r="ace_error_bracket"):n=[n],2==n.length&&(0==h.comparePoints(n[0].end,n[1].start)?n=[h.fromPoints(n[0].start,n[1].end)]:0==h.comparePoints(n[0].start,n[1].end)&&(n=[h.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map((function(e){return t.addMarker(e,r,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),o=r.getCurrentToken();if(!o||!/\b(?:tag-open|tag-name)/.test(o.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==o.type.indexOf("tag-open")||(o=r.stepForward())){var i=o.value,a=0,s=r.stepBackward();if("<"==s.value)do{s=o,(o=r.stepForward())&&o.value===i&&-1!==o.type.indexOf("tag-name")&&("<"===s.value?a++:"=0);else{do{o=s,s=r.stepBackward(),o&&o.value===i&&-1!==o.type.indexOf("tag-name")&&("<"===s.value?a++:"1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new h(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,o=e.getLine(t.start.row),i=o.substring(n,r);if(!(i.length>5e3)&&/[\w\d]/.test(i)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:i}),s=o.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),o=0;os.search(/\S|$/)){var l=s.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,u=n.getState(o.row),d=(s=n.getLine(o.row),r.checkOutdent(u,s,e));if(n.insert(o,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new h(o.row,c+i.selection[0],o.row,c+i.selection[1])):this.selection.setSelectionRange(new h(o.row+i.selection[0],i.selection[1],o.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var f=r.getNextLineIndent(u,s.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},f)}d&&r.autoOutdent(u,n,o.row)}},this.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var i,a,s,l="",c="",u="",d=n.getTabString(),f=e;f<=t;f++)f>0&&(l=n.getState(f-1),c=n.getLine(f-1),u=r.getNextLineIndent(l,c,d)),i=n.getLine(f),u!==(a=r.$getIndent(i))&&(a.length>0&&(s=new h(f,0,f,a.length),n.remove(s)),u.length>0&&n.insert({row:f,column:0},u)),r.autoOutdent(l,n,f)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),o=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var i=n.getTextRange(t);if("\n"==i[i.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,o=this.session.getLine(e.row);tt.toLowerCase()?1:0}));var o=new h(0,0,0,0);for(r=e.first;r<=e.last;r++){var i=t.getLine(r);o.start.row=r,o.end.row=r,o.end.column=i.length,t.replace(o,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new h(t,n-1,t,n),o=this.session.getTextRange(r);if(!isNaN(parseFloat(o))&&isFinite(o)){var i=this.getNumberAt(t,n);if(i){var a=i.value.indexOf(".")>=0?i.start+i.value.indexOf(".")+1:i.end,s=i.start+i.value.length-a,l=parseFloat(i.value);l*=Math.pow(10,s),a!==i.end&&n=s&&a<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,s+r),c.selection.selectTo(e,l+r)),s=l}));for(var u,d=this.$toggleWordPairs,f=0;fh+1)break;h=p.last}for(u--,s=this.session.$moveLines(f,h,t?0:e),t&&-1==e&&(d=u+1);d<=u;)a[d].moveBy(s,0),d++;t||(s=0),l+=s}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,o=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var i=n.scrollTop;n.scrollBy(0,o*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(i)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),o=r.getCurrentToken(),i=o||r.stepForward();if(i){var a,s,l=!1,c={},u=n.column-i.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(i.value.match(/[{}()\[\]]/g)){for(;u=0;--i)this.$tryReplace(n[i],e)&&r++;return this.selection.setSelectionRange(o),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var i=this.$search.find(this.session);return t.preventScroll?i:i?(this.revealRange(i,n),i):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var i=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,i=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=i.top-a.offset;null!=(r=i.top>=0&&s+t.top<0||!(i.topwindow.innerHeight)&&null)&&(o.style.top=s+"px",o.style.left=i.left+"px",o.style.height=a.lineHeight+"px",o.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",i),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;v.loadModule("./ext/prompt",(function(o){o.prompt(r,e,t,n)}))}}.call(w.prototype),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?E.attach(this):E.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?E.attach(this):E.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var E={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=w})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var o=n[r][0];if(o.id<=e)break;o.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?s(e):s(this.$undoStack)+"\n---\n"+s(this.$redoStack)}}).call(r.prototype);var o=e("./range").Range,i=o.comparePoints;o.comparePoints;function a(e){return{row:e.row,column:e.column}}function s(e){if(e=e||this,Array.isArray(e))return e.map(s).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function c(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(i(t.start,e.end)>=0)f(t,e,-1);else{if(!(i(t.start,e.start)<=0))return null;f(e,t,1)}else if(n&&!r)if(i(t.start,e.end)>=0)f(t,e,-1);else{if(!(i(t.end,e.start)<=0))return null;f(e,t,-1)}else if(!n&&r)if(i(t.start,e.start)>=0)f(t,e,1);else{if(!(i(t.start,e.start)<=0))return null;f(e,t,1)}else if(!n&&!r)if(i(t.start,e.start)>=0)f(t,e,1);else{if(!(i(t.end,e.start)<=0))return null;f(e,t,-1)}return[t,e]}function u(e,t){for(var n=e.length;n--;)for(var r=0;r=0?f(e,t,-1):(i(e.start,t.start)<=0||f(e,o.fromPoints(t.start,e.start),-1),f(t,e,1));else if(!n&&r)i(t.start,e.end)>=0?f(t,e,-1):(i(t.start,e.start)<=0||f(t,o.fromPoints(e.start,t.start),-1),f(e,t,1));else if(!n&&!r)if(i(t.start,e.end)>=0)f(t,e,-1);else{var a,s;if(!(i(t.end,e.start)<=0))return i(e.start,t.start)<0&&(a=e,e=p(e,t.start)),i(e.end,t.end)>0&&(s=p(e,t.end)),h(t.end,e.start,e.end,-1),s&&!a&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,a,s].filter(Boolean);f(e,t,-1)}return[t,e]}function f(e,t,n){h(e.start,t.start,t.end,n),h(e.end,t.start,t.end,n)}function h(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function p(e,t){var n=e.lines,r=e.end;e.end=a(t);var o=e.end.row-e.start.row,i=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(i[0].substring(0,s)),i[0]=i[0].substr(s),{start:a(t),end:r,lines:i,action:e.action}}function m(e,t){t=function(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var r=e[n],o=0;oi&&(l=o.end.row+1,i=(o=t.getNextFoldLine(l,o))?o.start.row:1/0),l>r){for(;this.$lines.getLength()>s+1;)this.$lines.pop();break}(a=this.$lines.get(++s))?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+r-1);var i=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();(i+=a.left+a.right)===this.gutterWidth||isNaN(i)||(this.gutterWidth=i,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",i))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(r.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r0;o--)this.$lines.shift();if(r>n)for(o=this.session.getFoldedRowCount(n+1,r);o>0;o--)this.$lines.pop();e.firstRowr&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var r=[],o=t,i=this.session.getNextFoldLine(o),a=i?i.start.row:1/0;o>a&&(o=i.end.row+1,a=(i=this.session.getNextFoldLine(o,i))?i.start.row:1/0),!(o>n);){var s=this.$lines.createCell(o,e,this.session,c);this.$renderCell(s,e,i,o),r.push(s),o++}return r},this.$renderCell=function(e,t,n,o){var i=e.element,a=this.session,s=i.childNodes[0],l=i.childNodes[1],c=a.$firstLineNumber,u=a.$breakpoints,d=a.$decorations,f=a.gutterRenderer||this.$renderer,h=this.$showFoldWidgets&&a.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o=p&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),u[o]&&(m+=u[o]),d[o]&&(m+=d[o]),this.$annotations[o]&&(m+=this.$annotations[o].className),i.className!=m&&(i.className=m),h){var g=h[o];null==g&&(g=h[o]=a.getFoldWidget(o))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&o==p&&on.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,o=e("../lib/dom"),i=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var o=r.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),r.renderer){var i=this.$getTop(o.start.row,e),a=this.$padding+o.start.column*e.characterWidth;r.renderer(t,o,a,i,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,o,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,o,r.clazz,e):o.isMultiLine()?"text"==r.type?this.drawTextMarker(t,o,r.clazz,e):this.drawMultiLineMarker(t,o,r.clazz,e):this.drawSingleLineMarker(t,o,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.if?4:0)|(c==l?8:0)),o,c==l?0:1,i)},this.drawMultiLineMarker=function(e,t,n,r,o){var i=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=i+t.start.column*r.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",r,null,o)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",r,null,o)}else{s=this.$getTop(t.end.row,r);var u=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+u+"px;top:"+s+"px;left:"+i+"px;"+(o||""))}if(!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var d=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(d?" ace_br"+d:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+i+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,r,o,i){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,o,i);var a=r.lineHeight,s=(t.end.column+(o||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),c=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+c+"px;"+(i||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,o,i){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(o||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(i||""))}),this)},this.drawFullLineMarker=function(e,t,n,r,o){var i=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-i),this.elt(n,"height:"+a+"px;top:"+i+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,r,o){var i=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+i+"px;left:0;right:0;"+(o||""))}}).call(i.prototype),t.Marker=i})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../lib/dom"),i=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nu&&(s=l.end.row+1,u=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>o);){var d=i[a++];if(d){this.dom.removeChildren(d),this.$renderLine(d,s,s==u&&l),c&&(d.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var f=e.lineHeight*this.session.getRowLength(s)+"px";d.style.height!=f&&(c=!0,d.style.height=f)}s++}if(c)for(;a0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){for(var r=[],i=t,a=this.session.getNextFoldLine(i),s=a?a.start.row:1/0;i>s&&(i=a.end.row+1,s=(a=this.session.getNextFoldLine(i,a))?a.start.row:1/0),!(i>n);){var l=this.$lines.createCell(i,e,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(i,e,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(i,e,this.session)+"px"),this.$renderLine(c,i,i==s&&a),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",r.push(l),i++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){for(var o,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,s=this.dom.createFragment(this.element),l=0;o=a.exec(r);){var c=o[1],u=o[2],d=o[3],f=o[4],h=o[5];if(this.showSpaces||!u){var p=l!=o.index?r.slice(l,o.index):"";if(l=o.index+o[0].length,p&&s.appendChild(this.dom.createTextNode(p,this.element)),c){var m=this.session.getScreenTabSize(t+o.index);s.appendChild(this.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(u){if(this.showSpaces)(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",v.textContent=i.stringRepeat(this.SPACE_CHAR,u.length),s.appendChild(v);else s.appendChild(this.com.createTextNode(u,this.element))}else if(d){(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",v.textContent=i.stringRepeat(this.SPACE_CHAR,d.length),s.appendChild(v)}else if(f){t+=1,(v=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",v.className=this.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=this.showSpaces?this.SPACE_CHAR:f,s.appendChild(v)}else if(h){t+=1,(v=this.dom.createElement("span")).style.width=2*this.config.characterWidth+"px",v.className="ace_cjk",v.textContent=h,s.appendChild(v)}}}if(s.appendChild(this.dom.createTextNode(l?r.slice(l):r,this.element)),this.$textToken[n.type])e.appendChild(s);else{var g="ace_"+n.type.replace(/\./g," ace_"),v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=g,v.appendChild(s),e.appendChild(v)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var o=(r-=r%this.tabSize)/this.tabSize,i=0;i=a;)s=this.$renderToken(l,s,u,d.substring(0,a-r)),d=d.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(i.stringRepeat(" ",n.indent),this.element)),s=0,a=n[++o]||Number.MAX_VALUE;0!=d.length&&(r+=d.length,s=this.$renderToken(l,s,u,d))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],o=r.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(n=this.$renderToken(e,n,r,o));for(var i=1;ithis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,o);n=this.$renderToken(e,n,r,o)}},this.$renderOverflowMessage=function(e,t,n,r,o){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=o?"":"",e.appendChild(i)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var o=e;if(r.length){var i=this.session.getRowSplitData(t);if(i&&i.length){this.$renderWrappedLine(e,r,i);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,r)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];var o=n.getTokens(e);return t.walk((function(e,t,i,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(o=n.getTokens(t)),o.length&&function(e,t,n){for(var o=0,i=0;i+e[o].value.lengthn-t&&(a=a.substring(0,n-t)),r.push({type:e[o].type,value:a}),i=t+a.length,o+=1);in?r.push({type:e[o].type,value:a.substring(0,n-i)}):r.push(e[o]),i+=a.length,o+=1}}(o,a,i))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[o++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/dom"),i=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,i.addListener(this.element,"scroll",this.onScroll.bind(this)),i.addListener(this.element,"mousedown",i.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(s.prototype);var l=function(e,t){s.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(l,s),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var c=function(e,t){s.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(c,s),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),o=e("../lib/dom"),i=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c="function"==typeof ResizeObserver,u=200,d=t.FontMetrics=function(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=i.stringRepeat("X",256),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle((function t(){e.checkForSizeChanges(),a.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=i.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},this.transformCoordinates=function(e,t){e&&(e=i(1/this.$getZoom(this.el),e));function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function i(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),l=a(this.els[1]),c=a(this.els[2]),d=a(this.els[3]),f=n(r(d,l),r(d,c),r(o(l,c),o(d,s))),h=i(1+f[0],r(l,s)),p=i(1+f[1],r(c,s));if(t){var m=t,g=f[0]*m[0]/u+f[1]*m[1]/u+1,v=o(i(m[0],h),i(m[1],p));return o(i(1/g/u,v),s)}var y=r(e,s),b=n(r(h,i(f[0],y)),r(p,i(f[1],y)),y);return i(u,b)}}).call(d.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/dom"),i=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,h=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',g=e("./lib/useragent"),v=g.isIE;o.importCssString(m,"ace_editor.css");var y=function(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new h(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!g.isIOS,this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),i.resetOptions(this),i._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;r||(r=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var i=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(i|this.$changes,!0):this.$loop.schedule(i|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var i=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,i|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",i|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){i|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(i|=this.CHANGE_FULL)}return a.$dirty=!n||!r,i&&this._signal("resize",s),i},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,i=n.top,a=n.left;i-=r.offset;var s=t&&t.useTextareaForIME?this.lineHeight:v?0:1;if(i<0||i>r.height-s)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-s;if(t)if(t.useTextareaForIME){var u=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(u)[0]}else i+=this.lineHeight+2;else i+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",s+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(i,c))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|r,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,r){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|r,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var i=n.width+2*this.$padding+"px",a=n.minHeight+"px";o.setStyle(this.content.style,"width",i),o.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),i=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),a=this.$horizScroll!==i;a&&(this.$horizScroll=i,this.scrollBarH.setVisible(i));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=c;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,r-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+u.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+c<0||this.scrollTop>u.top),f=s!==d;f&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var h,p,m=this.scrollTop%this.lineHeight,g=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),y=v+g,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var w=e.getFoldLine(v);w&&(v=w.start.row),h=e.documentToScreenRow(v,0),p=e.getRowLength(v)*b,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*b+p,m=this.scrollTop-h*b;var E=0;return(this.layerConfig.width!=o||a)&&(E=this.CHANGE_H_SCROLL),(a||f)&&(E|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:v,firstRowScreen:h,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:m,gutterOffset:b?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),E},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),o=r.left,i=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>i?(t&&l+a>i+this.lineHeight&&(i-=t*this.$size.scrollerHeight),0===i&&(i=-this.scrollMargin.top),this.session.setScrollTop(i)):l+this.$size.scrollerHeight-so?(o=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,i=o/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(i):Math.round(i);return{row:a,column:s,side:i-s>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,i=o/this.characterWidth,a=this.$blockCursor?Math.floor(i):Math.round(i),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),i=r.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+i-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,r){var o=this.session;o.bgTokenizer.lines[n]=null;var i={type:t,value:e},a=o.getTokens(n);if(null==r)a.push(i);else for(var s=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);t.UIWorkerClient=function(e,t,n){var r=null,o=!1,s=Object.create(i),c=[],u=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),r&&(o?setTimeout(d):d())}});u.setEmitSync=function(e){o=e};var d=function(){var e=c.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){u.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){for(r=new e[n](s);c.length;)d()})),u},t.WorkerClient=l,t.createWorker=s})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,i=e("./lib/oop"),a=function(e,t,n,r,o,i){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=i,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){i.implement(this,o),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new r(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,i=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+i};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+i};this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,o=e("./range").Range,i=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=new(0,e("./search").Search);var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),i=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,i).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],i=e.column0;)y--;if(y>0)for(var b=0;r[b].isEmpty();)b++;for(var w=y;w>=b;w--)r[w].isEmpty()&&r.splice(w,1)}return r}}.call(i.prototype);var f=e("./editor").Editor;function h(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(c.defaultCommands),function(e){if(!e.textInput)return;var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var o=t.indexOf(r);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,o=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,c=l.rangeList,u=(o?l:c).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=l._eventRegistry;l._eventRegistry={};var f=new i(s);this.inVirtualSelectionMode=!0;for(var h=u.length;h--;){if(a)for(;h>0&&u[h].start.row==u[h-1].end.row;)h--;f.fromOrientedRange(u[h]),f.index=h,this.selection=s.selection=f;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),f.toOrientedRange(u[h])}f.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=d,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;ra&&(a=n.column),ru?e.insert(r,l.stringRepeat(" ",i-u)):e.remove(new o(r.row,r.column,r.row,r.column-i+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),d=u.start.row,f=u.end.row,h=d==f;if(h){var p,m=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f0);d<0&&(d=0),f>=m&&(f=m-1)}var g=this.session.removeFullLines(d,f);g=this.$reAlignText(g,h),this.session.insert({row:d,column:0},g.join("\n")+"\n"),h||(u.start.column=0,u.end.column=g[g.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,o,i=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,o=t[3].length,t):(n+r+o!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(i=!1),n>t[1].length&&(n=t[1].length),rt[3].length&&(o=t[3].length),t):[e]})).map(t?c:i?a?function(e){return e[2]?s(n+r-e[2].length)+e[2]+s(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?s(n)+e[2]+s(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function s(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?s(n)+e[2]+s(r-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(f.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=h,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(e){h(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,i=e.getLine(t),a=i.search(o);if(-1!=a){for(var s=n||i.length,l=e.getLength(),c=t,u=t;++tc){var h=e.getLine(u).length;return new r(c,s,u,h)}}},this.openingBracketBlock=function(e,t,n,o,i){var a={row:n,column:o+1},s=e.$findClosingBracket(t,a,i);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,o,i){var a={row:n,column:o},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(o.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./lib/dom");function o(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,o=r.start.row,i=r.end.row,a="add"==e.action,s=o+1;st[n].column&&n++,i.unshift(n,0),t.splice.apply(t,i),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var o=1/0,i=0;i0&&!r[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=o;a<=i;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var c=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(c-=t.scrollLeft),s.el.style.left=c+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,o=e("../lib/dom"),i=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var a=e.getCursorPosition(),s=a.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var c,u=function(e,t,n){var r=e.getAnnotations().sort(i.comparePoints);if(r.length){var o=function(e,t,n){for(var r=0,o=e.length-1;r<=o;){var i=r+o>>1,a=n(t,e[i]);if(a>0)r=i+1;else{if(!(a<0))return i;o=i-1}}return-(r+1)}(r,{row:t,column:-1},i.comparePoints);o<0&&(o=-o-1),o>=r.length?o=n>0?0:r.length-1:0===o&&n<0&&(o=r.length-1);var a=r[o];if(a&&n){if(a.row===t){do{a=r[o+=n]}while(a&&a.row===t);if(!a)return r.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=r[o+=n]}while(a&&a.row==t);return s.length&&s}}}(n,s,t);if(u){var d=u[0];a.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,a.row=d.row,c=e.renderer.$gutterLayer.$annotations[a.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var f={row:a.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},h=f.el.appendChild(o.createElement("div")),p=f.el.appendChild(o.createElement("div"));p.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(a).left;p.style.left=m+e.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",h.className="error_widget "+c.className,h.innerHTML=c.text.join("
"),h.appendChild(o.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return f.destroy(),{command:"null"}};f.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(f),e.off("changeSelection",f.destroy),e.off("changeSession",f.destroy),e.off("mouseup",f.destroy),e.off("change",f.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",f.destroy),e.on("changeSession",f.destroy),e.on("mouseup",f.destroy),e.on("change",f.destroy),e.session.widgetManager.addLineWidget(f),f.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),i=e("./lib/event"),a=e("./range").Range,s=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n(189),t.edit=function(e,n){if("string"==typeof e){var r=e;if(!(e=document.getElementById(r)))throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=o.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var c=t.createEditSession(a),d=new s(new u(e),c,n),f={document:c,editor:d,onResize:d.resize.bind(d,null)};return l&&(f.textarea=l),i.addListener(window,"resize",f.onResize),d.on("destroy",(function(){i.removeListener(window,"resize",f.onResize),f.editor.container.env=null})),d.container.env=d.env=f,d},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new c),n},t.Range=a,t.Editor=s,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=u,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace.default=window.ace,e&&(e.exports=window.ace)}))}).call(this,n(92)(e))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&e.handleMarkers(E,t);for(r=0;rn?1:r>=n?0:NaN;var r,n},{left:function(e,r,n,o){for(null==n&&(n=0),null==o&&(o=e.length);n>>1;t(e[i],r)<0?n=i+1:o=i}return n},right:function(e,r,n,o){for(null==n&&(n=0),null==o&&(o=e.length);n>>1;t(e[i],r)>0?o=i:n=i+1}return n}}).left,s=new Date(n).getTime(),p=[];return"[object Array]"!==Object.prototype.toString.call(r)?[]:(r.forEach(function(e,t){if(!1!==e.visible){var r=e.name,y=e.color,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"[object Function]"===Object.prototype.toString.call(t)&&t(n)&&(r[n]=e[n]);return r}(e,function(e){return"data"!==e}),d=e.data,v=void 0===d?[]:d;if("[object Array]"===Object.prototype.toString.call(v)&&0!==(v=v.filter(function(e){return"number"==typeof e[i]||"number"==typeof c})).length){var m,O=f(v,n),g=v[O-1],j=v[O];if(g&&j){var x=u(g[o],a),P=u(j[o],a),h=g[i],S=j[i];null===h&&void 0!==c&&(h=c),null===S&&void 0!==c&&(S=c),m=s-x{n[e]=t[e]}),n}function g(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function v(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};let t=e;for(;t!==document;){if("none"===g(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}let y=0,b=null;function w(){var e,t;C(this),this.__resize_raf__&&(e=this.__resize_raf__,p||(p=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),p(e)),this.__resize_raf__=(t=()=>{let e=function(e){let{width:t,height:n}=e.__resize_last__,{offsetWidth:r,offsetHeight:o}=e;return r!==t||o!==n?{width:r,height:o}:null}(this);e&&(this.__resize_last__=e,E(this))},h||(h=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),h(t))}function E(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach(t=>{t.call(e)})}function C(e){let{expand:t,expandChild:n,contract:r}=e.__resize_triggers__,{scrollWidth:o,scrollHeight:i}=r,{offsetWidth:a,offsetHeight:s,scrollWidth:l,scrollHeight:c}=t;r.scrollLeft=o,r.scrollTop=i,n.style.width=a+1+"px",n.style.height=s+1+"px",t.scrollLeft=l,t.scrollTop=c}function k(e,t){var n=e.length;return tr){var l=n;n=r,r=l}o&&(or&&(r=o)),e.domain([n,r]),e.nice(i),this.ticks=e.ticks(i)}},{key:"draw",value:function(e){var t=this.ctx,n=this.options.yAxis;t.textAlign="left",t.textBaseline="bottom",t.shadowColor="#fff",t.shadowBlur=1,t.lineWidth=1,t.fillStyle=n.labels.color,t.font="".concat(n.labels.fontSize,"px Palantino"),this.ticks.forEach((function(n){var r=String(n);if(n>=1e3){r=d.format(".5s")(n);var o=/[kMGTPEZY]$/;if(o.test(r)){var i=r[r.length-1];r=r.replace(o,""),r=parseFloat(r)+i}}var a=e(n);t.strokeText(r,0,a),t.fillText(r,0,a)}))}},{key:"drawGridLine",value:function(e){var t=this.ctx,n=this.options,r=n.chart,o=n.yAxis;t.beginPath(),this.ticks.forEach((function(n){var o=e(n);t.moveTo(0,o),t.lineTo(r.width,o)})),t.strokeStyle=o.gridLineColor,t.stroke()}},{key:"drawPlotLines",value:function(e){var t=this.ctx,n=this.options,r=n.chart,o=n.yAxis,i=n.yAxis.plotLines;Array.isArray(i)&&i.forEach((function(n){var i=e(n.value);t.setLineDash([5,3]),t.beginPath(),t.moveTo(0,i),t.lineTo(r.width,i),t.strokeStyle=n.color,t.stroke(),t.setLineDash([]),t.textAlign="right",t.textBaseline="top",t.shadowColor="#fff",t.shadowBlur=1,t.lineWidth=1,t.fillStyle=n.color,t.font="".concat(o.labels.fontSize,"px Palantino"),t.strokeText(String(n.value),r.width-10,i),t.fillText(String(n.value),r.width-10,i)}))}}]),e}(),P=n(6);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A=new(n.n(P).a),T=function(){function e(t,n,r,o){l()(this,e),this.options=void 0,this.ctx=void 0,this.flag=void 0,this.isMouserover=void 0,this.options=t,this.ctx=n,this.flag=!1,this.init(r,o),this.isMouserover=!1}return u()(e,[{key:"init",value:function(e,t){var n=this.options.chart.id,r=document.createElement("div");r.id="".concat(n,"-tooltip"),r.className="ts-graph-tooltip",document.getElementById(r.id)||e.insertBefore(r,t)}},{key:"clear",value:function(){var e=this.options,t=e.ratio,n=e.chart,r=n.id,o=n.containerWidth,i=n.containerHeight,a=document.getElementById("".concat(r,"-tooltip"));this.isMouserover=!1,this.ctx.save(),this.ctx.setTransform(1*t,0,0,1*t,0,0),this.ctx.clearRect(0,0,o,i),this.ctx.restore(),a.style.top="-99999px",a.lastChild&&a.removeChild(a.lastChild)}},{key:"getNearestPoints",value:function(e,t,n,r){var o=this,i=this.options,s=i.series,l=void 0===s?[]:s,c=i.chart,u=c.id,d=c.colors,h=i.tooltip.shared,p=i.xkey,m=i.ykey,g=i.timestamp,v=i.fillNull,y=t.invert(e[0]),b=[],w={x:y,xkey:p,ykey:m,timestamp:g,fillNull:v};this.flag?(w.id=u,w.flag=this.flag,A.postMessage(w)):(w.id=u,w.str=JSON.stringify(l),w.flag=this.flag,A.postMessage(w),this.flag=!0),A.onmessage=function(i){if(!1!==o.isMouserover){"[object Array]"===Object.prototype.toString.call(i.data)&&(b=i.data.map((function(e){return function(e){for(var t=1;t1){var u=Number.POSITIVE_INFINITY;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var m=(s=e[0],l=Number(p),Math.sqrt(Math.pow(l-s,2)));mg&&(e=e.slice(0,g),v=!0),p.className="ts-graph-tooltip-content",h.appendChild(p),"[object Function]"===Object.prototype.toString.call(s.formatter))p.innerHTML=s.formatter(o()(e),o()(m));else{var y=e[0],b=document.createDocumentFragment(),w=document.createElement("ul"),E=document.createElement("li"),C=new Date(y.timestamp);if(l&&l.timezoneOffset){var k=C.getTimezoneOffset(),O=C.getTime()+60*k*1e3+60*l.timezoneOffset*1e3;C=new Date(O)}var S=document.createTextNode(d.timeFormat("%Y-%m-%d %H:%M:%S")(C));if(E.appendChild(S),E.style.color="#666",w.style.maxWidth="".concat(c/1.5,"px"),w.appendChild(E),b.appendChild(w),e.forEach((function(e){var t=e.color,n=e.name,r=e.value,o=e.filledNull,i=document.createElement("li");if(t){var a=document.createElement("span"),s=document.createTextNode("● ");a.style.color=t,a.appendChild(s),i.appendChild(a)}if(n){var l=document.createTextNode("".concat(n,": "));i.appendChild(l)}if(r){var c=document.createElement("strong"),u=document.createTextNode("".concat(d.format(",.3f")(r)).concat(o?"(空值填补,仅限看图使用)":""));c.appendChild(u),i.appendChild(c)}w.appendChild(i)})),v){var x=document.createElement("li"),P=document.createTextNode("......");x.appendChild(P),w.appendChild(x)}p.appendChild(b)}var _=p.offsetWidth,A=p.offsetHeight;h.style.left="".concat(t[0]-_-20,"px"),h.style.top="".concat(t[1]+20,"px"),t[0]-_-20<0&&(h.style.left="".concat(t[0]+20,"px"),t[0]+20+_>c&&(h.style.left="0px")),t[1]+20+A>u&&(t[1]-A-20<0?h.style.top="0px":h.style.top="".concat(t[1]-A-20,"px")),h.style.visibility="visible"}},{key:"drawSymbol",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.ctx;e.forEach((function(e){var n=e.x,r=e.y,o=e.color;t.beginPath(),t.arc(n,r,5,0,360,!1),t.lineWidth=1,t.fillStyle=o,t.fill(),t.beginPath(),t.arc(n,r,3,0,360,!1),t.lineWidth=1,t.fillStyle="white",t.fill()}))}},{key:"drawCrosshair",value:function(e){var t=this.ctx,n=this.options,r=n.chart,o=n.xAxis,i=r.height-o.tickpadding-o.labels.fontSize-o.tickLength;t.beginPath(),t.moveTo(e,0),t.lineTo(e,i),t.lineWidth=1,t.strokeStyle=o.lineColor,t.stroke()}}]),e}(),M=function(){function e(t,n){l()(this,e),this.options=void 0,this.ctx=void 0,this.options=t,this.ctx=n}return u()(e,[{key:"draw",value:function(e,t){var n=this.options,r=n.series,o=n.chart.colors,i=n.xkey,a=n.ykey,s=n.timestamp,l=n.fillNull,c=n.notDisplayedSeries,u=this.ctx;Object(f.sortBy)(r,"zIndex").forEach((function(n,r){if(!1!==n.visible&&!(c.indexOf(n.name)>-1)){var f=n.color||k(o,r);n.color=f,u.beginPath();var h=d.line().x((function(t){var n="X"===s?1e3*t[i]:t[i];return e(new Date(n))})).y((function(e){var n=e[a];return"number"==typeof n?t(n):"number"==typeof l?t(l):void 0})).defined((function(e){return"number"==typeof e[a]||"number"==typeof l})).context(u);u.lineTo(0,0),h(n.data||[]),u.lineJoin="round",u.lineWidth=2,u.strokeStyle=f,u.lineCap="round",u.stroke()}}))}}]),e}(),N=function(){function e(t,n,r,o){l()(this,e),this.options=void 0,this.reset=void 0,this.options=t,this.init(r,o),this.reset=n}return u()(e,[{key:"init",value:function(e,t){var n=this.options.chart,r=n.id,o=n.containerHeight,i=document.createElement("div"),a=document.createElement("div"),s=document.createElement("a"),l=document.createTextNode("Reset zoom");i.id="".concat(r,"-zoom"),i.className="ts-graph-zoom",a.id="".concat(r,"-zoom-marker"),a.className="ts-graph-zoom-marker",a.style.height="".concat(o,"px"),s.id="".concat(r,"-zoom-resetBtn"),s.className="ts-graph-zoom-resetBtn",s.appendChild(l),i.appendChild(a),i.appendChild(s),e.insertBefore(i,t),this.onReset()}},{key:"onReset",value:function(){var e=this,t=this.options.chart.id;document.getElementById("".concat(t,"-zoom-resetBtn")).addEventListener("click",(function(t){t.stopPropagation(),e.reset(),e.clearResetBtn()}))}},{key:"onZoom",value:function(e,t,n){var r=this.options.chart.width,o=t[0]-e[0];if(o){var i=r/Math.abs(o),a=t[0]>e[0]?e[0]:t[0],s=d.zoomIdentity.translate(-a*i,0).scale(i);this.drawResetBtn(),n(s)}}},{key:"clearMarker",value:function(){var e=this.options.chart.id,t=document.getElementById("".concat(e,"-zoom-marker"));t.style.display="none",t.style.width="0px",t.style.left="unset",t.style.right="unset"}},{key:"drawMarker",value:function(e,t){var n=this.options.chart.marginLeft,r=e[0],o=t[0],i=this.options.chart,a=i.id,s=i.containerWidth,l=document.getElementById("".concat(a,"-zoom-marker"));l.style.display="block",l.style.top="0px",r=0&&r<=a}));return L({},e,{data:t})}return e}))},this.handleResize=function(){var e=n.options.chart,t=e.renderTo.offsetWidth,r=e.renderTo.offsetHeight;n.options.chart.width=t-e.marginLeft-e.marginRight,n.options.chart.height=r-e.marginTop-e.marginBottom,n.options.chart.containerWidth=t,n.options.chart.containerHeight=r,n.container.style.width="".concat(t,"px"),n.container.style.height="".concat(r,"px"),n.retinaScaled(n.backCanvas,"back"),n.retinaScaled(n.frontCanvas,"front"),n.retinaScaled(n.eventCanvas,"event"),n.initScales(),n.draw()},this.handleZoom=function(e){var t=n.options,r=t.ykey,o=t.yAxis,i=n.options.series;if(e?(n.transform=e,n.xScales=e.rescaleX(n.xScales),i=n.getZoomedSeries()):(n.transform=void 0,n.xScales=n.xAxis.init()),Array.isArray(i)){var a=o.min||-1/0,s=o.max||1/0,l=!0,c=!1,u=void 0;try{for(var d,f=i[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var h=d.value,p=Array.isArray(h.data)?h.data:[],m=void 0;for(m=0;mg&&(s=g))}}}catch(e){c=!0,u=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw u}}n.yAxis.setDomain(n.yScales,{ymin:a,ymax:s})}n.draw(),n.options.onZoom(n.getZoomedSeries)},this.handleLegendItemClick=function(e){var t=n.options.notDisplayedSeries;-1===t.indexOf(e)?t.push(e):(n.options.notDisplayedSeries=t.filter((function(t){return t!==e})),n.update(n.options))};var r={ratio:window.devicePixelRatio||1,xkey:0,ykey:1,timestamp:"x",chart:{id:Object(f.uniqueId)("ts-graph-"),colors:["#3399CC","#CC9933","#9966CC","#66CC66","#CC3333","#99CCCC","#CCCC66","#CC99CC","#99CC99","#CC6666","#336699","#996633","#993399","#339966","#993333"],width:t.chart.renderTo.offsetWidth,height:t.chart.renderTo.offsetHeight||350,marginTop:10,marginRight:10,marginBottom:10,marginLeft:10},xAxis:{lineColor:"#ccc",lineWidth:1,tickLength:5,tickpadding:5,tickColor:"#ccc",labels:{color:"#999",fontSize:11}},yAxis:{lineColor:"#ccc",lineWidth:1,tickLength:5,tickpadding:5,tickColor:"#ccc",gridLineColor:"#efefef",labels:{color:"#999",fontSize:11,style:{fontSize:11,color:"#999"}}},tooltip:{shared:!0},series:[],legend:{align:"center",verticalAlign:"top",enabled:!1},fillNull:void 0,onClick:function(){},onZoom:function(){}},o=Object(f.merge)({},r,t);void 0===t.chart.marginTop&&o.legend.enabled&&(o.chart.marginTop=20),this.handleResize=Object(f.debounce)(this.handleResize,300),this.init(o)}return u()(e,[{key:"init",value:function(e){var t=e.chart;this.options=e,this.options.notDisplayedSeries=[],this.options.chart.containerWidth=t.width,this.options.chart.containerHeight=t.height,this.options.chart.width=t.width-t.marginLeft-t.marginRight,this.options.chart.height=t.height-t.marginTop-t.marginBottom,this.createContainer(),this.createCanvas(),this.initEvent(),this.initLine(),this.initLegend(),this.initTooltip(),this.initZoom(),this.initSeries(),this.initScales(),this.initScales(),this.draw()}},{key:"clearRect",value:function(e){var t=this.options.chart,n=t.containerWidth,r=t.containerHeight;e.clearRect(0,0,n,r)}},{key:"draw",value:function(){this.clearRect(this.backContext),this.yAxis.drawGridLine(this.yScales),this.line.draw(this.xScales,this.yScales),this.xAxis.draw(this.xScales),this.yAxis.draw(this.yScales),this.xAxis.drawPlotLines(this.xScales),this.yAxis.drawPlotLines(this.yScales),this.legend.draw()}},{key:"update",value:function(e){var t=Object(f.assign)({},this.options,e);e.series&&(t.series=e.series),this.options=t,this.initSeries(),this.initLine(),this.initTooltip(),this.initScales(),this.initScales(),this.legend.updateOptions(t),this.draw()}},{key:"getSeries",value:function(){return o()(this.options.series)}},{key:"initEvent",value:function(){var e,t=!1,n=[],r=!1,o=this,i=Object(f.debounce)((function(e){r&&(o.tooltip.draw(e,o.xScales,o.yScales),t&&o.zoom.drawMarker(n,e))}),10),a=Object(f.throttle)((function(){o.tooltip.clear()}),10);d.select(this.eventCanvas).on("mousemove",(function(){var e=d.mouse(this);r=!0,i(e)})).on("mouseleave",(function(){var t=d.mouse(this);e=t,r=!1,a()})).on("mousedown",(function(){var e=d.mouse(this);t=!0,n=e})).on("mouseup",(function(){d.event.stopPropagation();var e=d.mouse(this);n&&n[0]!==e[0]?(o.zoom.clearMarker(),o.zoom.onZoom(n,e,(function(e){o.handleZoom(e)}))):o.options.onClick(d.event),t=!1,n=[]})).on("touchmove",(function(){var e=d.mouse(this);o.tooltip.draw(e,o.xScales,o.yScales),t&&o.zoom.drawMarker(n,e)})).on("touchend",(function(){var t=d.mouse(this);e=t,r=!1,a()})),window.addEventListener("mouseup",(function(){if(n.length){var r=e;t=!1,o.zoom.clearMarker(),o.zoom.onZoom(n,r,(function(e){o.handleZoom(e)})),n=[]}})),function(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=function(){let{rendered:e,detached:t}=v(this);e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(C(this),this.addEventListener("scroll",w,!0)),this.__resize_rendered__=e,E(this))}.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:t,offsetHeight:n}=e,r=new ResizeObserver(()=>{(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==t||e.offsetHeight!==n))&&E(e)}),{detached:o,rendered:i}=v(e);e.__resize_observer_triggered__=!1===o&&!1===i,e.__resize_observer__=r,r.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){E(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(y||(b=function(e){var t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){let t=g(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};let n=m("div",{className:"resize-triggers"}),r=m("div",{className:"resize-expand-trigger"}),o=m("div"),i=m("div",{className:"resize-contract-trigger"});r.appendChild(o),n.appendChild(r),n.appendChild(i),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:o,contract:i},C(e),e.addEventListener("scroll",w,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=v(e).rendered,window.MutationObserver){let t=new MutationObserver(e.__resize_mutation_handler__);t.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=t}e.__resize_listeners__.push(t),y++}(this.options.chart.renderTo,this.handleResize)}},{key:"retinaScaled",value:function(e,t){var n=this.options,r=n.chart,o=n.ratio,i=e.getContext("2d"),a="front"===t?r.containerWidth:r.width,s="front"===t?r.containerHeight:r.height,l="front"===t?"0px":"".concat(r.marginLeft,"px"),c="front"===t?"0px":"".concat(r.marginTop,"px");e.width=a*o,e.height=s*o,e.style.width="".concat(a,"px"),e.style.height="".concat(s,"px"),e.style.position="absolute",e.style.left=l,e.style.top=c,"front"===t&&i.translate(r.marginLeft*o,r.marginTop*o),i.scale(o,o)}},{key:"createContainer",value:function(){var e=this.options.chart,t=document.createElement("div");t.style.position="relative",t.style.width="".concat(e.containerWidth,"px"),t.style.height="".concat(e.containerHeight,"px"),t.style.overflow="hidden",e.renderTo.appendChild(t),this.container=t}},{key:"createCanvas",value:function(){var e=this.options.chart.id;function t(t){var n=document.createElement("canvas"),r=n.getContext("2d");n.setAttribute("id","".concat(e,"-").concat(t,"Canvas")),this.container.appendChild(n),this["".concat(t,"Canvas")]=n,this["".concat(t,"Context")]=r,this.retinaScaled(n,t)}t.call(this,"back"),t.call(this,"front"),t.call(this,"event")}},{key:"initSeries",value:function(){var e=this.options,t=e.fillNull,n=e.series,r=e.xkey,o=e.ykey,i=e.yAxis,a=-1/0,s=1/0,l=i.min,c=i.max;if(Array.isArray(n)){var u=[],d=!0,f=!1,h=void 0;try{for(var p,m=n[Symbol.iterator]();!(d=(p=m.next()).done);d=!0){var g=p.value,v=Array.isArray(g.data)?g.data:[],y=[],b=!1,w=void 0;for(w=0;w0&&wC&&(s=C),"number"==typeof k?(("number"!=typeof l||kc)&&(c=k)):"number"==typeof t&&(tc&&(c=t))}u.push(L({},g,{data:y}))}}catch(e){f=!0,h=e}finally{try{d||null==m.return||m.return()}finally{if(f)throw h}}this.options.series=u,this.options.xmin=a,this.options.xmax=s,this.options.ymin=l,this.options.ymax=c}}},{key:"initLine",value:function(){this.line=new M(this.options,this.backContext)}},{key:"initTooltip",value:function(){this.tooltip=new T(this.options,this.frontContext,this.container,this.eventCanvas)}},{key:"initZoom",value:function(){this.zoom=new N(this.options,this.handleZoom,this.container,this.eventCanvas)}},{key:"initLegend",value:function(){this.legend=new j(this.options,this.handleLegendItemClick,this.container,this.eventCanvas)}},{key:"initScales",value:function(){var e=new S(this.options,this.backContext),t=new x(this.options,this.backContext);this.xAxis=e;var n=e.init();this.transform&&(n=this.transform.rescaleX(n)),this.xScales=n,this.yAxis=t,this.yScales=t.init()}},{key:"destroy",value:function(){d.select(this.eventCanvas).on("mousemove",null).on("mouseleave",null).on("mousedown",null).on("mouseup",null).on("touchmove",null),d.select(this.container).remove(),function(e,t){let n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",w),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--y&&b&&b.parentNode.removeChild(b)}}(this.options.chart.renderTo,this.handleResize),delete this.options}}]),e}()}]))},function(e,t,n){var r,o; -/*! @preserve - * numeral.js - * version : 2.0.6 - * author : Adam Draper - * license : MIT - * http://adamwdraper.github.com/Numeral-js/ - */void 0===(o="function"==typeof(r=function(){var e,t,n,r,o,i={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in i)if((s="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&n.match(s)){a=i[o].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var o,i,s,l,c,u,d,f,h=a[e.options.currentLocale],p=!1,m=!1,g="",v="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),s>=1e12&&!i||"t"===i?(g+=h.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!i||"b"===i?(g+=h.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!i||"m"===i?(g+=h.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!i||"k"===i)&&(g+=h.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],c=n.split(".")[1],d=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),v=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):v=e._.toFixed(t,c.length,r),l=v.split(".")[0],v=e._.includes(v,".")?h.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):l=e._.toFixed(t,0,r),g&&!i&&Number(l)>=1e3&&g!==h.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case h.abbreviations.thousand:g=h.abbreviations.million;break;case h.abbreviations.million:g=h.abbreviations.billion;break;case h.abbreviations.billion:g=h.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length0;b--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(l=""),f=l+v+(g||""),p?f=(p&&y?"(":"")+f+(p&&y?")":""):u>=0?f=0===u?(y?"-":"+")+f:f+(y?"-":"+"):y&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=a[l.currentLocale],i=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;ir?e:r}),1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=l,e.formats=i,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==i)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,a,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)o=l.zeroFormat;else if(null===s&&null!==l.nullFormat)o=l.nullFormat;else{for(r in i)if(c.match(i[r].regexps.format)){a=i[r].format;break}o=(a=a||e._.numberToFormat)(s,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,o){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,o){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,s,l,c=e._.includes(o,"ib")?r:n,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===t||0===t||t>=s&&t0&&(t/=s);break}return e._.numberToFormat(t,o,i)+u},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],(function(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";var r=n(322),o=n(325),i=[].slice,a=["keyword","gray","hex"],s={};Object.keys(o).forEach((function(e){s[i.call(o[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=o[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=o[this.model].channels;var f=i.call(e,0,u);this.color=h(f,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=o[this.model].labels,v=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===a.indexOf(e)){var t=o[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new c(f(o[this.model][e].raw(this.color)).concat(n),e)},c[e]=function(n){return"number"==typeof n&&(n=h(i.call(arguments),t)),new c(n,e)}}})),e.exports=c},function(e,t,n){e.exports=n(19)(736)},function(e,t,n){e.exports=n(19)(923)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(0)),o=h(n(1)),i=d(n(134)),a=d(n(70)),s=d(n(16)),l=d(n(381)),c=n(382),u=n(44);function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;tn?"".concat(n,"+"):t}},{key:"getDispayCount",value:function(){return this.isDot()?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var e=this.props,t=e.title,n=e.count;return t||("string"==typeof n||"number"==typeof n?n:void 0)}},{key:"getStyleWithOffset",value:function(){var e=this.props,t=e.offset,n=e.style;return t?m({right:-parseInt(t[0],10),marginTop:t[1]},n):n}},{key:"getBadgeClassName",value:function(e){var t,n=this.props,r=n.className,o=n.children;return(0,s.default)(r,e,(g(t={},"".concat(e,"-status"),this.hasStatus()),g(t,"".concat(e,"-not-a-wrapper"),!o),t))}},{key:"hasStatus",value:function(){var e=this.props,t=e.status,n=e.color;return!!t||!!n}},{key:"isZero",value:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e}},{key:"isDot",value:function(){var e=this.props.dot,t=this.isZero();return e&&!t||this.hasStatus()}},{key:"isHidden",value:function(){var e=this.props.showZero,t=this.getDispayCount(),n=this.isZero(),r=this.isDot();return(null==t||""===t||n&&!e)&&!r}},{key:"renderStatusText",value:function(e){var t=this.props.text;return this.isHidden()||!t?null:r.createElement("span",{className:"".concat(e,"-status-text")},t)}},{key:"renderDispayComponent",value:function(){var e=this.props.count;if(e&&"object"===p(e))return r.cloneElement(e,{style:m(m({},this.getStyleWithOffset()),e.props&&e.props.style)})}},{key:"renderBadgeNumber",value:function(e,t){var n,o=this.props,i=o.status,a=o.count,c=o.color,u=this.getDispayCount(),d=this.isDot(),f=this.isHidden(),h=(0,s.default)((g(n={},"".concat(e,"-dot"),d),g(n,"".concat(e,"-count"),!d),g(n,"".concat(e,"-multiple-words"),!d&&a&&a.toString&&a.toString().length>1),g(n,"".concat(e,"-status-").concat(i),!!i),g(n,"".concat(e,"-status-").concat(c),O(c)),n)),p=this.getStyleWithOffset();return c&&!O(c)&&((p=p||{}).background=c),f?null:r.createElement(l.default,{prefixCls:t,"data-show":!f,className:h,count:u,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:p,key:"scrollNumber"})}},{key:"render",value:function(){return r.createElement(u.ConfigConsumer,null,this.renderBadge)}}])&&y(n.prototype,o),c&&y(n,c),f}(r.Component);t.default=S,S.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},S.propTypes={count:o.node,showZero:o.bool,dot:o.bool,overflowCount:o.number}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,f=Math.min,h=function(){return c.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(E,t),u?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-c>=i}function E(){var e=h();if(w(e))return C(e);s=setTimeout(E,function(e){var n=t-(e-l);return g?f(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function k(){var e=h(),n=w(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(g)return s=setTimeout(E,t),y(l)}return void 0===s&&(s=setTimeout(E,t)),a}return t=m(t)||0,p(n)&&(u=!!n.leading,i=(g="maxWait"in n)?d(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},k.flush=function(){return void 0===s?a:C(h())},k}}).call(this,n(113))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,f=Math.min,h=function(){return c.Date.now()};function p(e,t,n){var r,o,i,a,s,l,c=0,u=!1,p=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(E,t),u?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function E(){var e=h();if(w(e))return C(e);s=setTimeout(E,function(e){var n=t-(e-l);return p?f(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function k(){var e=h(),n=w(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(p)return s=setTimeout(E,t),y(l)}return void 0===s&&(s=setTimeout(E,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(p="maxWait"in n)?d(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},k.flush=function(){return void 0===s?a:C(h())},k}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),p(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,n(113))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(390),o=n(391);t.diff=o.default;var i=n(190);t.split=i.default,t.default=r.default},function(e,t,n){t.hot=function(e){return e}},,function(e,t,n){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var o=t&&t.prototype instanceof u?t:u,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function f(){}var h={};h[o]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(k([])));m&&m!==t&&n.call(m,o)&&(h=m);var g=f.prototype=u.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,a){var s=l(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){},function(e,t,n){"use strict";n(37),n(213)},function(e,t,n){},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(1)),o=m(n(0)),i=h(n(16)),a=h(n(70)),s=h(n(20)),l=n(44),c=n(123),u=h(n(217)),d=h(n(218)),f=n(124);function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,r=this.props,i=r.showInfo,a=r.format,l=r.type,c=r.percent,u=r.successPercent;if(!i)return null;var d="circle"===l||"dashboard"===l?"":"-circle";return a||"exception"!==t&&"success"!==t?n=(a||function(e){return"".concat(e,"%")})((0,f.validProgress)(c),(0,f.validProgress)(u)):"exception"===t?n=o.createElement(s.default,{type:"close".concat(d),theme:"line"===l?"filled":"outlined"}):"success"===t&&(n=o.createElement(s.default,{type:"check".concat(d),theme:"line"===l?"filled":"outlined"})),o.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return o.createElement(l.ConfigConsumer,null,this.renderProgress)}}])&&w(n.prototype,r),c&&w(n,c),p}(o.Component);t.default=A,A.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:"#f3f3f3",size:"default",gapDegree:0,strokeLinecap:"round"},A.propTypes={status:r.oneOf(_),type:r.oneOf(P),showInfo:r.bool,percent:r.number,width:r.number,strokeWidth:r.number,strokeLinecap:r.oneOf(["round","square"]),strokeColor:r.oneOfType([r.string,r.object]),trailColor:r.string,format:r.func,gapDegree:r.number}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.handleGradient=t.sortGradient=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(124);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.default)(b(b({fieldNameProp:"id"},e),{fieldMetaProp:h.FIELD_META_PROP,fieldDataProp:h.FIELD_DATA_PROP}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(23)),o=u(n(28)),i=u(n(136)),a=u(n(229)),s=u(n(152)),l=n(269),c=n(127);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=window.getComputedStyle,r=n?n(e):e.currentStyle;if(r)return r[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}var f={getForm:function(){return(0,r.default)({},l.mixin.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){var s=this,l=(0,c.getParams)(e,t,n),u=l.names,f=l.callback,h=l.options;return this.validateFields(u,h,(function(e,t){if(e){var n=s.fieldsStore.getValidFieldsName(),l=void 0,c=void 0;if(n.forEach((function(t){if((0,a.default)(e,t)){var n=s.getFieldInstance(t);if(n){var r=o.default.findDOMNode(n),i=r.getBoundingClientRect().top;"hidden"!==r.type&&(void 0===c||c>i)&&(c=i,l=r)}}})),l){var u=h.container||function(e){for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var r=d(t,"overflowY");if(t!==e&&("auto"===r||"scroll"===r)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(l);(0,i.default)(l,u,(0,r.default)({onlyScrollIfNeeded:!0},h.scroll))}}"function"==typeof f&&f(e,t)}))}};t.default=function(e){return(0,s.default)((0,r.default)({},e),[f])},e.exports=t.default},function(e,t,n){var r=n(230),o=n(231);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(149),o=n(232),i=n(233),a=n(150),s=n(234),l=n(151);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},s=e,l=n,d=r;if("function"==typeof l&&(d=l,l={}),!this.rules||0===Object.keys(this.rules).length)return d&&d(),Promise.resolve();function f(e){var t,n,r=void 0,o=[],i={};for(r=0;r0&&void 0!==arguments[0]?arguments[0]:[],c=i;if(Array.isArray(c)||(c=[c]),!l.suppressWarning&&c.length&&u.warning("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map((0,a.complementError)(n)),l.first&&c.length)return y[n.field]=1,t(c);if(r){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map((0,a.complementError)(n)):l.error?[l.error(n,(0,a.format)(l.messages.required,n.field))]:[],t(c);var d={};if(n.defaultField)for(var f in e.value)e.value.hasOwnProperty(f)&&(d[f]=n.defaultField);for(var h in d=o({},d,e.rule.fields))if(d.hasOwnProperty(h)){var p=Array.isArray(d[h])?d[h]:[d[h]];d[h]=p.map(s.bind(null,h))}var m=new u(d);m.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),m.validate(e.value,e.rule.options||l,(function(e){var n=[];c&&c.length&&n.push.apply(n,c),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(c)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var d=void 0;n.asyncValidator?d=n.asyncValidator(n,e.value,c,e.source,l):n.validator&&(!0===(d=n.validator(n,e.value,c,e.source,l))?c():!1===d?c(n.message||n.field+" fails"):d instanceof Array?c(d):d instanceof Error&&c(d.message)),d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){f(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!l.default.hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?l.default.required:l.default[this.getType(e)]||!1}},u.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");l.default[e]=t},u.warning=a.warning,u.messages=c.messages,t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(242)),o=v(n(248)),i=v(n(249)),a=v(n(250)),s=v(n(251)),l=v(n(252)),c=v(n(253)),u=v(n(254)),d=v(n(255)),f=v(n(256)),h=v(n(257)),p=v(n(258)),m=v(n(259)),g=v(n(260));function v(e){return e&&e.__esModule?e:{default:e}}t.default={string:r.default,method:o.default,number:i.default,boolean:a.default,regexp:s.default,integer:l.default,float:c.default,array:u.default,object:d.default,enum:f.default,pattern:h.default,date:p.default,url:g.default,hex:g.default,email:g.default,required:m.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,s,o,"string"),(0,a.isEmptyValue)(t,"string")||(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o),i.default.pattern(e,t,r,s,o),!0===e.whitespace&&i.default.whitespace(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){(/^\s+$/.test(t)||""===t)&&o.push(r.format(i.messages.whitespace,e.fullField))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51)),a=n(154),s=(r=a)&&r.__esModule?r:{default:r};var l={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},c={integer:function(e){return c.number(e)&&parseInt(e,10)===e},float:function(e){return c.number(e)&&!c.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!c.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(l.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(l.url)},hex:function(e){return"string"==typeof e&&!!e.match(l.hex)}};t.default=function(e,t,n,r,a){if(e.required&&void 0===t)(0,s.default)(e,t,n,r,a);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?c[l](t)||r.push(i.format(a.messages.types[l],e.fullField,e.type)):l&&(void 0===t?"undefined":o(t))!==e.type&&r.push(i.format(a.messages.types[l],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){var a="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,c=t,u=null,d="number"==typeof t,f="string"==typeof t,h=Array.isArray(t);if(d?u="number":f?u="string":h&&(u="array"),!u)return!1;h&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&o.push(r.format(i.messages[u].len,e.fullField,e.len)):s&&!l&&ce.max?o.push(r.format(i.messages[u].max,e.fullField,e.max)):s&&l&&(ce.max)&&o.push(r.format(i.messages[u].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(r.format(i.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(51));t.default=function(e,t,n,o,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&i.default.type(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(51),i=n(65),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();a.default.required(e,t,r,s,i),void 0!==t&&a.default.type(e,t,r,s,i)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),(0,a.isEmptyValue)(t)||i.default.type(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"array")&&!e.required)return n();i.default.required(e,t,r,s,o,"array"),(0,a.isEmptyValue)(t,"array")||(i.default.type(e,t,r,s,o),i.default.range(e,t,r,s,o))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),void 0!==t&&i.default.type(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,o),t&&i.default.enum(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,r,s,o),(0,a.isEmptyValue)(t,"string")||i.default.pattern(e,t,r,s,o)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t)&&!e.required)return n();if(i.default.required(e,t,r,s,o),!(0,a.isEmptyValue)(t)){var l=void 0;l="number"==typeof t?new Date(t):t,i.default.type(e,l,r,s,o),l&&i.default.range(e,l.getTime(),r,s,o)}}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(65),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,i){var s=[],l=Array.isArray(t)?"array":void 0===t?"undefined":o(t);a.default.required(e,t,r,s,i,l),n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65),i=(r=o)&&r.__esModule?r:{default:r},a=n(51);t.default=function(e,t,n,r,o){var s=e.type,l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,a.isEmptyValue)(t,s)&&!e.required)return n();i.default.required(e,t,r,l,o,s),(0,a.isEmptyValue)(t,s)||i.default.type(e,t,r,l,o)}n(l)}},function(e,t,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=r;t.messages=r()},function(e,t,n){e.exports=n(19)(396)},function(e,t,n){var r=n(264),o=n(149),i=n(150),a=n(265),s=n(151);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c=0}),"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,r=(0,o.default)({},this.fields,e),i={};Object.keys(n).forEach((function(e){i[e]=t.getValueFromFields(e,r)})),Object.keys(i).forEach((function(e){var n=i[e],a=t.getFieldMeta(e);if(a&&a.normalize){var s=a.normalize(n,t.getValueFromFields(e,t.fields),i);s!==n&&(r[e]=(0,o.default)({},r[e],{value:s}))}})),this.fields=r}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce((function(e,n){var r=t[n];return r&&"value"in r&&(e[n]={}),e}),{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach((function(t){var n=e.fields[t],r=e.fieldsMeta[t];n&&r&&(0,u.hasRules)(r.validate)&&(e.fields[t]=(0,o.default)({},n,{dirty:!0}))}))}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var r=this.getFieldMeta(e);return r&&r.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter((function(t){return!e.getFieldMeta(t).hidden})):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter((function(e){return t.some((function(t){return e===t||(0,u.startsWith)(e,t)&&[".","["].indexOf(e[t.length])>=0}))}))}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,o=e.valuePropName,i=this.getField(t),a="value"in i?i.value:e.initialValue;return n?n(a):(0,r.default)({},o,a)}},{key:"getField",value:function(e){return(0,o.default)({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter((function(t){return!e.fields[t]})).map((function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}})).reduce((function(e,t){return(0,s.default)(e,t.name,(0,c.default)(t))}),{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce((function(t,n){return(0,s.default)(t,n,(0,c.default)(e.fields[n]))}),this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce((function(e,n){return(0,s.default)(e,n,t(n))}),{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||1===n.length&&n[0]===e)return t(e);var r="["===n[0][e.length],o=r?e.length:e.length+1;return n.reduce((function(e,n){return(0,s.default)(e,n.slice(o),t(n))}),r?[]:{})}},{key:"isValidNestedFieldName",value:function(e){return this.getAllFieldsName().every((function(t){return!f(t,e)&&!f(e,t)}))}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),e}(),m=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),r=e.fieldsMeta;Object.keys(n).forEach((function(t){r[t]&&e.setFieldMeta(t,(0,o.default)({},e.getFieldMeta(t),{initialValue:n[t]}))}))},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce((function(t,r){return(0,s.default)(t,r,e.getValueFromFields(r,n))}),{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,(function(t){return e.getValueFromFields(t,n)}))},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,(function(t){return(0,u.getErrorStrs)(e.getFieldMember(t,"errors"))}))},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldValidating(t)}))},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldTouched(t)}))}};e.exports=t.default},function(e,t,n){e.exports=n(19)(313)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mixin=void 0;var r,o=n(152),i=(r=o)&&r.__esModule?r:{default:r};var a=t.mixin={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};t.default=function(e){return(0,i.default)(e,[a])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(0)),o=b(n(28)),i=b(n(1)),a=v(n(16)),s=v(n(134)),l=v(n(70)),c=v(n(271)),u=v(n(272)),d=v(n(20)),f=n(44),h=v(n(71)),p=n(123),m=n(157),g=v(n(158));function v(e){return e&&e.__esModule?e:{default:e}}function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function b(e){if(e&&e.__esModule)return e;if(null===e||"object"!==w(e)&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0));i++){var a=o[i];(!a.type||a.type!==y&&"FormItem"!==a.type.displayName)&&a.props&&(m.FIELD_META_PROP in a.props?n.push(a):a.props.children&&(n=n.concat(this.getControls(a.props.children,t))))}return n}},{key:"getOnlyControl",value:function(){var e=this.getControls(this.props.children,!1)[0];return void 0!==e?e:null}},{key:"getChildProp",value:function(e){var t=this.getOnlyControl();return t&&t.props&&t.props[e]}},{key:"getId",value:function(){return this.getChildProp("id")}},{key:"getMeta",value:function(){return this.getChildProp(m.FIELD_META_PROP)}},{key:"getField",value:function(){return this.getChildProp(m.FIELD_DATA_PROP)}},{key:"getValidateStatus",value:function(){if(!this.getOnlyControl())return"";var e=this.getField();if(e.validating)return"validating";if(e.errors)return"error";var t="value"in e?e.value:this.getMeta().initialValue;return null!=t&&""!==t?"success":""}},{key:"isRequired",value:function(){var e=this.props.required;return void 0!==e?e:!!this.getOnlyControl()&&((this.getMeta()||{}).validate||[]).filter((function(e){return!!e.rules})).some((function(e){return e.rules.some((function(e){return e.required}))}))}},{key:"renderHelp",value:function(e){var t=this.getHelpMessage(),n=t?r.createElement("div",{className:"".concat(e,"-explain"),key:"help"},t):null;return n&&(this.helpShow=!!n),r.createElement(s.default,{transitionName:"show-help",component:"",transitionAppear:!0,key:"help",onEnd:this.onHelpAnimEnd},n)}},{key:"renderExtra",value:function(e){var t=this.props.extra;return t?r.createElement("div",{className:"".concat(e,"-extra")},t):null}},{key:"renderValidateWrapper",value:function(e,t,n,o){var i=this.props,s=this.getOnlyControl,l=void 0===i.validateStatus&&s?this.getValidateStatus():i.validateStatus,c="".concat(e,"-item-control");l&&(c=(0,a.default)("".concat(e,"-item-control"),{"has-feedback":i.hasFeedback||"validating"===l,"has-success":"success"===l,"has-warning":"warning"===l,"has-error":"error"===l,"is-validating":"validating"===l}));var u="";switch(l){case"success":u="check-circle";break;case"warning":u="exclamation-circle";break;case"error":u="close-circle";break;case"validating":u="loading";break;default:u=""}var f=i.hasFeedback&&u?r.createElement("span",{className:"".concat(e,"-item-children-icon")},r.createElement(d.default,{type:u,theme:"loading"===u?"outlined":"filled"})):null;return(r.createElement("div",{className:c},r.createElement("span",{className:"".concat(e,"-item-children")},t,f),n,o))}},{key:"renderWrapper",value:function(e,t){var n=this;return(r.createElement(g.default.Consumer,{key:"wrapper"},(function(o){var i=o.wrapperCol,s=o.vertical,l=n.props.wrapperCol,c=("wrapperCol"in n.props?l:i)||{},d=(0,a.default)("".concat(e,"-item-control-wrapper"),c.className);return r.createElement(g.default.Provider,{value:{vertical:s}},r.createElement(u.default,E({},c,{className:d}),t))})))}},{key:"renderLabel",value:function(e){var t=this;return(r.createElement(g.default.Consumer,{key:"label"},(function(n){var o,i=n.vertical,s=n.labelAlign,l=n.labelCol,c=n.colon,d=t.props,f=d.label,h=d.labelCol,p=d.labelAlign,m=d.colon,g=d.id,v=d.htmlFor,y=t.isRequired(),b=("labelCol"in t.props?h:l)||{},w="labelAlign"in t.props?p:s,k="".concat(e,"-item-label"),O=(0,a.default)(k,"left"===w&&"".concat(k,"-left"),b.className),S=f,x=!0===m||!1!==c&&!1!==m;x&&!i&&"string"==typeof f&&""!==f.trim()&&(S=f.replace(/[::]\s*$/,""));var P=(0,a.default)((C(o={},"".concat(e,"-item-required"),y),C(o,"".concat(e,"-item-no-colon"),!x),o));return f?r.createElement(u.default,E({},b,{className:O}),r.createElement("label",{htmlFor:v||g||t.getId(),className:P,title:"string"==typeof f?f:"",onClick:t.onLabelClick},S)):null})))}},{key:"renderChildren",value:function(e){var t=this.props.children;return[this.renderLabel(e),this.renderWrapper(e,this.renderValidateWrapper(e,t,this.renderHelp(e),this.renderExtra(e)))]}},{key:"render",value:function(){return r.createElement(f.ConfigConsumer,null,this.renderFormItem)}}])&&O(n.prototype,i),p&&O(n,p),y}(r.Component);t.default=j,j.defaultProps={hasFeedback:!1},j.propTypes={prefixCls:i.string,label:i.oneOfType([i.string,i.node]),labelCol:i.object,help:i.oneOfType([i.node,i.bool]),validateStatus:i.oneOf(D),hasFeedback:i.bool,wrapperCol:i.object,className:i.string,id:i.string,children:i.node,colon:i.bool}},function(e,t,n){e.exports=n(19)(1324)},function(e,t,n){e.exports=n(19)(1330)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(16))&&o.__esModule?o:{default:o},s=n(44);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t=0),e),g),x=c(c({},this.props),{children:null,inkBarAnimated:b,extraContent:h,style:s,prevIcon:k,nextIcon:O,className:S});return t=f?f(x,o.default):r.createElement(o.default,x),r.cloneElement(t)}}])&&h(n.prototype,s),l&&h(n,l),b}(r.Component);t.default=y,y.defaultProps={animated:!0,type:"line"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(23)),o=g(n(58)),i=g(n(21)),a=g(n(45)),s=g(n(18)),l=g(n(22)),c=g(n(0)),u=g(n(1)),d=g(n(278)),f=g(n(279)),h=g(n(280)),p=g(n(281)),m=g(n(282));function g(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,a.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(0,o.default)(e,["children"]);return c.default.createElement(m.default,null,(function(e,o){return c.default.createElement(h.default,(0,r.default)({saveRef:e},n),c.default.createElement(p.default,(0,r.default)({saveRef:e,getRef:o},n),c.default.createElement(f.default,(0,r.default)({saveRef:e,renderTabBarNode:t},n)),c.default.createElement(d.default,(0,r.default)({saveRef:e,getRef:o},n))))}))}}]),t}(c.default.Component);t.default=v,v.propTypes={children:u.default.func},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(39)),o=f(n(21)),i=f(n(45)),a=f(n(18)),s=f(n(22)),l=f(n(0)),c=f(n(1)),u=f(n(16)),d=n(102);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=e.props,r=n.styles,o=n.panels,i=n.activeKey,a=n.direction,s=e.props.getRef("root"),l=e.props.getRef("nav")||s,c=e.props.getRef("inkBar"),u=e.props.getRef("activeTab"),f=c.style,h=e.props.tabBarPosition,p=(0,d.getActiveIndex)(o,i);if(t&&(f.display="none"),u){var m=u,g=(0,d.isTransform3dSupported)(f);if((0,d.setTransform)(f,""),f.width="",f.height="",f.left="",f.top="",f.bottom="",f.right="","top"===h||"bottom"===h){var v=(0,d.getLeft)(m,l),y=m.offsetWidth;y===s.offsetWidth?y=0:r.inkBar&&void 0!==r.inkBar.width&&(y=parseFloat(r.inkBar.width,10))&&(v+=(m.offsetWidth-y)/2),"rtl"===a&&(v=(0,d.getStyle)(m,"margin-left")-v),g?(0,d.setTransform)(f,"translate3d("+v+"px,0,0)"):f.left=v+"px",f.width=y+"px"}else{var b=(0,d.getTop)(m,l,!0),w=m.offsetHeight;r.inkBar&&void 0!==r.inkBar.height&&(w=parseFloat(r.inkBar.height,10))&&(b+=(m.offsetHeight-w)/2),g?((0,d.setTransform)(f,"translate3d(0,"+b+"px,0)"),f.top="0"):f.top=b+"px",f.height=w+"px"}}f.display=-1!==p?"block":"none"}var p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.timeout=setTimeout((function(){h(e,!0)}),0)}},{key:"componentDidUpdate",value:function(){h(this)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,o=t.styles,i=t.inkBarAnimated,a=n+"-ink-bar",s=(0,u.default)((e={},(0,r.default)(e,a,!0),(0,r.default)(e,i?a+"-animated":a+"-no-animated",!0),e));return l.default.createElement("div",{style:o.inkBar,className:s,key:"inkBar",ref:this.props.saveRef("inkBar")})}}]),t}(l.default.Component);t.default=p,p.propTypes={prefixCls:c.default.string,styles:c.default.object,inkBarAnimated:c.default.bool,saveRef:c.default.func,direction:c.default.string},p.defaultProps={prefixCls:"",inkBarAnimated:!0,styles:{},saveRef:function(){}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(23)),o=h(n(39)),i=h(n(21)),a=h(n(45)),s=h(n(18)),l=h(n(22)),c=h(n(0)),u=h(n(66)),d=h(n(1)),f=n(102);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,a.default)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.panels,i=t.activeKey,a=t.prefixCls,s=t.tabBarGutter,l=t.saveRef,d=t.tabBarPosition,h=t.renderTabBarNode,p=t.direction,m=[];return c.default.Children.forEach(n,(function(t,g){if(t){var v=t.key,y=i===v?a+"-tab-active":"";y+=" "+a+"-tab";var b={};t.props.disabled?y+=" "+a+"-tab-disabled":b={onClick:e.props.onTabClick.bind(e,v)};var w={};i===v&&(w.ref=l("activeTab"));var E=s&&g===n.length-1?0:s,C="rtl"===p?"marginLeft":"marginRight",k=(0,o.default)({},(0,f.isVertical)(d)?"marginBottom":C,E);(0,u.default)("tab"in t.props,"There must be `tab` property on children of Tabs.");var O=c.default.createElement("div",(0,r.default)({role:"tab","aria-disabled":t.props.disabled?"true":"false","aria-selected":i===v?"true":"false"},b,{className:y,key:v,style:k},w),t.props.tab);h&&(O=h(O)),m.push(O)}})),c.default.createElement("div",{ref:l("navTabsContainer")},m)}}]),t}(c.default.Component);t.default=p,p.propTypes={activeKey:d.default.string,panels:d.default.node,prefixCls:d.default.string,tabBarGutter:d.default.number,onTabClick:d.default.func,saveRef:d.default.func,renderTabBarNode:d.default.func,tabBarPosition:d.default.string,direction:d.default.string},p.defaultProps={panels:[],prefixCls:[],tabBarGutter:null,onTabClick:function(){},saveRef:function(){}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(23)),o=m(n(39)),i=m(n(58)),a=m(n(21)),s=m(n(45)),l=m(n(18)),c=m(n(22)),u=n(0),d=m(u),f=m(n(1)),h=m(n(16)),p=n(102);function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,a.default)(this,t),(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.onKeyDown,a=e.className,s=e.extraContent,l=e.style,c=e.tabBarPosition,f=e.children,m=(0,i.default)(e,["prefixCls","onKeyDown","className","extraContent","style","tabBarPosition","children"]),g=(0,h.default)(t+"-bar",(0,o.default)({},a,!!a)),v="top"===c||"bottom"===c,y=v?{float:"right"}:{},b=s&&s.props?s.props.style:{},w=f;return s&&(w=[(0,u.cloneElement)(s,{key:"extra",style:(0,r.default)({},y,b)}),(0,u.cloneElement)(f,{key:"content"})],w=v?w:w.reverse()),d.default.createElement("div",(0,r.default)({role:"tablist",className:g,tabIndex:"0",ref:this.props.saveRef("root"),onKeyDown:n,style:l},(0,p.getDataAttr)(m)),w)}}]),t}(d.default.Component);t.default=g,g.propTypes={prefixCls:f.default.string,className:f.default.string,style:f.default.object,tabBarPosition:f.default.oneOf(["left","right","top","bottom"]),children:f.default.node,extraContent:f.default.node,onKeyDown:f.default.func,saveRef:f.default.func},g.defaultProps={prefixCls:"",className:"",style:{},tabBarPosition:"top",extraContent:null,children:null,onKeyDown:function(){},saveRef:function(){}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(39)),o=p(n(21)),i=p(n(45)),a=p(n(18)),s=p(n(22)),l=p(n(0)),c=p(n(1)),u=p(n(16)),d=p(n(159)),f=p(n(137)),h=n(102);function p(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var n=(0,a.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.prevTransitionEnd=function(e){if("opacity"===e.propertyName){var t=n.props.getRef("container");n.scrollToActiveTab({target:t,currentTarget:t})}},n.scrollToActiveTab=function(e){var t=n.props.getRef("activeTab"),r=n.props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&t){var o=n.isNextPrevShown()&&n.lastNextPrevShown;if(n.lastNextPrevShown=n.isNextPrevShown(),o){var i=n.getScrollWH(t),a=n.getOffsetWH(r),s=n.offset,l=n.getOffsetLT(r),c=n.getOffsetLT(t);l>c?(s+=l-c,n.setOffset(s)):l+a=0)l=!1,this.setOffset(0,!1),i=0;else if(a1&&void 0!==arguments[1])||arguments[1],n=Math.min(0,e);if(this.offset!==n){this.offset=n;var r={},o=this.props.tabBarPosition,i=this.props.getRef("nav").style,a=(0,h.isTransform3dSupported)(i);"left"===o||"right"===o?r=a?{value:"translate3d(0,"+n+"px,0)"}:{name:"top",value:n+"px"}:a?("rtl"===this.props.direction&&(n=-n),r={value:"translate3d("+n+"px,0,0)"}):r={name:"left",value:n+"px"},a?(0,h.setTransform)(i,r.value):i[r.name]=r.value,t&&this.setNextPrev()}}},{key:"setPrev",value:function(e){this.state.prev!==e&&this.setState({prev:e})}},{key:"setNext",value:function(e){this.state.next!==e&&this.setState({next:e})}},{key:"isNextPrevShown",value:function(e){return e?e.next||e.prev:this.state.next||this.state.prev}},{key:"render",value:function(){var e,t,n,o,i=this.state,a=i.next,s=i.prev,c=this.props,d=c.prefixCls,f=c.scrollAnimated,h=c.navWrapper,p=c.prevIcon,m=c.nextIcon,g=s||a,v=l.default.createElement("span",{onClick:s?this.prev:null,unselectable:"unselectable",className:(0,u.default)((e={},(0,r.default)(e,d+"-tab-prev",1),(0,r.default)(e,d+"-tab-btn-disabled",!s),(0,r.default)(e,d+"-tab-arrow-show",g),e)),onTransitionEnd:this.prevTransitionEnd},p||l.default.createElement("span",{className:d+"-tab-prev-icon"})),y=l.default.createElement("span",{onClick:a?this.next:null,unselectable:"unselectable",className:(0,u.default)((t={},(0,r.default)(t,d+"-tab-next",1),(0,r.default)(t,d+"-tab-btn-disabled",!a),(0,r.default)(t,d+"-tab-arrow-show",g),t))},m||l.default.createElement("span",{className:d+"-tab-next-icon"})),b=d+"-nav",w=(0,u.default)((n={},(0,r.default)(n,b,!0),(0,r.default)(n,f?b+"-animated":b+"-no-animated",!0),n));return l.default.createElement("div",{className:(0,u.default)((o={},(0,r.default)(o,d+"-nav-container",1),(0,r.default)(o,d+"-nav-container-scrolling",g),o)),key:"container",ref:this.props.saveRef("container")},v,y,l.default.createElement("div",{className:d+"-nav-wrap",ref:this.props.saveRef("navWrap")},l.default.createElement("div",{className:d+"-nav-scroll"},l.default.createElement("div",{className:w,ref:this.props.saveRef("nav")},h(this.props.children)))))}}]),t}(l.default.Component);t.default=m,m.propTypes={activeKey:c.default.string,getRef:c.default.func.isRequired,saveRef:c.default.func.isRequired,tabBarPosition:c.default.oneOf(["left","right","top","bottom"]),prefixCls:c.default.string,scrollAnimated:c.default.bool,onPrevClick:c.default.func,onNextClick:c.default.func,navWrapper:c.default.func,children:c.default.node,prevIcon:c.default.node,nextIcon:c.default.node,direction:c.default.node},m.defaultProps={tabBarPosition:"left",prefixCls:"",scrollAnimated:!0,onPrevClick:function(){},onNextClick:function(){},navWrapper:function(e){return e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(21)),o=c(n(45)),i=c(n(18)),a=c(n(22)),s=c(n(0)),l=c(n(1));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){var e,n,o,a;(0,r.default)(this,t);for(var s=arguments.length,l=Array(s),c=0;c=0||(o[n]=e[n]);return o}},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(289)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(30);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return i[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(324),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(166),o=n(326),i={};Object.keys(r).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var r=t[n];i[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},function(e,t,n){var r=n(166);function o(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,o=0;ou,n),o=void 0;return o=t.yearu?e.nextDecade:d.bind(e,t.year),a.default.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:o,className:(0,l.default)(r)},a.default.createElement("a",{className:f+"-year"},t.content))}));return a.default.createElement("tr",{key:n,role:"row"},r)})),p=o&&o("year");return a.default.createElement("div",{className:this.prefixCls},a.default.createElement("div",null,a.default.createElement("div",{className:f+"-header"},a.default.createElement("a",{className:f+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade}),a.default.createElement("a",{className:f+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:r.decadeSelect},a.default.createElement("span",{className:f+"-decade-select-content"},c,"-",u),a.default.createElement("span",{className:f+"-decade-select-arrow"},"x")),a.default.createElement("a",{className:f+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade})),a.default.createElement("div",{className:f+"-body"},a.default.createElement("table",{className:f+"-table",cellSpacing:"0",role:"grid"},a.default.createElement("tbody",{className:f+"-tbody"},h))),p&&a.default.createElement("div",{className:f+"-footer"},p)))},t}(a.default.Component);t.default=f,f.propTypes={rootPrefixCls:s.default.string,value:s.default.object,defaultValue:s.default.object,renderFooter:s.default.func},f.defaultProps={onSelect:function(){}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(21)),o=c(n(18)),i=c(n(22)),a=c(n(0)),s=c(n(1)),l=c(n(16));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}function d(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}var f=function(e){function t(n){(0,r.default)(this,t);var i=(0,o.default)(this,e.call(this,n));return i.state={value:n.value||n.defaultValue},i.prefixCls=n.rootPrefixCls+"-decade-panel",i.nextCentury=u.bind(i,100),i.previousCentury=u.bind(i,-100),i}return(0,i.default)(t,e),t.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,r=n.locale,o=n.renderFooter,i=t.year(),s=100*parseInt(i/100,10),c=s-10,u=s+99,f=[],h=0,p=this.prefixCls,m=0;m<4;m++){f[m]=[];for(var g=0;g<3;g++){var v=c+10*h,y=c+10*h+9;f[m][g]={startDecade:v,endDecade:y},h++}}var b=o&&o("decade"),w=f.map((function(t,n){var r=t.map((function(t){var n,r=t.startDecade,o=t.endDecade,c=ru,h=((n={})[p+"-cell"]=1,n[p+"-selected-cell"]=r<=i&&i<=o,n[p+"-last-century-cell"]=c,n[p+"-next-century-cell"]=f,n),m=r+"-"+o,g=void 0;return g=c?e.previousCentury:f?e.nextCentury:d.bind(e,r),a.default.createElement("td",{key:r,onClick:g,role:"gridcell",className:(0,l.default)(h)},a.default.createElement("a",{className:p+"-decade"},m))}));return a.default.createElement("tr",{key:n,role:"row"},r)}));return a.default.createElement("div",{className:this.prefixCls},a.default.createElement("div",{className:p+"-header"},a.default.createElement("a",{className:p+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:r.previousCentury}),a.default.createElement("div",{className:p+"-century"},s,"-",u),a.default.createElement("a",{className:p+"-next-century-btn",role:"button",onClick:this.nextCentury,title:r.nextCentury})),a.default.createElement("div",{className:p+"-body"},a.default.createElement("table",{className:p+"-table",cellSpacing:"0",role:"grid"},a.default.createElement("tbody",{className:p+"-tbody"},w))),b&&a.default.createElement("div",{className:p+"-footer"},b))},t}(a.default.Component);t.default=f,f.propTypes={locale:s.default.object,value:s.default.object,defaultValue:s.default.object,rootPrefixCls:s.default.string,renderFooter:s.default.func},f.defaultProps={onSelect:function(){}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=m(n(23)),o=m(n(21)),i=m(n(18)),a=m(n(22)),s=m(n(0)),l=m(n(28)),c=m(n(1)),u=m(n(172)),d=m(n(16)),f=m(n(173)),h=m(n(174)),p=m(n(175));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,a.default)(t,e),t.prototype.onSelect=function(e){this.props.onSelect(e)},t.prototype.getRootDOMNode=function(){return l.default.findDOMNode(this)},t.prototype.render=function(){var e=this.props,t=e.value,n=e.prefixCls,o=e.showOk,i=e.timePicker,a=e.renderFooter,l=e.mode,c=null,m=a&&a(l);if(e.showToday||i||m){var g,v=void 0;e.showToday&&(v=s.default.createElement(f.default,(0,r.default)({},e,{value:t})));var y=void 0;(!0===o||!1!==o&&e.timePicker)&&(y=s.default.createElement(h.default,e));var b=void 0;e.timePicker&&(b=s.default.createElement(p.default,e));var w=void 0;(v||b||y||m)&&(w=s.default.createElement("span",{className:n+"-footer-btn"},m,(0,u.default)([v,b,y])));var E=(0,d.default)(n+"-footer",((g={})[n+"-footer-show-ok"]=y,g));c=s.default.createElement("div",{className:E},w)}return c},t}(s.default.Component);g.propTypes={prefixCls:c.default.string,showDateInput:c.default.bool,disabledTime:c.default.any,timePicker:c.default.element,selectedValue:c.default.any,showOk:c.default.bool,onSelect:c.default.func,value:c.default.object,renderFooter:c.default.func,defaultValue:c.default.object,mode:c.default.string},t.default=g,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.calendarMixinWrapper=t.calendarMixinDefaultProps=t.calendarMixinPropTypes=void 0;var r=d(n(21)),o=d(n(18)),i=d(n(22));t.getNowByCurrentStateValue=f;var a=d(n(0)),s=d(n(1)),l=d(n(16)),c=d(n(9)),u=n(90);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return e?(0,u.getTodayTime)(e):(0,c.default)()}t.calendarMixinPropTypes={value:s.default.object,defaultValue:s.default.object,onKeyDown:s.default.func},t.calendarMixinDefaultProps={onKeyDown:function(){}},t.calendarMixinWrapper=function(e){var t,n;return n=t=function(t){function n(){var e,i,s;(0,r.default)(this,n);for(var c=arguments.length,d=Array(c),f=0;f0?n:null}}]),g}(r.Component);return t.defaultProps={allowClear:!0,showToday:!0},(0,i.polyfill)(t),t};var r=y(n(0)),o=y(n(9)),i=n(30),a=g(n(170)),s=g(n(131)),l=g(n(16)),c=g(n(70)),u=g(n(20)),d=n(44),f=g(n(71)),h=g(n(105)),p=g(n(178)),m=n(179);function g(e){return e&&e.__esModule?e:{default:e}}function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){if(e&&e.__esModule)return e;if(null===e||"object"!==b(e)&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t=0||v&&v.indexOf(p.minute())>=0||y&&y.indexOf(p.second())>=0)return void n.setState({invalid:!0});if(h){if(h.hour()!==p.hour()||h.minute()!==p.minute()||h.second()!==p.second()){var b=h.clone();b.hour(p.hour()),b.minute(p.minute()),b.second(p.second()),f(b)}}else h!==p&&f(p)}else f(null);n.setState({invalid:!1})})),h(d(n),"onKeyDown",(function(e){var t=n.props,r=t.onEsc,o=t.onKeyDown;27===e.keyCode&&r(),o(e)}));var r=e.value,o=e.format;return n.state={str:r&&r.format(o)||"",invalid:!1},n}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this;this.props.focusOnOpen&&(window.requestAnimationFrame||window.setTimeout)((function(){e.refInput.focus(),e.refInput.select()}))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.format;n!==e.value&&this.setState({str:n&&n.format(r)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var e=this.props,t=e.value,n=e.defaultOpenValue;return t||n}},{key:"getInput",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.placeholder,i=t.inputReadOnly,s=this.state,l=s.invalid,c=s.str,u=l?"".concat(n,"-input-invalid"):"";return r.default.createElement("input",{className:(0,a.default)("".concat(n,"-input"),u),ref:function(t){e.refInput=t},onKeyDown:this.onKeyDown,value:c,placeholder:o,onChange:this.onInputChange,readOnly:!!i})}},{key:"render",value:function(){var e=this.props.prefixCls;return r.default.createElement("div",{className:"".concat(e,"-input-wrap")},this.getInput())}}])&&c(n.prototype,o),s&&c(n,s),t}(r.Component);h(p,"propTypes",{format:o.default.string,prefixCls:o.default.string,disabledDate:o.default.func,placeholder:o.default.string,clearText:o.default.string,value:o.default.object,inputReadOnly:o.default.bool,hourOptions:o.default.array,minuteOptions:o.default.array,secondOptions:o.default.array,disabledHours:o.default.func,disabledMinutes:o.default.func,disabledSeconds:o.default.func,onChange:o.default.func,onEsc:o.default.func,defaultOpenValue:o.default.object,currentSelectPanel:o.default.string,focusOnOpen:o.default.bool,onKeyDown:o.default.func,clearIcon:o.default.node}),h(p,"defaultProps",{inputReadOnly:!1});var m=p;t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=a(n(1)),i=a(n(348));function a(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n=0&&(r=!0),{value:n,disabled:r}},g=function(e){function t(){var e,n;l(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=12&&u.hour(u.hour()-12)),c(d)}else u.second(+t);o(u)})),p(f(n),"onEnterSelectPanel",(function(e){(0,n.props.onCurrentSelectPanelChange)(e)})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"getHourSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,a=n.hourOptions,s=n.disabledHours,l=n.showHour,c=n.use12Hours,u=n.onEsc;if(!l)return null;var d,f,h=s();return c?(d=[12].concat(a.filter((function(e){return e<12&&e>0}))),f=e%12||12):(d=a,f=e),r.default.createElement(i.default,{prefixCls:o,options:d.map((function(e){return m(e,h)})),selectedIndex:d.indexOf(f),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("hour")},onEsc:u})}},{key:"getMinuteSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,a=n.minuteOptions,s=n.disabledMinutes,l=n.defaultOpenValue,c=n.showMinute,u=n.value,d=n.onEsc;if(!c)return null;var f=s((u||l).hour());return r.default.createElement(i.default,{prefixCls:o,options:a.map((function(e){return m(e,f)})),selectedIndex:a.indexOf(e),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("minute")},onEsc:d})}},{key:"getSecondSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,a=n.secondOptions,s=n.disabledSeconds,l=n.showSecond,c=n.defaultOpenValue,u=n.value,d=n.onEsc;if(!l)return null;var f=u||c,h=s(f.hour(),f.minute());return r.default.createElement(i.default,{prefixCls:o,options:a.map((function(e){return m(e,h)})),selectedIndex:a.indexOf(e),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("second")},onEsc:d})}},{key:"getAMPMSelect",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.use12Hours,a=t.format,s=t.isAM,l=t.onEsc;if(!o)return null;var c=["am","pm"].map((function(e){return a.match(/\sA/)?e.toUpperCase():e})).map((function(e){return{value:e}})),u=s?0:1;return r.default.createElement(i.default,{prefixCls:n,options:c,selectedIndex:u,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return e.onEnterSelectPanel("ampm")},onEsc:l})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.defaultOpenValue,o=e.value||n;return r.default.createElement("div",{className:"".concat(t,"-combobox")},this.getHourSelect(o.hour()),this.getMinuteSelect(o.minute()),this.getSecondSelect(o.second()),this.getAMPMSelect(o.hour()))}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);p(g,"propTypes",{format:o.default.string,defaultOpenValue:o.default.object,prefixCls:o.default.string,value:o.default.object,onChange:o.default.func,onAmPmChange:o.default.func,showHour:o.default.bool,showMinute:o.default.bool,showSecond:o.default.bool,hourOptions:o.default.array,minuteOptions:o.default.array,secondOptions:o.default.array,disabledHours:o.default.func,disabledMinutes:o.default.func,disabledSeconds:o.default.func,onCurrentSelectPanelChange:o.default.func,use12Hours:o.default.bool,onEsc:o.default.func,isAM:o.default.bool});var v=g;t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=l(n(1)),i=l(n(28)),a=l(n(16)),s=l(n(61));function l(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n0?function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(e[1]=void 0);var r=A(e,2),o=r[0],i=r[1];"function"==typeof n.onChange&&n.onChange(e,[(0,m.formatDate)(o,n.format),(0,m.formatDate)(i,n.format)])},t.handleOpenChange=function(e){"open"in t.props||t.setState({open:e}),!1===e&&t.clearHoverValue();var n=t.props.onOpenChange;n&&n(e)},t.handleShowDateChange=function(e){return t.setState({showDate:e})},t.handleHoverChange=function(e){return t.setState({hoverValue:e})},t.handleRangeMouseLeave=function(){t.state.open&&t.clearHoverValue()},t.handleCalendarInputSelect=function(e){A(e,1)[0]&&t.setState((function(t){var n=t.showDate;return{value:e,showDate:M(e)||n}}))},t.handleRangeClick=function(e){"function"==typeof e&&(e=e()),t.setValue(e,!0);var n=t.props,r=n.onOk,o=n.onOpenChange;r&&r(e),o&&o(!1)},t.renderFooter=function(){var e=t.props,n=e.ranges,o=e.renderExtraFooter,i=x(t),a=i.prefixCls,s=i.tagPrefixCls;if(!n&&!o)return null;var l=o?r.createElement("div",{className:"".concat(a,"-footer-extra"),key:"extra"},o()):null,c=n&&Object.keys(n).map((function(e){var o=n[e],i="function"==typeof o?o.call(x(t)):o;return r.createElement(d.default,{key:e,prefixCls:s,color:"blue",onClick:function(){return t.handleRangeClick(o)},onMouseEnter:function(){return t.setState({hoverValue:i})},onMouseLeave:t.handleRangeMouseLeave},e)}));return[c&&c.length>0?r.createElement("div",{className:"".concat(a,"-footer-extra ").concat(a,"-range-quick-selector"),key:"range"},c):null,l]},t.renderRangePicker=function(e){var n,o=e.getPrefixCls,i=x(t),c=i.state,d=i.props,f=c.value,p=c.showDate,v=c.hoverValue,y=c.open,b=d.prefixCls,w=d.tagPrefixCls,k=d.popupStyle,O=d.style,S=d.disabledDate,P=d.disabledTime,_=d.showTime,T=d.showToday,M=d.ranges,N=d.onOk,j=d.locale,R=d.localeCode,L=d.format,$=d.dateRender,F=d.onCalendarChange,I=d.suffixIcon,V=d.separator,B=o("calendar",b),W=o("tag",w);t.prefixCls=B,t.tagPrefixCls=W,D(f,R),D(p,R),(0,h.default)(!("onOK"in d),"RangePicker","It should be `RangePicker[onOk]`, instead of `onOK`!");var H=(0,l.default)((C(n={},"".concat(B,"-time"),_),C(n,"".concat(B,"-range-with-ranges"),M),n)),z={onChange:t.handleChange},K={onOk:t.handleChange};d.timePicker?z.onChange=function(e){return t.handleChange(e)}:K={},"mode"in d&&(K.mode=d.mode);var U=Array.isArray(d.placeholder)?d.placeholder[0]:j.lang.rangePlaceholder[0],G=Array.isArray(d.placeholder)?d.placeholder[1]:j.lang.rangePlaceholder[1],q=r.createElement(a.default,E({},K,{seperator:V,onChange:F,format:L,prefixCls:B,className:H,renderFooter:t.renderFooter,timePicker:d.timePicker,disabledDate:S,disabledTime:P,dateInputPlaceholder:[U,G],locale:j.lang,onOk:N,dateRender:$,value:p,onValueChange:t.handleShowDateChange,hoverValue:v,onHoverChange:t.handleHoverChange,onPanelChange:d.onPanelChange,showToday:T,onInputSelect:t.handleCalendarInputSelect})),Y={};d.showTime&&(Y.width=O&&O.width||350);var J=A(f,2),X=J[0],Z=J[1],Q=!d.disabled&&d.allowClear&&f&&(X||Z)?r.createElement(u.default,{type:"close-circle",className:"".concat(B,"-picker-clear"),onClick:t.clearSelection,theme:"filled"}):null,ee=r.createElement(g.default,{suffixIcon:I,prefixCls:B}),te=function(e){var t=A(e.value,2),n=t[0],o=t[1];return r.createElement("span",{className:d.pickerInputClass},r.createElement("input",{disabled:d.disabled,readOnly:!0,value:(0,m.formatDate)(n,d.format),placeholder:U,className:"".concat(B,"-range-picker-input"),tabIndex:-1}),r.createElement("span",{className:"".concat(B,"-range-picker-separator")}," ",V," "),r.createElement("input",{disabled:d.disabled,readOnly:!0,value:(0,m.formatDate)(o,d.format),placeholder:G,className:"".concat(B,"-range-picker-input"),tabIndex:-1}),Q,ee)};return r.createElement("span",{ref:t.savePicker,id:"number"==typeof d.id?d.id.toString():d.id,className:(0,l.default)(d.className,d.pickerClass),style:E(E({},O),Y),tabIndex:d.disabled?-1:0,onFocus:d.onFocus,onBlur:d.onBlur,onMouseEnter:d.onMouseEnter,onMouseLeave:d.onMouseLeave},r.createElement(s.default,E({},d,z,{calendar:q,value:f,open:y,onOpenChange:t.handleOpenChange,prefixCls:"".concat(B,"-picker-container"),style:k}),te))};var n=e.value||e.defaultValue||[],i=A(n,2),c=i[0],f=i[1];if(c&&!(0,p.default)(o).isMoment(c)||f&&!(0,p.default)(o).isMoment(f))throw new Error("The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, see: https://u.ant.design/date-picker-value");var v,w=n&&(v=n,!Array.isArray(v)||0!==v.length&&!v.every((function(e){return!e})))?n:e.defaultPickerValue;return t.state={value:n,showDate:N(w||(0,p.default)(o)()),open:e.open,hoverValue:[]},t}return n=b,v=[{key:"getDerivedStateFromProps",value:function(e,t){var n=null;if("value"in e){var r=e.value||[];n={value:r},(0,c.default)(e.value,t.value)||(n=E(E({},n),{showDate:M(r,e.mode)||t.showDate}))}return"open"in e&&t.open!==e.open&&(n=E(E({},n),{open:e.open})),n}}],(i=[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"setValue",value:function(e,t){this.handleChange(e),!t&&this.props.showTime||"open"in this.props||this.setState({open:!1})}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"render",value:function(){return r.createElement(f.ConfigConsumer,null,this.renderRangePicker)}}])&&k(n.prototype,i),v&&k(n,v),b}(r.Component);j.defaultProps={allowClear:!0,showToday:!1,separator:"~"},(0,i.polyfill)(j);var R=j;t.default=R},function(e,t,n){"use strict";t.__esModule=!0;var r=w(n(23)),o=w(n(21)),i=w(n(18)),a=w(n(22)),s=w(n(0)),l=w(n(1)),c=w(n(9)),u=w(n(16)),d=n(30),f=w(n(112)),h=w(n(355)),p=w(n(173)),m=w(n(174)),g=w(n(175)),v=n(176),y=n(90),b=n(360);function w(e){return e&&e.__esModule?e:{default:e}}function E(){}function C(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var n=0;n0&&(r[1-o]=this.state.showTimePicker?r[o]:void 0),this.props.onInputSelect(r),this.fireSelectValueChange(r,null,n||{source:"dateInput"})}}var P=function(e){function t(n){(0,o.default)(this,t);var r=(0,i.default)(this,e.call(this,n));_.call(r);var a=n.selectedValue||n.defaultSelectedValue,s=O(n,1);return r.state={selectedValue:a,prevSelectedValue:a,firstSelectedValue:null,hoverValue:n.hoverValue||[],value:s,showTimePicker:!1,mode:n.mode||["date","date"],panelTriggerSource:""},r}return(0,a.default)(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return"value"in e&&(n.value=O(e,0)),"hoverValue"in e&&!C(t.hoverValue,e.hoverValue)&&(n.hoverValue=e.hoverValue),"selectedValue"in e&&(n.selectedValue=e.selectedValue,n.prevSelectedValue=e.selectedValue),"mode"in e&&!C(t.mode,e.mode)&&(n.mode=e.mode),n},t.prototype.render=function(){var e,t,n=this.props,o=this.state,i=n.prefixCls,a=n.dateInputPlaceholder,l=n.seperator,c=n.timePicker,d=n.showOk,f=n.locale,v=n.showClear,b=n.showToday,w=n.type,E=n.clearIcon,C=o.hoverValue,k=o.selectedValue,O=o.mode,S=o.showTimePicker,x=((e={})[n.className]=!!n.className,e[i]=1,e[i+"-hidden"]=!n.visible,e[i+"-range"]=1,e[i+"-show-time-picker"]=S,e[i+"-week-number"]=n.showWeekNumber,e),P=(0,u.default)(x),_={selectedValue:o.selectedValue,onSelect:this.onSelect,onDayHover:"start"===w&&k[1]||"end"===w&&k[0]||C.length?this.onDayHover:void 0},A=void 0,T=void 0;a&&(Array.isArray(a)?(A=a[0],T=a[1]):A=T=a);var M=!0===d||!1!==d&&!!c,N=(0,u.default)(((t={})[i+"-footer"]=!0,t[i+"-range-bottom"]=!0,t[i+"-footer-show-ok"]=M,t)),D=this.getStartValue(),j=this.getEndValue(),R=(0,y.getTodayTime)(D),L=R.month(),$=R.year(),F=D.year()===$&&D.month()===L||j.year()===$&&j.month()===L,I=D.clone().add(1,"months"),V=I.year()===j.year()&&I.month()===j.month(),B=n.renderFooter();return s.default.createElement("div",{ref:this.saveRoot,className:P,style:n.style,tabIndex:"0",onKeyDown:this.onKeyDown},n.renderSidebar(),s.default.createElement("div",{className:i+"-panel"},v&&k[0]&&k[1]?s.default.createElement("a",{role:"button",title:f.clear,onClick:this.clear},E||s.default.createElement("span",{className:i+"-clear-btn"})):null,s.default.createElement("div",{className:i+"-date-panel",onMouseLeave:"both"!==w?this.onDatePanelLeave:void 0,onMouseEnter:"both"!==w?this.onDatePanelEnter:void 0},s.default.createElement(h.default,(0,r.default)({},n,_,{hoverValue:C,direction:"left",disabledTime:this.disabledStartTime,disabledMonth:this.disabledStartMonth,format:this.getFormat(),value:D,mode:O[0],placeholder:A,onInputChange:this.onStartInputChange,onInputSelect:this.onStartInputSelect,onValueChange:this.onStartValueChange,onPanelChange:this.onStartPanelChange,showDateInput:this.props.showDateInput,timePicker:c,showTimePicker:S||"time"===O[0],enablePrev:!0,enableNext:!V||this.isMonthYearPanelShow(O[1]),clearIcon:E})),s.default.createElement("span",{className:i+"-range-middle"},l),s.default.createElement(h.default,(0,r.default)({},n,_,{hoverValue:C,direction:"right",format:this.getFormat(),timePickerDisabledTime:this.getEndDisableTime(),placeholder:T,value:j,mode:O[1],onInputChange:this.onEndInputChange,onInputSelect:this.onEndInputSelect,onValueChange:this.onEndValueChange,onPanelChange:this.onEndPanelChange,showDateInput:this.props.showDateInput,timePicker:c,showTimePicker:S||"time"===O[1],disabledTime:this.disabledEndTime,disabledMonth:this.disabledEndMonth,enablePrev:!V||this.isMonthYearPanelShow(O[0]),enableNext:!0,clearIcon:E}))),s.default.createElement("div",{className:N},b||n.timePicker||M||B?s.default.createElement("div",{className:i+"-footer-btn"},B,b?s.default.createElement(p.default,(0,r.default)({},n,{disabled:F,value:o.value[0],onToday:this.onToday,text:f.backToToday})):null,n.timePicker?s.default.createElement(g.default,(0,r.default)({},n,{showTimePicker:S||"time"===O[0]&&"time"===O[1],onOpenTimePicker:this.onOpenTimePicker,onCloseTimePicker:this.onCloseTimePicker,timePickerDisabled:!this.hasSelectedValue()||C.length})):null,M?s.default.createElement(m.default,(0,r.default)({},n,{onOk:this.onOk,okDisabled:!this.isAllowedDateAndTime(k)||!this.hasSelectedValue()||C.length})):null):null)))},t}(s.default.Component);P.propTypes=(0,r.default)({},v.propType,{prefixCls:l.default.string,dateInputPlaceholder:l.default.any,seperator:l.default.string,defaultValue:l.default.any,value:l.default.any,hoverValue:l.default.any,mode:l.default.arrayOf(l.default.oneOf(["time","date","month","year","decade"])),showDateInput:l.default.bool,timePicker:l.default.any,showOk:l.default.bool,showToday:l.default.bool,defaultSelectedValue:l.default.array,selectedValue:l.default.array,onOk:l.default.func,showClear:l.default.bool,locale:l.default.object,onChange:l.default.func,onSelect:l.default.func,onValueChange:l.default.func,onHoverChange:l.default.func,onPanelChange:l.default.func,format:l.default.oneOfType([l.default.string,l.default.arrayOf(l.default.string)]),onClear:l.default.func,type:l.default.any,disabledDate:l.default.func,disabledTime:l.default.func,clearIcon:l.default.node,onKeyDown:l.default.func}),P.defaultProps=(0,r.default)({},v.defaultProp,{type:"both",seperator:"~",defaultSelectedValue:[],onValueChange:E,onHoverChange:E,onPanelChange:E,disabledTime:E,onInputSelect:E,showToday:!0,showDateInput:!0});var _=function(){var e=this;this.onDatePanelEnter=function(){e.hasSelectedValue()&&e.fireHoverValueChange(e.state.selectedValue.concat())},this.onDatePanelLeave=function(){e.hasSelectedValue()&&e.fireHoverValueChange([])},this.onSelect=function(t){var n=e.props.type,r=e.state,o=r.selectedValue,i=r.prevSelectedValue,a=r.firstSelectedValue,s=void 0;if("both"===n)a?e.compare(a,t)<0?((0,y.syncTime)(i[1],t),s=[a,t]):((0,y.syncTime)(i[0],t),(0,y.syncTime)(i[1],a),s=[t,a]):((0,y.syncTime)(i[0],t),s=[t]);else if("start"===n){(0,y.syncTime)(i[0],t);var l=o[1];s=l&&e.compare(l,t)>0?[t,l]:[t]}else{var c=o[0];c&&e.compare(c,t)<=0?((0,y.syncTime)(i[1],t),s=[c,t]):((0,y.syncTime)(i[0],t),s=[t])}e.fireSelectValueChange(s)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,r=t.ctrlKey||t.metaKey,o=e.state,i=o.selectedValue,a=o.hoverValue,s=o.firstSelectedValue,l=o.value,u=e.props,d=u.onKeyDown,h=u.disabledDate,p=function(n){var r=void 0,o=void 0,u=void 0;if(s?1===a.length?(r=a[0].clone(),o=n(r),u=e.onDayHover(o)):(r=a[0].isSame(s,"day")?a[1]:a[0],o=n(r),u=e.onDayHover(o)):(r=a[0]||i[0]||l[0]||(0,c.default)(),u=[o=n(r)],e.fireHoverValueChange(u)),u.length>=2){if(u.some((function(e){return!(0,b.includesTime)(l,e,"month")}))){var d=u.slice().sort((function(e,t){return e.valueOf()-t.valueOf()}));d[0].isSame(d[1],"month")&&(d[1]=d[0].clone().add(1,"month")),e.fireValueChange(d)}}else if(1===u.length){var f=l.findIndex((function(e){return e.isSame(r,"month")}));if(-1===f&&(f=0),l.every((function(e){return!e.isSame(o,"month")}))){var h=l.slice();h[f]=o.clone(),e.fireValueChange(h)}}return t.preventDefault(),o};switch(n){case f.default.DOWN:return void p((function(e){return(0,b.goTime)(e,1,"weeks")}));case f.default.UP:return void p((function(e){return(0,b.goTime)(e,-1,"weeks")}));case f.default.LEFT:return void p(r?function(e){return(0,b.goTime)(e,-1,"years")}:function(e){return(0,b.goTime)(e,-1,"days")});case f.default.RIGHT:return void p(r?function(e){return(0,b.goTime)(e,1,"years")}:function(e){return(0,b.goTime)(e,1,"days")});case f.default.HOME:return void p((function(e){return(0,b.goStartMonth)(e)}));case f.default.END:return void p((function(e){return(0,b.goEndMonth)(e)}));case f.default.PAGE_DOWN:return void p((function(e){return(0,b.goTime)(e,1,"month")}));case f.default.PAGE_UP:return void p((function(e){return(0,b.goTime)(e,-1,"month")}));case f.default.ENTER:var m=void 0;return!(m=0===a.length?p((function(e){return e})):1===a.length?a[0]:a[0].isSame(s,"day")?a[1]:a[0])||h&&h(m)||e.onSelect(m),void t.preventDefault();default:d&&d(t)}}},this.onDayHover=function(t){var n=[],r=e.state,o=r.selectedValue,i=r.firstSelectedValue,a=e.props.type;if("start"===a&&o[1])n=e.compare(t,o[1])<0?[t,o[1]]:[t];else if("end"===a&&o[0])n=e.compare(t,o[0])>0?[o[0],t]:[];else{if(!i)return e.state.hoverValue.length&&e.setState({hoverValue:[]}),n;n=e.compare(t,i)<0?[t,i]:[i,t]}return e.fireHoverValueChange(n),n},this.onToday=function(){var t=(0,y.getTodayTime)(e.state.value[0]),n=t.clone().add(1,"months");e.setState({value:[t,n]})},this.onOpenTimePicker=function(){e.setState({showTimePicker:!0})},this.onCloseTimePicker=function(){e.setState({showTimePicker:!1})},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDateAndTime(t)&&e.props.onOk(e.state.selectedValue)},this.onStartInputChange=function(){for(var t=arguments.length,n=Array(t),r=0;r-1},this.hasSelectedValue=function(){var t=e.state.selectedValue;return!!t[1]&&!!t[0]},this.compare=function(t,n){return e.props.timePicker?t.diff(n):t.diff(n,"days")},this.fireSelectValueChange=function(t,n,r){var o=e.props.timePicker,i=e.state.prevSelectedValue;if(o&&o.props.defaultValue){var a=o.props.defaultValue;!i[0]&&t[0]&&(0,y.syncTime)(a[0],t[0]),!i[1]&&t[1]&&(0,y.syncTime)(a[1],t[1])}if("selectedValue"in e.props||e.setState({selectedValue:t}),!e.state.selectedValue[0]||!e.state.selectedValue[1]){var s=t[0]||(0,c.default)(),l=t[1]||s.clone().add(1,"months");e.setState({selectedValue:t,value:k([s,l])})}t[0]&&!t[1]&&(e.setState({firstSelectedValue:t[0]}),e.fireHoverValueChange(t.concat())),e.props.onChange(t),(n||t[0]&&t[1])&&(e.setState({prevSelectedValue:t,firstSelectedValue:null}),e.fireHoverValueChange([]),e.props.onSelect(t,r))},this.fireValueChange=function(t){var n=e.props;"value"in n||e.setState({value:t}),n.onValueChange(t)},this.fireHoverValueChange=function(t){var n=e.props;"hoverValue"in n||e.setState({hoverValue:t}),n.onHoverChange(t)},this.clear=function(){e.fireSelectValueChange([],!0),e.props.onClear()},this.disabledStartTime=function(t){return e.props.disabledTime(t,"start")},this.disabledEndTime=function(t){return e.props.disabledTime(t,"end")},this.disabledStartMonth=function(t){var n=e.state.value;return t.isAfter(n[1],"month")},this.disabledEndMonth=function(t){var n=e.state.value;return t.isBefore(n[0],"month")}};(0,d.polyfill)(P),t.default=(0,v.commonMixinWrapper)(P),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(23)),o=h(n(21)),i=h(n(18)),a=h(n(22)),s=h(n(0)),l=h(n(1)),c=h(n(171)),u=h(n(356)),d=h(n(359)),f=n(90);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,a.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.value,o=e.hoverValue,i=e.selectedValue,a=e.mode,l=e.direction,h=e.locale,p=e.format,m=e.placeholder,g=e.disabledDate,v=e.timePicker,y=e.disabledTime,b=e.timePickerDisabledTime,w=e.showTimePicker,E=e.onInputChange,C=e.onInputSelect,k=e.enablePrev,O=e.enableNext,S=e.clearIcon,x=e.showClear,P=e.inputMode,_=w&&v,A=_&&y?(0,f.getTimeConfig)(i,y):null,T=t+"-range",M={locale:h,value:n,prefixCls:t,showTimePicker:w},N="left"===l?0:1,D=_&&s.default.cloneElement(v,(0,r.default)({showHour:!0,showMinute:!0,showSecond:!0},v.props,A,b,{onChange:E,defaultOpenValue:n,value:i[N]})),j=e.showDateInput&&s.default.createElement(d.default,{format:p,locale:h,prefixCls:t,timePicker:v,disabledDate:g,placeholder:m,disabledTime:y,value:n,showClear:x||!1,selectedValue:i[N],onChange:E,onSelect:C,clearIcon:S,inputMode:P});return s.default.createElement("div",{className:T+"-part "+T+"-"+l},j,s.default.createElement("div",{style:{outline:"none"}},s.default.createElement(c.default,(0,r.default)({},M,{mode:a,enableNext:O,enablePrev:k,onValueChange:e.onValueChange,onPanelChange:e.onPanelChange,disabledMonth:e.disabledMonth})),w?s.default.createElement("div",{className:t+"-time-picker"},s.default.createElement("div",{className:t+"-time-picker-panel"},D)):null,s.default.createElement("div",{className:t+"-body"},s.default.createElement(u.default,(0,r.default)({},M,{hoverValue:o,selectedValue:i,dateRender:e.dateRender,onSelect:e.onSelect,onDayHover:e.onDayHover,disabledDate:g,showWeekNumber:e.showWeekNumber})))))},t}(s.default.Component);p.propTypes={prefixCls:l.default.string,value:l.default.any,hoverValue:l.default.any,selectedValue:l.default.any,direction:l.default.any,locale:l.default.any,showDateInput:l.default.bool,showTimePicker:l.default.bool,format:l.default.any,placeholder:l.default.any,disabledDate:l.default.any,timePicker:l.default.any,disabledTime:l.default.any,onInputChange:l.default.func,onInputSelect:l.default.func,timePickerDisabledTime:l.default.object,enableNext:l.default.any,enablePrev:l.default.any,clearIcon:l.default.node,dateRender:l.default.func,inputMode:l.default.string},t.default=p,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(21)),o=c(n(18)),i=c(n(22)),a=c(n(0)),s=c(n(357)),l=c(n(358));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls;return a.default.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},a.default.createElement(s.default,e),a.default.createElement(l.default,e))},t}(a.default.Component);t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(21)),o=c(n(18)),i=c(n(22)),a=c(n(0)),s=c(n(181)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value.localeData(),n=e.prefixCls,r=[],o=[],i=t.firstDayOfWeek(),c=void 0,u=(0,l.default)(),d=0;dt.year()?1:e.year()===t.year()&&e.month()>t.month()}var m=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,o=e.value,i=e.showWeekNumber,s=e.dateRender,d=e.disabledDate,m=e.hoverValue,g=void 0,v=void 0,y=void 0,b=[],w=(0,u.getTodayTime)(o),E=n+"-cell",C=n+"-week-number-cell",k=n+"-date",O=n+"-today",S=n+"-selected-day",x=n+"-selected-date",P=n+"-selected-start-date",_=n+"-selected-end-date",A=n+"-in-range-cell",T=n+"-last-month-cell",M=n+"-next-month-btn-day",N=n+"-disabled-cell",D=n+"-disabled-cell-first-of-row",j=n+"-disabled-cell-last-of-row",R=n+"-last-day-of-month",L=o.clone();L.date(1);var $=(L.day()+7-o.localeData().firstDayOfWeek())%7,F=L.clone();F.add(0-$,"days");var I=0;for(g=0;g0&&(q=b[I-1]);var Y=E,J=!1,X=!1;f(y,w)&&(Y+=" "+O,H=!0);var Z=h(y,o),Q=p(y,o);if(r&&Array.isArray(r)){var ee=m.length?m:r;if(!Z&&!Q){var te=ee[0],ne=ee[1];te&&f(y,te)&&(X=!0,K=!0,Y+=" "+P),(te||ne)&&(f(y,ne)?(X=!0,K=!0,Y+=" "+_):(null==te&&y.isBefore(ne,"day")||null==ne&&y.isAfter(te,"day")||y.isAfter(te,"day")&&y.isBefore(ne,"day"))&&(Y+=" "+A))}}else f(y,o)&&(X=!0,K=!0);f(y,r)&&(Y+=" "+x),Z&&(Y+=" "+T),Q&&(Y+=" "+M),y.clone().endOf("month").date()===y.date()&&(Y+=" "+R),d&&d(y,o)&&(J=!0,q&&d(q,o)||(Y+=" "+D),G&&d(G,o)||(Y+=" "+j)),X&&(Y+=" "+S),J&&(Y+=" "+N);var re=void 0;if(s)re=s(y,o);else{var oe=t?t(y,o):y.date();re=a.default.createElement("div",{key:(V=y,"rc-calendar-"+V.year()+"-"+V.month()+"-"+V.date()),className:k,"aria-selected":X,"aria-disabled":J},oe)}U.push(a.default.createElement("td",{key:I,onClick:J?void 0:e.onSelect.bind(null,y),onMouseEnter:J?void 0:e.onDayHover&&e.onDayHover.bind(null,y)||void 0,role:"gridcell",title:(0,u.getTitleString)(y),className:Y},re)),I++}B.push(a.default.createElement("tr",{key:g,role:"row",className:(0,l.default)((W={},W[n+"-current-week"]=H,W[n+"-active-week"]=K,W))},z,U))}return a.default.createElement("tbody",{className:n+"-tbody"},B)},t}(a.default.Component);m.propTypes={contentRender:s.default.func,dateRender:s.default.func,disabledDate:s.default.func,prefixCls:s.default.string,selectedValue:s.default.oneOfType([s.default.object,s.default.arrayOf(s.default.object)]),value:s.default.object,hoverValue:s.default.any,showWeekNumber:s.default.bool},m.defaultProps={hoverValue:[]},t.default=m,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(21)),o=h(n(18)),i=h(n(22)),a=h(n(0)),s=h(n(28)),l=h(n(1)),c=h(n(112)),u=n(30),d=h(n(9)),f=n(90);function h(e){return e&&e.__esModule?e:{default:e}}var p=void 0,m=void 0,g=void 0,v=function(e){function t(n){(0,r.default)(this,t);var i=(0,o.default)(this,e.call(this,n));y.call(i);var a=n.selectedValue;return i.state={str:(0,f.formatDate)(a,i.props.format),invalid:!1,hasFocus:!1},i}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(){!g||!this.state.hasFocus||this.state.invalid||0===p&&0===m||g.setSelectionRange(p,m)},t.getDerivedStateFromProps=function(e,t){var n={};g&&(p=g.selectionStart,m=g.selectionEnd);var r=e.selectedValue;return t.hasFocus||(n={str:(0,f.formatDate)(r,e.format),invalid:!1}),n},t.getInstance=function(){return g},t.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,o=e.locale,i=e.prefixCls,s=e.placeholder,l=e.clearIcon,c=e.inputMode,u=n?i+"-input-invalid":"";return a.default.createElement("div",{className:i+"-input-wrap"},a.default.createElement("div",{className:i+"-date-input-wrap"},a.default.createElement("input",{ref:this.saveDateInput,className:i+"-input "+u,value:r,disabled:e.disabled,placeholder:s,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:c})),e.showClear?a.default.createElement("a",{role:"button",title:o.clear,onClick:this.onClear},l||a.default.createElement("span",{className:i+"-clear-btn"})):null)},t}(a.default.Component);v.propTypes={prefixCls:l.default.string,timePicker:l.default.object,value:l.default.object,disabledTime:l.default.any,format:l.default.oneOfType([l.default.string,l.default.arrayOf(l.default.string)]),locale:l.default.object,disabledDate:l.default.func,onChange:l.default.func,onClear:l.default.func,placeholder:l.default.string,onSelect:l.default.func,selectedValue:l.default.object,clearIcon:l.default.node,inputMode:l.default.string};var y=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,r=e.props,o=r.disabledDate,i=r.format,a=r.onChange,s=r.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=(0,d.default)(n,i,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||o&&o(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState((function(e,t){return{hasFocus:!1,str:(0,f.formatDate)(t.value,t.format)}}))},this.onKeyDown=function(t){var n=t.keyCode,r=e.props,o=r.onSelect,i=r.value,a=r.disabledDate;n===c.default.ENTER&&o&&((!a||!a(i))&&o(i.clone()),t.preventDefault())},this.getRootDOMNode=function(){return s.default.findDOMNode(e)},this.focus=function(){g&&g.focus()},this.saveDateInput=function(e){g=e}};(0,u.polyfill)(v),t.default=v,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.goStartMonth=function(e){return e.clone().startOf("month")},t.goEndMonth=function(e){return e.clone().endOf("month")},t.goTime=function(e,t,n){return e.clone().add(t,n)},t.includesTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2];return e.some((function(e){return e.isSame(t,n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(0)),o=m(n(9)),i=n(30),a=h(n(115)),s=h(n(131)),l=h(n(16)),c=h(n(20)),u=n(44),d=h(n(105)),f=h(n(182));function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function m(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;ro?i>=a?10+e:20+e:i<=a?10+e:e}},{key:"renderCurrentNumber",value:function(e,t,n){if("number"==typeof t){var o=this.getPositionByNum(t,n),a=this.state.animateStarted||void 0===v(this.lastCount)[n];return r.createElement("span",{className:"".concat(e,"-only"),style:{transition:a?"none":void 0,msTransform:"translateY(".concat(100*-o,"%)"),WebkitTransform:"translateY(".concat(100*-o,"%)"),transform:"translateY(".concat(100*-o,"%)")},key:n},function(e,t){for(var n=[],o=0;o<30;o++)n.push(r.createElement("p",{key:o.toString(),className:(0,i.default)(t,{current:e===o})},o%10));return n}(o,"".concat(e,"-only-unit")))}return(r.createElement("span",{key:"symbol",className:"".concat(e,"-symbol")},t))}},{key:"renderNumberElement",value:function(e){var t=this,n=this.state.count;return n&&Number(n)%1==0?v(n).map((function(n,r){return t.renderCurrentNumber(e,n,r)})).reverse():n}},{key:"render",value:function(){return r.createElement(s.ConfigConsumer,null,this.renderScrollNumber)}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}))}],l=[{key:"getDerivedStateFromProps",value:function(e,t){return"count"in e?t.count===e.count?null:{animateStarted:!0}:null}}],a&&f(n.prototype,a),l&&f(n,l),u}(r.Component);y.defaultProps={count:null,onAnimated:function(){}},(0,a.polyfill)(y);var b=y;t.default=b},function(e,t,n){e.exports=n(19)(1342)},function(e,t,n){},function(e,t,n){e.exports=n(19)(347)},function(e,t,n){"use strict";var r=n(133),o=n(186),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,o,i,a,l,u,d,h,p,m,g,v){var y,b=t;if("function"==typeof u?b=u(n,b):b instanceof Date?b=p(b):"comma"===o&&s(b)&&(b=r.maybeMap(b,(function(e){return e instanceof Date?p(e):e})).join(",")),null===b){if(i)return l&&!g?l(n,f.encoder,v,"key"):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(b))return l?[m(g?n:l(n,f.encoder,v,"key"))+"="+m(l(b,f.encoder,v,"value"))]:[m(n)+"="+m(String(b))];var w,E=[];if(void 0===b)return E;if(s(u))w=u;else{var C=Object.keys(b);w=d?C.sort(d):C}for(var k=0;k0?y+v:""}},function(e,t,n){"use strict";var r=n(133),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:a[c]=o:a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=i(g)?[g]:g),o.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),h=0;h-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];C.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})};var O=self.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function S(e,t){return new Promise((function(n,r){var o=new w(e,t);if(o.signal&&o.signal.aborted)return r(new O("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new C(o,r))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new O("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,self.fetch||(self.fetch=S,self.Headers=h,self.Request=w,self.Response=C)},function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,i=a(o),s=this._rootContainsTarget(o),l=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(o,t),u=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:t,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,u)&&this._queuedEntries.push(u):l&&l.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var r,o,i,s,c,u,d,f,h=a(t),p=l(t),m=!1;!m;){var g=null,v=1==p.nodeType?window.getComputedStyle(p):{};if("none"==v.display)return;if(p==this.root||p==e?(m=!0,g=n):p!=e.body&&p!=e.documentElement&&"visible"!=v.overflow&&(g=a(p)),g&&(r=g,o=h,i=void 0,s=void 0,c=void 0,u=void 0,d=void 0,f=void 0,i=Math.max(r.top,o.top),s=Math.min(r.bottom,o.bottom),c=Math.max(r.left,o.left),u=Math.min(r.right,o.right),f=s-i,!(h=(d=u-c)>=0&&f>=0&&{top:i,bottom:s,left:c,right:u,width:d,height:f})))break;p=l(p)}return h}},r.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o0&&this.handleMarkers(k);var P=this.editor.$options;c.editorOptions.forEach((function(t){P.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option "+t+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(E)&&E.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),n&&(this.refEditor.className+=" "+n),w&&w(this.editor),this.editor.resize(),a&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,r=0;r 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some((function(t){return t.session===e}))&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,o=0;o-1},_.prototype.set=function(e,t){var n=this.__data__,r=T(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new P,map:new(k||_),string:new P}},A.prototype.delete=function(e){return D(this,e).delete(e)},A.prototype.get=function(e){return D(this,e).get(e)},A.prototype.has=function(e){return D(this,e).has(e)},A.prototype.set=function(e,t){return D(this,e).set(e,t),this};var R=$((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(i,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));function L(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new($.Cache||A),n}$.Cache=A;var F=Array.isArray;function I(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:M(e,t);return void 0===r?n:r}}).call(this,n(113))},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,s=this.diff_commonPrefix(e,t),l=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var u=this.diff_compute_(e,t,a,i);return l&&u.unshift(new n.Diff(0,l)),c&&u.push(new n.Diff(0,c)),this.diff_cleanupMerge(u),u},n.prototype.diff_compute_=function(e,t,r,o){var i;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,s=e.length>t.length?t:e,l=a.indexOf(s);if(-1!=l)return i=[new n.Diff(1,a.substring(0,l)),new n.Diff(0,s),new n.Diff(1,a.substring(l+s.length))],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var c=this.diff_halfMatch_(e,t);if(c){var u=c[0],d=c[1],f=c[2],h=c[3],p=c[4],m=this.diff_main(u,f,r,o),g=this.diff_main(d,h,r,o);return m.concat([new n.Diff(0,p)],g)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},n.prototype.diff_lineMode_=function(e,t,r){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var i=o.lineArray,a=this.diff_main(e,t,!1,r);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var s=0,l=0,c=0,u="",d="";s=1&&c>=1){a.splice(s-l-c,l+c),s=s-l-c;for(var f=this.diff_main(u,d,!1,r),h=f.length-1;h>=0;h--)a.splice(s,0,f[h]);s+=f.length}c=0,l=0,u="",d=""}s++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,r){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),d=0;dr);y++){for(var b=-y+p;b<=y-m;b+=2){for(var w=s+b,E=(x=b==-y||b!=y&&c[w-1]o)m+=2;else if(E>i)p+=2;else if(h){if((O=s+f-b)>=0&&O=(k=o-u[O]))return this.diff_bisectSplit_(e,t,x,E,r)}}for(var C=-y+g;C<=y-v;C+=2){for(var k,O=s+C,S=(k=C==-y||C!=y&&u[O-1]o)v+=2;else if(S>i)g+=2;else if(!h){if((w=s+f-C)>=0&&w=(k=o-k))return this.diff_bisectSplit_(e,t,x,E,r)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=this.diff_main(i,a,!1,o),u=this.diff_main(s,l,!1,o);return c.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,s=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,s,u]:null}var a,s,l,c,u,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(s=a[0],l=a[1],c=a[2],u=a[3]):(c=a[0],u=a[1],s=a[2],l=a[3]),[s,l,c,u,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],o=0,i=null,a=0,s=0,l=0,c=0,u=0;a0?r[o-1]:-1,s=0,l=0,c=0,u=0,i=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=p?(h>=d.length/2||h>=f.length/2)&&(e.splice(a,0,new n.Diff(0,f.substring(0,h))),e[a-1][1]=d.substring(0,d.length-h),e[a+1][1]=f.substring(h),a++):(p>=d.length/2||p>=f.length/2)&&(e.splice(a,0,new n.Diff(0,d.substring(0,p))),e[a-1][0]=1,e[a-1][1]=f.substring(0,f.length-p),e[a+1][0]=-1,e[a+1][1]=d.substring(p),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),o=t.charAt(0),i=r.match(n.nonAlphaNumericRegex_),a=o.match(n.nonAlphaNumericRegex_),s=i&&r.match(n.whitespaceRegex_),l=a&&o.match(n.whitespaceRegex_),c=s&&r.match(n.linebreakRegex_),u=l&&o.match(n.linebreakRegex_),d=c&&e.match(n.blanklineEndRegex_),f=u&&t.match(n.blanklineStartRegex_);return d||f?5:c||u?4:i&&!s&&l?3:s||l?2:i||a?1:0}for(var r=1;r=f&&(f=h,c=o,u=i,d=a)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=u,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],o=0,i=null,a=0,s=!1,l=!1,c=!1,u=!1;a0?r[o-1]:-1,c=u=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,r=0,o=0,i=0,a="",s="";r1?(0!==o&&0!==i&&(0!==(t=this.diff_commonPrefix(s,a))&&(r-o-i>0&&0==e[r-o-i-1][0]?e[r-o-i-1][1]+=s.substring(0,t):(e.splice(0,0,new n.Diff(0,s.substring(0,t))),r++),s=s.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(s,a))&&(e[r][1]=s.substring(s.length-t)+e[r][1],s=s.substring(0,s.length-t),a=a.substring(0,a.length-t))),r-=o+i,e.splice(r,o+i),a.length&&(e.splice(r,0,new n.Diff(-1,a)),r++),s.length&&(e.splice(r,0,new n.Diff(1,s)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,a="",s=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(r=1;rt));n++)i=r,a=o;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,i=/\n/g,a=0;a");switch(s){case 1:t[a]=''+l+"";break;case-1:t[a]=''+l+"";break;case 0:t[a]=""+l+""}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(i(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,s),a)));var l,c,u=1<=p;v--){var y=r[e.charAt(v-1)];if(g[v]=0===h?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],g[v]&u){var b=i(h,v-1);if(b<=a){if(a=b,!((s=v-1)>n))break;p=Math.max(1,2*n-s)}}}if(i(h+1,n)>a)break;d=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)i=e,o=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)o=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");o=e,i=r}if(0===i.length)return[];for(var a=[],s=new n.patch_obj,l=0,c=0,u=0,d=o,f=o,h=0;h=2*this.Patch_Margin&&l&&(this.patch_addContext_(s,d),a.push(s),s=new n.patch_obj,l=0,d=f,c=u)}1!==p&&(c+=m.length),-1!==p&&(u+=m.length)}return l&&(this.patch_addContext_(s,d),a.push(s)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,c,l),-1==a)o[i]=!1,r-=e[i].length2-e[i].length1;else if(o[i]=!0,r=a-l,c==(s=-1==u?t.substring(a,a+c.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+c.length);else{var d=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(d)/c.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(d);for(var f,h=0,p=0;pa[0][1].length){var s=t-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,r)),i.length1+=t,i.length2+=t;else if(t>a[a.length-1][1].length){s=t-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,s),i.length1+=s,i.length2+=s}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(l.length1+=d.length,i+=d.length,c=!1,l.diffs.push(new n.Diff(u,d)),o.diffs.shift()):(d=d.substring(0,t-l.length1-this.Patch_Margin),l.length1+=d.length,i+=d.length,0===u?(l.length2+=d.length,a+=d.length):c=!1,l.diffs.push(new n.Diff(u,d)),d==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(d.length))}s=(s=this.diff_text2(l.diffs)).substring(s.length-this.Patch_Margin);var f=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==f&&(l.length1+=f.length,l.length2+=f.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=f:l.diffs.push(new n.Diff(0,f))),c||e.splice(++r,0,l)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};r.inherits(s,o),t.ShHighlightRules=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,n,r){var o,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(o=i.match(this.foldingStartMarker)){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(o=i.match(this.foldingStopMarker))){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),i=t,a=n.length,s=t+=1,l=e.getLength();++tc)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=i)break;if(u.isMultiLine())t=u.end.row;else if(r==c)break}s=t}}return new o(i,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),i=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++na)return new o(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,i=e("./sh_highlight_rules").ShHighlightRules,a=e("../range").Range,s=e("./folding/cstyle").FoldMode,l=e("./behaviour/cstyle").CstyleBehaviour,c=function(){this.HighlightRules=i,this.foldingRules=new s,this.$behaviour=new l};r.inherits(c,o),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return r;"start"==e&&(t.match(/^.*[\{\(\[:]\s*$/)&&(r+=n));return r};var e={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(t,n,r){if("\r\n"!==r&&"\r"!==r&&"\n"!==r)return!1;var o=this.getTokenizer().getLineTokens(n.trim(),t).tokens;if(!o)return!1;do{var i=o.pop()}while(i&&("comment"==i.type||"text"==i.type&&i.value.match(/^\s+$/)));return!!i&&("keyword"==i.type&&e[i.value])},this.autoOutdent=function(e,t,n){n+=1;var r=this.$getIndent(t.getLine(n)),o=t.getTabString();r.slice(-o.length)==o&&t.remove(new a(n,r.length-o.length,n,r.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(c.prototype),t.Mode=c})),ace.require(["ace/mode/sh"],(function(t){e&&(e.exports=t)}))}).call(this,n(92)(e))},function(e,t,n){(function(e){ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}",e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.require(["ace/theme/monokai"],(function(t){e&&(e.exports=t)}))}).call(this,n(92)(e))},function(e,t,n){"use strict";n(37),n(398)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"comparisonOptions",(function(){return Sr})),n.d(r,"graphPropTypes",(function(){return xr})),n.d(r,"graphDefaultConfig",(function(){return Pr})),n.d(r,"hexPalette",(function(){return _r})),n.d(r,"chart",(function(){return Ar})),n.d(r,"time",(function(){return Tr})),n.d(r,"aggrOptions",(function(){return Mr})),n.d(r,"timeFormatMap",(function(){return Nr})),n.d(r,"countersMaxLength",(function(){return Dr})),n.d(r,"counterListPropType",(function(){return jr}));var o={};n.r(o),n.d(o,"normalizeEndpointCounters",(function(){return $r})),n.d(o,"processResData",(function(){return Fr})),n.d(o,"normalizeSeries",(function(){return Ir})),n.d(o,"getTooltipsContent",(function(){return Hr})),n.d(o,"getTimeLabelVal",(function(){return zr})),n.d(o,"unionTag",(function(){return Kr})),n.d(o,"getDTagV",(function(){return Gr})),n.d(o,"hasDtag",(function(){return Yr})),n.d(o,"sortTagkvs",(function(){return Xr})),n.d(o,"isEqualBy",(function(){return Zr})),n.d(o,"getYAxis",(function(){return Qr}));var i={};n.r(i),n.d(i,"fetchEndPoints",(function(){return no})),n.d(i,"fetchMetrics",(function(){return ro})),n.d(i,"fetchTagkv",(function(){return oo})),n.d(i,"fetchCounter",(function(){return io})),n.d(i,"normalizeMetrics",(function(){return ao})),n.d(i,"fetchCounterList",(function(){return lo})),n.d(i,"fetchHistory",(function(){return uo})),n.d(i,"getHistory",(function(){return fo}));var a,s=n(0),l=n.n(s),c=n(28),u=n.n(c),d=(n(147),n(44)),f=n.n(d),h=n(116),p=n.n(h),m=n(25),g=n(202),v=n(101),y=n.n(v),b=n(120),w=n.n(b),E=n(142),C=n.n(E);function k(e){return e.type===a.literal}function O(e){return e.type===a.argument}function S(e){return e.type===a.number}function x(e){return e.type===a.date}function P(e){return e.type===a.time}function _(e){return e.type===a.select}function A(e){return e.type===a.plural}function T(e){return e.type===a.pound}function M(e){return e.type===a.tag}function N(e){return!(!e||"object"!=typeof e||0!==e.type)}function D(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(a||(a={}));var j,R=(j=function(e,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){for(t=1,n=1;t",!1),d=Ce(">",!1),f=function(e){return Xe.pop(),!0},h=Ce("ge&&(ge=he,ve=[]),ve.push(e))}function _e(e,t,n){return new $($.buildMessage(e,t),e,t,n)}function Ae(){return Te()}function Te(){var e,t;for(e=[],t=Me();t!==r;)e.push(t),t=Me();return e}function Me(){var t;return(t=function(){var e,t;e=he,(t=Ne())!==r&&(pe=e,n=t,t=L({type:a.literal,value:n},et()));var n;return e=t}())===r&&(t=function(){var t,n,o,i;ye++,t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));n!==r&&We()!==r&&(o=Ge())!==r&&We()!==r?(125===e.charCodeAt(he)?(i="}",he++):(i=r,0===ye&&Pe(g)),i!==r?(pe=t,s=o,n=L({type:a.argument,value:s},et()),t=n):(he=t,t=r)):(he=t,t=r);var s;ye--,t===r&&(n=r,0===ye&&Pe(p));return t}())===r&&(t=function(){var t;(t=function(){var t,n,o,i,a,s,l,c,u;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));n!==r&&We()!==r&&(o=Ge())!==r&&We()!==r?(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r&&We()!==r?("number"===e.substr(he,6)?(a="number",he+=6):(a=r,0===ye&&Pe(P)),a!==r&&We()!==r?(s=he,44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r&&(c=We())!==r&&(u=function(){var t,n,o;t=he,"::"===e.substr(he,2)?(n="::",he+=2):(n=r,0===ye&&Pe(O));n!==r&&(o=function(){var e,t,n;if(e=he,t=[],(n=Re())!==r)for(;n!==r;)t.push(n),n=Re();else t=r;t!==r&&(pe=e,t=L({type:0,tokens:t},et()));return e=t}())!==r?(pe=t,t=n=o):(he=t,t=r);t===r&&(t=he,pe=he,Xe.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(o=Ne())!==r?(pe=t,n=S(o),t=n):(he=t,t=r));return t}())!==r?s=l=[l,c,u]:(he=s,s=r),s===r&&(s=null),s!==r&&(l=We())!==r?(125===e.charCodeAt(he)?(c="}",he++):(c=r,0===ye&&Pe(g)),c!==r?(pe=t,n=_(o,a,s),t=n):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}())===r&&(t=function(){var t,n,o,i,a,s,l,c,u;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));n!==r&&We()!==r&&(o=Ge())!==r&&We()!==r?(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r&&We()!==r?("date"===e.substr(he,4)?(a="date",he+=4):(a=r,0===ye&&Pe(F)),a===r&&("time"===e.substr(he,4)?(a="time",he+=4):(a=r,0===ye&&Pe(I))),a!==r&&We()!==r?(s=he,44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r&&(c=We())!==r&&(u=function(){var t,n,o;t=he,"::"===e.substr(he,2)?(n="::",he+=2):(n=r,0===ye&&Pe(O));n!==r&&(o=function(){var t,n,o,i;t=he,n=he,o=[],(i=Le())===r&&(i=$e());if(i!==r)for(;i!==r;)o.push(i),(i=Le())===r&&(i=$e());else o=r;n=o!==r?e.substring(n,he):o;n!==r&&(pe=t,n=L({type:1,pattern:n},et()));return t=n}())!==r?(pe=t,t=n=o):(he=t,t=r);t===r&&(t=he,pe=he,Xe.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(o=Ne())!==r?(pe=t,n=S(o),t=n):(he=t,t=r));return t}())!==r?s=l=[l,c,u]:(he=s,s=r),s===r&&(s=null),s!==r&&(l=We())!==r?(125===e.charCodeAt(he)?(c="}",he++):(c=r,0===ye&&Pe(g)),c!==r?(pe=t,n=_(o,a,s),t=n):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,s,l,c,u,d,f,h;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));if(n!==r)if(We()!==r)if((o=Ge())!==r)if(We()!==r)if(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r)if(We()!==r)if("plural"===e.substr(he,6)?(s="plural",he+=6):(s=r,0===ye&&Pe(V)),s===r&&("selectordinal"===e.substr(he,13)?(s="selectordinal",he+=13):(s=r,0===ye&&Pe(B))),s!==r)if(We()!==r)if(44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r)if(We()!==r)if(c=he,"offset:"===e.substr(he,7)?(u="offset:",he+=7):(u=r,0===ye&&Pe(W)),u!==r&&(d=We())!==r&&(f=He())!==r?c=u=[u,d,f]:(he=c,c=r),c===r&&(c=null),c!==r)if((u=We())!==r){if(d=[],(f=Ie())!==r)for(;f!==r;)d.push(f),f=Ie();else d=r;d!==r&&(f=We())!==r?(125===e.charCodeAt(he)?(h="}",he++):(h=r,0===ye&&Pe(g)),h!==r?(pe=t,n=function(e,t,n,r){return L({type:a.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Ee('Duplicate option "'+n+'" in plural element: "'+be()+'"',we()),e[n]={value:r,location:o},e}),{})},et())}(o,s,c,d),t=n):(he=t,t=r)):(he=t,t=r)}else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,s,l,c,u,d;t=he,123===e.charCodeAt(he)?(n="{",he++):(n=r,0===ye&&Pe(m));if(n!==r)if(We()!==r)if((o=Ge())!==r)if(We()!==r)if(44===e.charCodeAt(he)?(i=",",he++):(i=r,0===ye&&Pe(x)),i!==r)if(We()!==r)if("select"===e.substr(he,6)?(s="select",he+=6):(s=r,0===ye&&Pe(H)),s!==r)if(We()!==r)if(44===e.charCodeAt(he)?(l=",",he++):(l=r,0===ye&&Pe(x)),l!==r)if(We()!==r){if(c=[],(u=Fe())!==r)for(;u!==r;)c.push(u),u=Fe();else c=r;c!==r&&(u=We())!==r?(125===e.charCodeAt(he)?(d="}",he++):(d=r,0===ye&&Pe(g)),d!==r?(pe=t,n=function(e,t){return L({type:a.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Ee('Duplicate option "'+n+'" in select element: "'+be()+'"',we()),e[n]={value:r,location:o},e}),{})},et())}(o,c),t=n):(he=t,t=r)):(he=t,t=r)}else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;else he=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,s,p;ye++,t=he,n=he,60===e.charCodeAt(he)?(o="<",he++):(o=r,0===ye&&Pe(c));o!==r&&(i=qe())!==r&&(s=We())!==r?("/>"===e.substr(he,2)?(p="/>",he+=2):(p=r,0===ye&&Pe(u)),p!==r?n=o=[o,i,s,p]:(he=n,n=r)):(he=n,n=r);n!==r&&(pe=t,m=n,n=L({type:a.literal,value:m.join("")},et()));var m;(t=n)===r&&(t=he,(n=function(){var t,n,o,i;t=he,60===e.charCodeAt(he)?(n="<",he++):(n=r,0===ye&&Pe(c));n!==r?(pe=he,Xe.push("openingTag"),(!0?void 0:r)!==r&&(o=qe())!==r?(62===e.charCodeAt(he)?(i=">",he++):(i=r,0===ye&&Pe(d)),i!==r?(pe=he,(f()?void 0:r)!==r?(pe=t,t=n=o):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}())!==r&&(o=Te())!==r&&(i=function(){var t,n,o,i;t=he,"",he++):(i=r,0===ye&&Pe(d)),i!==r?(pe=he,(f()?void 0:r)!==r?(pe=t,t=n=o):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r);return t}())!==r?(pe=t,v=o,(g=n)!==(y=i)&&Ee('Mismatch tag "'+g+'" !== "'+y+'"',we()),n=L({type:a.tag,value:g,children:v},et()),t=n):(he=t,t=r));var g,v,y;ye--,t===r&&(n=r,0===ye&&Pe(l));return t}())===r&&(t=function(){var t,n;t=he,35===e.charCodeAt(he)?(n="#",he++):(n=r,0===ye&&Pe(s));n!==r&&(pe=t,n=L({type:a.pound},et()));return t=n}()),t}function Ne(){var e,t,n;if(e=he,t=[],(n=ze())===r&&(n=Ke())===r&&(n=Ue()),n!==r)for(;n!==r;)t.push(n),(n=ze())===r&&(n=Ke())===r&&(n=Ue());else t=r;return t!==r&&(pe=e,t=t.join("")),e=t}function De(){var t,n,o,i,a;if(ye++,t=he,n=[],o=he,i=he,ye++,(a=Ve())===r&&(y.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(b))),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r),o!==r)for(;o!==r;)n.push(o),o=he,i=he,ye++,(a=Ve())===r&&(y.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(b))),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r);else n=r;return t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(v)),t}function je(){var t,n,o;return ye++,t=he,47===e.charCodeAt(he)?(n="/",he++):(n=r,0===ye&&Pe(C)),n!==r&&(o=De())!==r?(pe=t,t=n=o):(he=t,t=r),ye--,t===r&&(n=r,0===ye&&Pe(E)),t}function Re(){var e,t,n,o;if(ye++,e=he,We()!==r)if((t=De())!==r){for(n=[],o=je();o!==r;)n.push(o),o=je();n!==r?(pe=e,e=function(e,t){return{stem:e,options:t}}(t,n)):(he=e,e=r)}else he=e,e=r;else he=e,e=r;return ye--,e===r&&(r,0===ye&&Pe(k)),e}function Le(){var t,n,o,i;if(t=he,39===e.charCodeAt(he)?(n="'",he++):(n=r,0===ye&&Pe(A)),n!==r){if(o=[],(i=ze())===r&&(T.test(e.charAt(he))?(i=e.charAt(he),he++):(i=r,0===ye&&Pe(M))),i!==r)for(;i!==r;)o.push(i),(i=ze())===r&&(T.test(e.charAt(he))?(i=e.charAt(he),he++):(i=r,0===ye&&Pe(M)));else o=r;o!==r?(39===e.charCodeAt(he)?(i="'",he++):(i=r,0===ye&&Pe(A)),i!==r?t=n=[n,o,i]:(he=t,t=r)):(he=t,t=r)}else he=t,t=r;if(t===r)if(t=[],(n=ze())===r&&(N.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(D))),n!==r)for(;n!==r;)t.push(n),(n=ze())===r&&(N.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(D)));else t=r;return t}function $e(){var t,n;if(t=[],j.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(R)),n!==r)for(;n!==r;)t.push(n),j.test(e.charAt(he))?(n=e.charAt(he),he++):(n=r,0===ye&&Pe(R));else t=r;return t}function Fe(){var t,n,o,i,a,s,l;return t=he,We()!==r&&(n=Je())!==r&&We()!==r?(123===e.charCodeAt(he)?(o="{",he++):(o=r,0===ye&&Pe(m)),o!==r?(pe=he,Xe.push("select"),(!0?void 0:r)!==r&&(i=Te())!==r?(125===e.charCodeAt(he)?(a="}",he++):(a=r,0===ye&&Pe(g)),a!==r?(pe=t,s=n,l=i,Xe.pop(),t=L({id:s,value:l},et())):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r),t}function Ie(){var t,n,o,i,a,s,l;return t=he,We()!==r&&(n=function(){var t,n,o,i;return t=he,n=he,61===e.charCodeAt(he)?(o="=",he++):(o=r,0===ye&&Pe(z)),o!==r&&(i=He())!==r?n=o=[o,i]:(he=n,n=r),(t=n!==r?e.substring(t,he):n)===r&&(t=Je()),t}())!==r&&We()!==r?(123===e.charCodeAt(he)?(o="{",he++):(o=r,0===ye&&Pe(m)),o!==r?(pe=he,Xe.push("plural"),(!0?void 0:r)!==r&&(i=Te())!==r?(125===e.charCodeAt(he)?(a="}",he++):(a=r,0===ye&&Pe(g)),a!==r?(pe=t,s=n,l=i,Xe.pop(),t=L({id:s,value:l},et())):(he=t,t=r)):(he=t,t=r)):(he=t,t=r)):(he=t,t=r),t}function Ve(){var t;return ye++,U.test(e.charAt(he))?(t=e.charAt(he),he++):(t=r,0===ye&&Pe(G)),ye--,t===r&&(r,0===ye&&Pe(K)),t}function Be(){var t;return ye++,Y.test(e.charAt(he))?(t=e.charAt(he),he++):(t=r,0===ye&&Pe(J)),ye--,t===r&&(r,0===ye&&Pe(q)),t}function We(){var t,n,o;for(ye++,t=he,n=[],o=Ve();o!==r;)n.push(o),o=Ve();return t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(X)),t}function He(){var t,n,o,i,a;return ye++,t=he,45===e.charCodeAt(he)?(n="-",he++):(n=r,0===ye&&Pe(Q)),n===r&&(n=null),n!==r&&(o=Ye())!==r?(pe=t,i=n,t=n=(a=o)?i?-a:a:0):(he=t,t=r),ye--,t===r&&(n=r,0===ye&&Pe(Z)),t}function ze(){var t,n;return ye++,t=he,"''"===e.substr(he,2)?(n="''",he+=2):(n=r,0===ye&&Pe(te)),n!==r&&(pe=t,n="'"),ye--,(t=n)===r&&(n=r,0===ye&&Pe(ee)),t}function Ke(){var t,n,o,i,a,s;if(t=he,39===e.charCodeAt(he)?(n="'",he++):(n=r,0===ye&&Pe(A)),n!==r)if((o=function(){var t,n,o,i;t=he,n=he,e.length>he?(o=e.charAt(he),he++):(o=r,0===ye&&Pe(w));o!==r?(pe=he,(i=(i="<"===(a=o)||">"===a||"{"===a||"}"===a||Qe()&&"#"===a)?void 0:r)!==r?n=o=[o,i]:(he=n,n=r)):(he=n,n=r);var a;t=n!==r?e.substring(t,he):n;return t}())!==r){for(i=he,a=[],"''"===e.substr(he,2)?(s="''",he+=2):(s=r,0===ye&&Pe(te)),s===r&&(T.test(e.charAt(he))?(s=e.charAt(he),he++):(s=r,0===ye&&Pe(M)));s!==r;)a.push(s),"''"===e.substr(he,2)?(s="''",he+=2):(s=r,0===ye&&Pe(te)),s===r&&(T.test(e.charAt(he))?(s=e.charAt(he),he++):(s=r,0===ye&&Pe(M)));(i=a!==r?e.substring(i,he):a)!==r?(39===e.charCodeAt(he)?(a="'",he++):(a=r,0===ye&&Pe(A)),a===r&&(a=null),a!==r?(pe=t,t=n=o+i.replace("''","'")):(he=t,t=r)):(he=t,t=r)}else he=t,t=r;else he=t,t=r;return t}function Ue(){var t,n,o,i,a;return t=he,n=he,e.length>he?(o=e.charAt(he),he++):(o=r,0===ye&&Pe(w)),o!==r?(pe=he,(i=(i=!("<"===(a=o)||"{"===a||Qe()&&"#"===a||Ze()&&"}"===a||Ze()&&">"===a))?void 0:r)!==r?n=o=[o,i]:(he=n,n=r)):(he=n,n=r),n===r&&(10===e.charCodeAt(he)?(n="\n",he++):(n=r,0===ye&&Pe(ne))),t=n!==r?e.substring(t,he):n}function Ge(){var t,n;return ye++,t=he,(n=Ye())===r&&(n=Je()),t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(re)),t}function qe(){var t,n;return ye++,t=he,(n=Ye())===r&&(n=function(){var t,n,o,i,a;ye++,t=he,n=[],45===e.charCodeAt(he)?(o="-",he++):(o=r,0===ye&&Pe(Q));o===r&&(o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r));if(o!==r)for(;o!==r;)n.push(o),45===e.charCodeAt(he)?(o="-",he++):(o=r,0===ye&&Pe(Q)),o===r&&(o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r));else n=r;t=n!==r?e.substring(t,he):n;ye--,t===r&&(n=r,0===ye&&Pe(fe));return t}()),t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(oe)),t}function Ye(){var t,n,o,i,a;if(ye++,t=he,48===e.charCodeAt(he)?(n="0",he++):(n=r,0===ye&&Pe(ae)),n!==r&&(pe=t,n=0),(t=n)===r){if(t=he,n=he,se.test(e.charAt(he))?(o=e.charAt(he),he++):(o=r,0===ye&&Pe(le)),o!==r){for(i=[],ce.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(ue));a!==r;)i.push(a),ce.test(e.charAt(he))?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(ue));i!==r?n=o=[o,i]:(he=n,n=r)}else he=n,n=r;n!==r&&(pe=t,n=parseInt(n.join(""),10)),t=n}return ye--,t===r&&(n=r,0===ye&&Pe(ie)),t}function Je(){var t,n,o,i,a;if(ye++,t=he,n=[],o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r),o!==r)for(;o!==r;)n.push(o),o=he,i=he,ye++,(a=Ve())===r&&(a=Be()),ye--,a===r?i=void 0:(he=i,i=r),i!==r?(e.length>he?(a=e.charAt(he),he++):(a=r,0===ye&&Pe(w)),a!==r?o=i=[i,a]:(he=o,o=r)):(he=o,o=r);else n=r;return t=n!==r?e.substring(t,he):n,ye--,t===r&&(n=r,0===ye&&Pe(de)),t}var Xe=["root"];function Ze(){return Xe.length>1}function Qe(){return"plural"===Xe[Xe.length-1]}function et(){return t&&t.captureLocation?{location:we()}:{}}if((n=i())!==r&&he===e.length)return n;throw n!==r&&he1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(q,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=K(K({},t),J(o.options[0])))}else if(Y.test(o.stem))t=K(K({},t),J(o.stem));else{var i=X(o.stem);i&&(t=K(K({},t),i))}}return t}var ee,te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ee||(ee={}));var ne,re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.code=n,r}return te(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),oe=function(e){function t(t,n,r){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE")||this}return te(t,e),t}(re),ie=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',"MISSING_VALUE")||this}return te(t,e),t}(re);function ae(e){return"function"==typeof e}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ne||(ne={}));var se=function(){return(se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n(r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t),{})}function pe(e){de(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}const me={formats:{},messages:{},timeZone:void 0,textComponent:s.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function ge(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}){const t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:z(Intl.DateTimeFormat,e.dateTime),getNumberFormat:z(Intl.NumberFormat,e.number),getMessageFormat:z(ue,e.message),getRelativeTimeFormat:z(t,e.relativeTime),getPluralRules:z(Intl.PluralRules,e.pluralRules),getListFormat:z(n,e.list),getDisplayNames:z(r,e.displayNames)}}function ve(e,t,n,r){const o=e&&e[t];let i;if(o&&(i=o[n]),i)return i;r(new fe("UNSUPPORTED_FORMATTER",`No ${t} format named: ${n}`))}const ye=C.a||E;const be=s.createContext(null),{Consumer:we,Provider:Ee}=be,Ce=Ee,ke=be;function Oe(e,t){const{intlPropName:n="intl",forwardRef:r=!1,enforceContext:o=!0}=t||{},i=t=>s.createElement(we,null,i=>(o&&pe(i),s.createElement(e,Object.assign({},t,{[n]:i},{ref:r?t.forwardedRef:null}))));var a;return i.displayName=`injectIntl(${a=e,a.displayName||a.name||"Component"})`,i.WrappedComponent=e,ye(r?s.forwardRef((e,t)=>s.createElement(i,Object.assign({},e,{forwardedRef:t}))):i,e)}const Se=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function xe({locale:e,formats:t,onError:n},r,o={}){const{format:i}=o,a=i&&ve(t,"number",i,n)||{};return r(e,he(o,Se,a))}function Pe(e,t,n,r={}){try{return xe(e,t,r).format(n)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting number.",t))}return String(n)}function _e(e,t,n,r={}){try{return xe(e,t,r).formatToParts(n)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting number.",t))}return[]}const Ae=["numeric","style"];function Te(e,t,n,r,o={}){r||(r="second"),Intl.RelativeTimeFormat||e.onError(new re('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function({locale:e,formats:t,onError:n},r,o={}){const{format:i}=o,a=!!i&&ve(t,"relative",i,n)||{};return r(e,he(o,Ae,a))}(e,t,o).format(n,r)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting relative time.",t))}return String(n)}const Me=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ne({locale:e,formats:t,onError:n,timeZone:r},o,i,a={}){const{format:s}=a,l=Object.assign(Object.assign({},r&&{timeZone:r}),s&&ve(t,o,s,n));let c=he(a,Me,l);return"time"!==o||c.hour||c.minute||c.second||(c=Object.assign(Object.assign({},c),{hour:"numeric",minute:"numeric"})),i(e,c)}function De(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Ne(e,"date",t,r).format(o)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting date.",t))}return String(o)}function je(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Ne(e,"time",t,r).format(o)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting time.",t))}return String(o)}function Re(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Ne(e,"date",t,r).formatToParts(o)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting date.",t))}return[]}function Le(e,t,n,r={}){const o="string"==typeof n?new Date(n||0):n;try{return Ne(e,"time",t,r).formatToParts(o)}catch(t){e.onError(new fe("FORMAT_ERROR","Error formatting time.",t))}return[]}const $e=["localeMatcher","type"];function Fe({locale:e,onError:t},n,r,o={}){Intl.PluralRules||t(new re('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));const i=he(o,$e);try{return n(e,i).select(r)}catch(e){t(new fe("FORMAT_ERROR","Error formatting plural.",e))}return"other"}function Ie(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Object.assign({timeZone:t},e[r]),n),{})}function Ve(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((n,r)=>(n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n),{})}function Be(e,t){if(!t)return e;const n=ue.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:Ve(Ie(n.date,t),Ie(e.date||{},t)),time:Ve(Ie(n.time,t),Ie(e.time||{},t))})}function We({locale:e,formats:t,messages:n,defaultLocale:r,defaultFormats:o,onError:i,timeZone:a,wrapRichTextChunksInFragment:l},c,u={id:""},d={}){const{id:f,defaultMessage:h}=u;de(!!f,"[React Intl] An `id` must be provided to format a message.");const p=n&&n[String(f)];t=Be(t,a),o=Be(o,a);let m="";if(p)try{m=c.getMessageFormat(p,e,t,{formatters:c}).format(d)}catch(t){i(new fe("FORMAT_ERROR",`Error formatting message: "${f}" for locale: "${e}"`+(h?", using default message as fallback.":""),t))}else(!h||e&&e.toLowerCase()!==r.toLowerCase())&&i(new fe("MISSING_TRANSLATION",`Missing message: "${f}" for locale: "${e}"`+(h?", using default message as fallback.":"")));if(!m&&h)try{m=c.getMessageFormat(h,r,o).format(d)}catch(e){i(new fe("FORMAT_ERROR",`Error formatting the default message for: "${f}"`,e))}return m?Array.isArray(m)&&l?(g=m,s.createElement(s.Fragment,null,...g)):m:(i(new fe("FORMAT_ERROR",`Cannot format message: "${f}", `+`using message ${p||h?"source":"id"} as fallback.`)),"string"==typeof p?p||h||String(f):h||String(f));var g}var He=n(100),ze=n.n(He);const Ke=["localeMatcher","type","style"],Ue=Date.now();function Ge({locale:e,onError:t},n,r,o={}){Intl.ListFormat||t(new re('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));const i=he(o,Ke);try{const t={},o=r.map((e,n)=>{if("object"==typeof e){const r=function(e){return`${Ue}_${e}_${Ue}`}(n);return t[r]=e,r}return String(e)});return Object.keys(t).length?n(e,i).formatToParts(o).reduce((e,n)=>{const r=n.value;return t[r]?e.push(t[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]):n(e,i).format(o)}catch(e){t(new fe("FORMAT_ERROR","Error formatting list.",e))}return r}const qe=["localeMatcher","style","type","fallback"];function Ye({locale:e,onError:t},n,r,o={}){Intl.DisplayNames||t(new re('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));const i=he(o,qe);try{return n(e,i).of(r)}catch(e){t(new fe("FORMAT_ERROR","Error formatting display name.",e))}}const Je=ze.a||He;function Xe(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function Ze(e,t){const n=ge(t),r=Object.assign(Object.assign({},me),e),{locale:o,defaultLocale:i,onError:a}=r;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new fe("MISSING_DATA",`Missing locale data for locale: "${o}" in Intl.NumberFormat. Using default locale: "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new fe("MISSING_DATA",`Missing locale data for locale: "${o}" in Intl.DateTimeFormat. Using default locale: "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):(a&&a(new fe("INVALID_CONFIG",`"locale" was not configured, using "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details`)),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:Pe.bind(null,r,n.getNumberFormat),formatNumberToParts:_e.bind(null,r,n.getNumberFormat),formatRelativeTime:Te.bind(null,r,n.getRelativeTimeFormat),formatDate:De.bind(null,r,n.getDateTimeFormat),formatDateToParts:Re.bind(null,r,n.getDateTimeFormat),formatTime:je.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Le.bind(null,r,n.getDateTimeFormat),formatPlural:Fe.bind(null,r,n.getPluralRules),formatMessage:We.bind(null,r,n),formatList:Ge.bind(null,r,n.getListFormat),formatDisplayName:Ye.bind(null,r,n.getDisplayNames)})}class Qe extends s.PureComponent{constructor(){super(...arguments),this.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},this.state={cache:this.cache,intl:Ze(Xe(this.props),this.cache),prevConfig:Xe(this.props)}}static getDerivedStateFromProps(e,{prevConfig:t,cache:n}){const r=Xe(e);return Je(t,r)?null:{intl:Ze(r,n),prevConfig:r}}render(){return pe(this.state.intl),s.createElement(Ce,{value:this.state.intl},this.props.children)}}Qe.displayName="IntlProvider",Qe.defaultProps=me;var et=n(2),tt=n.n(et),nt=(n(35),n(12)),rt=n.n(nt),ot="nightingale",it="根",at=["10","30","50","100","300","500","1000"];function st(e){var t=e.history,n="".concat(ot,"-exception");return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"".concat(n,"-main")},l.a.createElement("div",{className:"".concat(n,"-title")},"403"),l.a.createElement("div",{className:"".concat(n,"-content mb10")},"抱歉,你无权访问该页面"),l.a.createElement(rt.a,{icon:"arrow-left",type:"primary",onClick:function(){t.push({pathname:"/"})}},"返回首页")))}function lt(e){var t=e.history,n="".concat(ot,"-exception");return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"".concat(n,"-main")},l.a.createElement("div",{className:"".concat(n,"-title")},"404"),l.a.createElement("div",{className:"".concat(n,"-content mb10")},"抱歉,你访问的页面不存在"),l.a.createElement(rt.a,{icon:"arrow-left",type:"primary",onClick:function(){t.push({pathname:"/"})}},"返回首页")))}n(209);var ct=n(14),ut=n.n(ct),dt=n(26),ft=n.n(dt),ht=n(11),pt=n.n(ht);function mt(e){return"".concat("/api/portal").concat(e)}var gt={login:mt("/auth/login"),logout:mt("/auth/logout"),selftProfile:mt("/self/profile"),selftPassword:mt("/self/password"),selftToken:mt("/self/token"),user:mt("/user"),users:mt("/users"),team:mt("/team"),tree:mt("/tree"),treeSearch:mt("/tree/search"),node:mt("/node"),maskconf:mt("/maskconf"),stra:mt("/stra"),event:mt("/event"),screen:mt("/screen"),subclass:mt("/subclass"),chart:mt("/chart"),collect:mt("/collect"),endpoint:mt("/endpoint"),tmpchart:mt("/tmpchart"),graphIndex:"/api/index",graphTransfer:"/api/transfer"},vt=n(135),yt=n.n(vt),bt=(n(48),n(20)),wt=n.n(bt),Et=(n(212),n(192)),Ct=n.n(Et),kt=n(3),Ot=n.n(kt),St=n(4),xt=n.n(St),Pt=n(5),_t=n.n(Pt),At=n(6),Tt=n.n(At),Mt=n(7),Nt=n.n(Mt),Dt=n(191);n(215);function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t2&&void 0!==a[2])||a[2],e.next=3,fetch(t,Rt({headers:{"content-type":"application/json"}},n,{signal:$t}));case 3:if(!((o=e.sent).status<200||o.status>=300)){e.next=8;break}throw It(o.statusText),new Error(o.statusText);case 8:return e.next=10,o.json();case 10:if(i=e.sent,"object"!==yt()(i)||""===i.err){e.next=20;break}if("unauthorized"!==i.err){e.next=17;break}throw window.location.href="/#/login","unauthorized";case 17:throw r&&It(i.err),new Error(i.err);case 20:return e.abrupt("return",i.dat);case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ht,zt,Kt,Ut=(zt=!1,Kt={},{getIsAuthenticated:function(){return zt},getSelftProfile:function(){return Kt},checkAuthenticate:function(){return Vt(gt.selftProfile).then((function(e){zt=!0,Kt=function(e){for(var t=1;t-1?window.location.href="".concat(e.callback,"&sig=").concat(e.sig):window.location.href="".concat(e.callback,"?sig=").concat(e.sig):tt.a.findKey(t,"from")?r.push(t.from):r.push({pathname:"/"})}))}))},n}return Nt()(t,e),xt()(t,[{key:"render",value:function(){var e="".concat(ot,"-login"),t=this.props.history,n=this.props.form.getFieldDecorator,r=Ut.getIsAuthenticated(),o=this.props.intl.formatMessage;return r?(t.push({pathname:"/"}),null):l.a.createElement("div",{className:e},l.a.createElement("div",{className:"".concat(e,"-main")},l.a.createElement(qt.a,null,l.a.createElement("div",{className:"".concat(e,"-title")},o({id:"login.title"})),l.a.createElement(en.a,{onSubmit:this.handleSubmit},l.a.createElement(an,null,n("username",{rules:[{required:!0}]})(l.a.createElement(Zt.a,{prefix:l.a.createElement(wt.a,{type:"user",style:{color:"rgba(0,0,0,.25)"}}),placeholder:o({id:"user.username"})}))),l.a.createElement(an,null,n("password",{rules:[{required:!0}]})(l.a.createElement(Zt.a,{prefix:l.a.createElement(wt.a,{type:"lock",style:{color:"rgba(0,0,0,.25)"}}),type:"password",placeholder:o({id:"user.password"})}))),l.a.createElement(an,null,n("is_ldap",{valuePropName:"checked",initialValue:!1})(l.a.createElement(Jt.a,null,o({id:"login.ldap"}))),l.a.createElement(rt.a,{type:"primary",htmlType:"submit",className:"".concat(e,"-submitBtn")},o({id:"form.login"})))))))}}]),t}(s.Component),ln=Oe(en.a.create()(sn)),cn=n(15),un=n.n(cn),dn=n(117),fn=n.n(dn);function hn(e){var t=e.component,n=e.rootVisible,r=void 0!==n&&n,o=fn()(e,["component","rootVisible"]),i=Ut.getSelftProfile().isroot,a=Ut.getIsAuthenticated();return l.a.createElement(m.Route,un()({},o,{render:function(e){return a?r&&!i?l.a.createElement(m.Redirect,{to:{pathname:"/403"}}):l.a.createElement(t,e):l.a.createElement(m.Redirect,{to:{pathname:"/login",state:{from:e.location}}})}}))}n(36);var pn=n(13),mn=n.n(pn),gn=(n(128),n(95)),vn=n.n(gn),yn=en.a.Item,bn=function(e){function t(){return Ot()(this,t),_t()(this,Tt()(t).apply(this,arguments))}return Nt()(t,e),xt()(t,[{key:"validateFields",value:function(){return this.props.form.validateFields}},{key:"renderLabel",value:function(e){return"register"===this.props.type?"":e}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.isrootVsible,r=e.initialValue,o=this.props.form.getFieldDecorator,i=this.props.intl.formatMessage;return l.a.createElement(en.a,{layout:"vertical"},"post"===t||"register"===t?l.a.createElement(s.Fragment,null,l.a.createElement(yn,{label:this.renderLabel(i({id:"user.username"})),required:!0},o("username",{rules:[{required:!0}]})(l.a.createElement(Zt.a,{placeholder:i({id:"user.username"})}))),l.a.createElement(yn,{label:this.renderLabel(i({id:"user.password"})),required:!0},o("password",{rules:[{required:!0}]})(l.a.createElement(Zt.a,{type:"password",placeholder:i({id:"user.password"})})))):null,l.a.createElement(yn,{label:this.renderLabel(i({id:"user.dispname"})),required:!0},o("dispname",{initialValue:r.dispname,rules:[{required:!0}]})(l.a.createElement(Zt.a,{placeholder:i({id:"user.dispname"})}))),l.a.createElement(yn,{label:this.renderLabel(i({id:"user.phone"}))},o("phone",{initialValue:r.phone})(l.a.createElement(Zt.a,{placeholder:i({id:"user.phone"}),style:{width:"100%"}}))),l.a.createElement(yn,{label:this.renderLabel(i({id:"user.email"}))},o("email",{initialValue:r.email})(l.a.createElement(Zt.a,{placeholder:i({id:"user.email"})}))),l.a.createElement(yn,{label:this.renderLabel("im")},o("im",{initialValue:r.im})(l.a.createElement(Zt.a,{placeholder:"im"}))),n?l.a.createElement(yn,{label:this.renderLabel(i({id:"user.isroot"}))},o("is_root",{valuePropName:"checked",initialValue:1===r.is_root})(l.a.createElement(vn.a,{checkedChildren:l.a.createElement(wt.a,{type:"check"}),unCheckedChildren:l.a.createElement(wt.a,{type:"close"})}))):null)}}]),t}(s.Component);bn.defaultProps={type:"post",isrootVsible:!1,initialValue:{}};var wn=en.a.create()(Oe(bn));function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t{this.props.defaultMessage||pe(e);const{formatMessage:t=pr,textComponent:n=s.Fragment}=e||{},{id:r,description:o,defaultMessage:i,values:a,children:l,tagName:c=n}=this.props;let u=t({id:r,description:o,defaultMessage:i},a);return Array.isArray(u)||(u=[u]),"function"==typeof l?l(...u):c?s.createElement(c,null,...u):u})}}mr.displayName="FormattedMessage",mr.defaultProps={values:{}};var gr=mr,vr=n(40),yr=n.n(vr),br=n(9),wr=n.n(br),Er=n(193),Cr=n.n(Er),kr=n(97),Or=(n(315),wr()()),Sr=[{label:"1小时",labelEn:"1 hour",value:"3600000"},{label:"2小时",labelEn:"2 hours",value:"7200000"},{label:"1天",labelEn:"1 day",value:"86400000"},{label:"2天",labelEn:"2 days",value:"172800000"},{label:"7天",labelEn:"7 days",value:"604800000"}],xr={title:Mn.a.string,type:Mn.a.string,now:Mn.a.oneOfType([Mn.a.string,Mn.a.number]),start:Mn.a.oneOfType([Mn.a.string,Mn.a.number]),end:Mn.a.oneOfType([Mn.a.string,Mn.a.number]),comparison:Mn.a.arrayOf(Mn.a.string),comparisonOptions:Mn.a.array,relativeTimeComparison:Mn.a.bool,tag_id:Mn.a.number,fillNull:Mn.a.number,threshold:Mn.a.number,unit:Mn.a.string,yAxisMin:Mn.a.number,yAxisMax:Mn.a.number,outerChain:Mn.a.string,legend:Mn.a.bool,shared:Mn.a.bool,cf:Mn.a.string,timezoneOffset:Mn.a.string,origin:Mn.a.bool,metrics:Mn.a.arrayOf(Mn.a.shape({selectedEndpoint:Mn.a.array,selectedMetric:Mn.a.string,aggrFunc:Mn.a.string,aggrGroup:Mn.a.array,selectedTagkv:Mn.a.array,tagKv:Mn.a.array,counters:Mn.a.array}))},Pr={title:"",type:"chart",now:Or.clone().format("x"),start:Or.clone().subtract(36e5,"ms").format("x"),end:Or.clone().format("x"),comparisonOptions:Sr,threshold:void 0,legend:!1,shared:!1,metrics:[{selectedEndpoint:[],selectedMetric:"",aggrFunc:void 0,aggrGroup:[],selectedTagkv:[],consolFunc:"AVERAGE"}]},_r=["#3399CC","#CC9933","#9966CC","#66CC66","#CC3333","#99CCCC","#CCCC66","#CC99CC","#99CC99","#CC6666","#336699","#996633","#993399","#339966","#993333"],Ar={chart:{zoomType:"x",marginRight:10,marginTop:1,marginBottom:30,height:350,animation:!1,ignoreHiddenSeries:!1},time:{},title:{align:"left",x:0,style:{color:"#666",fontSize:12}},credits:{enabled:!1},xAxis:{labels:{enabled:!0,style:{color:"#999",fontSize:11}}},yAxis:{title:{text:""},opposite:!1,gridLineColor:"#f1f1f1",labels:{align:"left",x:0,style:{fontSize:11,color:"#999"}}},scrollbar:{enabled:!1},rangeSelector:{enabled:!1},exporting:{enabled:!1},navigator:{enabled:!1},plotOptions:{series:{animation:!1,turboThreshold:0,dataGrouping:{enabled:!1}}},tooltip:{dateTimeLabelFormats:{millisecond:"%Y-%m-%d %H:%M:%S",second:"%Y-%m-%d %H:%M:%S",minute:"%Y-%m-%d %H:%M:%S",hour:"%Y-%m-%d %H:%M:%S",day:"%Y-%m-%d %H:%M:%S",week:"%Y-%m-%d %H:%M:%S",month:"%Y-%m-%d %H:%M:%S",year:"%Y-%m-%d %H:%M:%S"},animation:!1,valueDecimals:3,backgroundColor:null,borderWidth:0,shadow:!1,useHTML:!0,shared:!1,split:!1},series:[]},Tr=[{label:"1小时",value:"3600000"},{label:"2小时",value:"7140000"},{label:"1天",value:"86400000"},{label:"2天",value:"172800000"},{label:"7天",value:"604800000"},{label:"30天",value:"2592000000"},{label:"其它",value:"custom"}],Mr=[{label:"求和",value:"sum"},{label:"均值",value:"avg"},{label:"最大值",value:"max"},{label:"最小值",value:"min"}],Nr={moment:"YYYY-MM-DD HH:mm:ss",antd:"yyyy-MM-dd HH:mm:ss"},Dr=2e3,jr=Mn.a.arrayOf(Mn.a.shape({ns:Mn.a.string,metric:Mn.a.string,counter:Mn.a.string}));function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lr(e){return Number(e.substring(0,e.length-3))}function $r(e,t){var n=function(e){var t=[0];return tt.a.each(e,(function(e){t.push(Lr(String(e)))})),t}(e.comparison),r=tt.a.get(e,"metrics[0]",{}),o=r.aggrFunc,i=r.aggrGroup,a=r.consolFunc,s=Lr(tt.a.toString(e.start)),l=Lr(tt.a.toString(e.end));return tt.a.map(t,(function(e){return function(e){for(var t=1;t-1&&(l=",".concat(e.counter.substring(e.counter.indexOf("/")+1)));var c="".concat(n).concat(l),u={id:c,name:c,tags:c,data:e.values,lineWidth:2,color:a,oldColor:a,comparison:i};o.push(u)})),o}var Vr=n(194),Br=n.n(Vr),Wr="YYYY-MM-DD HH:mm:ss";function Hr(e){var t=e.chartWidth,n=e.isComparison,r=e.points,o=tt.a.orderBy(r,(function(e){var t=e.series;if(n){var r=(t?t.userOptions:{comparison:0}).comparison;return Number(r)||0}return tt.a.get(t,"userOptions.tags")})),i="";return i+=function(e){var t=e.points,n=wr()(t[0].timestamp).format(Wr);return''.concat(n,"
")}(e),tt.a.each(o,(function(t){i+=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.color,r=e.filledNull,o=e.serieOptions,i=void 0===o?{}:o,a=e.timestamp,s=t.comparison,l=t.isComparison,c=i.tags,u=Br()(e.value).format("0,0[.]000"),d=c;if(d=tt.a.chain(d).replace("<","<").replace(">",">").value(),l){var f=i.comparison&&"number"==typeof i.comparison?wr()(a).subtract(i.comparison,"seconds"):wr()(a),h=tt.a.every(s,(function(e){return tt.a.isInteger(Number(e)/864e5)}));if(h){var p=f.format("YYYY-MM-DD");d="".concat(p)}else{var m=f.format(Wr);d="".concat(m," ").concat(d)}}return'\n ').concat(d,":").concat(u).concat(r?"(空值填补,仅限看图使用)":"","
")}(t,e)})),'
').concat(i,"
")}function zr(e,t,n){var r=Number(t)-Number(e),o=tt.a.find(Tr,{value:tt.a.toString(r)});return o?o[n]:"label"===n?"自定义":"custom"}function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];tt.a.each(e,(function(e){var n=e.tagkv,r=void 0===n?[]:n;tt.a.each(r,(function(e){var n=e.tagk,r=e.tagv,o=void 0===r?[]:r,i=tt.a.filter(o,(function(e){return e})),a=tt.a.find(t,{tagk:n});a?a.tagv=tt.a.sortBy(tt.a.union(a.tagv,i)):t.push({tagk:n,tagv:tt.a.sortBy(i)})}))}));var n=tt.a.remove(t,(function(e){return"host"===e.tagk}));return t=tt.a.sortBy(t,"tagk"),n&&n.length&&t.unshift(n[0]),t}function Ur(e,t,n){var r=t.replace(e,""),o=new RegExp(r);return tt.a.filter(n,(function(t){return"=all"===e||("=+"===e?o.test(t):"=-"===e&&!o.test(t))}))}function Gr(e,t){var n=t.tagk,r=t.tagv,o=void 0===r?[""]:r,i=(tt.a.find(e,{tagk:n})||{}).tagv||[],a=o,s=o[0]||"";return 0===s.indexOf("=all")?a=tt.a.includes(i,"")?tt.a.filter(i,(function(e){return""!==e})):i:0===s.indexOf("=+")?a=Ur("=+",s,i):0===s.indexOf("=-")&&(a=Ur("=-",s,i)),a}var qr=["=all","=+","=-"];function Yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return tt.a.some(e,(function(e){return tt.a.isObject(e)&&tt.a.isArray(e.tagv)?tt.a.some(e.tagv,(function(e){return!!tt.a.isString(e)&&Jr(e)})):!!tt.a.isString(e)&&Jr(e)}))}function Jr(e){return tt.a.some(qr,(function(t){return 0===e.indexOf(t)}))}function Xr(e){if(!e)return e;var t=tt.a.noop;try{t=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare}catch(e){console.error(e)}return function(e,t){return tt.a.map(e,(function(e){return e&&e.tagv&&0!==e.tagv.length?(e.tagv=e.tagv.sort((function(e,n){return t(e,n)})),e):e}))}(e,t)}function Zr(e,t,n){return tt.a.isEqualWith(e,t,(function(e,t,r){if(void 0!==r)return tt.a.isEqual(e[n],t[n])}))}function Qr(e,t){var n=t.threshold,r=t.yAxisMin,o=t.yAxisMax,i=tt.a.clone(e);return null!=n?i.plotLines=[{value:n,color:"red"}]:delete i.plotLines,null!=r&&null!=o?(i.min=r,i.max=o):(delete i.min,delete i.max),i}function eo(e){return{metrics:"".concat(gt.graphIndex,"/metrics"),tagkv:"".concat(gt.graphIndex,"/tagkv"),counter:"".concat(gt.graphIndex,"/counter/fullmatch"),history:"".concat(gt.graphTransfer,"/data/ui")}[e]}function to(e){return"=all"===e?"=all":0===e.indexOf("=+")?"=+":0===e.indexOf("=-")?"=-":void 0}function no(e){return Vt("".concat(gt.endpoint,"s/bynodeids?ids=").concat(e),void 0,!1).then((function(e){return tt.a.map(e,"ident")}))}function ro(e,t){Yr(e)&&(e=Ur(to(e[0]),e[0],t));return Vt(eo("metrics"),{method:"POST",body:JSON.stringify({endpoints:e})},!1).then((function(e){return tt.a.chain(e.metrics).compact().flattenDeep().union().sortBy((function(e){return tt.a.lowerCase(e)})).value()}))}function oo(e,t,n){Yr(e)&&(e=Ur(to(e[0]),e[0],n));return Vt(eo("tagkv"),{method:"POST",body:JSON.stringify({endpoints:tt.a.isArray(e)?e:[e],metrics:tt.a.isArray(t)?t:[t]})},!1).then((function(e){var t=[];return tt.a.each(e,(function(e){var r=e.tagkv;t=[{tagk:"endpoint",tagv:n}].concat(dr()(r||[]))})),t}))}function io(e){return Vt(eo("counter"),{method:"POST",body:JSON.stringify(e)},!1)}function ao(e,t){return so.apply(this,arguments)}function so(){return(so=ft()(ut.a.mark((function e(t,n){var r,o,i,a,s,l,c,u,d,f,h;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=tt.a.cloneDeep(t),o=!1,i=0;case 3:if(!(i0&&void 0!==arguments[0]?arguments[0]:[],t=tt.a.map(e,(function(e){var t=e.id,n=e.metric,r=e.tags,o=e.data,i=e.comparison,a=_o(o);return{id:t,metric:n,tags:r,comparison:i,last:a.last,avg:a.avg,max:a.max,min:a.min,sum:a.sum,color:e.color}}));return tt.a.orderBy(t,"counter")}(e);return tt.a.filter(r,(function(e){return e.tags.match(n)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.comparisonOptions,r=t.onSelectedChange,o=this.state,i=o.searchText,a=o.selectedKeys,s=o.highlightedKeys,c=s,u=this.filterData(),d=u[0],f=[{title:l.a.createElement("span",null," Series(",u.length,") "),dataIndex:"tags",filterDropdown:l.a.createElement("div",{className:"custom-filter-dropdown"},l.a.createElement(Zt.a,{placeholder:"Input serie name",value:i,onChange:this.handleInputChange,onPressEnter:this.handleSearch}),l.a.createElement(rt.a,{type:"primary",onClick:this.handleSearch},"Search")),filterDropdownVisible:this.state.filterDropdownVisible,onFilterDropdownVisibleChange:function(t){return e.setState({filterDropdownVisible:t})},render:function(t,r){var o=function(e,t,n){var r=e.tags,o=e.comparison,i=r;if(o&&"number"==typeof o){var a=tt.a.find(t,{value:"".concat(o,"000")});if(a&&a.label){var s="en"===n.locale?a.labelEn:"环比".concat(a.label);i+=" ".concat(s)}}if(i.length>80){var l=i.substr(0,40),c=i.substr(-40);i="".concat(l,"......").concat(c)}return i}(r,n,e.props.intl);return l.a.createElement("span",{title:t,onClick:function(){return e.handleClickCounter(r)},onContextMenu:function(n){return e.handleContextMenu(n,t)},style:{cursor:"pointer",opacity:c.length?tt.a.includes(c,r.id)?1:.5:1}},l.a.createElement("span",{style:{color:r.color}},"● "),o)}},{title:"Max",dataIndex:"max",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},e)},sorter:function(e,t){return Number(e.max)-Number(t.max)}},{title:"Min",dataIndex:"min",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},e)},sorter:function(e,t){return Number(e.min)-Number(t.min)}},{title:"Avg",dataIndex:"avg",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},null!==e?e:"null")},sorter:function(e,t){return Number(e.avg)-Number(t.avg)}},{title:"Sum",dataIndex:"sum",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},null!==e?e:"null")},sorter:function(e,t){return Number(e.sum)-Number(t.sum)}},{title:"Last",dataIndex:"last",className:"alignRight",width:100,render:function(e){return l.a.createElement("span",{style:{paddingRight:10}},null!==e?e:"null")},sorter:function(e,t){return Number(e.last)-Number(t.last)}}],h={selectedRowKeys:"normal"===a?tt.a.map(u,(function(e){return e.id})):a,onChange:function(t){e.setState({selectedKeys:t},(function(){r(t,s)}))}};return!1===tt.a.get(d,"isSameMetric")&&f.unshift({title:"Metric",dataIndex:"metric",width:60}),l.a.createElement("div",{className:"graph-legend",style:ko({},this.props.style,{margin:"0 5px 5px 5px"})},l.a.createElement(mo.a,{rowKey:function(e){return"".concat(e.id,"-").concat(e.comparison)},size:"middle",rowSelection:h,columns:f,dataSource:u,pagination:!1,scroll:{y:220}}),l.a.createElement(Eo,{visible:this.state.contextMenuVisiable,left:this.state.contextMenuLeft,top:this.state.contextMenuTop},l.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-vertical ant-dropdown-menu-light ant-dropdown-menu-root"},l.a.createElement("li",{className:"ant-dropdown-menu-item"},l.a.createElement("a",{onClick:this.handleCopyCounter},"copy counter")))))}}]),t}(s.Component);function So(e,t){return"normal"===t||tt.a.includes(t,tt.a.get(e,"id"))}function xo(e,t,n){return t.length&&!tt.a.includes(t,tt.a.get(e,"id"))?bo()(n).lighten(.5).desaturate(.7).hex():n}function Po(e,t,n,r){return tt.a.includes(t,tt.a.get(e,"id"))?n+r:r}function _o(e){var t=null,n=null,r=null,o=null,i=null,a=0;return tt.a.isArray(e)?(tt.a.forEach(e,(function(e){var n=tt.a.get(e,"[0]"),s=tt.a.get(e,"[1]");"number"==typeof n&&"number"==typeof s&&(null===i&&(i=0),i+=s,(null===r||rs)&&(o=s),t=s,a++)})),tt.a.isNumber(i)&&(n=i/a),"number"==typeof t&&(t=Number(Number(t).toFixed(3))),"number"==typeof n&&(n=Number(Number(n).toFixed(3))),"number"==typeof r&&(r=Number(Number(r).toFixed(3))),"number"==typeof o&&(o=Number(Number(o).toFixed(3))),"number"==typeof i&&(i=Number(Number(i).toFixed(3))),{last:t,avg:n,max:r,min:o,sum:i}):{last:t,avg:n,max:r,min:o,sum:i}}Oo.defaultProps={style:{},series:[],onSelectedChange:tt.a.noop};var Ao=Oe(Oo),To=function(e){function t(){return Ot()(this,t),_t()(this,Tt()(t).apply(this,arguments))}return Nt()(t,e),xt()(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.selectedMetric,r=t;return t||(r=n),l.a.createElement("div",{className:"graph-title"},l.a.createElement("div",{title:r,style:{width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},r))}}]),t}(s.Component);To.defaultProps={title:"",selectedMetric:""};n(87);var Mo=n(57),No=n.n(Mo),Do=function(e){function t(){return Ot()(this,t),_t()(this,Tt()(t).apply(this,arguments))}return Nt()(t,e),xt()(t,[{key:"shouldComponentUpdate",value:function(e){return!tt.a.isEqual(e,this.props)}},{key:"getContent",value:function(){var e=this.props,t=e.graphConfig,n=e.counterList,r=t.unit,o=t.start,i=t.end,a=tt.a.groupBy(n,"metric");return tt.a.map(a,(function(e,t){var n=e[0]||{};return l.a.createElement("ul",{className:"graph-info",key:t},l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Metric:"),l.a.createElement("span",{className:"graph-info-value"},t)),l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Step:"),l.a.createElement("span",{className:"graph-info-value"},n.step?"".concat(n.step," s"):"无")),l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Time:"),l.a.createElement("span",{className:"graph-info-value"},wr()(Number(o)).format(Nr.moment),l.a.createElement("span",null," - "),wr()(Number(i)).format(Nr.moment))),r?l.a.createElement("li",null,l.a.createElement("span",{className:"graph-info-key"},"Unit:"),l.a.createElement("span",{className:"graph-info-value"},r)):null)}))}},{key:"render",value:function(){return l.a.createElement(No.a,{trigger:"click",content:this.getContent(),placement:"topLeft"},this.props.children)}}]),t}(s.Component),jo=function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=(r-1)*o&&t500&&(i=i.splice(0,500),mn.a.warning("Can only select a maximum of 500")),o&&(i=tt.a.uniq(t.concat(n.filterData()))),n.setState({selected:i},(function(){n.props.onSelectAll.call(Uo()(n),i),n.props.onChange.call(Uo()(n),i)}))},n.search=function(e){var t=e.target.value;n.setState({searchVal:t,current:1},(function(){n.props.onSearch.call(Uo()(n),t,n.filterData())}))},n.paginationChange=function(e){n.setState({current:e})},n.createSelectedList=function(){var e=n.state.selected,t=tt.a.filter(e,(function(e,t){return t=(o-1)*i&&t-1},l.a.createElement("span",{title:e,className:"multipicker-tagItem",style:{maxWidth:a-70}},e))))})),s},n.state={current:1,width:400,searchVal:"",manualVisible:!1,manualVal:"",selected:[]},n}return Nt()(t,e),xt()(t,[{key:"componentWillMount",value:function(){this.initialState(this.props)}},{key:"componentDidMount",value:function(){var e=this.multipicker.clientWidth;this.setState({width:e})}},{key:"componentWillReceiveProps",value:function(e){this.initialState(e)}},{key:"getSelected",value:function(){return tt.a.clone(this.state.selected)}},{key:"setSelected",value:function(e){this.setState({selected:e})}},{key:"initialState",value:function(e){var t=e.data,n=e.defaultPageSize,r=e.selected;this.setState({data:tt.a.uniq(t),defaultPageSize:n,selected:r})}},{key:"filterData",value:function(){var e=this.state,t=e.data,n=e.searchVal;try{var r=new RegExp(n,"i");return tt.a.filter(t,(function(e){return r.test(e)}))}catch(e){return[]}}},{key:"render",value:function(){var e=this,t=this.props.manualEntry,n=this.state,r=n.current,o=n.defaultPageSize,i=n.selected,a=void 0===i?[]:i,s=this.filterData();return l.a.createElement("div",{className:"multipicker-panel",ref:function(t){e.multipicker=t},style:{width:this.props.width}},l.a.createElement("div",{className:"multipicker-selected-list-box"},l.a.createElement(sr.a,null,l.a.createElement(cr.a,{span:14},l.a.createElement("strong",null,l.a.createElement(gr,{id:"select.selected"}),"(",a.length,"):"),l.a.createElement("a",{className:"remove-all",onClick:this.removeAll},l.a.createElement(gr,{id:"select.selected.clear"})),t&&l.a.createElement(No.a,{placement:"topLeft",trigger:"click",visible:this.state.manualVisible,onVisibleChange:function(t){e.setState({manualVisible:t})},content:l.a.createElement("div",null,l.a.createElement(Go,{type:"textarea",autosize:{minRows:2,maxRows:6},style:{width:230},placeholder:"多个值用换行分割",value:this.state.manualVal,onChange:function(t){e.setState({manualVal:t.target.value})}}),l.a.createElement("div",{style:{marginTop:5}},l.a.createElement(rt.a,{size:"small",onClick:this.handleManualEntry},"Ok")))},l.a.createElement("a",{style:{paddingLeft:10},onClick:function(){e.setState({manualVisible:!e.state.manualVisible})}},l.a.createElement(gr,{id:"select.manual.input"}))))),l.a.createElement("ul",{className:"multipicker-selected-list"},this.createSelectedList())),l.a.createElement("div",{className:"multipicker-option-list-box"},l.a.createElement(sr.a,null,l.a.createElement(cr.a,{span:16},l.a.createElement("strong",null,l.a.createElement(gr,{id:"select.total"}),"(",s.length,"):"),l.a.createElement("a",{className:"select-all-currentPage",onClick:this.currentPageSelectAll,style:{paddingRight:10}},l.a.createElement(gr,{id:"select.current.page"})),l.a.createElement("a",{className:"select-all",onClick:this.selectAll},l.a.createElement(gr,{id:"select.all"}))),l.a.createElement(cr.a,{span:8},l.a.createElement("div",{className:"multipicker-search"},l.a.createElement(Zt.a,{size:"small",type:"text",className:"keyword",placeholder:"support regular",onChange:this.search})))),l.a.createElement("ul",{className:"multipicker-option-list"},this.createOptionList(s)),l.a.createElement("div",{style:{marginTop:10,textAlign:"center"}},l.a.createElement(Wo.a,{size:"small",current:r,defaultPageSize:o,total:s.length,onChange:this.paginationChange}))))}}]),t}(s.Component);qo.propTypes={width:Mn.a.oneOfType([Mn.a.string,Mn.a.number]),data:Mn.a.array,selected:Mn.a.array,selectedMaxDisplayNum:Mn.a.number,manualEntry:Mn.a.bool,defaultPageSize:Mn.a.number,onChange:Mn.a.func,onRemoveAll:Mn.a.func,onCurrentPageSelectAll:Mn.a.func,onSelectAll:Mn.a.func,onSearch:Mn.a.func,onSelectedClick:Mn.a.func},qo.defaultProps={width:400,data:[],selected:[],selectedMaxDisplayNum:100,manualEntry:!1,defaultPageSize:5,onChange:function(){},onRemoveAll:function(){},onCurrentPageSelectAll:function(){},onSelectAll:function(){},onSearch:function(){},onSelectedClick:function(){}};var Yo=qo,Jo=function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i")?tt.a.filter(e,(function(e){return""!==e})):e;if(0===n.indexOf("=+")){var r=n.substring(2);return tt.a.filter(e,(function(e){return e.indexOf(r)>-1}))}if(0===n.indexOf("=-")){var o=n.substring(2);return tt.a.filter(e,(function(e){return-1===e.indexOf(o)}))}return t}return t},n.dynamicSwitchChange=function(e){n.setState({dynamicSwitch:e})},n}return Nt()(t,e),xt()(t,[{key:"componentWillMount",value:function(){this.preSetState(this.props)}},{key:"componentWillReceiveProps",value:function(e){tt.a.isEqual(e.data,this.props.data)&&tt.a.isEqual(e.selectedTagkv,this.props.selectedTagkv)||this.preSetState(e)}},{key:"hide",value:function(e){var t="".concat(e,"visible");this.setState(pt()({},t,!1))}},{key:"show",value:function(e){var t="".concat(e,"visible");this.setState(pt()({},t,!0))}},{key:"submit",value:function(e){var t=this.state.selectedTagkv,n=this.props.onChange,r=this.refs["".concat(e,"multipicker")].getSelected();this.hide(e),n(e,r,t)}},{key:"handleVisibleChange",value:function(e,t){e?this.show(t):(this.submit(t),this.hide(t))}},{key:"dynamicSelect",value:function(e,t,n){var r,o=this.state.selectedTagkv,i=tt.a.findIndex(o,{tagk:e});"=all"===t?r=["=all"]:"=+"===t?r=["=+".concat(n)]:"=-"===t&&(r=["=-".concat(n)]),this.setState(yr()(this.state,{selectedTagkv:{$splice:[[i,1,{tagk:e,tagv:r}]]}}))}},{key:"multipickerChange",value:function(e,t){var n=this.state.selectedTagkv,r=tt.a.findIndex(n,{tagk:e});Yr(t)&&t.splice(0,1),this.setState(yr()(this.state,{selectedTagkv:{$splice:[[r,1,{tagk:e,tagv:t}]]}}))}},{key:"preSetState",value:function(e){var t=e.data,n=e.selectedTagkv,r=Xr(tt.a.cloneDeep(t));this.setState({data:r,selectedTagkv:tt.a.cloneDeep(n)})}},{key:"render",value:function(){var e=this,t=this.props.type,n=this.state,r=n.data,o=n.selectedTagkv,i=n.dynamicSwitch;return l.a.createElement("div",{style:{position:"relative"}},tt.a.map(r,(function(n){var r,a=n.tagk,s=n.tagv,c=void 0===s?[]:s,u=tt.a.find(o,{tagk:a}),d=u?u.tagv:[],f=e.getRealSelectedTagv(c,d),h=l.a.createElement("span",null,l.a.createElement(Yo,{ref:"".concat(a,"multipicker"),dynamic:!0,data:c,selected:d,onChange:function(t){return e.multipickerChange(a,t)}}),l.a.createElement("div",{style:{marginTop:10,textAlign:"center"}},l.a.createElement(rt.a.Group,null,l.a.createElement(rt.a,{onClick:function(){return e.hide(a)}},"Cancel"),l.a.createElement(rt.a,{type:"primary",onClick:function(){return e.submit(a)}},"Ok"))),l.a.createElement("div",{ref:"".concat(a,"dynamic"),style:{position:"absolute",top:41,right:18}},i?l.a.createElement("span",null,l.a.createElement("span",null,l.a.createElement(gr,{id:"select.dynamic"}),": "),l.a.createElement("a",{onClick:function(){return e.dynamicSelect(a,"=all")}},l.a.createElement(gr,{id:"select.all"})),l.a.createElement("span",{className:"ant-divider"}),l.a.createElement(No.a,{trigger:"click",content:l.a.createElement("div",{style:{width:200}},l.a.createElement(Zt.a,{placeholder:"Press enter to submit",onKeyDown:function(t){13===t.keyCode&&e.dynamicSelect(a,"=+",t.target.value)}})),getTooltipContainer:function(){return e.refs["".concat(a,"dynamic")]}},l.a.createElement("a",null,l.a.createElement(gr,{id:"select.include"}))),l.a.createElement("span",{className:"ant-divider"}),l.a.createElement(No.a,{trigger:"click",content:l.a.createElement("div",{style:{width:200}},l.a.createElement(Zt.a,{placeholder:"请输入关键词,Enter键提交",onKeyDown:function(t){13===t.keyCode&&e.dynamicSelect(a,"=-",t.target.value)}})),getTooltipContainer:function(){return e.refs["".concat(a,"dynamic")]}},l.a.createElement("a",null,l.a.createElement(gr,{id:"select.exclude"})))):l.a.createElement("div",null,l.a.createElement(gr,{id:"select.dynamic"})," ",l.a.createElement(vn.a,{onChange:e.dynamicSwitchChange,size:"small"}))));return r="popover"===t?l.a.createElement(No.a,{key:a,content:h,title:a,trigger:"click",visible:!!e.state["".concat(a,"visible")],onVisibleChange:function(t){return e.handleVisibleChange(t,a)}},e.props.renderItem(a,c,f)):l.a.createElement("div",null,l.a.createElement(vo.a,{title:a,width:450,wrapClassName:"tagkvModal",visible:!!e.state["".concat(a,"visible")],closable:!1,onCancel:function(){e.hide("tagk")},footer:[]},h),e.props.renderItem(a,c,d,e.show.bind(e))),e.props.wrapInner&&(r=e.props.wrapInner(r,a,c,d)),r})))}}]),t}(s.Component);Jo.defaultProps={data:[],selectedTagkv:[],type:"popover",wrapInner:void 0};n(89);var Xo=n(56),Zo=n.n(Xo);function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t-1?t.length?yr()(a.selectedTagkv,{$splice:[[s,1,{tagk:e,tagv:t}]]}):yr()(a.selectedTagkv,{$splice:[[s,1]]}):t.length?yr()(a.selectedTagkv,{$push:[{tagk:e,tagv:t}]}):a.selectedTagkv,"endpoint"===e&&(c=t),i("update",o.id,{metrics:[ai({},o.metrics[0],{selectedTagkv:l,selectedEndpoint:c})]})},n}return Nt()(t,e),xt()(t,[{key:"dateChange",value:function(e,t){var n=this.props,r=n.data,o=n.onChange,i=r.start,a=r.end;if(wr.a.isMoment(t)){var s=t.format("x");"start"===e&&(i=s),"end"===e&&(a=s),o("update",r.id,{start:i,end:a})}}},{key:"renderTagkv",value:function(){var e=this.props.data.metrics;if(1===e.length){var t=e[0]||{};return l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Jo,{data:t.tagkv,selectedTagkv:t.selectedTagkv,onChange:this.tagkvChange,renderItem:function(e,t,n){return l.a.createElement(rt.a,{size:"small",type:"ghost",style:{marginRight:10}},0!==tt.a.size(n)?e+"("+tt.a.size(n)+")":e,l.a.createElement(wt.a,{type:"down"}))}}))}return null}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.onChange,o=n.now,i=n.start,a=n.end,s=n.comparison,c=o===a?zr(i,a,"label"):"其他",u=o===a?zr(i,a,"value"):"custom",d=wr()(Number(i)).format(Nr.moment),f=wr()(Number(a)).format(Nr.moment),h=tt.a.map(tt.a.get(n.metrics,"[0].tagkv"),(function(e){return{label:e.tagk,value:e.tagk}}));return l.a.createElement("div",{className:"graph-config-inner"},l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(rt.a,{size:"small",type:"ghost",onClick:this.refresh},l.a.createElement(gr,{id:"graph.refresh"}))),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Vo.a,{size:"small",style:{width:70},value:l.a.createElement(gr,{id:c}),onChange:this.timeOptionChange},tt.a.map(Tr,(function(e){return l.a.createElement(si,{key:e.value,value:e.value},l.a.createElement(gr,{id:e.label}))}))),"custom"===u&&l.a.createElement("span",{style:{display:"inline-block",paddingLeft:10,lineHeight:"22px",verticalAlign:"top"}},l.a.createElement(Fo.a,{showTime:!0,size:"small",key:"datePickerStart",style:{width:165,minWidth:165},format:Nr.moment,defaultValue:wr()(d),onOk:function(t){return e.dateChange("start",t)}}),l.a.createElement("span",{key:"datePickerDivider",style:{paddingLeft:5,paddingRight:5}},"-"),l.a.createElement(Fo.a,{showTime:!0,size:"small",key:"datePickerEnd",style:{width:165,minWidth:165},format:Nr.moment,defaultValue:wr()(f),onOk:function(t){return e.dateChange("end",t)}}))),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(gr,{id:"graph.config.aggr"}),":",l.a.createElement(Vo.a,{allowClear:!0,size:"small",style:{width:85},placeholder:"无",value:tt.a.get(n.metrics,"[0].aggrFunc"),onChange:this.handleAggrFuncChange},l.a.createElement(si,{value:"sum"},l.a.createElement(gr,{id:"graph.config.aggr.sum"})),l.a.createElement(si,{value:"avg"},l.a.createElement(gr,{id:"graph.config.aggr.avg"})),l.a.createElement(si,{value:"max"},l.a.createElement(gr,{id:"graph.config.aggr.max"})),l.a.createElement(si,{value:"min"},l.a.createElement(gr,{id:"graph.config.aggr.min"})))),tt.a.get(n.metrics,"[0].aggrFunc")?l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Lo.a,{title:"按照某个 tag 聚合出多条曲线"},l.a.createElement("span",null,l.a.createElement(gr,{id:"graph.config.aggr.group"}),":")),l.a.createElement(Vo.a,{mode:"multiple",size:"small",style:{minWidth:60},dropdownMatchSelectWidth:!1,value:tt.a.get(n.metrics,"[0].aggrGroup",[]),onChange:function(e){r("update",n.id,{metrics:[ai({},n.metrics[0],{aggrGroup:e})]})}},tt.a.map(h,(function(e){return l.a.createElement(si,{key:e.value,value:e.value},e.label)})))):null,l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(gr,{id:"graph.config.comparison"}),":",l.a.createElement(oi,{comparison:s,relativeTimeComparison:n.relativeTimeComparison,comparisonOptions:n.comparisonOptions,graphConfig:n,onChange:this.handleComparisonChange}),l.a.createElement("input",{style:{position:"fixed",left:-1e4},id:"hiddenInput".concat(n.id)})),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Jt.a,{checked:!!n.legend,onChange:this.legendChange},"Legend")),l.a.createElement("div",{className:"graph-config-inner-item"},l.a.createElement(Jt.a,{checked:!!n.shared,onChange:this.sharedChange},"Multi")),this.renderTagkv())}}]),t}(s.Component);function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;tt&&(n=l.a.createElement("span",{className:"counters-maxLength"},"Too many series,Current",e.length,"cap",t,",Please reduce the number of series")),n}},{key:"initHighcharts",value:function(e,t){var n=this,r=this.getGraphConfig(e.data),o={timestamp:"x",chart:{height:e.height,renderTo:this.graphWrapEle},xAxis:r.xAxis,yAxis:Qr({},r),tooltip:{shared:r.shared,formatter:function(e){return Hr({points:e,chartWidth:n.graphWrapEle.offsetWidth-40,comparison:r.comparison,isComparison:!!tt.a.get(r.comparison,"length")})}},series:t,legend:{enabled:!1},onZoom:function(e){n.getZoomedSeries=e,n.forceUpdate()}};this.chart||(this.props.onWillInit(o),this.chart=new Cr.a(o),this.props.onDidInit(this.chart,o))}},{key:"updateHighcharts",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.data,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.series;if(this.chart){t=this.getGraphConfig(t);var r={yAxis:Qr(this.chart.options.yAxis,t),tooltip:{xAxis:t.xAxis,shared:t.shared,formatter:function(n){return Hr({points:n,chartWidth:e.graphWrapEle.offsetWidth-40,comparison:t.comparison,isComparison:!!tt.a.get(t.comparison,"length")})}},series:n};this.props.onWillUpdate(this.chart,r),this.chart.update(r),this.props.onDidUpdate(this.chart,r)}else this.initHighcharts(this.props)}},{key:"render",value:function(){var e=this,t=this.state,n=t.spinning,r=t.errorText,o=t.isOrigin,i=this.props,a=i.height,s=i.onChange,c=i.extraRender,u=i.data,d=this.getGraphConfig(u);return l.a.createElement("div",{className:d.legend?"graph-container graph-container-hasLegend":"graph-container"},l.a.createElement("div",{className:"graph-header",style:{height:this.headerHeight,lineHeight:"".concat(this.headerHeight,"px")}},l.a.createElement("div",{className:"graph-extra"},l.a.createElement("div",{style:{display:"inline-block"}},this.props.useDragHandle?l.a.createElement(di,null):null,tt.a.isFunction(c)?c(this):l.a.createElement(jo,{graphConfig:d,counterList:this.counterList,onOpenGraphConfig:this.props.onOpenGraphConfig,moreList:this.props.extraMoreList}))),l.a.createElement(To,{title:u.title,selectedNs:tt.a.reduce(d.metrics,(function(e,t){return tt.a.concat(e,t.selectedNs)}),[]),selectedMetric:tt.a.reduce(d.metrics,(function(e,t){return tt.a.concat(e,t.selectedMetric)}),[]),metricMap:this.props.metricMap})),this.props.graphConfigInnerVisible?l.a.createElement(li,{isOrigin:o,data:d,onChange:s}):null,l.a.createElement(Yn.a,{spinning:n},l.a.createElement("div",{style:{height:a,display:r?"block":"none"}},r?l.a.createElement("div",{className:"graph-errorText"},r):null),l.a.createElement("div",{className:"graph-content",ref:function(t){e.graphWrapEle=t},style:{height:a,backgroundColor:"#fff",display:r?"none":"block"}})),l.a.createElement(Ao,{style:{display:d.legend?"block":"none"},series:this.getZoomedSeries(),onSelectedChange:this.handleLegendRowSelectedChange,comparisonOptions:d.comparisonOptions}))}}]),t}(s.Component);fi.defaultProps={height:350,graphConfigInnerVisible:!0,extraRender:void 0,extraMoreList:void 0,metricMap:void 0,onChange:tt.a.noop,onWillInit:tt.a.noop,onDidInit:tt.a.noop,onWillUpdate:tt.a.noop,onDidUpdate:tt.a.noop,onOpenGraphConfig:tt.a.noop},fi.setOptions=function(e){window.OdinGraphOptions=e};n(77);var hi=n(50),pi=n.n(hi);function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t-1?o.length?a.selectedTagkv=yr()(a.selectedTagkv,{$splice:[[l,1,{tagk:r,tagv:o}]]}):a.selectedTagkv=yr()(a.selectedTagkv,{$splice:[[l,1]]}):o.length&&(a.selectedTagkv=yr()(a.selectedTagkv,{$push:[{tagk:r,tagv:o}]})),n.setState(yr()(n.state,{graphConfig:{metrics:{$splice:[[s,1,a]]}}})),e.prev=6,n.setLoading(!0),e.next=10,n.fetchCounterList(a);case 10:n.setLoading(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(6),console.error(e.t0),n.setLoading(!1);case 17:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(t,n,r){return e.apply(this,arguments)}}(),n.handleAggregateChange=function(e,t){var r=n.state.graphConfig.metrics,o=tt.a.cloneDeep(tt.a.find(r,{selectedMetric:e})),i=tt.a.findIndex(r,{selectedMetric:e});o.aggrFunc=t,n.setState(yr()(n.state,{graphConfig:{metrics:{$splice:[[i,1,o]]}}}))},n.handleconsolFuncChange=function(e,t){var r=n.state.graphConfig.metrics,o=tt.a.cloneDeep(tt.a.find(r,{selectedMetric:e})),i=tt.a.findIndex(r,{selectedMetric:e});o.consolFunc=t,n.setState(yr()(n.state,{graphConfig:{metrics:{$splice:[[i,1,o]]}}}))},n.handleAggregateDimensionChange=function(e,t){var r=n.state.graphConfig.metrics,o=tt.a.cloneDeep(tt.a.find(r,{selectedMetric:e})),i=tt.a.findIndex(r,{selectedMetric:e});o.aggrGroup=t,n.setState(yr()(n.state,{graphConfig:{metrics:{$splice:[[i,1,o]]}}}))},n.handleSubclassChange=function(e){n.setState(yr()(n.state,{graphConfig:{subclassId:{$set:e}}}))},n.handleTitleChange=function(e){n.setState(yr()(n.state,{graphConfig:{title:{$set:e.target.value}}}))},n.handleTimeOptionChange=function(e){var t=wr()(),r=n.state.graphConfig,o=r.start,i=r.end;"custom"!==e?(o=t.clone().subtract(Number(e),"ms").format("x"),i=t.format("x")):(o=wr()(Number(o)).format("x"),i=wr()().format("x")),n.setState(yr()(n.state,{graphConfig:{start:{$set:o},end:{$set:i},now:{$set:i}}}))},n.handleDateChange=function(e,t){var r=wr.a.isMoment(t)?t.format("x"):null;n.setState(yr()(n.state,{graphConfig:pt()({},e,{$set:r})}))},n.handleThresholdChange=function(e){n.setState(yr()(n.state,{graphConfig:{threshold:{$set:e}}}))};var r,o=e.data,i=(r=o.metrics,tt.a.isEmpty(r)?[{key:tt.a.uniqueId("METRIC_"),selectedNid:void 0,selectedMetric:""}]:tt.a.map(r,(function(e){return gi({},e,{key:e.selectedMetric||tt.a.uniqueId("METRIC_")})})));return n.state={graphConfig:gi({},Pr,{},e.data,{metrics:i}),loading:!1,tableEmptyText:"No data",nsSearchVal:"",counterListVisible:!1,advancedVisible:!1,treeData:void 0,originTreeData:void 0},n}var n,r,o,i,a;return Nt()(t,e),xt()(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchTreeData((function(){e.fetchAllByMetric()}))}},{key:"setLoading",value:function(e){this.setState({loading:e}),this.props.btnDisable(e)}},{key:"getColumns",value:function(){return[{title:"曲线",dataIndex:"counter"},{title:"周期",dataIndex:"step",width:45,render:function(e){return l.a.createElement("span",null,e,"s")}}]}},{key:"fetchTreeData",value:function(e){var t=this;Vt(gt.tree).then((function(n){var r=Vn(n);t.setState({treeData:r,originTreeData:n},(function(){e&&e()}))}))}},{key:"fetchAllByMetric",value:(a=ft()(ut.a.mark((function e(){var t,n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.graphConfig.metrics,n=tt.a.cloneDeep(t[0]),r=0,!n){e.next=25;break}if(e.prev=4,this.setLoading(!0),void 0===n.selectedNid){e.next=18;break}return e.next=9,this.fetchEndpoints(n);case 9:if(tt.a.isEmpty(n.selectedEndpoint)){e.next=18;break}return e.next=12,this.fetchMetrics(n);case 12:if(!n.selectedMetric){e.next=18;break}return e.next=15,this.fetchTagkv(n);case 15:if(!n.selectedTagkv){e.next=18;break}return e.next=18,this.fetchCounterList(n);case 18:this.setState(yr()(this.state,{graphConfig:{metrics:{$splice:[[r,1,n]]}}})),this.setLoading(!1),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(4),this.setLoading(!1);case 25:case"end":return e.stop()}}),e,this,[[4,22]])}))),function(){return a.apply(this,arguments)})},{key:"fetchEndpoints",value:(i=ft()(ut.a.mark((function e(t){var n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,no(t.selectedNid,this.context.habitsId);case 3:return n=e.sent,Yr(r=t.selectedEndpoint||["=all"])||(r=tt.a.intersection(n,t.selectedEndpoint)),t.endpoints=n,t.selectedEndpoint=r,e.abrupt("return",t);case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(e){return i.apply(this,arguments)})},{key:"fetchMetrics",value:(o=ft()(ut.a.mark((function e(t){var n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ro(t.selectedEndpoint,t.endpoints);case 3:return n=e.sent,r=tt.a.indexOf(n,t.selectedMetric)>-1?t.selectedMetric:"",t.metrics=n,t.selectedMetric=r,e.abrupt("return",t);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e){return o.apply(this,arguments)})},{key:"fetchTagkv",value:(r=ft()(ut.a.mark((function e(t){var n,r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo(t.selectedEndpoint,t.selectedMetric,t.endpoints);case 3:n=e.sent,Yr(r=t.selectedTagkv||tt.a.chain(n).map((function(e){return{tagk:e.tagk,tagv:["=all"]}})).value())||(r=bi(t.selectedTagkv,n)),t.tagkv=n,t.selectedTagkv=r,e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e){return r.apply(this,arguments)})},{key:"fetchCounterList",value:(n=ft()(ut.a.mark((function e(t){var n;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,lo([{selectedEndpoint:t.selectedEndpoint,selectedMetric:t.selectedMetric,selectedTagkv:t.selectedTagkv,tagkv:t.tagkv}]);case 3:n=e.sent,t.counterList=n,e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return n.apply(this,arguments)})},{key:"renderMetrics",value:function(){var e=this,t=(0,this.context.getSelectedNode)(),n=this.state.graphConfig.metrics,r=n[0],o=r.selectedMetric,i=tt.a.filter(r.tagkv,(function(e){return"endpoint"!==e.tagk})),a=tt.a.isEmpty(r.selectedNid)?[t.id]:r.selectedNid,s=tt.a.map(tt.a.get(n,"[0].tagkv"),(function(e){return{label:e.tagk,value:e.tagk}}));return l.a.createElement("div",null,l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.node"}),style:{marginBottom:5},required:!0},l.a.createElement(pi.a,{showSearch:!0,allowClear:!0,treeDefaultExpandedKeys:tt.a.map(a,tt.a.toString),treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:200,overflow:"auto"},value:r.selectedNid,onChange:function(t){return e.handleNsChange(t,r)}},Bn(this.state.treeData))),l.a.createElement(Jo,{type:"modal",data:[{tagk:"endpoint",tagv:r.endpoints}],selectedTagkv:[{tagk:"endpoint",tagv:r.selectedEndpoint}],onChange:function(t,n){e.handleEndpointChange(n)},renderItem:function(e,t,n,r){return l.a.createElement(Zt.a,{readOnly:!0,value:tt.a.join(tt.a.slice(n,0,40),", "),size:"default",onClick:function(){r(e)}})},wrapInner:function(e,t){return l.a.createElement(vi,{key:t,labelCol:{span:3},wrapperCol:{span:21},label:t,style:{marginBottom:5},className:"graph-tags",required:!0},e)}}),l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.metric"}),style:{marginBottom:5},required:!0},l.a.createElement(Vo.a,{showSearch:!0,size:"default",style:{width:"100%"},className:"select-metric",value:r.selectedMetric,onChange:function(t){return e.handleMetricChange(t,o)}},tt.a.map(r.metrics,(function(e){return l.a.createElement(yi,{key:e},e)})))),l.a.createElement(sr.a,{style:{marginBottom:5}},l.a.createElement(cr.a,{span:12},l.a.createElement(vi,{labelCol:{span:6},wrapperCol:{span:18},label:l.a.createElement(gr,{id:"graph.config.aggr"}),style:{marginBottom:0}},l.a.createElement(Vo.a,{allowClear:!0,size:"default",style:{width:"100%"},value:r.aggrFunc,onChange:function(t){return e.handleAggregateChange(o,t)}},l.a.createElement(yi,{value:"sum"},l.a.createElement(gr,{id:"graph.config.aggr.sum"})),l.a.createElement(yi,{value:"avg"},l.a.createElement(gr,{id:"graph.config.aggr.avg"})),l.a.createElement(yi,{value:"max"},l.a.createElement(gr,{id:"graph.config.aggr.max"})),l.a.createElement(yi,{value:"min"},l.a.createElement(gr,{id:"graph.config.aggr.min"}))))),l.a.createElement(cr.a,{span:12},l.a.createElement(vi,{labelCol:{span:5},wrapperCol:{span:19},label:l.a.createElement(gr,{id:"graph.config.aggr.group"}),style:{marginBottom:0}},l.a.createElement(Vo.a,{mode:"multiple",size:"default",style:{width:"100%"},disabled:!r.aggrFunc,value:r.aggrGroup||[],onChange:function(t){return e.handleAggregateDimensionChange(o,t)}},tt.a.map(s,(function(e){return l.a.createElement(yi,{key:e.value,value:e.value},e.label)})))))),l.a.createElement(Jo,{type:"modal",data:i,selectedTagkv:r.selectedTagkv,onChange:function(t,n){e.handleTagkvChange(o,t,n)},renderItem:function(e,t,n,r){return l.a.createElement(Zt.a,{readOnly:!0,value:tt.a.join(tt.a.slice(n,0,40),", "),size:"default",onClick:function(){r(e)}})},wrapInner:function(e,t){return l.a.createElement(vi,{key:t,labelCol:{span:3},wrapperCol:{span:21},label:t,style:{marginBottom:5},className:"graph-tags",required:!0},e)}}),l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.series"}),style:{marginBottom:5}},l.a.createElement("span",{style:{color:"#ff7f00",paddingRight:5}},tt.a.get(r.counterList,"length"),l.a.createElement(gr,{id:"graph.config.series.unit"})),l.a.createElement("a",{onClick:function(){e.setState({counterListVisible:!e.state.counterListVisible})}},l.a.createElement(wt.a,{type:this.state.counterListVisible?"circle-o-up":"circle-o-down"})),this.state.counterListVisible&&l.a.createElement(mo.a,{bordered:!1,size:"middle",columns:this.getColumns(),dataSource:r.counterList,locale:{emptyText:r.tableEmptyText}})))}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.graphConfig,o=r.now,i=r.start,a=r.end,s=o===a?zr(i,a,"value"):"custom",c=wr()(Number(i)).format(Nr.moment),u=wr()(Number(a)).format(Nr.moment);return l.a.createElement(Yn.a,{spinning:n},l.a.createElement(en.a,null,this.props.isScreen?l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.cate"}),style:{marginBottom:5},required:!0},l.a.createElement(Vo.a,{style:{width:"100%"},value:r.subclassId,onChange:this.handleSubclassChange},tt.a.map(this.props.subclassOptions,(function(e){return l.a.createElement(yi,{key:e.id,value:e.id},e.name)})))):null,l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.graph.title"}),style:{marginBottom:5}},l.a.createElement(Zt.a,{style:{width:"100%"},value:r.title,onChange:this.handleTitleChange,placeholder:"The metric name as the default title"})),l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.time"}),style:{marginTop:5,marginBottom:0},required:!0},l.a.createElement(Vo.a,{size:"default",style:"custom"===s?{width:198,marginRight:10}:{width:"100%"},value:s,onChange:this.handleTimeOptionChange},tt.a.map(Tr,(function(e){return l.a.createElement(yi,{key:e.value,value:e.value},l.a.createElement(gr,{id:e.label}))}))),"custom"===s&&[l.a.createElement(Fo.a,{key:"datePickerStart",format:Nr.moment,style:{position:"relative",width:193,minWidth:193},defaultValue:wr()(c),onOk:function(t){return e.handleDateChange("start",t)}}),l.a.createElement("span",{key:"datePickerDivider",style:{paddingLeft:10,paddingRight:10}},"-"),l.a.createElement(Fo.a,{key:"datePickerEnd",format:Nr.moment,style:{position:"relative",width:194,minWidth:194},defaultValue:wr()(u),onOk:function(t){return e.handleDateChange("end",t)}})]),l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.comparison"}),style:{marginBottom:0}},l.a.createElement(oi,{size:"default",comparison:r.comparison,relativeTimeComparison:r.relativeTimeComparison,comparisonOptions:r.comparisonOptions,graphConfig:r,onChange:function(t){e.handleCommonFieldChange({start:t.start,end:t.end,now:t.now,comparison:t.comparison,relativeTimeComparison:t.relativeTimeComparison,comparisonOptions:t.comparisonOptions})}})),this.renderMetrics(),l.a.createElement(vi,{labelCol:{span:3},wrapperCol:{span:21},label:l.a.createElement(gr,{id:"graph.config.threshold"}),style:{marginBottom:5}},l.a.createElement(Zo.a,{style:{width:"100%"},value:r.threshold,onChange:this.handleThresholdChange}))))}}]),t}(s.Component);wi.contextTypes={getSelectedNode:Mn.a.func,habitsId:Mn.a.string},wi.defaultProps={data:{},isScreen:!1,subclassOptions:[]};n(364);function Ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ci=function(e){function t(e){var n;return Ot()(this,t),(n=_t()(this,Tt()(t).call(this,e))).state={key:tt.a.uniqueId("graphConfigModal_"),visible:!1,title:"图表配置",type:"add",btnName:"看图",btnDisabled:!1,data:{},isScreen:!1,subclassOptions:[]},n}return Nt()(t,e),xt()(t,[{key:"showModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.type,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.btnName,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.isScreen,o=n.subclassOptions;delete n.isScreen,delete n.subclassOptions,this.setState({key:tt.a.uniqueId("graphConfigModal_"),visible:!0,type:e,btnName:t,data:n,isScreen:r,subclassOptions:o})}},{key:"handleSubmit",value:function(e,t){var n=this.refs.graphConfigForm,r=this.props.onChange,o=n.state.graphConfig,i=o.start,a=o.end;Number(i)>Number(a)?mn.a.error("开始时间不能大于结束时间"):this.setState({visible:!1},(function(){r(e,function(e){for(var t=1;t-1){var o=r.split("$Name");0===e.indexOf(o[0])&&e.indexOf(o[1])>0&&(t=n)}})),t);var t}function Wi(e,t){var n=tt.a.filter(t,(function(t){return tt.a.find(t.metrics,{selectedMetric:e})}));return n.length?l.a.createElement("span",{style:{color:"#999"}}," +",n.length):null}var Hi=function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a-1})):[],tt.a.concat([],o)):[]}return o}},{key:"dynamicMetricMaps",value:function(){var e=this.props.metrics;return tt.a.filter(Di,(function(t){var n=t.dynamic,r=t.filter;if(!n)return!0;if(r&&r.type&&r.value){var o=Li(r.type,r.value,e);return!(!o||0===o.length)}return!1}))}},{key:"renderMetricList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=this.props.graphs;return l.a.createElement("div",{className:"tabPane"},t.length?l.a.createElement("ul",{className:"ant-menu ant-menu-vertical ant-menu-root",style:{border:"none"}},tt.a.map(t,(function(t,o){return l.a.createElement("li",{className:"ant-menu-item",key:o,onClick:function(){e.handleMetricClick(t)}},l.a.createElement(Lo.a,{key:"".concat(n,"_").concat(t),placement:"right",visible:e.state.metricTipVisible["".concat(n,"_").concat(t)],onVisibleChange:function(r){var o="".concat(n,"_").concat(t),i=Bi(t),a=e.state.metricTipVisible;a[o]=!(!r||!i),e.setState({metricTipVisible:a})}},l.a.createElement("span",null,t)),Wi(t,r))}))):l.a.createElement("div",{style:{textAlign:"center"}},"No data"))}},{key:"renderMetricTabs",value:function(){var e=this,t=this.state,n=t.searchValue,r=t.activeKey,o=this.normalizMetrics(r),i=o;if(n)try{var a=new RegExp(n,"i");i=tt.a.filter(o,(function(e){return a.test(e)}))}catch(e){i=[]}var s=this.dynamicMetricMaps(),c=tt.a.map(s,(function(t){var n="zh"==e.props.intl.locale?t.alias:t.key;return l.a.createElement(Vi,{tab:n,key:t.key},e.renderMetricList(i,t.key))}));return c.unshift(l.a.createElement(Vi,{tab:l.a.createElement(gr,{id:"graph.metric.list.all"}),key:"ALL"},this.renderMetricList(i,"ALL"))),l.a.createElement(Pi.a,{type:"card",activeKey:r,onChange:this.handleMetricTabsChange},c)}},{key:"render",value:function(){return l.a.createElement(Yn.a,{spinning:this.props.loading},l.a.createElement(qt.a,{className:"".concat(Ni,"-card"),title:l.a.createElement("span",{className:"".concat(Ni,"-metrics-title")},l.a.createElement("span",null,l.a.createElement(gr,{id:"graph.metric.list.title"})),l.a.createElement(Zt.a,{size:"small",placeholder:"Search",onChange:this.handleMetricsSearch}))},this.renderMetricTabs()))}}]),t}(s.Component);Hi.defaultProps={nid:void 0,hosts:[],selectedHosts:[],metrics:[],graphs:[],onSelect:function(){}};var zi=Oe(Hi);function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ui={zh:{antd:y.a,intl:"zh",intlMessages:or},en:{antd:w.a,intl:"en",intlMessages:ir}};function Gi(e){return function(t){var n,r=document.createElement("div");function o(){u.a.unmountComponentAtNode(r)&&r.parentNode&&r.parentNode.removeChild(r)}return document.body.appendChild(r),n=function(e){for(var t=1;t1&&void 0!==o[1]?o[1]:[],r=[],tt.a.isEmpty(t)){e.next=14;break}return e.prev=3,this.setState({metricsLoading:!0}),e.next=7,i.fetchMetrics(t,n);case 7:r=e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.log(e.t0);case 13:this.setState({metricsLoading:!1});case 14:return e.abrupt("return",r);case 15:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return o.apply(this,arguments)})},{key:"processBaseMetrics",value:(n=ft()(ut.a.mark((function e(){var t,n,r,o,a,s,l,c,u,d,f;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.context.getSelectedNode,n=this.state,r=n.selectedHosts,o=n.hosts,a=t(),s=tt.a.get(a,"id"),l=wr()(),c=[],u=0;case 7:if(!(uSa&&(a+=" drop-over-downward"),o.index-1})):t}},{key:"render",value:function(){var e=this,t=this.state.search,n="".concat(ot,"-monitor-screen"),r=this.filterData();return l.a.createElement("div",{className:n},l.a.createElement("div",{className:"mb10"},l.a.createElement(rt.a,{className:"mr10",onClick:this.handleAdd},l.a.createElement(gr,{id:"screen.create"})),l.a.createElement(Zt.a,{style:{width:200},placeholder:"Search",value:t,onChange:function(t){e.setState({search:t.target.value})}})),l.a.createElement(mo.a,{rowKey:"id",dataSource:r,pagination:!1,components:{body:{row:_a}},onRow:function(t,n){return{index:n,moveRow:e.moveRow}},columns:[{title:l.a.createElement(gr,{id:"table.name"}),dataIndex:"name",render:function(e,t){return l.a.createElement(m.Link,{to:{pathname:"/monitor/screen/".concat(t.id)}},e)}},{title:l.a.createElement(gr,{id:"table.creator"}),width:200,dataIndex:"last_updator"},{title:l.a.createElement(gr,{id:"table.operations"}),width:200,render:function(t,n){return l.a.createElement("span",null,l.a.createElement("a",{onClick:function(){return e.handleModify(n)}},l.a.createElement(gr,{id:"table.modify"})),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"table.delete.sure"}),onConfirm:function(){return e.handleDel(n.id)}},l.a.createElement("a",null,l.a.createElement(gr,{id:"table.delete"}))))}}]}))}}]),t}(s.Component);Aa.contextTypes={getSelectedNode:Mn.a.func};var Ta=Si(Object(pa.DragDropContext)(ga.a)(Oe(Aa)),{visible:!0}),Ma=n(115),Na=n(139),Da=n.n(Na);n(373),n(374);function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t0)n.setState({countdown:t-1});else{var r=n.state.chartData,o=tt.a.cloneDeep(r),i=wr()();tt.a.each(o,(function(e){tt.a.each(e,(function(e){var t=e.configs;e.configs=es({},e.configs,{},ns(i,t))}))})),n.setState({chartData:o,countdown:9})}e()}),1e3)}()},n.handleAddSubclass=function(){var e=n.state.subclassData,t=tt.a.get(n.props,"match.params.screenId");Va({title:"新增分类",onOk:function(r){Vt("".concat(gt.screen,"/").concat(t,"/subclass"),{method:"POST",body:JSON.stringify(es({},r,{weight:e.length}))}).then((function(){mn.a.success("新增分类成功!"),n.fetchSubclass(n.props)}))}})},n.handleBatchMoveSubclass=function(){Za({data:n.state.subclassData,treeData:tt.a.cloneDeep(n.state.originTreeData),onOk:function(e){var t=tt.a.map(e.subclasses,(function(t){return{id:t,screen_id:e.screenId}}));Vt("".concat(gt.subclass,"es/loc"),{method:"PUT",body:JSON.stringify(t)}).then((function(){mn.a.success("批量移动分类成功!"),n.fetchSubclass(n.props)}))}})},n.handleModSubclass=function(e){Ha({title:"修改分类",name:e.name,onOk:function(t){Vt("".concat(gt.subclass),{method:"PUT",body:JSON.stringify([es({},t,{id:e.id})])}).then((function(){mn.a.success("修改分类成功!"),n.fetchSubclass(n.props)}))}})},n.handleDelSubclass=function(e){Vt("".concat(gt.subclass,"/").concat(e),{method:"DELETE"}).then((function(){mn.a.success("删除分类成功!"),n.fetchSubclass(n.props)}))},n.handleMoveSubclass=function(e,t){var r=n.state.subclassData,o=tt.a.map(r,(function(n){var r=n.weight;return"up"===e?(n.weight===t&&(r=t-1),n.weight===t-1&&(r=t)):"down"===e&&(n.weight===t&&(r=t+1),n.weight===t+1&&(r=t)),es({},n,{weight:r})}));Vt("".concat(gt.subclass),{method:"PUT",body:JSON.stringify(o)}).then((function(){mn.a.success("分类移动成功!"),n.setState({subclassData:tt.a.sortBy(o,"weight")})}))},n.handleAddChart=function(e){var t=n.state.chartData,r=tt.a.cloneDeep(t),o=r[n.currentSubclassId]||[];Vt("".concat(gt.subclass,"/").concat(n.currentSubclassId,"/chart"),{method:"POST",body:JSON.stringify({configs:JSON.stringify(es({},e)),weight:o.length})}).then((function(t){r[n.currentSubclassId]=tt.a.concat(o,[{configs:e,id:t,subclass_id:n.currentSubclassId,weight:o.length}]),n.setState({chartData:r})}))},n.handleModChart=function(e,t,r){Vt("".concat(gt.chart,"/").concat(t),{method:"PUT",body:JSON.stringify({subclass_id:r.subclassId,configs:JSON.stringify(r.configs)})}).then((function(){var o=n.state.chartData,i=tt.a.cloneDeep(o),a=tt.a.find(i[e],{id:t});a&&(a.subclass_id=r.subclassId,a.configs=r.configs),n.setState({chartData:i})}))},n.handleDelChart=function(e,t){var r=n.state.chartData,o=tt.a.cloneDeep(r),i=tt.a.findIndex(o[e],{id:t});o[e].splice(i,1),tt.a.each(o[e],(function(e,t){e.weight=t})),n.setState({chartData:o}),Vt("".concat(gt.chart,"/").concat(t),{method:"DELETE"}).then((function(){mn.a.success("删除图表成功!")}));var a=tt.a.map(o[e],(function(e){return{id:e.id,weight:e.weight}}));Vt("".concat(gt.chart,"s/weights"),{method:"PUT",body:JSON.stringify(a)})},n.handleGraphConfigChange=function(e,t){var r=t.subclassId;delete t.subclassId,tt.a.each(t.metrics,(function(e){delete e.key,delete e.metrics,delete e.tagkv,delete e.counterList})),"push"===e?n.handleAddChart(t):"update"===e&&n.handleModChart(r,t.id,{subclassId:r,configs:t})},n.handleTimeOptionChange=function(e){var t,r,o=wr()(),i=n.state.chartData,a=tt.a.cloneDeep(i),s=o.format("x");"custom"!==e?(t=o.clone().subtract(Number(e),"ms").format("x"),r=o.format("x")):(t=o.clone().subtract(2,"hour").format("x"),r=wr()().format("x")),tt.a.each(a,(function(e){tt.a.each(e,(function(e){e.configs=es({},e.configs,{now:s,end:r,start:t})}))})),n.setState({chartData:a,now:s,start:t,end:r})},n.handleDateChange=function(e,t){var r=n.state.chartData,o=tt.a.cloneDeep(r),i=tt.a.isDate(t)?tt.a.toString(t.getTime()):null;tt.a.each(o,(function(t){tt.a.each(t,(function(t){t.configs=es({},t.configs,pt()({},e,i))}))})),n.setState(pt()({chartData:o},e,i))},n.renderSubclass=function(e,t){var r=n.state,o=r.chartData,i=r.subclassData,a=o[e.id];return l.a.createElement(qt.a,{key:e.id,type:"inner",className:"ant-card-compact mb10",bodyStyle:{padding:10},title:e.name,extra:l.a.createElement("span",null,l.a.createElement("a",{onClick:function(){n.graphConfigForm&&(n.currentSubclassId=e.id,n.graphConfigForm.showModal("push",n.props.intl.formatMessage({id:"table.create"})))}},l.a.createElement(gr,{id:"screen.tag.graph.add"})),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement("a",{onClick:function(){return n.handleModSubclass(e)}},l.a.createElement(gr,{id:"table.modify"})),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"table.delete.sure"}),onConfirm:function(){return n.handleDelSubclass(e.id)}},l.a.createElement("a",null,l.a.createElement(gr,{id:"table.delete"}))),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement("a",{disabled:0===t,onClick:function(){return n.handleMoveSubclass("up",t)}},l.a.createElement(gr,{id:"screen.tag.up"})),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement("a",{disabled:t===i.length-1,onClick:function(){return n.handleMoveSubclass("down",t)}},l.a.createElement(gr,{id:"screen.tag.down"})))},l.a.createElement(qa,{axis:"xy",useDragHandle:!0,data:a,colNum:n.state.colNum,graphsInstance:n.graphs,graphConfigForm:n.graphConfigForm,subclassData:n.state.subclassData,originTreeData:n.state.originTreeData,onDelChart:function(t){return n.handleDelChart(e.id,t)},onSortEnd:function(t){var r=t.oldIndex,o=t.newIndex,i=tt.a.sortBy(tt.a.map(a,(function(e,t){var n=e.weight;return t===r&&(n=a[o].weight),rr&&t<=o&&(n=e.weight-1),r>o&&t>=o&&t-1&&(b=l.a.createElement("strong",{style:{color:"#2DB7F5"}},o));var C=l.a.createElement("span",null,v,b);if(m>-1){var k=h.substring(p+2,m);C=l.a.createElement("span",null,C,k,w)}if("nodata"!==a){var O=m>-1?m:p,S=h.substring(O+2,g);C=l.a.createElement("span",null,C,S,E,y)}else{var x=h.substring(p+2);C=l.a.createElement("span",null,C,x)}return l.a.createElement("div",null,!e&&l.a.createElement("span",{style:{color:"#999"}},l.a.createElement(gr,{id:"stra.preview"}),":"),l.a.createElement("span",{style:{paddingRight:5}},i||"${metric}"),C)}},{key:"renderFuncParams",value:function(e){var t=this,n=this.props.value,r=n.func,o=n.params,i=void 0===o?[]:o,a=["diff","pdiff"].indexOf(r)>-1?2:1,s=tt.a.toNumber(i[e]);return 0===e?"c_avg_rate_abs"===r||"c_avg_rate"===r||"c_avg_abs"===r||"c_avg"===r?(s=tt.a.toString(1!==i[e]?i[e]:86400),l.a.createElement(Vo.a,{style:{display:"inline-block",width:80,marginRight:8},value:s,onChange:function(n){t.handleParamsChange(e,tt.a.toNumber(n))}},l.a.createElement(Ps,{value:"86400"},"1"),l.a.createElement(Ps,{value:"604800"},"7"))):"happen"===r||"ndiff"===r?l.a.createElement(Zo.a,{key:e,value:s,min:a,max:tt.a.toNumber(i[0]),style:{display:"inline-block"},onChange:function(n){t.handleParamsChange(e,n)}}):l.a.createElement("span",null,"不是合法的 param"):l.a.createElement("span",null,"不是合法的 param")}},{key:"renderParams",value:function(){var e=this,t=this.props.value;return"canary"===t.func?null:l.a.createElement("div",{style:{marginTop:5}},tt.a.map(tt.a.get(Es[t.func],"params",[]),(function(t,n){return l.a.createElement("div",{key:t,style:{display:"inline-block",verticalAlign:"top"}},l.a.createElement("span",{style:{color:0===n?"#2DB7F5":"#FFB727"}},t),l.a.createElement("span",{style:{marginRight:8,marginLeft:2}},":"),e.renderFuncParams(n))})),"nodata"!==t.func&&l.a.createElement("div",{style:{display:"inline-block"}},l.a.createElement("div",{style:{display:"inline-block",verticalAlign:"top"}},l.a.createElement("span",{style:{color:"#FF6F27"}},"v"),l.a.createElement("span",{style:{marginRight:8,marginLeft:2}},":"),l.a.createElement(Vo.a,{size:"default",style:{width:70},value:t.eopt,onChange:this.handleEoptChange},l.a.createElement(Ps,{value:"="},"="),l.a.createElement(Ps,{value:">"},">"),l.a.createElement(Ps,{value:">="},">="),l.a.createElement(Ps,{value:"<"},"<"),l.a.createElement(Ps,{value:"<="},"<="),l.a.createElement(Ps,{value:"!="},"!="))),l.a.createElement("div",{style:{display:"inline-block",marginLeft:10}},l.a.createElement(Zo.a,{size:"default",step:.01,value:t.threshold,onChange:this.handleThresholdChange}))))}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.metrics,r=e.renderHeader,o=e.renderFooter,i=e.metricError;return l.a.createElement(qt.a,{bodyStyle:{padding:10},style:{marginTop:10}},l.a.createElement("div",{className:"expression-headerExtra"},r(t)),l.a.createElement("div",{className:"expression-content"},l.a.createElement("div",null,l.a.createElement("div",{className:i&&"has-error",style:{display:"inline-block",verticalAlign:"top"}},l.a.createElement(Vo.a,{mode:"combobox",notFoundContent:"",size:"default",style:{width:250},placeholder:"Metric name",defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!1,showSearch:!0,value:t.metric,onChange:this.handleMetricChange},tt.a.map(n,(function(e){return l.a.createElement(Ps,{key:e,value:e},e)}))),l.a.createElement("div",{className:"ant-form-explain"},i)),l.a.createElement(Vo.a,{style:{width:220,marginLeft:10},size:"default",value:t.func,onChange:this.handleFuncChange},tt.a.map(Es,(function(e,t){return l.a.createElement(Ps,{key:t,value:t},e.label," - ",t)})))),this.renderParams()),this.renderPreview(),"all"===t.func?l.a.createElement("div",{style:{color:"#f50",lineHeight:1}},l.a.createElement(gr,{id:"stra.preview.all.help"})):null,l.a.createElement("div",{className:"expression-footerExtra"},o(t)))}}]),t}(s.Component);_s.propTypes=xs({},ks,{value:Mn.a.object,metricError:Mn.a.string}),_s.defaultProps=xs({},Os,{value:Cs,metricError:""});var As=Oe(_s);n(375);function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ms(e){for(var t=1;t0?e[0].tagkv:[],"tagk"),o={};tt.a.each(n,(function(e){e&&e.tagk&&e.tagv&&(o[e.tagk]=tt.a.sortBy(e.tagv))})),t.currentMetric=r,t.setState({tags:o})}))}}},{key:"fetchNotifyData",value:(n=ft()(ut.a.mark((function e(){var t,n,r,o,i,a,s=arguments;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=s.length>1&&void 0!==s[1]?s[1]:{},this.setState({notifyDataLoading:!0}),e.prev=3,r=nn.a.stringify(yl({limit:1e3},t)),o=nn.a.stringify(yl({limit:1e3},n)),e.next=8,Vt("".concat(gt.team,"?").concat(r));case 8:return i=e.sent,e.next=11,Vt("".concat(gt.user,"?").concat(o));case 11:a=e.sent,this.setState({notifyGroupData:i.list,notifyUserData:a.list}),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),console.log(e.t0);case 18:this.setState({notifyDataLoading:!1});case 19:case"end":return e.stop()}}),e,this,[[3,15]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props.form,n=t.getFieldDecorator,r=t.getFieldValue,o=t.setFieldsValue,i={labelCol:{span:4},wrapperCol:{span:16}};return n("category",{initialValue:1}),l.a.createElement(en.a,{className:"".concat(_i,"-strategy-form"),layout:"horizontal",onSubmit:this.handleSubmit},l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.name"})}),n("name",{initialValue:this.props.initialValues.name,rules:[{required:!0}]})(l.a.createElement(Zt.a,null))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.node"})}),n("nid",{initialValue:this.props.initialValues.nid,onChange:function(t){e.handleNsChange(t),o({exclude_nid:[]})}})(l.a.createElement(pi.a,{showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:400,overflow:"auto"}},Bn(this.state.treeData)))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.node.exclude"})}),n("excl_nid",{initialValue:this.props.initialValues.excl_nid})(l.a.createElement(pi.a,{multiple:!0,showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:400,overflow:"auto"}},Bn(this.state.excludeTreeData)))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(Lo.a,{title:l.a.createElement("div",null,l.a.createElement(gr,{id:"stra.priority.1.tip"}),l.a.createElement("br",null),l.a.createElement(gr,{id:"stra.priority.2.tip"}),l.a.createElement("br",null),l.a.createElement(gr,{id:"stra.priority.3.tip"}))},l.a.createElement("span",null,l.a.createElement(gr,{id:"stra.priority"})," ",l.a.createElement(wt.a,{type:"info-circle-o"}))),required:!0}),n("priority",{initialValue:this.props.initialValues.priority||3})(l.a.createElement(wl,{size:"default"},tt.a.map({1:{alias:l.a.createElement(gr,{id:"stra.priority.1"}),color:"red"},2:{alias:l.a.createElement(gr,{id:"stra.priority.2"}),color:"yellow"},3:{alias:l.a.createElement(gr,{id:"stra.priority.3"}),color:"blue"}},(function(e,t){return l.a.createElement(ws.a,{key:t,value:Number(t)},e.alias)}))))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.alertDur"})}),n("alert_dur",{initialValue:void 0!==this.props.initialValues.alert_dur?this.props.initialValues.alert_dur:180})(l.a.createElement(Zo.a,{min:0})),l.a.createElement(gr,{id:"stra.seconds"})),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.trigger"}),validateStatus:"success",help:""}),n("exprs",{initialValue:this.props.initialValues.exprs||[Ds.defaultExpressionValue],onChange:this.handleExpressionsChange,rules:[{validator:Ds.checkExpressions}]})(l.a.createElement(Ds,{alertDuration:r("alert_dur"),headerExtra:l.a.createElement("div",null,"headerExtra"),metrics:this.state.metrics}))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.tag"})}),n("tags",{initialValue:this.props.initialValues.tags||[]})(l.a.createElement(Js,{tags:this.state.tags}))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.action"}),validateStatus:"success",help:""}),n("action",{initialValue:this.props.initialValues.action||el.defaultValue,rules:[{validator:el.checkActions}]})(l.a.createElement(el,{loading:this.state.notifyDataLoading,notifyGroupData:this.state.notifyGroupData,notifyUserData:this.state.notifyUserData,fetchNotifyData:this.fetchNotifyData.bind(this)}))),l.a.createElement(sr.a,{style:{marginBottom:10}},l.a.createElement(cr.a,{offset:4},l.a.createElement("a",{onClick:function(){e.setState({advanced:!e.state.advanced})}},l.a.createElement(gr,{id:"stra.advanced"})," ",l.a.createElement(wt.a,{type:this.state.advanced?"up":"down"})))),l.a.createElement("div",{style:{display:this.state.advanced?"block":"none"}},l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.recovery.dur"})}),n("recovery_dur",{initialValue:void 0!==this.props.initialValues.recovery_dur?this.props.initialValues.recovery_dur:0})(l.a.createElement(Zo.a,{min:0})),l.a.createElement(gr,{id:"stra.seconds"})," (",l.a.createElement(gr,{id:"stra.recovery.dur.help.1"})," ",r("recovery_dur")," ",l.a.createElement(gr,{id:"stra.recovery.dur.help.2"})," )"),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.recovery.notify"})}),n("recovery_notify",{initialValue:void 0!==this.props.initialValues.recovery_notify&&!this.props.initialValues.recovery_notify,valuePropName:"checked"})(l.a.createElement(Jt.a,null,l.a.createElement(gr,{id:"stra.recovery.notify.checkbox"})))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.period.time"})}),n("period_time",{initialValue:this.props.initialValues.period_time||ll.defaultValue})(l.a.createElement(ll,null))),l.a.createElement(bl,un()({},i,{label:l.a.createElement(gr,{id:"stra.alert.upgrade"}),validateStatus:"success",help:""}),n("alert_upgrade",{initialValue:this.props.initialValues.alert_upgrade||fl.defaultValue,rules:[{validator:fl.checkAlarmUpgrade}]})(l.a.createElement(fl,{loading:this.state.notifyDataLoading,notifyGroupData:this.state.notifyGroupData,notifyUserData:this.state.notifyUserData,fetchNotifyData:this.fetchNotifyData.bind(this)})))),l.a.createElement(bl,{wrapperCol:{span:16,offset:4},style:{marginTop:24}},l.a.createElement(rt.a,{type:"primary",htmlType:"submit"},l.a.createElement(gr,{id:"form.submit"}))))}}]),t}(s.Component);El.contextTypes={habitsId:Mn.a.string},El.defaultProps={initialValues:{}};var Cl=en.a.create()(Oe(El)),kl=(n(132),Si(Oe(function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==o[0]?o[0]:this.props,n=o.length>1?o[1]:void 0,this.setState({loading:!0}),e.next=5,this.fetchData(t,n);case 5:(r=e.sent)&&this.setState({data:tt.a.get(r,"data"),pagination:tt.a.get(r,"pagination")}),this.setState({loading:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchData",value:(n=ft()(ut.a.mark((function e(){var t,n,r,o,i,a,s,l,c,u,d,f=arguments;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:this.props,n=f.length>1?f[1]:void 0,r=t.url,o=t.query,i=t.backendPagingEnabled,a=t.processData,r){e.next=5;break}return e.abrupt("return");case 5:return s=this.state.pagination,l={},i&&(l={limit:s.pageSize,p:s.current}),o&&(l=Yl({},l,{},o)),n&&(l=Yl({},l,{},n)),c=s,u=[],e.prev=12,e.next=15,Vt("".concat(r,"?").concat(nn.a.stringify(l)));case 15:if((d=e.sent)&&("total"in d?(c=Yl({},s,{current:s.current,total:d.total}),u=d.list):Array.isArray(d)&&(u=d)),!a){e.next=21;break}return e.next=20,a(u);case 20:u=e.sent;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),console.log(e.t0);case 26:return e.abrupt("return",{data:u,pagination:c});case 27:case"end":return e.stop()}}),e,this,[[12,23]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){return l.a.createElement(mo.a,un()({size:"small",rowKey:"id",tableLayout:"fixed",loading:this.state.loading,pagination:Yl({},this.state.pagination,{showTotal:function(e){return"Total ".concat(e," items")},pageSizeOptions:at}),rowClassName:function(e,t){return t%2==1?"table-row-bg":""},dataSource:this.state.data,onChange:this.handleTableChange},this.props.tableProps))}}]),t}(s.Component);Xl.defaultProps={backendPagingEnabled:!0};var Zl="".concat(_i,"-history"),Ql=Vo.a.Option,ec=Zt.a.Search,tc=function(e){function t(e){var n;Ot()(this,t),(n=_t()(this,Tt()(t).call(this,e))).fetchTable=void 0,n.otherParamsKey=void 0,n.componentWillReceiveProps=function(e){!e.nodepath||e.nodepath===n.props.nodepath&&e.activeKey!==e.type||n.updateTime((function(){n.setState({nodepath:e.nodepath})}))},n.updateTime=function(e){var t=wr()(),r=n.state.etime-n.state.stime;n.setState({stime:t.clone().unix()-r,etime:t.clone().unix()},(function(){e&&e()}))},n.handleDelete=function(e){Vt("".concat(gt.event,"/cur/").concat(e),{method:"DELETE"}).then((function(){mn.a.success("忽略报警成功!"),n.fetchTable.reload()}))},n.handleClaim=function(e){Vt("".concat(n.getFetchDataUrl(),"s/claim"),{method:"POST",body:JSON.stringify({id:e})}).then((function(){mn.a.success("认领报警成功!"),n.fetchTable.reload()}))},n.handleClaimAll=function(){Vt("".concat(n.getFetchDataUrl(),"s/claim"),{method:"POST",body:JSON.stringify({nodepath:n.props.nodepath})}).then((function(){mn.a.success("一健认领报警成功!"),n.fetchTable.reload()}))};var r=wr()();return"alert"===e.type?n.otherParamsKey=["stime","etime","priorities","nodepath"]:n.otherParamsKey=["stime","etime","priorities","nodepath","type"],n.state={searchValue:"",data:[],loading:!1,customTime:!1,stime:r.clone().subtract(2,"hours").unix(),etime:r.clone().unix(),priorities:void 0,type:void 0,nodepath:e.nodepath},n}return Nt()(t,e),xt()(t,[{key:"getFetchDataUrl",value:function(){var e=this.props,t=e.type;if(e.nodepath)return"".concat(gt.event,"alert"===t?"/cur":"/his")}},{key:"getQuery",value:function(){var e=this.props.nodepath,t=this.state;return{stime:t.stime,etime:t.etime,priorities:t.priorities,nodepath:e,type:t.type,query:t.searchValue}}},{key:"getColumns",value:function(){var e=this,t=[{title:l.a.createElement(gr,{id:"event.table.time"}),dataIndex:"etime",fixed:"left",width:100,render:function(e){return wr.a.unix(e).format("YYYY-MM-DD HH:mm:ss")}},{title:l.a.createElement(gr,{id:"event.table.stra"}),dataIndex:"sname",width:100,fixed:"left"},{title:l.a.createElement(gr,{id:"event.table.priority"}),dataIndex:"priority",width:50,render:function(e){var t=tt.a.find(Ai,{value:e});return l.a.createElement(zo.a,{color:tt.a.get(t,"color")},tt.a.get(t,"label"))}},{title:"endpoint",dataIndex:"endpoint"},{title:"tags",dataIndex:"tags"},{title:l.a.createElement(gr,{id:"event.table.notify"}),dataIndex:"status",fixed:"right",width:70,render:function(e){return tt.a.join(e,", ")}},{title:l.a.createElement(gr,{id:"table.operations"}),fixed:"right",width:"zh"===this.props.intl.locale?100:130,render:function(t,n){return l.a.createElement("span",null,l.a.createElement(m.Link,{to:{pathname:"/monitor/history/".concat("alert"===e.props.type?"cur":"his","/").concat(n.id)},target:"_blank"},l.a.createElement(gr,{id:"table.detail"})),"alert"===e.props.type?l.a.createElement("span",null,l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"event.table.ignore.sure"}),onConfirm:function(){return e.handleDelete(n.id)}},l.a.createElement("a",null,l.a.createElement(gr,{id:"event.table.ignore"}))),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"event.table.claim.sure"}),onConfirm:function(){return e.handleClaim(n.id)}},l.a.createElement("a",null,l.a.createElement(gr,{id:"event.table.claim"})))):null,l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(m.Link,{to:{pathname:"/monitor/silence/add",search:"".concat("alert"===e.props.type?"cur":"his","=").concat(n.id,"&nid=").concat(e.props.nid)},target:"_blank"},l.a.createElement(gr,{id:"event.table.shield"})))}}];return"alert"===this.props.type&&t.splice(5,0,{title:l.a.createElement(gr,{id:"event.table.assignees"}),dataIndex:"claimants",width:50,fixed:"right",render:function(e){return tt.a.join(e,", ")}}),"all"===this.props.type&&t.splice(3,0,{title:l.a.createElement(gr,{id:"event.table.status"}),dataIndex:"event_type",width:70,render:function(e){var t=tt.a.find(Ti,{value:e})||{};return l.a.createElement("span",{style:{color:t.color}},l.a.createElement(Gl.a,{status:t.status}),l.a.createElement(gr,{id:"event.table.status.".concat(t.value)}))}}),t}},{key:"render",value:function(){var e=this,t=this.state,n=t.customTime,r=t.stime,o=t.etime,i=t.priorities,a=t.type,s=n?"custom":(o-r)/3600;return l.a.createElement("div",{className:Zl},l.a.createElement("div",{className:"".concat(Zl,"-operationbar"),style:{marginBottom:10}},l.a.createElement(sr.a,null,l.a.createElement(cr.a,{span:18},l.a.createElement(Vo.a,{style:{width:100,marginRight:8},value:s,onChange:function(t){if("custom"!==t){var n=wr()(),r=n.clone().subtract(t,"hours").unix(),o=n.clone().unix();e.setState({customTime:!1,stime:r,etime:o})}else e.setState({customTime:!0})}},tt.a.map(Mi,(function(e){return l.a.createElement(Ql,{key:e.value,value:e.value},l.a.createElement(gr,{id:e.label}))}))),n?l.a.createElement("span",null,l.a.createElement(Fo.a,{style:{marginRight:8},showTime:!0,format:"YYYY-MM-DD HH:mm:ss",value:wr.a.unix(r),placeholder:"Start",onChange:function(t){t&&e.setState({stime:t.unix()})}}),l.a.createElement(Fo.a,{style:{marginRight:8},showTime:!0,format:"YYYY-MM-DD HH:mm:ss",value:wr.a.unix(o),placeholder:"End",onChange:function(t){t&&e.setState({etime:t.unix()})}})):null,"all"===this.props.type?l.a.createElement(Vo.a,{style:{minWidth:90,marginRight:8},placeholder:this.props.intl.formatMessage({id:"event.table.status"}),allowClear:!0,value:a,onChange:function(t){e.updateTime((function(){e.setState({type:t})}))}},tt.a.map(Ti,(function(e){return l.a.createElement(Ql,{key:e.value,value:e.value},l.a.createElement(gr,{id:"event.table.status.".concat(e.value)}))}))):null,l.a.createElement(Vo.a,{style:{minWidth:90,marginRight:8},placeholder:this.props.intl.formatMessage({id:"event.table.priority"}),allowClear:!0,mode:"multiple",value:i?tt.a.map(tt.a.split(i,","),tt.a.toNumber):[],onChange:function(t){e.updateTime((function(){e.setState({priorities:tt.a.isEmpty(t)?void 0:tt.a.join(t,",")})}))}},tt.a.map(Ai,(function(e){return l.a.createElement(Ql,{key:e.value,value:e.value},e.label)}))),l.a.createElement(ec,{placeholder:"Search",style:{width:200},onSearch:function(t){e.setState({searchValue:t})}})),l.a.createElement(cr.a,{span:6,style:{textAlign:"right"}},"alert"===this.props.type?l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"event.table.claim.all.sure"}),onConfirm:function(){return e.handleClaimAll()}},l.a.createElement(rt.a,null,l.a.createElement(gr,{id:"event.table.claim.all"}))):null))),l.a.createElement("div",{className:"alarm-strategy-content"},l.a.createElement(Xl,{ref:function(t){return e.fetchTable=t},url:this.getFetchDataUrl(),query:this.getQuery(),tableProps:{columns:this.getColumns(),scroll:{x:900}}})))}}]),t}(s.Component);tc.defaultProps={nodepath:void 0,nid:void 0};var nc=Oe(tc),rc=Pi.a.TabPane,oc=function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i36e5&&(i=o-36e5,o+=36e5);var a=tt.a.map(n.points,(function(e){return{value:1e3*e.timestamp,color:"red"}})),s=[{tagk:"endpoint",tagv:[t.endpoint]}];t.tags&&(s=tt.a.concat(s,tt.a.map(n.tags,(function(e,t){return{tagk:t,tagv:[e]}}))));var c=tt.a.get(this.props,"match.params.historyType"),u=tt.a.get(this.props,"match.params.historyId"),d=t.nid,f=[],h=[];return tt.a.forEach(t.detail,(function(e){f.push({id:(new Date).getTime(),start:i,end:o,xAxis:{plotLines:a},metrics:[{selectedNid:t.nid,selectedEndpoint:[t.endpoint],selectedMetric:e.metric,selectedTagkv:s}]}),h.push({metric:e.metric,points:e.points})})),l.a.createElement("div",{className:ac},l.a.createElement("div",{style:{border:"1px solid #e8e8e8"}},tt.a.map(f,(function(t){return l.a.createElement(Oi,{height:250,graphConfigInnerVisible:!1,data:t,extraRender:function(n){return[l.a.createElement("span",{className:"graph-operationbar-item",key:"info"},l.a.createElement(Do,{graphConfig:n.getGraphConfig(n.props.data),counterList:n.counterList},l.a.createElement(wt.a,{type:"info-circle-o"}))),l.a.createElement("span",{className:"graph-extra-item",key:"more"},l.a.createElement(wt.a,{type:"arrows-alt",onClick:function(){e.handleShareGraph(t)}}))]}})}))),l.a.createElement("div",{className:"".concat(ac,"-detail mt10")},l.a.createElement(qt.a,{title:l.a.createElement(gr,{id:"event.table.detail.title"}),bodyStyle:{padding:"10px 16px"},extra:l.a.createElement("span",null,l.a.createElement(m.Link,{to:{pathname:"/monitor/silence/add",search:"".concat(c,"=").concat(u,"&nid=").concat(d)}},l.a.createElement(gr,{id:"event.table.shield"})),"cur"===c?l.a.createElement("span",null,l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"event.table.claim.sure"}),onConfirm:function(){return e.handleClaim(u)}},l.a.createElement("a",null,l.a.createElement(gr,{id:"event.table.claim"})))):null)},l.a.createElement("div",{className:"".concat(ac,"-detail-list")},l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.stra"}),":"),l.a.createElement(m.Link,{target:"_blank",to:{pathname:"/monitor/strategy/".concat(t.sid)}},t.sname)),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.status"}),":"),tt.a.get(tt.a.find(Ai,{value:t.priority}),"label"),l.a.createElement("span",{style:{paddingLeft:8}},tt.a.get(tt.a.find(Ti,{value:t.event_type}),"label"))),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.notify"}),":"),tt.a.join(t.status,", ")),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.time"}),":"),wr.a.unix(t.etime).format("YYYY-MM-DD HH:mm:ss")),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.node"}),":"),t.node_path),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},"Endpoint:"),t.endpoint),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.metric"}),":"),tt.a.get(t.detail,"[0].metric")),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},"Tags:"),t.tags),l.a.createElement("div",null,l.a.createElement("span",{className:"label"},l.a.createElement(gr,{id:"event.table.expression"}),":"),t.info),tt.a.map(h,(function(e){return l.a.createElement("div",null,l.a.createElement("div",{className:"label"},l.a.createElement(gr,{id:"event.table.scene"}),":"),e.metric,l.a.createElement(mo.a,{style:{display:"block",marginLeft:80},size:"small",rowKey:"timestamp",dataSource:e.points,columns:[{title:l.a.createElement(gr,{id:"event.table.scene.time"}),dataIndex:"timestamp",width:200,render:function(e){return l.a.createElement("span",null,wr.a.unix(e).format("YYYY-MM-DD HH:mm:ss"))}},{title:l.a.createElement(gr,{id:"event.table.scene.value"}),dataIndex:"value"},{title:"Extra",dataIndex:"extra"}],pagination:!1}))}))))))}}]),t}(s.Component))),cc={log:"日志",port:"端口",proc:"进程",plugin:"插件"},uc=[10,30,60,120,300,600,1800,3600],dc={pattern:/^[\u4e00-\u9fa5a-zA-Z0-9\.\-\_]{0,128}$/,message:"名称只允许 英文数字 . - _"},fc=en.a.Item,hc=function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i-1}))),r&&(o=tt.a.filter(o,(function(e){return e.collect_type===r}))),o},n}return Nt()(t,e),xt()(t,[{key:"fetchData",value:function(){var e=this;void 0!==this.selectedNodeId&&(this.setState({loading:!0}),Vt("".concat(gt.collect,"/list?nid=").concat(this.selectedNodeId)).then((function(t){e.setState({data:t})})).finally((function(){e.setState({loading:!1})})))}},{key:"render",value:function(){var e=this,t=this.filterData(),n=this.state.selectedRows,r=!tt.a.isEmpty(n);return l.a.createElement("div",null,l.a.createElement(sr.a,null,l.a.createElement(cr.a,{span:12,className:"mb10"},l.a.createElement(Vo.a,{allowClear:!0,style:{width:100,marginRight:8},className:"mr10",placeholder:this.props.intl.formatMessage({id:"collect.common.type"}),value:this.state.collectType,onChange:function(t){e.setState({collectType:t})}},tt.a.map(cc,(function(e,t){return l.a.createElement(Vo.a.Option,{key:t,value:t},l.a.createElement(gr,{id:"collect.".concat(t)}))}))),l.a.createElement(Zt.a.Search,{style:{width:200},onSearch:this.handleSearchChange})),l.a.createElement(cr.a,{span:12,style:{textAlign:"right"}},l.a.createElement(Sn.a,{overlay:l.a.createElement(Pn.a,null,tt.a.map(cc,(function(e,t){return l.a.createElement(Pn.a.Item,{key:t},l.a.createElement(m.Link,{to:{pathname:"/monitor/collect/add/".concat(t)}},l.a.createElement(gr,{id:"collect.".concat(t)})))})))},l.a.createElement(rt.a,{style:{marginRight:8}},l.a.createElement(gr,{id:"table.create"})," ",l.a.createElement(wt.a,{type:"down"}))),l.a.createElement(Sn.a,{overlay:l.a.createElement(Pn.a,null,l.a.createElement(Pn.a.Item,null,l.a.createElement(rt.a,{type:"link",disabled:!r,onClick:this.handleBatchDelete},l.a.createElement(gr,{id:"table.delete"}))),l.a.createElement(Pn.a.Item,null,l.a.createElement(rt.a,{type:"link",disabled:!r,onClick:this.handleBatchCloneToOtherNid},l.a.createElement(gr,{id:"clone.to.other.node"}))))},l.a.createElement(rt.a,null,l.a.createElement(gr,{id:"table.batch.operations"})," ",l.a.createElement(wt.a,{type:"down"}))))),l.a.createElement(mo.a,{rowKey:function(e){return e.id+e.collect_type},rowSelection:{selectedRowKeys:this.state.selectedRowKeys,onChange:function(t,n){e.setState({selectedRowKeys:t,selectedRows:n})}},dataSource:t,columns:[{title:l.a.createElement(gr,{id:"collect.common.name"}),dataIndex:"name"},{title:l.a.createElement(gr,{id:"collect.common.type"}),dataIndex:"collect_type",render:function(e){return l.a.createElement(gr,{id:"collect.".concat(e)})}},{title:l.a.createElement(gr,{id:"collect.common.creator"}),dataIndex:"creator"},{title:l.a.createElement(gr,{id:"collect.common.last_updated"}),dataIndex:"last_updated",render:function(e){return wr()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:l.a.createElement(gr,{id:"table.operations"}),render:function(t,n){return l.a.createElement("span",null,l.a.createElement(m.Link,{to:{pathname:"/monitor/collect/modify/".concat(tt.a.lowerCase(n.collect_type),"/").concat(n.id)}},l.a.createElement(gr,{id:"table.modify"})),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(m.Link,{to:{pathname:"/monitor/collect/clone/".concat(tt.a.lowerCase(n.collect_type),"/").concat(n.id)}},l.a.createElement(gr,{id:"table.clone"})),l.a.createElement(ha.a,{type:"vertical"}),l.a.createElement(da.a,{title:l.a.createElement(gr,{id:"table.delete.sure"}),onConfirm:function(){e.handleDelete(n)}},l.a.createElement("a",null,l.a.createElement(gr,{id:"table.delete"}))))}}]}))}}]),t}(s.Component);vc.contextTypes={getNodes:Mn.a.func,getSelectedNode:Mn.a.func};var yc=Si(Oe(vc),{visible:!0});function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];n.current=[],t.current=-1,a((function(){return(e||[]).forEach((function(e,t){r(t)})),e||[]}))}}}(t.env),c=a.list,u=a.remove,d=a.getKey,f=a.push,h=a.resetList;Object(s.useEffect)((function(){h(t.env)}),[JSON.stringify(t.env)]),o("collect_type",{initialValue:t.collect_type});var g=Object(s.useState)(!1),v=p()(g,2),y=v[0],b=v[1];return l.a.createElement(en.a,{layout:"horizontal",onSubmit:function(t){t.preventDefault(),e.form.validateFields((function(t,n){if(t)console.error(t);else{if(b(!0),n.env){var r=n.env,o={};tt.a.forEach(r,(function(e){o[e.name]=e.value})),n.env=JSON.stringify(o)}e.onSubmit(n).catch((function(){b(!1)}))}}))}},l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.common.node"})}),o("nid",{initialValue:t.nid,rules:[{required:!0}]})(l.a.createElement(pi.a,{style:{width:500},showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title",treeNodeLabelProp:"path",dropdownStyle:{maxHeight:400,overflow:"auto"}},Bn(e.treeData)))),l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.common.name"})}),l.a.createElement(Zt.a,un()({},r("name",{initialValue:t.name,rules:[{required:!0},dc]}),{size:"default",style:{width:500},placeholder:e.intl.formatMessage({id:"collect.plugin.name.placeholder"})}))),l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.plugin.filepath"})}),l.a.createElement(Zt.a,un()({},r("file_path",{initialValue:t.file_path,rules:[{required:!0}]}),{style:{width:500},placeholder:e.intl.formatMessage({id:"collect.plugin.filepath.placeholder"})}))),l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.plugin.params"})}),l.a.createElement(Zt.a,un()({},r("params",{initialValue:t.params}),{style:{width:500}}))),l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.plugin.env"})}),tt.a.map(c,(function(e,t){return l.a.createElement(sr.a,{key:d(t),gutter:10},l.a.createElement(cr.a,{span:9},l.a.createElement(ou,null,o("env[".concat(d(t),"].name"),{initialValue:e.name,rules:[{required:!0}]})(l.a.createElement(Zt.a,{placeholder:"field name",style:{width:"100%"}})))),l.a.createElement(cr.a,{span:10},l.a.createElement(ou,null,o("env[".concat(d(t),"].value"),{initialValue:e.value,rules:[{required:!0}]})(l.a.createElement(Zt.a,{placeholder:"field value",style:{width:"100%"}})))),l.a.createElement(cr.a,{span:5},c.length>0&&l.a.createElement(wt.a,{type:"minus-circle-o",style:{marginLeft:8},onClick:function(){u(t)}})))})),l.a.createElement(wt.a,{type:"plus-circle-o",style:{marginLeft:8},onClick:function(){f({name:"",value:""})}})),l.a.createElement(ou,un()({},au,{label:"Stdin"}),l.a.createElement(ru,un()({placeholder:""},r("stdin",{initialValue:t.stdin}),{style:{width:500,height:200}}))),l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.common.step"})}),l.a.createElement(Vo.a,un()({size:"default",style:{width:100}},r("step",{initialValue:t.step,rules:[{required:!0}]})),tt.a.map(uc,(function(e){return l.a.createElement(iu,{key:e,value:e},e)})))," ",l.a.createElement(gr,{id:"collect.common.step.unit"})),l.a.createElement(ou,un()({},au,{label:l.a.createElement(gr,{id:"collect.common.note"})}),l.a.createElement(Zt.a,un()({type:"textarea",placeholder:""},r("comment",{initialValue:t.comment}),{style:{width:500}}))),l.a.createElement(ou,{wrapperCol:{offset:6},style:{marginTop:24}},l.a.createElement(rt.a,{type:"primary",htmlType:"submit",loading:y},l.a.createElement(gr,{id:"form.submit"})),l.a.createElement(rt.a,{style:{marginLeft:8}},l.a.createElement(m.Link,{to:{pathname:"/monitor/collect"}},l.a.createElement(gr,{id:"form.goback"})))))})))};function cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uu(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"export",n=mu.a.utils.book_new(),r=mu.a.utils.json_to_sheet(e);mu.a.utils.book_append_sheet(n,r,t),mu.a.writeFile(n,"".concat(t,".xlsx"))}var vu=function(e){function t(){var e,n;Ot()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:"";n.lastFetchId+=1;var t=n.lastFetchId;n.setState({users:[],fetching:!0}),Vt("".concat(gt.user,"?limit=1000&query=").concat(e)).then((function(e){t===n.lastFetchId&&n.setState({users:e.list,fetching:!1})}))},n.fetchUser=tt.a.debounce(n.fetchUser,500),n}return Nt()(t,e),xt()(t,[{key:"componentDidMount",value:function(){this.fetchUser()}},{key:"validateFields",value:function(){return this.props.form.validateFields}},{key:"renderUserSelect",value:function(){var e=this,t=this.state,n=t.users,r=t.fetching;return l.a.createElement(Vo.a,{mode:"multiple",showSearch:!0,filterOption:!1,notFoundContent:r?l.a.createElement(Yn.a,{size:"small"}):null,onSearch:this.fetchUser,onDropdownVisibleChange:function(t){t||e.fetchUser()}},tt.a.map(n,(function(e){return l.a.createElement(bd,{key:e.id,value:e.id},e.username)})))}},{key:"render",value:function(){var e=this.props.initialValue,t=this.props.form,n=t.getFieldDecorator,r=t.getFieldValue;return l.a.createElement(en.a,{layout:"vertical"},l.a.createElement(vd,{label:l.a.createElement(gr,{id:"team.ident"}),required:!0},n("ident",{initialValue:e.ident,rules:[{required:!0}]})(l.a.createElement(Zt.a,null))),l.a.createElement(vd,{label:l.a.createElement(gr,{id:"team.name"}),required:!0},n("name",{initialValue:e.name,rules:[{required:!0}]})(l.a.createElement(Zt.a,null))),l.a.createElement(vd,{label:l.a.createElement(gr,{id:"team.mgmt"}),required:!0},n("mgmt",{initialValue:e.mgmt||0,rules:[{required:!0}]})(l.a.createElement(yd,null,l.a.createElement(ws.a,{value:0},l.a.createElement(gr,{id:"team.mgmt.member"})),l.a.createElement(ws.a,{value:1},l.a.createElement(gr,{id:"team.mgmt.admin"}))))),1===r("mgmt")?l.a.createElement(vd,{label:l.a.createElement(gr,{id:"team.admins"})},n("admins",{initialValue:e.admins,rules:[{required:1===r("mgmt")}]})(this.renderUserSelect())):null,l.a.createElement(vd,{label:l.a.createElement(gr,{id:"team.members"})},n("members",{initialValue:e.members})(this.renderUserSelect())))}}]),t}(s.Component);wd.defaultProps={initialValue:{}};var Ed=en.a.create()(wd);function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t children");r=e}})),r}var j={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},R={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},L=[],$=[];function F(e,t,n){e.addEventListener(t,n,!1)}function I(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete j.animationstart.animation,delete R.animationend.animation),"TransitionEvent"in window||(delete j.transitionstart.transition,delete R.transitionend.transition),t(j,L),t(R,$)}();var V={startEvents:L,addStartEventListener:function(e,t){0!==L.length?L.forEach((function(n){F(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==L.length&&L.forEach((function(n){I(e,n,t)}))},endEvents:$,addEndEventListener:function(e,t){0!==$.length?$.forEach((function(n){F(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==$.length&&$.forEach((function(n){I(e,n,t)}))}},B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W=0!==V.endEvents.length,H=["Webkit","Moz","O","ms"],z=["-webkit-","-moz-","-o-","ms-",""];function K(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o children");return o.a.createElement(te,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=ne({className:t.className,style:t.style},t.componentProps)),o.a.createElement(i,a,r)}return r[0]||null}}]),t}(o.a.Component);se.isAnimate=!0,se.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:ae,onEnter:ae,onLeave:ae,onAppear:ae};var le=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=M(ie(r));e.isValidChildByKey(o,t)?"appear"===n?J.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):J.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,a,s=M(ie(n));if(e.isValidChildByKey(s,t))e.performEnter(t);else{var l=function(){J.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=s,i=n.showProp,(a=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(a=!1)})),a?l():e.setState({children:s},l)}}}},ce=T(se),ue=n(58),de=n.n(ue),fe=function(e){function t(){return w()(this,t),C()(this,e.apply(this,arguments))}return O()(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=de()(e,["hiddenClassName","visible"]);return t||o.a.Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),o.a.createElement("div",r)):o.a.Children.only(r.children)},t}(r.Component);fe.propTypes={children:l.a.any,className:l.a.string,visible:l.a.bool,hiddenClassName:l.a.string};var he=fe,pe=function(e){function t(){return w()(this,t),C()(this,e.apply(this,arguments))}return O()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),o.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:e.style},o.a.createElement(he,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(r.Component);pe.propTypes={hiddenClassName:l.a.string,className:l.a.string,prefixCls:l.a.string,onMouseEnter:l.a.func,onMouseLeave:l.a.func,children:l.a.any};var me=pe;function ge(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ve(e,t){this[e]=t}var ye=function(e){function t(n){w()(this,t);var r=C()(this,e.call(this,n));return be.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=ve.bind(r,"popupInstance"),r.saveAlignRef=ve.bind(r,"alignInstance"),r}return O()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return a.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,i=n.targetHeight,a=n.targetWidth,s=this.props,l=s.align,c=s.visible,u=s.prefixCls,d=s.style,f=s.getClassNameFromAlign,h=s.destroyPopupOnHide,m=s.stretch,g=s.children,v=s.onMouseEnter,b=s.onMouseLeave,w=this.getClassName(this.currentAlignClassName||f(l)),E=u+"-hidden";c||(this.currentAlignClassName=null);var C={};m&&(-1!==m.indexOf("height")?C.height=i:-1!==m.indexOf("minHeight")&&(C.minHeight=i),-1!==m.indexOf("width")?C.width=a:-1!==m.indexOf("minWidth")&&(C.minWidth=a),r||(C.visibility="hidden",p()((function(){e.alignInstance&&e.alignInstance.forceAlign()}))));var k={className:w,prefixCls:u,ref:t,onMouseEnter:v,onMouseLeave:b,style:y()({},C,d,this.getZIndexStyle())};return h?o.a.createElement(ce,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),onLeave:this.onAnimateLeaved},c?o.a.createElement(A.default,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:l,onAlign:this.onAlign},o.a.createElement(me,y()({visible:!0},k),g)):null):o.a.createElement(ce,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible",onLeave:this.onAnimateLeaved},o.a.createElement(A.default,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:c,childrenProps:{visible:"xVisible"},disabled:!c,align:l,onAlign:this.onAlign},o.a.createElement(me,y()({hiddenClassName:E},k),g)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=o.a.createElement(he,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=o.a.createElement(ce,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return o.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(r.Component);ye.propTypes={visible:l.a.bool,style:l.a.object,getClassNameFromAlign:l.a.func,onAlign:l.a.func,getRootDomNode:l.a.func,onMouseEnter:l.a.func,align:l.a.any,destroyPopupOnHide:l.a.bool,className:l.a.string,prefixCls:l.a.string,onMouseLeave:l.a.func,stretch:l.a.string,children:l.a.node,point:l.a.shape({pageX:l.a.number,pageY:l.a.number})};var be=function(){var e=this;this.onAlign=function(t,n){var r=e.props,o=r.getClassNameFromAlign(n);e.currentAlignClassName!==o&&(e.currentAlignClassName=o,t.className=e.getClassName(o)),r.onAlign(t,n)},this.onAnimateLeaved=function(){var t=e.props.stretch,n=e.state.stretchChecked;t&&n&&e.setState({stretchChecked:!1})},this.setStretchSize=function(){var t=e.props.getRootDomNode,n=e.state,r=n.stretchChecked,o=n.targetHeight,i=n.targetWidth,a=t();if(a){var s=a.offsetHeight,l=a.offsetWidth;o===s&&i===l&&r||e.setState({stretchChecked:!0,targetHeight:s,targetWidth:l})}},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}},we=ye;function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var n=0;n-1}function Je(){return(Je=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return e.map(cn)}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=un(e),a=un(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var fn=Object.keys(sn.a);var hn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn.b,n=function(n){function r(){var e,t,n,o;w()(this,r);for(var i=arguments.length,a=Array(i),s=0;sn&&(u="".concat(u.slice(0,n),"...")),o.a.createElement("li",pn({style:gn({},rt,{},i)},ot,{role:"menuitem",className:Fe()("".concat(t,"-selection__choice"),r),title:tt(a)}),l&&o.a.createElement("span",{className:"".concat(t,"-selection__choice__remove"),onClick:this.onRemove},"function"==typeof c?o.a.createElement(c,gn({},this.props)):c),o.a.createElement("span",{className:"".concat(t,"-selection__choice__content")},u))}}])&&yn(n.prototype,r),i&&yn(n,i),t}(o.a.Component);kn(On,"propTypes",{prefixCls:l.a.string,maxTagTextLength:l.a.number,onRemove:l.a.func,className:l.a.string,style:l.a.object,label:l.a.node,value:l.a.oneOfType([l.a.string,l.a.number]),removeIcon:l.a.oneOfType([l.a.node,l.a.func])});var Sn=On;function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e,t){for(var n=0;n=0&&(p=t.slice(0,s)),p.forEach((function(e){var t=e.label,n=e.value,r=((u[n]||{}).node||{}).props,o=(r=void 0===r?{}:r).disabled;h.push({key:n,type:"selector",label:t,value:n,disabled:o})})),s>=0&&s1&&void 0!==arguments[1]&&arguments[1],r=n.props.onDropdownVisibleChange;r&&!1===r(e,{documentClickClose:!e&&t})||n.setUncontrolledState({open:e})})),Er(br(n),"isMultiple",(function(){var e=n.props,t=e.multiple,r=e.treeCheckable;return!(!t&&!r)})),Er(br(n),"isLabelInValue",(function(){return st(n.props)})),Er(br(n),"isSearchValueControlled",(function(){var e=n.props.inputValue;return"searchValue"in n.props||"inputValue"in n.props&&null!==e})),Er(br(n),"forcePopupAlign",(function(){var e=n.selectTriggerRef.current;e&&e.forcePopupAlign()})),Er(br(n),"delayForcePopupAlign",(function(){p()((function(){p()(n.forcePopupAlign)}))})),Er(br(n),"triggerChange",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.state,i=o.valueEntities,a=o.searchValue,s=o.selectorValueList,l=n.props,c=l.onChange,u=l.disabled,d=l.treeCheckable,f=l.treeCheckStrictly;if(!u){var h=gr({preValue:s.map((function(e){return{label:e.label,value:e.value}}))},r),p=ft(t,n.props,i);if(!("value"in n.props)){var m={missValueList:e,valueList:t,selectorValueList:p};a&&d&&!f&&(m.searchHalfCheckedKeys=vt(t,i)),n.setState(m)}if(c){var g;g=n.isMultiple()?[].concat(pr(e),pr(p)):p.slice(0,1);var v,y=null;n.isLabelInValue()?v=g.map((function(e){return{label:e.label,value:e.value}})):(y=[],v=g.map((function(e){var t=e.label,n=e.value;return y.push(t),n}))),n.isMultiple()||(v=v[0]),c(v,y,h)}}}));var r,o=e.prefixAria,i=e.defaultOpen,a=e.open;return n.state={open:a||i,valueList:[],searchHalfCheckedKeys:[],missValueList:[],selectorValueList:[],valueEntities:{},keyEntities:{},searchValue:"",init:!0},n.selectorRef=nt(),n.selectTriggerRef=nt(),n.ariaId=(r="".concat(o,"-list"),at+=1,"".concat(r,"_").concat(at)),n}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wr(e,t)}(t,e),n=t,a=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=void 0===n?{}:n,o=e.treeCheckable,i=e.treeCheckStrictly,a=e.filterTreeNode,s=e.treeNodeFilterProp,l=e.treeDataSimpleMode,c={prevProps:e,init:!1};function u(t,n){return r[t]!==e[t]&&(n(e[t],r[t]),!0)}var d,h=!1;u("open",(function(e){c.open=e}));var p,m,g,v,y,b,w,E=!1,C=!1;if(u("treeData",(function(e){d=pt(e),E=!0})),u("treeDataSimpleMode",(function(e,t){if(e){var n=t&&!0!==t?t:{};f()(e,n)||(C=!0)}})),l&&(E||C)){var k=gr({id:"id",pId:"pId",rootPId:null},!0!==l?l:{});d=pt((p=e.treeData,g=(m=k).id,v=m.pId,y=m.rootPId,b={},w=[],p.map((function(e){var t=Ze({},e),n=t[g];return b[n]=t,t.key=t.key||n,t})).forEach((function(e){var t=e[v],n=b[t];n&&(n.children=n.children||[],n.children.push(e)),(t===y||!n&&null===y)&&w.push(e)})),w))}if(e.treeData||u("children",(function(e){d=Array.isArray(e)?e:[e]})),d){var O=function(e){return Object(Ge.h)(e,{initWrapper:mt,processEntity:gt})}(d);c.treeNodes=d,c.posEntities=O.posEntities,c.valueEntities=O.valueEntities,c.keyEntities=O.keyEntities,h=!0}if(t.init&&u("defaultValue",(function(t){c.valueList=ut(t,e),h=!0})),u("value",(function(t){c.valueList=ut(t,e),h=!0})),h){var S=[],x=[],P=[],_=c.valueList;_||(_=[].concat(pr(t.valueList),pr(t.missValueList)));var A={};if(_.forEach((function(e){var n=e.value,r=e.label,o=(c.valueEntities||t.valueEntities)[n];if(A[n]=r,o)return P.push(o.key),void x.push(e);S.push(e)})),o&&!i){var T=yt(P,!0,c.keyEntities||t.keyEntities).checkedKeys;c.valueList=T.map((function(e){var n=(c.keyEntities||t.keyEntities)[e].value,r={value:n};return void 0!==A[n]&&(r.label=A[n]),r}))}else c.valueList=x;c.missValueList=S,c.selectorValueList=ft(c.valueList,e,c.valueEntities||t.valueEntities)}if(u("inputValue",(function(e){null!==e&&(c.searchValue=e)})),u("searchValue",(function(e){c.searchValue=e})),void 0!==c.searchValue||t.searchValue&&d){var M=void 0!==c.searchValue?c.searchValue:t.searchValue,N=String(M).toUpperCase(),D=a;!1===a?D=function(){return!0}:"function"!=typeof D&&(D=function(e,t){return-1!==String(t.props[s]).toUpperCase().indexOf(N)}),c.filteredTreeNodes=ct(c.treeNodes||t.treeNodes,M,D,c.valueEntities||t.valueEntities,fr)}return h&&o&&!i&&(c.searchValue||t.searchValue)&&(c.searchHalfCheckedKeys=vt(c.valueList,c.valueEntities||t.valueEntities)),u("showCheckedStrategy",(function(){c.selectorValueList=c.selectorValueList||ft(c.valueList||t.valueList,e,c.valueEntities||t.valueEntities)})),c}}],(r=[{key:"getChildContext",value:function(){return{rcTreeSelect:{onSelectorFocus:this.onSelectorFocus,onSelectorBlur:this.onSelectorBlur,onSelectorKeyDown:this.onComponentKeyDown,onSelectorClear:this.onSelectorClear,onMultipleSelectorRemove:this.onMultipleSelectorRemove,onTreeNodeSelect:this.onTreeNodeSelect,onTreeNodeCheck:this.onTreeNodeCheck,onPopupKeyDown:this.onComponentKeyDown,onSearchInputChange:this.onSearchInputChange,onSearchInputKeyDown:this.onSearchInputKeyDown}}}},{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props.prefixCls,o=this.state,a=o.valueList,s=o.open,l=o.selectorValueList,c=o.valueEntities,u=this.isMultiple();if(t.valueList!==a&&this.forcePopupAlign(),!u&&l.length&&!t.open&&s&&this.popup){var d=l[0].value,f=this.popup.getTree().domTreeNodes[(c[d]||{}).key];if(f){var h=Object(i.findDOMNode)(f);p()((function(){var e=function(e,t){for(var n=e;n;){if(Ye(n,t))return n;n=n.parentNode}return null}(Object(i.findDOMNode)(n.popup),"".concat(r,"-dropdown")),t=n.popup.searchRef.current;h&&e&&t&&g()(h,e,{onlyScrollIfNeeded:!0,offsetTop:t.offsetHeight})}))}}}},{key:"focus",value:function(){this.selectorRef.current.focus()}},{key:"blur",value:function(){this.selectorRef.current.blur()}},{key:"render",value:function(){var e=this.state,t=e.valueList,n=e.missValueList,r=e.selectorValueList,i=e.searchHalfCheckedKeys,a=e.valueEntities,s=e.keyEntities,l=e.searchValue,c=e.open,u=e.focused,d=e.treeNodes,f=e.filteredTreeNodes,h=this.props,p=h.prefixCls,m=h.treeExpandedKeys,g=h.onTreeExpand,v=this.isMultiple(),y=gr({},this.props,{isMultiple:v,valueList:t,searchHalfCheckedKeys:i,selectorValueList:[].concat(pr(n),pr(r)),valueEntities:a,keyEntities:s,searchValue:l,upperSearchValue:(l||"").toUpperCase(),open:c,focused:u,onChoiceAnimationLeave:this.onChoiceAnimationLeave,dropdownPrefixCls:"".concat(p,"-dropdown"),ariaId:this.ariaId}),b=v?ir:or,w=o.a.createElement(b,hr({ref:this.setPopupRef},y,{onTreeExpanded:this.delayForcePopupAlign,treeNodes:d,filteredTreeNodes:f,treeExpandedKeys:m,onTreeExpand:g})),E=v?Yn:rn,C=o.a.createElement(E,hr({},y,{ref:this.selectorRef}));return o.a.createElement(xt,hr({},y,{ref:this.selectTriggerRef,popupElement:w,onKeyDown:this.onKeyDown,onDropdownVisibleChange:this.onDropdownVisibleChange}),C)}}])&&vr(n.prototype,r),a&&vr(n,a),t}(o.a.Component);Er(Cr,"propTypes",{prefixCls:l.a.string,prefixAria:l.a.string,multiple:l.a.bool,showArrow:l.a.bool,open:l.a.bool,value:lr,autoFocus:l.a.bool,defaultOpen:l.a.bool,defaultValue:lr,showSearch:l.a.bool,placeholder:l.a.node,inputValue:l.a.string,searchValue:l.a.string,autoClearSearchValue:l.a.bool,searchPlaceholder:l.a.node,disabled:l.a.bool,children:l.a.node,labelInValue:l.a.bool,maxTagCount:l.a.number,maxTagPlaceholder:l.a.oneOfType([l.a.node,l.a.func]),maxTagTextLength:l.a.number,showCheckedStrategy:l.a.oneOf(["SHOW_ALL","SHOW_PARENT","SHOW_CHILD"]),dropdownMatchSelectWidth:l.a.bool,treeData:l.a.array,treeDataSimpleMode:l.a.oneOfType([l.a.bool,l.a.object]),treeNodeFilterProp:l.a.string,treeNodeLabelProp:l.a.string,treeCheckable:l.a.oneOfType([l.a.bool,l.a.node]),treeCheckStrictly:l.a.bool,treeIcon:l.a.bool,treeLine:l.a.bool,treeDefaultExpandAll:l.a.bool,treeDefaultExpandedKeys:l.a.array,treeExpandedKeys:l.a.array,loadData:l.a.func,filterTreeNode:l.a.oneOfType([l.a.func,l.a.bool]),notFoundContent:l.a.node,onSearch:l.a.func,onSelect:l.a.func,onDeselect:l.a.func,onChange:l.a.func,onDropdownVisibleChange:l.a.func,onTreeExpand:l.a.func,inputIcon:l.a.oneOfType([l.a.node,l.a.func]),clearIcon:l.a.oneOfType([l.a.node,l.a.func]),removeIcon:l.a.oneOfType([l.a.node,l.a.func]),switcherIcon:l.a.oneOfType([l.a.node,l.a.func])}),Er(Cr,"childContextTypes",{rcTreeSelect:l.a.shape(gr({},Rt,{},Gn,{},Kt,{onSearchInputChange:l.a.func,onSearchInputKeyDown:l.a.func}))}),Er(Cr,"defaultProps",{prefixCls:"rc-tree-select",prefixAria:"rc-tree-select",showArrow:!0,showSearch:!0,autoClearSearchValue:!0,showCheckedStrategy:"SHOW_CHILD",treeNodeFilterProp:"value",treeNodeLabelProp:"title",treeIcon:!1,notFoundContent:"Not Found"}),Cr.TreeNode=fr,Cr.SHOW_ALL="SHOW_ALL",Cr.SHOW_PARENT="SHOW_PARENT",Cr.SHOW_CHILD="SHOW_CHILD",Cr.displayName="TreeSelect",Object(c.polyfill)(Cr);var kr=Cr;n.d(t,"TreeNode",(function(){return Or})),n.d(t,"SHOW_ALL",(function(){return"SHOW_ALL"})),n.d(t,"SHOW_CHILD",(function(){return"SHOW_CHILD"})),n.d(t,"SHOW_PARENT",(function(){return"SHOW_PARENT"}));var Or=fr;t.default=kr},function(e,t,n){"use strict";n.r(t);var r=n(23),o=n.n(r),i=n(0),a=n.n(i),s=n(21),l=n.n(s),c=n(18),u=n.n(c),d=n(22),f=n.n(d),h=n(28),p=n.n(h),m={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=m.F1&&t<=m.F12)return!1;switch(t){case m.ALT:case m.CAPS_LOCK:case m.CONTEXT_MENU:case m.CTRL:case m.DOWN:case m.END:case m.ESC:case m.HOME:case m.INSERT:case m.LEFT:case m.MAC_FF_META:case m.META:case m.NUMLOCK:case m.NUM_CENTER:case m.PAGE_DOWN:case m.PAGE_UP:case m.PAUSE:case m.PRINT_SCREEN:case m.RIGHT:case m.SHIFT:case m.UP:case m.WIN_KEY:case m.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=m.ZERO&&e<=m.NINE)return!0;if(e>=m.NUM_ZERO&&e<=m.NUM_MULTIPLY)return!0;if(e>=m.A&&e<=m.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case m.SPACE:case m.QUESTION_MARK:case m.NUM_PLUS:case m.NUM_MINUS:case m.NUM_PERIOD:case m.NUM_DIVISION:case m.SEMICOLON:case m.DASH:case m.EQUALS:case m.COMMA:case m.PERIOD:case m.SLASH:case m.APOSTROPHE:case m.SINGLE_QUOTE:case m.OPEN_SQUARE_BRACKET:case m.BACKSLASH:case m.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},g=m;var v=n(143),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var U={},G=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return K(U),U={},void(document.body.className=n.replace(t,"").trim())}var r=function(e){if("undefined"==typeof document)return 0;if(e||void 0===H){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),H=o-i}return H}();if(r&&(U=K({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return n(Y({},t,{},s,{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},(function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null}))}}])&&Z(n.prototype,r),o&&Z(n,o),s}(a.a.Component);le.propTypes={wrapperClassName:x.a.string,forceRender:x.a.bool,getContainer:x.a.any,children:x.a.func,visible:x.a.bool};var ce=Object(P.polyfill)(le);t.default=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender;return!1===n?i.createElement(O,o()({},e,{getOpenCount:function(){return 2}})):i.createElement(ce,{visible:t,forceRender:r,getContainer:n},(function(t){return i.createElement(O,o()({},e,t))}))}},function(e,t,n){"use strict";n.r(t);var r=n(23),o=n.n(r),i=n(39),a=n.n(i),s=n(58),l=n.n(s),c=n(21),u=n.n(c),d=n(45),f=n.n(d),h=n(18),p=n.n(h),m=n(22),g=n.n(m),v=n(0),y=n.n(v),b=n(1),w=n.n(b),E=n(16),C=n.n(E),k=n(61),O=n.n(k),S=n(30),x=37,P=38,_=39,A=40;function T(e){var t=[];return y.a.Children.forEach(e,(function(e){e&&t.push(e)})),t}function M(e){return"left"===e||"right"===e}function N(e){return Object.keys(e).reduce((function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})}var D=n(38),j=n(94),R=n.n(j)()({}),L=R.Provider,$=R.Consumer,F={width:0,height:0,overflow:"hidden",position:"absolute"},I=function(e){function t(){var e,n,r,o;u()(this,t);for(var i=arguments.length,a=Array(i),s=0;s=0}(e,t.activeKey)||(n.activeKey=H(e)),Object.keys(n).length>0?n:null}}]),t}(y.a.Component),K=function(){var e=this;this.onTabClick=function(t,n){e.tabBar.props.onTabClick&&e.tabBar.props.onTabClick(t,n),e.setActiveKey(t)},this.onNavKeyDown=function(t){var n=t.keyCode;if(n===_||n===A){t.preventDefault();var r=e.getNextActiveKey(!0);e.onTabClick(r)}else if(n===x||n===P){t.preventDefault();var o=e.getNextActiveKey(!1);e.onTabClick(o)}},this.onScroll=function(e){var t=e.target;t===e.currentTarget&&t.scrollLeft>0&&(t.scrollLeft=0)},this.setSentinelStart=function(t){e.sentinelStart=t},this.setSentinelEnd=function(t){e.sentinelEnd=t},this.setPanelSentinelStart=function(t){t!==e.panelSentinelStart&&e.updateSentinelContext(),e.panelSentinelStart=t},this.setPanelSentinelEnd=function(t){t!==e.panelSentinelEnd&&e.updateSentinelContext(),e.panelSentinelEnd=t},this.setActiveKey=function(t){e.state.activeKey!==t&&("activeKey"in e.props||e.setState({activeKey:t}),e.props.onChange(t))},this.getNextActiveKey=function(t){var n=e.state.activeKey,r=[];y.a.Children.forEach(e.props.children,(function(e){e&&!e.props.disabled&&(t?r.push(e):r.unshift(e))}));var o=r.length,i=o&&r[0].key;return r.forEach((function(e,t){e.key===n&&(i=t===o-1?r[0].key:r[t+1].key)})),i}};z.propTypes={destroyInactiveTabPane:w.a.bool,renderTabBar:w.a.func.isRequired,renderTabContent:w.a.func.isRequired,navWrapper:w.a.func,onChange:w.a.func,children:w.a.node,prefixCls:w.a.string,className:w.a.string,tabBarPosition:w.a.string,style:w.a.object,activeKey:w.a.string,defaultActiveKey:w.a.string,direction:w.a.string},z.defaultProps={prefixCls:"rc-tabs",destroyInactiveTabPane:!1,onChange:function(){},navWrapper:function(e){return e},tabBarPosition:"top",children:null,style:{},direction:"ltr"},z.TabPane=W,Object(S.polyfill)(z);var U=z,G=function(e){function t(){return u()(this,t),p()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g()(t,e),f()(t,[{key:"getTabPanes",value:function(){var e=this.props,t=e.activeKey,n=e.children,r=[];return y.a.Children.forEach(n,(function(n){if(n){var o=n.key,i=t===o;r.push(y.a.cloneElement(n,{active:i,destroyInactiveTabPane:e.destroyInactiveTabPane,rootPrefixCls:e.prefixCls}))}})),r}},{key:"render",value:function(){var e,t,n=this.props,r=n.prefixCls,i=n.children,s=n.activeKey,l=n.className,c=n.tabBarPosition,u=n.animated,d=n.animatedWithMargin,f=n.direction,h=n.style,p=C()((e={},a()(e,r+"-content",!0),a()(e,u?r+"-content-animated":r+"-content-no-animated",!0),e),l);if(u){var m=function(e,t){for(var n=T(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:"ltr",r=M(t)?"translateY":"translateX";return M(t)||"rtl"!==n?r+"("+100*-e+"%) translateZ(0)":r+"("+100*e+"%) translateZ(0)"}(m,c,f),WebkitTransform:t,MozTransform:t};h=o()({},h,g)}else h=o()({},h,{display:"none"})}return y.a.createElement("div",{className:p,style:h},this.getTabPanes())}}]),t}(y.a.Component),q=G;G.propTypes={animated:w.a.bool,animatedWithMargin:w.a.bool,prefixCls:w.a.string,children:w.a.node,activeKey:w.a.string,style:w.a.any,tabBarPosition:w.a.string,className:w.a.string,destroyInactiveTabPane:w.a.bool,direction:w.a.string},G.defaultProps={animated:!0},n.d(t,"TabPane",(function(){return W})),n.d(t,"TabContent",(function(){return q}));t.default=U},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j(e,t){for(var n=0;n4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,c=0,u=-2*a;switch(i){case"left":s=-a,l=0,c=2*a,u=0;break;case"right":s=a,l=0,c=-2*a,u=0;break;case"bottom":l=a,u=2*a}var d="M 50,50 m ".concat(s,",").concat(l,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(c,",").concat(-u,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-c,",").concat(u),f=2*Math.PI*a,h={stroke:n,strokeDasharray:"".concat(t/100*(f-o),"px ").concat(f,"px"),strokeDashoffset:"-".concat(o/2+e/100*(f-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:d,pathStyle:h}}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(a,e);var t,n,r,i=L(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),V(F(e=i.call(this)),"paths",{}),V(F(e),"gradientId",0),e.gradientId=B,B+=1,e}return t=a,(n=[{key:"getStokeList",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.percent,i=t.strokeColor,a=t.strokeWidth,s=t.strokeLinecap,l=t.gapDegree,c=t.gapPosition,u=H(r),d=H(i),f=0;return u.map((function(t,r){var i=d[r]||d[d.length-1],u="[object Object]"===Object.prototype.toString.call(i)?"url(#".concat(n,"-gradient-").concat(e.gradientId,")"):"",h=z(f,t,i,a,l,c),p=h.pathString,m=h.pathStyle;return f+=t,o.a.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:p,stroke:u,strokeLinecap:s,strokeWidth:a,opacity:0===t?0:1,fillOpacity:"0",style:m,ref:function(t){e.paths[r]=t}})}))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.strokeWidth,r=e.trailWidth,i=e.gapDegree,a=e.gapPosition,s=e.trailColor,l=e.strokeLinecap,c=e.style,u=e.className,d=e.strokeColor,f=D(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor"]),h=z(0,100,s,n,i,a),p=h.pathString,m=h.pathStyle;delete f.percent;var g=H(d).find((function(e){return"[object Object]"===Object.prototype.toString.call(e)}));return o.a.createElement("svg",N({className:"".concat(t,"-circle ").concat(u),viewBox:"0 0 100 100",style:c},f),g&&o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"".concat(t,"-gradient-").concat(this.gradientId),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(g).sort((function(e,t){return W(e)-W(t)})).map((function(e,t){return o.a.createElement("stop",{key:t,offset:e,stopColor:g[e]})})))),o.a.createElement("path",{className:"".concat(t,"-circle-trail"),d:p,stroke:s,strokeLinecap:l,strokeWidth:r||n,fillOpacity:"0",style:m}),this.getStokeList().reverse())}}])&&j(t.prototype,n),r&&j(t,r),a}(r.Component);K.propTypes=M(M({},v),{},{gapPosition:p.a.oneOf(["top","bottom","left","right"])}),K.defaultProps=M(M({},m),{},{gapPosition:"top"});var U=f(K);n.d(t,"Line",(function(){return A})),n.d(t,"Circle",(function(){return U}));t.default={Line:A,Circle:U}},function(e,t,n){"use strict";n.r(t);var r=n(58),o=n.n(r),i=n(23),a=n.n(i),s=n(21),l=n.n(s),c=n(18),u=n.n(c),d=n(22),f=n.n(d),h=n(0),p=n.n(h),m=n(1),g=n.n(m),v=n(16),y=n.n(v),b=n(38),w=n(45),E=n.n(w),C=function(e){function t(){l()(this,t);var e=u()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={active:!1},e.onTouchStart=function(t){e.triggerEvent("TouchStart",!0,t)},e.onTouchMove=function(t){e.triggerEvent("TouchMove",!1,t)},e.onTouchEnd=function(t){e.triggerEvent("TouchEnd",!1,t)},e.onTouchCancel=function(t){e.triggerEvent("TouchCancel",!1,t)},e.onMouseDown=function(t){e.triggerEvent("MouseDown",!0,t)},e.onMouseUp=function(t){e.triggerEvent("MouseUp",!1,t)},e.onMouseLeave=function(t){e.triggerEvent("MouseLeave",!1,t)},e}return f()(t,e),E()(t,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"triggerEvent",value:function(e,t,n){var r="on"+e,o=this.props.children;o.props[r]&&o.props[r](n),t!==this.state.active&&this.setState({active:t})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,r=e.activeClassName,o=e.activeStyle,i=n?void 0:{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave},s=p.a.Children.only(t);if(!n&&this.state.active){var l=s.props,c=l.style,u=l.className;return!1!==o&&(o&&(c=a()({},c,o)),u=y()(u,r)),p.a.cloneElement(s,a()({className:u,style:c},i))}return p.a.cloneElement(s,i)}}]),t}(p.a.Component),k=C;C.defaultProps={disabled:!1};var O=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.disabled,r=o()(e,["prefixCls","disabled"]);return p.a.createElement(k,{disabled:n,activeClassName:t+"-handler-active"},p.a.createElement("span",r))},t}(h.Component);O.propTypes={prefixCls:g.a.string,disabled:g.a.bool,onTouchStart:g.a.func,onTouchEnd:g.a.func,onMouseDown:g.a.func,onMouseUp:g.a.func,onMouseLeave:g.a.func};var S=O;function x(){}function P(e){e.preventDefault()}var _=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,A=function(e){return null!=e},T=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},M=function(e){function t(n){l()(this,t);var r=u()(this,e.call(this,n));N.call(r);var o=void 0;o="value"in n?n.value:n.defaultValue,r.state={focused:n.autoFocus};var i=r.getValidValue(r.toNumber(o));return r.state=a()({},r.state,{inputValue:r.toPrecisionAsStep(i),value:i}),r}return f()(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.value,r=t.onChange,o=t.max,i=t.min,a=this.state.focused;if(e){if(!T(e.value,n)||!T(e.max,o)||!T(e.min,i)){var s=a?n:this.getValidValue(n),l=void 0;l=this.pressingUpOrDown?s:this.inputting?this.rawInput:this.toPrecisionAsStep(s),this.setState({value:s,inputValue:l})}var c="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==o&&"number"==typeof c&&c>o&&r&&r(o),"min"in this.props&&e.min!==i&&"number"==typeof c&&c1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(e,10);return isNaN(r)?e:(rn&&(r=n),r)},t.prototype.setValue=function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),o=this.state,i=o.value,a=void 0===i?null:i,s=o.inputValue,l=void 0===s?null:s,c="number"==typeof r?r.toFixed(n):""+r,u=r!==a||c!==""+l;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),u&&this.props.onChange(r),r},t.prototype.getPrecision=function(e){if(A(this.props.precision))return this.props.precision;var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},t.prototype.getMaxPrecision=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(A(r))return r;var i=this.getPrecision(t),a=this.getPrecision(o),s=this.getPrecision(e);return e?Math.max(s,i+a):i+a},t.prototype.getPrecisionFactor=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)},t.prototype.fixCaret=function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(e){}},t.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},t.prototype.blur=function(){this.input.blur()},t.prototype.select=function(){this.input.select()},t.prototype.formatWrapper=function(e){return this.props.formatter?this.props.formatter(e):e},t.prototype.toPrecisionAsStep=function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)},t.prototype.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},t.prototype.toNumber=function(e){var t=this.props.precision,n=this.state.focused,r=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||r?e:A(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)},t.prototype.upStep=function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e+r*n*t)/r).toFixed(o);return this.toNumber(i)},t.prototype.downStep=function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e-r*n*t)/r).toFixed(o);return this.toNumber(i)},t.prototype.step=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),t&&(t.persist(),t.preventDefault());var i=this.props;if(!i.disabled){var a=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(a)){var s=this[e+"Step"](a,r),l=s>i.max||si.max?s=i.max:s=t.max&&(f=n+"-handler-up-disabled"),g<=t.min&&(h=n+"-handler-down-disabled")}var v={};for(var b in t)!t.hasOwnProperty(b)||"data-"!==b.substr(0,5)&&"aria-"!==b.substr(0,5)&&"role"!==b||(v[b]=t[b]);var w=!t.readOnly&&!t.disabled,E=this.getInputDisplayValue(),C=void 0,k=void 0;s?(C={onTouchStart:w&&!f?this.up:x,onTouchEnd:this.stop},k={onTouchStart:w&&!h?this.down:x,onTouchEnd:this.stop}):(C={onMouseDown:w&&!f?this.up:x,onMouseUp:this.stop,onMouseLeave:this.stop},k={onMouseDown:w&&!h?this.down:x,onMouseUp:this.stop,onMouseLeave:this.stop});var O=!!f||r||i,_=!!h||r||i;return p.a.createElement("div",{className:d,style:t.style,title:t.title,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseOver:t.onMouseOver,onMouseOut:t.onMouseOut},p.a.createElement("div",{className:n+"-handler-wrap"},p.a.createElement(S,a()({ref:this.saveUp,disabled:O,prefixCls:n,unselectable:"unselectable"},C,{role:"button","aria-label":"Increase Value","aria-disabled":!!O,className:n+"-handler "+n+"-handler-up "+f}),c||p.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:P})),p.a.createElement(S,a()({ref:this.saveDown,disabled:_,prefixCls:n,unselectable:"unselectable"},k,{role:"button","aria-label":"Decrease Value","aria-disabled":!!_,className:n+"-handler "+n+"-handler-down "+h}),u||p.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:P}))),p.a.createElement("div",{className:n+"-input-wrap"},p.a.createElement("input",a()({role:"spinbutton","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":m,required:t.required,type:t.type,placeholder:t.placeholder,onClick:t.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:t.tabIndex,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:w?this.onKeyDown:x,onKeyUp:w?this.onKeyUp:x,autoFocus:t.autoFocus,maxLength:t.maxLength,readOnly:t.readOnly,disabled:t.disabled,max:t.max,min:t.min,step:t.step,name:t.name,title:t.title,id:t.id,onChange:this.onChange,ref:this.saveInput,value:E,pattern:t.pattern,inputMode:t.inputMode},v))))},t}(p.a.Component);M.propTypes={value:g.a.oneOfType([g.a.number,g.a.string]),defaultValue:g.a.oneOfType([g.a.number,g.a.string]),focusOnUpDown:g.a.bool,autoFocus:g.a.bool,onChange:g.a.func,onPressEnter:g.a.func,onKeyDown:g.a.func,onKeyUp:g.a.func,prefixCls:g.a.string,tabIndex:g.a.oneOfType([g.a.string,g.a.number]),disabled:g.a.bool,onFocus:g.a.func,onBlur:g.a.func,readOnly:g.a.bool,max:g.a.number,min:g.a.number,step:g.a.oneOfType([g.a.number,g.a.string]),upHandler:g.a.node,downHandler:g.a.node,useTouch:g.a.bool,formatter:g.a.func,parser:g.a.func,onMouseEnter:g.a.func,onMouseLeave:g.a.func,onMouseOver:g.a.func,onMouseOut:g.a.func,onMouseUp:g.a.func,precision:g.a.number,required:g.a.bool,pattern:g.a.string,decimalSeparator:g.a.string,inputMode:g.a.string},M.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-_,step:1,style:{},onChange:x,onKeyDown:x,onPressEnter:x,onFocus:x,onBlur:x,parser:function(e){return e.replace(/[^\w\.-]+/g,"")},required:!1,autoComplete:"off"};var N=function(){var e=this;this.onKeyDown=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;oNightingale
\ No newline at end of file +Nightingale
\ No newline at end of file diff --git a/src/model/user.go b/src/model/user.go index 5fde9673..f247f5b8 100644 --- a/src/model/user.go +++ b/src/model/user.go @@ -38,15 +38,15 @@ func (u *User) CheckFields() { if str.Dangerous(u.Dispname) { errors.Bomb("dispname is dangerous") } + /* + if u.Phone != "" && !str.IsPhone(u.Phone) { + errors.Bomb("%s format error", u.Phone) + } - if u.Phone != "" && !str.IsPhone(u.Phone) { - errors.Bomb("%s format error", u.Phone) - } - - if u.Email != "" && !str.IsMail(u.Email) { - errors.Bomb("%s format error", u.Email) - } - + if u.Email != "" && !str.IsMail(u.Email) { + errors.Bomb("%s format error", u.Email) + } + */ if len(u.Username) > 32 { errors.Bomb("username too long") } diff --git a/src/modules/monapi/cron/mask.go b/src/modules/monapi/cron/mask.go index f73ad1e7..810c06af 100644 --- a/src/modules/monapi/cron/mask.go +++ b/src/modules/monapi/cron/mask.go @@ -74,9 +74,13 @@ func IsMaskEvent(event *model.Event) bool { eventTagsList = append(eventTagsList, fmt.Sprintf("%s=%s", strings.TrimSpace(k), strings.TrimSpace(v))) } key := eventMetric + "#" + event.Endpoint - maskTagsList, exists := mcache.MaskCache.GetByKey(key) + endpointKey := "#" + event.Endpoint + maskTagsList, exists := mcache.MaskCache.GetByKey(endpointKey) if !exists { - continue + maskTagsList, exists = mcache.MaskCache.GetByKey(key) + if !exists { + continue + } } for i := 0; i < len(maskTagsList); i++ { diff --git a/src/modules/monapi/mcache/mask.go b/src/modules/monapi/mcache/mask.go index 94679876..bb514753 100644 --- a/src/modules/monapi/mcache/mask.go +++ b/src/modules/monapi/mcache/mask.go @@ -1,12 +1,9 @@ package mcache -import "sync" - // MaskCacheMap 给alarm用,判断告警事件是否被屏蔽 // key是'${metric}#${endpoint},value是list, // 每一条是屏蔽策略中配置的tags,比如service=x,module=y type MaskCacheMap struct { - sync.RWMutex Data map[string][]string } @@ -19,14 +16,10 @@ func NewMaskCache() *MaskCacheMap { } func (mc *MaskCacheMap) SetAll(m map[string][]string) { - mc.Lock() mc.Data = m - mc.Unlock() } func (mc *MaskCacheMap) GetByKey(key string) ([]string, bool) { - mc.RLock() value, exists := mc.Data[key] - mc.RUnlock() return value, exists } diff --git a/web/package-lock.json b/web/package-lock.json index 01cb77e3..a6da19a7 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -50,12 +50,12 @@ } }, "@babel/compat-data": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.8.6.tgz", - "integrity": "sha512-CurCIKPTkS25Mb8mz267vU95vy+TyUpnctEX2lV33xWNmHAfjruztgiPBbXZRh3xZZy1CYvGx6XfxyTVS+sk7Q==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.10.1.tgz", + "integrity": "sha512-CHvCj7So7iCkGKPRFUfryXIkU2gSBw7VSZFYLsqVhrS47269VK2Hfi9S/YcublPMW8k1u2bQBlbDruoQEm4fgw==", "dev": true, "requires": { - "browserslist": "^4.8.5", + "browserslist": "^4.12.0", "invariant": "^2.2.4", "semver": "^5.5.0" } @@ -121,21 +121,21 @@ } }, "@babel/helper-annotate-as-pure": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz", - "integrity": "sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.10.1.tgz", + "integrity": "sha512-ewp3rvJEwLaHgyWGe4wQssC2vjks3E80WiUe2BpMb0KhreTjMROCbxXcEovTrbeGVdQct5VjQfrv9EgC+xMzCw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -143,22 +143,22 @@ } }, "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz", - "integrity": "sha512-5eFOm2SyFPK4Rh3XMMRDjN7lBH0orh3ss0g3rTYZnBQ+r6YPj7lgDyCvPphynHvUrobJmeMignBr6Acw9mAPlw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.10.1.tgz", + "integrity": "sha512-cQpVq48EkYxUU0xozpGCLla3wlkdRRqLWu1ksFMXA9CM5KQmyyRpSEsYXbao7JUkOw/tAaYKCaYyZq6HOFYtyw==", "dev": true, "requires": { - "@babel/helper-explode-assignable-expression": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-explode-assignable-expression": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -166,253 +166,161 @@ } }, "@babel/helper-builder-react-jsx": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.8.3.tgz", - "integrity": "sha512-JT8mfnpTkKNCboTqZsQTdGo3l3Ik3l7QIt9hh0O9DYiwVel37VoJpILKM4YFbP2euF32nkQSb+F9cUk9b7DDXQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.10.1.tgz", + "integrity": "sha512-KXzzpyWhXgzjXIlJU1ZjIXzUPdej1suE6vzqgImZ/cpAsR/CC8gUcX4EWRmDfWz/cs6HOCPMBIJ3nKoXt3BFuw==", "dev": true, "requires": { - "@babel/types": "^7.8.3", - "esutils": "^2.0.0" + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } } } }, - "@babel/helper-call-delegate": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.8.3.tgz", - "integrity": "sha512-6Q05px0Eb+N4/GTyKPPvnkig7Lylw+QzihMpws9iiZQv7ZImf84ZsZpQH7QoWN4n4tm81SnSzPgHw2qtO0Zf3A==", + "@babel/helper-builder-react-jsx-experimental": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx-experimental/-/helper-builder-react-jsx-experimental-7.10.1.tgz", + "integrity": "sha512-irQJ8kpQUV3JasXPSFQ+LCCtJSc5ceZrPFVj6TElR6XCHssi3jV8ch3odIrNtjJFRZZVbrOEfJMI79TPU/h1pQ==", "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.8.3", - "@babel/traverse": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/helper-module-imports": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "@babel/helper-module-imports": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", + "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" - } - }, - "@babel/generator": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.6.tgz", - "integrity": "sha512-4bpOR5ZBz+wWcMeVtcf7FbjcFzCp+817z2/gHNncIRcM9MmKzUhtWCYAq27RAfUrAFwb+OCG1s9WEaVxfi6cjg==", - "dev": true, - "requires": { - "@babel/types": "^7.8.6", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" - } - }, - "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", - "dev": true, - "requires": { - "@babel/types": "^7.8.3" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", - "dev": true, - "requires": { - "@babel/types": "^7.8.3" - } - }, - "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", - "dev": true, - "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", - "dev": true - }, - "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" - } - }, - "@babel/traverse": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz", - "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.6", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true } } }, "@babel/helper-compilation-targets": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.8.6.tgz", - "integrity": "sha512-UrJdk27hKVJSnibFcUWYLkCL0ZywTUoot8yii1lsHJcvwrypagmYKjHLMWivQPm4s6GdyygCL8fiH5EYLxhQwQ==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.10.2.tgz", + "integrity": "sha512-hYgOhF4To2UTB4LTaZepN/4Pl9LD4gfbJx8A34mqoluT8TLbof1mhUlYuNWTEebONa8+UlCC4X0TEXu7AOUyGA==", "dev": true, "requires": { - "@babel/compat-data": "^7.8.6", - "browserslist": "^4.8.5", + "@babel/compat-data": "^7.10.1", + "browserslist": "^4.12.0", "invariant": "^2.2.4", "levenary": "^1.1.1", "semver": "^5.5.0" } }, "@babel/helper-create-class-features-plugin": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.8.6.tgz", - "integrity": "sha512-klTBDdsr+VFFqaDHm5rR69OpEQtO2Qv8ECxHS1mNhJJvaHArR6a1xTf5K/eZW7eZpJbhCx3NW1Yt/sKsLXLblg==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.10.2.tgz", + "integrity": "sha512-5C/QhkGFh1vqcziq1vAL6SI9ymzUp8BCYjFpvYVhWP4DlATIb3u5q3iUd35mvlyGs8fO7hckkW7i0tmH+5+bvQ==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-member-expression-to-functions": "^7.8.3", - "@babel/helper-optimise-call-expression": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-replace-supers": "^7.8.6", - "@babel/helper-split-export-declaration": "^7.8.3" + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-member-expression-to-functions": "^7.10.1", + "@babel/helper-optimise-call-expression": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-replace-supers": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -420,91 +328,91 @@ } }, "@babel/helper-create-regexp-features-plugin": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.6.tgz", - "integrity": "sha512-bPyujWfsHhV/ztUkwGHz/RPV1T1TDEsSZDsN42JPehndA+p1KKTh3npvTadux0ZhCrytx9tvjpWNowKby3tM6A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.10.1.tgz", + "integrity": "sha512-Rx4rHS0pVuJn5pJOqaqcZR4XSgeF9G/pO/79t+4r7380tXFJdzImFnxMU19f83wjSrmKHq6myrM10pFHTGzkUA==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.8.3", - "@babel/helper-regex": "^7.8.3", - "regexpu-core": "^4.6.0" + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/helper-regex": "^7.10.1", + "regexpu-core": "^4.7.0" } }, "@babel/helper-define-map": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz", - "integrity": "sha512-PoeBYtxoZGtct3md6xZOCWPcKuMuk3IHhgxsRRNtnNShebf4C8YonTSblsK4tvDbm+eJAw2HAPOfCr+Q/YRG/g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.10.1.tgz", + "integrity": "sha512-+5odWpX+OnvkD0Zmq7panrMuAGQBu6aPUgvMzuMGo4R+jUOvealEj2hiqI6WhxgKrTpFoFj0+VdsuA8KDxHBDg==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.8.3", - "@babel/types": "^7.8.3", + "@babel/helper-function-name": "^7.10.1", + "@babel/types": "^7.10.1", "lodash": "^4.17.13" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -512,117 +420,117 @@ } }, "@babel/helper-explode-assignable-expression": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz", - "integrity": "sha512-N+8eW86/Kj147bO9G2uclsg5pwfs/fqqY5rwgIL7eTBklgXjcOJ3btzS5iM6AitJcftnY7pm2lGsrJVYLGjzIw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.10.1.tgz", + "integrity": "sha512-vcUJ3cDjLjvkKzt6rHrl767FeE7pMEYfPanq5L16GRtrXIoznc0HykNW2aEYkcnP76P0isoqJ34dDMFZwzEpJg==", "dev": true, "requires": { - "@babel/traverse": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/traverse": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/generator": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.6.tgz", - "integrity": "sha512-4bpOR5ZBz+wWcMeVtcf7FbjcFzCp+817z2/gHNncIRcM9MmKzUhtWCYAq27RAfUrAFwb+OCG1s9WEaVxfi6cjg==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", + "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", "dev": true, "requires": { - "@babel/types": "^7.8.6", + "@babel/types": "^7.10.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/traverse": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz", - "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", + "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.6", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6", + "@babel/code-frame": "^7.10.1", + "@babel/generator": "^7.10.1", + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -656,21 +564,21 @@ } }, "@babel/helper-hoist-variables": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz", - "integrity": "sha512-ky1JLOjcDUtSc+xkt0xhYff7Z6ILTAHKmZLHPxAhOP0Nd77O+3nCsd6uSVYur6nJnCI029CrNbYlc0LoPfAPQg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.10.1.tgz", + "integrity": "sha512-vLm5srkU8rI6X3+aQ1rQJyfjvCBLXP8cAGeuw04zeAM2ItKb1e7pmVmLyHb4sDaAYnLL13RHOZPLEtcGZ5xvjg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -678,21 +586,21 @@ } }, "@babel/helper-member-expression-to-functions": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz", - "integrity": "sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.1.tgz", + "integrity": "sha512-u7XLXeM2n50gb6PWJ9hoO5oO7JFPaZtrh35t8RqKLT1jFKj9IWeD1zrcrYp1q1qiZTdEarfDWfTIP8nGsu0h5g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -709,82 +617,82 @@ } }, "@babel/helper-module-transforms": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.8.6.tgz", - "integrity": "sha512-RDnGJSR5EFBJjG3deY0NiL0K9TO8SXxS9n/MPsbPK/s9LbQymuLNtlzvDiNS7IpecuL45cMeLVkA+HfmlrnkRg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz", + "integrity": "sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.8.3", - "@babel/helper-replace-supers": "^7.8.6", - "@babel/helper-simple-access": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/template": "^7.8.6", - "@babel/types": "^7.8.6", + "@babel/helper-module-imports": "^7.10.1", + "@babel/helper-replace-supers": "^7.10.1", + "@babel/helper-simple-access": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1", "lodash": "^4.17.13" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/helper-module-imports": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", - "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", + "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -792,21 +700,21 @@ } }, "@babel/helper-optimise-call-expression": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz", - "integrity": "sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.1.tgz", + "integrity": "sha512-a0DjNS1prnBsoKx83dP2falChcs7p3i8VMzdrSbfLhuQra/2ENC4sbri34dz/rWmDADsmF1q5GbfaXydh0Jbjg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -814,135 +722,135 @@ } }, "@babel/helper-plugin-utils": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", - "integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.1.tgz", + "integrity": "sha512-fvoGeXt0bJc7VMWZGCAEBEMo/HAjW2mP8apF5eXK0wSqwLAVHAISCWRoLMBMUs2kqeaG77jltVqu4Hn8Egl3nA==", "dev": true }, "@babel/helper-regex": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.8.3.tgz", - "integrity": "sha512-BWt0QtYv/cg/NecOAZMdcn/waj/5P26DR4mVLXfFtDokSR6fyuG0Pj+e2FqtSME+MqED1khnSMulkmGl8qWiUQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.10.1.tgz", + "integrity": "sha512-7isHr19RsIJWWLLFn21ubFt223PjQyg1HY7CZEMRr820HttHPpVvrsIN3bUOo44DEfFV4kBXO7Abbn9KTUZV7g==", "dev": true, "requires": { "lodash": "^4.17.13" } }, "@babel/helper-remap-async-to-generator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz", - "integrity": "sha512-kgwDmw4fCg7AVgS4DukQR/roGp+jP+XluJE5hsRZwxCYGg+Rv9wSGErDWhlI90FODdYfd4xG4AQRiMDjjN0GzA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.10.1.tgz", + "integrity": "sha512-RfX1P8HqsfgmJ6CwaXGKMAqbYdlleqglvVtht0HGPMSsy2V6MqLlOJVF/0Qyb/m2ZCi2z3q3+s6Pv7R/dQuZ6A==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.8.3", - "@babel/helper-wrap-function": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/traverse": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/helper-wrap-function": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/traverse": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/generator": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.6.tgz", - "integrity": "sha512-4bpOR5ZBz+wWcMeVtcf7FbjcFzCp+817z2/gHNncIRcM9MmKzUhtWCYAq27RAfUrAFwb+OCG1s9WEaVxfi6cjg==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", + "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", "dev": true, "requires": { - "@babel/types": "^7.8.6", + "@babel/types": "^7.10.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/traverse": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz", - "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", + "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.6", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6", + "@babel/code-frame": "^7.10.1", + "@babel/generator": "^7.10.1", + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -956,119 +864,119 @@ } }, "@babel/helper-replace-supers": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz", - "integrity": "sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz", + "integrity": "sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A==", "dev": true, "requires": { - "@babel/helper-member-expression-to-functions": "^7.8.3", - "@babel/helper-optimise-call-expression": "^7.8.3", - "@babel/traverse": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/helper-member-expression-to-functions": "^7.10.1", + "@babel/helper-optimise-call-expression": "^7.10.1", + "@babel/traverse": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/generator": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.6.tgz", - "integrity": "sha512-4bpOR5ZBz+wWcMeVtcf7FbjcFzCp+817z2/gHNncIRcM9MmKzUhtWCYAq27RAfUrAFwb+OCG1s9WEaVxfi6cjg==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", + "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", "dev": true, "requires": { - "@babel/types": "^7.8.6", + "@babel/types": "^7.10.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/traverse": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz", - "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", + "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.6", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6", + "@babel/code-frame": "^7.10.1", + "@babel/generator": "^7.10.1", + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1082,59 +990,59 @@ } }, "@babel/helper-simple-access": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz", - "integrity": "sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz", + "integrity": "sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw==", "dev": true, "requires": { - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1150,120 +1058,126 @@ "@babel/types": "^7.4.4" } }, + "@babel/helper-validator-identifier": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", + "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", + "dev": true + }, "@babel/helper-wrap-function": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz", - "integrity": "sha512-LACJrbUET9cQDzb6kG7EeD7+7doC3JNvUgTEQOx2qaO1fKlzE/Bf05qs9w1oXQMmXlPO65lC3Tq9S6gZpTErEQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.10.1.tgz", + "integrity": "sha512-C0MzRGteVDn+H32/ZgbAv5r56f2o1fZSA/rj/TYo8JEJNHg+9BdSmKBUND0shxWRztWhjlT2cvHYuynpPsVJwQ==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/traverse": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-function-name": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/traverse": "^7.10.1", + "@babel/types": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/generator": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.6.tgz", - "integrity": "sha512-4bpOR5ZBz+wWcMeVtcf7FbjcFzCp+817z2/gHNncIRcM9MmKzUhtWCYAq27RAfUrAFwb+OCG1s9WEaVxfi6cjg==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", + "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", "dev": true, "requires": { - "@babel/types": "^7.8.6", + "@babel/types": "^7.10.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/traverse": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz", - "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", + "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.6", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6", + "@babel/code-frame": "^7.10.1", + "@babel/generator": "^7.10.1", + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1305,125 +1219,146 @@ "dev": true }, "@babel/plugin-proposal-async-generator-functions": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz", - "integrity": "sha512-NZ9zLv848JsV3hs8ryEh7Uaz/0KsmPLqv0+PdkDJL1cJy0K4kOCFa8zc1E3mp+RHPQcpdfb/6GovEsW4VDrOMw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.10.1.tgz", + "integrity": "sha512-vzZE12ZTdB336POZjmpblWfNNRpMSua45EYnRigE2XsZxcXcIyly2ixnTJasJE4Zq3U7t2d8rRF7XRUuzHxbOw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-remap-async-to-generator": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-remap-async-to-generator": "^7.10.1", "@babel/plugin-syntax-async-generators": "^7.8.0" } }, "@babel/plugin-proposal-class-properties": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.8.3.tgz", - "integrity": "sha512-EqFhbo7IosdgPgZggHaNObkmO1kNUe3slaKu54d5OWvy+p9QIKOzK1GAEpAIsZtWVtPXUHSMcT4smvDrCfY4AA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.10.1.tgz", + "integrity": "sha512-sqdGWgoXlnOdgMXU+9MbhzwFRgxVLeiGBqTrnuS7LC2IBU31wSsESbTUreT2O418obpfPdGUR2GbEufZF1bpqw==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-create-class-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-proposal-decorators": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.8.3.tgz", - "integrity": "sha512-e3RvdvS4qPJVTe288DlXjwKflpfy1hr0j5dz5WpIYYeP7vQZg2WfAEIp8k5/Lwis/m5REXEteIz6rrcDtXXG7w==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.10.1.tgz", + "integrity": "sha512-xBfteh352MTke2U1NpclzMDmAmCdQ2fBZjhZQQfGTjXw6qcRYMkt528sA1U8o0ThDCSeuETXIj5bOGdxN+5gkw==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-decorators": "^7.8.3" + "@babel/helper-create-class-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-decorators": "^7.10.1" } }, "@babel/plugin-proposal-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz", - "integrity": "sha512-NyaBbyLFXFLT9FP+zk0kYlUlA8XtCUbehs67F0nnEg7KICgMc2mNkIeu9TYhKzyXMkrapZFwAhXLdnt4IYHy1w==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.10.1.tgz", + "integrity": "sha512-Cpc2yUVHTEGPlmiQzXj026kqwjEQAD9I4ZC16uzdbgWgitg/UHKHLffKNCQZ5+y8jpIZPJcKcwsr2HwPh+w3XA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "@babel/plugin-syntax-dynamic-import": "^7.8.0" } }, "@babel/plugin-proposal-export-default-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.8.3.tgz", - "integrity": "sha512-PYtv2S2OdCdp7GSPDg5ndGZFm9DmWFvuLoS5nBxZCgOBggluLnhTScspJxng96alHQzPyrrHxvC9/w4bFuspeA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.10.1.tgz", + "integrity": "sha512-Xfc1CfHapIkwZ/+AI+j4Ha3g233ol0EEdy6SmnUuQQiZX78SfQXHd8tmntc5zqCkwPnIHoiZa6l6p0OAvxYXHw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-export-default-from": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-export-default-from": "^7.10.1" } }, "@babel/plugin-proposal-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-WKK+9jz6TWUTX1uej9/EUVOmM1sK7aHv6bZyxbUV3NJjbiIZRqJITeXGMo7D631J72PEnIORh5VOlFCSlrLicg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.10.1.tgz", + "integrity": "sha512-eR4CoYb6mh5y9LWjnb4CyUatuhtZ8pNLXLDi46GkqtF7WPafFqXycHdvF5qWviozZVGRSAmHzdayc8wUReCdjA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "@babel/plugin-syntax-export-namespace-from": "^7.8.3" } }, "@babel/plugin-proposal-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz", - "integrity": "sha512-KGhQNZ3TVCQG/MjRbAUwuH+14y9q0tpxs1nWWs3pbSleRdDro9SAMMDyye8HhY1gqZ7/NqIc8SKhya0wRDgP1Q==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.10.1.tgz", + "integrity": "sha512-m8r5BmV+ZLpWPtMY2mOKN7wre6HIO4gfIiV+eOmsnZABNenrt/kzYBwrh+KOfgumSWpnlGs5F70J8afYMSJMBg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "@babel/plugin-syntax-json-strings": "^7.8.0" } }, "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-TS9MlfzXpXKt6YYomudb/KU7nQI6/xnapG6in1uZxoxDghuSMZsPb6D2fyUwNYSAp4l1iR7QtFOjkqcRYcUsfw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.10.1.tgz", + "integrity": "sha512-56cI/uHYgL2C8HVuHOuvVowihhX0sxb3nnfVRzUeVHTWmRHTZrKuAh/OBIMggGU/S1g/1D2CRCXqP+3u7vX7iA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" } }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-8qvuPwU/xxUCt78HocNlv0mXXo0wdh9VT1R04WU8HGOfaOob26pF+9P5/lYjN/q7DHOX1bvX60hnhOvuQUJdbA==", + "@babel/plugin-proposal-numeric-separator": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.10.1.tgz", + "integrity": "sha512-jjfym4N9HtCiNfyyLAVD8WqPYeHUrw4ihxuAynWj6zzp2gf9Ey2f7ImhFm6ikB3CLf5Z/zmcJDri6B4+9j9RsA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.0" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-numeric-separator": "^7.10.1" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.10.1.tgz", + "integrity": "sha512-Z+Qri55KiQkHh7Fc4BW6o+QBuTagbOp9txE+4U1i79u9oWlf2npkiDx+Rf3iK3lbcHBuNy9UOkwuR5wOMH3LIQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-transform-parameters": "^7.10.1" } }, "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-0gkX7J7E+AtAw9fcwlVQj8peP61qhdg/89D5swOkjYbkboA2CVckn3kiyum1DE0wskGb7KJJxBdyEBApDLLVdw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.10.1.tgz", + "integrity": "sha512-VqExgeE62YBqI3ogkGoOJp1R6u12DFZjqwJhqtKc2o5m1YTUuUWnos7bZQFBhwkxIFpWYJ7uB75U7VAPPiKETA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "@babel/plugin-syntax-optional-catch-binding": "^7.8.0" } }, "@babel/plugin-proposal-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.8.3.tgz", - "integrity": "sha512-QIoIR9abkVn+seDE3OjA08jWcs3eZ9+wJCKSRgo3WdEU2csFYgdScb+8qHB3+WXsGJD55u+5hWCISI7ejXS+kg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.10.1.tgz", + "integrity": "sha512-dqQj475q8+/avvok72CF3AOSV/SGEcH29zT5hhohqqvvZ2+boQoOr7iGldBG5YXTO2qgCgc2B3WvVLUdbeMlGA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "@babel/plugin-syntax-optional-chaining": "^7.8.0" } }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.3.tgz", - "integrity": "sha512-1/1/rEZv2XGweRwwSkLpY+s60za9OZ1hJs4YDqFHCw0kYWYwL5IFljVY1MYBL+weT1l9pokDO2uhSTLVxzoHkQ==", + "@babel/plugin-proposal-private-methods": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.10.1.tgz", + "integrity": "sha512-RZecFFJjDiQ2z6maFprLgrdnm0OzoC23Mx89xf1CcEsxmHuzuXOdniEuI+S3v7vjQG4F5sa6YtUp+19sZuSxHg==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-create-class-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.10.1.tgz", + "integrity": "sha512-JjfngYRvwmPwmnbRZyNiPFI8zxCZb8euzbCG/LxyKdeTb59tVciKo9GK9bi6JYKInk1H11Dq9j/zRqIH4KigfQ==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-syntax-async-generators": { @@ -1435,13 +1370,22 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, - "@babel/plugin-syntax-decorators": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.8.3.tgz", - "integrity": "sha512-8Hg4dNNT9/LcA1zQlfwuKR8BUc/if7Q7NkTam9sGTcJphLwpf2g4S42uhspQrIrR+dpzE0dtTqBVFoHl8GtnnQ==", + "@babel/plugin-syntax-class-properties": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.10.1.tgz", + "integrity": "sha512-Gf2Yx/iRs1JREDtVZ56OrjjgFHCaldpTnuy9BHla10qyVT3YkIIGEtoDWhyop0ksu1GvNjHIoYRBqm3zoR1jyQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" + } + }, + "@babel/plugin-syntax-decorators": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.10.1.tgz", + "integrity": "sha512-a9OAbQhKOwSle1Vr0NJu/ISg1sPfdEkfRKWpgPuzhnWWzForou2gIeUIIwjAMHRekhhpJ7eulZlYs0H14Cbi+g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-syntax-dynamic-import": { @@ -1454,12 +1398,12 @@ } }, "@babel/plugin-syntax-export-default-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.8.3.tgz", - "integrity": "sha512-a1qnnsr73KLNIQcQlcQ4ZHxqqfBKM6iNQZW2OMTyxNbA2WC7SHWHtGVpFzWtQAuS2pspkWVzdEBXXx8Ik0Za4w==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.10.1.tgz", + "integrity": "sha512-+rcL4S/mN1Ss4zhSCbxzv1Wsf12eauvgTjWi0krXEeX1zd6qSxYnJoniE5Ssr5w2WPt61oUCJyXIFQIqO/29zw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-syntax-export-namespace-from": { @@ -1481,12 +1425,12 @@ } }, "@babel/plugin-syntax-jsx": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.8.3.tgz", - "integrity": "sha512-WxdW9xyLgBdefoo0Ynn3MRSkhe5tFVxxKNVdnZSh318WrG2e2jH+E9wd/++JsqcLJZPfz87njQJ8j2Upjm0M0A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.10.1.tgz", + "integrity": "sha512-+OxyOArpVFXQeXKLO9o+r2I4dIoVoy6+Uu0vKELrlweDM3QJADZj+Z+5ERansZqIZBcLj42vHnDI8Rz9BnRIuQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-syntax-nullish-coalescing-operator": { @@ -1498,6 +1442,15 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.1.tgz", + "integrity": "sha512-uTd0OsHrpe3tH5gRPTxG8Voh99/WCU78vIm5NMRYPAqC8lR4vajt6KkCAknCHrx24vkPdd/05yfdGSB4EIY2mg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.1" + } + }, "@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", @@ -1526,59 +1479,59 @@ } }, "@babel/plugin-syntax-top-level-await": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz", - "integrity": "sha512-kwj1j9lL/6Wd0hROD3b/OZZ7MSrZLqqn9RAZ5+cYYsflQ9HZBIKCUkr3+uL1MEJ1NePiUbf98jjiMQSv0NMR9g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.10.1.tgz", + "integrity": "sha512-hgA5RYkmZm8FTFT3yu2N9Bx7yVVOKYT6yEdXXo6j2JTm0wNxgqaGeQVaSHRjhfnQbX91DtjFB6McRFSlcJH3xQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-syntax-typescript": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.8.3.tgz", - "integrity": "sha512-GO1MQ/SGGGoiEXY0e0bSpHimJvxqB7lktLLIq2pv8xG7WZ8IMEle74jIe1FhprHBWjwjZtXHkycDLZXIWM5Wfg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.10.1.tgz", + "integrity": "sha512-X/d8glkrAtra7CaQGMiGs/OGa6XgUzqPcBXCIGFCpCqnfGlT0Wfbzo/B89xHhnInTaItPK8LALblVXcUOEh95Q==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-arrow-functions": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz", - "integrity": "sha512-0MRF+KC8EqH4dbuITCWwPSzsyO3HIWWlm30v8BbbpOrS1B++isGxPnnuq/IZvOX5J2D/p7DQalQm+/2PnlKGxg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.10.1.tgz", + "integrity": "sha512-6AZHgFJKP3DJX0eCNJj01RpytUa3SOGawIxweHkNX2L6PYikOZmoh5B0d7hIHaIgveMjX990IAa/xK7jRTN8OA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-async-to-generator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz", - "integrity": "sha512-imt9tFLD9ogt56Dd5CI/6XgpukMwd/fLGSrix2httihVe7LOGVPhyhMh1BU5kDM7iHD08i8uUtmV2sWaBFlHVQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.10.1.tgz", + "integrity": "sha512-XCgYjJ8TY2slj6SReBUyamJn3k2JLUIiiR5b6t1mNCMSvv7yx+jJpaewakikp0uWFQSF7ChPPoe3dHmXLpISkg==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-remap-async-to-generator": "^7.8.3" + "@babel/helper-module-imports": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-remap-async-to-generator": "^7.10.1" }, "dependencies": { "@babel/helper-module-imports": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", - "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", + "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1586,113 +1539,113 @@ } }, "@babel/plugin-transform-block-scoped-functions": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz", - "integrity": "sha512-vo4F2OewqjbB1+yaJ7k2EJFHlTP3jR634Z9Cj9itpqNjuLXvhlVxgnjsHsdRgASR8xYDrx6onw4vW5H6We0Jmg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.10.1.tgz", + "integrity": "sha512-B7K15Xp8lv0sOJrdVAoukKlxP9N59HS48V1J3U/JGj+Ad+MHq+am6xJVs85AgXrQn4LV8vaYFOB+pr/yIuzW8Q==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-block-scoping": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz", - "integrity": "sha512-pGnYfm7RNRgYRi7bids5bHluENHqJhrV4bCZRwc5GamaWIIs07N4rZECcmJL6ZClwjDz1GbdMZFtPs27hTB06w==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.10.1.tgz", + "integrity": "sha512-8bpWG6TtF5akdhIm/uWTyjHqENpy13Fx8chg7pFH875aNLwX8JxIxqm08gmAT+Whe6AOmaTeLPe7dpLbXt+xUw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-plugin-utils": "^7.10.1", "lodash": "^4.17.13" } }, "@babel/plugin-transform-classes": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.8.6.tgz", - "integrity": "sha512-k9r8qRay/R6v5aWZkrEclEhKO6mc1CCQr2dLsVHBmOQiMpN6I2bpjX3vgnldUWeEI1GHVNByULVxZ4BdP4Hmdg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.10.1.tgz", + "integrity": "sha512-P9V0YIh+ln/B3RStPoXpEQ/CoAxQIhRSUn7aXqQ+FZJ2u8+oCtjIXR3+X0vsSD8zv+mb56K7wZW1XiDTDGiDRQ==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.8.3", - "@babel/helper-define-map": "^7.8.3", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-optimise-call-expression": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-replace-supers": "^7.8.6", - "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/helper-define-map": "^7.10.1", + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-optimise-call-expression": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-replace-supers": "^7.10.1", + "@babel/helper-split-export-declaration": "^7.10.1", "globals": "^11.1.0" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", + "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1700,135 +1653,135 @@ } }, "@babel/plugin-transform-computed-properties": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz", - "integrity": "sha512-O5hiIpSyOGdrQZRQ2ccwtTVkgUDBBiCuK//4RJ6UfePllUTCENOzKxfh6ulckXKc0DixTFLCfb2HVkNA7aDpzA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.10.1.tgz", + "integrity": "sha512-mqSrGjp3IefMsXIenBfGcPXxJxweQe2hEIwMQvjtiDQ9b1IBvDUjkAtV/HMXX47/vXf14qDNedXsIiNd1FmkaQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-destructuring": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.8.3.tgz", - "integrity": "sha512-H4X646nCkiEcHZUZaRkhE2XVsoz0J/1x3VVujnn96pSoGCtKPA99ZZA+va+gK+92Zycd6OBKCD8tDb/731bhgQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.10.1.tgz", + "integrity": "sha512-V/nUc4yGWG71OhaTH705pU8ZSdM6c1KmmLP8ys59oOYbT7RpMYAR3MsVOt6OHL0WzG7BlTU076va9fjJyYzJMA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-dotall-regex": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz", - "integrity": "sha512-kLs1j9Nn4MQoBYdRXH6AeaXMbEJFaFu/v1nQkvib6QzTj8MZI5OQzqmD83/2jEM1z0DLilra5aWO5YpyC0ALIw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.10.1.tgz", + "integrity": "sha512-19VIMsD1dp02RvduFUmfzj8uknaO3uiHHF0s3E1OHnVsNj8oge8EQ5RzHRbJjGSetRnkEuBYO7TG1M5kKjGLOA==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-create-regexp-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-duplicate-keys": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz", - "integrity": "sha512-s8dHiBUbcbSgipS4SMFuWGqCvyge5V2ZeAWzR6INTVC3Ltjig/Vw1G2Gztv0vU/hRG9X8IvKvYdoksnUfgXOEQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.10.1.tgz", + "integrity": "sha512-wIEpkX4QvX8Mo9W6XF3EdGttrIPZWozHfEaDTU0WJD/TDnXMvdDh30mzUl/9qWhnf7naicYartcEfUghTCSNpA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-exponentiation-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz", - "integrity": "sha512-zwIpuIymb3ACcInbksHaNcR12S++0MDLKkiqXHl3AzpgdKlFNhog+z/K0+TGW+b0w5pgTq4H6IwV/WhxbGYSjQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.10.1.tgz", + "integrity": "sha512-lr/przdAbpEA2BUzRvjXdEDLrArGRRPwbaF9rvayuHRvdQ7lUTTkZnhZrJ4LE2jvgMRFF4f0YuPQ20vhiPYxtA==", "dev": true, "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-for-of": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.8.6.tgz", - "integrity": "sha512-M0pw4/1/KI5WAxPsdcUL/w2LJ7o89YHN3yLkzNjg7Yl15GlVGgzHyCU+FMeAxevHGsLVmUqbirlUIKTafPmzdw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.10.1.tgz", + "integrity": "sha512-US8KCuxfQcn0LwSCMWMma8M2R5mAjJGsmoCBVwlMygvmDUMkTCykc84IqN1M7t+agSfOmLYTInLCHJM+RUoz+w==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz", - "integrity": "sha512-rO/OnDS78Eifbjn5Py9v8y0aR+aSYhDhqAwVfsTl0ERuMZyr05L1aFSCJnbv2mmsLkit/4ReeQ9N2BgLnOcPCQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.10.1.tgz", + "integrity": "sha512-//bsKsKFBJfGd65qSNNh1exBy5Y9gD9ZN+DvrJ8f7HXr4avE5POW6zB7Rj6VnqHV33+0vXWUwJT0wSHubiAQkw==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-function-name": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", + "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.1" } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", + "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/template": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", + "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.6.tgz", - "integrity": "sha512-trGNYSfwq5s0SgM1BMEB8hX3NDmO7EP2wsDGDexiaKMB92BaRpS+qZfpkMqUBhcsOTBwNy9B/jieo4ad/t/z2g==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", + "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", "dev": true }, "@babel/template": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", - "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", + "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.6", - "@babel/types": "^7.8.6" + "@babel/code-frame": "^7.10.1", + "@babel/parser": "^7.10.1", + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1836,66 +1789,66 @@ } }, "@babel/plugin-transform-literals": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz", - "integrity": "sha512-3Tqf8JJ/qB7TeldGl+TT55+uQei9JfYaregDcEAyBZ7akutriFrt6C/wLYIer6OYhleVQvH/ntEhjE/xMmy10A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.10.1.tgz", + "integrity": "sha512-qi0+5qgevz1NHLZroObRm5A+8JJtibb7vdcPQF1KQE12+Y/xxl8coJ+TpPW9iRq+Mhw/NKLjm+5SHtAHCC7lAw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-member-expression-literals": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz", - "integrity": "sha512-3Wk2EXhnw+rP+IDkK6BdtPKsUE5IeZ6QOGrPYvw52NwBStw9V1ZVzxgK6fSKSxqUvH9eQPR3tm3cOq79HlsKYA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.10.1.tgz", + "integrity": "sha512-UmaWhDokOFT2GcgU6MkHC11i0NQcL63iqeufXWfRy6pUOGYeCGEKhvfFO6Vz70UfYJYHwveg62GS83Rvpxn+NA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-modules-amd": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.8.3.tgz", - "integrity": "sha512-MadJiU3rLKclzT5kBH4yxdry96odTUwuqrZM+GllFI/VhxfPz+k9MshJM+MwhfkCdxxclSbSBbUGciBngR+kEQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.10.1.tgz", + "integrity": "sha512-31+hnWSFRI4/ACFr1qkboBbrTxoBIzj7qA69qlq8HY8p7+YCzkCT6/TvQ1a4B0z27VeWtAeJd6pr5G04dc1iHw==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "babel-plugin-dynamic-import-node": "^2.3.0" + "@babel/helper-module-transforms": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "babel-plugin-dynamic-import-node": "^2.3.3" } }, "@babel/plugin-transform-modules-commonjs": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.8.3.tgz", - "integrity": "sha512-JpdMEfA15HZ/1gNuB9XEDlZM1h/gF/YOH7zaZzQu2xCFRfwc01NXBMHHSTT6hRjlXJJs5x/bfODM3LiCk94Sxg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.10.1.tgz", + "integrity": "sha512-AQG4fc3KOah0vdITwt7Gi6hD9BtQP/8bhem7OjbaMoRNCH5Djx42O2vYMfau7QnAzQCa+RJnhJBmFFMGpQEzrg==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-simple-access": "^7.8.3", - "babel-plugin-dynamic-import-node": "^2.3.0" + "@babel/helper-module-transforms": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-simple-access": "^7.10.1", + "babel-plugin-dynamic-import-node": "^2.3.3" } }, "@babel/plugin-transform-modules-systemjs": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.8.3.tgz", - "integrity": "sha512-8cESMCJjmArMYqa9AO5YuMEkE4ds28tMpZcGZB/jl3n0ZzlsxOAi3mC+SKypTfT8gjMupCnd3YiXCkMjj2jfOg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.10.1.tgz", + "integrity": "sha512-ewNKcj1TQZDL3YnO85qh9zo1YF1CHgmSTlRQgHqe63oTrMI85cthKtZjAiZSsSNjPQ5NCaYo5QkbYqEw1ZBgZA==", "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.8.3", - "@babel/helper-module-transforms": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "babel-plugin-dynamic-import-node": "^2.3.0" + "@babel/helper-hoist-variables": "^7.10.1", + "@babel/helper-module-transforms": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "babel-plugin-dynamic-import-node": "^2.3.3" } }, "@babel/plugin-transform-modules-umd": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.8.3.tgz", - "integrity": "sha512-evhTyWhbwbI3/U6dZAnx/ePoV7H6OUG+OjiJFHmhr9FPn0VShjwC2kdxqIuQ/+1P50TMrneGzMeyMTFOjKSnAw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.10.1.tgz", + "integrity": "sha512-EIuiRNMd6GB6ulcYlETnYYfgv4AxqrswghmBRQbWLHZxN4s7mupxzglnHqk9ZiUpDI4eRWewedJJNj67PWOXKA==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-module-transforms": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-named-capturing-groups-regex": { @@ -1908,51 +1861,50 @@ } }, "@babel/plugin-transform-new-target": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz", - "integrity": "sha512-QuSGysibQpyxexRyui2vca+Cmbljo8bcRckgzYV4kRIsHpVeyeC3JDO63pY+xFZ6bWOBn7pfKZTqV4o/ix9sFw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.10.1.tgz", + "integrity": "sha512-MBlzPc1nJvbmO9rPr1fQwXOM2iGut+JC92ku6PbiJMMK7SnQc1rytgpopveE3Evn47gzvGYeCdgfCDbZo0ecUw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-object-super": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz", - "integrity": "sha512-57FXk+gItG/GejofIyLIgBKTas4+pEU47IXKDBWFTxdPd7F80H8zybyAY7UoblVfBhBGs2EKM+bJUu2+iUYPDQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.10.1.tgz", + "integrity": "sha512-WnnStUDN5GL+wGQrJylrnnVlFhFmeArINIR9gjhSeYyvroGhBrSAXYg/RHsnfzmsa+onJrTJrEClPzgNmmQ4Gw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-replace-supers": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-replace-supers": "^7.10.1" } }, "@babel/plugin-transform-parameters": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.8.4.tgz", - "integrity": "sha512-IsS3oTxeTsZlE5KqzTbcC2sV0P9pXdec53SU+Yxv7o/6dvGM5AkTotQKhoSffhNgZ/dftsSiOoxy7evCYJXzVA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.10.1.tgz", + "integrity": "sha512-tJ1T0n6g4dXMsL45YsSzzSDZCxiHXAQp/qHrucOq5gEHncTA3xDxnd5+sZcoQp+N1ZbieAaB8r/VUCG0gqseOg==", "dev": true, "requires": { - "@babel/helper-call-delegate": "^7.8.3", - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" }, "dependencies": { "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", + "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -1960,100 +1912,122 @@ } }, "@babel/plugin-transform-property-literals": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz", - "integrity": "sha512-uGiiXAZMqEoQhRWMK17VospMZh5sXWg+dlh2soffpkAl96KAm+WZuJfa6lcELotSRmooLqg0MWdH6UUq85nmmg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.10.1.tgz", + "integrity": "sha512-Kr6+mgag8auNrgEpbfIWzdXYOvqDHZOF0+Bx2xh4H2EDNwcbRb9lY6nkZg8oSjsX+DH9Ebxm9hOqtKW+gRDeNA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-react-display-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.8.3.tgz", - "integrity": "sha512-3Jy/PCw8Fe6uBKtEgz3M82ljt+lTg+xJaM4og+eyu83qLT87ZUSckn0wy7r31jflURWLO83TW6Ylf7lyXj3m5A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.10.1.tgz", + "integrity": "sha512-rBjKcVwjk26H3VX8pavMxGf33LNlbocMHdSeldIEswtQ/hrjyTG8fKKILW1cSkODyRovckN/uZlGb2+sAV9JUQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-react-jsx": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.8.3.tgz", - "integrity": "sha512-r0h+mUiyL595ikykci+fbwm9YzmuOrUBi0b+FDIKmi3fPQyFokWVEMJnRWHJPPQEjyFJyna9WZC6Viv6UHSv1g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.10.1.tgz", + "integrity": "sha512-MBVworWiSRBap3Vs39eHt+6pJuLUAaK4oxGc8g+wY+vuSJvLiEQjW1LSTqKb8OUPtDvHCkdPhk7d6sjC19xyFw==", "dev": true, "requires": { - "@babel/helper-builder-react-jsx": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-jsx": "^7.8.3" + "@babel/helper-builder-react-jsx": "^7.10.1", + "@babel/helper-builder-react-jsx-experimental": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-jsx": "^7.10.1" + } + }, + "@babel/plugin-transform-react-jsx-development": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.10.1.tgz", + "integrity": "sha512-XwDy/FFoCfw9wGFtdn5Z+dHh6HXKHkC6DwKNWpN74VWinUagZfDcEJc3Y8Dn5B3WMVnAllX8Kviaw7MtC5Epwg==", + "dev": true, + "requires": { + "@babel/helper-builder-react-jsx-experimental": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-jsx": "^7.10.1" } }, "@babel/plugin-transform-react-jsx-self": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.8.3.tgz", - "integrity": "sha512-01OT7s5oa0XTLf2I8XGsL8+KqV9lx3EZV+jxn/L2LQ97CGKila2YMroTkCEIE0HV/FF7CMSRsIAybopdN9NTdg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.10.1.tgz", + "integrity": "sha512-4p+RBw9d1qV4S749J42ZooeQaBomFPrSxa9JONLHJ1TxCBo3TzJ79vtmG2S2erUT8PDDrPdw4ZbXGr2/1+dILA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-jsx": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-jsx": "^7.10.1" } }, "@babel/plugin-transform-react-jsx-source": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.8.3.tgz", - "integrity": "sha512-PLMgdMGuVDtRS/SzjNEQYUT8f4z1xb2BAT54vM1X5efkVuYBf5WyGUMbpmARcfq3NaglIwz08UVQK4HHHbC6ag==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.10.1.tgz", + "integrity": "sha512-neAbaKkoiL+LXYbGDvh6PjPG+YeA67OsZlE78u50xbWh2L1/C81uHiNP5d1fw+uqUIoiNdCC8ZB+G4Zh3hShJA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-jsx": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-jsx": "^7.10.1" + } + }, + "@babel/plugin-transform-react-pure-annotations": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.10.1.tgz", + "integrity": "sha512-mfhoiai083AkeewsBHUpaS/FM1dmUENHBMpS/tugSJ7VXqXO5dCN1Gkint2YvM1Cdv1uhmAKt1ZOuAjceKmlLA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-regenerator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.3.tgz", - "integrity": "sha512-qt/kcur/FxrQrzFR432FGZznkVAjiyFtCOANjkAKwCbt465L6ZCiUQh2oMYGU3Wo8LRFJxNDFwWn106S5wVUNA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.10.1.tgz", + "integrity": "sha512-B3+Y2prScgJ2Bh/2l9LJxKbb8C8kRfsG4AdPT+n7ixBHIxJaIG8bi8tgjxUMege1+WqSJ+7gu1YeoMVO3gPWzw==", "dev": true, "requires": { - "regenerator-transform": "^0.14.0" + "regenerator-transform": "^0.14.2" } }, "@babel/plugin-transform-reserved-words": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz", - "integrity": "sha512-mwMxcycN3omKFDjDQUl+8zyMsBfjRFr0Zn/64I41pmjv4NJuqcYlEtezwYtw9TFd9WR1vN5kiM+O0gMZzO6L0A==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.10.1.tgz", + "integrity": "sha512-qN1OMoE2nuqSPmpTqEM7OvJ1FkMEV+BjVeZZm9V9mq/x1JLKQ4pcv8riZJMNN3u2AUGl0ouOMjRr2siecvHqUQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-runtime": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.8.3.tgz", - "integrity": "sha512-/vqUt5Yh+cgPZXXjmaG9NT8aVfThKk7G4OqkVhrXqwsC5soMn/qTCxs36rZ2QFhpfTJcjw4SNDIZ4RUb8OL4jQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.10.1.tgz", + "integrity": "sha512-4w2tcglDVEwXJ5qxsY++DgWQdNJcCCsPxfT34wCUwIf2E7dI7pMpH8JczkMBbgBTNzBX62SZlNJ9H+De6Zebaw==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-module-imports": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", "resolve": "^1.8.1", "semver": "^5.5.1" }, "dependencies": { "@babel/helper-module-imports": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", - "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", + "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } @@ -2061,150 +2035,166 @@ } }, "@babel/plugin-transform-shorthand-properties": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz", - "integrity": "sha512-I9DI6Odg0JJwxCHzbzW08ggMdCezoWcuQRz3ptdudgwaHxTjxw5HgdFJmZIkIMlRymL6YiZcped4TTCB0JcC8w==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.10.1.tgz", + "integrity": "sha512-AR0E/lZMfLstScFwztApGeyTHJ5u3JUKMjneqRItWeEqDdHWZwAOKycvQNCasCK/3r5YXsuNG25funcJDu7Y2g==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz", - "integrity": "sha512-CkuTU9mbmAoFOI1tklFWYYbzX5qCIZVXPVy0jpXgGwkplCndQAa58s2jr66fTeQnA64bDox0HL4U56CFYoyC7g==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.10.1.tgz", + "integrity": "sha512-8wTPym6edIrClW8FI2IoaePB91ETOtg36dOkj3bYcNe7aDMN2FXEoUa+WrmPc4xa1u2PQK46fUX2aCb+zo9rfw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-sticky-regex": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz", - "integrity": "sha512-9Spq0vGCD5Bb4Z/ZXXSK5wbbLFMG085qd2vhL1JYu1WcQ5bXqZBAYRzU1d+p79GcHs2szYv5pVQCX13QgldaWw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.10.1.tgz", + "integrity": "sha512-j17ojftKjrL7ufX8ajKvwRilwqTok4q+BjkknmQw9VNHnItTyMP5anPFzxFJdCQs7clLcWpCV3ma+6qZWLnGMA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-regex": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/helper-regex": "^7.10.1" } }, "@babel/plugin-transform-template-literals": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz", - "integrity": "sha512-820QBtykIQOLFT8NZOcTRJ1UNuztIELe4p9DCgvj4NK+PwluSJ49we7s9FB1HIGNIYT7wFUJ0ar2QpCDj0escQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.10.1.tgz", + "integrity": "sha512-t7B/3MQf5M1T9hPCRG28DNGZUuxAuDqLYS03rJrIk2prj/UV7Z6FOneijhQhnv/Xa039vidXeVbvjK2SK5f7Gg==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-annotate-as-pure": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-typeof-symbol": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz", - "integrity": "sha512-2QKyfjGdvuNfHsb7qnBBlKclbD4CfshH2KvDabiijLMGXPHJXGxtDzwIF7bQP+T0ysw8fYTtxPafgfs/c1Lrqg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.10.1.tgz", + "integrity": "sha512-qX8KZcmbvA23zDi+lk9s6hC1FM7jgLHYIjuLgULgc8QtYnmB3tAVIYkNoKRQ75qWBeyzcoMoK8ZQmogGtC/w0g==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-typescript": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.8.3.tgz", - "integrity": "sha512-Ebj230AxcrKGZPKIp4g4TdQLrqX95TobLUWKd/CwG7X1XHUH1ZpkpFvXuXqWbtGRWb7uuEWNlrl681wsOArAdQ==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.10.1.tgz", + "integrity": "sha512-v+QWKlmCnsaimLeqq9vyCsVRMViZG1k2SZTlcZvB+TqyH570Zsij8nvVUZzOASCRiQFUxkLrn9Wg/kH0zgy5OQ==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-typescript": "^7.8.3" + "@babel/helper-create-class-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-syntax-typescript": "^7.10.1" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.10.1.tgz", + "integrity": "sha512-zZ0Poh/yy1d4jeDWpx/mNwbKJVwUYJX73q+gyh4bwtG0/iUlzdEu0sLMda8yuDFS6LBQlT/ST1SJAR6zYwXWgw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/plugin-transform-unicode-regex": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz", - "integrity": "sha512-+ufgJjYdmWfSQ+6NS9VGUR2ns8cjJjYbrbi11mZBTaWm+Fui/ncTLFF28Ei1okavY+xkojGr1eJxNsWYeA5aZw==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.10.1.tgz", + "integrity": "sha512-Y/2a2W299k0VIUdbqYm9X2qS6fE0CUBhhiPpimK6byy7OJ/kORLlIX+J6UrjgNu5awvs62k+6RSslxhcvVw2Tw==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-create-regexp-features-plugin": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1" } }, "@babel/polyfill": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.8.3.tgz", - "integrity": "sha512-0QEgn2zkCzqGIkSWWAEmvxD7e00Nm9asTtQvi7HdlYvMhjy/J38V/1Y9ode0zEJeIuxAI0uftiAzqc7nVeWUGg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.10.1.tgz", + "integrity": "sha512-TviueJ4PBW5p48ra8IMtLXVkDucrlOZAIZ+EXqS3Ot4eukHbWiqcn7DcqpA1k5PcKtmJ4Xl9xwdv6yQvvcA+3g==", "dev": true, "requires": { "core-js": "^2.6.5", - "regenerator-runtime": "^0.13.2" + "regenerator-runtime": "^0.13.4" }, "dependencies": { "regenerator-runtime": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", - "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==", + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz", + "integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==", "dev": true } } }, "@babel/preset-env": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.8.6.tgz", - "integrity": "sha512-M5u8llV9DIVXBFB/ArIpqJuvXpO+ymxcJ6e8ZAmzeK3sQeBNOD1y+rHvHCGG4TlEmsNpIrdecsHGHT8ZCoOSJg==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.10.2.tgz", + "integrity": "sha512-MjqhX0RZaEgK/KueRzh+3yPSk30oqDKJ5HP5tqTSB1e2gzGS3PLy7K0BIpnp78+0anFuSwOeuCf1zZO7RzRvEA==", "dev": true, "requires": { - "@babel/compat-data": "^7.8.6", - "@babel/helper-compilation-targets": "^7.8.6", - "@babel/helper-module-imports": "^7.8.3", - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-proposal-async-generator-functions": "^7.8.3", - "@babel/plugin-proposal-dynamic-import": "^7.8.3", - "@babel/plugin-proposal-json-strings": "^7.8.3", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-proposal-object-rest-spread": "^7.8.3", - "@babel/plugin-proposal-optional-catch-binding": "^7.8.3", - "@babel/plugin-proposal-optional-chaining": "^7.8.3", - "@babel/plugin-proposal-unicode-property-regex": "^7.8.3", + "@babel/compat-data": "^7.10.1", + "@babel/helper-compilation-targets": "^7.10.2", + "@babel/helper-module-imports": "^7.10.1", + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-proposal-async-generator-functions": "^7.10.1", + "@babel/plugin-proposal-class-properties": "^7.10.1", + "@babel/plugin-proposal-dynamic-import": "^7.10.1", + "@babel/plugin-proposal-json-strings": "^7.10.1", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1", + "@babel/plugin-proposal-numeric-separator": "^7.10.1", + "@babel/plugin-proposal-object-rest-spread": "^7.10.1", + "@babel/plugin-proposal-optional-catch-binding": "^7.10.1", + "@babel/plugin-proposal-optional-chaining": "^7.10.1", + "@babel/plugin-proposal-private-methods": "^7.10.1", + "@babel/plugin-proposal-unicode-property-regex": "^7.10.1", "@babel/plugin-syntax-async-generators": "^7.8.0", + "@babel/plugin-syntax-class-properties": "^7.10.1", "@babel/plugin-syntax-dynamic-import": "^7.8.0", "@babel/plugin-syntax-json-strings": "^7.8.0", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0", + "@babel/plugin-syntax-numeric-separator": "^7.10.1", "@babel/plugin-syntax-object-rest-spread": "^7.8.0", "@babel/plugin-syntax-optional-catch-binding": "^7.8.0", "@babel/plugin-syntax-optional-chaining": "^7.8.0", - "@babel/plugin-syntax-top-level-await": "^7.8.3", - "@babel/plugin-transform-arrow-functions": "^7.8.3", - "@babel/plugin-transform-async-to-generator": "^7.8.3", - "@babel/plugin-transform-block-scoped-functions": "^7.8.3", - "@babel/plugin-transform-block-scoping": "^7.8.3", - "@babel/plugin-transform-classes": "^7.8.6", - "@babel/plugin-transform-computed-properties": "^7.8.3", - "@babel/plugin-transform-destructuring": "^7.8.3", - "@babel/plugin-transform-dotall-regex": "^7.8.3", - "@babel/plugin-transform-duplicate-keys": "^7.8.3", - "@babel/plugin-transform-exponentiation-operator": "^7.8.3", - "@babel/plugin-transform-for-of": "^7.8.6", - "@babel/plugin-transform-function-name": "^7.8.3", - "@babel/plugin-transform-literals": "^7.8.3", - "@babel/plugin-transform-member-expression-literals": "^7.8.3", - "@babel/plugin-transform-modules-amd": "^7.8.3", - "@babel/plugin-transform-modules-commonjs": "^7.8.3", - "@babel/plugin-transform-modules-systemjs": "^7.8.3", - "@babel/plugin-transform-modules-umd": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.10.1", + "@babel/plugin-transform-arrow-functions": "^7.10.1", + "@babel/plugin-transform-async-to-generator": "^7.10.1", + "@babel/plugin-transform-block-scoped-functions": "^7.10.1", + "@babel/plugin-transform-block-scoping": "^7.10.1", + "@babel/plugin-transform-classes": "^7.10.1", + "@babel/plugin-transform-computed-properties": "^7.10.1", + "@babel/plugin-transform-destructuring": "^7.10.1", + "@babel/plugin-transform-dotall-regex": "^7.10.1", + "@babel/plugin-transform-duplicate-keys": "^7.10.1", + "@babel/plugin-transform-exponentiation-operator": "^7.10.1", + "@babel/plugin-transform-for-of": "^7.10.1", + "@babel/plugin-transform-function-name": "^7.10.1", + "@babel/plugin-transform-literals": "^7.10.1", + "@babel/plugin-transform-member-expression-literals": "^7.10.1", + "@babel/plugin-transform-modules-amd": "^7.10.1", + "@babel/plugin-transform-modules-commonjs": "^7.10.1", + "@babel/plugin-transform-modules-systemjs": "^7.10.1", + "@babel/plugin-transform-modules-umd": "^7.10.1", "@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3", - "@babel/plugin-transform-new-target": "^7.8.3", - "@babel/plugin-transform-object-super": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.8.4", - "@babel/plugin-transform-property-literals": "^7.8.3", - "@babel/plugin-transform-regenerator": "^7.8.3", - "@babel/plugin-transform-reserved-words": "^7.8.3", - "@babel/plugin-transform-shorthand-properties": "^7.8.3", - "@babel/plugin-transform-spread": "^7.8.3", - "@babel/plugin-transform-sticky-regex": "^7.8.3", - "@babel/plugin-transform-template-literals": "^7.8.3", - "@babel/plugin-transform-typeof-symbol": "^7.8.4", - "@babel/plugin-transform-unicode-regex": "^7.8.3", - "@babel/types": "^7.8.6", - "browserslist": "^4.8.5", + "@babel/plugin-transform-new-target": "^7.10.1", + "@babel/plugin-transform-object-super": "^7.10.1", + "@babel/plugin-transform-parameters": "^7.10.1", + "@babel/plugin-transform-property-literals": "^7.10.1", + "@babel/plugin-transform-regenerator": "^7.10.1", + "@babel/plugin-transform-reserved-words": "^7.10.1", + "@babel/plugin-transform-shorthand-properties": "^7.10.1", + "@babel/plugin-transform-spread": "^7.10.1", + "@babel/plugin-transform-sticky-regex": "^7.10.1", + "@babel/plugin-transform-template-literals": "^7.10.1", + "@babel/plugin-transform-typeof-symbol": "^7.10.1", + "@babel/plugin-transform-unicode-escapes": "^7.10.1", + "@babel/plugin-transform-unicode-regex": "^7.10.1", + "@babel/preset-modules": "^0.1.3", + "@babel/types": "^7.10.2", + "browserslist": "^4.12.0", "core-js-compat": "^3.6.2", "invariant": "^2.2.2", "levenary": "^1.1.1", @@ -2212,48 +2202,63 @@ }, "dependencies": { "@babel/helper-module-imports": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", - "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", + "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.1" } }, "@babel/types": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.6.tgz", - "integrity": "sha512-wqz7pgWMIrht3gquyEFPVXeXCti72Rm8ep9b5tQKz9Yg9LzJA3HxosF1SB3Kc81KD1A3XBkkVYtJvCKS2Z/QrA==", + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", + "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, "requires": { - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } } } }, - "@babel/preset-react": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.8.3.tgz", - "integrity": "sha512-9hx0CwZg92jGb7iHYQVgi0tOEHP/kM60CtWJQnmbATSPIQQ2xYzfoCI3EdqAhFBeeJwYMdWQuDUHMsuDbH9hyQ==", + "@babel/preset-modules": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.3.tgz", + "integrity": "sha512-Ra3JXOHBq2xd56xSF7lMKXdjBn3T772Y1Wet3yWnkDly9zHvJki029tAFzvAAK5cf4YV3yoxuP61crYRol6SVg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-transform-react-display-name": "^7.8.3", - "@babel/plugin-transform-react-jsx": "^7.8.3", - "@babel/plugin-transform-react-jsx-self": "^7.8.3", - "@babel/plugin-transform-react-jsx-source": "^7.8.3" + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/preset-react": { + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.10.1.tgz", + "integrity": "sha512-Rw0SxQ7VKhObmFjD/cUcKhPTtzpeviEFX1E6PgP+cYOhQ98icNqtINNFANlsdbQHrmeWnqdxA4Tmnl1jy5tp3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-transform-react-display-name": "^7.10.1", + "@babel/plugin-transform-react-jsx": "^7.10.1", + "@babel/plugin-transform-react-jsx-development": "^7.10.1", + "@babel/plugin-transform-react-jsx-self": "^7.10.1", + "@babel/plugin-transform-react-jsx-source": "^7.10.1", + "@babel/plugin-transform-react-pure-annotations": "^7.10.1" } }, "@babel/preset-typescript": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.8.3.tgz", - "integrity": "sha512-qee5LgPGui9zQ0jR1TeU5/fP9L+ovoArklEqY12ek8P/wV5ZeM/VYSQYwICeoT6FfpJTekG9Ilay5PhwsOpMHA==", + "version": "7.10.1", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.10.1.tgz", + "integrity": "sha512-m6GV3y1ShiqxnyQj10600ZVOFrSSAa8HQ3qIUk2r+gcGtHTIRw0dJnFLt1WNXpKjtVw7yw1DAPU/6ma2ZvgJuA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-transform-typescript": "^7.8.3" + "@babel/helper-plugin-utils": "^7.10.1", + "@babel/plugin-transform-typescript": "^7.10.1" } }, "@babel/runtime": { @@ -2382,6 +2387,12 @@ "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", "dev": true }, + "@types/anymatch": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@types/anymatch/-/anymatch-1.3.1.tgz", + "integrity": "sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==", + "dev": true + }, "@types/classnames": { "version": "2.2.9", "resolved": "https://registry.npmjs.org/@types/classnames/-/classnames-2.2.9.tgz", @@ -2412,19 +2423,12 @@ "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", "dev": true }, - "@types/events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", - "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", - "dev": true - }, "@types/glob": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", - "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-VgNIkxK+j7Nz5P7jvUZlRvhuPSmsEfS03b0alKcq5V/STUKAa3Plemsn5mrQUO7am6OErJ4rhGEGJbACclrtRA==", "dev": true, "requires": { - "@types/events": "*", "@types/minimatch": "*", "@types/node": "*" } @@ -2444,11 +2448,23 @@ "hoist-non-react-statics": "^3.3.0" } }, + "@types/html-minifier-terser": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.0.tgz", + "integrity": "sha512-iYCgjm1dGPRuo12+BStjd1HiVQqhlRhWDOQigNxn023HcjnhsiFz9pc6CzJj4HwDCSQca9bxTL4PxJDbkdm3PA==", + "dev": true + }, "@types/invariant": { "version": "2.2.31", "resolved": "http://registry.npm.xiaojukeji.com/@types/invariant/download/@types/invariant-2.2.31.tgz", "integrity": "sha1-RETAMATyFSidvKOFZThDQxfdKLI=" }, + "@types/json-schema": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", + "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==", + "dev": true + }, "@types/lodash": { "version": "4.14.149", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.149.tgz", @@ -2462,9 +2478,9 @@ "dev": true }, "@types/node": { - "version": "12.12.29", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.29.tgz", - "integrity": "sha512-yo8Qz0ygADGFptISDj3pOC9wXfln/5pQaN/ysDIzOaAWXt73cNHmtEC8zSO2Y+kse/txmwIAJzkYZ5fooaS5DQ==", + "version": "12.12.44", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.44.tgz", + "integrity": "sha512-jM6QVv0Sm5d3nW+nUD5jSzPcO6oPqboitSNcwgBay9hifVq/Rauq1PYnROnsmuw45JMBiTnsPAno0bKu2e2xrg==", "dev": true }, "@types/numeral": { @@ -2485,9 +2501,9 @@ "dev": true }, "@types/q": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz", - "integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.4.tgz", + "integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug==", "dev": true }, "@types/query-string": { @@ -2543,6 +2559,68 @@ "@types/react": "*" } }, + "@types/source-list-map": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@types/source-list-map/-/source-list-map-0.1.2.tgz", + "integrity": "sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==", + "dev": true + }, + "@types/tapable": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/tapable/-/tapable-1.0.5.tgz", + "integrity": "sha512-/gG2M/Imw7cQFp8PGvz/SwocNrmKFjFsm5Pb8HdbHkZ1K8pmuPzOX4VeVoiEecFCVf4CsN1r3/BRvx+6sNqwtQ==", + "dev": true + }, + "@types/uglify-js": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/@types/uglify-js/-/uglify-js-3.9.2.tgz", + "integrity": "sha512-d6dIfpPbF+8B7WiCi2ELY7m0w1joD8cRW4ms88Emdb2w062NeEpbNCeWwVCgzLRpVG+5e74VFSg4rgJ2xXjEiQ==", + "dev": true, + "requires": { + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "@types/webpack": { + "version": "4.41.17", + "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.17.tgz", + "integrity": "sha512-6FfeCidTSHozwKI67gIVQQ5Mp0g4X96c2IXxX75hYEQJwST/i6NyZexP//zzMOBb+wG9jJ7oO8fk9yObP2HWAw==", + "dev": true, + "requires": { + "@types/anymatch": "*", + "@types/node": "*", + "@types/tapable": "*", + "@types/uglify-js": "*", + "@types/webpack-sources": "*", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "@types/webpack-sources": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@types/webpack-sources/-/webpack-sources-1.4.0.tgz", + "integrity": "sha512-c88dKrpSle9BtTqR6ifdaxu1Lvjsl3C5OsfvuUbUwdXymshv1TkufUAXBajCCUM/f/TmnkZC/Esb03MinzSiXQ==", + "dev": true, + "requires": { + "@types/node": "*", + "@types/source-list-map": "*", + "source-map": "^0.7.3" + } + }, "@umijs/hooks": { "version": "1.9.2", "resolved": "https://registry.npm.taobao.org/@umijs/hooks/download/@umijs/hooks-1.9.2.tgz", @@ -2566,178 +2644,177 @@ } }, "@webassemblyjs/ast": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", - "integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz", + "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==", "dev": true, "requires": { - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5" + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0" } }, "@webassemblyjs/floating-point-hex-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz", - "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz", + "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==", "dev": true }, "@webassemblyjs/helper-api-error": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz", - "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz", + "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==", "dev": true }, "@webassemblyjs/helper-buffer": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz", - "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz", + "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==", "dev": true }, "@webassemblyjs/helper-code-frame": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz", - "integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz", + "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==", "dev": true, "requires": { - "@webassemblyjs/wast-printer": "1.8.5" + "@webassemblyjs/wast-printer": "1.9.0" } }, "@webassemblyjs/helper-fsm": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz", - "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz", + "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==", "dev": true }, "@webassemblyjs/helper-module-context": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz", - "integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz", + "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "mamacro": "^0.0.3" + "@webassemblyjs/ast": "1.9.0" } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz", - "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz", + "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==", "dev": true }, "@webassemblyjs/helper-wasm-section": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz", - "integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz", + "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0" } }, "@webassemblyjs/ieee754": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz", - "integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz", + "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==", "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } }, "@webassemblyjs/leb128": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz", - "integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz", + "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==", "dev": true, "requires": { "@xtuc/long": "4.2.2" } }, "@webassemblyjs/utf8": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz", - "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz", + "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==", "dev": true }, "@webassemblyjs/wasm-edit": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz", - "integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz", + "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/helper-wasm-section": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-opt": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "@webassemblyjs/wast-printer": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/helper-wasm-section": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-opt": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "@webassemblyjs/wast-printer": "1.9.0" } }, "@webassemblyjs/wasm-gen": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz", - "integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz", + "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" } }, "@webassemblyjs/wasm-opt": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz", - "integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz", + "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-buffer": "1.8.5", - "@webassemblyjs/wasm-gen": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0" } }, "@webassemblyjs/wasm-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz", - "integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz", + "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-wasm-bytecode": "1.8.5", - "@webassemblyjs/ieee754": "1.8.5", - "@webassemblyjs/leb128": "1.8.5", - "@webassemblyjs/utf8": "1.8.5" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" } }, "@webassemblyjs/wast-parser": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz", - "integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz", + "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/floating-point-hex-parser": "1.8.5", - "@webassemblyjs/helper-api-error": "1.8.5", - "@webassemblyjs/helper-code-frame": "1.8.5", - "@webassemblyjs/helper-fsm": "1.8.5", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/floating-point-hex-parser": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-code-frame": "1.9.0", + "@webassemblyjs/helper-fsm": "1.9.0", "@xtuc/long": "4.2.2" } }, "@webassemblyjs/wast-printer": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz", - "integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz", + "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/wast-parser": "1.8.5", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0", "@xtuc/long": "4.2.2" } }, @@ -2781,9 +2858,9 @@ "dev": true }, "acorn-walk": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz", - "integrity": "sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.1.1.tgz", + "integrity": "sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ==", "dev": true }, "add-asset-html-webpack-plugin": { @@ -3131,6 +3208,14 @@ "bn.js": "^4.0.0", "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "assert": { @@ -3212,9 +3297,9 @@ "optional": true }, "aws4": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", - "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz", + "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==", "dev": true, "optional": true }, @@ -3301,17 +3386,50 @@ } }, "babel-loader": { - "version": "8.0.6", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.6.tgz", - "integrity": "sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.1.0.tgz", + "integrity": "sha512-7q7nC1tYOrqvUrN3LQK4GwSk/TQorZSOlO9C+RZDZpODgyN4ZlCqE5q9cDsyWOliN+aU9B4JX01xK9eJXowJLw==", "dev": true, "requires": { - "find-cache-dir": "^2.0.0", - "loader-utils": "^1.0.2", - "mkdirp": "^0.5.1", - "pify": "^4.0.1" + "find-cache-dir": "^2.1.0", + "loader-utils": "^1.4.0", + "mkdirp": "^0.5.3", + "pify": "^4.0.1", + "schema-utils": "^2.6.5" }, "dependencies": { + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true + }, + "loader-utils": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", + "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, "pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", @@ -3330,9 +3448,9 @@ } }, "babel-plugin-dynamic-import-node": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz", - "integrity": "sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", "dev": true, "requires": { "object.assign": "^4.1.0" @@ -3480,9 +3598,9 @@ "dev": true }, "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.1.2.tgz", + "integrity": "sha512-40rZaf3bUNKTVYu9sIeeEGOg7g14Yvnj9kH7b50EiwX0Q7A6umbvfI5tvHaOERH0XigqKkfLkFQxzb4e6CIXnA==", "dev": true }, "body-parser": { @@ -3644,21 +3762,50 @@ "requires": { "bn.js": "^4.1.0", "randombytes": "^2.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.0.tgz", + "integrity": "sha512-hEZC1KEeYuoHRqhGhTy6gWrpJA3ZDjFWv0DE61643ZnOXAKJb3u7yWcrU0mMc9SwAqK1n7myPGndkp0dFG7NFA==", "dev": true, "requires": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.2", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } } }, "browserify-zlib": { @@ -3671,14 +3818,15 @@ } }, "browserslist": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.9.1.tgz", - "integrity": "sha512-Q0DnKq20End3raFulq6Vfp1ecB9fh8yUNV55s8sekaDDeqBaCtWlRHCUdaWyUeSSBJM7IbM6HcsyaeYqgeDhnw==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz", + "integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001030", - "electron-to-chromium": "^1.3.363", - "node-releases": "^1.1.50" + "caniuse-lite": "^1.0.30001043", + "electron-to-chromium": "^1.3.413", + "node-releases": "^1.1.53", + "pkg-up": "^2.0.0" } }, "buffer": { @@ -3731,9 +3879,9 @@ "dev": true }, "cacache": { - "version": "12.0.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.3.tgz", - "integrity": "sha512-kqdmfXEGFepesTuROHMs3MpFLWrPkSSpRqOw80RCflZXy/khxaArvFrQ7uJxSUduzAufc6G0g1VUCOZXxWavPw==", + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz", + "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==", "dev": true, "requires": { "bluebird": "^3.5.5", @@ -3781,6 +3929,19 @@ "neo-async": "^2.6.0", "normalize-path": "^3.0.0", "schema-utils": "^1.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } } }, "call-me-maybe": { @@ -3850,9 +4011,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001030", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001030.tgz", - "integrity": "sha512-QGK0W4Ft/Ac+zTjEiRJfwDNATvS3fodDczBXrH42784kcfqcDKpEPfN08N0HQjrAp8He/Jw8QiSS9QRn7XAbUw==", + "version": "1.0.30001078", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001078.tgz", + "integrity": "sha512-sF12qXe9VMm32IEf/+NDvmTpwJaaU7N1igpiH2FdI4DyABJSsOqG3ZAcFvszLkoLoo1y6VJLMYivukUAxaMASw==", "dev": true }, "case-sensitive-paths-webpack-plugin": { @@ -4043,14 +4204,42 @@ } }, "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "dev": true, "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } } }, "clone": { @@ -4070,12 +4259,6 @@ "q": "^1.1.2" } }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, "codepage": { "version": "1.14.0", "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.14.0.tgz", @@ -4343,12 +4526,12 @@ "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==" }, "core-js-compat": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.4.tgz", - "integrity": "sha512-zAa3IZPvsJ0slViBQ2z+vgyyTuhd3MFn1rBQjZSKVEgB0UMYhUkCj9jJUVPgGTGqWvsBVmfnruXgTcNyTlEiSA==", + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.5.tgz", + "integrity": "sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==", "dev": true, "requires": { - "browserslist": "^4.8.3", + "browserslist": "^4.8.5", "semver": "7.0.0" }, "dependencies": { @@ -4423,6 +4606,14 @@ "requires": { "bn.js": "^4.1.0", "elliptic": "^6.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "create-hash": { @@ -4536,6 +4727,19 @@ "postcss-modules-values": "^2.0.0", "postcss-value-parser": "^3.3.0", "schema-utils": "^1.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } } }, "css-select": { @@ -4664,12 +4868,36 @@ "dev": true }, "csso": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.0.2.tgz", - "integrity": "sha512-kS7/oeNVXkHWxby5tHVxlhjizRCSv8QdU7hB2FpdAibDU8FjTAolhNjKNTiLzXtUrKT6HwClE81yXwEk1309wg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.0.3.tgz", + "integrity": "sha512-NL3spysxUkcrOgnpsT4Xdl2aiEiBG6bXswAABQVHcMrfjjBisFOKwLDOmf4wf32aPdcJws1zds2B0Rg+jqMyHQ==", "dev": true, "requires": { - "css-tree": "1.0.0-alpha.37" + "css-tree": "1.0.0-alpha.39" + }, + "dependencies": { + "css-tree": { + "version": "1.0.0-alpha.39", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.39.tgz", + "integrity": "sha512-7UvkEYgBAHRG9Nt980lYxjsTrCyHFN53ky3wVsDkiMdVqylqRt+Zc+jm5qw7/qyOvN2dHSYtX0e4MbCCExSvnA==", + "dev": true, + "requires": { + "mdn-data": "2.0.6", + "source-map": "^0.6.1" + } + }, + "mdn-data": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.6.tgz", + "integrity": "sha512-rQvjv71olwNHgiTbfPZFkJtjNMciWgswYeciZhtvWLO8bmX3TnhyA62I6sTWOyZssWHJJjY6/KiWwqQsWWsqOA==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, "csstype": { @@ -5180,6 +5408,14 @@ "bn.js": "^4.1.0", "miller-rabin": "^4.0.0", "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "dir-glob": { @@ -5409,9 +5645,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.3.364", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.364.tgz", - "integrity": "sha512-V6hyxQ9jzt6Jy6w8tAv4HHKhIaVS6psG/gmwtQ+2+itdkWMHJLHJ4m1sFep/fWkdKvfJcPXuywfnECRzfNa7gw==", + "version": "1.3.461", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.461.tgz", + "integrity": "sha512-+mqXoHkp30WofnhiHNuy5KXBeOx6Jtqpgz42F/NHSTk0/GA1g5plDY0Cwy0A31NVs5V3rfskK18gKy6x2rElUw==", "dev": true }, "elliptic": { @@ -5427,6 +5663,14 @@ "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0", "minimalistic-crypto-utils": "^1.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "emoji-regex": { @@ -5480,9 +5724,9 @@ "integrity": "sha1-PoeAybi4NQhMP2DhZtvDwqPImBQ=" }, "entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", - "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz", + "integrity": "sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==", "dev": true }, "errno": { @@ -5865,9 +6109,9 @@ "dev": true }, "eventemitter3": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz", - "integrity": "sha512-qerSRB0p+UDEssxTtm6EDKcE7W4OaoisfIMl4CngyEhjpYglocpNg6UEqCvemdGhosAsg4sO2dXJOdyBifPGCg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.4.tgz", + "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==", "dev": true }, "eventlistener": { @@ -6273,9 +6517,9 @@ } }, "figgy-pudding": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", - "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", + "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==", "dev": true }, "figures": { @@ -6304,6 +6548,19 @@ "requires": { "loader-utils": "^1.0.2", "schema-utils": "^1.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } } }, "file-uri-to-path": { @@ -6405,9 +6662,9 @@ } }, "p-limit": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", - "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -6476,9 +6733,9 @@ } }, "follow-redirects": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.10.0.tgz", - "integrity": "sha512-4eyLK6s6lH32nOvLLwlIOnr9zrL8Sm+OvW4pVTJNoXeGzYIkHVf+pADQi+OJ0E67hiuSLezPVPyBcIZO50TmmQ==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.11.0.tgz", + "integrity": "sha512-KZm0V+ll8PfBrKwMzdo5D13b1bur9Iq9Zd/RMmAoQQcl2PxxFml8cxXPaaPYVbV0RjNjq1CU7zIzAOqtUPudmA==", "dev": true, "requires": { "debug": "^3.0.0" @@ -6648,561 +6905,14 @@ "dev": true }, "fsevents": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.11.tgz", - "integrity": "sha512-+ux3lx6peh0BpvY0JebGyZoiR4D+oYzdPZMKJwkZ+sFkNJzpL7tXc/wehS49gUAxg3tmMHPHZkA8JU2rhhgDHw==", + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "dev": true, "optional": true, "requires": { "bindings": "^1.5.0", - "nan": "^2.12.1", - "node-pre-gyp": "*" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "3.2.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "^2.1.1" - } - }, - "deep-extend": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.6.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.24", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore-walk": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "optional": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.9.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.3.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.9.0" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.4.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^3.2.6", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.14.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4.4.2" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "npm-normalize-package-bin": "^1.0.1" - } - }, - "npm-normalize-package-bin": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.4.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.7.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.1", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.13", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "yallist": { - "version": "3.1.1", - "bundled": true, - "dev": true, - "optional": true - } + "nan": "^2.12.1" } }, "function-bind": { @@ -7218,9 +6928,9 @@ "dev": true }, "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, "get-stream": { @@ -7392,9 +7102,9 @@ "integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE=" }, "handle-thing": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz", - "integrity": "sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, "happypack": { @@ -7523,13 +7233,33 @@ } }, "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", "dev": true, "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } } }, "hash.js": { @@ -7653,15 +7383,15 @@ "dev": true }, "html-entities": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz", - "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.3.1.tgz", + "integrity": "sha512-rhE/4Z3hIhzHAUKbW8jVcCyuT5oJCXXqhN/6mXXVCpzTmvJnoH2HL/bt3EZ6p55jbFJBeAe1ZNpL5BugLujxNA==", "dev": true }, "html-minifier-terser": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.0.4.tgz", - "integrity": "sha512-fHwmKQ+GzhlqdxEtwrqLT7MSuheiA+rif5/dZgbz3GjoMXJzcRzy1L9NXoiiyxrnap+q5guSiv8Tz5lrh9g42g==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", + "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", "dev": true, "requires": { "camel-case": "^4.1.1", @@ -7682,11 +7412,14 @@ } }, "html-webpack-plugin": { - "version": "4.0.0-beta.11", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-4.0.0-beta.11.tgz", - "integrity": "sha512-4Xzepf0qWxf8CGg7/WQM5qBB2Lc/NFI7MhU59eUDTkuQp3skZczH4UA1d6oQyDEIoMDgERVhRyTdtUPZ5s5HBg==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-4.3.0.tgz", + "integrity": "sha512-C0fzKN8yQoVLTelcJxZfJCE+aAvQiY2VUf3UuKrR4a9k5UMWYOtpDLsaXwATbcVCnI05hUS7L9ULQHWLZhyi3w==", "dev": true, "requires": { + "@types/html-minifier-terser": "^5.0.0", + "@types/tapable": "^1.0.5", + "@types/webpack": "^4.41.8", "html-minifier-terser": "^5.0.1", "loader-utils": "^1.2.3", "lodash": "^4.17.15", @@ -7756,15 +7489,15 @@ } }, "http-parser-js": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.10.tgz", - "integrity": "sha1-ksnBN0w1CF912zWexWzCV8u5P6Q=", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.2.tgz", + "integrity": "sha512-opCO9ASqg5Wy2FNo7A0sxy71yGbbkJJXLdgMK04Tcypw9jr2MgWbyubb0+WdmDmGnFflO7fRbqbaihh/ENDlRQ==", "dev": true }, "http-proxy": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.0.tgz", - "integrity": "sha512-84I2iJM/n1d4Hdgc6y2+qY5mDaz2PUVjlg9znE9byl+q0uC3DeByqBGReQu5tpLK0TAqTIXScRUV+dg7+bUPpQ==", + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, "requires": { "eventemitter3": "^4.0.0", @@ -7773,12 +7506,12 @@ } }, "http-proxy-middleware": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz", - "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==", + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.2.tgz", + "integrity": "sha512-aYk1rTKqLTus23X3L96LGNCGNgWpG4cG0XoZIT1GUPhhulEHX/QalnO6Vbo+WmKWi4AL2IidjuC0wZtbpg0yhQ==", "dev": true, "requires": { - "http-proxy": "^1.17.0", + "http-proxy": "^1.18.1", "is-glob": "^4.0.0", "lodash": "^4.17.11", "micromatch": "^3.1.10" @@ -7935,9 +7668,9 @@ } }, "p-limit": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", - "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -8092,12 +7825,6 @@ "loose-envify": "^1.0.0" } }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true - }, "ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", @@ -8593,15 +8320,6 @@ "webpack-sources": "^1.1.0" } }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, "less": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/less/-/less-3.9.0.tgz", @@ -8800,9 +8518,9 @@ "dev": true }, "loglevel": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.7.tgz", - "integrity": "sha512-cY2eLFrQSAfVPhCgH1s7JI73tMbg9YC3v3+ZHVW67sBS7UxWzNEk/ZBbSfLykBWHp33dqqtOv82gjhKEi81T/A==", + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.8.tgz", + "integrity": "sha512-bsU7+gc9AJ2SqpzxwU3+1fedl8zAntbtC5XYlt3s2j1hJcn2PsXSmgN8TaLG/J1/2mod4+cE/3vNL70/c1RNCA==", "dev": true }, "loose-envify": { @@ -8865,21 +8583,6 @@ } } }, - "mamacro": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", - "dev": true - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" - } - }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -8918,25 +8621,6 @@ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, - "mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - }, - "dependencies": { - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - } - } - }, "memory-fs": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", @@ -8954,9 +8638,9 @@ "dev": true }, "merge2": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz", - "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, "methods": { @@ -8994,6 +8678,14 @@ "requires": { "bn.js": "^4.0.0", "brorand": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "mime": { @@ -9003,18 +8695,18 @@ "dev": true }, "mime-db": { - "version": "1.43.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", - "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==", + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", "dev": true }, "mime-types": { - "version": "2.1.26", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", - "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", + "version": "2.1.27", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", + "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", "dev": true, "requires": { - "mime-db": "1.43.0" + "mime-db": "1.44.0" } }, "mimic-fn": { @@ -9040,6 +8732,19 @@ "loader-utils": "^1.1.0", "schema-utils": "^1.0.0", "webpack-sources": "^1.1.0" + }, + "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } } }, "mini-store": { @@ -9195,9 +8900,9 @@ "dev": true }, "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", + "integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==", "dev": true, "optional": true }, @@ -9324,21 +9029,10 @@ } }, "node-releases": { - "version": "1.1.50", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.50.tgz", - "integrity": "sha512-lgAmPv9eYZ0bGwUYAKlr8MG6K4CvWliWqnkcT2P8mMAgVrH3lqfBPorFlxiG1pHQnqmavJZ9vbMXUTNyMLbrgQ==", - "dev": true, - "requires": { - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } + "version": "1.1.58", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.58.tgz", + "integrity": "sha512-NxBudgVKiRh/2aPWMgPR7bPTX0VPmGx5QBwCtdHitnqFE5/O8DeBXuIMH1nwNnw/aMo6AjOrpsHzfY3UbUJ7yg==", + "dev": true }, "normalize-package-data": { "version": "2.5.0", @@ -9382,12 +9076,6 @@ "boolbase": "~1.0.0" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, "numeral": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/numeral/-/numeral-2.0.6.tgz", @@ -9443,10 +9131,67 @@ "dev": true }, "object-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.0.2.tgz", - "integrity": "sha512-Epah+btZd5wrrfjkJZq1AOB9O6OxUQto45hzFd7lXGrpHPGE0W1k+426yrZV+k6NJOzLNNW/nVsmZdIWsAqoOQ==", - "dev": true + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.2.tgz", + "integrity": "sha512-5lHCz+0uufF6wZ7CRFWJN3hp8Jqblpgve06U5CMQ3f//6iDjPr2PEo9MWCjEssDsa+UZEL4PkFpr+BMop6aKzQ==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", + "dev": true + }, + "is-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + } + } }, "object-keys": { "version": "1.1.1", @@ -9510,9 +9255,9 @@ }, "dependencies": { "es-abstract": { - "version": "1.17.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.4.tgz", - "integrity": "sha512-Ae3um/gb8F0mui/jPL+QiqmglkUsaQf7FwBEHYIFkztkneosu9imhqHpBzQ3h1vit8t5iQ74t6PEVvphBZiuiQ==", + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", "dev": true, "requires": { "es-to-primitive": "^1.2.1", @@ -9546,18 +9291,18 @@ "dev": true }, "is-callable": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", - "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", "dev": true }, "is-regex": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", - "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", "dev": true, "requires": { - "has": "^1.0.3" + "has-symbols": "^1.0.1" } } } @@ -9684,29 +9429,12 @@ "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", "dev": true }, - "os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true - }, "p-each-series": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz", @@ -9722,12 +9450,6 @@ "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", "dev": true }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "dev": true - }, "p-limit": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", @@ -9927,9 +9649,9 @@ } }, "pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.1.tgz", + "integrity": "sha512-4Ejy1OPxi9f2tt1rRV7Go7zmfDQ+ZectEQz3VGUQhgq62HtIRPDyG/JtnwIxs6x3uNMwo2V7q1fMvKjb+Tnpqg==", "dev": true, "requires": { "create-hash": "^1.1.2", @@ -9944,6 +9666,13 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true, + "optional": true + }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", @@ -9984,9 +9713,9 @@ } }, "portfinder": { - "version": "1.0.25", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.25.tgz", - "integrity": "sha512-6ElJnHBbxVA1XSLgBp7G1FiCkQdlqGzuF7DswL5tcea+E8UpuvPU7beVAjjRwCioTS9ZluNbu+ZyRvgTsmqEBg==", + "version": "1.0.26", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.26.tgz", + "integrity": "sha512-Xi7mKxJHHMI3rIUrnm/jjUgwhbYMkp/XKEcZX3aG4BrumLpq3nmoQMX+ClYnDZnZ/New7IatC1no5RX0zo1vXQ==", "dev": true, "requires": { "async": "^2.6.2", @@ -10021,9 +9750,9 @@ "dev": true }, "postcss": { - "version": "7.0.27", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.27.tgz", - "integrity": "sha512-WuQETPMcW9Uf1/22HWUWP9lgsIC+KEHg2kozMflKjbeUtw9ujvFX6QmIfozaErDkmLWS9WEnEdEe6Uo9/BNTdQ==", + "version": "7.0.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz", + "integrity": "sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==", "dev": true, "requires": { "chalk": "^2.4.2", @@ -10060,9 +9789,9 @@ }, "dependencies": { "postcss-value-parser": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.0.3.tgz", - "integrity": "sha512-N7h4pG+Nnu5BEIzyeaaIYWs0LI5XC40OrRh5L60z0QjFsqGWcHcbkBvpe1WYpcIS9yQ8sOi/vIPt1ejQCrMVrg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", + "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", "dev": true } } @@ -10146,6 +9875,19 @@ "postcss": "^7.0.0", "postcss-load-config": "^2.0.0", "schema-utils": "^1.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } } }, "postcss-merge-longhand": { @@ -10269,9 +10011,9 @@ } }, "postcss-modules-scope": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-2.1.1.tgz", - "integrity": "sha512-OXRUPecnHCg8b9xWvldG/jUpRIGPNRka0r4D4j0ESUU2/5IOnpsjfPPmDprM3Ih8CgZ8FXjWqaniK5v4rWt3oQ==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-2.2.0.tgz", + "integrity": "sha512-YyEgsTMRpNd+HmyC7H/mh3y+MeFWevy7V1evVhJWewmMbjDHIbZbOXICC2y+m1xI1UVfIT1HMW/O04Hxyu9oXQ==", "dev": true, "requires": { "postcss": "^7.0.6", @@ -10622,9 +10364,9 @@ "dev": true }, "psl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz", - "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", "dev": true, "optional": true }, @@ -10640,6 +10382,14 @@ "parse-asn1": "^5.0.0", "randombytes": "^2.0.1", "safe-buffer": "^5.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.11.9", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", + "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "dev": true + } } }, "pubsub-js": { @@ -11566,9 +11316,9 @@ } }, "p-limit": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", - "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -11895,15 +11645,15 @@ } }, "regenerate": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", - "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.1.tgz", + "integrity": "sha512-j2+C8+NtXQgEKWk49MMP5P/u2GhnahTtVkRIHr5R5lVRlbKvmQ+oS+A5aLKWp2ma5VkT8sh6v+v4hbH0YHR66A==", "dev": true }, "regenerate-unicode-properties": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz", - "integrity": "sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz", + "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==", "dev": true, "requires": { "regenerate": "^1.4.0" @@ -11915,12 +11665,30 @@ "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" }, "regenerator-transform": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.1.tgz", - "integrity": "sha512-flVuee02C3FKRISbxhXl9mGzdbWUVHubl1SMaknjxkFB1/iqpJhArQUvRxOOPEc/9tAiX0BaQ28FJH10E4isSQ==", + "version": "0.14.4", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.4.tgz", + "integrity": "sha512-EaJaKPBI9GvKpvUz2mz4fhx7WPgvwRLY9v3hlNHWmAuJHI13T4nwKnNvm5RWJzEdnI5g5UwtOww+S8IdoUC2bw==", "dev": true, "requires": { - "private": "^0.1.6" + "@babel/runtime": "^7.8.4", + "private": "^0.1.8" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.10.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.10.2.tgz", + "integrity": "sha512-6sF3uQw2ivImfVIl62RZ7MXhO2tap69WeWK57vAaimT6AZbE4FbqjdEJIN1UqoD6wI6B+1n9UiagafH1sxjOtg==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "regenerator-runtime": { + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz", + "integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==", + "dev": true + } } }, "regex-not": { @@ -11944,9 +11712,9 @@ }, "dependencies": { "es-abstract": { - "version": "1.17.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.4.tgz", - "integrity": "sha512-Ae3um/gb8F0mui/jPL+QiqmglkUsaQf7FwBEHYIFkztkneosu9imhqHpBzQ3h1vit8t5iQ74t6PEVvphBZiuiQ==", + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", "dev": true, "requires": { "es-to-primitive": "^1.2.1", @@ -11980,18 +11748,18 @@ "dev": true }, "is-callable": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", - "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", "dev": true }, "is-regex": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", - "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", "dev": true, "requires": { - "has": "^1.0.3" + "has-symbols": "^1.0.1" } } } @@ -12003,29 +11771,29 @@ "dev": true }, "regexpu-core": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.6.0.tgz", - "integrity": "sha512-YlVaefl8P5BnFYOITTNzDvan1ulLOiXJzCNZxduTIosN17b87h3bvG9yHMoHaRuo88H4mQ06Aodj5VtYGGGiTg==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.0.tgz", + "integrity": "sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==", "dev": true, "requires": { "regenerate": "^1.4.0", - "regenerate-unicode-properties": "^8.1.0", - "regjsgen": "^0.5.0", - "regjsparser": "^0.6.0", + "regenerate-unicode-properties": "^8.2.0", + "regjsgen": "^0.5.1", + "regjsparser": "^0.6.4", "unicode-match-property-ecmascript": "^1.0.4", - "unicode-match-property-value-ecmascript": "^1.1.0" + "unicode-match-property-value-ecmascript": "^1.2.0" } }, "regjsgen": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", - "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", + "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", "dev": true }, "regjsparser": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.3.tgz", - "integrity": "sha512-8uZvYbnfAtEm9Ab8NTb3hdLwL4g/LQzEYP7Xs27T96abJCCE2d6r3cPZPQEsLKy0vRSGVNG+/zVGtLr86HQduA==", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.4.tgz", + "integrity": "sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==", "dev": true, "requires": { "jsesc": "~0.5.0" @@ -12129,9 +11897,9 @@ "dev": true }, "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, "requires-port": { @@ -12323,14 +12091,34 @@ } }, "schema-utils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", - "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", + "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", "dev": true, "requires": { - "ajv": "^6.1.0", - "ajv-errors": "^1.0.0", - "ajv-keywords": "^3.1.0" + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + }, + "dependencies": { + "ajv": { + "version": "6.12.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", + "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "fast-deep-equal": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", + "dev": true + } } }, "screenfull": { @@ -12418,10 +12206,13 @@ "dev": true }, "serialize-javascript": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz", - "integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==", - "dev": true + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-3.1.0.tgz", + "integrity": "sha512-JIJT1DGiWmIKhzRsG91aS6Ze4sFUrYbltlkg2onR5OrnNM02Kl/hnY/T4FN2omvyeBbQmMJv+K4cPOpGzOTFBg==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } }, "serve-index": { "version": "1.9.1", @@ -12738,13 +12529,14 @@ } }, "sockjs": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.19.tgz", - "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.20.tgz", + "integrity": "sha512-SpmVOVpdq0DJc0qArhF3E5xsxvaiqGNb73XfgBpK1y3UD5gs8DSo8aCTsuT5pX8rssdc2NDIzANwP9eCAiSdTA==", "dev": true, "requires": { "faye-websocket": "^0.10.0", - "uuid": "^3.0.1" + "uuid": "^3.4.0", + "websocket-driver": "0.6.5" }, "dependencies": { "faye-websocket": { @@ -12755,6 +12547,15 @@ "requires": { "websocket-driver": ">=0.5.1" } + }, + "websocket-driver": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.6.5.tgz", + "integrity": "sha1-XLJVbOuF9Dc8bYI4qmkchFThOjY=", + "dev": true, + "requires": { + "websocket-extensions": ">=0.1.1" + } } } }, @@ -12808,9 +12609,9 @@ } }, "source-map-support": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", - "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -12869,9 +12670,9 @@ "dev": true }, "spdy": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.1.tgz", - "integrity": "sha512-HeZS3PBdMA+sZSu0qwpCxl3DeALD5ASx8pAX0jZdKXSpPWbQ6SYGnlg3BBmYLx5LtiZrmkAZfErCm2oECBcioA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", "dev": true, "requires": { "debug": "^4.1.0", @@ -12965,9 +12766,9 @@ "dev": true }, "stackframe": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.1.1.tgz", - "integrity": "sha512-0PlYhdKh6AfFxRyK/v+6/k+/mMfyiEBbTM5L94D0ZytQnJ166wuwoTYLHFWGbs2dpA8Rgq763KGWmN1EQEYHRQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.2.0.tgz", + "integrity": "sha512-GrdeshiRmS1YLMYgzF16olf2jJ/IzxXY9lhKOskuVziubpTYcYqyOwYeJKzQkwy7uN0fYSsbsC4RQaXf9LCrYA==", "dev": true }, "static-extend": { @@ -13056,24 +12857,258 @@ "strip-ansi": "^4.0.0" } }, - "string.prototype.trimleft": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", - "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", + "string.prototype.trimend": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", + "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", "dev": true, "requires": { "define-properties": "^1.1.3", - "function-bind": "^1.1.1" + "es-abstract": "^1.17.5" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", + "dev": true + }, + "is-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + } + } + }, + "string.prototype.trimleft": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", + "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5", + "string.prototype.trimstart": "^1.0.0" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", + "dev": true + }, + "is-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + } } }, "string.prototype.trimright": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", - "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", + "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==", "dev": true, "requires": { "define-properties": "^1.1.3", - "function-bind": "^1.1.1" + "es-abstract": "^1.17.5", + "string.prototype.trimend": "^1.0.0" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", + "dev": true + }, + "is-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + } + } + }, + "string.prototype.trimstart": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", + "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", + "dev": true + }, + "is-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", + "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + } } }, "string_decoder": { @@ -13120,6 +13155,19 @@ "requires": { "loader-utils": "^1.1.0", "schema-utils": "^1.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + } } }, "stylehacks": { @@ -13189,9 +13237,9 @@ } }, "css-what": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.2.1.tgz", - "integrity": "sha512-WwOrosiQTvyms+Ti5ZC5vGEK0Vod3FTt1ca+payZqvKuGJF+dq7bG63DstxtN0dpm6FxY27a/zS3Wten+gEtGw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.3.0.tgz", + "integrity": "sha512-pv9JPyatiPaQ6pf4OvD/dbfm0o5LviWmwxNWzblYf/1u9QZd0ihV+PMwy5jdQWQ3349kZmKEx9WXuSka2dM4cg==", "dev": true }, "domutils": { @@ -13258,9 +13306,9 @@ "dev": true }, "terser": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.4.tgz", - "integrity": "sha512-5fqgBPLgVHZ/fVvqRhhUp9YUiGXhFJ9ZkrZWD9vQtFBR4QIGTnbsb+/kKqSqfgp3WnBwGWAFnedGTtmX1YTn0w==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.7.0.tgz", + "integrity": "sha512-Lfb0RiZcjRDXCC3OSHJpEkxJ9Qeqs6mp2v4jf2MHfy8vGERmVDuvjXdd/EnP5Deme5F2yBRBymKmKHCBg2echw==", "dev": true, "requires": { "commander": "^2.20.0", @@ -13277,22 +13325,33 @@ } }, "terser-webpack-plugin": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz", - "integrity": "sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.4.tgz", + "integrity": "sha512-U4mACBHIegmfoEe5fdongHESNJWqsGU+W0S/9+BmYGVQDw1+c2Ow05TpMhxjPK1sRb7cuYq1BPl1e5YHJMTCqA==", "dev": true, "requires": { "cacache": "^12.0.2", "find-cache-dir": "^2.1.0", "is-wsl": "^1.1.0", "schema-utils": "^1.0.0", - "serialize-javascript": "^2.1.2", + "serialize-javascript": "^3.1.0", "source-map": "^0.6.1", "terser": "^4.1.2", "webpack-sources": "^1.4.0", "worker-farm": "^1.7.0" }, "dependencies": { + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -13530,9 +13589,9 @@ "dev": true }, "typescript": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", - "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==", + "version": "3.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz", + "integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==", "dev": true }, "ua-parser-js": { @@ -13573,15 +13632,15 @@ } }, "unicode-match-property-value-ecmascript": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz", - "integrity": "sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz", + "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==", "dev": true }, "unicode-property-aliases-ecmascript": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.5.tgz", - "integrity": "sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz", + "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", "dev": true }, "union-value": { @@ -13735,10 +13794,21 @@ }, "dependencies": { "mime": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", - "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==", + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", + "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==", "dev": true + }, + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } } } }, @@ -13863,14 +13933,136 @@ } }, "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.2.tgz", + "integrity": "sha512-ymVbbQP40MFTp+cNMvpyBpBtygHnPzPkHqoIwRRj/0B8KhqQwV8LaKjtbaxF2lK4vl8zN9wCxS46IFCU5K4W0g==", "dev": true, "requires": { - "chokidar": "^2.0.2", + "chokidar": "^3.4.0", "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" + "neo-async": "^2.5.0", + "watchpack-chokidar2": "^2.0.0" + }, + "dependencies": { + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "optional": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "binary-extensions": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", + "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", + "dev": true, + "optional": true + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "optional": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "chokidar": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz", + "integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==", + "dev": true, + "optional": true, + "requires": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "fsevents": "~2.1.2", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.4.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "optional": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "fsevents": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", + "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", + "dev": true, + "optional": true + }, + "glob-parent": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", + "dev": true, + "optional": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "optional": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "optional": true + }, + "readdirp": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", + "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", + "dev": true, + "optional": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "optional": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, + "watchpack-chokidar2": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/watchpack-chokidar2/-/watchpack-chokidar2-2.0.0.tgz", + "integrity": "sha512-9TyfOyN/zLUbA288wZ8IsMZ+6cbzvsNyEzSBp6e/zkifi6xxbl8SmQ/CxQq32k8NNqrdVEVUVSEf56L4rQ/ZxA==", + "dev": true, + "optional": true, + "requires": { + "chokidar": "^2.1.8" } }, "wbuf": { @@ -13883,16 +14075,16 @@ } }, "webpack": { - "version": "4.41.6", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.6.tgz", - "integrity": "sha512-yxXfV0Zv9WMGRD+QexkZzmGIh54bsvEs+9aRWxnN8erLWEOehAKUTeNBoUbA6HPEZPlRo7KDi2ZcNveoZgK9MA==", + "version": "4.43.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.43.0.tgz", + "integrity": "sha512-GW1LjnPipFW2Y78OOab8NJlCflB7EFskMih2AHdvjbpKMeDJqEgSx24cXXXiPS65+WSwVyxtDsJH6jGX2czy+g==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/wasm-edit": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "acorn": "^6.2.1", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/wasm-edit": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "acorn": "^6.4.1", "ajv": "^6.10.2", "ajv-keywords": "^3.4.1", "chrome-trace-event": "^1.0.2", @@ -13903,16 +14095,22 @@ "loader-utils": "^1.2.3", "memory-fs": "^0.4.1", "micromatch": "^3.1.10", - "mkdirp": "^0.5.1", + "mkdirp": "^0.5.3", "neo-async": "^2.6.1", "node-libs-browser": "^2.2.1", "schema-utils": "^1.0.0", "tapable": "^1.1.3", "terser-webpack-plugin": "^1.4.3", - "watchpack": "^1.6.0", + "watchpack": "^1.6.1", "webpack-sources": "^1.4.1" }, "dependencies": { + "acorn": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz", + "integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==", + "dev": true + }, "eslint-scope": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", @@ -13932,17 +14130,43 @@ "errno": "^0.1.3", "readable-stream": "^2.0.1" } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } } } }, "webpack-bundle-analyzer": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.6.0.tgz", - "integrity": "sha512-orUfvVYEfBMDXgEKAKVvab5iQ2wXneIEorGNsyuOyVYpjYrI7CUOhhXNDd3huMwQ3vNNWWlGP+hzflMFYNzi2g==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.8.0.tgz", + "integrity": "sha512-PODQhAYVEourCcOuU+NiYI7WdR8QyELZGgPvB1y2tjbUpbmcQOt5Q7jEK+ttd5se0KSBKD9SXHCEozS++Wllmw==", "dev": true, "requires": { - "acorn": "^6.0.7", - "acorn-walk": "^6.1.1", + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1", "bfj": "^6.1.1", "chalk": "^2.4.1", "commander": "^2.18.0", @@ -13954,6 +14178,14 @@ "mkdirp": "^0.5.1", "opener": "^1.5.1", "ws": "^6.0.0" + }, + "dependencies": { + "acorn": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.2.0.tgz", + "integrity": "sha512-apwXVmYVpQ34m/i71vrApRrRKCWQnZZF1+npOD0WV5xZFfwWOmKGQ2RWlfdy9vWITsenisM8M0Qeq8agcFHNiQ==", + "dev": true + } } }, "webpack-dev-middleware": { @@ -13980,17 +14212,17 @@ } }, "mime": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", - "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==", + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", + "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==", "dev": true } } }, "webpack-dev-server": { - "version": "3.10.3", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.10.3.tgz", - "integrity": "sha512-e4nWev8YzEVNdOMcNzNeCN947sWJNd43E5XvsJzbAL08kGc2frm1tQ32hTJslRS+H65LCb/AaUCYU7fjHCpDeQ==", + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.11.0.tgz", + "integrity": "sha512-PUxZ+oSTxogFQgkTtFndEtJIPNmml7ExwufBZ9L2/Xyyd5PnOL5UreWe5ZT7IU25DSdykL9p1MLQzmLh2ljSeg==", "dev": true, "requires": { "ansi-html": "0.0.7", @@ -14001,31 +14233,31 @@ "debug": "^4.1.1", "del": "^4.1.1", "express": "^4.17.1", - "html-entities": "^1.2.1", + "html-entities": "^1.3.1", "http-proxy-middleware": "0.19.1", "import-local": "^2.0.0", "internal-ip": "^4.3.0", "ip": "^1.1.5", "is-absolute-url": "^3.0.3", "killable": "^1.0.1", - "loglevel": "^1.6.6", + "loglevel": "^1.6.8", "opn": "^5.5.0", "p-retry": "^3.0.1", - "portfinder": "^1.0.25", + "portfinder": "^1.0.26", "schema-utils": "^1.0.0", "selfsigned": "^1.10.7", "semver": "^6.3.0", "serve-index": "^1.9.1", - "sockjs": "0.3.19", + "sockjs": "0.3.20", "sockjs-client": "1.4.0", - "spdy": "^4.0.1", + "spdy": "^4.0.2", "strip-ansi": "^3.0.1", "supports-color": "^6.1.0", "url": "^0.11.0", "webpack-dev-middleware": "^3.7.2", "webpack-log": "^2.0.0", "ws": "^6.2.1", - "yargs": "12.0.5" + "yargs": "^13.3.2" }, "dependencies": { "ansi-regex": { @@ -14034,6 +14266,18 @@ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, + "http-proxy-middleware": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz", + "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==", + "dev": true, + "requires": { + "http-proxy": "^1.17.0", + "is-glob": "^4.0.0", + "lodash": "^4.17.11", + "micromatch": "^3.1.10" + } + }, "is-absolute-url": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", @@ -14049,6 +14293,17 @@ "is-wsl": "^1.1.0" } }, + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -14129,20 +14384,20 @@ } }, "websocket-driver": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.3.tgz", - "integrity": "sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg==", + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", "dev": true, "requires": { - "http-parser-js": ">=0.4.0 <0.4.11", + "http-parser-js": ">=0.5.1", "safe-buffer": ">=5.1.0", "websocket-extensions": ">=0.1.1" } }, "websocket-extensions": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", - "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", "dev": true }, "whatwg-fetch": { @@ -14181,48 +14436,40 @@ } }, "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" }, "dependencies": { "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } }, "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "^4.1.0" } } } @@ -14295,25 +14542,29 @@ "dev": true }, "yargs": { - "version": "12.0.5", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", - "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "dev": true, "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", + "cliui": "^5.0.0", "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", + "get-caller-file": "^2.0.1", "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", + "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", - "string-width": "^2.0.0", + "string-width": "^3.0.0", "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" }, "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, "find-up": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", @@ -14334,9 +14585,9 @@ } }, "p-limit": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", - "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -14356,13 +14607,33 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } } } }, "yargs-parser": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", - "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "dev": true, "requires": { "camelcase": "^5.0.0", diff --git a/web/src/pages/Monitor/Silence/CustomForm.tsx b/web/src/pages/Monitor/Silence/CustomForm.tsx index 9acafa41..0a07850c 100644 --- a/web/src/pages/Monitor/Silence/CustomForm.tsx +++ b/web/src/pages/Monitor/Silence/CustomForm.tsx @@ -111,7 +111,7 @@ class CustomForm extends Component { {getFieldDecorator('metric', { initialValue: initialValues.metric, rules: [ - { required: true }, + { required: false }, ], })( ,