text: /*! For license information please see component---src-pages-jsonxml-js-18745de7c8fd49bf30d5.js.LICENSE.txt */
  (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{"2/Rp":function(e,t,n){"use strict";var o=n("QbLZ"),r=n.n(o),a=n("YEIV"),i=n.n(a),s=n("iCc5"),c=n.n(s),l=n("V7oC"),u=n.n(l),f=n("FYw3"),d=n.n(f),p=n("mRg0"),m=n.n(p),h=n("q1tI"),y=n("i8i4"),v=n("eHJ2"),g=n.n(v),b=n("g0mS"),C=n("CtXQ"),N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},x=/^[\u4e00-\u9fa5]{2}$/,O=x.test.bind(x);var k=function(e){function t(e){c()(this,t);var n=d()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=function(e){var t=n.props.onClick;t&&t(e)},n.state={loading:e.loading,hasTwoCNChar:!1},n}return m()(t,e),u()(t,[{key:"componentDidMount",value:function(){this.fixTwoCNChar()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props.loading,o=e.loading;n&&clearTimeout(this.delayTimeout),"boolean"!=typeof o&&o&&o.delay?this.delayTimeout=window.setTimeout((function(){return t.setState({loading:o})}),o.delay):this.setState({loading:o})}},{key:"componentDidUpdate",value:function(){this.fixTwoCNChar()}},{key:"componentWillUnmount",value:function(){this.delayTimeout&&clearTimeout(this.delayTimeout)}},{key:"fixTwoCNChar",value:function(){var e=Object(y.findDOMNode)(this),t=e.textContent||e.innerText;this.isNeedInserted()&&O(t)?this.state.hasTwoCNChar||this.setState({hasTwoCNChar:!0}):this.state.hasTwoCNChar&&this.setState({hasTwoCNChar:!1})}},{key:"isNeedInserted",value:function(){var e=this.props,t=e.icon,n=e.children;return 1===h.Children.count(n)&&!t}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.type,a=n.shape,s=n.size,c=n.className,l=n.children,u=n.icon,f=n.prefixCls,d=n.ghost,p=(n.loading,n.block),m=N(n,["type","shape","size","className","children","icon","prefixCls","ghost","loading","block"]),y=this.state,v=y.loading,x=y.hasTwoCNChar,k="";switch(s){case"large":k="lg";break;case"small":k="sm"}var E=new Date,T=11===E.getMonth()&&25===E.getDate(),w=g()(f,c,(e={},i()(e,f+"-"+o,o),i()(e,f+"-"+a,a),i()(e,f+"-"+k,k),i()(e,f+"-icon-only",!l&&u),i()(e,f+"-loading",v),i()(e,f+"-background-ghost",d),i()(e,f+"-two-chinese-chars",x),i()(e,f+"-block",p),i()(e,"christmas",T),e)),S=v?"loading":u,_=S?h.createElement(C.a,{type:S}):null,j=l||0===l?h.Children.map(l,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&O(e.props.children)?h.cloneElement(e,{},e.props.children.split("").join(n)):"string"==typeof e?(O(e)&&(e=e.split("").join(n)),h.createElement("span",null,e)):e}}(e,t.isNeedInserted())})):null,M=T?"Ho Ho Ho!":m.title;if("href"in m)return h.createElement("a",r()({},m,{className:w,onClick:this.handleClick,title:M}),_,j);var P=m.htmlType,L=N(m,["htmlType"]);return h.createElement(b.a,null,h.createElement("button",r()({},L,{type:P||"button",className:w,onClick:this.handleClick,title:M}),_,j))}}]),t}(h.Component),E=k;k.__ANT_BUTTON=!0,k.defaultProps={prefixCls:"ant-btn",loading:!1,ghost:!1,block:!1};var T=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n},w=function(e){var t=e.prefixCls,n=void 0===t?"ant-btn-group":t,o=e.size,a=e.className,s=T(e,["prefixCls","size","className"]),c="";switch(o){case"large":c="lg";break;case"small":c="sm"}var l=g()(n,i()({},n+"-"+c,c),a);return h.createElement("div",r()({},s,{className:l}))};E.Group=w;t.a=E},"2GS6":function(e,t,n){"use strict";function o(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}n.d(t,"a",(function(){return o}))},"2mql":function(e,t,n){"use strict";var o=n("TOwV"),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return o.isMemo(e)?i:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=p(n);r&&r!==m&&e(t,r,o)}var i=u(n);f&&(i=i.concat(f(n)));for(var s=c(t),h=c(n),y=0;y<i.length;++y){var v=i[y];if(!(a[v]||o&&o[v]||h&&h[v]||s&&s[v])){var g=d(n,v);try{l(t,v,g)}catch(b){}}}}return t}},MKeS:function(e,t,n){"use strict";var o=n("q1tI"),r=n.n(o),a=n("zLVn"),i=n("wx14");function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=n("dI71"),l=n("TOwV"),u=n("2mql"),f=n.n(u);function d(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}var p=r.a.createContext();var m={initialChunks:{}};var h=function(e){return e};function y(e){var t=e.defaultResolveComponent,n=void 0===t?h:t,o=e.render,u=e.onLoad;function y(e,t){void 0===t&&(t={});var h=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),y={};function v(e){return t.cacheKey?t.cacheKey(e):h.resolve?h.resolve(e):"static"}function g(e,o,r){var a=t.resolveComponent?t.resolveComponent(e,o):n(e);if(t.resolveComponent&&!Object(l.isValidElementType)(a))throw new Error("resolveComponent returned something that is not a React component!");return f()(r,a,{preload:!0}),a}var b,C,N=function(e){function n(n){var o;return(o=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:v(n)},d(!n.__chunkExtractor||h.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(h.requireAsync(n).catch((function(){return null})),o.loadSync(),n.__chunkExtractor.addChunk(h.chunkName(n))),s(o)):(!1!==t.ssr&&(h.isReady&&h.isReady(n)||h.chunkName&&m.initialChunks[h.chunkName(n)])&&o.loadSync(),o)}Object(c.a)(n,e),n.getDerivedStateFromProps=function(e,t){var n=v(e);return Object(i.a)({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&"REJECTED"===e.status&&this.setCache(),this.state.loading&&this.loadAsync()},r.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},r.componentWillUnmount=function(){this.mounted=!1},r.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},r.getCacheKey=function(){return v(this.props)},r.getCache=function(){return y[this.getCacheKey()]},r.setCache=function(e){void 0===e&&(e=void 0),y[this.getCacheKey()]=e},r.triggerOnLoad=function(){var e=this;u&&setTimeout((function(){u(e.state.result,e.props)}))},r.loadSync=function(){if(this.state.loading)try{var e=g(h.requireSync(this.props),this.props,O);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:h.resolve(this.props),chunkName:h.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},r.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=g(t,e.props,{Loadable:O});e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},r.resolveAsync=function(){var e=this,t=this.props,n=(t.__chunkExtractor,t.forwardedRef,Object(a.a)(t,["__chunkExtractor","forwardedRef"])),o=this.getCache();return o||((o=h.requireAsync(n)).status="PENDING",this.setCache(o),o.then((function(){o.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:h.resolve(e.props),chunkName:h.chunkName(e.props),error:t?t.message:t}),o.status="REJECTED"}))),o},r.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,s=(e.__chunkExtractor,Object(a.a)(e,["forwardedRef","fallback","__chunkExtractor"])),c=this.state,l=c.error,u=c.loading,f=c.result;if(t.suspense&&"PENDING"===(this.getCache()||this.loadAsync()).status)throw this.loadAsync();if(l)throw l;var d=r||t.fallback||null;return u?d:o({fallback:d,result:f,options:t,props:Object(i.a)({},s,{ref:n})})},n}(r.a.Component),x=(C=function(e){return r.a.createElement(p.Consumer,null,(function(t){return r.a.createElement(b,Object.assign({__chunkExtractor:t},e))}))},(b=N).displayName&&(C.displayName=b.displayName+"WithChunkExtractor"),C),O=r.a.forwardRef((function(e,t){return r.a.createElement(x,Object.assign({forwardedRef:t},e))}));return O.displayName="Loadable",O.preload=function(e){h.requireAsync(e)},O.load=function(e){return h.requireAsync(e)},O}return{loadable:y,lazy:function(e,t){return y(e,Object(i.a)({},t,{suspense:!0}))}}}var v=y({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.a.createElement(t,n)}}),g=v.loadable,b=v.lazy,C=y({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),N=C.loadable,x=C.lazy;var O=g;O.lib=N,b.lib=x;t.a=O},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},WrHM:function(e,t,n){},ebYN:function(e,t,n){"use strict";t.a={id:"JsonXML",icon:"",name:"在线 XML JSON 互相转换工具",desc:"JSON 和 XML 是我们最常用的两种信息传输格式，但是有些时候，我们却需要两者之间的转换，方便我们的工作！",keywords:["XML","JSON","转换","两者之间","格式","传输","在线","常用","方便","互相"],time:"2017-07-23",category:"DEV",author:"hustcc"}},g0mS:function(e,t,n){"use strict";var o=n("iCc5"),r=n.n(o),a=n("V7oC"),i=n.n(a),s=n("FYw3"),c=n.n(s),l=n("mRg0"),u=n.n(l),f=n("q1tI"),d=n("i8i4"),p=n("/dDc"),m=void 0,h=function(e){function t(){r()(this,t);var e=c()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onClick=function(t,n){if(!(t.className.indexOf("-leave")>=0)){var o=e.props.insertExtraNode;e.extraNode=document.createElement("div");var r=e.extraNode;r.className="ant-click-animating-node";var a=e.getAttributeName();t.removeAttribute(a),t.setAttribute(a,"true"),m=m||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&e.isNotGrey(n)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(n)&&"transparent"!==n&&(r.style.borderColor=n,m.innerHTML="[ant-click-animating-without-extra-node]:after { border-color: "+n+"; }",document.body.contains(m)||document.body.appendChild(m)),o&&t.appendChild(r),p.a.addEndEventListener(t,e.onTransitionEnd)}},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName){e.resetEffect(t);var o=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,o)}),0)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e}return u()(t,e),i()(t,[{key:"isNotGrey",value:function(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}},{key:"getAttributeName",value:function(){return this.props.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode){var t=this.props.insertExtraNode,n=this.getAttributeName();e.removeAttribute(n),this.removeExtraStyleNode(),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),p.a.removeEndEventListener(e,this.onTransitionEnd)}}},{key:"removeExtraStyleNode",value:function(){m&&(m.innerHTML="")}},{key:"componentDidMount",value:function(){this.instance=this.bindAnimationEvent(Object(d.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId)}},{key:"render",value:function(){return this.props.children}}]),t}(f.Component);t.a=h},gmfB:function(e,t,n){"use strict";n.r(t);var o=n("aArQ"),r=n("ebYN"),a=n("dI71"),i=n("q1tI"),s=n.n(i),c=n("tsqr"),l=n("2/Rp"),u=n("MKeS"),f=function(){};(f.ObjTree=function(){return this}).VERSION="0.23",f.ObjTree.prototype.xmlDecl='<?xml version="1.0" encoding="UTF-8" ?>\n',f.ObjTree.prototype.attr_prefix="-",f.ObjTree.prototype.parseXML=function(e){var t;if(window.DOMParser){var n=new DOMParser,o=n.parseFromString(e,"application/xml");if(!o)return;t=o.documentElement}else window.ActiveXObject&&((n=new ActiveXObject("Microsoft.XMLDOM")).async=!1,n.loadXML(e),t=n.documentElement);if(t)return this.parseDOM(t)},f.ObjTree.prototype.parseHTTP=function(e,t,n){var o,r={};for(var a in t)r[a]=t[a];if(r.method||(void 0===r.postBody&&void 0===r.postbody&&void 0===r.parameters?r.method="get":r.method="post"),n){r.asynchronous=!0;var i=this,s=n,c=r.onComplete;r.onComplete=function(e){var t;e&&e.responseXML&&e.responseXML.documentElement&&(t=i.parseDOM(e.responseXML.documentElement)),s(t,e),c&&c(e)}}else r.asynchronous=!1;if("undefined"!=typeof HTTP&&HTTP.Request)r.uri=e,(l=new HTTP.Request(r))&&(o=l.transport);else if("undefined"!=typeof Ajax&&Ajax.Request){var l;(l=new Ajax.Request(e,r))&&(o=l.transport)}return n?o:o&&o.responseXML&&o.responseXML.documentElement?this.parseDOM(o.responseXML.documentElement):void 0},f.ObjTree.prototype.parseDOM=function(e){if(e){if(this.__force_array={},this.force_array)for(var t=0;t<this.force_array.length;t++)this.__force_array[this.force_array[t]]=1;var n=this.parseElement(e);if(this.__force_array[e.nodeName]&&(n=[n]),11!=e.nodeType){var o={};o[e.nodeName]=n,n=o}return n}},f.ObjTree.prototype.parseElement=function(e){if(7!=e.nodeType){if(3==e.nodeType||4==e.nodeType){if(null==e.nodeValue.match(/[^\x00-\x20]/))return;return e.nodeValue}var t,n={};if(e.attributes&&e.attributes.length){t={};for(var o=0;o<e.attributes.length;o++){if("string"==typeof(i=e.attributes[o].nodeName))(s=e.attributes[o].nodeValue)&&(void 0===n[i=this.attr_prefix+i]&&(n[i]=0),n[i]++,this.addNode(t,i,n[i],s))}}if(e.childNodes&&e.childNodes.length){var r=!0;t&&(r=!1);for(o=0;o<e.childNodes.length&&r;o++){var a=e.childNodes[o].nodeType;3!=a&&4!=a&&(r=!1)}if(r){t||(t="");for(o=0;o<e.childNodes.length;o++)t+=e.childNodes[o].nodeValue}else{t||(t={});for(o=0;o<e.childNodes.length;o++){var i,s;if("string"==typeof(i=e.childNodes[o].nodeName))(s=this.parseElement(e.childNodes[o]))&&(void 0===n[i]&&(n[i]=0),n[i]++,this.addNode(t,i,n[i],s))}}}return t}},f.ObjTree.prototype.addNode=function(e,t,n,o){this.__force_array[t]?(1==n&&(e[t]=[]),e[t][e[t].length]=o):1==n?e[t]=o:2==n?e[t]=[e[t],o]:e[t][e[t].length]=o},f.ObjTree.prototype.writeXML=function(e){return this.hash_to_xml(null,e)},f.ObjTree.prototype.hash_to_xml=function(e,t){var n=[],o=[];for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];r.charAt(0)!=this.attr_prefix?void 0===a||null==a?n[n.length]="<"+r+" />":"object"==typeof a&&a.constructor==Array?n[n.length]=this.array_to_xml(r,a):n[n.length]="object"==typeof a?this.hash_to_xml(r,a):this.scalar_to_xml(r,a):o[o.length]=" "+r.substring(1)+'="'+this.xml_escape(a)+'"'}var i=o.join(""),s=n.join("");return void 0===e||null==e||(s=n.length>0?s.match(/\n/)?"<"+e+i+">\n"+s+"</"+e+">\n":"<"+e+i+">"+s+"</"+e+">\n":"<"+e+i+" />\n"),s},f.ObjTree.prototype.array_to_xml=function(e,t){for(var n=[],o=0;o<t.length;o++){var r=t[o];void 0===r||null==r?n[n.length]="<"+e+" />":"object"==typeof r&&r.constructor==Array?n[n.length]=this.array_to_xml(e,r):n[n.length]="object"==typeof r?this.hash_to_xml(e,r):this.scalar_to_xml(e,r)}return n.join("")},f.ObjTree.prototype.scalar_to_xml=function(e,t){return"#text"==e?this.xml_escape(t):"<"+e+">"+this.xml_escape(t)+"</"+e+">\n"},f.ObjTree.prototype.xml_escape=function(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};var d=f,p=function(e){try{var t=(new d.ObjTree).parseXML(e);if(!t.html)return JSON.stringify(t,null,2)}catch(n){}throw new Error("XML 语法格式错误！")},m=function(e){try{return(new d.ObjTree).writeXML(JSON.parse(e))}catch(t){}throw new Error("JSON 语法格式错误！")},h=(n("WrHM"),Object(u.a)((function(){return Promise.all([n.e(0),n.e(16),n.e(13),n.e(18),n.e(83)]).then(n.bind(null,"IJEK"))}))),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).toJson=function(){var e=n.state.xml;n.setState({json:p(e)})},n.toXML=function(){try{var e=n.state.json;n.setState({xml:m(e)})}catch(t){n.error(t.message)}},n.demoJSON=function(){n.setState({json:'{\n  "books": {\n    "book": [\n      {\n        "author": "Jack Herrington",\n        "title": "PHP Hacks",\n        "publisher": "O\'Reilly"\n      },\n      {\n        "author": "Jack Herrington",\n        "title": "Podcasting Hacks",\n        "publisher": "O\'Reilly"\n      }\n    ]\n  }\n}'})},n.demoXML=function(){n.setState({xml:"<books>\n<book>\n<author>Jack Herrington</author>\n<title>PHP Hacks</title>\n<publisher>O'Reilly</publisher>\n</book>\n<book>\n<author>Jack Herrington</author>\n<title>Podcasting Hacks</title>\n<publisher>O'Reilly</publisher>\n</book>\n</books>"})},n.onJSONChange=function(e){try{var t=e.getValue();n.setState({json:t})}catch(e){n.error(e.message)}},n.onXMLChange=function(e){var t=e.getValue();n.setState({xml:t})},n.state={xml:"",json:""},n}Object(a.a)(t,e);var n=t.prototype;return n.error=function(e){c.a.error(e)},n.render=function(){var e=this.state,t=e.xml,n=e.json;return s.a.createElement("div",{className:"atool-jsonxml"},s.a.createElement("div",{className:"jsonxml-json-code"},s.a.createElement(h,{value:n,height:"100%",onChange:this.onJSONChange,options:{lineWrapping:!0,lineNumbers:!0,tabSize:2,mode:"javascript",theme:"material"}})),s.a.createElement("div",{className:"jsonxml-btns"},s.a.createElement(l.a,{onClick:this.demoJSON},"样例 JSON"),s.a.createElement(l.a,{onClick:this.demoXML},"样例 JSON"),s.a.createElement(l.a,{type:"primary",onClick:this.toXML},"JSON -> XML"),s.a.createElement(l.a,{type:"primary",onClick:this.toJson},"XML <- JSON")),s.a.createElement("div",{className:"jsonxml-xml-code"},s.a.createElement(h,{value:t,height:"100%",onChange:this.onXMLChange,options:{lineWrapping:!0,lineNumbers:!0,tabSize:2,mode:"xml",theme:"material"}})))},t}(i.PureComponent);t.default=Object(o.a)(y,r.a)},qT12:function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.block"):60121,b=o?Symbol.for("react.fundamental"):60117,C=o?Symbol.for("react.responder"):60118,N=o?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case f:case d:case i:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case y:case l:return e;default:return t}}case a:return t}}}function O(e){return x(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=y,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return O(e)||x(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===c||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===C||e.$$typeof===N||e.$$typeof===g)},t.typeOf=x},tsqr:function(e,t,n){"use strict";var o=n("q1tI"),r=n.n(o),a=n("jo6Y"),i=n.n(a),s=n("YEIV"),c=n.n(s),l=n("QbLZ"),u=n.n(l),f=n("iCc5"),d=n.n(f),p=n("V7oC"),m=n.n(p),h=n("FYw3"),y=n.n(h),v=n("mRg0"),g=n.n(v),b=n("i8i4"),C=n.n(b),N=n("MFj2"),x=n("2GS6"),O=n("TSYQ"),k=n.n(O),E=function(e){function t(){var e,n,o,r;d()(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=y()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.close=function(){o.clearCloseTimer(),o.props.onClose()},o.startCloseTimer=function(){o.props.duration&&(o.closeTimer=setTimeout((function(){o.close()}),1e3*o.props.duration))},o.clearCloseTimer=function(){o.closeTimer&&(clearTimeout(o.closeTimer),o.closeTimer=null)},r=n,y()(o,r)}return g()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.update)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls+"-notice",o=(e={},c()(e,""+n,1),c()(e,n+"-closable",t.closable),c()(e,t.className,!!t.className),e);return r.a.createElement("div",{className:k()(o),style:t.style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer},r.a.createElement("div",{className:n+"-content"},t.children),t.closable?r.a.createElement("a",{tabIndex:"0",onClick:this.close,className:n+"-close"},t.closeIcon||r.a.createElement("span",{className:n+"-close-x"})):null)}}]),t}(o.Component);E.defaultProps={onEnd:function(){},onClose:function(){},duration:1.5,style:{right:"50%"}};var T=E,w=0,S=Date.now();function _(){return"rcNotification_"+S+"_"+w++}var j=function(e){function t(){var e,n,o,r;d()(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=y()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.state={notices:[]},o.add=function(e){var t=e.key=e.key||_(),n=o.props.maxCount;o.setState((function(o){var r=o.notices,a=r.map((function(e){return e.key})).indexOf(t),i=r.concat();return-1!==a?i.splice(a,1,e):(n&&r.length>=n&&(e.updateKey=i[0].updateKey||i[0].key,i.shift()),i.push(e)),{notices:i}}))},o.remove=function(e){o.setState((function(t){return{notices:t.notices.filter((function(t){return t.key!==e}))}}))},r=n,y()(o,r)}return g()(t,e),m()(t,[{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"render",value:function(){var e,t=this,n=this.props,o=this.state.notices,a=o.map((function(e,a){var i=Boolean(a===o.length-1&&e.updateKey),s=e.updateKey?e.updateKey:e.key,c=Object(x.a)(t.remove.bind(t,e.key),e.onClose);return r.a.createElement(T,u()({prefixCls:n.prefixCls},e,{key:s,update:i,onClose:c,closeIcon:n.closeIcon}),e.content)})),i=(e={},c()(e,n.prefixCls,1),c()(e,n.className,!!n.className),e);return r.a.createElement("div",{className:k()(i),style:n.style},r.a.createElement(N.a,{transitionName:this.getTransitionName()},a))}}]),t}(o.Component);j.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},j.newInstance=function(e,t){var n=e||{},o=n.getContainer,a=i()(n,["getContainer"]),s=document.createElement("div");o?o().appendChild(s):document.body.appendChild(s);var c=!1;C.a.render(r.a.createElement(j,u()({},a,{ref:function(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){C.a.unmountComponentAtNode(s),s.parentNode.removeChild(s)}}))}})),s)};var M=j,P=n("CtXQ"),L=3,R=void 0,A=void 0,D=1,$="ant-message",X="move-up",I=void 0,J=void 0;var q={open:function(e){var t=void 0!==e.duration?e.duration:L,n={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle",loading:"loading"}[e.type],r=D++,a=new Promise((function(a){var i=function(){return"function"==typeof e.onClose&&e.onClose(),a(!0)};!function(e){A?e(A):M.newInstance({prefixCls:$,transitionName:X,style:{top:R},getContainer:I,maxCount:J},(function(t){A?e(A):(A=t,e(t))}))}((function(a){var s=o.createElement(P.a,{type:n,theme:"loading"===n?"outlined":"filled"});a.notice({key:r,duration:t,style:{},content:o.createElement("div",{className:$+"-custom-content"+(e.type?" "+$+"-"+e.type:"")},e.icon?e.icon:n?s:"",o.createElement("span",null,e.content)),onClose:i})}))})),i=function(){A&&A.removeNotice(r)};return i.then=function(e,t){return a.then(e,t)},i.promise=a,i},config:function(e){void 0!==e.top&&(R=e.top,A=null),void 0!==e.duration&&(L=e.duration),void 0!==e.prefixCls&&($=e.prefixCls),void 0!==e.getContainer&&(I=e.getContainer),void 0!==e.transitionName&&(X=e.transitionName,A=null),void 0!==e.maxCount&&(J=e.maxCount,A=null)},destroy:function(){A&&(A.destroy(),A=null)}};["success","info","warning","error","loading"].forEach((function(e){q[e]=function(t,n,o){return"function"==typeof n&&(o=n,n=void 0),q.open({content:t,duration:n,type:e,onClose:o})}})),q.warn=q.warning;t.a=q}}]);
  //# sourceMappingURL=component---src-pages-jsonxml-js-18745de7c8fd49bf30d5.js.map