11 lines
111 KiB
JavaScript
11 lines
111 KiB
JavaScript
(self.webpackChunkgms_ui=self.webpackChunkgms_ui||[]).push([[301],{16165:function(Pe,ye,c){"use strict";var p=c(28991),R=c(96156),C=c(81253),x=c(67294),H=c(94184),T=c.n(H),re=c(63017),ee=c(42931),Me=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],oe=x.forwardRef(function(Q,fe){var Z=Q.className,V=Q.component,F=Q.viewBox,ce=Q.spin,ue=Q.rotate,A=Q.tabIndex,m=Q.onClick,O=Q.children,g=(0,C.Z)(Q,Me);(0,ee.Kp)(Boolean(V||O),"Should have `component` prop or `children`."),(0,ee.C3)();var P=x.useContext(re.Z),U=P.prefixCls,J=U===void 0?"anticon":U,G=T()(J,Z),le=T()((0,R.Z)({},"".concat(J,"-spin"),!!ce)),Ee=ue?{msTransform:"rotate(".concat(ue,"deg)"),transform:"rotate(".concat(ue,"deg)")}:void 0,_e=(0,p.Z)((0,p.Z)({},ee.vD),{},{className:le,style:Ee,viewBox:F});F||delete _e.viewBox;var Re=function(){return V?x.createElement(V,(0,p.Z)({},_e),O):O?((0,ee.Kp)(Boolean(F)||x.Children.count(O)===1&&x.isValidElement(O)&&x.Children.only(O).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),x.createElement("svg",(0,p.Z)((0,p.Z)({},_e),{},{viewBox:F}),O)):null},Ve=A;return Ve===void 0&&m&&(Ve=-1),x.createElement("span",(0,p.Z)((0,p.Z)({role:"img"},g),{},{ref:fe,tabIndex:Ve,onClick:m,className:G}),Re())});oe.displayName="AntdIcon",ye.Z=oe},91321:function(Pe,ye,c){"use strict";c.d(ye,{Z:function(){return Me}});var p=c(28991),R=c(81253),C=c(67294),x=c(16165),H=["type","children"],T=new Set;function re(oe){return Boolean(typeof oe=="string"&&oe.length&&!T.has(oe))}function ee(oe){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=oe[Q];if(re(fe)){var Z=document.createElement("script");Z.setAttribute("src",fe),Z.setAttribute("data-namespace",fe),oe.length>Q+1&&(Z.onload=function(){ee(oe,Q+1)},Z.onerror=function(){ee(oe,Q+1)}),T.add(fe),document.body.appendChild(Z)}}function Me(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=oe.scriptUrl,fe=oe.extraCommonProps,Z=fe===void 0?{}:fe;Q&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(Q)?ee(Q.reverse()):ee([Q]));var V=C.forwardRef(function(F,ce){var ue=F.type,A=F.children,m=(0,R.Z)(F,H),O=null;return F.type&&(O=C.createElement("use",{xlinkHref:"#".concat(ue)})),A&&(O=A),C.createElement(x.Z,(0,p.Z)((0,p.Z)((0,p.Z)({},Z),m),{},{ref:ce}),O)});return V.displayName="Iconfont",V}},20582:function(Pe,ye,c){"use strict";c.d(ye,{Z:function(){return ue}});var p=c(57106),R=c(80002);function C(A,m){if(!(A instanceof m))throw new TypeError("Cannot call a class as a function")}function x(A,m){for(var O=0;O<m.length;O++){var g=m[O];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(A,g.key,g)}}function H(A,m,O){return m&&x(A.prototype,m),O&&x(A,O),Object.defineProperty(A,"prototype",{writable:!1}),A}function T(A,m){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,P){return g.__proto__=P,g},T(A,m)}function re(A,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(m&&m.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),m&&T(A,m)}function ee(A){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)},ee(A)}function Me(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}var oe=c(85228);function Q(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function fe(A,m){if(m&&((0,oe.Z)(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(A)}function Z(A){var m=Me();return function(){var g=ee(A),P;if(m){var U=ee(this).constructor;P=Reflect.construct(g,arguments,U)}else P=g.apply(this,arguments);return fe(this,P)}}var V=c(85893),F=c(67294),ce=function(A){re(O,A);var m=Z(O);function O(){var g;C(this,O);for(var P=arguments.length,U=new Array(P),J=0;J<P;J++)U[J]=arguments[J];return g=m.call.apply(m,[this].concat(U)),g.state={hasError:!1,errorInfo:""},g}return H(O,[{key:"componentDidCatch",value:function(P,U){console.log(P,U)}},{key:"render",value:function(){return this.state.hasError?(0,V.jsx)(R.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(P){return{hasError:!0,errorInfo:P.message}}}]),O}(F.Component),ue=ce},7700:function(){},2828:function(){},17124:function(){},43361:function(){},17212:function(){},18067:function(){},20085:function(Pe,ye,c){"use strict";c.r(ye),c.d(ye,{default:function(){return su}});var p=c(11849),R=c(2824),C=c(67294),x=c(43653),H=c(99222),T=c(93224),re=c(5977),ee=c(41788),Me=c(97175),oe=c(45697),Q=c(22122),fe=c(19756),Z=c(2177),V=function(t){(0,ee.Z)(e,t);function e(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i))||this,n.history=(0,Me.lX)(n.props),n}var r=e.prototype;return r.render=function(){return C.createElement(re.F0,{history:this.history,children:this.props.children})},e}(C.Component),F=function(t){(0,ee.Z)(e,t);function e(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i))||this,n.history=(0,Me.q_)(n.props),n}var r=e.prototype;return r.render=function(){return C.createElement(re.F0,{history:this.history,children:this.props.children})},e}(C.Component),ce=function(e,r){return typeof e=="function"?e(r):e},ue=function(e,r){return typeof e=="string"?(0,Me.ob)(e,null,null,r):e},A=function(e){return e},m=C.forwardRef;typeof m=="undefined"&&(m=A);function O(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var g=m(function(t,e){var r=t.innerRef,n=t.navigate,a=t.onClick,i=(0,fe.Z)(t,["innerRef","navigate","onClick"]),o=i.target,u=(0,Q.Z)({},i,{onClick:function(f){try{a&&a(f)}catch(h){throw f.preventDefault(),h}!f.defaultPrevented&&f.button===0&&(!o||o==="_self")&&!O(f)&&(f.preventDefault(),n())}});return A!==m?u.ref=e||r:u.ref=r,C.createElement("a",u)}),P=m(function(t,e){var r=t.component,n=r===void 0?g:r,a=t.replace,i=t.to,o=t.innerRef,u=(0,fe.Z)(t,["component","replace","to","innerRef"]);return C.createElement(re.s6.Consumer,null,function(l){l||(0,Z.Z)(!1);var f=l.history,h=ue(ce(i,l.location),l.location),v=h?f.createHref(h):"",d=(0,Q.Z)({},u,{href:v,navigate:function(){var E=ce(i,l.location),D=a?f.replace:f.push;D(E)}});return A!==m?d.ref=e||o:d.innerRef=o,C.createElement(n,d)})});if(!1)var U,J;var G=function(e){return e},le=C.forwardRef;typeof le=="undefined"&&(le=G);function Ee(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter(function(n){return n}).join(" ")}var _e=le(function(t,e){var r=t["aria-current"],n=r===void 0?"page":r,a=t.activeClassName,i=a===void 0?"active":a,o=t.activeStyle,u=t.className,l=t.exact,f=t.isActive,h=t.location,v=t.sensitive,d=t.strict,M=t.style,E=t.to,D=t.innerRef,S=(0,fe.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return C.createElement(re.s6.Consumer,null,function(L){L||(0,Z.Z)(!1);var j=h||L.location,W=ue(ce(E,j),j),B=W.pathname,q=B&&B.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),X=q?(0,re.LX)(j.pathname,{path:q,exact:l,sensitive:v,strict:d}):null,pe=!!(f?f(X,j):X),xe=pe?Ee(u,i):u,te=pe?(0,Q.Z)({},M,{},o):M,w=(0,Q.Z)({"aria-current":pe&&n||null,className:xe,style:te,to:W},S);return G!==le?w.ref=e||D:w.innerRef=D,C.createElement(P,w)})});if(!1)var Re;var Ve=c(24793),Ie=c(97183),K=c(55690),N=c(67179);function Y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=typeof Symbol=="function"?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function u(w,y,I){return Object.defineProperty(w,y,{value:I,enumerable:!0,configurable:!0,writable:!0}),w[y]}try{u({},"")}catch(w){u=function(I,_,z){return I[_]=z}}function l(w,y,I,_){var z=y&&y.prototype instanceof v?y:v,$=Object.create(z.prototype),de=new pe(_||[]);return $._invoke=function(be,Se,k){var me="suspendedStart";return function(He,gt){if(me==="executing")throw new Error("Generator is already running");if(me==="completed"){if(He==="throw")throw gt;return te()}for(k.method=He,k.arg=gt;;){var Dt=k.delegate;if(Dt){var qe=B(Dt,k);if(qe){if(qe===h)continue;return qe}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(me==="suspendedStart")throw me="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);me="executing";var Ye=f(be,Se,k);if(Ye.type==="normal"){if(me=k.done?"completed":"suspendedYield",Ye.arg===h)continue;return{value:Ye.arg,done:k.done}}Ye.type==="throw"&&(me="completed",k.method="throw",k.arg=Ye.arg)}}}(w,I,de),$}function f(w,y,I){try{return{type:"normal",arg:w.call(y,I)}}catch(_){return{type:"throw",arg:_}}}t.wrap=l;var h={};function v(){}function d(){}function M(){}var E={};u(E,a,function(){return this});var D=Object.getPrototypeOf,S=D&&D(D(xe([])));S&&S!==e&&r.call(S,a)&&(E=S);var L=M.prototype=v.prototype=Object.create(E);function j(w){["next","throw","return"].forEach(function(y){u(w,y,function(I){return this._invoke(y,I)})})}function W(w,y){function I(z,$,de,be){var Se=f(w[z],w,$);if(Se.type!=="throw"){var k=Se.arg,me=k.value;return me&&(0,N.Z)(me)=="object"&&r.call(me,"__await")?y.resolve(me.__await).then(function(He){I("next",He,de,be)},function(He){I("throw",He,de,be)}):y.resolve(me).then(function(He){k.value=He,de(k)},function(He){return I("throw",He,de,be)})}be(Se.arg)}var _;this._invoke=function(z,$){function de(){return new y(function(be,Se){I(z,$,be,Se)})}return _=_?_.then(de,de):de()}}function B(w,y){var I=w.iterator[y.method];if(I===void 0){if(y.delegate=null,y.method==="throw"){if(w.iterator.return&&(y.method="return",y.arg=void 0,B(w,y),y.method==="throw"))return h;y.method="throw",y.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var _=f(I,w.iterator,y.arg);if(_.type==="throw")return y.method="throw",y.arg=_.arg,y.delegate=null,h;var z=_.arg;return z?z.done?(y[w.resultName]=z.value,y.next=w.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,h):z:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,h)}function q(w){var y={tryLoc:w[0]};1 in w&&(y.catchLoc=w[1]),2 in w&&(y.finallyLoc=w[2],y.afterLoc=w[3]),this.tryEntries.push(y)}function X(w){var y=w.completion||{};y.type="normal",delete y.arg,w.completion=y}function pe(w){this.tryEntries=[{tryLoc:"root"}],w.forEach(q,this),this.reset(!0)}function xe(w){if(w){var y=w[a];if(y)return y.call(w);if(typeof w.next=="function")return w;if(!isNaN(w.length)){var I=-1,_=function z(){for(;++I<w.length;)if(r.call(w,I))return z.value=w[I],z.done=!1,z;return z.value=void 0,z.done=!0,z};return _.next=_}}return{next:te}}function te(){return{value:void 0,done:!0}}return d.prototype=M,u(L,"constructor",M),u(M,"constructor",d),d.displayName=u(M,o,"GeneratorFunction"),t.isGeneratorFunction=function(w){var y=typeof w=="function"&&w.constructor;return!!y&&(y===d||(y.displayName||y.name)==="GeneratorFunction")},t.mark=function(w){return Object.setPrototypeOf?Object.setPrototypeOf(w,M):(w.__proto__=M,u(w,o,"GeneratorFunction")),w.prototype=Object.create(L),w},t.awrap=function(w){return{__await:w}},j(W.prototype),u(W.prototype,i,function(){return this}),t.AsyncIterator=W,t.async=function(w,y,I,_,z){z===void 0&&(z=Promise);var $=new W(l(w,y,I,_),z);return t.isGeneratorFunction(y)?$:$.next().then(function(de){return de.done?de.value:$.next()})},j(L),u(L,o,"Generator"),u(L,a,function(){return this}),u(L,"toString",function(){return"[object Generator]"}),t.keys=function(w){var y=[];for(var I in w)y.push(I);return y.reverse(),function _(){for(;y.length;){var z=y.pop();if(z in w)return _.value=z,_.done=!1,_}return _.done=!0,_}},t.values=xe,pe.prototype={constructor:pe,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(X),!y)for(var I in this)I.charAt(0)==="t"&&r.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var I=this;function _(k,me){return de.type="throw",de.arg=y,I.next=k,me&&(I.method="next",I.arg=void 0),!!me}for(var z=this.tryEntries.length-1;z>=0;--z){var $=this.tryEntries[z],de=$.completion;if($.tryLoc==="root")return _("end");if($.tryLoc<=this.prev){var be=r.call($,"catchLoc"),Se=r.call($,"finallyLoc");if(be&&Se){if(this.prev<$.catchLoc)return _($.catchLoc,!0);if(this.prev<$.finallyLoc)return _($.finallyLoc)}else if(be){if(this.prev<$.catchLoc)return _($.catchLoc,!0)}else{if(!Se)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return _($.finallyLoc)}}}},abrupt:function(y,I){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.tryLoc<=this.prev&&r.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var $=z;break}}$&&(y==="break"||y==="continue")&&$.tryLoc<=I&&I<=$.finallyLoc&&($=null);var de=$?$.completion:{};return de.type=y,de.arg=I,$?(this.method="next",this.next=$.finallyLoc,h):this.complete(de)},complete:function(y,I){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&I&&(this.next=I),h},finish:function(y){for(var I=this.tryEntries.length-1;I>=0;--I){var _=this.tryEntries[I];if(_.finallyLoc===y)return this.complete(_.completion,_.afterLoc),X(_),h}},catch:function(y){for(var I=this.tryEntries.length-1;I>=0;--I){var _=this.tryEntries[I];if(_.tryLoc===y){var z=_.completion;if(z.type==="throw"){var $=z.arg;X(_)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(y,I,_){return this.delegate={iterator:xe(y),resultName:I,nextLoc:_},this.method==="next"&&(this.arg=void 0),h}},t}function he(t,e,r,n,a,i,o){try{var u=t[i](o),l=u.value}catch(f){r(f);return}u.done?e(l):Promise.resolve(l).then(n,a)}function ve(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(l){he(i,n,a,o,u,"next",l)}function u(l){he(i,n,a,o,u,"throw",l)}o(void 0)})}}var ge=c(87301),Ze=c(84305),se=c(75901),ne=c(98775),b=c(72598),s=c(85893),Le=c(38405),We=c(56725),ot=c(12044);function Ft(t,e){var r=typeof t.pageName=="string"?t.title:e;(0,C.useEffect)(function(){(0,ot.Z)()&&r&&(document.title=r)},[t.title,r])}var Be=Ft,Xe=c(21879),Je=c.n(Xe),Ue=c(30845);function et(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var a="",i=r+1;i<t.length;){var o=t.charCodeAt(i);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){a+=t[i++];continue}break}if(!a)throw new TypeError("Missing parameter name at "+r);e.push({type:"NAME",index:r,value:a}),r=i;continue}if(n==="("){var u=1,l="",i=r+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '+i);for(;i<t.length;){if(t[i]==="\\"){l+=t[i++]+t[i++];continue}if(t[i]===")"){if(u--,u===0){i++;break}}else if(t[i]==="("&&(u++,t[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+i);l+=t[i++]}if(u)throw new TypeError("Unbalanced pattern at "+r);if(!l)throw new TypeError("Missing pattern at "+r);e.push({type:"PATTERN",index:r,value:l}),r=i;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function ut(t,e){e===void 0&&(e={});for(var r=et(t),n=e.prefixes,a=n===void 0?"./":n,i="[^"+Ge(e.delimiter||"/#?")+"]+?",o=[],u=0,l=0,f="",h=function(X){if(l<r.length&&r[l].type===X)return r[l++].value},v=function(X){var pe=h(X);if(pe!==void 0)return pe;var xe=r[l],te=xe.type,w=xe.index;throw new TypeError("Unexpected "+te+" at "+w+", expected "+X)},d=function(){for(var X="",pe;pe=h("CHAR")||h("ESCAPED_CHAR");)X+=pe;return X};l<r.length;){var M=h("CHAR"),E=h("NAME"),D=h("PATTERN");if(E||D){var S=M||"";a.indexOf(S)===-1&&(f+=S,S=""),f&&(o.push(f),f=""),o.push({name:E||u++,prefix:S,suffix:"",pattern:D||i,modifier:h("MODIFIER")||""});continue}var L=M||h("ESCAPED_CHAR");if(L){f+=L;continue}f&&(o.push(f),f="");var j=h("OPEN");if(j){var S=d(),W=h("NAME")||"",B=h("PATTERN")||"",q=d();v("CLOSE"),o.push({name:W||(B?u++:""),pattern:W&&!B?i:B,prefix:S,suffix:q,modifier:h("MODIFIER")||""});continue}v("END")}return o}function cr(t,e){return Rt(ut(t,e),e)}function Rt(t,e){e===void 0&&(e={});var r=lt(e),n=e.encode,a=n===void 0?function(l){return l}:n,i=e.validate,o=i===void 0?!0:i,u=t.map(function(l){if(typeof l=="object")return new RegExp("^(?:"+l.pattern+")$",r)});return function(l){for(var f="",h=0;h<t.length;h++){var v=t[h];if(typeof v=="string"){f+=v;continue}var d=l?l[v.name]:void 0,M=v.modifier==="?"||v.modifier==="*",E=v.modifier==="*"||v.modifier==="+";if(Array.isArray(d)){if(!E)throw new TypeError('Expected "'+v.name+'" to not repeat, but got an array');if(d.length===0){if(M)continue;throw new TypeError('Expected "'+v.name+'" to not be empty')}for(var D=0;D<d.length;D++){var S=a(d[D],v);if(o&&!u[h].test(S))throw new TypeError('Expected all "'+v.name+'" to match "'+v.pattern+'", but got "'+S+'"');f+=v.prefix+S+v.suffix}continue}if(typeof d=="string"||typeof d=="number"){var S=a(String(d),v);if(o&&!u[h].test(S))throw new TypeError('Expected "'+v.name+'" to match "'+v.pattern+'", but got "'+S+'"');f+=v.prefix+S+v.suffix;continue}if(!M){var L=E?"an array":"a string";throw new TypeError('Expected "'+v.name+'" to be '+L)}}return f}}function _t(t,e){var r=[],n=ze(t,r,e);return Bt(n,r,e)}function Bt(t,e,r){r===void 0&&(r={});var n=r.decode,a=n===void 0?function(i){return i}:n;return function(i){var o=t.exec(i);if(!o)return!1;for(var u=o[0],l=o.index,f=Object.create(null),h=function(d){if(o[d]===void 0)return"continue";var M=e[d-1];M.modifier==="*"||M.modifier==="+"?f[M.name]=o[d].split(M.prefix+M.suffix).map(function(E){return a(E,M)}):f[M.name]=a(o[d],M)},v=1;v<o.length;v++)h(v);return{path:u,index:l,params:f}}}function Ge(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function lt(t){return t&&t.sensitive?"":"i"}function Ht(t,e){if(!e)return t;var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:"",suffix:"",modifier:"",pattern:""});return t}function gn(t,e,r){var n=t.map(function(a){return ze(a,e,r).source});return new RegExp("(?:"+n.join("|")+")",lt(r))}function yn(t,e,r){return xn(ut(t,r),e,r)}function xn(t,e,r){r===void 0&&(r={});for(var n=r.strict,a=n===void 0?!1:n,i=r.start,o=i===void 0?!0:i,u=r.end,l=u===void 0?!0:u,f=r.encode,h=f===void 0?function(X){return X}:f,v="["+Ge(r.endsWith||"")+"]|$",d="["+Ge(r.delimiter||"/#?")+"]",M=o?"^":"",E=0,D=t;E<D.length;E++){var S=D[E];if(typeof S=="string")M+=Ge(h(S));else{var L=Ge(h(S.prefix)),j=Ge(h(S.suffix));if(S.pattern)if(e&&e.push(S),L||j)if(S.modifier==="+"||S.modifier==="*"){var W=S.modifier==="*"?"?":"";M+="(?:"+L+"((?:"+S.pattern+")(?:"+j+L+"(?:"+S.pattern+"))*)"+j+")"+W}else M+="(?:"+L+"("+S.pattern+")"+j+")"+S.modifier;else M+="("+S.pattern+")"+S.modifier;else M+="(?:"+L+j+")"+S.modifier}}if(l)a||(M+=d+"?"),M+=r.endsWith?"(?="+v+")":"$";else{var B=t[t.length-1],q=typeof B=="string"?d.indexOf(B[B.length-1])>-1:B===void 0;a||(M+="(?:"+d+"(?="+v+"))?"),q||(M+="(?="+d+"|"+v+")")}return new RegExp(M,lt(r))}function ze(t,e,r){return t instanceof RegExp?Ht(t,e):Array.isArray(t)?gn(t,e,r):yn(t,e,r)}function Ke(t,e){return e>>>t|e<<32-t}function bn(t,e,r){return t&e^~t&r}function Cn(t,e,r){return t&e^t&r^e&r}function Mn(t){return Ke(2,t)^Ke(13,t)^Ke(22,t)}function Rn(t){return Ke(6,t)^Ke(11,t)^Ke(25,t)}function On(t){return Ke(7,t)^Ke(18,t)^t>>>3}function wn(t){return Ke(17,t)^Ke(19,t)^t>>>10}function Sn(t,e){return t[e&15]+=wn(t[e+14&15])+t[e+9&15]+On(t[e+1&15])}var jn=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ae,Ne,Oe,Pn="0123456789abcdef";function dr(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function En(){ae=new Array(8),Ne=new Array(2),Oe=new Array(64),Ne[0]=Ne[1]=0,ae[0]=1779033703,ae[1]=3144134277,ae[2]=1013904242,ae[3]=2773480762,ae[4]=1359893119,ae[5]=2600822924,ae[6]=528734635,ae[7]=1541459225}function Wt(){var t,e,r,n,a,i,o,u,l,f,h=new Array(16);t=ae[0],e=ae[1],r=ae[2],n=ae[3],a=ae[4],i=ae[5],o=ae[6],u=ae[7];for(var v=0;v<16;v++)h[v]=Oe[(v<<2)+3]|Oe[(v<<2)+2]<<8|Oe[(v<<2)+1]<<16|Oe[v<<2]<<24;for(var d=0;d<64;d++)l=u+Rn(a)+bn(a,i,o)+jn[d],d<16?l+=h[d]:l+=Sn(h,d),f=Mn(t)+Cn(t,e,r),u=o,o=i,i=a,a=dr(n,l),n=r,r=e,e=t,t=dr(l,f);ae[0]+=t,ae[1]+=e,ae[2]+=r,ae[3]+=n,ae[4]+=a,ae[5]+=i,ae[6]+=o,ae[7]+=u}function Zn(t,e){var r,n,a=0;n=Ne[0]>>3&63;var i=e&63;for((Ne[0]+=e<<3)<e<<3&&Ne[1]++,Ne[1]+=e>>29,r=0;r+63<e;r+=64){for(var o=n;o<64;o++)Oe[o]=t.charCodeAt(a++);Wt(),n=0}for(var u=0;u<i;u++)Oe[u]=t.charCodeAt(a++)}function Nn(){var t=Ne[0]>>3&63;if(Oe[t++]=128,t<=56)for(var e=t;e<56;e++)Oe[e]=0;else{for(var r=t;r<64;r++)Oe[r]=0;Wt();for(var n=0;n<56;n++)Oe[n]=0}Oe[56]=Ne[1]>>>24&255,Oe[57]=Ne[1]>>>16&255,Oe[58]=Ne[1]>>>8&255,Oe[59]=Ne[1]&255,Oe[60]=Ne[0]>>>24&255,Oe[61]=Ne[0]>>>16&255,Oe[62]=Ne[0]>>>8&255,Oe[63]=Ne[0]&255,Wt()}function wu(){for(var t=0,e=new Array(32),r=0;r<8;r++)e[t++]=ae[r]>>>24&255,e[t++]=ae[r]>>>16&255,e[t++]=ae[r]>>>8&255,e[t++]=ae[r]&255;return e}function An(){for(var t=new String,e=0;e<8;e++)for(var r=28;r>=0;r-=4)t+=Pn.charAt(ae[e]>>>r&15);return t}function Tn(t){return En(),Zn(t,t.length),Nn(),An()}var Dn=Tn;function zt(t){return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}var In=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Ln(t,e){return Bn(t)||_n(t,e)||$t(t,e)||Fn()}function Fn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _n(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],a=!0,i=!1,o,u;try{for(r=r.call(t);!(a=(o=r.next()).done)&&(n.push(o.value),!(e&&n.length===e));a=!0);}catch(l){i=!0,u=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(i)throw u}}return n}}function Bn(t){if(Array.isArray(t))return t}function Hn(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=$t(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,u;return{s:function(){r=r.call(t)},n:function(){var f=r.next();return i=f.done,f},e:function(f){o=!0,u=f},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw u}}}}function Wn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zn(t,e,r){return e&&vr(t.prototype,e),r&&vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Kn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&st(t,e)}function $n(t){var e=hr();return function(){var n=ft(t),a;if(e){var i=ft(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Un(this,a)}}function Un(t,e){if(e&&(zt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gn(t)}function Gn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kt(t){var e=typeof Map=="function"?new Map:void 0;return Kt=function(n){if(n===null||!kn(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return Ot(n,arguments,ft(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),st(a,n)},Kt(t)}function Ot(t,e,r){return hr()?Ot=Reflect.construct.bind():Ot=function(a,i,o){var u=[null];u.push.apply(u,i);var l=Function.bind.apply(a,u),f=new l;return o&&st(f,o.prototype),f},Ot.apply(null,arguments)}function hr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function kn(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},st(t,e)}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ft(t)}function pr(t){return Yn(t)||Xn(t)||$t(t)||Vn()}function Vn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(t,e){if(!!t){if(typeof t=="string")return Ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ut(t,e)}}function Xn(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yn(t){if(Array.isArray(t))return Ut(t)}function Ut(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qn(t,e){if(t==null)return{};var r=Jn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function Jn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function mr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ce(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mr(Object(r),!0).forEach(function(n){ct(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ct(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Te="routes";function dt(t){return t.split("?")[0].split("#")[0]}var Gt=function(e){if(!e.startsWith("http"))return!1;try{var r=new URL(e);return!!r}catch(n){return!1}},qn=function(e){var r=e.path;if(!r||r==="/")try{return"/".concat(Dn(JSON.stringify(e)))}catch(n){}return r&&dt(r)},ea=function(e,r){var n=e.name,a=e.locale;return"locale"in e&&a===!1||!n?!1:e.locale||"".concat(r,".").concat(n)},gr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return(e||r).startsWith("/")||Gt(e)?e:"/".concat(r,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},ta=function(e,r){var n=e.menu,a=n===void 0?{}:n,i=e.indexRoute,o=e.path,u=o===void 0?"":o,l=e.children||e[Te],f=a.name,h=f===void 0?e.name:f,v=a.icon,d=v===void 0?e.icon:v,M=a.hideChildren,E=M===void 0?e.hideChildren:M,D=a.flatMenu,S=D===void 0?e.flatMenu:D,L=i&&Object.keys(i).join(",")!=="redirect"?[Ce({path:u,menu:a},i)].concat(l||[]):l,j=Ce({},e);if(h&&(j.name=h),d&&(j.icon=d),L&&L.length){if(E)return delete j[Te],delete j.children,j;var W=kt(Ce(Ce({},r),{},{data:L}),e);if(S)return W;j[Te]=W}return j},ke=function(e){return Array.isArray(e)&&e.length>0};function kt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},r=t.data,n=t.formatMessage,a=t.parentName,i=t.locale;return!r||!Array.isArray(r)?[]:r.filter(function(o){return o?ke(o[Te])||ke(o.children)?!0:o.path==="*"||o.path==="/*"?!1:o.path||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,l;return(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(l=o.menu)===null||l===void 0?void 0:l.flatMenu)?!0:o.menu!==!1}).map(function(o){var u=Ce({},o);return u.unaccessible&&delete u.name,u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[Te],l=gr(o.path,e?e.path:"/"),f=o.name,h=ea(o,a||"menu"),v=h!==!1&&i!==!1&&n&&h?n({id:h,defaultMessage:f}):f,d=e.pro_layout_parentKeys,M=d===void 0?[]:d,E=e.children,D=e.icon,S=e.flatMenu,L=e.indexRoute,j=e.routes,W=Qn(e,In),B=new Set([].concat(pr(M),pr(o.parentKeys||[])));e.key&&B.add(e.key);var q=Ce(Ce(Ce({},W),{},{menu:void 0},o),{},{path:l,locale:h,key:o.key||qn(Ce(Ce({},o),{},{path:l})),pro_layout_parentKeys:Array.from(B).filter(function(pe){return pe&&pe!=="/"})});if(v?q.name=v:delete q.name,q.menu===void 0&&delete q.menu,ke(u)){var X=kt(Ce(Ce({},t),{},{data:u,parentName:h||""}),q);ke(X)&&(q[Te]=X,q.children=X)}return ta(q,t)}).flat(1)}var ra=(0,Ue.default)(kt,Je()),na=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(r){return r&&(r.name||ke(r[Te])||ke(r.children))&&!r.hideInMenu&&!r.redirect}).map(function(r){var n=Ce({},r),a=n.children||n[Te];if(ke(a)&&!n.hideChildrenInMenu&&a.some(function(u){return u&&!!u.name})){var i,o=t(a);if(o.length)return Ce(Ce({},n),{},(i={},ct(i,Te,o),ct(i,"children",o),i))}return Ce(Ce({},r),{},ct({},Te,void 0))}).filter(function(r){return r})},aa=function(t){Kn(r,t);var e=$n(r);function r(){return Wn(this,r),e.apply(this,arguments)}return zn(r,[{key:"get",value:function(a){var i;try{var o=Hn(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var l=Ln(u.value,2),f=l[0],h=l[1],v=dt(f);if(!Gt(f)&&ze(v,[]).test(a)){i=h;break}}}catch(d){o.e(d)}finally{o.f()}}catch(d){i=void 0}return i}}]),r}(Kt(Map)),ia=function(e){var r=new aa,n=function a(i,o){i.forEach(function(u){var l=u.children||u[Te];ke(l)&&a(l,u);var f=gr(u.path,o?o.path:"/");r.set(dt(f),u)})};return n(e),r},oa=(0,Ue.default)(ia,Je()),ua=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(r){var n=r.children||r[Te];if(ke(n)){var a=t(n);if(a.length)return Ce(Ce({},r),{},ct({},Te,a))}var i=Ce({},r);return delete i[Te],delete i.children,i}).filter(function(r){return r})},la=function(e,r,n,a){var i=ra({data:e,formatMessage:n,locale:r}),o=a?ua(i):na(i),u=oa(i);return{breadcrumb:u,menuData:o}},sa=la;function yr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function wt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yr(Object(r),!0).forEach(function(n){fa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ca=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r={};return e.forEach(function(n){if(!(!n||!n.key)){var a=n.children||n[Te];r[dt(n.path||n.key||"/")]=wt({},n),r[n.key||n.path||"/"]=wt({},n),a&&(r=wt(wt({},r),t(a)))}}),r},xr=ca,da=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&r==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!Gt(a)){var i=dt(a);try{if(n&&ze("".concat(i)).test(r)||ze("".concat(i),[]).test(r)||ze("".concat(i,"/(.*)")).test(r))return!0}catch(o){}}return!1}).sort(function(a,i){return a===r?10:i===r?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},va=function(e,r,n,a){var i=xr(r),o=Object.keys(i),u=da(o,e||"/",a);return!u||u.length<1?[]:(n||(u=[u[u.length-1]]),u.map(function(l){var f=i[l]||{pro_layout_parentKeys:"",key:""},h=new Map,v=(f.pro_layout_parentKeys||[]).map(function(d){return h.has(d)?null:(h.set(d,!0),i[d])}).filter(function(d){return d});return f.key&&v.push(f),v}).flat(1))},ha=va,pa=c(94184),De=c.n(pa),br=c(97435),ma=c(21770),Cr=c(29405),ga=c(38069),ya=c(42473),xa=c.n(ya),Su=c(7700),Mr=c(83832),ju=c(57338),ba=c(56414),Ca=c(57186);function Ma(){var t=(0,C.useState)([]),e=(0,ne.Z)(t,2),r=e[0],n=e[1];return{flatMenuKeys:r,setFlatMenuKeys:n}}var Ra=(0,Ca.f)(Ma),St=Ra,Pu=c(30887),jt=c(28682),Pt=c(28991),Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},wa=Oa,Rr=c(27029),Or=function(e,r){return C.createElement(Rr.Z,(0,Pt.Z)((0,Pt.Z)({},e),{},{ref:r,icon:wa}))};Or.displayName="MenuUnfoldOutlined";var Sa=C.forwardRef(Or),ja={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Pa=ja,wr=function(e,r){return C.createElement(Rr.Z,(0,Pt.Z)((0,Pt.Z)({},e),{},{ref:r,icon:Pa}))};wr.displayName="MenuFoldOutlined";var Ea=C.forwardRef(wr),Eu=c(71748),Za=c(33860),Na=c(13738);function Aa(t){if(Array.isArray(t))return(0,Na.Z)(t)}function Ta(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}var Da=c(89523);function Ia(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Et(t){return Aa(t)||Ta(t)||(0,Da.Z)(t)||Ia()}function Sr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jr(t,e,r){return e&&Sr(t.prototype,e),r&&Sr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Er=c(91321),La=c(16165),Fa=function(e){if(!e||!e.startsWith("http"))return!1;try{var r=new URL(e);return!!r}catch(n){return!1}},Vt=Fa;function _a(t){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(t)}var Ba=_a,Ha={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},Zr=Ha,Nr=function t(e){return(e||[]).reduce(function(r,n){if(n.key&&r.push(n.key),n.routes){var a=r.concat(t(n.routes)||[]);return a}return r},[])},Ar={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Zu(t){return t&&Ar[t]?Ar[t]:t}function vt(t){return t.map(function(e){var r=e.children||e.routes,n=(0,b.Z)({},e);if(!n.name||n.hideInMenu)return null;if(n&&(n==null?void 0:n.routes)){if(!n.hideChildrenInMenu&&r.some(function(a){return a&&a.name&&!a.hideInMenu}))return(0,b.Z)((0,b.Z)({},e),{},{children:vt(r),routes:vt(r)});delete n.routes,delete n.children}return n}).filter(function(e){return e})}var Nu=c(43361),Tr=(0,Er.Z)({scriptUrl:Zr.iconfontUrl}),Dr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(Vt(e)||Ba(e))return(0,s.jsx)(La.Z,{component:function(){return(0,s.jsx)("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(r))return(0,s.jsx)(Tr,{type:e})}return e},Wa=jr(function t(e){var r=this;Pr(this,t),this.props=void 0,this.getNavMenuItems=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;return n.map(function(i){return r.getSubMenuOrItem(i,a)}).filter(function(i){return i})},this.getSubMenuOrItem=function(n,a){var i=(n==null?void 0:n.children)||(n==null?void 0:n.routes);if(Array.isArray(i)&&i.length>0){var o=r.getIntlName(n),u=r.props,l=u.subMenuItemRender,f=u.prefixCls,h=u.menu,v=u.iconPrefixes,d=n.icon?(0,s.jsxs)("span",{className:"".concat(f,"-menu-item"),title:o,children:[!a&&Dr(n.icon,v),(0,s.jsx)("span",{className:"".concat(f,"-menu-item-title"),children:o})]}):(0,s.jsx)("span",{className:"".concat(f,"-menu-item"),title:o,children:o}),M=l?l((0,b.Z)((0,b.Z)({},n),{},{isUrl:!1}),d,r.props):d;return{type:(h==null?void 0:h.type)==="group"?"group":void 0,label:M,children:r.getNavMenuItems(i,!0),onTitleClick:n.onTitleClick,key:n.key||n.path}}return{label:r.getMenuItemPath(n,a),title:r.getIntlName(n),key:n.key||n.path,disabled:n.disabled,onClick:function(D){var S;Vt(n==null?void 0:n.path)&&window.open(n.path,"_blank"),(S=n.onTitleClick)===null||S===void 0||S.call(n,D)}}},this.getIntlName=function(n){var a=n.name,i=n.locale,o=r.props,u=o.menu,l=o.formatMessage;return i&&(u==null?void 0:u.locale)!==!1?l==null?void 0:l({id:i,defaultMessage:a}):a},this.getMenuItemPath=function(n,a){var i=r.conversionPath(n.path||"/"),o=r.props,u=o.location,l=u===void 0?{pathname:"/"}:u,f=o.isMobile,h=o.onCollapse,v=o.menuItemRender,d=o.iconPrefixes,M=r.getIntlName(n),E=r.props.prefixCls,D=a?null:Dr(n.icon,d),S=Vt(i),L=(0,s.jsxs)("span",{className:De()("".concat(E,"-menu-item"),(0,K.Z)({},"".concat(E,"-menu-item-link"),S)),children:[D,(0,s.jsx)("span",{className:"".concat(E,"-menu-item-title"),children:M})]});if(v){var j=(0,b.Z)((0,b.Z)({},n),{},{isUrl:S,itemPath:i,isMobile:f,replace:i===l.pathname,onClick:function(){S&&window.open(i,"_blank"),h&&h(!0)},children:void 0});return v(j,L,r.props)}return L},this.conversionPath=function(n){return n&&n.indexOf("http")===0?n:"/".concat(n||"").replace(/\/+/g,"/")},this.props=e}),za=function(e,r){var n=r.layout,a=r.collapsed,i={};return e&&!a&&["side","mix"].includes(n||"mix")&&(i={openKeys:e}),i},Ir=function(e){var r=e.theme,n=e.mode,a=e.className,i=e.handleOpenChange,o=e.style,u=e.menuData,l=e.menu,f=e.matchMenuKeys,h=e.iconfontUrl,v=e.collapsed,d=e.selectedKeys,M=e.onSelect,E=e.openKeys,D=(0,C.useRef)([]),S=St.useContainer(),L=S.flatMenuKeys,j=(0,We.Z)(l==null?void 0:l.defaultOpenAll),W=(0,ne.Z)(j,2),B=W[0],q=W[1],X=(0,We.Z)(function(){return(l==null?void 0:l.defaultOpenAll)?Nr(u)||[]:E===!1?!1:[]},{value:E===!1?void 0:E,onChange:i}),pe=(0,ne.Z)(X,2),xe=pe[0],te=pe[1],w=(0,We.Z)([],{value:d,onChange:M?function(me){M&&me&&M(me)}:void 0}),y=(0,ne.Z)(w,2),I=y[0],_=y[1];(0,C.useEffect)(function(){(l==null?void 0:l.defaultOpenAll)||E===!1||L.length||f&&(te(f),_(f))},[f.join("-")]),(0,C.useEffect)(function(){h&&(Tr=(0,Er.Z)({scriptUrl:h}))},[h]),(0,C.useEffect)(function(){if(f.join("-")!==(I||[]).join("-")&&_(f),!B&&E!==!1&&f.join("-")!==(xe||[]).join("-")){var me=f;(l==null?void 0:l.autoClose)===!1&&(me=Array.from(new Set([].concat(Et(f),Et(xe||[]))))),te(me)}else(l==null?void 0:l.ignoreFlatMenu)&&B?te(Nr(u)):L.length>0&&q(!1)},[f.join("-"),v]);var z=(0,C.useMemo)(function(){return za(xe,e)},[xe&&xe.join(","),e.layout,e.collapsed]),$=(0,C.useState)(function(){return new Wa(e)}),de=(0,ne.Z)($,1),be=de[0];if(l==null?void 0:l.loading)return(0,s.jsx)("div",{style:(n==null?void 0:n.includes("inline"))?{padding:24}:{marginTop:16},children:(0,s.jsx)(Za.Z,{active:!0,title:!1,paragraph:{rows:(n==null?void 0:n.includes("inline"))?6:1}})});var Se=De()(a,{"top-nav-menu":n==="horizontal"});be.props=e,e.openKeys===!1&&!e.handleOpenChange&&(D.current=f);var k=e.postMenuData?e.postMenuData(u):u;return k&&(k==null?void 0:k.length)<1?null:(0,C.createElement)(jt.Z,(0,b.Z)((0,b.Z)({},z),{},{key:"Menu",mode:n,items:be.getNavMenuItems(k,!1),inlineIndent:16,defaultOpenKeys:D.current,theme:r,selectedKeys:I,style:o,className:Se,onOpenChange:te},e.menuProps))};Ir.defaultProps={postMenuData:function(e){return e||[]}};var Lr=Ir,Ka=Ie.Z.Sider,Fr=function(e){return typeof e=="string"?(0,s.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},Xt=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",n=e.logo,a=e.title,i=e.layout,o=e[r||""];if(o===!1)return null;var u=Fr(n),l=(0,s.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(u,e.collapsed?null:l,e):i==="mix"&&r==="menuHeaderRender"?null:(0,s.jsxs)("a",{children:[u,e.collapsed?null:l]})},_r=function(e){return e?(0,s.jsx)(Sa,{}):(0,s.jsx)(Ea,{})},$a=function(e){var r,n=e.collapsed,a=e.fixSiderbar,i=e.menuFooterRender,o=e.onCollapse,u=e.theme,l=e.siderWidth,f=e.isMobile,h=e.onMenuHeaderClick,v=e.breakpoint,d=v===void 0?"lg":v,M=e.style,E=e.layout,D=e.menuExtraRender,S=D===void 0?!1:D,L=e.collapsedButtonRender,j=L===void 0?_r:L,W=e.links,B=e.menuContentRender,q=e.prefixCls,X=e.onOpenChange,pe=e.headerHeight,xe=e.logoStyle,te="".concat(q,"-sider"),w=St.useContainer(),y=w.flatMenuKeys,I=De()("".concat(te),(r={},(0,K.Z)(r,"".concat(te,"-fixed"),a),(0,K.Z)(r,"".concat(te,"-layout-").concat(E),E&&!f),(0,K.Z)(r,"".concat(te,"-light"),u!=="dark"),r)),_=Xt(e),z=S&&S(e),$=B!==!1&&y&&(0,C.createElement)(Lr,(0,b.Z)((0,b.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:X,style:{width:"100%"},className:"".concat(te,"-menu")})),de=B?B(e,$):$,be=(W||[]).map(function(Se,k){return{className:"".concat(te,"-link"),label:Se,key:k}});return j&&!f&&be.push({className:"".concat(te,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!n)},label:j(n)}),(0,s.jsxs)(s.Fragment,{children:[a&&(0,s.jsx)("div",{style:(0,b.Z)({width:n?48:l,overflow:"hidden",flex:"0 0 ".concat(n?48:l,"px"),maxWidth:n?48:l,minWidth:n?48:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},M)}),(0,s.jsxs)(Ka,{collapsible:!0,trigger:null,collapsed:n,breakpoint:d===!1?void 0:d,onCollapse:function(k){f||o==null||o(k)},collapsedWidth:48,style:(0,b.Z)({overflow:"hidden",paddingTop:E==="mix"&&!f?pe:void 0},M),width:l,theme:u,className:I,children:[_&&(0,s.jsx)("div",{className:De()("".concat(te,"-logo"),(0,K.Z)({},"".concat(te,"-collapsed"),n)),onClick:E!=="mix"?h:void 0,id:"logo",style:xe,children:_}),z&&(0,s.jsx)("div",{className:"".concat(te,"-extra ").concat(!_&&"".concat(te,"-extra-no-logo")),children:z}),(0,s.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:de}),(0,s.jsx)("div",{className:"".concat(te,"-links"),children:(0,s.jsx)(jt.Z,{theme:u,inlineIndent:16,className:"".concat(te,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:be})}),i&&(0,s.jsx)("div",{className:De()("".concat(te,"-footer"),(0,K.Z)({},"".concat(te,"-footer-collapsed"),!n)),children:i(e)})]})]})},Br=$a,Ua=function(e){var r=e.isMobile,n=e.menuData,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,u=e.style,l=e.className,f=e.hide,h=e.getContainer,v=e.prefixCls,d=e.matchMenuKeys,M=St.useContainer(),E=M.setFlatMenuKeys;(0,C.useEffect)(function(){if(!(!n||n.length<1)){var S=xr(n);E(Object.keys(S))}},[d.join("-")]),(0,C.useEffect)(function(){r===!0&&(o==null||o(!0))},[r]);var D=(0,br.Z)(e,["className","style"]);return f?null:r?(0,s.jsx)(ba.Z,{visible:!i,placement:"left",className:De()("".concat(v,"-drawer-sider"),l),onClose:function(){return o==null?void 0:o(!0)},style:(0,b.Z)({padding:0,height:"100vh"},u),getContainer:h,width:a,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,s.jsx)(Br,(0,b.Z)((0,b.Z)({},D),{},{className:De()("".concat(v,"-sider"),l),collapsed:r?!1:i,splitMenus:!1}))}):(0,s.jsx)(Br,(0,b.Z)((0,b.Z)({className:De()("".concat(v,"-sider"),l)},D),{},{style:u}))},Hr=Ua,Ga=c(97544),ka=c(14779),Yt=c.n(ka),Va=function(e,r,n){if(n){var a=Et(n.keys()).find(function(o){return Yt()(o).test(e)});if(a)return n.get(a)}if(r){var i=Object.keys(r).find(function(o){return Yt()(o).test(e)});if(i)return r[i]}return{path:""}},Wr=function(e,r){var n=e.pathname,a=n===void 0?"/":n,i=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,l=e.title,f=e.menu,h=f===void 0?{locale:!1}:f,v=r?"":l||"",d=Va(a,i,o);if(!d)return{title:v,id:"",pageName:v};var M=d.name;return h.locale!==!1&&d.locale&&u&&(M=u({id:d.locale||"",defaultMessage:d.name})),M?r||!l?{title:M,id:d.locale||"",pageName:M}:{title:"".concat(M," - ").concat(l),id:d.locale||"",pageName:M}:{title:v,id:d.locale||"",pageName:v}},Au=function(e,r){return Wr(e,r).title},Tu=null;function Qt(t,e){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Qt(t,e)}function Xa(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zt(t)}function Ya(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Qa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ja(t,e){if(e&&((0,N.Z)(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qa(t)}function qa(t){var e=Ya();return function(){var n=Zt(t),a;if(e){var i=Zt(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Ja(this,a)}}var ei=c(10178),ti=c(97601),Du=c(17212),ri=["rightContentRender","prefixCls"],ni=function(e){var r=e.rightContentRender,n=e.prefixCls,a=(0,ge.Z)(e,ri),i=(0,C.useState)("auto"),o=(0,ne.Z)(i,2),u=o[0],l=o[1],f=(0,ei.Z)(function(){var h=ve(Y().mark(function v(d){return Y().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:l(d);case 1:case"end":return E.stop()}},v)}));return function(v){return h.apply(this,arguments)}}(),160);return(0,s.jsx)("div",{className:"".concat(n,"-right-content"),style:{minWidth:u},children:(0,s.jsx)("div",{style:{paddingRight:8},children:(0,s.jsx)(ti.Z,{onResize:function(v){var d=v.width;f.run(d)},children:r&&(0,s.jsx)("div",{className:"".concat(n,"-right-content-resize"),children:r((0,b.Z)((0,b.Z)({},a),{},{rightContentSize:u}))})})})})},ai=function(e){var r=(0,C.useRef)(null),n=e.theme,a=e.onMenuHeaderClick,i=e.contentWidth,o=e.rightContentRender,u=e.className,l=e.style,f=e.headerContentRender,h=e.layout,v="".concat(e.prefixCls||"ant-pro","-top-nav-header"),d=Xt((0,b.Z)((0,b.Z)({},e),{},{collapsed:!1}),h==="mix"?"headerTitleRender":void 0),M=De()(v,u,{light:n==="light"}),E=(0,s.jsx)(Lr,(0,b.Z)((0,b.Z)({},e),e.menuProps)),D=f?f==null?void 0:f(e,E):E;return(0,s.jsx)("div",{className:M,style:l,children:(0,s.jsxs)("div",{ref:r,className:"".concat(v,"-main ").concat(i==="Fixed"?"wide":""),children:[d&&(0,s.jsx)("div",{className:"".concat(v,"-main-left"),onClick:a,children:(0,s.jsx)("div",{className:"".concat(v,"-logo"),id:"logo",children:d},"logo")}),(0,s.jsx)("div",{style:{flex:1},className:"".concat(v,"-menu"),children:D}),o&&(0,s.jsx)(ni,(0,b.Z)({rightContentRender:o,prefixCls:v},e))]})})},zr=ai,Iu=c(17124),ii=function(e,r){return e===!1?null:e?e(r,null):r},oi=function(e){var r=e.isMobile,n=e.logo,a=e.collapsed,i=e.onCollapse,o=e.collapsedButtonRender,u=o===void 0?_r:o,l=e.rightContentRender,f=e.menuHeaderRender,h=e.onMenuHeaderClick,v=e.className,d=e.style,M=e.layout,E=e.children,D=e.headerTheme,S=D===void 0?"dark":D,L=e.splitMenus,j=e.menuData,W=e.prefixCls,B=(0,C.useContext)(se.ZP.ConfigContext),q=B.direction,X="".concat(W,"-global-header"),pe=De()(v,X,(0,K.Z)({},"".concat(X,"-layout-").concat(M),M&&S==="dark"));if(M==="mix"&&!r&&L){var xe=(j||[]).map(function(I){return(0,b.Z)((0,b.Z)({},I),{},{children:void 0,routes:void 0})}),te=vt(xe);return(0,s.jsx)(zr,(0,b.Z)((0,b.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:te,theme:S}))}var w=De()("".concat(X,"-logo"),(0,K.Z)({},"".concat(X,"-logo-rtl"),q==="rtl")),y=(0,s.jsx)("span",{className:w,children:(0,s.jsx)("a",{children:Fr(n)})},"logo");return(0,s.jsxs)("div",{className:pe,style:(0,b.Z)({},d),children:[r&&ii(f,y),r&&u&&(0,s.jsx)("span",{className:"".concat(X,"-collapsed-button"),onClick:function(){i&&i(!a)},children:u(a)}),M==="mix"&&!r&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:w,onClick:h,children:Xt((0,b.Z)((0,b.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,s.jsx)("div",{style:{flex:1},children:E}),l&&l(e)]})},ui=oi,Lu=c(2828),Kr=Ie.Z.Header,li=function(t){Xa(r,t);var e=qa(r);function r(){var n;Pr(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i)),n.renderContent=function(){var u=n.props,l=u.isMobile,f=u.onCollapse,h=u.navTheme,v=u.layout,d=u.headerRender,M=u.headerContentRender,E=v==="top",D=vt(n.props.menuData||[]),S=(0,s.jsx)(ui,(0,b.Z)((0,b.Z)({onCollapse:f},n.props),{},{menuData:D,children:M&&M(n.props,null)}));return E&&!l&&(S=(0,s.jsx)(zr,(0,b.Z)((0,b.Z)({theme:h,mode:"horizontal",onCollapse:f},n.props),{},{menuData:D}))),d&&typeof d=="function"?d(n.props,S):S},n}return jr(r,[{key:"render",value:function(){var a,i=this.props,o=i.fixedHeader,u=i.layout,l=i.className,f=i.style,h=i.navTheme,v=i.collapsed,d=i.siderWidth,M=i.hasSiderMenu,E=i.isMobile,D=i.prefixCls,S=i.headerHeight,L=o||u==="mix",j=u==="top",W=L&&M&&!j&&!E,B=De()(l,(a={},(0,K.Z)(a,"".concat(D,"-fixed-header"),L),(0,K.Z)(a,"".concat(D,"-fixed-header-action"),!v),(0,K.Z)(a,"".concat(D,"-top-menu"),j),(0,K.Z)(a,"".concat(D,"-header-").concat(h),h&&u!=="mix"),a)),q=u!=="mix"&&W?"calc(100% - ".concat(v?48:d,"px)"):"100%",X=L?0:void 0;return(0,s.jsxs)(s.Fragment,{children:[L&&(0,s.jsx)(Kr,{style:{height:S,lineHeight:"".concat(S,"px"),background:"transparent"}}),(0,s.jsx)(Kr,{style:(0,b.Z)({padding:0,height:S,lineHeight:"".concat(S,"px"),width:q,zIndex:u==="mix"?100:19,right:X},f),className:B,children:this.renderContent()})]})}}]),r}(C.Component),si=li,fi={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.daybreak":"Daybreak Blue (default)","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success\uFF0Cplease replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},ci=(0,b.Z)({},fi),di={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.daybreak":"Blu cielo mattutino (default)","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalit\xE0 di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello \xE8 visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},vi=(0,b.Z)({},di),hi={"app.setting.pagestyle":"\uC2A4\uD0C0\uC77C \uC124\uC815","app.setting.pagestyle.dark":"\uB2E4\uD06C \uBAA8\uB4DC","app.setting.pagestyle.light":"\uB77C\uC774\uD2B8 \uBAA8\uB4DC","app.setting.content-width":"\uCEE8\uD150\uCE20 \uB108\uBE44","app.setting.content-width.fixed":"\uACE0\uC815","app.setting.content-width.fluid":"\uD750\uB984","app.setting.themecolor":"\uD14C\uB9C8 \uC0C9\uC0C1","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.daybreak":"Daybreak Blue (default)","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"\uB124\uBE44\uAC8C\uC774\uC158 \uBAA8\uB4DC","app.setting.regionalsettings":"\uC601\uC5ED\uBCC4 \uC124\uC815","app.setting.regionalsettings.header":"\uD5E4\uB354","app.setting.regionalsettings.menu":"\uBA54\uB274","app.setting.regionalsettings.footer":"\uBC14\uB2E5\uAE00","app.setting.regionalsettings.menuHeader":"\uBA54\uB274 \uD5E4\uB354","app.setting.sidemenu":"\uBA54\uB274 \uC0AC\uC774\uB4DC \uBC30\uCE58","app.setting.topmenu":"\uBA54\uB274 \uC0C1\uB2E8 \uBC30\uCE58","app.setting.mixmenu":"\uD63C\uD569\uD615 \uBC30\uCE58","app.setting.splitMenus":"\uBA54\uB274 \uBD84\uB9AC","app.setting.fixedheader":"\uD5E4\uB354 \uACE0\uC815","app.setting.fixedsidebar":"\uC0AC\uC774\uB4DC\uBC14 \uACE0\uC815","app.setting.fixedsidebar.hint":"'\uBA54\uB274 \uC0AC\uC774\uB4DC \uBC30\uCE58'\uB97C \uC120\uD0DD\uD588\uC744 \uB54C \uB3D9\uC791\uD568","app.setting.hideheader":"\uC2A4\uD06C\uB864 \uC911 \uD5E4\uB354 \uAC10\uCD94\uAE30","app.setting.hideheader.hint":"'\uD5E4\uB354 \uAC10\uCD94\uAE30 \uC635\uC158'\uC744 \uC120\uD0DD\uD588\uC744 \uB54C \uB3D9\uC791\uD568","app.setting.othersettings":"\uB2E4\uB978 \uC124\uC815","app.setting.weakmode":"\uACE0\uB300\uBE44 \uBAA8\uB4DC","app.setting.copy":"\uC124\uC815\uAC12 \uBCF5\uC0AC","app.setting.loading":"\uD14C\uB9C8 \uB85C\uB529 \uC911","app.setting.copyinfo":"\uBCF5\uC0AC \uC131\uACF5. src/models/settings.js\uC5D0 \uC788\uB294 defaultSettings\uB97C \uAD50\uCCB4\uD574 \uC8FC\uC138\uC694.","app.setting.production.hint":"\uC124\uC815 \uD310\uB12C\uC740 \uAC1C\uBC1C \uD658\uACBD\uC5D0\uC11C\uB9CC \uBCF4\uC5EC\uC9D1\uB2C8\uB2E4. \uC9C1\uC811 \uC218\uB3D9\uC73C\uB85C \uBCC0\uACBD\uBC14\uB78D\uB2C8\uB2E4."},pi=(0,b.Z)({},hi),mi={"app.setting.pagestyle":"\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E","app.setting.pagestyle.dark":"\u6697\u8272\u83DC\u5355\u98CE\u683C","app.setting.pagestyle.light":"\u4EAE\u8272\u83DC\u5355\u98CE\u683C","app.setting.pagestyle.realdark":"\u6697\u8272\u98CE\u683C(\u5B9E\u9A8C\u529F\u80FD)","app.setting.content-width":"\u5185\u5BB9\u533A\u57DF\u5BBD\u5EA6","app.setting.content-width.fixed":"\u5B9A\u5BBD","app.setting.content-width.fluid":"\u6D41\u5F0F","app.setting.themecolor":"\u4E3B\u9898\u8272","app.setting.themecolor.dust":"\u8584\u66AE","app.setting.themecolor.volcano":"\u706B\u5C71","app.setting.themecolor.sunset":"\u65E5\u66AE","app.setting.themecolor.cyan":"\u660E\u9752","app.setting.themecolor.green":"\u6781\u5149\u7EFF","app.setting.themecolor.daybreak":"\u62C2\u6653\u84DD\uFF08\u9ED8\u8BA4\uFF09","app.setting.themecolor.geekblue":"\u6781\u5BA2\u84DD","app.setting.themecolor.purple":"\u9171\u7D2B","app.setting.navigationmode":"\u5BFC\u822A\u6A21\u5F0F","app.setting.regionalsettings":"\u5185\u5BB9\u533A\u57DF","app.setting.regionalsettings.header":"\u9876\u680F","app.setting.regionalsettings.menu":"\u83DC\u5355","app.setting.regionalsettings.footer":"\u9875\u811A","app.setting.regionalsettings.menuHeader":"\u83DC\u5355\u5934","app.setting.sidemenu":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40","app.setting.topmenu":"\u9876\u90E8\u83DC\u5355\u5E03\u5C40","app.setting.mixmenu":"\u6DF7\u5408\u83DC\u5355\u5E03\u5C40","app.setting.splitMenus":"\u81EA\u52A8\u5206\u5272\u83DC\u5355","app.setting.fixedheader":"\u56FA\u5B9A Header","app.setting.fixedsidebar":"\u56FA\u5B9A\u4FA7\u8FB9\u83DC\u5355","app.setting.fixedsidebar.hint":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40\u65F6\u53EF\u914D\u7F6E","app.setting.hideheader":"\u4E0B\u6ED1\u65F6\u9690\u85CF Header","app.setting.hideheader.hint":"\u56FA\u5B9A Header \u65F6\u53EF\u914D\u7F6E","app.setting.othersettings":"\u5176\u4ED6\u8BBE\u7F6E","app.setting.weakmode":"\u8272\u5F31\u6A21\u5F0F","app.setting.copy":"\u62F7\u8D1D\u8BBE\u7F6E","app.setting.loading":"\u6B63\u5728\u52A0\u8F7D\u4E3B\u9898","app.setting.copyinfo":"\u62F7\u8D1D\u6210\u529F\uFF0C\u8BF7\u5230 src/defaultSettings.js \u4E2D\u66FF\u6362\u9ED8\u8BA4\u914D\u7F6E","app.setting.production.hint":"\u914D\u7F6E\u680F\u53EA\u5728\u5F00\u53D1\u73AF\u5883\u7528\u4E8E\u9884\u89C8\uFF0C\u751F\u4EA7\u73AF\u5883\u4E0D\u4F1A\u5C55\u73B0\uFF0C\u8BF7\u62F7\u8D1D\u540E\u624B\u52A8\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6"},gi=(0,b.Z)({},mi),yi={"app.setting.pagestyle":"\u6574\u9AD4\u98A8\u683C\u8A2D\u7F6E","app.setting.pagestyle.dark":"\u6697\u8272\u83DC\u55AE\u98A8\u683C","app.setting.pagestyle.realdark":"\u6697\u8272\u98A8\u683C(\u5B9E\u9A8C\u529F\u80FD)","app.setting.pagestyle.light":"\u4EAE\u8272\u83DC\u55AE\u98A8\u683C","app.setting.content-width":"\u5167\u5BB9\u5340\u57DF\u5BEC\u5EA6","app.setting.content-width.fixed":"\u5B9A\u5BEC","app.setting.content-width.fluid":"\u6D41\u5F0F","app.setting.themecolor":"\u4E3B\u984C\u8272","app.setting.themecolor.dust":"\u8584\u66AE","app.setting.themecolor.volcano":"\u706B\u5C71","app.setting.themecolor.sunset":"\u65E5\u66AE","app.setting.themecolor.cyan":"\u660E\u9752","app.setting.themecolor.green":"\u6975\u5149\u7DA0","app.setting.themecolor.daybreak":"\u62C2\u66C9\u85CD\uFF08\u9ED8\u8A8D\uFF09","app.setting.themecolor.geekblue":"\u6975\u5BA2\u85CD","app.setting.themecolor.purple":"\u91AC\u7D2B","app.setting.navigationmode":"\u5C0E\u822A\u6A21\u5F0F","app.setting.sidemenu":"\u5074\u908A\u83DC\u55AE\u5E03\u5C40","app.setting.topmenu":"\u9802\u90E8\u83DC\u55AE\u5E03\u5C40","app.setting.mixmenu":"\u6DF7\u5408\u83DC\u55AE\u5E03\u5C40","app.setting.splitMenus":"\u81EA\u52A8\u5206\u5272\u83DC\u5355","app.setting.fixedheader":"\u56FA\u5B9A Header","app.setting.fixedsidebar":"\u56FA\u5B9A\u5074\u908A\u83DC\u55AE","app.setting.fixedsidebar.hint":"\u5074\u908A\u83DC\u55AE\u5E03\u5C40\u6642\u53EF\u914D\u7F6E","app.setting.hideheader":"\u4E0B\u6ED1\u6642\u96B1\u85CF Header","app.setting.hideheader.hint":"\u56FA\u5B9A Header \u6642\u53EF\u914D\u7F6E","app.setting.othersettings":"\u5176\u4ED6\u8A2D\u7F6E","app.setting.weakmode":"\u8272\u5F31\u6A21\u5F0F","app.setting.copy":"\u62F7\u8C9D\u8A2D\u7F6E","app.setting.loading":"\u6B63\u5728\u52A0\u8F09\u4E3B\u984C","app.setting.copyinfo":"\u62F7\u8C9D\u6210\u529F\uFF0C\u8ACB\u5230 src/defaultSettings.js \u4E2D\u66FF\u63DB\u9ED8\u8A8D\u914D\u7F6E","app.setting.production.hint":"\u914D\u7F6E\u6B04\u53EA\u5728\u958B\u767C\u74B0\u5883\u7528\u65BC\u9810\u89BD\uFF0C\u751F\u7522\u74B0\u5883\u4E0D\u6703\u5C55\u73FE\uFF0C\u8ACB\u62F7\u8C9D\u5F8C\u624B\u52D5\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6"},xi=(0,b.Z)({},yi),$r={"zh-CN":gi,"zh-TW":xi,"en-US":ci,"it-IT":vi,"ko-KR":pi},bi=function(){if(!(0,ot.Z)())return"zh-CN";var e=window.localStorage.getItem("umi_locale");return e||window.g_locale||navigator.language},Ci=function(){var e=bi();return $r[e]||$r["zh-CN"]},Ur=c(64335),Mi=function(e){var r=["sidemenu","topmenu"];return r.includes(e)?e==null?void 0:e.replace("menu",""):e},Ri=Mi;function Oi(t){if(!t||t==="/")return["/"];var e=t.split("/").filter(function(r){return r});return e.map(function(r,n){return"/".concat(e.slice(0,n+1).join("/"))})}var wi=function(e){var r=e.breadcrumbName,n=e.path;return(0,s.jsx)("a",{href:n,children:r})},Si=function(e,r){var n=r.formatMessage,a=r.menu;return e.locale&&n&&(a==null?void 0:a.locale)!==!1?n({id:e.locale,defaultMessage:e.name}):e.name},ji=function(e,r){var n=e.get(r);if(!n){var a=Array.from(e.keys())||[],i=a.find(function(o){return Yt()(o.replace("?","")).test(r)});i&&(n=e.get(i))}return n||{path:""}},Pi=function(e){var r=e.location,n=e.breadcrumbMap;return{location:r,breadcrumbMap:n}},Ei=function(e,r,n){var a=Oi(e==null?void 0:e.pathname),i=a.map(function(o){var u=ji(r,o),l=Si(u,n),f=u.hideInBreadcrumb;return l&&!f?{path:o,breadcrumbName:l,component:u.component}:{path:"",breadcrumbName:""}}).filter(function(o){return o&&o.path});return i},Zi=function(e){var r=Pi(e),n=r.location,a=r.breadcrumbMap;return n&&n.pathname&&a?Ei(n,a,e):[]},Ni=function(e,r){var n=e.breadcrumbRender,a=e.itemRender,i=r.breadcrumbProps||{},o=i.minLength,u=o===void 0?2:o,l=Zi(e),f=a||wi,h=l;return n&&(h=n(h)||[]),(h&&h.length<u||n===!1)&&(h=void 0),{routes:h,itemRender:f}};function Ai(t){return Et(t).reduce(function(e,r){var n=(0,ne.Z)(r,2),a=n[0],i=n[1];return e[a]=i,e},{})}var Ti=function t(e,r,n,a){var i=sa(e,(r==null?void 0:r.locale)||!1,n,!0),o=i.menuData,u=i.breadcrumb;return a?t(a(o),r,n,void 0):{breadcrumb:Ai(u),breadcrumbMap:u,menuData:o}},Di=Ti,Ii=c(51812),Li=function(e){var r=(0,C.useState)({}),n=(0,ne.Z)(r,2),a=n[0],i=n[1];return(0,C.useEffect)(function(){i((0,Ii.Z)({layout:(0,N.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar,headerTheme:e.headerTheme}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar,e.headerTheme]),a},Fi=Li,_i=c(20582),Bi=function(e){var r=e.autoClearCache,n=r===void 0?!0:r,a=e.style,i=e.className,o=e.children,u=e.ErrorBoundary||_i.Z;return(0,s.jsx)(Le.oK,{autoClearCache:n,children:e.ErrorBoundary===!1?(0,s.jsx)(Ie.Z.Content,{className:i,style:a,children:o}):(0,s.jsx)(u,{children:(0,s.jsx)(Ie.Z.Content,{className:i,style:a,children:o})})})},Hi=Bi,Wi=["id","defaultMessage"],zi=["fixSiderbar","navTheme","layout"],Gr=0,Ki=function(e,r){return e.headerRender===!1||e.pure?null:(0,s.jsx)(si,(0,b.Z)({matchMenuKeys:r},e))},$i=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,b.Z)({},e),(0,s.jsx)(Ga.Z,{})):null},Ui=function(e,r){var n=e.layout,a=e.navTheme,i=e.isMobile,o=e.openKeys,u=e.splitMenus,l=e.menuRender;if(e.menuRender===!1||e.pure)return null;var f=e.menuData;if(u&&(o!==!1||n==="mix")&&!i){var h=(0,ne.Z)(r,1),v=h[0];if(v){var d,M;f=((d=e.menuData)===null||d===void 0||(M=d.find(function(S){return S.key===v}))===null||M===void 0?void 0:M.routes)||[]}else f=[]}var E=vt(f||[]);if(E&&(E==null?void 0:E.length)<1&&u)return null;if(n==="top"&&!i)return(0,s.jsx)(Hr,(0,b.Z)((0,b.Z)({matchMenuKeys:r},e),{},{hide:!0}));var D=(0,s.jsx)(Hr,(0,b.Z)((0,b.Z)({matchMenuKeys:r},e),{},{style:a==="realDark"?{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"}:{},menuData:E}));return l?l(e,D):D},Gi=function(e,r){var n=r.pageTitleRender,a=Wr(e);if(n===!1)return{title:r.title||"",id:"",pageName:""};if(n){var i=n(e,a.title,a);if(typeof i=="string")return(0,b.Z)((0,b.Z)({},a),{},{title:i});xa()(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},ki=function(e,r,n){return e?r?48:n:0},kr=function(e){var r,n,a,i,o=e||{},u=o.children,l=o.onCollapse,f=o.location,h=f===void 0?{pathname:"/"}:f,v=o.contentStyle,d=o.route,M=o.defaultCollapsed,E=o.style,D=o.disableContentMargin,S=o.siderWidth,L=S===void 0?208:S,j=o.menu,W=o.isChildrenLayout,B=o.menuDataRender,q=o.actionRef,X=o.formatMessage,pe=o.loading,xe=(0,C.useContext)(se.ZP.ConfigContext),te=(r=e.prefixCls)!==null&&r!==void 0?r:xe.getPrefixCls("pro"),w=(0,We.Z)(!1,{value:j==null?void 0:j.loading,onChange:j==null?void 0:j.onLoadingChange}),y=(0,ne.Z)(w,2),I=y[0],_=y[1],z=(0,C.useState)(function(){return Gr+=1,"pro-layout-".concat(Gr)}),$=(0,ne.Z)(z,1),de=$[0],be=(0,C.useCallback)(function(Fe){var nt=Fe.id,Lt=Fe.defaultMessage,fr=(0,ge.Z)(Fe,Wi);if(X)return X((0,b.Z)({id:nt,defaultMessage:Lt},fr));var at=Ci();return at[nt]?at[nt]:Lt},[X]),Se=(0,Cr.ZP)(function(){return(j==null?void 0:j.params)?[de,j==null?void 0:j.params]:[de,{}]},function(){var Fe=ve(Y().mark(function nt(Lt,fr){var at,mn;return Y().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return _(!0),it.next=3,j==null||(at=j.request)===null||at===void 0?void 0:at.call(j,fr,(d==null?void 0:d.routes)||[]);case 3:return mn=it.sent,_(!1),it.abrupt("return",mn);case 6:case"end":return it.stop()}},nt)}));return function(nt,Lt){return Fe.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),k=Se.data,me=Se.mutate,He=(0,Cr.kY)(),gt=He.cache;(0,C.useEffect)(function(){return function(){gt instanceof Map&>.clear()}},[]);var Dt=(0,C.useMemo)(function(){return Di(k||(d==null?void 0:d.routes)||[],j,be,B)},[be,j,B,k,d==null?void 0:d.routes]),qe=Dt||{},Ye=qe.breadcrumb,fu=Ye===void 0?{}:Ye,on=qe.breadcrumbMap,un=qe.menuData,yt=un===void 0?[]:un;q&&(j==null?void 0:j.request)&&(q.current={reload:function(){me()}});var xt=(0,C.useMemo)(function(){return ha(h.pathname||"/",yt||[],!0)},[h.pathname,yt]),ir=(0,C.useMemo)(function(){return Array.from(new Set(xt.map(function(Fe){return Fe.key||Fe.path||""})))},[xt]),ln=xt[xt.length-1]||{},sn=Fi(ln),It=(0,b.Z)((0,b.Z)({},e),sn),cu=It.fixSiderbar,fn=It.navTheme,du=It.layout,vu=(0,ge.Z)(It,zi),bt=Ri(du),Ct=(0,ga.ZP)(),tt=(Ct==="sm"||Ct==="xs")&&!e.disableMobile,hu=bt!=="top"&&!tt,pu=(0,ma.Z)(function(){return M!==void 0?M:!!(tt||Ct==="md")},{value:e.collapsed,onChange:l}),cn=(0,ne.Z)(pu,2),Mt=cn[0],dn=cn[1],rt=(0,br.Z)((0,b.Z)((0,b.Z)((0,b.Z)({prefixCls:te},e),{},{siderWidth:L},sn),{},{formatMessage:be,breadcrumb:fu,menu:(0,b.Z)((0,b.Z)({},j),{},{loading:I}),layout:bt}),["className","style","breadcrumbRender"]),or=Gi((0,b.Z)((0,b.Z)({pathname:h.pathname},rt),{},{breadcrumbMap:on}),e),mu=Ni((0,b.Z)((0,b.Z)({},rt),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:on}),e),ur=Ui((0,b.Z)((0,b.Z)({},rt),{},{menuData:yt,onCollapse:dn,isMobile:tt,theme:fn==="dark"?"dark":"light",collapsed:Mt}),ir),lr=Ki((0,b.Z)((0,b.Z)({},rt),{},{hasSiderMenu:!!ur,menuData:yt,isMobile:tt,collapsed:Mt,onCollapse:dn,theme:fn==="dark"?"dark":"light"}),ir),vn=$i((0,b.Z)({isMobile:tt,collapsed:Mt},rt)),gu=(0,C.useContext)(Ur.Z),yu=gu.isChildrenLayout,sr=W!==void 0?W:yu,Qe="".concat(te,"-basicLayout"),xu=De()(e.className,"ant-design-pro",Qe,(n={},(0,K.Z)(n,"screen-".concat(Ct),Ct),(0,K.Z)(n,"".concat(Qe,"-top-menu"),bt==="top"),(0,K.Z)(n,"".concat(Qe,"-is-children"),sr),(0,K.Z)(n,"".concat(Qe,"-fix-siderbar"),cu),(0,K.Z)(n,"".concat(Qe,"-").concat(bt),bt),n)),bu=ki(!!hu,Mt,L),hn={position:"relative"};(sr||v&&v.minHeight)&&(hn.minHeight=0);var Cu=De()("".concat(Qe,"-content"),(a={},(0,K.Z)(a,"".concat(Qe,"-has-header"),lr),(0,K.Z)(a,"".concat(Qe,"-content-disable-margin"),D),a));(0,C.useEffect)(function(){var Fe;(Fe=e.onPageChange)===null||Fe===void 0||Fe.call(e,e.location)},[h.pathname,(i=h.pathname)===null||i===void 0?void 0:i.search]);var Mu=(0,C.useState)(!1),pn=(0,ne.Z)(Mu,2),Ru=pn[0],Ou=pn[1];return Be(or,e.title||!1),(0,s.jsx)(St.Provider,{children:(0,s.jsx)(Ur.Z.Provider,{value:(0,b.Z)((0,b.Z)({},rt),{},{breadcrumb:mu,menuData:yt,isMobile:tt,collapsed:Mt,isChildrenLayout:!0,title:or.pageName,hasSiderMenu:!!ur,hasHeader:!!lr,siderWidth:bu,hasFooter:!!vn,hasFooterToolbar:Ru,setHasFooterToolbar:Ou,pageTitleInfo:or,matchMenus:xt,matchMenuKeys:ir,currentMenu:ln}),children:e.pure?(0,s.jsx)(Le.oK,{autoClearCache:!0,children:u}):(0,s.jsx)("div",{className:xu,children:(0,s.jsxs)(Ie.Z,{style:(0,b.Z)({minHeight:"100%"},E),children:[ur,(0,s.jsxs)("div",{style:hn,className:xe.getPrefixCls("layout"),children:[lr,(0,s.jsx)(Hi,(0,b.Z)((0,b.Z)({autoClearCache:!1,isChildrenLayout:sr},vu),{},{className:Cu,style:v,children:pe?(0,s.jsx)(Mr.Z,{}):u})),vn]})]})})})})},Vi=function(){return(0,s.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 200 200",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,s.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,s.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,s.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,s.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,s.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,s.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,s.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,s.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,s.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,s.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,s.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,s.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,s.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,s.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,s.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,s.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,s.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,s.jsxs)("g",{children:[(0,s.jsxs)("g",{fillRule:"nonzero",children:[(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,s.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,s.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,s.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})};kr.defaultProps=(0,b.Z)((0,b.Z)({logo:(0,s.jsx)(Vi,{})},Zr),{},{location:(0,ot.Z)()?window.location:void 0});var Xi=kr,Yi=c(86894),Fu=Yi.ZP,Qi=Xi,_u=c(59250),Ji=c(13013),Bu=c(20228),qi=c(11382),Hu=c(94233),eo=c(51890),to=c(55035);function Jt(t,e,r,n){if(t.rightRender)return t.rightRender(r,n,t);var a=(0,s.jsx)(jt.Z,{className:"umi-plugin-layout-menu",children:(0,s.jsxs)(jt.Z.Item,{onClick:function(){return t.logout&&(t==null?void 0:t.logout(r))},children:[(0,s.jsx)(to.Z,{}),"\u9000\u51FA\u767B\u5F55"]},"logout")}),i=(0,s.jsxs)("span",{className:"umi-plugin-layout-action",children:[(0,s.jsx)(eo.C,{size:"small",className:"umi-plugin-layout-avatar",src:(r==null?void 0:r.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,s.jsx)("span",{className:"umi-plugin-layout-name",children:r==null?void 0:r.name})]});return e?(0,s.jsx)("div",{className:"umi-plugin-layout-right",children:(0,s.jsx)(qi.Z,{size:"small",style:{marginLeft:8,marginRight:8}})}):(0,s.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[t.logout?(0,s.jsx)(Ji.Z,{overlay:a,overlayClassName:"umi-plugin-layout-container",children:i}):i,x.pD&&(0,s.jsx)(x.pD,{})]})}var Wu=c(57106),Vr=c(80002),zu=c(57663),Xr=c(71577);function Yr(){x.m8.push("/")}var ro=function(){return(0,s.jsx)(Vr.ZP,{status:"404",title:"404",subTitle:(0,s.jsx)(x._H,{id:"layout.global.exceptions.404.description",defaultMessage:"Sorry, the page you visited does not exist"}),extra:(0,s.jsx)(Xr.Z,{type:"primary",onClick:Yr,children:(0,s.jsx)(x._H,{id:"layout.global.exceptions.404.action",defaultMessage:"Back to home"})})})},no=function(){return(0,s.jsx)(Vr.ZP,{status:"403",title:"403",subTitle:(0,s.jsx)(x._H,{id:"layout.global.exceptions.403.description",defaultMessage:"Sorry, you do not have permission to visit this page"}),extra:(0,s.jsx)(Xr.Z,{type:"primary",onClick:Yr,children:(0,s.jsx)(x._H,{id:"layout.global.exceptions.404.action",defaultMessage:"Back to home"})})})},ao=function(e){var r=e.children,n=e.currentPathConfig;return n?n.unAccessible||n.unaccessible?e.unAccessible||(0,s.jsx)(no,{}):r:e.noFound||(0,s.jsx)(ro,{})},io=c(62991),Qr=c.n(io);function $e(t,e){return e>>>t|e<<32-t}function oo(t,e,r){return t&e^~t&r}function uo(t,e,r){return t&e^t&r^e&r}function lo(t){return $e(2,t)^$e(13,t)^$e(22,t)}function so(t){return $e(6,t)^$e(11,t)^$e(25,t)}function fo(t){return $e(7,t)^$e(18,t)^t>>>3}function co(t){return $e(17,t)^$e(19,t)^t>>>10}function vo(t,e){return t[e&15]+=co(t[e+14&15])+t[e+9&15]+fo(t[e+1&15])}var ho=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ie,Ae,we,po="0123456789abcdef";function Jr(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function mo(){ie=new Array(8),Ae=new Array(2),we=new Array(64),Ae[0]=Ae[1]=0,ie[0]=1779033703,ie[1]=3144134277,ie[2]=1013904242,ie[3]=2773480762,ie[4]=1359893119,ie[5]=2600822924,ie[6]=528734635,ie[7]=1541459225}function qt(){var t,e,r,n,a,i,o,u,l,f,h=new Array(16);t=ie[0],e=ie[1],r=ie[2],n=ie[3],a=ie[4],i=ie[5],o=ie[6],u=ie[7];for(var v=0;v<16;v++)h[v]=we[(v<<2)+3]|we[(v<<2)+2]<<8|we[(v<<2)+1]<<16|we[v<<2]<<24;for(var d=0;d<64;d++)l=u+so(a)+oo(a,i,o)+ho[d],d<16?l+=h[d]:l+=vo(h,d),f=lo(t)+uo(t,e,r),u=o,o=i,i=a,a=Jr(n,l),n=r,r=e,e=t,t=Jr(l,f);ie[0]+=t,ie[1]+=e,ie[2]+=r,ie[3]+=n,ie[4]+=a,ie[5]+=i,ie[6]+=o,ie[7]+=u}function go(t,e){var r,n,a=0;n=Ae[0]>>3&63;var i=e&63;for((Ae[0]+=e<<3)<e<<3&&Ae[1]++,Ae[1]+=e>>29,r=0;r+63<e;r+=64){for(var o=n;o<64;o++)we[o]=t.charCodeAt(a++);qt(),n=0}for(var u=0;u<i;u++)we[u]=t.charCodeAt(a++)}function yo(){var t=Ae[0]>>3&63;if(we[t++]=128,t<=56)for(var e=t;e<56;e++)we[e]=0;else{for(var r=t;r<64;r++)we[r]=0;qt();for(var n=0;n<56;n++)we[n]=0}we[56]=Ae[1]>>>24&255,we[57]=Ae[1]>>>16&255,we[58]=Ae[1]>>>8&255,we[59]=Ae[1]&255,we[60]=Ae[0]>>>24&255,we[61]=Ae[0]>>>16&255,we[62]=Ae[0]>>>8&255,we[63]=Ae[0]&255,qt()}function Ku(){for(var t=0,e=new Array(32),r=0;r<8;r++)e[t++]=ie[r]>>>24&255,e[t++]=ie[r]>>>16&255,e[t++]=ie[r]>>>8&255,e[t++]=ie[r]&255;return e}function xo(){for(var t=new String,e=0;e<8;e++)for(var r=28;r>=0;r-=4)t+=po.charAt(ie[e]>>>r&15);return t}function bo(t){return mo(),go(t,t.length),yo(),xo()}var Co=bo;function Nt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nt=function(r){return typeof r}:Nt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Nt(t)}function Mo(t,e){return wo(t)||Oo(t,e)||tr(t,e)||Ro()}function Ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oo(t,e){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=t[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(e&&r.length===e));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function wo(t){if(Array.isArray(t))return t}function So(t,e){var r;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(r=tr(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,u;return{s:function(){r=t[Symbol.iterator]()},n:function(){var f=r.next();return i=f.done,f},e:function(f){o=!0,u=f},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw u}}}}function jo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Po(t,e,r){return e&&qr(t.prototype,e),r&&qr(t,r),t}function Eo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}function Zo(t){var e=en();return function(){var n=pt(t),a;if(e){var i=pt(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return No(this,a)}}function No(t,e){return e&&(Nt(e)==="object"||typeof e=="function")?e:Ao(t)}function Ao(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function er(t){var e=typeof Map=="function"?new Map:void 0;return er=function(n){if(n===null||!To(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return At(n,arguments,pt(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ht(a,n)},er(t)}function At(t,e,r){return en()?At=Reflect.construct:At=function(a,i,o){var u=[null];u.push.apply(u,i);var l=Function.bind.apply(a,u),f=new l;return o&&ht(f,o.prototype),f},At.apply(null,arguments)}function en(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function To(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ht(t,e){return ht=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ht(t,e)}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pt(t)}function tn(t){return Lo(t)||Io(t)||tr(t)||Do()}function Do(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tr(t,e){if(!!t){if(typeof t=="string")return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rr(t,e)}}function Io(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function Lo(t){if(Array.isArray(t))return rr(t)}function rr(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fo(t,e){if(t==null)return{};var r=_o(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function _o(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function rn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rn(Object(r),!0).forEach(function(n){Bo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mt(t){return t.split("?")[0].split("#")[0]}var nr=function(e){if(!e.startsWith("http"))return!1;try{var r=new URL(e);return!!r}catch(n){return!1}},Ho=function(e){var r=e.path;if(!r||r==="/")try{return"/".concat(Co(JSON.stringify(e)))}catch(n){}return r&&mt(r)},Wo=function(e,r){var n=e.name,a=e.locale;return"locale"in e&&a===!1||!n?!1:e.locale||"".concat(r,".").concat(n)},nn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return(e||r).startsWith("/")||nr(e)?e:"/".concat(r,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},zo=function(e,r){var n=e.menu,a=n===void 0?{}:n,i=e.indexRoute,o=e.path,u=o===void 0?"":o,l=e.children,f=a.name,h=f===void 0?e.name:f,v=a.icon,d=v===void 0?e.icon:v,M=a.hideChildren,E=M===void 0?e.hideChildren:M,D=a.flatMenu,S=D===void 0?e.flatMenu:D,L=i&&Object.keys(i).join(",")!=="redirect"?[je({path:u,menu:a},i)].concat(l||[]):l,j=je({},e);if(h&&(j.name=h),d&&(j.icon=d),L&&L.length){if(E)return delete j.children,j;var W=ar(je(je({},r),{},{data:L}),e);if(S)return W;j.children=W}return j};function ar(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},r=t.data,n=t.formatMessage,a=t.parentName,i=t.locale;return!r||!Array.isArray(r)?[]:r.filter(function(o){return o?o.routes||o.children||o.path||o.layout?!0:(o.redirect,!1):!1}).filter(function(o){var u,l;return o.unaccessible&&delete o.name,(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(l=o.menu)===null||l===void 0?void 0:l.flatMenu)?!0:o.menu!==!1}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=nn(o.path,e?e.path:"/"),l=o.name,f=Wo(o,a||"menu"),h=f!==!1&&i!==!1&&n&&f?n({id:f,defaultMessage:l}):l,v=e.pro_layout_parentKeys,d=v===void 0?[]:v,M=e.children,E=e.icon,D=e.flatMenu,S=e.indexRoute,L=Fo(e,["pro_layout_parentKeys","children","icon","flatMenu","indexRoute"]),j=je(je(je({},L),{},{menu:void 0},o),{},{path:u,locale:f,key:o.key||Ho(je(je({},o),{},{path:u})),routes:null,pro_layout_parentKeys:Array.from(new Set([].concat(tn(o.parentKeys||[]),tn(d),["/".concat(e.key||"").replace(/\/\//g,"/").replace(/\/\//g,"/")]))).filter(function(B){return B&&B!=="/"})});if(h?j.name=h:delete j.name,j.menu===void 0&&delete j.menu,o.routes||o.children){var W=ar(je(je({},t),{},{data:o.routes||o.children,parentName:f||""}),j);j.children=W&&W.length>0?W:void 0,j.children||delete j.children}return zo(j,t)}).flat(1)}var Ko=(0,Ue.default)(ar,Qr()),$o=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(r){return r&&(r.name||r.children)&&!r.hideInMenu&&!r.redirect}).map(function(r){if(r.children&&Array.isArray(r.children)&&!r.hideChildrenInMenu&&r.children.some(function(a){return a&&!!a.name})){var n=t(r.children);if(n.length)return je(je({},r),{},{children:n})}return je(je({},r),{},{children:void 0})}).filter(function(r){return r})},Uo=function(t){Eo(r,t);var e=Zo(r);function r(){return jo(this,r),e.apply(this,arguments)}return Po(r,[{key:"get",value:function(a){var i;try{var o=So(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var l=Mo(u.value,2),f=l[0],h=l[1],v=mt(f);if(!nr(f)&&ze(v,[]).test(a)){i=h;break}}}catch(d){o.e(d)}finally{o.f()}}catch(d){i=void 0}return i}}]),r}(er(Map)),Go=function(e){var r=new Uo,n=function a(i,o){i.forEach(function(u){u&&u.children&&a(u.children,u);var l=nn(u.path,o?o.path:"/");r.set(mt(l),u)})};return n(e),r},ko=(0,Ue.default)(Go,Qr()),Vo=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(r){if(r.children&&Array.isArray(r.children)&&r.children.length>0){var n=t(r.children);if(n.length)return je(je({},r),{},{children:n})}var a=je({},r);return delete a.children,a}).filter(function(r){return r})},Xo=function(e,r,n,a){var i=Ko({data:e,formatMessage:n,locale:r}),o=a?Vo(i):$o(i),u=ko(i);return{breadcrumb:u,menuData:o}},Yo=Xo;function an(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Tt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?an(Object(r),!0).forEach(function(n){Qo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jo=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r={};return e.forEach(function(n){!n||!n.key||(r[mt(n.path||n.key||"/")]=Tt({},n),r[n.key||n.path||"/"]=Tt({},n),n.children&&(r=Tt(Tt({},r),t(n.children))))}),r},qo=Jo,eu=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&r==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!nr(a)){var i=mt(a);try{if(n&&ze("".concat(i)).test(r)||ze("".concat(i),[]).test(r)||ze("".concat(i,"/(.*)")).test(r))return!0}catch(o){}}return!1}).sort(function(a,i){return a===r?10:i===r?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},tu=function(e,r,n,a){var i=qo(r),o=Object.keys(i),u=eu(o,e||"/",a);return!u||u.length<1?[]:(n||(u=[u[u.length-1]]),u.map(function(l){var f=i[l]||{pro_layout_parentKeys:"",key:""},h=new Map,v=(f.pro_layout_parentKeys||[]).map(function(d){return h.has(d)?null:(h.set(d,!0),i[d])}).filter(function(d){return d});return f.key&&v.push(f),v}).flat(1))},ru=tu,nu=function(){return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,s.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,s.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,s.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,s.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,s.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,s.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,s.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,s.jsx)("g",{transform:"translate(-20 -20)",children:(0,s.jsx)("g",{transform:"translate(20 20)",children:(0,s.jsxs)("g",{children:[(0,s.jsxs)("g",{fillRule:"nonzero",children:[(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),(0,s.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),(0,s.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),(0,s.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},au=nu,iu=function(e){var r,n,a,i={};return e!=null&&e.hideFooter&&(i.footerRender=!1),(e==null?void 0:e.layout)==!1?(i.pure=!0,i):(e!=null&&(r=e.layout)!==null&&r!==void 0&&r.hideMenu&&(i.menuRender=!1),e!=null&&(n=e.layout)!==null&&n!==void 0&&n.hideFooter&&(i.footerRender=!1),e!=null&&(a=e.layout)!==null&&a!==void 0&&a.hideNav&&(i.headerRender=!1),i)},ou=iu,uu=function(e){var r,n=e.children,a=e.userConfig,i=a===void 0?{}:a,o=e.location,u=e.route,l=(0,T.Z)(e,["children","userConfig","location","route"]),f=x.tT&&(0,x.tT)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},h=f.initialState,v=f.loading,d=f.setInitialState,M=(0,C.useState)(),E=(0,R.Z)(M,2),D=E[0],S=E[1];(0,C.useEffect)(function(){var W,B=Yo((e==null||(W=e.route)===null||W===void 0?void 0:W.routes)||[],void 0,void 0,!0),q=B.menuData,X=ru(o.pathname,q).pop();S(X||{})},[o==null?void 0:o.pathname,e==null||(r=e.route)===null||r===void 0?void 0:r.routes]);var L=(0,p.Z)((0,p.Z)((0,p.Z)({itemRender:function(B){return(0,s.jsx)(P,{to:B.path,children:B.breadcrumbName})}},i),l),ou(D||{})),j=x.md===null||x.md===void 0?void 0:(0,x.md)();return D?(0,s.jsx)(Qi,(0,p.Z)((0,p.Z)({route:u,location:o,title:(i==null?void 0:i.name)||(i==null?void 0:i.title),navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(B){B.stopPropagation(),B.preventDefault(),x.m8.push("/")},menu:{locale:i.locale},menuDataRender:i.patchMenus?function(W){return i==null?void 0:i.patchMenus(W,f)}:void 0,formatMessage:i==null?void 0:i.formatMessage,logo:au,menuItemRender:function(B,q){return B.isUrl||B.children?q:B.path&&o.pathname!==B.path?(0,s.jsx)(P,{to:B.path,target:B.target,children:q}):q},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0,postMenuData:x.Bz?function(W){return x.Bz===null||x.Bz===void 0?void 0:(0,x.Bz)(W,j)}:void 0},L),{},{rightContentRender:(L==null?void 0:L.rightContentRender)!==!1&&function(W){var B=Jt==null?void 0:Jt(i,v,h,d);return L.rightContentRender?L.rightContentRender(W,B,{userConfig:i,loading:v,initialState:h,setInitialState:d}):B},children:(0,s.jsx)(ao,{noFound:i==null?void 0:i.noFound,unAccessible:i==null?void 0:i.unAccessible,currentPathConfig:D,children:i.childrenRender?i.childrenRender(n):n})})):(0,s.jsx)(Mr.Z,{})},lu=uu,su=function(t){var e=(0,C.useState)(null),r=(0,R.Z)(e,2),n=r[0],a=r[1],i=x.tT&&(0,x.tT)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},o=x.md===null||x.md===void 0?void 0:(0,x.md)();(0,C.useEffect)(function(){var h=x.BA.applyPlugins({key:"layout",type:H.Ac.modify,initialValue:(0,p.Z)((0,p.Z)({},i),{},{traverseModifyRoutes:function(d){return x.Bz===null||x.Bz===void 0?void 0:(0,x.Bz)(d,o)}})})||{};if(h instanceof Promise){h.then(function(v){a(v)});return}a(h)},[i==null?void 0:i.initialState,o]);var u=(0,p.Z)((0,p.Z)({},{name:"gms-ui",theme:"PRO",locale:!0,showBreadcrumb:!0,siderWidth:208,navTheme:"realDark",collapsed:!0,primaryColor:"#49aa9c",layout:"mix",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,colorWeak:!1,title:"MobiFone Smart Monitoring System",copyright:"by Mobifone",pwa:!1,logo:"/logo.png",iconfontUrl:"//at.alicdn.com/t/font_1970684_l7p29f9jjrp.js"}),n||{}),l=(0,x.YB)(),f=l.formatMessage;return n?C.createElement(lu,(0,p.Z)({userConfig:u,formatMessage:f},t)):null}},33860:function(Pe,ye,c){"use strict";c.d(ye,{Z:function(){return Ie}});var p=c(46823),R=c(16184),C=c(65459),x=c(94184),H=c.n(x),T=c(67294),re=c(53124),ee=c(10366),Me=function(N){var Y,he,ve=N.prefixCls,ge=N.className,Ze=N.style,se=N.size,ne=N.shape,b=H()((Y={},(0,p.Z)(Y,"".concat(ve,"-lg"),se==="large"),(0,p.Z)(Y,"".concat(ve,"-sm"),se==="small"),Y)),s=H()((he={},(0,p.Z)(he,"".concat(ve,"-circle"),ne==="circle"),(0,p.Z)(he,"".concat(ve,"-square"),ne==="square"),(0,p.Z)(he,"".concat(ve,"-round"),ne==="round"),he)),Le=typeof se=="number"?{width:se,height:se,lineHeight:"".concat(se,"px")}:{};return T.createElement("span",{className:H()(ve,b,s,ge),style:(0,R.Z)((0,R.Z)({},Le),Ze)})},oe=Me,Q=function(N){var Y=N.prefixCls,he=N.className,ve=N.active,ge=T.useContext(re.E_),Ze=ge.getPrefixCls,se=Ze("skeleton",Y),ne=(0,ee.Z)(N,["prefixCls","className"]),b=H()(se,"".concat(se,"-element"),(0,p.Z)({},"".concat(se,"-active"),ve),he);return T.createElement("div",{className:b},T.createElement(oe,(0,R.Z)({prefixCls:"".concat(se,"-avatar")},ne)))};Q.defaultProps={size:"default",shape:"circle"};var fe=Q,Z=function(N){var Y,he=N.prefixCls,ve=N.className,ge=N.active,Ze=N.block,se=Ze===void 0?!1:Ze,ne=T.useContext(re.E_),b=ne.getPrefixCls,s=b("skeleton",he),Le=(0,ee.Z)(N,["prefixCls"]),We=H()(s,"".concat(s,"-element"),(Y={},(0,p.Z)(Y,"".concat(s,"-active"),ge),(0,p.Z)(Y,"".concat(s,"-block"),se),Y),ve);return T.createElement("div",{className:We},T.createElement(oe,(0,R.Z)({prefixCls:"".concat(s,"-button")},Le)))};Z.defaultProps={size:"default"};var V=Z,F="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",ce=function(N){var Y=N.prefixCls,he=N.className,ve=N.style,ge=T.useContext(re.E_),Ze=ge.getPrefixCls,se=Ze("skeleton",Y),ne=H()(se,"".concat(se,"-element"),he);return T.createElement("div",{className:ne},T.createElement("div",{className:H()("".concat(se,"-image"),he),style:ve},T.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(se,"-image-svg")},T.createElement("path",{d:F,className:"".concat(se,"-image-path")}))))},ue=ce,A=function(N){var Y,he=N.prefixCls,ve=N.className,ge=N.active,Ze=N.block,se=T.useContext(re.E_),ne=se.getPrefixCls,b=ne("skeleton",he),s=(0,ee.Z)(N,["prefixCls"]),Le=H()(b,"".concat(b,"-element"),(Y={},(0,p.Z)(Y,"".concat(b,"-active"),ge),(0,p.Z)(Y,"".concat(b,"-block"),Ze),Y),ve);return T.createElement("div",{className:Le},T.createElement(oe,(0,R.Z)({prefixCls:"".concat(b,"-input")},s)))};A.defaultProps={size:"default"};var m=A,O=c(33552),g=function(N){var Y=function(b){var s=N.width,Le=N.rows,We=Le===void 0?2:Le;if(Array.isArray(s))return s[b];if(We-1===b)return s},he=N.prefixCls,ve=N.className,ge=N.style,Ze=N.rows,se=(0,O.Z)(Array(Ze)).map(function(ne,b){return T.createElement("li",{key:b,style:{width:Y(b)}})});return T.createElement("ul",{className:H()(he,ve),style:ge},se)},P=g,U=function(N){var Y=N.prefixCls,he=N.className,ve=N.width,ge=N.style;return T.createElement("h3",{className:H()(Y,he),style:(0,R.Z)({width:ve},ge)})},J=U;function G(K){return K&&(0,C.Z)(K)==="object"?K:{}}function le(K,N){return K&&!N?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ee(K,N){return!K&&N?{width:"38%"}:K&&N?{width:"50%"}:{}}function _e(K,N){var Y={};return(!K||!N)&&(Y.width="61%"),!K&&N?Y.rows=3:Y.rows=2,Y}var Re=function(N){var Y=N.prefixCls,he=N.loading,ve=N.className,ge=N.style,Ze=N.children,se=N.avatar,ne=N.title,b=N.paragraph,s=N.active,Le=N.round,We=T.useContext(re.E_),ot=We.getPrefixCls,Ft=We.direction,Be=ot("skeleton",Y);if(he||!("loading"in N)){var Xe,Je=!!se,Ue=!!ne,et=!!b,ut;if(Je){var cr=(0,R.Z)((0,R.Z)({prefixCls:"".concat(Be,"-avatar")},le(Ue,et)),G(se));ut=T.createElement("div",{className:"".concat(Be,"-header")},T.createElement(oe,(0,R.Z)({},cr)))}var Rt;if(Ue||et){var _t;if(Ue){var Bt=(0,R.Z)((0,R.Z)({prefixCls:"".concat(Be,"-title")},Ee(Je,et)),G(ne));_t=T.createElement(J,(0,R.Z)({},Bt))}var Ge;if(et){var lt=(0,R.Z)((0,R.Z)({prefixCls:"".concat(Be,"-paragraph")},_e(Je,Ue)),G(b));Ge=T.createElement(P,(0,R.Z)({},lt))}Rt=T.createElement("div",{className:"".concat(Be,"-content")},_t,Ge)}var Ht=H()(Be,(Xe={},(0,p.Z)(Xe,"".concat(Be,"-with-avatar"),Je),(0,p.Z)(Xe,"".concat(Be,"-active"),s),(0,p.Z)(Xe,"".concat(Be,"-rtl"),Ft==="rtl"),(0,p.Z)(Xe,"".concat(Be,"-round"),Le),Xe),ve);return T.createElement("div",{className:Ht,style:ge},ut,Rt)}return typeof Ze!="undefined"?Ze:null};Re.defaultProps={avatar:!1,title:!0,paragraph:!0},Re.Button=V,Re.Avatar=fe,Re.Input=m,Re.Image=ue;var Ve=Re,Ie=Ve},71748:function(Pe,ye,c){"use strict";var p=c(38663),R=c.n(p),C=c(18067),x=c.n(C)},62991:function(Pe){"use strict";var ye=typeof BigInt64Array!="undefined";Pe.exports=function c(p,R){if(p===R)return!0;if(p&&R&&typeof p=="object"&&typeof R=="object"){if(p.constructor!==R.constructor)return!1;var C,x,H;if(Array.isArray(p)){if(C=p.length,C!=R.length)return!1;for(x=C;x--!=0;)if(!c(p[x],R[x]))return!1;return!0}if(p instanceof Map&&R instanceof Map){if(p.size!==R.size)return!1;for(x of p.entries())if(!R.has(x[0]))return!1;for(x of p.entries())if(!c(x[1],R.get(x[0])))return!1;return!0}if(p instanceof Set&&R instanceof Set){if(p.size!==R.size)return!1;for(x of p.entries())if(!R.has(x[0]))return!1;return!0}if(ArrayBuffer.isView(p)&&ArrayBuffer.isView(R)){if(C=p.length,C!=R.length)return!1;for(x=C;x--!=0;)if(p[x]!==R[x])return!1;return!0}if(p.constructor===RegExp)return p.source===R.source&&p.flags===R.flags;if(p.valueOf!==Object.prototype.valueOf)return p.valueOf()===R.valueOf();if(p.toString!==Object.prototype.toString)return p.toString()===R.toString();if(H=Object.keys(p),C=H.length,C!==Object.keys(R).length)return!1;for(x=C;x--!=0;)if(!Object.prototype.hasOwnProperty.call(R,H[x]))return!1;for(x=C;x--!=0;){var T=H[x];if(!c(p[T],R[T]))return!1}return!0}return p!==p&&R!==R}},21879:function(Pe){"use strict";var ye=typeof BigInt64Array!="undefined";Pe.exports=function c(p,R){if(p===R)return!0;if(p&&R&&typeof p=="object"&&typeof R=="object"){if(p.constructor!==R.constructor)return!1;var C,x,H;if(Array.isArray(p)){if(C=p.length,C!=R.length)return!1;for(x=C;x--!=0;)if(!c(p[x],R[x]))return!1;return!0}if(p instanceof Map&&R instanceof Map){if(p.size!==R.size)return!1;for(x of p.entries())if(!R.has(x[0]))return!1;for(x of p.entries())if(!c(x[1],R.get(x[0])))return!1;return!0}if(p instanceof Set&&R instanceof Set){if(p.size!==R.size)return!1;for(x of p.entries())if(!R.has(x[0]))return!1;return!0}if(ArrayBuffer.isView(p)&&ArrayBuffer.isView(R)){if(C=p.length,C!=R.length)return!1;for(x=C;x--!=0;)if(p[x]!==R[x])return!1;return!0}if(p.constructor===RegExp)return p.source===R.source&&p.flags===R.flags;if(p.valueOf!==Object.prototype.valueOf)return p.valueOf()===R.valueOf();if(p.toString!==Object.prototype.toString)return p.toString()===R.toString();if(H=Object.keys(p),C=H.length,C!==Object.keys(R).length)return!1;for(x=C;x--!=0;)if(!Object.prototype.hasOwnProperty.call(R,H[x]))return!1;for(x=C;x--!=0;){var T=H[x];if(!(T==="_owner"&&p.$$typeof)&&!c(p[T],R[T]))return!1}return!0}return p!==p&&R!==R}},30845:function(Pe,ye,c){"use strict";c.r(ye);var p=Number.isNaN||function(T){return typeof T=="number"&&T!==T};function R(H,T){return!!(H===T||p(H)&&p(T))}function C(H,T){if(H.length!==T.length)return!1;for(var re=0;re<H.length;re++)if(!R(H[re],T[re]))return!1;return!0}function x(H,T){T===void 0&&(T=C);var re,ee=[],Me,oe=!1;function Q(){for(var fe=[],Z=0;Z<arguments.length;Z++)fe[Z]=arguments[Z];return oe&&re===this&&T(fe,ee)||(Me=H.apply(this,fe),oe=!0,re=this,ee=fe),Me}return Q}ye.default=x},14779:function(Pe){Pe.exports=fe,Pe.exports.parse=R,Pe.exports.compile=C,Pe.exports.tokensToFunction=x,Pe.exports.tokensToRegExp=Q;var ye="/",c="./",p=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function R(Z,V){for(var F=[],ce=0,ue=0,A="",m=V&&V.delimiter||ye,O=V&&V.delimiters||c,g=!1,P;(P=p.exec(Z))!==null;){var U=P[0],J=P[1],G=P.index;if(A+=Z.slice(ue,G),ue=G+U.length,J){A+=J[1],g=!0;continue}var le="",Ee=Z[ue],_e=P[2],Re=P[3],Ve=P[4],Ie=P[5];if(!g&&A.length){var K=A.length-1;O.indexOf(A[K])>-1&&(le=A[K],A=A.slice(0,K))}A&&(F.push(A),A="",g=!1);var N=le!==""&&Ee!==void 0&&Ee!==le,Y=Ie==="+"||Ie==="*",he=Ie==="?"||Ie==="*",ve=le||m,ge=Re||Ve;F.push({name:_e||ce++,prefix:le,delimiter:ve,optional:he,repeat:Y,partial:N,pattern:ge?T(ge):"[^"+H(ve)+"]+?"})}return(A||ue<Z.length)&&F.push(A+Z.substr(ue)),F}function C(Z,V){return x(R(Z,V))}function x(Z){for(var V=new Array(Z.length),F=0;F<Z.length;F++)typeof Z[F]=="object"&&(V[F]=new RegExp("^(?:"+Z[F].pattern+")$"));return function(ce,ue){for(var A="",m=ue&&ue.encode||encodeURIComponent,O=0;O<Z.length;O++){var g=Z[O];if(typeof g=="string"){A+=g;continue}var P=ce?ce[g.name]:void 0,U;if(Array.isArray(P)){if(!g.repeat)throw new TypeError('Expected "'+g.name+'" to not repeat, but got array');if(P.length===0){if(g.optional)continue;throw new TypeError('Expected "'+g.name+'" to not be empty')}for(var J=0;J<P.length;J++){if(U=m(P[J],g),!V[O].test(U))throw new TypeError('Expected all "'+g.name+'" to match "'+g.pattern+'"');A+=(J===0?g.prefix:g.delimiter)+U}continue}if(typeof P=="string"||typeof P=="number"||typeof P=="boolean"){if(U=m(String(P),g),!V[O].test(U))throw new TypeError('Expected "'+g.name+'" to match "'+g.pattern+'", but got "'+U+'"');A+=g.prefix+U;continue}if(g.optional){g.partial&&(A+=g.prefix);continue}throw new TypeError('Expected "'+g.name+'" to be '+(g.repeat?"an array":"a string"))}return A}}function H(Z){return Z.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function T(Z){return Z.replace(/([=!:$/()])/g,"\\$1")}function re(Z){return Z&&Z.sensitive?"":"i"}function ee(Z,V){if(!V)return Z;var F=Z.source.match(/\((?!\?)/g);if(F)for(var ce=0;ce<F.length;ce++)V.push({name:ce,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return Z}function Me(Z,V,F){for(var ce=[],ue=0;ue<Z.length;ue++)ce.push(fe(Z[ue],V,F).source);return new RegExp("(?:"+ce.join("|")+")",re(F))}function oe(Z,V,F){return Q(R(Z,F),V,F)}function Q(Z,V,F){F=F||{};for(var ce=F.strict,ue=F.start!==!1,A=F.end!==!1,m=H(F.delimiter||ye),O=F.delimiters||c,g=[].concat(F.endsWith||[]).map(H).concat("$").join("|"),P=ue?"^":"",U=Z.length===0,J=0;J<Z.length;J++){var G=Z[J];if(typeof G=="string")P+=H(G),U=J===Z.length-1&&O.indexOf(G[G.length-1])>-1;else{var le=G.repeat?"(?:"+G.pattern+")(?:"+H(G.delimiter)+"(?:"+G.pattern+"))*":G.pattern;V&&V.push(G),G.optional?G.partial?P+=H(G.prefix)+"("+le+")?":P+="(?:"+H(G.prefix)+"("+le+"))?":P+=H(G.prefix)+"("+le+")"}}return A?(ce||(P+="(?:"+m+")?"),P+=g==="$"?"$":"(?="+g+")"):(ce||(P+="(?:"+m+"(?="+g+"))?"),U||(P+="(?="+m+"|"+g+")")),new RegExp(P,re(F))}function fe(Z,V,F){return Z instanceof RegExp?ee(Z,V):Array.isArray(Z)?Me(Z,V,F):oe(Z,V,F)}},38069:function(Pe,ye,c){"use strict";c.d(ye,{ZP:function(){return A}});var p=c(67294);function R(m,O){return re(m)||T(m,O)||x(m,O)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(m,O){if(!!m){if(typeof m=="string")return H(m,O);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return H(m,O)}}function H(m,O){(O==null||O>m.length)&&(O=m.length);for(var g=0,P=new Array(O);g<O;g++)P[g]=m[g];return P}function T(m,O){var g=m&&(typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"]);if(g!=null){var P=[],U=!0,J=!1,G,le;try{for(g=g.call(m);!(U=(G=g.next()).done)&&(P.push(G.value),!(O&&P.length===O));U=!0);}catch(Ee){J=!0,le=Ee}finally{try{!U&&g.return!=null&&g.return()}finally{if(J)throw le}}return P}}function re(m){if(Array.isArray(m))return m}function ee(m){var O=typeof window=="undefined",g=(0,p.useState)(function(){return O?!1:window.matchMedia(m).matches}),P=R(g,2),U=P[0],J=P[1];return(0,p.useLayoutEffect)(function(){if(!O){var G=window.matchMedia(m),le=function(_e){return J(_e.matches)};return G.addListener(le),function(){return G.removeListener(le)}}},[m]),U}function Me(m,O){return V(m)||Z(m,O)||Q(m,O)||oe()}function oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(m,O){if(!!m){if(typeof m=="string")return fe(m,O);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return fe(m,O)}}function fe(m,O){(O==null||O>m.length)&&(O=m.length);for(var g=0,P=new Array(O);g<O;g++)P[g]=m[g];return P}function Z(m,O){var g=m&&(typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"]);if(g!=null){var P=[],U=!0,J=!1,G,le;try{for(g=g.call(m);!(U=(G=g.next()).done)&&(P.push(G.value),!(O&&P.length===O));U=!0);}catch(Ee){J=!0,le=Ee}finally{try{!U&&g.return!=null&&g.return()}finally{if(J)throw le}}return P}}function V(m){if(Array.isArray(m))return m}var F={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},ce=function(){var O="md";if(typeof window=="undefined")return O;var g=Object.keys(F).find(function(P){var U=F[P].matchMedia;return!!window.matchMedia(U).matches});return O=g,O},ue=function(){var O=ee(F.md.matchMedia),g=ee(F.lg.matchMedia),P=ee(F.xxl.matchMedia),U=ee(F.xl.matchMedia),J=ee(F.sm.matchMedia),G=ee(F.xs.matchMedia),le=(0,p.useState)(ce()),Ee=Me(le,2),_e=Ee[0],Re=Ee[1];return(0,p.useEffect)(function(){if(P){Re("xxl");return}if(U){Re("xl");return}if(g){Re("lg");return}if(O){Re("md");return}if(J){Re("sm");return}if(G){Re("xs");return}Re("md")},[O,g,P,U,J,G]),_e},A=ue}}]);
|